2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50 for GROMACS 3.0.
5 # Report bugs to <gromacs@gromacs.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Find the correct PATH separator. Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15 UNAME=${UNAME-`uname 2>/dev/null`}
17 *-DOS) PATH_SEPARATOR=';' ;;
18 *) PATH_SEPARATOR=':' ;;
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
86 for dir in $PATH /usr/ucb; do
88 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
89 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
90 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
91 test "X$echo_testing_string" = "X$echo_test_string"; then
98 if test "X$echo" = Xecho; then
99 # We didn't find a better echo, so look for alternatives.
100 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
101 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
102 test "X$echo_testing_string" = "X$echo_test_string"; then
103 # This shell has a builtin print -r that does the trick.
105 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
106 test "X$CONFIG_SHELL" != X/bin/ksh; then
107 # If we have ksh, try running configure again with it.
108 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
109 export ORIGINAL_CONFIG_SHELL
110 CONFIG_SHELL=/bin/ksh
112 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
116 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
117 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
118 test "X$echo_testing_string" = "X$echo_test_string"; then
121 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
122 test "X$echo_testing_string" = 'X\t' &&
123 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127 SHELL="$CONFIG_SHELL"
129 echo="$CONFIG_SHELL $0 --fallback-echo"
130 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
131 test "X$echo_testing_string" = 'X\t' &&
132 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
133 test "X$echo_testing_string" = "X$echo_test_string"; then
134 echo="$CONFIG_SHELL $0 --fallback-echo"
136 # maybe with a smaller string...
139 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
140 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
147 if test "$prev" != 'sed 50q "$0"'; then
148 echo_test_string=`eval $prev`
149 export echo_test_string
150 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152 # Oops. We lost completely, so just stick with echo.
161 # Copy echo and quote the copy suitably for passing to libtool from
162 # the Makefile, instead of quoting the original, which is used later.
164 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
165 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
168 # Be Bourne compatible
169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
176 # Name of the executable.
177 as_me=`echo "$0" |sed 's,.*[\\/],,'`
179 if expr a : '\(a\)' >/dev/null 2>&1; then
185 rm -f conf$$ conf$$.exe conf$$.file
187 if ln -s conf$$.file conf$$ 2>/dev/null; then
188 # We could just check for DJGPP; but this test a) works b) is more generic
189 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
190 if test -f conf$$.exe; then
191 # Don't use ln at all; we don't have any links
196 elif ln conf$$.file conf$$ 2>/dev/null; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 as_executable_p="test -f"
205 # Support unset when possible.
206 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
213 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
214 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
215 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
216 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
217 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
218 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
219 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
220 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
232 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
233 # so uname gets run too.
234 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
241 ac_default_prefix=/usr/local
245 SHELL=${CONFIG_SHELL-/bin/sh}
247 # Maximum number of lines to put in a shell here document.
248 # This variable seems obsolete. It should probably be removed, and
249 # only ac_max_sed_lines should be used.
250 : ${ac_max_here_lines=38}
252 # Avoid depending upon Character Ranges.
253 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
254 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
255 ac_cr_09='0123456789'
256 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
258 # Sed expression to map a string onto a valid sh and CPP variable names.
259 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
260 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
262 ac_unique_file="src/gmxlib/3dview.c"
263 ac_default_prefix=/usr/local/gromacs
264 # Factoring default headers for most tests.
265 ac_includes_default="\
267 #include <sys/types.h>
268 #include <sys/stat.h>
278 # if !STDC_HEADERS && HAVE_MEMORY_H
284 # include <strings.h>
288 # include <inttypes.h>
294 # Initialize some variables set by options.
296 ac_init_version=false
297 # The variables have the same names as the options, with
298 # dashes changed to underlines.
306 program_transform_name=s,x,x,
314 # Installation directory options.
315 # These are left unexpanded so users can "make install exec_prefix=/foo"
316 # and all the variables that are supposed to be based on exec_prefix
317 # by default will actually change.
318 # Use braces instead of parens because sh, perl, etc. also accept them.
319 bindir='${exec_prefix}/bin'
320 sbindir='${exec_prefix}/sbin'
321 libexecdir='${exec_prefix}/libexec'
322 datadir='${prefix}/share'
323 sysconfdir='${prefix}/etc'
324 sharedstatedir='${prefix}/com'
325 localstatedir='${prefix}/var'
326 libdir='${exec_prefix}/lib'
327 includedir='${prefix}/include'
328 oldincludedir='/usr/include'
329 infodir='${prefix}/info'
330 mandir='${prefix}/man'
332 # Identity of this package.
333 PACKAGE_NAME='GROMACS'
334 PACKAGE_TARNAME='gromacs'
335 PACKAGE_VERSION='3.0'
336 PACKAGE_STRING='GROMACS 3.0'
337 PACKAGE_BUGREPORT='gromacs@gromacs.org'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
646 localstatedir libdir includedir oldincludedir infodir mandir \
649 eval ac_val=$`echo $ac_var`
651 [\\/$]* | ?:[\\/]* ) ;;
653 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
654 { (exit 1); exit 1; }; };;
658 # There might be people who depend on the old broken behavior: `$host'
659 # used to hold the argument of --host etc.
664 # FIXME: should be removed in autoconf 3.0.
665 if test "x$host_alias" != x; then
666 if test "x$build_alias" = x; then
667 cross_compiling=maybe
668 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
669 If a cross compiler is detected then cross compile mode will be used." >&2
670 elif test "x$build_alias" != "x$host_alias"; then
676 test -n "$host_alias" && ac_tool_prefix=$host_alias-
678 test "$silent" = yes && exec 6>/dev/null
680 # Find the source files, if location was not specified.
681 if test -z "$srcdir"; then
682 ac_srcdir_defaulted=yes
683 # Try the directory containing this script, then its parent.
685 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
686 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
688 if test ! -r $srcdir/$ac_unique_file; then
692 ac_srcdir_defaulted=no
694 if test ! -r $srcdir/$ac_unique_file; then
695 if test "$ac_srcdir_defaulted" = yes; then
696 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
697 { (exit 1); exit 1; }; }
699 { echo "$as_me: error: cannot find sources in $srcdir" >&2
700 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_F77_set=${F77+set}
733 ac_env_F77_value=$F77
734 ac_cv_env_F77_set=${F77+set}
735 ac_cv_env_F77_value=$F77
736 ac_env_FFLAGS_set=${FFLAGS+set}
737 ac_env_FFLAGS_value=$FFLAGS
738 ac_cv_env_FFLAGS_set=${FFLAGS+set}
739 ac_cv_env_FFLAGS_value=$FFLAGS
740 ac_env_CXX_set=${CXX+set}
741 ac_env_CXX_value=$CXX
742 ac_cv_env_CXX_set=${CXX+set}
743 ac_cv_env_CXX_value=$CXX
744 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
745 ac_env_CXXFLAGS_value=$CXXFLAGS
746 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
747 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
748 ac_env_CXXCPP_set=${CXXCPP+set}
749 ac_env_CXXCPP_value=$CXXCPP
750 ac_cv_env_CXXCPP_set=${CXXCPP+set}
751 ac_cv_env_CXXCPP_value=$CXXCPP
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures GROMACS 3.0 to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
818 --program-prefix=PREFIX prepend PREFIX to installed program names
819 --program-suffix=SUFFIX append SUFFIX to installed program names
820 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
823 --x-includes=DIR X include files are in DIR
824 --x-libraries=DIR X library files are in DIR
827 --build=BUILD configure for building on BUILD [guessed]
828 --host=HOST build programs to run on HOST [BUILD]
832 if test -n "$ac_init_help"; then
833 case $ac_init_help in
834 short | recursive ) echo "Configuration of GROMACS 3.0:";;
839 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
840 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
841 --disable-dependency-tracking Speeds up one-time builds
842 --enable-dependency-tracking Do not reject slow dependency extractors
843 --disable-float use double instead of single precision
844 --enable-fortran use fortran (default on sgi,ibm,sun,axp)
845 --enable-mpi compile for parallel runs using MPI
846 --disable-x86-asm don't build assembly loops on x86
847 --disable-cpu-optimization no detection or tuning flags for cpu version
848 --enable-vector create inner loops for a vector machine
849 --disable-waterloop-unrolling expand the loops instead (hack for sgi)
850 --disable-waterwater-loops turn off double unrolled loops (hack for sgi)
851 --enable-software-recip perform software 1/x
852 --disable-software-sqrt no software 1/sqrt (disabled on sgi,rs6000)
853 --enable-vectorized-recip vectorize LJ-only inner loops
854 --enable-vectorized-sqrt=A,B vectorize selected inner loops (default none)
855 choices: normal,solvent,water,water-water
856 --enable-prefetch-x=A,B prefetch coordinates in selected innerloops
857 --enable-prefetch-f=A,B prefetch forces in selected innerloops
858 --enable-hide-square-latency load coords to cache in advance
859 --enable-hide-table-latency load table data to cache in advance
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --enable-mpi-environment=VAR only start parallel runs when VAR is set
869 --without-fftw if you turn this off you cannot use PME/PPPM
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-dmalloc use dmalloc, as in
873 http://www.dmalloc.com/dmalloc.tar.gz
874 --with-x use the X Window System
875 --with-motif-includes=DIR Motif include files are in DIR
876 --with-motif-libraries=DIR Motif libraries are in DIR
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 F77 Fortran 77 compiler command
886 FFLAGS Fortran 77 compiler flags
887 CXX C++ compiler command
888 CXXFLAGS C++ compiler flags
889 CXXCPP C++ preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <gromacs@gromacs.org>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
904 # A "../" for each directory in /$ac_subdir.
905 ac_dots=`echo $ac_subdir |
906 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
909 .) # No --srcdir option. We are building in place.
910 ac_sub_srcdir=$srcdir ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_sub_srcdir=$srcdir/$ac_subdir ;;
914 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_sub_srcdir/configure.gnu; then
920 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_sub_srcdir/configure; then
923 $SHELL $ac_sub_srcdir/configure --help=recursive
924 elif test -f $ac_sub_srcdir/configure.ac ||
925 test -f $ac_sub_srcdir/configure.in; then
929 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
938 GROMACS configure 3.0
939 generated by GNU Autoconf 2.50
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by GROMACS $as_me 3.0, which was
954 generated by GNU Autoconf 2.50. Invocation command line was
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994 # Keep a trace of the command line.
995 # Strip out --no-create and --no-recursion so they do not pile up.
996 # Also quote any args containing shell meta-characters.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c) ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1006 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1008 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1010 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1013 # Get rid of the leading space.
1016 # When interrupted or exit'd, cleanup temporary files, and complete
1017 # config.log. We remove comments because anyway the quotes in there
1018 # would cause problems or look ugly.
1019 trap 'exit_status=$?
1020 # Save into config.log some information that might help in debugging.
1022 echo "## ----------------- ##" >&5
1023 echo "## Cache variables. ##" >&5
1024 echo "## ----------------- ##" >&5
1026 # The following way of writing the cache mishandles newlines in values,
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041 sed "/^$/d" confdefs.h >conftest.log
1042 if test -s conftest.log; then
1044 echo "## ------------ ##" >&5
1045 echo "## confdefs.h. ##" >&5
1046 echo "## ------------ ##" >&5
1048 cat conftest.log >&5
1051 test "$ac_signal" != 0 &&
1052 echo "$as_me: caught signal $ac_signal" >&5
1053 echo "$as_me: exit $exit_status" >&5
1054 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1057 for ac_signal in 1 2 13 15; do
1058 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1063 rm -rf conftest* confdefs.h
1064 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1067 # Let the site file select an alternate cache file if it wants to.
1068 # Prefer explicitly selected file to automatically selected ones.
1069 if test -z "$CONFIG_SITE"; then
1070 if test "x$prefix" != xNONE; then
1071 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1073 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1076 for ac_site_file in $CONFIG_SITE; do
1077 if test -r "$ac_site_file"; then
1078 { echo "$as_me:1078: loading site script $ac_site_file" >&5
1079 echo "$as_me: loading site script $ac_site_file" >&6;}
1080 cat "$ac_site_file" >&5
1085 if test -r "$cache_file"; then
1086 # Some versions of bash will fail to source /dev/null (special
1087 # files actually), so we avoid doing that.
1088 if test -f "$cache_file"; then
1089 { echo "$as_me:1089: loading cache $cache_file" >&5
1090 echo "$as_me: loading cache $cache_file" >&6;}
1092 [\\/]* | ?:[\\/]* ) . $cache_file;;
1093 *) . ./$cache_file;;
1097 { echo "$as_me:1097: creating cache $cache_file" >&5
1098 echo "$as_me: creating cache $cache_file" >&6;}
1102 # Check that the precious variables saved in the cache have kept the same
1104 ac_suggest_removing_cache=false
1105 for ac_var in `(set) 2>&1 |
1106 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1108 eval ac_new_set=\$ac_env_${ac_var}_set
1109 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1110 eval ac_new_val="\$ac_env_${ac_var}_value"
1111 case $ac_old_set,$ac_new_set in
1113 { echo "$as_me:1113: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1114 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1115 ac_suggest_removing_cache=: ;;
1117 { echo "$as_me:1117: WARNING: \`$ac_var' was not set in the previous run" >&5
1118 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1119 ac_suggest_removing_cache=: ;;
1122 if test "x$ac_old_val" != "x$ac_new_val"; then
1123 { echo "$as_me:1123: WARNING: \`$ac_var' has changed since the previous run:" >&5
1124 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1125 { echo "$as_me:1125: WARNING: former value: $ac_old_val" >&5
1126 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1127 { echo "$as_me:1127: WARNING: current value: $ac_new_val" >&5
1128 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1129 ac_suggest_removing_cache=:
1133 if $ac_suggest_removing_cache; then
1134 { echo "$as_me:1134: WARNING: changes in the environment can compromise the build" >&5
1135 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1136 { echo "$as_me:1136: WARNING: consider removing $cache_file and starting over" >&5
1137 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1146 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1147 *c*,-n*) ECHO_N= ECHO_C='
1149 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1150 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1152 echo "#! $SHELL" >conftest.sh
1153 echo "exit 0" >>conftest.sh
1154 chmod +x conftest.sh
1155 if { (echo "$as_me:1155: PATH=\".;.\"; conftest.sh") >&5
1156 (PATH=".;."; conftest.sh) 2>&5
1158 echo "$as_me:1158: \$? = $ac_status" >&5
1159 (exit $ac_status); }; then
1160 ac_path_separator=';'
1164 PATH_SEPARATOR="$ac_path_separator"
1168 for ac_dir in config $srcdir/config; do
1169 if test -f $ac_dir/install-sh; then
1171 ac_install_sh="$ac_aux_dir/install-sh -c"
1173 elif test -f $ac_dir/install.sh; then
1175 ac_install_sh="$ac_aux_dir/install.sh -c"
1177 elif test -f $ac_dir/shtool; then
1179 ac_install_sh="$ac_aux_dir/shtool install -c"
1183 if test -z "$ac_aux_dir"; then
1184 { { echo "$as_me:1184: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1185 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1186 { (exit 1); exit 1; }; }
1188 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1189 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1190 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1192 # Make sure we can run config.sub.
1193 $ac_config_sub sun4 >/dev/null 2>&1 ||
1194 { { echo "$as_me:1194: error: cannot run $ac_config_sub" >&5
1195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1196 { (exit 1); exit 1; }; }
1198 echo "$as_me:1198: checking build system type" >&5
1199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1200 if test "${ac_cv_build+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 ac_cv_build_alias=$build_alias
1204 test -z "$ac_cv_build_alias" &&
1205 ac_cv_build_alias=`$ac_config_guess`
1206 test -z "$ac_cv_build_alias" &&
1207 { { echo "$as_me:1207: error: cannot guess build type; you must specify one" >&5
1208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1209 { (exit 1); exit 1; }; }
1210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1211 { { echo "$as_me:1211: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1213 { (exit 1); exit 1; }; }
1216 echo "$as_me:1216: result: $ac_cv_build" >&5
1217 echo "${ECHO_T}$ac_cv_build" >&6
1219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1223 echo "$as_me:1223: checking host system type" >&5
1224 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1225 if test "${ac_cv_host+set}" = set; then
1226 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 ac_cv_host_alias=$host_alias
1229 test -z "$ac_cv_host_alias" &&
1230 ac_cv_host_alias=$ac_cv_build_alias
1231 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1232 { { echo "$as_me:1232: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1233 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1234 { (exit 1); exit 1; }; }
1237 echo "$as_me:1237: result: $ac_cv_host" >&5
1238 echo "${ECHO_T}$ac_cv_host" >&6
1240 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1241 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1242 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1244 # Find a good install program. We prefer a C program (faster),
1245 # so one script is as good as another. But avoid the broken or
1246 # incompatible versions:
1247 # SysV /etc/install, /usr/sbin/install
1248 # SunOS /usr/etc/install
1249 # IRIX /sbin/install
1251 # AmigaOS /C/install, which installs bootblocks on floppy discs
1252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255 # ./install, which can be erroneously created by make from ./install.sh.
1256 echo "$as_me:1256: checking for a BSD compatible install" >&5
1257 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1258 if test -z "$INSTALL"; then
1259 if test "${ac_cv_path_install+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 for ac_dir in $PATH; do
1265 # Account for people who put trailing slashes in PATH elements.
1267 / | ./ | .// | /cC/* \
1268 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1271 # OSF1 and SCO ODT 3.0 have their own names for install.
1272 # Don't use installbsd from OSF since it installs stuff as root
1274 for ac_prog in ginstall scoinst install; do
1275 if $as_executable_p "$ac_dir/$ac_prog"; then
1276 if test $ac_prog = install &&
1277 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1278 # AIX install. It has an incompatible calling convention.
1280 elif test $ac_prog = install &&
1281 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1282 # program-specific install script used by HP pwplus--don't use.
1285 ac_cv_path_install="$ac_dir/$ac_prog -c"
1295 if test "${ac_cv_path_install+set}" = set; then
1296 INSTALL=$ac_cv_path_install
1298 # As a last resort, use the slow shell script. We don't cache a
1299 # path for INSTALL within a source directory, because that will
1300 # break other packages using the cache if that directory is
1301 # removed, or if the path is relative.
1302 INSTALL=$ac_install_sh
1305 echo "$as_me:1305: result: $INSTALL" >&5
1306 echo "${ECHO_T}$INSTALL" >&6
1308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1309 # It thinks the first close brace ends the variable substitution.
1310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1316 echo "$as_me:1316: checking whether build environment is sane" >&5
1317 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1320 echo timestamp > conftest.file
1321 # Do `set' in a subshell so we don't clobber the current shell's
1322 # arguments. Must try -L first in case configure is actually a
1323 # symlink; some systems play weird games with the mod time of symlinks
1324 # (eg FreeBSD returns the mod time of the symlink's containing
1327 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1328 if test "$*" = "X"; then
1330 set X `ls -t $srcdir/configure conftest.file`
1333 if test "$*" != "X $srcdir/configure conftest.file" \
1334 && test "$*" != "X conftest.file $srcdir/configure"; then
1336 # If neither matched, then we have a broken ls. This can happen
1337 # if, for instance, CONFIG_SHELL is bash and it inherits a
1338 # broken ls alias from the environment. This has actually
1339 # happened. Such a system could not be considered "sane".
1340 { { echo "$as_me:1340: error: ls -t appears to fail. Make sure there is not a broken
1341 alias in your environment" >&5
1342 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1343 alias in your environment" >&2;}
1344 { (exit 1); exit 1; }; }
1347 test "$2" = conftest.file
1353 { { echo "$as_me:1353: error: newly created file is older than distributed files!
1354 Check your system clock" >&5
1355 echo "$as_me: error: newly created file is older than distributed files!
1356 Check your system clock" >&2;}
1357 { (exit 1); exit 1; }; }
1359 echo "$as_me:1359: result: yes" >&5
1360 echo "${ECHO_T}yes" >&6
1361 if test "$program_transform_name" = s,x,x,; then
1362 program_transform_name=
1364 # Double any \ or $. echo might interpret backslashes.
1365 cat <<\EOF >conftest.sed
1366 s,\\,\\\\,g; s,\$,$$,g
1368 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1371 test "$program_prefix" != NONE &&
1372 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1373 # Use a double $ so make ignores it.
1374 test "$program_suffix" != NONE &&
1375 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1377 # sed with no file args requires a program.
1378 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1380 test x"${MISSING+set}" = xset ||
1381 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1382 # Use eval to expand $SHELL
1383 if eval "$MISSING --run true"; then
1384 am_missing_run="$MISSING --run "
1388 { echo "$as_me:1388: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1389 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1392 for ac_prog in mawk gawk nawk awk
1394 # Extract the first word of "$ac_prog", so it can be a program name with args.
1395 set dummy $ac_prog; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_AWK+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$AWK"; then
1402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1406 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_AWK="$ac_prog"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1418 if test -n "$AWK"; then
1419 echo "$as_me:1419: result: $AWK" >&5
1420 echo "${ECHO_T}$AWK" >&6
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1426 test -n "$AWK" && break
1429 echo "$as_me:1429: checking whether ${MAKE-make} sets \${MAKE}" >&5
1430 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 cat >conftest.make <<\EOF
1437 @echo 'ac_maketemp="${MAKE}"'
1439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1441 if test -n "$ac_maketemp"; then
1442 eval ac_cv_prog_make_${ac_make}_set=yes
1444 eval ac_cv_prog_make_${ac_make}_set=no
1448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1449 echo "$as_me:1449: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1453 echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 SET_MAKE="MAKE=${MAKE-make}"
1458 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1459 if test "${enable_dependency_tracking+set}" = set; then
1460 enableval="$enable_dependency_tracking"
1463 if test "x$enable_dependency_tracking" != xno; then
1464 am_depcomp="$ac_aux_dir/depcomp"
1468 if test "x$enable_dependency_tracking" != xno; then
1476 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1478 # We redirect because .deps might already exist and be populated.
1479 # In this situation we don't want to see an error.
1480 rmdir .deps > /dev/null 2>&1
1485 # test to see if srcdir already configured
1486 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1487 test -f $srcdir/config.status; then
1488 { { echo "$as_me:1488: error: source directory already configured; run \"make distclean\" there first" >&5
1489 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1490 { (exit 1); exit 1; }; }
1493 # Define the identity of the package.
1497 cat >>confdefs.h <<EOF
1498 #define PACKAGE "$PACKAGE"
1501 cat >>confdefs.h <<EOF
1502 #define VERSION "$VERSION"
1505 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1506 # the ones we care about.
1508 # Some tools Automake needs.
1510 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1512 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1514 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1516 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1518 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1520 AMTAR=${AMTAR-"${am_missing_run}tar"}
1522 if test -z "$install_sh"; then
1523 for install_sh in "$ac_aux_dir/install-sh" \
1524 "$ac_aux_dir/install.sh" \
1525 "${am_missing_run}${ac_auxdir}/install-sh";
1527 test -f "$install_sh" && break
1529 # FIXME: an evil hack: we remove the SHELL invocation from
1530 # install_sh because automake adds it back in. Sigh.
1531 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1534 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1535 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1537 # We need awk for the "check" target. The system "awk" is bad on
1540 ac_config_headers="$ac_config_headers src/config.h"
1542 ac_config_commands="$ac_config_commands default-1"
1544 SHARED_VERSION_INFO="1:0:0"
1546 #######################################################################
1547 # Simple options and makefile variables
1548 #######################################################################
1551 # Check whether --enable-float or --disable-float was given.
1552 if test "${enable_float+set}" = set; then
1553 enableval="$enable_float"
1558 if test "$enable_float" = "no"; then
1560 cat >>confdefs.h <<\EOF
1574 # Check whether --enable-fortran or --disable-fortran was given.
1575 if test "${enable_fortran+set}" = set; then
1576 enableval="$enable_fortran"
1579 case "${host_cpu}-${host_os}" in
1580 sparc*-solaris* | alpha*-* | rs6000*-aix* | powerpc*-aix* | mips*-irix*) enable_fortran=yes ;;
1581 *) enable_fortran=no ;;
1584 if test "$enable_fortran" = "yes"; then
1586 cat >>confdefs.h <<\EOF
1590 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerf.lo f77_wrappers.lo"
1591 if test "$enable_float" = "yes"; then
1592 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincs.lo fsettle.lo fshake.lo"
1594 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincsd.lo fsettled.lo fshaked.lo"
1597 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerc.lo"
1598 MDLIB_LIBOBJS="${MDLIB_LIBOBJS} clincs.lo csettle.lo cshake.lo"
1602 # Check whether --enable-mpi or --disable-mpi was given.
1603 if test "${enable_mpi+set}" = set; then
1604 enableval="$enable_mpi"
1612 # Check whether --with-mpi-environment or --without-mpi-environment was given.
1613 if test "${with_mpi_environment+set}" = set; then
1614 withval="$with_mpi_environment"
1617 case "${host_cpu}" in
1618 mips*-irix*) enable_mpi_environment="MPI_ENVIRONMENT" ;;
1619 *) enable_mpi_environment=no ;;
1622 if test "$enable_mpi_environment" != "no"; then
1624 cat >>confdefs.h <<EOF
1625 #define CHECK_MPI_ENV "$enable_mpi_environment"
1630 ### X86 assembly code
1631 # Check whether --enable-x86_asm or --disable-x86_asm was given.
1632 if test "${enable_x86_asm+set}" = set; then
1633 enableval="$enable_x86_asm"
1638 case "${host_cpu}" in
1640 *) enable_x86_asm=no ;;
1643 ### Optimize for host cpu version
1644 # Check whether --enable-cpu-optimization or --disable-cpu-optimization was given.
1645 if test "${enable_cpu_optimization+set}" = set; then
1646 enableval="$enable_cpu_optimization"
1649 enable_cpu_optimization=yes
1652 ### Vector machine inner loops
1653 # Check whether --enable-vector or --disable-vector was given.
1654 if test "${enable_vector+set}" = set; then
1655 enableval="$enable_vector"
1660 if test "$enable_vector" = "yes"; then
1662 cat >>confdefs.h <<\EOF
1668 ### Simplewater hack for SGI - disabled unrolling is the same as simplewater=yes
1669 # Check whether --enable-waterloop-unrolling or --disable-waterloop-unrolling was given.
1670 if test "${enable_waterloop_unrolling+set}" = set; then
1671 enableval="$enable_waterloop_unrolling"
1674 case "${host_cpu}-${host_os}" in
1675 mips*-irix*) enable_waterloop_unrolling=yes ;;
1676 *) enable_waterloop_unrolling=no ;;
1679 if test "$enable_waterloops_unrolling" = "no"; then
1681 cat >>confdefs.h <<\EOF
1687 ### Turn off the special water-water loops on SGI...
1688 # Check whether --enable-waterwater-loops or --disable-waterwater-loops was given.
1689 if test "${enable_waterwater_loops+set}" = set; then
1690 enableval="$enable_waterwater_loops"
1693 case "${host_cpu}-${host_os}" in
1694 mips*-irix*) enable_waterwater_loops=no ;;
1695 *) enable_waterwater_loops=yes ;;
1698 if test "$enable_waterwater_loops" = "no"; then
1700 cat >>confdefs.h <<\EOF
1701 #define DISABLE_WATERWATER_LOOPS
1707 # Check whether --enable-software-recip or --disable-software-recip was given.
1708 if test "${enable_software_recip+set}" = set; then
1709 enableval="$enable_software_recip"
1712 enable_software_recip=no
1714 if test "$enable_software_recip" = "yes"; then
1716 cat >>confdefs.h <<\EOF
1717 #define SOFTWARE_RECIP
1722 ### Do software 1/sqrt(x)
1723 # Check whether --enable-software-sqrt or --disable-software-sqrt was given.
1724 if test "${enable_software_sqrt+set}" = set; then
1725 enableval="$enable_software_sqrt"
1728 case "${host_cpu}-${host_os}" in
1729 mips*-irix* | rs6000*-aix*) enable_software_sqrt=no ;;
1730 *) enable_software_sqrt=yes ;;
1733 if test "$enable_software_sqrt" = "yes"; then
1735 cat >>confdefs.h <<\EOF
1736 #define SOFTWARE_SQRT
1742 # Check whether --enable-vectorized-recip or --disable-vectorized-recip was given.
1743 if test "${enable_vectorized_recip+set}" = set; then
1744 enableval="$enable_vectorized_recip"
1747 enable_vectorized_recip=no
1749 if test "$enable_vectorized_recip" = "yes"; then
1751 cat >>confdefs.h <<\EOF
1752 #define VECTORIZE_RECIP
1756 if test "$enable_vectorized_recip" != "no"; then
1757 { { echo "$as_me:1757: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" >&5
1758 echo "$as_me: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" >&2;}
1759 { (exit 1); exit 1; }; }
1763 ### Vectorize 1/sqrt(x)
1764 # Check whether --enable-vectorized-sqrt or --disable-vectorized-sqrt was given.
1765 if test "${enable_vectorized_sqrt+set}" = set; then
1766 enableval="$enable_vectorized_sqrt"
1769 enable_vectorized_sqrt=not_selected
1771 # processing of vectorized_sqrt choices is done just before the final output stage!
1773 # The four options below used to improve code scheduling, but the newest CPUs can usually rearrange
1774 # instructions dynamically at runtime, so they might not make much difference now:
1776 ### Coordinate prefetching
1777 # Check whether --enable-prefetch-x or --disable-prefetch-x was given.
1778 if test "${enable_prefetch_x+set}" = set; then
1779 enableval="$enable_prefetch_x"
1782 enable_prefetch_x=no
1784 # processing of prefetch-x choices is done just before the final output stage!
1786 ### Force prefetching
1787 # Check whether --enable-prefetch-f or --disable-prefetch-f was given.
1788 if test "${enable_prefetch_f+set}" = set; then
1789 enableval="$enable_prefetch_f"
1792 enable_prefetch_f=no
1794 # processing of prefetch-f choices is done just before the final output stage!
1796 ### First load all coords in a water-water iteration, then square all pairs, then add the sums to get r2.
1797 # Check whether --enable-hide-square-latency or --disable-hide-square-latency was given.
1798 if test "${enable_hide_square_latency+set}" = set; then
1799 enableval="$enable_hide_square_latency"
1802 enable_hide_square_latency=no
1804 if test "$enable_hide_square_latency" = "yes"; then
1806 cat >>confdefs.h <<\EOF
1807 #define DECREASE_SQUARE_LATENCY
1812 ### Do the table lookups for all interactions between two water molecules before using the results
1813 # Check whether --enable-hide-table-latency or --disable-hide-table-latency was given.
1814 if test "${enable_hide_table_latency+set}" = set; then
1815 enableval="$enable_hide_table_latency"
1818 enable_hide_table_latency=no
1820 if test "$enable_hide_table_latency" = "yes"; then
1822 cat >>confdefs.h <<\EOF
1823 #define DECREASE_LOOKUP_LATENCY
1828 ### Compile without FFTW - disabling it means you can't use PME or PPPM!
1829 ### N.B.: This is only intended as a last resort, or for tests - don't use it!
1831 # Check whether --with-fftw or --without-fftw was given.
1832 if test "${with_fftw+set}" = set; then
1833 withval="$with_fftw"
1838 if test "$with_fftw" = "no"; then
1840 cat >>confdefs.h <<\EOF
1841 #define WITHOUT_FFTW
1846 ############################################################
1847 # Checks for programs
1848 ############################################################
1850 # normally we use the default compiler, but on alpha/linux we try the compaq ones first
1851 case "${host_cpu}-${host_os}" in
1853 cc_names="ccc cc gcc"
1854 f77_names="fort f77 g77"
1857 cc_names="cc xlc gcc"
1858 f77_names="f77 xlf xlf77 cf77 fl32 g77 fort77 f90 xlf90 pgf77 cf77 fort fort77 pgf90"
1861 # the (non-mpi) c compiler, which is also used for programs executed during build stage
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868 for ac_prog in $cc_names
1870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872 echo "$as_me:1872: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 ac_save_IFS=$IFS; IFS=$ac_path_separator
1882 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 $as_executable_p "$ac_dir/$ac_word" || continue
1886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1887 echo "$as_me:1887: found $ac_dir/$ac_word" >&5
1894 if test -n "$CC"; then
1895 echo "$as_me:1895: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1898 echo "$as_me:1898: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$CC" && break
1905 if test -z "$CC"; then
1907 for ac_prog in $cc_names
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:1911: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 ac_save_IFS=$IFS; IFS=$ac_path_separator
1921 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 $as_executable_p "$ac_dir/$ac_word" || continue
1925 ac_cv_prog_ac_ct_CC="$ac_prog"
1926 echo "$as_me:1926: found $ac_dir/$ac_word" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:1934: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:1937: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$ac_ct_CC" && break
1947 test -z "$CC" && { { echo "$as_me:1947: error: no acceptable cc found in \$PATH" >&5
1948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1949 { (exit 1); exit 1; }; }
1951 cat >conftest.$ac_ext <<_ACEOF
1952 #line 1952 "configure"
1953 #include "confdefs.h"
1963 ac_clean_files_save=$ac_clean_files
1964 ac_clean_files="$ac_clean_files a.out a.exe"
1965 # Try to create an executable without -o first, disregard a.out.
1966 # It will help us diagnose broken compiler, and finding out an intuition
1968 echo "$as_me:1968: checking for C compiler default output" >&5
1969 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971 if { (eval echo "$as_me:1971: \"$ac_link_default\"") >&5
1972 (eval $ac_link_default) 2>&5
1974 echo "$as_me:1974: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1978 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1979 a.out ) # We found the default executable, but exeext='' is most
1982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 { { echo "$as_me:1991: error: C compiler cannot create executables" >&5
1992 echo "$as_me: error: C compiler cannot create executables" >&2;}
1993 { (exit 77); exit 77; }; }
1996 ac_exeext=$ac_cv_exeext
1997 echo "$as_me:1997: result: $ac_file" >&5
1998 echo "${ECHO_T}$ac_file" >&6
2000 # Check the compiler produces executables we can run. If not, either
2001 # the compiler is broken, or we cross compile.
2002 echo "$as_me:2002: checking whether the C compiler works" >&5
2003 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2005 # If not cross compiling, check that we can run a simple program.
2006 if test "$cross_compiling" != yes; then
2007 if { ac_try='./$ac_file'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2015 if test "$cross_compiling" = maybe; then
2018 { { echo "$as_me:2018: error: cannot run C compiled programs.
2019 If you meant to cross compile, use \`--host'." >&5
2020 echo "$as_me: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'." >&2;}
2022 { (exit 1); exit 1; }; }
2026 echo "$as_me:2026: result: yes" >&5
2027 echo "${ECHO_T}yes" >&6
2029 rm -f a.out a.exe conftest$ac_cv_exeext
2030 ac_clean_files=$ac_clean_files_save
2031 # Check the compiler produces executables we can run. If not, either
2032 # the compiler is broken, or we cross compile.
2033 echo "$as_me:2033: checking whether we are cross compiling" >&5
2034 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2035 echo "$as_me:2035: result: $cross_compiling" >&5
2036 echo "${ECHO_T}$cross_compiling" >&6
2038 echo "$as_me:2038: checking for executable suffix" >&5
2039 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2040 if { (eval echo "$as_me:2040: \"$ac_link\"") >&5
2041 (eval $ac_link) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2047 # work properly (i.e., refer to `conftest.exe'), while it won't with
2049 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2051 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059 { { echo "$as_me:2059: error: cannot compute EXEEXT: cannot compile and link" >&5
2060 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2061 { (exit 1); exit 1; }; }
2064 rm -f conftest$ac_cv_exeext
2065 echo "$as_me:2065: result: $ac_cv_exeext" >&5
2066 echo "${ECHO_T}$ac_cv_exeext" >&6
2068 rm -f conftest.$ac_ext
2069 EXEEXT=$ac_cv_exeext
2071 echo "$as_me:2071: checking for object suffix" >&5
2072 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2073 if test "${ac_cv_objext+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 cat >conftest.$ac_ext <<_ACEOF
2077 #line 2077 "configure"
2078 #include "confdefs.h"
2088 rm -f conftest.o conftest.obj
2089 if { (eval echo "$as_me:2089: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2102 echo "$as_me: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 { { echo "$as_me:2104: error: cannot compute OBJEXT: cannot compile" >&5
2105 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2106 { (exit 1); exit 1; }; }
2109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2111 echo "$as_me:2111: result: $ac_cv_objext" >&5
2112 echo "${ECHO_T}$ac_cv_objext" >&6
2113 OBJEXT=$ac_cv_objext
2115 echo "$as_me:2115: checking whether we are using the GNU C compiler" >&5
2116 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2117 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line 2121 "configure"
2122 #include "confdefs.h"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:2136: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:2139: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:2142: \"$ac_try\"") >&5
2145 echo "$as_me:2145: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2157 echo "$as_me:2157: result: $ac_cv_c_compiler_gnu" >&5
2158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2159 GCC=`test $ac_compiler_gnu = yes && echo yes`
2160 ac_test_CFLAGS=${CFLAGS+set}
2161 ac_save_CFLAGS=$CFLAGS
2163 echo "$as_me:2163: checking whether $CC accepts -g" >&5
2164 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2165 if test "${ac_cv_prog_cc_g+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line 2169 "configure"
2170 #include "confdefs.h"
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:2181: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:2187: \"$ac_try\"") >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2200 echo "$as_me:2200: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203 CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205 if test "$GCC" = yes; then
2211 if test "$GCC" = yes; then
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:2227: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:2230: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:2233: \"$ac_try\"") >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2240 '#include <stdlib.h>' \
2241 'extern "C" void std::exit (int) throw (); using std::exit;' \
2242 'extern "C" void std::exit (int); using std::exit;' \
2243 'extern "C" void exit (int) throw ();' \
2244 'extern "C" void exit (int);' \
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #line 2248 "configure"
2249 #include "confdefs.h"
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:2261: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2264 echo "$as_me:2264: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:2267: \"$ac_try\"") >&5
2270 echo "$as_me:2270: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2274 echo "$as_me: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2278 rm -f conftest.$ac_objext conftest.$ac_ext
2279 cat >conftest.$ac_ext <<_ACEOF
2280 #line 2280 "configure"
2281 #include "confdefs.h"
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:2292: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2301 echo "$as_me:2301: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2305 echo "$as_me: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2310 echo '#ifdef __cplusplus' >>confdefs.h
2311 echo $ac_declaration >>confdefs.h
2312 echo '#endif' >>confdefs.h
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 rm -f conftest.$ac_objext conftest.$ac_ext
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 ac_config_commands="$ac_config_commands default-2"
2327 am_make=${MAKE-make}
2328 cat > confinc << 'END'
2332 # If we don't find an include directive, just comment out the code.
2333 echo "$as_me:2333: checking for style of include used by $am_make" >&5
2334 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2338 # First try GNU make style include.
2339 echo "include confinc" > confmf
2340 # We grep out `Entering directory' and `Leaving directory'
2341 # messages which can occur if `w' ends up in MAKEFLAGS.
2342 # In particular we don't look at `^make:' because GNU make might
2343 # be invoked under some other name (usually "gmake"), in which
2344 # case it prints its new name instead of `make'.
2345 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2350 # Now try BSD make style include.
2351 if test "$_am_include" = "#"; then
2352 echo '.include "confinc"' > confmf
2353 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2354 _am_include=.include
2360 echo "$as_me:2360: result: $_am_result" >&5
2361 echo "${ECHO_T}$_am_result" >&6
2362 rm -f confinc confmf
2364 depcc="$CC" am_compiler_list=
2366 echo "$as_me:2366: checking dependency style of $depcc" >&5
2367 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2368 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2372 # We make a subdir and do the tests there. Otherwise we can end up
2373 # making bogus files that we don't know about and never remove. For
2374 # instance it was reported that on HP-UX the gcc test will end up
2375 # making a dummy file named `D' -- because `-MD' means `put the output
2378 # Copy depcomp to subdir because otherwise we won't find it if we're
2379 # using a relative directory.
2380 cp "$am_depcomp" conftest.dir
2383 am_cv_CC_dependencies_compiler_type=none
2384 if test "$am_compiler_list" = ""; then
2385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2387 for depmode in $am_compiler_list; do
2388 # We need to recreate these files for each test, as the compiler may
2389 # overwrite some of them when testing with obscure command lines.
2390 # This happens at least with the AIX C compiler.
2391 echo '#include "conftest.h"' > conftest.c
2392 echo 'int i;' > conftest.h
2393 echo 'include conftest.Po' > Makefile
2397 # after this tag, mechanisms are not by side-effect, so they'll
2398 # only be used when explicitly requested
2399 if test "x$enable_dependency_tracking" = xyes; then
2407 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2408 # mode. It turns out that the SunPro C++ compiler does not properly
2409 # handle `-M -o', and we need to detect this.
2410 if depmode=$depmode \
2411 source=conftest.c object=conftest.o \
2412 depfile=conftest.Po tmpdepfile=conftest.TPo \
2413 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2414 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2415 ${MAKE-make} > /dev/null 2>&1; then
2416 am_cv_CC_dependencies_compiler_type=$depmode
2424 am_cv_CC_dependencies_compiler_type=none
2428 echo "$as_me:2428: result: $am_cv_CC_dependencies_compiler_type" >&5
2429 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2430 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2432 # Check for environment variable CC_FOR_BUILD before overwriting it
2433 if test -z "$CC_FOR_BUILD"; then
2437 if test "$enable_fortran" = "yes"; then
2439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2442 if test -n "$ac_tool_prefix"; then
2443 for ac_prog in $f77_names
2445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2447 echo "$as_me:2447: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_F77+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$F77"; then
2453 ac_cv_prog_F77="$F77" # Let the user override the test.
2455 ac_save_IFS=$IFS; IFS=$ac_path_separator
2457 for ac_dir in $ac_dummy; do
2459 test -z "$ac_dir" && ac_dir=.
2460 $as_executable_p "$ac_dir/$ac_word" || continue
2461 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2462 echo "$as_me:2462: found $ac_dir/$ac_word" >&5
2469 if test -n "$F77"; then
2470 echo "$as_me:2470: result: $F77" >&5
2471 echo "${ECHO_T}$F77" >&6
2473 echo "$as_me:2473: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$F77" && break
2480 if test -z "$F77"; then
2482 for ac_prog in $f77_names
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:2486: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$ac_ct_F77"; then
2492 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2494 ac_save_IFS=$IFS; IFS=$ac_path_separator
2496 for ac_dir in $ac_dummy; do
2498 test -z "$ac_dir" && ac_dir=.
2499 $as_executable_p "$ac_dir/$ac_word" || continue
2500 ac_cv_prog_ac_ct_F77="$ac_prog"
2501 echo "$as_me:2501: found $ac_dir/$ac_word" >&5
2507 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2508 if test -n "$ac_ct_F77"; then
2509 echo "$as_me:2509: result: $ac_ct_F77" >&5
2510 echo "${ECHO_T}$ac_ct_F77" >&6
2512 echo "$as_me:2512: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2516 test -n "$ac_ct_F77" && break
2522 # If we don't use `.F' as extension, the preprocessor is not run on the
2526 echo "$as_me:2526: checking whether we are using the GNU Fortran 77 compiler" >&5
2527 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2528 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 cat >conftest.$ac_ext <<_ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2549 echo "$as_me:2549: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2553 echo "$as_me: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2557 rm -f conftest.$ac_objext conftest.$ac_ext
2558 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2561 echo "$as_me:2561: result: $ac_cv_f77_compiler_gnu" >&5
2562 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2564 G77=`test $ac_compiler_gnu = yes && echo yes`
2565 ac_test_FFLAGS=${FFLAGS+set}
2566 ac_save_FFLAGS=$FFLAGS
2568 echo "$as_me:2568: checking whether $F77 accepts -g" >&5
2569 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2570 if test "${ac_cv_prog_f77_g+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 cat >conftest.$ac_ext <<_ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:2580: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:2586: \"$ac_try\"") >&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_prog_f77_g=yes
2593 echo "$as_me: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2600 echo "$as_me:2600: result: $ac_cv_prog_f77_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2602 if test "$ac_test_FFLAGS" = set; then
2603 FFLAGS=$ac_save_FFLAGS
2604 elif test $ac_cv_prog_f77_g = yes; then
2605 if test "$G77" = yes; then
2611 if test "$G77" = yes; then
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 if test -z "$F77"; then
2624 { { echo "$as_me:2624: error: No fortran compiler found" >&5
2625 echo "$as_me: error: No fortran compiler found" >&2;}
2626 { (exit 1); exit 1; }; }
2630 # This is a libtool hack. We never use c++, but libtool supports it and
2631 # thus there are macros that require it. For some reason, these macros are
2632 # always expanded by the libtool scripts, unless the are already present
2633 # in the file. Thus, we include them here but never run them...
2636 ac_cpp='$CXXCPP $CPPFLAGS'
2637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2640 if test -n "$ac_tool_prefix"; then
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 echo "$as_me:2645: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$CXX"; then
2651 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2653 ac_save_IFS=$IFS; IFS=$ac_path_separator
2655 for ac_dir in $ac_dummy; do
2657 test -z "$ac_dir" && ac_dir=.
2658 $as_executable_p "$ac_dir/$ac_word" || continue
2659 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2660 echo "$as_me:2660: found $ac_dir/$ac_word" >&5
2667 if test -n "$CXX"; then
2668 echo "$as_me:2668: result: $CXX" >&5
2669 echo "${ECHO_T}$CXX" >&6
2671 echo "$as_me:2671: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2675 test -n "$CXX" && break
2678 if test -z "$CXX"; then
2680 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 echo "$as_me:2684: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$ac_ct_CXX"; then
2690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2692 ac_save_IFS=$IFS; IFS=$ac_path_separator
2694 for ac_dir in $ac_dummy; do
2696 test -z "$ac_dir" && ac_dir=.
2697 $as_executable_p "$ac_dir/$ac_word" || continue
2698 ac_cv_prog_ac_ct_CXX="$ac_prog"
2699 echo "$as_me:2699: found $ac_dir/$ac_word" >&5
2705 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2706 if test -n "$ac_ct_CXX"; then
2707 echo "$as_me:2707: result: $ac_ct_CXX" >&5
2708 echo "${ECHO_T}$ac_ct_CXX" >&6
2710 echo "$as_me:2710: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 test -n "$ac_ct_CXX" && break
2716 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2721 echo "$as_me:2721: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2745 echo "$as_me:2745: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:2748: \"$ac_try\"") >&5
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2759 rm -f conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2763 echo "$as_me:2763: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2769 echo "$as_me:2769: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line 2775 "configure"
2776 #include "confdefs.h"
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>&5
2790 echo "$as_me:2790: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:2793: \"$ac_try\"") >&5
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_prog_cxx_g=yes
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2806 echo "$as_me:2806: result: $ac_cv_prog_cxx_g" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2808 if test "$ac_test_CXXFLAGS" = set; then
2809 CXXFLAGS=$ac_save_CXXFLAGS
2810 elif test $ac_cv_prog_cxx_g = yes; then
2811 if test "$GXX" = yes; then
2817 if test "$GXX" = yes; then
2823 for ac_declaration in \
2825 '#include <stdlib.h>' \
2826 'extern "C" void std::exit (int) throw (); using std::exit;' \
2827 'extern "C" void std::exit (int); using std::exit;' \
2828 'extern "C" void exit (int) throw ();' \
2829 'extern "C" void exit (int);' \
2832 cat >conftest.$ac_ext <<_ACEOF
2833 #line 2833 "configure"
2834 #include "confdefs.h"
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>&5
2849 echo "$as_me:2849: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:2852: \"$ac_try\"") >&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2859 echo "$as_me: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line 2865 "configure"
2866 #include "confdefs.h"
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:2877: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>&5
2880 echo "$as_me:2880: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:2883: \"$ac_try\"") >&5
2886 echo "$as_me:2886: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2895 echo '#ifdef __cplusplus' >>confdefs.h
2896 echo $ac_declaration >>confdefs.h
2897 echo '#endif' >>confdefs.h
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 depcc="$CXX" am_compiler_list=
2907 echo "$as_me:2907: checking dependency style of $depcc" >&5
2908 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2909 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2913 # We make a subdir and do the tests there. Otherwise we can end up
2914 # making bogus files that we don't know about and never remove. For
2915 # instance it was reported that on HP-UX the gcc test will end up
2916 # making a dummy file named `D' -- because `-MD' means `put the output
2919 # Copy depcomp to subdir because otherwise we won't find it if we're
2920 # using a relative directory.
2921 cp "$am_depcomp" conftest.dir
2924 am_cv_CXX_dependencies_compiler_type=none
2925 if test "$am_compiler_list" = ""; then
2926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2928 for depmode in $am_compiler_list; do
2929 # We need to recreate these files for each test, as the compiler may
2930 # overwrite some of them when testing with obscure command lines.
2931 # This happens at least with the AIX C compiler.
2932 echo '#include "conftest.h"' > conftest.c
2933 echo 'int i;' > conftest.h
2934 echo 'include conftest.Po' > Makefile
2938 # after this tag, mechanisms are not by side-effect, so they'll
2939 # only be used when explicitly requested
2940 if test "x$enable_dependency_tracking" = xyes; then
2948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949 # mode. It turns out that the SunPro C++ compiler does not properly
2950 # handle `-M -o', and we need to detect this.
2951 if depmode=$depmode \
2952 source=conftest.c object=conftest.o \
2953 depfile=conftest.Po tmpdepfile=conftest.TPo \
2954 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2955 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2956 ${MAKE-make} > /dev/null 2>&1; then
2957 am_cv_CXX_dependencies_compiler_type=$depmode
2965 am_cv_CXX_dependencies_compiler_type=none
2969 echo "$as_me:2969: result: $am_cv_CXX_dependencies_compiler_type" >&5
2970 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2971 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
2974 ac_cpp='$CXXCPP $CPPFLAGS'
2975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2978 echo "$as_me:2978: checking how to run the C++ preprocessor" >&5
2979 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2980 if test -z "$CXXCPP"; then
2981 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 # Double quotes because CXXCPP needs to be expanded
2985 for CXXCPP in "$CXX -E" "/lib/cpp"
2987 # break 2 since there is a loop in there.
2989 for ac_cxx_preproc_warn_flag in '' yes
2991 # Use a header file that comes with gcc, so configuring glibc
2992 # with a fresh cross-compiler works.
2993 # On the NeXT, cc -E runs the code through the compiler's parser,
2994 # not just through cpp. "Syntax error" is here to catch this case.
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line 2996 "configure"
2997 #include "confdefs.h"
3001 if { (eval echo "$as_me:3001: \"$ac_cpp conftest.$ac_ext\"") >&5
3002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004 egrep -v '^ *\+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:3007: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev/null; then
3009 if test -s conftest.err; then
3010 ac_cpp_err=$ac_cxx_preproc_warn_flag
3017 if test -z "$ac_cpp_err"; then
3020 echo "$as_me: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 # Broken: fails on valid input.
3025 rm -f conftest.err conftest.$ac_ext
3027 # OK, works on sane cases. Now check whether non-existent headers
3028 # can be detected and how.
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 #include <ac_nonexistent.h>
3034 if { (eval echo "$as_me:3034: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 egrep -v '^ *\+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_cxx_preproc_warn_flag
3050 if test -z "$ac_cpp_err"; then
3051 # Broken: success on invalid input.
3054 echo "$as_me: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3070 ac_cv_prog_CXXCPP=$CXXCPP
3073 CXXCPP=$ac_cv_prog_CXXCPP
3075 ac_cv_prog_CXXCPP=$CXXCPP
3077 echo "$as_me:3077: result: $CXXCPP" >&5
3078 echo "${ECHO_T}$CXXCPP" >&6
3080 for ac_cxx_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # On the NeXT, cc -E runs the code through the compiler's parser,
3085 # not just through cpp. "Syntax error" is here to catch this case.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line 3087 "configure"
3088 #include "confdefs.h"
3092 if { (eval echo "$as_me:3092: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 egrep -v '^ *\+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:3098: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_cxx_preproc_warn_flag
3108 if test -z "$ac_cpp_err"; then
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line 3121 "configure"
3122 #include "confdefs.h"
3123 #include <ac_nonexistent.h>
3125 if { (eval echo "$as_me:3125: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 egrep -v '^ *\+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:3131: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_cxx_preproc_warn_flag
3141 if test -z "$ac_cpp_err"; then
3142 # Broken: success on invalid input.
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 # Passes both tests.
3151 rm -f conftest.err conftest.$ac_ext
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3159 { { echo "$as_me:3159: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3160 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3161 { (exit 1); exit 1; }; }
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 # if we are using mpi, also get an MPICC. We cannot set that in the PROG_CC macro
3173 # above, since autoconf checks that the created file can be executed. This would
3174 # fail on platforms where MPI executables can only be run through a batchqueue.
3176 if test "$enable_mpi" = "yes"; then
3177 for ac_prog in mpxlc mpicc mpcc hcc
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 echo "$as_me:3181: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_MPICC+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$MPICC"; then
3187 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3189 ac_save_IFS=$IFS; IFS=$ac_path_separator
3191 for ac_dir in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir=.
3194 $as_executable_p "$ac_dir/$ac_word" || continue
3195 ac_cv_prog_MPICC="$ac_prog"
3196 echo "$as_me:3196: found $ac_dir/$ac_word" >&5
3202 MPICC=$ac_cv_prog_MPICC
3203 if test -n "$MPICC"; then
3204 echo "$as_me:3204: result: $MPICC" >&5
3205 echo "${ECHO_T}$MPICC" >&6
3207 echo "$as_me:3207: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3211 test -n "$MPICC" && break
3213 test -n "$MPICC" || MPICC="$CC"
3215 # now change the normal cc to the MPI one - see the comment above.
3217 echo "$as_me:3217: checking whether the MPI cc command works" >&5
3218 echo $ECHO_N "checking whether the MPI cc command works... $ECHO_C" >&6 # be paranoid
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line 3221 "configure"
3222 #include "confdefs.h"
3227 int argc; char **argv; MPI_Init(&argc,&argv);
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:3233: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>&5
3236 echo "$as_me:3236: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest$ac_exeext'
3239 { (eval echo "$as_me:3239: \"$ac_try\"") >&5
3242 echo "$as_me:3242: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 echo "$as_me:3244: result: yes" >&5
3245 echo "${ECHO_T}yes" >&6
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 { { echo "$as_me:3249: error: Cannot compile and link MPI code with $CC" >&5
3250 echo "$as_me: error: Cannot compile and link MPI code with $CC" >&2;}
3251 { (exit 1); exit 1; }; }
3253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 cat >>confdefs.h <<\EOF
3259 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mpiio.lo"
3261 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} libnet.lo"
3264 if test "$enable_fortran" = "yes"; then
3267 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3268 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3270 echo "$as_me:3270: checking how to get verbose linking output from $F77" >&5
3271 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3272 if test "${ac_cv_prog_f77_v+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 cat >conftest.$ac_ext <<_ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:3282: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:3285: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:3288: \"$ac_try\"") >&5
3291 echo "$as_me:3291: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3294 # Try some options frequently used verbose output
3295 for ac_verb in -v -verbose --verbose -V; do
3297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3301 cat >conftest.$ac_ext <<_ACEOF
3307 # Compile and link our simple test program by passing a flag (argument
3308 # 1 to this macro) to the Fortran 77 compiler in order to get
3309 # "verbose" output that we can then parse for the Fortran 77 linker
3311 ac_save_FFLAGS=$FFLAGS
3312 FFLAGS="$FFLAGS $ac_verb"
3313 (eval echo $as_me:3313: \"$ac_link\") >&5
3314 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3315 echo "$ac_f77_v_output" >&5
3316 FFLAGS=$ac_save_FFLAGS
3320 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3321 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3324 # If we are using xlf then replace all the commas with spaces.
3325 if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
3326 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
3329 # If we are using Cray Fortran then delete quotes.
3330 # Use "\"" instead of '"' for font-lock-mode.
3331 # FIXME: a more general fix for quoted arguments with spaces?
3332 if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
3333 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
3335 # look for -l* and *.a constructs in the output
3336 for ac_arg in $ac_f77_v_output; do
3338 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3339 ac_cv_prog_f77_v=$ac_verb
3344 if test -z "$ac_cv_prog_f77_v"; then
3345 { echo "$as_me:3345: WARNING: cannot determine how to obtain linking information from $F77" >&5
3346 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3349 echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 { echo "$as_me:3351: WARNING: compilation failed" >&5
3352 echo "$as_me: WARNING: compilation failed" >&2;}
3354 rm -f conftest.$ac_objext conftest.$ac_ext
3357 echo "$as_me:3357: result: $ac_cv_prog_f77_v" >&5
3358 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3359 echo "$as_me:3359: checking for Fortran 77 libraries" >&5
3360 echo $ECHO_N "checking for Fortran 77 libraries... $ECHO_C" >&6
3361 if test "${ac_cv_flibs+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 if test "x$FLIBS" != "x"; then
3365 ac_cv_flibs="$FLIBS" # Let the user override the test.
3369 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3370 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3373 cat >conftest.$ac_ext <<_ACEOF
3379 # Compile and link our simple test program by passing a flag (argument
3380 # 1 to this macro) to the Fortran 77 compiler in order to get
3381 # "verbose" output that we can then parse for the Fortran 77 linker
3383 ac_save_FFLAGS=$FFLAGS
3384 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3385 (eval echo $as_me:3385: \"$ac_link\") >&5
3386 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3387 echo "$ac_f77_v_output" >&5
3388 FFLAGS=$ac_save_FFLAGS
3392 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3393 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3396 # If we are using xlf then replace all the commas with spaces.
3397 if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
3398 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
3401 # If we are using Cray Fortran then delete quotes.
3402 # Use "\"" instead of '"' for font-lock-mode.
3403 # FIXME: a more general fix for quoted arguments with spaces?
3404 if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
3405 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
3410 # Save positional arguments (if any)
3411 ac_save_positional="$@"
3413 set X $ac_f77_v_output
3414 while test $# != 1; do
3418 [\\/]*.a | ?:[\\/]*.a)
3421 for ac_i in $ac_cv_flibs; do
3422 if test x"$ac_arg" = x"$ac_i"; then
3428 if test x"$ac_exists" = xtrue; then
3431 ac_cv_flibs="$ac_cv_flibs $ac_arg"
3438 for ac_i in $ac_cv_flibs; do
3439 if test x"$ac_arg" = x"$ac_i"; then
3445 if test x"$ac_exists" = xtrue; then
3448 if test "$ac_compiler_gnu" = yes; then
3449 for ac_link_opt in $ac_arg; do
3450 ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
3453 ac_cv_flibs="$ac_cv_flibs $ac_arg"
3458 # Ignore these flags.
3459 -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3462 test x"$CYGWIN" != xyes && ac_cv_flibs="$ac_cv_flibs $ac_arg"
3465 # These flags, when seen by themselves, take an argument.
3466 # We remove the space between option and argument and re-iterate
3467 # unless we find an empty arg or a new option (starting with -)
3478 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3481 for ac_i in $ac_cv_flibs; do
3482 if test x"$ac_j" = x"$ac_i"; then
3488 if test x"$ac_exists" = xtrue; then
3491 ac_arg="$ac_arg $ac_j"
3492 ac_cv_flibs="$ac_cv_flibs $ac_j"
3500 for ac_i in $ac_cv_flibs; do
3501 if test x"$ac_arg" = x"$ac_i"; then
3507 if test x"$ac_exists" = xtrue; then
3510 ac_cv_flibs="$ac_cv_flibs $ac_arg"
3514 # Ignore everything else.
3517 # restore positional arguments
3518 set X $ac_save_positional; shift
3520 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3521 # then we insist that the "run path" must be an absolute path (i.e. it
3522 # must begin with a "/").
3523 case `(uname -sr) 2>/dev/null` in
3525 ac_ld_run_path=`echo $ac_f77_v_output |
3526 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3527 test "x$ac_ld_run_path" != x &&
3528 if test "$ac_compiler_gnu" = yes; then
3529 for ac_link_opt in $ac_ld_run_path; do
3530 ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
3533 ac_cv_flibs="$ac_cv_flibs $ac_ld_run_path"
3537 fi # test "x$FLIBS" = "x"
3540 echo "$as_me:3540: result: $ac_cv_flibs" >&5
3541 echo "${ECHO_T}$ac_cv_flibs" >&6
3542 FLIBS="$ac_cv_flibs"
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 echo "$as_me:3550: checking for Fortran 77 name-mangling scheme" >&5
3551 echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6
3552 if test "${ac_cv_f77_mangling+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3557 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3559 cat >conftest.$ac_ext <<_ACEOF
3563 subroutine foo_bar()
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:3568: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>&5
3571 echo "$as_me:3571: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:3574: \"$ac_try\"") >&5
3577 echo "$as_me:3577: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 mv conftest.$ac_objext cf77_test.$ac_objext
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 LIBS="cf77_test.$ac_objext $FLIBS $LIBS"
3591 for ac_foobar in foobar FOOBAR; do
3592 for ac_underscore in "" "_"; do
3593 ac_func="$ac_foobar$ac_underscore"
3594 cat >conftest.$ac_ext <<_ACEOF
3595 #line 3595 "configure"
3596 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3613 rm -f conftest.$ac_objext conftest$ac_exeext
3614 if { (eval echo "$as_me:3614: \"$ac_link\"") >&5
3615 (eval $ac_link) 2>&5
3617 echo "$as_me:3617: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -s conftest$ac_exeext'
3620 { (eval echo "$as_me:3620: \"$ac_try\"") >&5
3623 echo "$as_me:3623: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_success=yes; break 2
3627 echo "$as_me: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3634 if test "$ac_success" = "yes"; then
3647 for ac_extra in "" "_"; do
3648 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line 3650 "configure"
3651 #include "confdefs.h"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3668 rm -f conftest.$ac_objext conftest$ac_exeext
3669 if { (eval echo "$as_me:3669: \"$ac_link\"") >&5
3670 (eval $ac_link) 2>&5
3672 echo "$as_me:3672: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -s conftest$ac_exeext'
3675 { (eval echo "$as_me:3675: \"$ac_try\"") >&5
3678 echo "$as_me:3678: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_success_extra=yes; break
3682 echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688 if test "$ac_success_extra" = "yes"; then
3689 ac_cv_f77_mangling="$ac_case case"
3690 if test -z "$ac_underscore"; then
3691 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
3693 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
3695 if test -z "$ac_extra"; then
3696 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
3698 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
3701 ac_cv_f77_mangling="unknown"
3704 ac_cv_f77_mangling="unknown"
3709 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3710 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3712 rm -f cf77_test* conftest*
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3717 rm -f conftest.$ac_objext conftest.$ac_ext
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 echo "$as_me:3725: result: $ac_cv_f77_mangling" >&5
3726 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
3728 case $ac_cv_f77_mangling in
3729 "lower case, no underscore, no extra underscore")
3730 cat >>confdefs.h <<\EOF
3731 #define F77_FUNC(name,NAME) name
3734 cat >>confdefs.h <<\EOF
3735 #define F77_FUNC_(name,NAME) name
3738 "lower case, no underscore, extra underscore")
3739 cat >>confdefs.h <<\EOF
3740 #define F77_FUNC(name,NAME) name
3743 cat >>confdefs.h <<\EOF
3744 #define F77_FUNC_(name,NAME) name ## _
3747 "lower case, underscore, no extra underscore")
3748 cat >>confdefs.h <<\EOF
3749 #define F77_FUNC(name,NAME) name ## _
3752 cat >>confdefs.h <<\EOF
3753 #define F77_FUNC_(name,NAME) name ## _
3756 "lower case, underscore, extra underscore")
3757 cat >>confdefs.h <<\EOF
3758 #define F77_FUNC(name,NAME) name ## _
3761 cat >>confdefs.h <<\EOF
3762 #define F77_FUNC_(name,NAME) name ## __
3765 "upper case, no underscore, no extra underscore")
3766 cat >>confdefs.h <<\EOF
3767 #define F77_FUNC(name,NAME) NAME
3770 cat >>confdefs.h <<\EOF
3771 #define F77_FUNC_(name,NAME) NAME
3774 "upper case, no underscore, extra underscore")
3775 cat >>confdefs.h <<\EOF
3776 #define F77_FUNC(name,NAME) NAME
3779 cat >>confdefs.h <<\EOF
3780 #define F77_FUNC_(name,NAME) NAME ## _
3783 "upper case, underscore, no extra underscore")
3784 cat >>confdefs.h <<\EOF
3785 #define F77_FUNC(name,NAME) NAME ## _
3788 cat >>confdefs.h <<\EOF
3789 #define F77_FUNC_(name,NAME) NAME ## _
3792 "upper case, underscore, extra underscore")
3793 cat >>confdefs.h <<\EOF
3794 #define F77_FUNC(name,NAME) NAME ## _
3797 cat >>confdefs.h <<\EOF
3798 #define F77_FUNC_(name,NAME) NAME ## __
3802 { echo "$as_me:3802: WARNING: unknown Fortran 77 name-mangling scheme" >&5
3803 echo "$as_me: WARNING: unknown Fortran 77 name-mangling scheme" >&2;}
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 echo "$as_me:3814: checking how to run the C preprocessor" >&5
3815 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3816 # On Suns, sometimes $CPP names a directory.
3817 if test -n "$CPP" && test -d "$CPP"; then
3820 if test -z "$CPP"; then
3821 if test "${ac_cv_prog_CPP+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 # Double quotes because CPP needs to be expanded
3825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3827 # break 2 since there is a loop in there.
3829 for ac_c_preproc_warn_flag in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line 3836 "configure"
3837 #include "confdefs.h"
3841 if { (eval echo "$as_me:3841: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3844 egrep -v '^ *\+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:3847: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null; then
3849 if test -s conftest.err; then
3850 ac_cpp_err=$ac_c_preproc_warn_flag
3857 if test -z "$ac_cpp_err"; then
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 # Broken: fails on valid input.
3865 rm -f conftest.err conftest.$ac_ext
3867 # OK, works on sane cases. Now check whether non-existent headers
3868 # can be detected and how.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3872 #include <ac_nonexistent.h>
3874 if { (eval echo "$as_me:3874: \"$ac_cpp conftest.$ac_ext\"") >&5
3875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3877 egrep -v '^ *\+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 echo "$as_me:3880: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null; then
3882 if test -s conftest.err; then
3883 ac_cpp_err=$ac_c_preproc_warn_flag
3890 if test -z "$ac_cpp_err"; then
3891 # Broken: success on invalid input.
3894 echo "$as_me: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 # Passes both tests.
3900 rm -f conftest.err conftest.$ac_ext
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3917 echo "$as_me:3917: result: $CPP" >&5
3918 echo "${ECHO_T}$CPP" >&6
3920 for ac_c_preproc_warn_flag in '' yes
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # On the NeXT, cc -E runs the code through the compiler's parser,
3925 # not just through cpp. "Syntax error" is here to catch this case.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line 3927 "configure"
3928 #include "confdefs.h"
3932 if { (eval echo "$as_me:3932: \"$ac_cpp conftest.$ac_ext\"") >&5
3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3935 egrep -v '^ *\+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:3938: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
3948 if test -z "$ac_cpp_err"; then
3951 echo "$as_me: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3953 # Broken: fails on valid input.
3956 rm -f conftest.err conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether non-existent headers
3959 # can be detected and how.
3960 cat >conftest.$ac_ext <<_ACEOF
3961 #line 3961 "configure"
3962 #include "confdefs.h"
3963 #include <ac_nonexistent.h>
3965 if { (eval echo "$as_me:3965: \"$ac_cpp conftest.$ac_ext\"") >&5
3966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3968 egrep -v '^ *\+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:3971: \$? = $ac_status" >&5
3972 (exit $ac_status); } >/dev/null; then
3973 if test -s conftest.err; then
3974 ac_cpp_err=$ac_c_preproc_warn_flag
3981 if test -z "$ac_cpp_err"; then
3982 # Broken: success on invalid input.
3985 echo "$as_me: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 # Passes both tests.
3991 rm -f conftest.err conftest.$ac_ext
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3999 { { echo "$as_me:3999: error: C preprocessor \"$CPP\" fails sanity check" >&5
4000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4001 { (exit 1); exit 1; }; }
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 if test "$enable_cpu_optimization" = "yes"; then
4013 # Determine the exact cpu type on some common systems where it is
4014 # not visible from the host triplet.
4015 # (on e.g. intel and dec/tru64 the host type is enough)
4017 case "${host_cpu}-${host_os}" in
4020 # we need to fool the combination of m4, sh and awk - thus the seemingly unnecessary n
4021 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ n=1; print $n }'`
4022 if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER4 >/dev/null 2>&1; then
4024 elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER3 >/dev/null 2>&1; then
4026 elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER2 >/dev/null 2>&1; then
4034 if /usr/sbin/lscfg -vp | grep PowerPC | grep 604 >/dev/null 2>&1; then
4036 elif /usr/sbin/lscfg -vp | grep PowerPC | grep 603 >/dev/null 2>&1; then
4038 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64a >/dev/null 2>&1; then
4040 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64b >/dev/null 2>&1; then
4042 elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64c >/dev/null 2>&1; then
4050 if /sbin/hinv | grep CPU | grep R12000 >/dev/null 2>&1; then
4052 elif /sbin/hinv | grep CPU | grep R10000 >/dev/null 2>&1; then
4054 elif /sbin/hinv | grep CPU | grep R8000 >/dev/null 2>&1; then
4056 elif /sbin/hinv | grep CPU | grep R5000 >/dev/null 2>&1; then
4064 if /usr/sbin/prtconf | grep UltraSPARC-III >/dev/null 2>&1; then
4066 elif /usr/sbin/prtconf | grep UltraSPARC-IIi >/dev/null 2>&1; then
4068 elif /usr/sbin/prtconf | grep UltraSPARC-II >/dev/null 2>&1; then
4070 elif /usr/sbin/prtconf | grep UltraSPARC >/dev/null 2>&1; then
4086 # Try to determine "good" native compiler flags if none specified on command
4087 # line. To avoid repeating the entire procedure for fortran flags, we first
4088 # determine our suggested choices for both C and fortran, and then possibly
4089 # override them with user choices.
4093 case "${host_cpu}-${host_os}" in
4098 xCFLAGS="-fast -xO5 -xtarget=ultra3 -fsimple=2 -fnonstd -dalign"
4102 xCFLAGS="-fast -xO5 -xtarget=ultra2i -fsimple=2 -fnonstd -dalign"
4106 xCFLAGS="-fast -xO5 -xtarget=ultra2 -fsimple=2 -fnonstd -dalign"
4110 xCFLAGS="-fast -xO5 -xtarget=ultra -fsimple=2 -fnonstd -dalign"
4114 xCFLAGS="-native -fast -xO5 -fsimple=2 -fnonstd -dalign"
4121 xCFLAGS="-Ae +O3 +Oall"
4123 # If you haven't noticed, we don't like hp very much...
4124 # but perhaps that will change if they make something nice out of ia64.
4128 # The GNU compilers are checked outside this case statement.
4129 # 1. Check for the SGI compilers. Actually, they report the are GNU C,
4130 # so this check isn't used right now, but we want to identify them
4131 # even if they change this later.
4132 if ($CC -v 2>&1 | grep SGI > /dev/null); then
4133 xCFLAGS="-O3 -Ofast"
4136 if ($F77 -v 2>&1 | grep SGI > /dev/null); then
4137 xFFLAGS="-O3 -Ofast"
4139 # PORTME 2. Check for intel compilers when we get our hands on one!
4142 # dont use inter-procedure analysis for the innerloops - they take
4143 # forever to compile with it, and it doesnt help at all.
4146 xCFLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384"
4147 xFFLAGS="-O3 -Q -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384 -qhot -qnoipa"
4150 xCFLAGS="-O3 -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384"
4151 xFFLAGS="-O3 -Q -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384 -qhot -qnoipa"
4154 xCFLAGS="-O3 -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384"
4155 xFFLAGS="-O3 -Q -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384 -qhot -qnoipa"
4158 xCFLAGS="-O3 -qarch=pwr -qtune=pwr -qmaxmem=16384"
4159 xFFLAGS="-O3 -Q -qarch=pwr -qtune=pwr -qmaxmem=16384 -qhot -qnoipa"
4162 # I don't think people are using anything older than power2, so we tune for
4163 # pwr, but dont set the arch since it is nice to have common binaries
4164 # that run also on powerpc.
4165 xCFLAGS="-O3 -qtune=pwr -qmaxmem=16384"
4166 xFFLAGS="-O3 -Q -qtune=pwr -qmaxmem=16384 -qhot"
4174 xCFLAGS="-O3 -qarch=604 -qtune=604 -qmaxmem=16384"
4175 xFFLAGS="-O3 -Q -qarch=604 -qtune=604 -qmaxmem=16384 -qhot"
4178 xCFLAGS="-O3 -qarch=603 -qtune=603 -qmaxmem=16384"
4179 xFFLAGS="-O3 -Q -qarch=603 -qtune=603 -qmaxmem=16384 -qhot"
4182 xCFLAGS="-O3 -qarch=rs64a -qtune=rs64a -qmaxmem=16384"
4183 xFFLAGS="-O3 -Q -qarch=rs64a -qtune=rs64a -qmaxmem=16384 -qhot"
4186 xCFLAGS="-O3 -qarch=rs64b -qtune=rs64b -qmaxmem=16384"
4187 xFFLAGS="-O3 -Q -qarch=rs64b -qtune=rs64b -qmaxmem=16384 -qhot"
4190 xCFLAGS="-O3 -qarch=rs64c -qtune=rs64c -qmaxmem=16384"
4191 xFFLAGS="-O3 -Q -qarch=rs64c -qtune=rs64c -qmaxmem=16384 -qhot"
4194 xCFLAGS="-O3 -qmaxmem=16384"
4195 xFFLAGS="-O3 -Q -qmaxmem=16384 -qhot"
4201 xCFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -D__INLINE_INTRINSICS"
4202 xFFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -OPT:cray_ivdep=TRUE"
4204 if $CC -version | grep "Version 7.1" > /dev/null 2>&1; then
4205 xCFLAGS="$xCFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
4206 xFFLAGS="$xFFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
4209 if $CC -version | grep "Version 7.3" > /dev/null 2>&1; then
4210 xCFLAGS="$xCFLAGS -SWP:heur=fdms,nhms,fdnms"
4211 xFFLAGS="$xFFLAGS -SWP:heur=fdms,nhms,fdnms"
4213 LDFLAGS="$LDFLAGS -woff 84"
4217 xCFLAGS="-n32 -r12000 -mips4 $xCFLAGS"
4218 xFFLAGS="-n32 -r12000 -mips4 $xFFLAGS"
4219 xLDFLAGS="-n32 -r12000 -mips4"
4222 xCFLAGS="-n32 -r10000 -mips4 $xCFLAGS"
4223 xFFLAGS="-n32 -r10000 -mips4 $xFFLAGS"
4224 xLDFLAGS="-n32 -r10000 -mips4"
4227 xCFLAGS="-n32 -r8000 -mips4 $xCFLAGS"
4228 xFFLAGS="-n32 -r8000 -mips4 $xFFLAGS"
4229 xLDFLAGS="-n32 -r8000 -mips4"
4232 xCFLAGS="-n32 -r5000 -mips4 $xCFLAGS"
4233 xFFLAGS="-n32 -r5000 -mips4 $xFFLAGS"
4234 xLDFLAGS="-n32 -r5000 -mips4"
4237 xCFLAGS="-n32 $xCFLAGS"
4238 xFFLAGS="-n32 $xFFLAGS"
4245 # NB: -arch implies -tune according to the cc manual.
4246 # We dont use -ifo since it conflicts with dependency
4247 # generation on old versions of the compiler.
4248 case "${host_cpu}" in
4250 # extract the processor from cpu type (e.g. alphaev56 -> ev56)
4251 evtype=`echo ${host_cpu} | sed 's/alpha//'`
4252 xCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
4253 xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
4254 xASFLAGS="-O4 -no_ifo -arch $evtype"
4258 xCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
4259 xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
4260 xASFLAGS="-O4 -no_ifo -arch host"
4267 case "${host_cpu}" in
4269 # extract the processor from cpu type (e.g. alphaev56 -> ev56)
4270 evtype=`echo ${host_cpu} | sed 's/alpha//'`
4271 tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
4272 tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
4273 tmpASFLAGS="-O4 -no_ifo -arch $evtype"
4277 tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
4278 tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
4279 tmpASFLAGS="-O4 -no_ifo -arch host"
4283 # Compaq sometimes uses -version and sometimes -V
4284 # Not 100% sure if ccc always has -V and F77 -version, so
4285 # we check both alternatives to be sure.
4286 if (($CC -V 2>&1 | grep ompaq > /dev/null) ||
4287 ($CC -version 2>&1 | grep ompaq > /dev/null)); then
4288 xCFLAGS="$tmpCFLAGS"
4289 xASFLAGS="$tmpASFLAGS"
4292 if test "$enable_fortran" = "yes"; then
4293 if (($F77 -V 2>&1 | grep ompaq > /dev/null) ||
4294 ($F77 -version 2>&1 | grep ompaq > /dev/null)); then
4295 xFFLAGS="$tmpFFLAGS"
4301 # most of these systems (e.g. linux, FreeBSD) use gcc which is treated
4302 # further down, but we can at least check if the Portland compilers are used:
4303 if $CC -V 2> /dev/null | grep ortland > /dev/null 2>&1; then
4304 case "${host_cpu}" in
4312 xCFLAGS="$pgiopt -fast -pc 32"
4315 if test "$enable_fortran" = "yes"; then
4316 if $F77 -version 2> /dev/null | grep Portland > /dev/null 2>&1; then
4322 # Phew, end of all those operating systems and processors!
4324 # use default flags for gcc/g77 on all systems, but catch the SGI/ia64 sgicc
4325 if test $ac_cv_c_compiler_gnu = yes; then
4326 if ($CC -v 2>&1 | grep SGI > /dev/null); then
4327 xCFLAGS="-O3 -Ofast"
4330 xCFLAGS="-O6 -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
4331 # the portland compiler only knows .s files, and always runs them
4332 # through cpp. We support this by telling gcc to preprocess .s files.
4333 xASFLAGS="$xCFLAGS -x assembler-with-cpp"
4334 # -malign-double for x86 systems
4336 echo "$as_me:4336: checking whether $CC accepts -malign-double" >&5
4337 echo $ECHO_N "checking whether $CC accepts -malign-double... $ECHO_C" >&6
4338 if test "${ac_align_double+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 echo 'void f(){}' > conftest.c
4342 if test -z "`$CC -malign-double -c conftest.c 2>&1`"; then
4350 echo "$as_me:4350: result: $ac_align_double" >&5
4351 echo "${ECHO_T}$ac_align_double" >&6
4352 if test "$ac_align_double" = yes; then
4354 xCFLAGS="$xCFLAGS -malign-double"
4363 if test $enable_fortran = yes; then
4364 if test $ac_cv_f77_compiler_gnu = yes; then
4365 if ($F77 -v 2>&1 | grep SGI > /dev/null); then
4366 xFFLAGS="-O3 -Ofast"
4368 xFFLAGS="-O3 -ffast-math -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
4369 # -malign-double for f77 on x86 systems - haven't checked that this works yet.
4370 #ACX_CHECK_F77_FLAGS(-malign-double,align_double,xFFLAGS="$xFFLAGS -malign-double")
4377 if test "$GCC" = "yes"; then
4378 # try to guess correct CPU flags, at least for powerpc linux
4379 case "${host_cpu}" in
4380 # i586/i686 cpu flags don't improve speed, thus no need to use them.
4381 # don't check f77 separately - we assume f77 and gcc are similar
4383 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4384 is60x=`echo $cputype | egrep "^600-9e?$"`
4385 if test -n "$is60x"; then
4387 echo "$as_me:4387: checking whether $CC accepts -mcpu=$cputype" >&5
4388 echo $ECHO_N "checking whether $CC accepts -mcpu=$cputype... $ECHO_C" >&6
4389 if test "${ac_m_cpu_60x+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 echo 'void f(){}' > conftest.c
4393 if test -z "`$CC -mcpu=$cputype -c conftest.c 2>&1`"; then
4401 echo "$as_me:4401: result: $ac_m_cpu_60x" >&5
4402 echo "${ECHO_T}$ac_m_cpu_60x" >&6
4403 if test "$ac_m_cpu_60x" = yes; then
4405 CPU_FLAGS=-mcpu=$cputype
4411 elif test "$cputype" = 750; then
4413 echo "$as_me:4413: checking whether $CC accepts -mcpu=750" >&5
4414 echo $ECHO_N "checking whether $CC accepts -mcpu=750... $ECHO_C" >&6
4415 if test "${ac_m_cpu_750+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 echo 'void f(){}' > conftest.c
4419 if test -z "`$CC -mcpu=750 -c conftest.c 2>&1`"; then
4427 echo "$as_me:4427: result: $ac_m_cpu_750" >&5
4428 echo "${ECHO_T}$ac_m_cpu_750" >&6
4429 if test "$ac_m_cpu_750" = yes; then
4438 if test -z "$CPU_FLAGS"; then
4440 echo "$as_me:4440: checking whether $CC accepts -mcpu=powerpc" >&5
4441 echo $ECHO_N "checking whether $CC accepts -mcpu=powerpc... $ECHO_C" >&6
4442 if test "${ac_m_cpu_powerpc+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 echo 'void f(){}' > conftest.c
4446 if test -z "`$CC -mcpu=powerpc -c conftest.c 2>&1`"; then
4447 ac_m_cpu_powerpc=yes
4454 echo "$as_me:4454: result: $ac_m_cpu_powerpc" >&5
4455 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4456 if test "$ac_m_cpu_powerpc" = yes; then
4458 CPU_FLAGS=-mcpu=powerpc
4465 if test -z "$CPU_FLAGS"; then
4467 echo "$as_me:4467: checking whether $CC accepts -mpowerpc" >&5
4468 echo $ECHO_N "checking whether $CC accepts -mpowerpc... $ECHO_C" >&6
4469 if test "${ac_m_powerpc+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 echo 'void f(){}' > conftest.c
4473 if test -z "`$CC -mpowerpc -c conftest.c 2>&1`"; then
4481 echo "$as_me:4481: result: $ac_m_powerpc" >&5
4482 echo "${ECHO_T}$ac_m_powerpc" >&6
4483 if test "$ac_m_powerpc" = yes; then
4504 if test -n "$CPU_FLAGS"; then
4505 xCFLAGS="$xCFLAGS $CPU_FLAGS"
4506 xFFLAGS="$xFFLAGS $CPU_FLAGS"
4507 xASFLAGS="$xASFLAGS $CPU_FLAGS"
4510 # Now check if the user provided anything special for C or fortran...
4511 # Not nice to have checked everything then, but otherwise we would have
4512 # to use entirely separate checks for C and fortran flags, doubling the code.
4513 if test "$ac_test_CFLAGS" != "set"; then
4515 # Use the extra link optimization flags on e.g. irix only when
4516 # we are using our own C compiler flags
4517 LDFLAGS="$LDFLAGS $xLDFLAGS"
4519 if test -z "$CFLAGS"; then
4520 echo "********************************************************************"
4521 echo "* Note: We have not optimized the C compiler flags on your target *"
4522 echo "* yet, but the default CFLAGS=-O3 should be OK in most cases. *"
4523 echo "* You can override this by setting the CFLAGS environment variable.*"
4524 echo "*******************************************************************"
4528 echo "$as_me:4528: checking whether $CC accepts ${CFLAGS}" >&5
4529 echo $ECHO_N "checking whether $CC accepts ${CFLAGS}... $ECHO_C" >&6
4530 if test "${ac_guessed_cflags+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 echo 'void f(){}' > conftest.c
4534 if test -z "`$CC ${CFLAGS} -c conftest.c 2>&1`"; then
4535 ac_guessed_cflags=yes
4537 ac_guessed_cflags=no
4542 echo "$as_me:4542: result: $ac_guessed_cflags" >&5
4543 echo "${ECHO_T}$ac_guessed_cflags" >&6
4544 if test "$ac_guessed_cflags" = yes; then
4550 echo "*******************************************************************"
4551 echo "* Sorry, these optimization settings don't seem to work for *"
4552 echo "* your C compiler. Use make CFLAGS=..., or edit the top Makefile. *"
4553 echo "*******************************************************************"
4559 echo "******************************************"
4560 echo "* Using CFLAGS from environment variable *"
4561 echo "******************************************"
4564 if test "$enable_fortran" = "yes"; then
4565 if test "$ac_test_FFLAGS" != "set"; then
4567 if test -z "$FFLAGS"; then
4568 echo "********************************************************************"
4569 echo "* Note: We have not optimized the Fortran compiler flags on your *"
4570 echo "* target, but the default FFLAGS=-O3 should be OK in most cases. *"
4571 echo "* You can override this by setting the CFLAGS environment variable.*"
4572 echo "********************************************************************"
4576 echo "$as_me:4576: checking whether $F77 accepts ${FFLAGS}" >&5
4577 echo $ECHO_N "checking whether $F77 accepts ${FFLAGS}... $ECHO_C" >&6
4578 if test "${ac_guessed_fflags+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat > conftest.f << EOF
4586 if test -z "`$F77 ${FFLAGS} -c conftest.f `"; then
4587 ac_guessed_fflags=yes
4589 ac_guessed_fflags=no
4594 echo "$as_me:4594: result: $ac_guessed_fflags" >&5
4595 echo "${ECHO_T}$ac_guessed_fflags" >&6
4596 if test "$ac_guessed_fflags" = yes; then
4602 echo "*******************************************************************"
4603 echo "* Sorry, these optimization settings don't seem to work for *"
4604 echo "* your f77 compiler. Use make FFLAGS=.., or edit the top Makefile.*"
4605 echo "*******************************************************************"
4611 echo "******************************************"
4612 echo "* Using FFLAGS from environment variable *"
4613 echo "******************************************"
4616 # Be silent for assembly flags, they are usually not important anyway
4617 if test "${ASFLAGS+set}" != set; then
4618 if test "${xASFLAGS+set}" != set; then
4624 # Check x86 asm prerequisites and the capabilities of as
4625 if test "$enable_x86_asm" = "yes"; then
4626 if test "$enable_float" = "no"; then
4627 { echo "$as_me:4627: WARNING: x86 assembly loops can only be used in single precision - disabling" >&5
4628 echo "$as_me: WARNING: x86 assembly loops can only be used in single precision - disabling" >&2;}
4631 echo "$as_me:4631: checking whether as fully supports intel syntax" >&5
4632 echo $ECHO_N "checking whether as fully supports intel syntax... $ECHO_C" >&6
4633 cat > conftest.s << EOF
4634 .intel_syntax noprefix
4638 movups xmm0,checkasm
4642 if { ac_try='$CC -c conftest.s'
4643 { (eval echo "$as_me:4643: \"$ac_try\"") >&5
4646 echo "$as_me:4646: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 echo "$as_me:4648: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6
4651 echo "$as_me:4651: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 { { echo "$as_me:4653: error: Upgrade to a more recent binutils, download the as executable
4654 from www.gromacs.org, or disable assembly loops." >&5
4655 echo "$as_me: error: Upgrade to a more recent binutils, download the as executable
4656 from www.gromacs.org, or disable assembly loops." >&2;}
4657 { (exit 1); exit 1; }; }
4659 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} x86_cpuid.lo x86_sse.lo x86_3dnow.lo"
4661 cat >>confdefs.h <<\EOF
4668 case "${host_cpu}" in
4671 cat >>confdefs.h <<\EOF
4675 cat > conftest.s << EOF
4683 if !({ ac_try='$CC -c conftest.s'
4684 { (eval echo "$as_me:4684: \"$ac_try\"") >&5
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }); then
4689 AXP_ASM_CAPITAL_S_TRUE=
4690 AXP_ASM_CAPITAL_S_FALSE='#'
4692 AXP_ASM_CAPITAL_S_TRUE='#'
4693 AXP_ASM_CAPITAL_S_FALSE=
4695 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} axp_asm.lo"
4700 # Extract the first word of "ident", so it can be a program name with args.
4701 set dummy ident; ac_word=$2
4702 echo "$as_me:4702: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_IDENT+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_cv_path_IDENT="$IDENT" # Let the user override the test with a path.
4712 ac_save_IFS=$IFS; IFS=$ac_path_separator
4714 for ac_dir in $ac_dummy; do
4716 test -z "$ac_dir" && ac_dir=.
4717 if $as_executable_p "$ac_dir/$ac_word"; then
4718 ac_cv_path_IDENT="$ac_dir/$ac_word"
4719 echo "$as_me:4719: found $ac_dir/$ac_word" >&5
4724 test -z "$ac_cv_path_IDENT" && ac_cv_path_IDENT="no"
4728 IDENT=$ac_cv_path_IDENT
4730 if test -n "$IDENT"; then
4731 echo "$as_me:4731: result: $IDENT" >&5
4732 echo "${ECHO_T}$IDENT" >&6
4734 echo "$as_me:4734: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 if test "$IDENT" != "no"; then
4739 # seems as if we have the ident program, but does the
4740 # compiler support it?
4741 echo "$as_me:4741: checking whether the compiler supports ident" >&5
4742 echo $ECHO_N "checking whether the compiler supports ident... $ECHO_C" >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4745 #line 4745 "configure"
4746 #include "confdefs.h"
4747 #ident "@(#) file.h 1.1 12/16/92"
4749 if { (eval echo "$as_me:4749: \"$ac_cpp conftest.$ac_ext\"") >&5
4750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752 egrep -v '^ *\+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 echo "$as_me:4755: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null; then
4757 if test -s conftest.err; then
4758 ac_cpp_err=$ac_c_preproc_warn_flag
4765 if test -z "$ac_cpp_err"; then
4767 echo "$as_me:4767: result: yes" >&5
4768 echo "${ECHO_T}yes" >&6
4770 cat >>confdefs.h <<\EOF
4775 echo "$as_me: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4777 echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4780 rm -f conftest.err conftest.$ac_ext
4783 # Find the correct PATH separator. Usually this is `:', but
4784 # DJGPP uses `;' like DOS.
4785 if test "X${PATH_SEPARATOR+set}" != Xset; then
4786 UNAME=${UNAME-`uname 2>/dev/null`}
4788 *-DOS) PATH_SEPARATOR=';' ;;
4789 *) PATH_SEPARATOR=':' ;;
4793 # Check whether --enable-shared or --disable-shared was given.
4794 if test "${enable_shared+set}" = set; then
4795 enableval="$enable_shared"
4796 p=${PACKAGE-default}
4798 yes) enable_shared=yes ;;
4799 no) enable_shared=no ;;
4802 # Look at the argument we got. We use all the common list separators.
4803 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4804 for pkg in $enableval; do
4806 if test "X$pkg" = "X$p"; then
4816 # Check whether --enable-static or --disable-static was given.
4817 if test "${enable_static+set}" = set; then
4818 enableval="$enable_static"
4819 p=${PACKAGE-default}
4821 yes) enable_static=yes ;;
4822 no) enable_static=no ;;
4825 # Look at the argument we got. We use all the common list separators.
4826 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4827 for pkg in $enableval; do
4829 if test "X$pkg" = "X$p"; then
4839 # Check whether --enable-fast-install or --disable-fast-install was given.
4840 if test "${enable_fast_install+set}" = set; then
4841 enableval="$enable_fast_install"
4842 p=${PACKAGE-default}
4844 yes) enable_fast_install=yes ;;
4845 no) enable_fast_install=no ;;
4847 enable_fast_install=no
4848 # Look at the argument we got. We use all the common list separators.
4849 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4850 for pkg in $enableval; do
4852 if test "X$pkg" = "X$p"; then
4853 enable_fast_install=yes
4860 enable_fast_install=yes
4863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4864 if test "${with_gnu_ld+set}" = set; then
4865 withval="$with_gnu_ld"
4866 test "$withval" = no || with_gnu_ld=yes
4871 if test "$GCC" = yes; then
4872 # Check if gcc -print-prog-name=ld gives a path.
4873 echo "$as_me:4873: checking for ld used by GCC" >&5
4874 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4877 # gcc leaves a trailing carriage return which upsets mingw
4878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4883 # Accept absolute paths.
4885 re_direlt='/[^/][^/]*/\.\./'
4886 # Canonicalize the path of ld
4887 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4888 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4889 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4891 test -z "$LD" && LD="$ac_prog"
4894 # If it fails, then pretend we aren't using GCC.
4898 # If it is relative, then search for the first ld in PATH.
4902 elif test "$with_gnu_ld" = yes; then
4903 echo "$as_me:4903: checking for GNU ld" >&5
4904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4906 echo "$as_me:4906: checking for non-GNU ld" >&5
4907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4909 if test "${lt_cv_path_LD+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -z "$LD"; then
4913 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4914 for ac_dir in $PATH; do
4916 test -z "$ac_dir" && ac_dir=.
4917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4918 lt_cv_path_LD="$ac_dir/$ac_prog"
4919 # Check to see if the program is GNU ld. I'd rather use --version,
4920 # but apparently some GNU ld's only accept -v.
4921 # Break only if it was the GNU/non-GNU ld that we prefer.
4922 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4923 test "$with_gnu_ld" != no && break
4925 test "$with_gnu_ld" != yes && break
4931 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4936 if test -n "$LD"; then
4937 echo "$as_me:4937: result: $LD" >&5
4938 echo "${ECHO_T}$LD" >&6
4940 echo "$as_me:4940: result: no" >&5
4941 echo "${ECHO_T}no" >&6
4943 test -z "$LD" && { { echo "$as_me:4943: error: no acceptable ld found in \$PATH" >&5
4944 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4945 { (exit 1); exit 1; }; }
4946 echo "$as_me:4946: checking if the linker ($LD) is GNU ld" >&5
4947 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4948 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4952 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4953 lt_cv_prog_gnu_ld=yes
4955 lt_cv_prog_gnu_ld=no
4958 echo "$as_me:4958: result: $lt_cv_prog_gnu_ld" >&5
4959 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4960 with_gnu_ld=$lt_cv_prog_gnu_ld
4962 echo "$as_me:4962: checking for $LD option to reload object files" >&5
4963 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4964 if test "${lt_cv_ld_reload_flag+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 lt_cv_ld_reload_flag='-r'
4969 echo "$as_me:4969: result: $lt_cv_ld_reload_flag" >&5
4970 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4971 reload_flag=$lt_cv_ld_reload_flag
4972 case $reload_flag in
4974 *) reload_flag=" $reload_flag" ;;
4976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4978 echo "$as_me:4978: checking for BSD-compatible nm" >&5
4979 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4980 if test "${lt_cv_path_NM+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 if test -n "$NM"; then
4984 # Let the user override the test.
4987 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4988 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4990 test -z "$ac_dir" && ac_dir=.
4991 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4992 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4993 # Check to see if the nm accepts a BSD-compat flag.
4994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4995 # nm: unknown option "B" ignored
4996 # Tru64's nm complains that /dev/null is an invalid object file
4997 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4998 lt_cv_path_NM="$tmp_nm -B"
5000 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5001 lt_cv_path_NM="$tmp_nm -p"
5004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5005 continue # so that we can try to find one that supports BSD flags
5010 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5013 echo "$as_me:5013: result: $lt_cv_path_NM" >&5
5014 echo "${ECHO_T}$lt_cv_path_NM" >&6
5017 echo "$as_me:5017: checking whether ln -s works" >&5
5018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5020 if test "$LN_S" = "ln -s"; then
5021 echo "$as_me:5021: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6
5024 echo "$as_me:5024: result: no, using $LN_S" >&5
5025 echo "${ECHO_T}no, using $LN_S" >&6
5028 echo "$as_me:5028: checking how to recognise dependant libraries" >&5
5029 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5030 if test "${lt_cv_deplibs_check_method+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 lt_cv_file_magic_cmd='$MAGIC_CMD'
5034 lt_cv_file_magic_test_file=
5035 lt_cv_deplibs_check_method='unknown'
5036 # Need to set the preceding variable on all platforms that support
5037 # interlibrary dependencies.
5038 # 'none' -- dependencies not supported.
5039 # `unknown' -- same as none, but documents that we really don't know.
5040 # 'pass_all' -- all dependencies passed with no checks.
5041 # 'test_compile' -- check by making test program.
5042 # ['file_magic [regex]'] -- check by looking for files in library path
5043 # which responds to the $file_magic_cmd with a given egrep regex.
5044 # If you have `file' or equivalent on your system and you're not sure
5045 # whether `pass_all' will *always* work, you probably want this one.
5049 lt_cv_deplibs_check_method=pass_all
5053 lt_cv_deplibs_check_method=pass_all
5057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5058 lt_cv_file_magic_cmd='/usr/bin/file -L'
5059 lt_cv_file_magic_test_file=/shlib/libc.so
5062 cygwin* | mingw* | pw32*)
5063 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5064 lt_cv_file_magic_cmd='$OBJDUMP -f'
5067 darwin* | rhapsody*)
5068 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5069 lt_cv_file_magic_cmd='/usr/bin/file -L'
5071 rhapsody* | darwin1.012)
5072 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5075 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5081 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5084 # Not sure whether the presence of OpenBSD here was a mistake.
5085 # Let's accept both of them until this is cleared up.
5086 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5087 lt_cv_file_magic_cmd=/usr/bin/file
5088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5092 lt_cv_deplibs_check_method=pass_all
5097 lt_cv_deplibs_check_method=pass_all
5100 hpux10.20* | hpux11*)
5101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5102 lt_cv_file_magic_cmd=/usr/bin/file
5103 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5109 # this will be overridden with pass_all, but let us keep it just in case
5110 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5114 *-32|*"-32 ") libmagic=32-bit;;
5115 *-n32|*"-n32 ") libmagic=N32;;
5116 *-64|*"-64 ") libmagic=64-bit;;
5117 *) libmagic=never-match;;
5119 # this will be overridden with pass_all, but let us keep it just in case
5120 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5123 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5124 lt_cv_deplibs_check_method=pass_all
5127 # This must be Linux ELF.
5130 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* )
5131 lt_cv_deplibs_check_method=pass_all ;;
5133 # glibc up to 2.1.1 does not perform some relocations on ARM
5134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5136 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5140 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5141 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5143 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5149 lt_cv_file_magic_cmd=/usr/bin/file
5150 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5153 osf3* | osf4* | osf5*)
5154 # this will be overridden with pass_all, but let us keep it just in case
5155 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5156 lt_cv_file_magic_test_file=/shlib/libc.so
5157 lt_cv_deplibs_check_method=pass_all
5161 lt_cv_deplibs_check_method=pass_all
5165 lt_cv_deplibs_check_method=pass_all
5166 lt_cv_file_magic_test_file=/lib/libc.so
5169 sysv5uw[78]* | sysv4*uw2*)
5170 lt_cv_deplibs_check_method=pass_all
5173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5174 case $host_vendor in
5176 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]'
5177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5180 lt_cv_deplibs_check_method=pass_all
5183 lt_cv_file_magic_cmd='/bin/file'
5184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5187 lt_cv_file_magic_cmd='/bin/file'
5188 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5189 lt_cv_file_magic_test_file=/lib/libc.so
5196 echo "$as_me:5196: result: $lt_cv_deplibs_check_method" >&5
5197 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5198 file_magic_cmd=$lt_cv_file_magic_cmd
5199 deplibs_check_method=$lt_cv_deplibs_check_method
5200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5202 # If no C compiler was specified, use CC.
5205 # Allow CC to be a program name with arguments.
5209 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5210 if test "${enable_libtool_lock+set}" = set; then
5211 enableval="$enable_libtool_lock"
5214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5216 # Some flags need to be propagated to the compiler or linker for good
5220 # Find out which ABI we are using.
5221 echo '#line 5221 "configure"' > conftest.$ac_ext
5222 if { (eval echo "$as_me:5222: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>&5
5225 echo "$as_me:5225: \$? = $ac_status" >&5
5226 (exit $ac_status); }; then
5227 case `/usr/bin/file conftest.$ac_objext` in
5243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5244 SAVE_CFLAGS="$CFLAGS"
5245 CFLAGS="$CFLAGS -belf"
5246 echo "$as_me:5246: checking whether the C compiler needs -belf" >&5
5247 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5248 if test "${lt_cv_cc_needs_belf+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line 5258 "configure"
5259 #include "confdefs.h"
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:5270: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>&5
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:5276: \"$ac_try\"") >&5
5279 echo "$as_me:5279: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 lt_cv_cc_needs_belf=yes
5283 echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 lt_cv_cc_needs_belf=no
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295 echo "$as_me:5295: result: $lt_cv_cc_needs_belf" >&5
5296 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5297 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5298 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5299 CFLAGS="$SAVE_CFLAGS"
5305 need_locks="$enable_libtool_lock"
5307 for ac_header in dlfcn.h
5309 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5310 echo "$as_me:5310: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5312 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line 5316 "configure"
5317 #include "confdefs.h"
5318 #include <$ac_header>
5320 if { (eval echo "$as_me:5320: \"$ac_cpp conftest.$ac_ext\"") >&5
5321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323 egrep -v '^ *\+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:5326: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev/null; then
5328 if test -s conftest.err; then
5329 ac_cpp_err=$ac_c_preproc_warn_flag
5336 if test -z "$ac_cpp_err"; then
5337 eval "$ac_ac_Header=yes"
5339 echo "$as_me: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 eval "$ac_ac_Header=no"
5343 rm -f conftest.err conftest.$ac_ext
5345 echo "$as_me:5345: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5346 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5347 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5348 cat >>confdefs.h <<EOF
5349 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5355 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5357 # find the maximum length of command line arguments
5358 echo "$as_me:5358: checking the maximum length of command line arguments" >&5
5359 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5360 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 # On DJGPP, this test can blow up pretty badly due to problems in libc
5369 # (any single argument exceeding 2000 bytes causes a buffer overrun
5370 # during glob expansion). Even if it were fixed, the result of this
5371 # check would be larger than it should be.
5372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 # Under GNU Hurd, this test is not required because there is
5377 # no limit to the length of command line arguments.
5378 # Libtool will interpret -1 as no limit whatsoever
5379 lt_cv_sys_max_cmd_len=-1; # 12K is about right
5384 # If test is not a shell built-in, we'll probably end up computing a
5385 # maximum length that is only half of the actual maximum length, but
5387 while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5389 new_result=`expr "X$testring" : ".*" 2>&1` &&
5390 lt_cv_sys_max_cmd_len=$new_result &&
5391 test $i != 17 # 1/2 MB should be enough
5394 testring=$testring$testring
5397 # add a significant safety factor because C++ compilers can tack on massive
5398 # amounts of additional arguments before passing them to the linker. 1/4
5400 len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
5407 if test -n $lt_cv_sys_max_cmd_len ; then
5408 echo "$as_me:5408: result: $lt_cv_sys_max_cmd_len" >&5
5409 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5411 echo "$as_me:5411: result: none" >&5
5412 echo "${ECHO_T}none" >&6
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 echo "$as_me:5416: checking command to parse $NM output from $compiler object" >&5
5417 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5431 # Transform the above into a raw symbol and a C symbol.
5432 symxfrm='\1 \2\3 \3'
5434 # Transform an extracted symbol line into a proper C declaration
5435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5437 # Transform an extracted symbol line into symbol name and symbol address
5438 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'"
5440 # Define system-specific variables.
5445 cygwin* | mingw* | pw32*)
5446 symcode='[ABCDGISTW]'
5448 hpux*) # Its linker distinguishes data from code symbols
5449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5450 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'"
5453 symcode='[BCDEGRST]'
5463 # Handle CRLF in mingw tool chain
5467 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5471 # If we're using GNU nm, then use its standard symbol codes.
5472 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5473 symcode='[ABCDGISTW]'
5476 # Try without a prefix undercore, then with it.
5477 for ac_symprfx in "" "_"; do
5479 # Write the raw and C identifiers.
5480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5482 # Check to see that the pipe works correctly.
5486 cat > conftest.$ac_ext <<EOF
5491 void nm_test_func(){}
5495 int main(){nm_test_var='a';nm_test_func();return(0);}
5498 if { (eval echo "$as_me:5498: \"$ac_compile\"") >&5
5499 (eval $ac_compile) 2>&5
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); }; then
5503 # Now try to grab the symbols.
5505 if { (eval echo "$as_me:5505: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5506 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5508 echo "$as_me:5508: \$? = $ac_status" >&5
5509 (exit $ac_status); } && test -s "$nlist"; then
5510 # Try sorting and uniquifying the output.
5511 if sort "$nlist" | uniq > "$nlist"T; then
5512 mv -f "$nlist"T "$nlist"
5517 # Make sure that we snagged all the symbols we need.
5518 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5519 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5520 cat <<EOF > conftest.$ac_ext
5526 # Now generate the symbol file.
5527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5529 cat <<EOF >> conftest.$ac_ext
5530 #if defined (__STDC__) && __STDC__
5531 # define lt_ptr_t void *
5533 # define lt_ptr_t char *
5537 /* The mapping between symbol names and symbols. */
5542 lt_preloaded_symbols[] =
5545 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
5546 cat <<\EOF >> conftest.$ac_ext
5554 # Now try linking the two files.
5555 mv conftest.$ac_objext conftstm.$ac_objext
5556 lt_save_LIBS="$LIBS"
5557 lt_save_CFLAGS="$CFLAGS"
5558 LIBS="conftstm.$ac_objext"
5559 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5560 if { (eval echo "$as_me:5560: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:5563: \$? = $ac_status" >&5
5564 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5567 LIBS="$lt_save_LIBS"
5568 CFLAGS="$lt_save_CFLAGS"
5570 echo "cannot find nm_test_func in $nlist" >&5
5573 echo "cannot find nm_test_var in $nlist" >&5
5576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5579 echo "$progname: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 rm -f conftest* conftst*
5584 # Do not use the global_symbol_pipe unless it works.
5585 if test "$pipe_works" = yes; then
5588 lt_cv_sys_global_symbol_pipe=
5594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5595 lt_cv_sys_global_symbol_to_cdecl=
5597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5598 echo "$as_me:5598: result: failed" >&5
5599 echo "${ECHO_T}failed" >&6
5601 echo "$as_me:5601: result: ok" >&5
5602 echo "${ECHO_T}ok" >&6
5605 echo "$as_me:5605: checking for objdir" >&5
5606 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5607 if test "${lt_cv_objdir+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 rm -f .libs 2>/dev/null
5611 mkdir .libs 2>/dev/null
5612 if test -d .libs; then
5615 # MS-DOS does not allow filenames that begin with a dot.
5618 rmdir .libs 2>/dev/null
5620 echo "$as_me:5620: result: $lt_cv_objdir" >&5
5621 echo "${ECHO_T}$lt_cv_objdir" >&6
5622 objdir=$lt_cv_objdir
5626 # AIX sometimes has problems with the GCC collect2 program. For some
5627 # reason, if we set the COLLECT_NAMES environment variable, the problems
5628 # vanish in a puff of smoke.
5629 if test "X${COLLECT_NAMES+set}" != Xset; then
5631 export COLLECT_NAMES
5636 # Sed substitution that helps us do robust quoting. It backslashifies
5637 # metacharacters that are still active within double-quoted strings.
5638 Xsed='sed -e s/^X//'
5639 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5641 # Same as above, but do not quote variable references.
5642 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5644 # Sed substitution to delay expansion of an escaped shell variable in a
5645 # double_quote_subst'ed string.
5646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5648 # Sed substitution to avoid accidental globbing in evaled expressions
5649 no_glob_subst='s/\*/\\\*/g'
5655 default_ofile=libtool
5656 can_build_shared=yes
5658 # All known linkers require a `.a' archive for static linking (except M$VC,
5659 # which needs '.lib').
5661 ltmain="$ac_aux_dir/ltmain.sh"
5662 ofile="$default_ofile"
5663 with_gnu_ld="$lt_cv_prog_gnu_ld"
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5668 echo "$as_me:5668: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 if test -n "$RANLIB"; then
5674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5676 ac_save_IFS=$IFS; IFS=$ac_path_separator
5678 for ac_dir in $ac_dummy; do
5680 test -z "$ac_dir" && ac_dir=.
5681 $as_executable_p "$ac_dir/$ac_word" || continue
5682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5683 echo "$as_me:5683: found $ac_dir/$ac_word" >&5
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691 echo "$as_me:5691: result: $RANLIB" >&5
5692 echo "${ECHO_T}$RANLIB" >&6
5694 echo "$as_me:5694: result: no" >&5
5695 echo "${ECHO_T}no" >&6
5699 if test -z "$ac_cv_prog_RANLIB"; then
5700 ac_ct_RANLIB=$RANLIB
5701 # Extract the first word of "ranlib", so it can be a program name with args.
5702 set dummy ranlib; ac_word=$2
5703 echo "$as_me:5703: checking for $ac_word" >&5
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 if test -n "$ac_ct_RANLIB"; then
5709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5711 ac_save_IFS=$IFS; IFS=$ac_path_separator
5713 for ac_dir in $ac_dummy; do
5715 test -z "$ac_dir" && ac_dir=.
5716 $as_executable_p "$ac_dir/$ac_word" || continue
5717 ac_cv_prog_ac_ct_RANLIB="ranlib"
5718 echo "$as_me:5718: found $ac_dir/$ac_word" >&5
5722 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5726 if test -n "$ac_ct_RANLIB"; then
5727 echo "$as_me:5727: result: $ac_ct_RANLIB" >&5
5728 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5730 echo "$as_me:5730: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5734 RANLIB=$ac_ct_RANLIB
5736 RANLIB="$ac_cv_prog_RANLIB"
5739 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}strip; ac_word=$2
5742 echo "$as_me:5742: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_STRIP+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$STRIP"; then
5748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5750 ac_save_IFS=$IFS; IFS=$ac_path_separator
5752 for ac_dir in $ac_dummy; do
5754 test -z "$ac_dir" && ac_dir=.
5755 $as_executable_p "$ac_dir/$ac_word" || continue
5756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757 echo "$as_me:5757: found $ac_dir/$ac_word" >&5
5763 STRIP=$ac_cv_prog_STRIP
5764 if test -n "$STRIP"; then
5765 echo "$as_me:5765: result: $STRIP" >&5
5766 echo "${ECHO_T}$STRIP" >&6
5768 echo "$as_me:5768: result: no" >&5
5769 echo "${ECHO_T}no" >&6
5773 if test -z "$ac_cv_prog_STRIP"; then
5775 # Extract the first word of "strip", so it can be a program name with args.
5776 set dummy strip; ac_word=$2
5777 echo "$as_me:5777: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 if test -n "$ac_ct_STRIP"; then
5783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5785 ac_save_IFS=$IFS; IFS=$ac_path_separator
5787 for ac_dir in $ac_dummy; do
5789 test -z "$ac_dir" && ac_dir=.
5790 $as_executable_p "$ac_dir/$ac_word" || continue
5791 ac_cv_prog_ac_ct_STRIP="strip"
5792 echo "$as_me:5792: found $ac_dir/$ac_word" >&5
5796 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5800 if test -n "$ac_ct_STRIP"; then
5801 echo "$as_me:5801: result: $ac_ct_STRIP" >&5
5802 echo "${ECHO_T}$ac_ct_STRIP" >&6
5804 echo "$as_me:5804: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5810 STRIP="$ac_cv_prog_STRIP"
5814 old_CFLAGS="$CFLAGS"
5816 # Set sane defaults for various variables
5817 test -z "$AR" && AR=ar
5818 test -z "$AR_FLAGS" && AR_FLAGS=cru
5819 test -z "$AS" && AS=as
5820 test -z "$CC" && CC=cc
5821 test -z "$LTCC" && LTCC=$CC
5822 test -z "$DLLTOOL" && DLLTOOL=dlltool
5823 test -z "$LD" && LD=ld
5824 test -z "$LN_S" && LN_S="ln -s"
5825 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5826 test -z "$NM" && NM=nm
5827 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 test -z "$RANLIB" && RANLIB=:
5829 test -z "$STRIP" && STRIP=:
5830 test -z "$ac_objext" && ac_objext=o
5832 # Determine commands to create old-style static archives.
5833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5834 old_postinstall_cmds='chmod 644 $oldlib'
5835 old_postuninstall_cmds=
5837 if test -n "$RANLIB"; then
5838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5839 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5842 # Only perform the check for file, if the check method requires it
5843 case $deplibs_check_method in
5845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5846 echo "$as_me:5846: checking for ${ac_tool_prefix}file" >&5
5847 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5848 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5856 lt_save_MAGIC_CMD="$MAGIC_CMD"
5857 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
5858 ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
5859 for ac_dir in $ac_dummy; do
5861 test -z "$ac_dir" && ac_dir=.
5862 if test -f $ac_dir/${ac_tool_prefix}file; then
5863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5864 if test -n "$file_magic_test_file"; then
5865 case $deplibs_check_method in
5867 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5870 egrep "$file_magic_regex" > /dev/null; then
5875 *** Warning: the command libtool uses to detect shared libraries,
5876 *** $file_magic_cmd, produces output that libtool cannot recognize.
5877 *** The result is that libtool may fail to recognize shared libraries
5878 *** as such. This will affect the creation of libtool libraries that
5879 *** depend on shared libraries, but programs linked with such libtool
5880 *** libraries will work regardless of this problem. Nevertheless, you
5881 *** may want to report the problem to your system manager and/or to
5882 *** bug-libtool@gnu.org
5892 MAGIC_CMD="$lt_save_MAGIC_CMD"
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if test -n "$MAGIC_CMD"; then
5899 echo "$as_me:5899: result: $MAGIC_CMD" >&5
5900 echo "${ECHO_T}$MAGIC_CMD" >&6
5902 echo "$as_me:5902: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5906 if test -z "$lt_cv_path_MAGIC_CMD"; then
5907 if test -n "$ac_tool_prefix"; then
5908 echo "$as_me:5908: checking for file" >&5
5909 echo $ECHO_N "checking for file... $ECHO_C" >&6
5910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5918 lt_save_MAGIC_CMD="$MAGIC_CMD"
5919 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
5920 ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
5921 for ac_dir in $ac_dummy; do
5923 test -z "$ac_dir" && ac_dir=.
5924 if test -f $ac_dir/file; then
5925 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5926 if test -n "$file_magic_test_file"; then
5927 case $deplibs_check_method in
5929 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932 egrep "$file_magic_regex" > /dev/null; then
5937 *** Warning: the command libtool uses to detect shared libraries,
5938 *** $file_magic_cmd, produces output that libtool cannot recognize.
5939 *** The result is that libtool may fail to recognize shared libraries
5940 *** as such. This will affect the creation of libtool libraries that
5941 *** depend on shared libraries, but programs linked with such libtool
5942 *** libraries will work regardless of this problem. Nevertheless, you
5943 *** may want to report the problem to your system manager and/or to
5944 *** bug-libtool@gnu.org
5954 MAGIC_CMD="$lt_save_MAGIC_CMD"
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if test -n "$MAGIC_CMD"; then
5961 echo "$as_me:5961: result: $MAGIC_CMD" >&5
5962 echo "${ECHO_T}$MAGIC_CMD" >&6
5964 echo "$as_me:5964: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5980 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5981 if test "${enable_libtool_lock+set}" = set; then
5982 enableval="$enable_libtool_lock"
5985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5987 # Check whether --with-pic or --without-pic was given.
5988 if test "${with_pic+set}" = set; then
5994 test -z "$pic_mode" && pic_mode=default
5996 # Use C for the default configuration in the libtool script
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005 # Source file extension for C test sources.
6008 # Object file extension for compiled C test sources.
6012 # Code to be used in simple compile tests
6013 lt_simple_compile_test_code="int some_variable = 0;\n"
6015 # Code to be used in simple link tests
6016 lt_simple_link_test_code='main(){return(0);}\n'
6018 # If no C compiler was specified, use CC.
6021 # Allow CC to be a program name with arguments.
6026 # Check for any special shared library compilation flags.
6029 if test "$GCC" = no; then
6032 lt_prog_cc_shlib='-belf'
6036 if test -n "$lt_prog_cc_shlib"; then
6037 { echo "$as_me:6037: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6038 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6039 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6041 { echo "$as_me:6041: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6042 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6043 lt_cv_prog_cc_can_build_shared=no
6048 # Check to make sure the static flag actually works.
6050 echo "$as_me:6050: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6051 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6052 if test "${lt_prog_compiler_static_works+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 lt_prog_compiler_static_works=no
6056 save_LDFLAGS="$LDFLAGS"
6057 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6058 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6060 # The compiler can only warn and ignore the option if not recognized
6061 # So say no if there are warnings
6062 if test -s conftest.err; then
6063 # Append any errors to the config.log.
6064 cat conftest.err 1>&5
6066 lt_prog_compiler_static_works=yes
6070 LDFLAGS="$save_LDFLAGS"
6073 echo "$as_me:6073: result: $lt_prog_compiler_static_works" >&5
6074 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6076 if test x"$lt_prog_compiler_static_works" = xyes; then
6079 lt_prog_compiler_static=
6082 lt_prog_compiler_no_builtin_flag=
6084 if test "$GCC" = yes; then
6085 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6087 echo "$as_me:6087: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6088 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 lt_cv_prog_compiler_rtti_exceptions=no
6093 ac_outfile=conftest.$ac_objext
6094 save_CFLAGS="$CFLAGS"
6095 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6097 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6098 # The compiler can only warn and ignore the option if not recognized
6099 # So say no if there are warnings
6100 if test -s conftest.err; then
6101 # Append any errors to the config.log.
6102 cat conftest.err 1>&5
6104 lt_cv_prog_compiler_rtti_exceptions=yes
6108 CFLAGS="$save_CFLAGS"
6111 echo "$as_me:6111: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6112 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6114 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6115 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6122 hard_links="nottested"
6123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6124 # do not overwrite the value of need_locks provided by the user
6125 echo "$as_me:6125: checking if we can lock with hard links" >&5
6126 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6131 ln conftest.a conftest.b 2>&5 || hard_links=no
6132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6133 echo "$as_me:6133: result: $hard_links" >&5
6134 echo "${ECHO_T}$hard_links" >&6
6135 if test "$hard_links" = no; then
6136 { echo "$as_me:6136: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6137 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6144 lt_prog_compiler_wl=
6145 lt_prog_compiler_pic=
6146 lt_prog_compiler_static=
6148 echo "$as_me:6148: checking for $compiler option to produce PIC" >&5
6149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6150 if test "$GCC" = yes; then
6151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_static='-static'
6156 # All AIX code is PIC.
6157 if test "$host_cpu" = ia64; then
6158 # AIX 5 now supports IA64 processor
6159 lt_prog_compiler_static='-Bstatic'
6161 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6166 # FIXME: we need at least 68020 code to build shared libraries, but
6167 # adding the `-m68020' flag to GCC prevents building anything better,
6169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6172 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6173 # PIC is the default for these OSes.
6176 cygwin* | mingw* | pw32* | os2*)
6177 # This hack is so that the source file can tell whether it is being
6178 # built for inclusion in a dll (and should export symbols for example).
6179 lt_prog_compiler_pic='-DDLL_EXPORT'
6182 darwin* | rhapsody*)
6183 # PIC is the default on this platform
6184 # Common symbols not allowed in MH_DYLIB files
6185 lt_prog_compiler_pic='-fno-common'
6189 # Just because we use GCC doesn't mean we suddenly get shared libraries
6190 # on systems that don't support them.
6191 lt_prog_compiler_can_build_shared=no
6196 if test -d /usr/nec; then
6197 lt_prog_compiler_pic=-Kconform_pic
6202 lt_prog_compiler_pic='-fPIC'
6206 # PORTME Check for flag to pass linker flags through the system compiler.
6209 lt_prog_compiler_wl='-Wl,'
6210 if test "$host_cpu" = ia64; then
6211 # AIX 5 now supports IA64 processor
6212 lt_prog_compiler_static='-Bstatic'
6214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6218 cygwin* | mingw* | pw32* | os2*)
6219 # This hack is so that the source file can tell whether it is being
6220 # built for inclusion in a dll (and should export symbols for example).
6221 lt_prog_compiler_pic='-DDLL_EXPORT'
6224 hpux9* | hpux10* | hpux11*)
6225 lt_prog_compiler_wl='-Wl,'
6226 lt_prog_compiler_pic='+Z'
6227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6228 lt_prog_compiler_static='${wl}-a ${wl}archive'
6232 lt_prog_compiler_wl='-Wl,'
6233 # PIC (with -KPIC) is the default.
6234 lt_prog_compiler_static='-non_shared'
6238 # Check flags for non-gnu compilers on Linux
6241 # The only non-gnu compiler on Linux/Alpha is the Compaq one:
6242 lt_prog_compiler_wl='-Wl,'
6243 lt_prog_compiler_static='-non_shared'
6246 lt_prog_compiler_can_build_shared=no
6251 lt_prog_compiler_pic='-KPIC'
6252 lt_prog_compiler_static='-Bstatic'
6255 osf3* | osf4* | osf5*)
6256 lt_prog_compiler_wl='-Wl,'
6257 # All OSF/1 code is PIC.
6258 lt_prog_compiler_static='-non_shared'
6262 lt_prog_compiler_pic='-Kpic'
6263 lt_prog_compiler_static='-dn'
6267 lt_prog_compiler_wl='-Wl,'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6273 lt_prog_compiler_wl='-Qoption ld '
6274 lt_prog_compiler_pic='-PIC'
6275 lt_prog_compiler_static='-Bstatic'
6278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6279 if test "x$host_vendor" = xsni; then
6280 lt_prog_compiler_wl='-LD'
6282 lt_prog_compiler_wl='-Wl,'
6284 lt_prog_compiler_pic='-KPIC'
6285 lt_prog_compiler_static='-Bstatic'
6289 if test -d /usr/nec ;then
6290 lt_prog_compiler_pic='-Kconform_pic'
6291 lt_prog_compiler_static='-Bstatic'
6296 lt_prog_compiler_pic='-pic'
6297 lt_prog_compiler_static='-Bstatic'
6301 lt_prog_compiler_can_build_shared=no
6305 echo "$as_me:6305: result: $lt_prog_compiler_pic" >&5
6306 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6309 # Check to make sure the PIC flag actually works.
6311 if test -n "$lt_prog_compiler_pic"; then
6312 echo "$as_me:6312: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6313 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6314 if test "${lt_prog_compiler_pic_works+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 lt_prog_compiler_pic_works=no
6318 ac_outfile=conftest.$ac_objext
6319 save_CFLAGS="$CFLAGS"
6320 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
6321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6322 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6323 # The compiler can only warn and ignore the option if not recognized
6324 # So say no if there are warnings
6325 if test -s conftest.err; then
6326 # Append any errors to the config.log.
6327 cat conftest.err 1>&5
6329 lt_prog_compiler_pic_works=yes
6333 CFLAGS="$save_CFLAGS"
6336 echo "$as_me:6336: result: $lt_prog_compiler_pic_works" >&5
6337 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6339 if test x"$lt_prog_compiler_pic_works" = xyes; then
6340 case $lt_prog_compiler_pic in
6342 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6346 lt_prog_compiler_pic=
6347 lt_prog_compiler_can_build_shared=no
6352 # For platforms which do not support PIC, -DPIC is meaningless:
6354 lt_prog_compiler_pic=
6357 echo "$as_me:6357: checking if $compiler PIC define -DPIC works" >&5
6358 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
6359 if test "${lt_prog_compiler_picdef_works+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 lt_prog_compiler_picdef_works=no
6363 ac_outfile=conftest.$ac_objext
6364 save_CFLAGS="$CFLAGS"
6365 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6367 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6368 # The compiler can only warn and ignore the option if not recognized
6369 # So say no if there are warnings
6370 if test -s conftest.err; then
6371 # Append any errors to the config.log.
6372 cat conftest.err 1>&5
6374 lt_prog_compiler_picdef_works=yes
6378 CFLAGS="$save_CFLAGS"
6381 echo "$as_me:6381: result: $lt_prog_compiler_picdef_works" >&5
6382 echo "${ECHO_T}$lt_prog_compiler_picdef_works" >&6
6384 if test x"$lt_prog_compiler_picdef_works" = xyes; then
6385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6387 lt_prog_compiler_pic="$lt_prog_compiler_pic"
6393 echo "$as_me:6393: checking if $compiler supports -c -o file.$ac_objext" >&5
6394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6395 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 lt_cv_prog_compiler_c_o=no
6399 $rm -r conftest 2>/dev/null
6403 save_CFLAGS="$CFLAGS"
6404 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6408 # that will create temporary files in the current directory regardless of
6409 # the output directory. Thus, making CWD read-only will cause this test
6410 # to fail, enabling locking or at least warning the user not to do parallel
6414 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6416 # The compiler can only warn and ignore the option if not recognized
6417 # So say no if there are warnings
6418 if test -s out/conftest.err; then
6419 # Append any errors to the config.log.
6420 cat out/conftest.err 1>&5
6422 lt_cv_prog_compiler_c_o=yes
6425 CFLAGS="$save_CFLAGS"
6435 echo "$as_me:6435: result: $lt_cv_prog_compiler_c_o" >&5
6436 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6438 echo "$as_me:6438: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6442 allow_undefined_flag=
6445 archive_cmds_need_lc=
6446 archive_expsym_cmds=
6447 old_archive_From_new_cmds=
6448 old_archive_from_expsyms_cmds=
6449 export_dynamic_flag_spec=
6450 whole_archive_flag_spec=
6451 thread_safe_flag_spec=
6452 hardcode_libdir_flag_spec=
6453 hardcode_libdir_separator=
6456 hardcode_shlibpath_var=unsupported
6457 link_all_deplibs=unknown
6458 always_export_symbols=no
6459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6460 # include_expsyms should be a list of space-separated symbols to be *always*
6461 # included in the symbol list
6463 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6466 # as well as any symbol that contains `d'.
6467 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6469 # platforms (ab)use it in PIC code, but their linkers get confused if
6470 # the symbol is explicitly referenced. Since portable code cannot
6471 # rely on this symbol name, it's probably fine to never include it in
6472 # preloaded symbol tables.
6473 extract_expsyms_cmds=
6476 cygwin* | mingw* | pw32*)
6477 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6478 # When not using gcc, we currently assume that we are using
6479 # Microsoft Visual C++.
6480 if test "$GCC" != yes; then
6490 if test "$with_gnu_ld" = yes; then
6491 # If archive_cmds runs LD, not CC, wlarc should be empty
6494 # See if GNU ld supports shared libraries.
6496 aix3* | aix4* | aix5*)
6497 # On AIX/PPC, the GNU linker is very broken
6498 if test "$host_cpu" != ia64; then
6502 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6503 *** to be unable to reliably create shared libraries on AIX.
6504 *** Therefore, libtool is disabling shared libraries support. If you
6505 *** really care for shared libraries, you may want to modify your PATH
6506 *** so that a non-GNU linker is found, and then restart.
6513 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)'
6514 hardcode_libdir_flag_spec='-L$libdir'
6515 hardcode_minus_L=yes
6517 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6518 # that the semantics of dynamic libraries on AmigaOS, at least up
6519 # to version 4, is to share data among multiple programs linked
6520 # with the same dynamic library. Since this doesn't match the
6521 # behavior of shared libraries on other platforms, we can't use
6527 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6528 allow_undefined_flag=unsupported
6529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6530 # support --undefined. This deserves some investigation. FIXME
6531 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6537 cygwin* | mingw* | pw32*)
6538 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6539 # no search path for DLLs.
6540 hardcode_libdir_flag_spec='-L$libdir'
6541 allow_undefined_flag=unsupported
6542 always_export_symbols=yes
6544 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6545 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6546 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6547 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6548 else $CC -o impgen impgen.c ; fi)~
6549 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6551 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6553 # cygwin and mingw dlls have different entry points and sets of symbols
6555 # FIXME: what about values for MSVC?
6556 dll_entry=__cygwin_dll_entry@12
6557 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6561 dll_entry=_DllMainCRTStartup@12
6562 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6566 # mingw and cygwin differ, and it's simplest to just exclude the union
6567 # of the two symbol sets.
6568 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6570 # recent cygwin and mingw systems supply a stub DllMain which the user
6571 # can override, but on older systems we have to supply one (in ltdll.c)
6572 if test "x$lt_cv_need_dllmain" = "xyes"; then
6573 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6574 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6575 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6581 # Extract the symbol export list from an `--export-all' def file,
6582 # then regenerate the def file from the symbol export list, so that
6583 # the compiled dll only exports the symbol export list.
6584 # Be careful not to strip the DATA tag left by newer dlltools.
6585 export_symbols_cmds="$ltdll_cmds"'
6586 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6587 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6589 # If the export-symbols file already is a .def file (1st line
6590 # is EXPORTS), use it as is.
6591 # If DATA tags from a recent dlltool are present, honour them!
6592 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6593 cp $export_symbols $output_objdir/$soname-def;
6595 echo EXPORTS > $output_objdir/$soname-def;
6597 cat $export_symbols | while read symbol; do
6600 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6601 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6603 _lt_hint=`expr 1 + \$_lt_hint`;
6607 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6608 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6609 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6610 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6611 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6614 darwin* | rhapsody*)
6615 allow_undefined_flag='-undefined suppress'
6616 # FIXME: Relying on posixy $() will cause problems for
6617 # cross-compilation, but unfortunately the echo tests do not
6618 # yet detect zsh echo's removal of \ escapes.
6619 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
6620 # We need to add '_' to the symbols in $export_symbols first
6621 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6623 hardcode_shlibpath_var=no
6624 whole_archive_flag_spec='-all_load $convenience'
6628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6632 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6633 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6638 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6643 *** create shared libraries on Solaris systems. Therefore, libtool
6644 *** is disabling shared libraries support. We urge you to upgrade GNU
6645 *** binutils to release 2.9.1 or newer. Another option is to modify
6646 *** your PATH or compiler configuration so that the native linker is
6647 *** used, and then restart.
6650 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6662 hardcode_shlibpath_var=no
6666 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6675 if test "$ld_shlibs" = yes; then
6676 runpath_var=LD_RUN_PATH
6677 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6678 export_dynamic_flag_spec='${wl}--export-dynamic'
6680 cygwin* | mingw* | pw32*)
6681 # dlltool doesn't understand --whole-archive et. al.
6682 whole_archive_flag_spec=
6685 # ancient GNU ld didn't support --whole-archive et. al.
6686 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6687 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6689 whole_archive_flag_spec=
6695 # PORTME fill in a description of your system's linker (not GNU ld)
6698 allow_undefined_flag=unsupported
6699 always_export_symbols=yes
6700 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'
6701 # Note: this linker hardcodes the directories in LIBPATH if there
6702 # are no directories specified by -L.
6703 hardcode_minus_L=yes
6704 if test "$GCC" = yes && test -z "$link_static_flag"; then
6705 # Neither direct hardcoding nor static linking is supported with a
6707 hardcode_direct=unsupported
6713 hardcode_libdir_separator=':'
6714 link_all_deplibs=yes
6715 # When large executables or shared objects are built, AIX ld can
6716 # have problems creating the table of contents. If linking a library
6717 # or program results in "error TOC overflow" add -mminimal-toc to
6718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6720 if test "$GCC" = yes; then
6721 case $host_os in aix4.012|aix4.-12.*)
6722 # We only want to do this on AIX 4.2 and lower, the check
6723 # below for broken collect2 doesn't work under 4.3+
6724 collect2name=`${CC} -print-prog-name=collect2`
6725 if test -f "$collect2name" && \
6726 strings "$collect2name" | grep resolve_lib_name >/dev/null
6728 # We have reworked collect2
6731 # We have old collect2
6732 hardcode_direct=unsupported
6733 # It fails to find uninstalled libraries when the uninstalled
6734 # path is not listed in the libpath. Setting hardcode_minus_L
6735 # to unsupported forces relinking
6736 hardcode_minus_L=yes
6737 hardcode_libdir_flag_spec='-L$libdir'
6738 hardcode_libdir_separator=
6741 shared_flag='-shared'
6744 if test "$host_cpu" = ia64; then
6745 shared_flag='${wl}-G'
6747 shared_flag='${wl}-bM:SRE'
6751 if test "$host_cpu" = ia64; then
6752 # On IA64, the linker does run time linking by default, so we don't
6753 # have to do anything special.
6754 aix_use_runtimelinking=no
6755 if test $with_gnu_ld = no; then
6756 exp_sym_flag='-Bexport'
6760 # Test if we are trying to use run time linking, or normal AIX style
6761 # linking. If -brtl is somewhere in LDFLAGS, we need to do run time
6763 aix_use_runtimelinking=no
6764 for ld_flag in $LDFLAGS; do
6765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
6766 aix_use_runtimelinking=yes
6770 exp_sym_flag='-bexport'
6771 no_entry_flag='-bnoentry'
6773 # -bexpall does not export symbols beginning with underscore (_)
6774 always_export_symbols=yes
6775 if test "$aix_use_runtimelinking" = yes; then
6776 # Warning - without using the other run time loading flags (-brtl),
6777 # -berok will link without error, but may produce a broken
6779 allow_undefined_flag=' $wl}-berok'
6780 # Determine the default libpath from the value encoded in an empty executable.
6781 # If we don't find anything, use the default library path according to the cc manual.
6782 cat >conftest.$ac_ext <<_ACEOF
6783 #line 6783 "configure"
6784 #include "confdefs.h"
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:6795: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>&5
6798 echo "$as_me:6798: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -s conftest$ac_exeext'
6801 { (eval echo "$as_me:6801: \"$ac_try\"") >&5
6804 echo "$as_me:6804: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
6808 # Check for a 64-bit object if we didn't find anything.
6809 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
6811 echo "$as_me: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6818 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6820 if test "$host_cpu" = ia64; then
6821 if test $with_gnu_ld = no; then
6822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6823 allow_undefined_flag="-z nodefs"
6824 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"
6827 # Determine the default libpath from the value encoded in an empty executable.
6828 cat >conftest.$ac_ext <<_ACEOF
6829 #line 6829 "configure"
6830 #include "confdefs.h"
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:6841: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -s conftest$ac_exeext'
6847 { (eval echo "$as_me:6847: \"$ac_try\"") >&5
6850 echo "$as_me:6850: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
6854 # Check for a 64-bit object if we didn't find anything.
6855 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
6857 echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6864 allow_undefined_flag=' ${wl}-berok'
6865 # -bexpall does not export symbols beginning with underscore (_)
6866 always_export_symbols=yes
6867 # Exported symbols can be pulled into shared objects from archives
6868 whole_archive_flag_spec=' '
6869 archive_cmds_need_lc=yes
6870 # This is similar to how AIX traditionally builds it's shared
6872 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'
6878 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)'
6879 hardcode_libdir_flag_spec='-L$libdir'
6880 hardcode_minus_L=yes
6881 # see comment about different semantics on the GNU ld section
6886 export_dynamic_flag_spec=-rdynamic
6889 cygwin* | mingw* | pw32*)
6890 # When not using gcc, we currently assume that we are using
6891 # Microsoft Visual C++.
6892 # hardcode_libdir_flag_spec is actually meaningless, as there is
6893 # no search path for DLLs.
6894 hardcode_libdir_flag_spec=' '
6895 allow_undefined_flag=unsupported
6896 # Tell ltmain to make .lib files, not .a files.
6898 # FIXME: Setting linknames here is a bad hack.
6899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6900 # The linker will automatically build a .lib file if we build a DLL.
6901 old_archive_From_new_cmds='true'
6902 # FIXME: Should let the user specify the lib program.
6903 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6904 fix_srcfile_path='`cygpath -w "$srcfile"`'
6908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6909 hardcode_libdir_flag_spec='-L$libdir'
6910 hardcode_shlibpath_var=no
6917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6918 # support. Future versions do this automatically, but an explicit c++rt0.o
6919 # does not break anything, and helps significantly (at the cost of a little
6922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6923 hardcode_libdir_flag_spec='-R$libdir'
6925 hardcode_shlibpath_var=no
6928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6932 hardcode_minus_L=yes
6933 hardcode_shlibpath_var=no
6936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6938 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6939 hardcode_libdir_flag_spec='-R$libdir'
6941 hardcode_shlibpath_var=no
6944 hpux9* | hpux10* | hpux11*)
6945 if test $with_gcc = yes; then
6947 hpux9*) 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' ;;
6948 *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
6952 hpux9*) 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' ;;
6953 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6956 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6957 hardcode_libdir_separator=:
6959 hardcode_minus_L=yes # Not in the search PATH, but as the default
6960 # location of the library.
6961 export_dynamic_flag_spec='${wl}-E'
6965 if test "$GCC" = yes; then
6966 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'
6968 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'
6970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6971 hardcode_libdir_separator=:
6972 link_all_deplibs=yes
6976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6979 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6981 hardcode_libdir_flag_spec='-R$libdir'
6983 hardcode_shlibpath_var=no
6987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990 hardcode_libdir_separator=:
6991 hardcode_shlibpath_var=no
6996 hardcode_shlibpath_var=no
6999 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
7000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7001 hardcode_libdir_flag_spec='-R$libdir'
7004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7006 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
7007 export_dynamic_flag_spec='${wl}-E'
7014 hardcode_libdir_flag_spec='-L$libdir'
7015 hardcode_minus_L=yes
7016 allow_undefined_flag=unsupported
7017 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'
7018 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7022 if test "$GCC" = yes; then
7023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7024 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'
7026 allow_undefined_flag=' -expect_unresolved \*'
7027 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'
7029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7030 hardcode_libdir_separator=:
7033 osf4* | osf5*) # as osf3* with the addition of -msym flag
7034 if test "$GCC" = yes; then
7035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7036 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'
7037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7039 allow_undefined_flag=' -expect_unresolved \*'
7040 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'
7041 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7042 $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'
7044 # Both c and cxx compiler support -rpath directly
7045 hardcode_libdir_flag_spec='-rpath $libdir'
7047 hardcode_libdir_separator=:
7051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7052 hardcode_shlibpath_var=no
7053 export_dynamic_flag_spec='${wl}-Bexport'
7054 runpath_var=LD_RUN_PATH
7055 hardcode_runpath_var=yes
7059 no_undefined_flag=' -z defs'
7060 if test "$with_gcc" = yes; then
7061 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7062 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7063 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7066 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7069 hardcode_libdir_flag_spec='-R$libdir'
7070 hardcode_shlibpath_var=no
7072 solaris2.[0-5] | solaris2.[0-5].*) ;;
7073 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7074 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7076 link_all_deplibs=yes
7080 if test "x$host_vendor" = xsequent; then
7081 # Use $CC to link under sequent, because it throws in some extra .o
7082 # files that make .init and .fini sections work.
7083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7087 hardcode_libdir_flag_spec='-L$libdir'
7089 hardcode_minus_L=yes
7090 hardcode_shlibpath_var=no
7094 if test "x$host_vendor" = xsni; then
7095 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
7096 hardcode_direct=yes # is this really true???
7098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7101 runpath_var='LD_RUN_PATH'
7102 hardcode_shlibpath_var=no
7106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7107 hardcode_shlibpath_var=no
7108 export_dynamic_flag_spec='-Bexport'
7112 if test -d /usr/nec; then
7113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7114 hardcode_shlibpath_var=no
7115 runpath_var=LD_RUN_PATH
7116 hardcode_runpath_var=yes
7122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7125 hardcode_shlibpath_var=no
7126 hardcode_runpath_var=yes
7127 runpath_var=LD_RUN_PATH
7130 sysv5uw7* | unixware7*)
7131 no_undefined_flag='${wl}-z ${wl}text'
7132 if test "$GCC" = yes; then
7133 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7135 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7137 runpath_var='LD_RUN_PATH'
7138 hardcode_shlibpath_var=no
7142 no_undefined_flag=' -z text'
7143 # $CC -shared without GNU ld will not create a library from C++
7144 # object files and a static libstdc++, better avoid it by now
7145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148 hardcode_libdir_flag_spec=
7149 hardcode_shlibpath_var=no
7150 runpath_var='LD_RUN_PATH'
7154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_shlibpath_var=no
7164 echo "$as_me:7164: result: $ld_shlibs" >&5
7165 echo "${ECHO_T}$ld_shlibs" >&6
7166 test "$ld_shlibs" = no && can_build_shared=no
7168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7169 if test "$GCC" = yes; then
7170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7174 # Do we need to explicitly link libc?
7176 archive_cmds_need_lc=yes
7177 if test "$enable_shared" = yes && test "$GCC" = yes; then
7178 case $archive_cmds in
7180 # FIXME: we may have to deal with multi-command sequences.
7183 # Test whether the compiler implicitly links with -lc since on some
7184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7185 # to ld, don't add -lc before -lgcc.
7186 echo "$as_me:7186: checking whether -lc should be explicitly linked in" >&5
7187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7189 echo 'static int dummy;' > conftest.$ac_ext
7191 if { (eval echo "$as_me:7191: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>&5
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 (exit $ac_status); } 2>conftest.err; then
7198 libobjs=conftest.$ac_objext
7200 wl=$lt_prog_compiler_wl
7206 lt_save_allow_undefined_flag=$allow_undefined_flag
7207 allow_undefined_flag=
7208 if { (eval echo "$as_me:7208: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7209 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 (exit $ac_status); }
7214 archive_cmds_need_lc=no
7216 archive_cmds_need_lc=yes
7218 allow_undefined_flag=$lt_save_allow_undefined_flag
7220 cat conftest.err 1>&5
7223 echo "$as_me:7223: result: $archive_cmds_need_lc" >&5
7224 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7229 echo "$as_me:7229: checking how to hardcode library paths into programs" >&5
7230 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7232 if test -n "$hardcode_libdir_flag_spec" || \
7233 test -n "$runpath_var"; then
7235 # We can hardcode non-existant directories.
7236 if test "$hardcode_direct" != no &&
7237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7238 # have to relink, otherwise we might link with an installed library
7239 # when we should be linking with a yet-to-be-installed one
7240 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7241 test "$hardcode_minus_L" != no; then
7242 # Linking always hardcodes the temporary library directory.
7243 hardcode_action=relink
7245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7246 hardcode_action=immediate
7249 # We cannot hardcode anything, or else we can only hardcode existing
7251 hardcode_action=unsupported
7253 echo "$as_me:7253: result: $hardcode_action" >&5
7254 echo "${ECHO_T}$hardcode_action" >&6
7256 if test "$hardcode_action" = relink; then
7257 # Fast installation is not supported
7258 enable_fast_install=no
7259 elif test "$shlibpath_overrides_runpath" = yes ||
7260 test "$enable_shared" = no; then
7261 # Fast installation is not necessary
7262 enable_fast_install=needless
7267 echo "$as_me:7267: checking whether stripping libraries is possible" >&5
7268 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7269 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7270 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7271 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7272 echo "$as_me:7272: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7275 echo "$as_me:7275: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7279 echo "$as_me:7279: checking dynamic linker characteristics" >&5
7280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7282 libname_spec='lib$name'
7289 shlibpath_overrides_runpath=unknown
7291 dynamic_linker="$host_os ld.so"
7292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7294 need_lib_prefix=unknown
7295 hardcode_into_libs=no
7297 # when you set need_version to no, make sure it does not cause -set_version
7298 # flags to be left without arguments
7299 need_version=unknown
7304 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7305 shlibpath_var=LIBPATH
7307 # AIX 3 has no versioning support, so we append a major version to the name.
7308 soname_spec='${libname}${release}.so$major'
7313 if test "$host_cpu" = ia64; then
7314 # AIX 5 supports IA64
7315 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7316 shlibpath_var=LD_LIBRARY_PATH
7318 # With GCC up to 2.95.x, collect2 would create an import file
7319 # for dependence libraries. The import file would start with
7320 # the line `#! .'. This would cause the generated library to
7321 # depend on `.', always an invalid library. This was fixed in
7322 # development snapshots of GCC prior to 3.0.
7324 aix4 | aix4.[01] | aix4.[01].*)
7325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7335 # soname into executable. Probably we can add versioning support to
7336 # collect2, so additional links can be useful in future.
7337 if test "$aix_use_runtimelinking" = yes; then
7338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7339 # instead of lib<name>.a to let people know that these are not
7340 # typical AIX shared libraries.
7341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7343 # We preserve .a as extension for shared libraries through AIX4.2
7344 # and later when we are not doing run time linking.
7345 library_names_spec='${libname}${release}.a $libname.a'
7346 soname_spec='${libname}${release}.so$major'
7348 shlibpath_var=LIBPATH
7349 deplibs_check_method=pass_all
7354 library_names_spec='$libname.ixlibrary $libname.a'
7355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7356 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'
7360 library_names_spec='${libname}.so'
7361 dynamic_linker="$host_os ld.so"
7362 shlibpath_var=LIBRARY_PATH
7368 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7369 soname_spec='${libname}${release}.so$major'
7370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7371 shlibpath_var=LD_LIBRARY_PATH
7372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7374 # the default ld.so.conf also contains /usr/contrib/lib and
7375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7376 # libtool to hard-code these into programs
7379 cygwin* | mingw* | pw32*)
7380 version_type=windows
7383 case $GCC,$host_os in
7385 library_names_spec='$libname.dll.a'
7386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7387 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7388 dldir=$destdir/`dirname \$dlpath`~
7389 test -d \$dldir || mkdir -p \$dldir~
7390 $install_prog .libs/$dlname \$dldir/$dlname'
7391 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7392 dlpath=$dir/\$dldll~
7396 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7403 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7406 dynamic_linker='Win32 ld.exe'
7407 # FIXME: first we should search . and the directory the executable is in
7411 darwin* | rhapsody*)
7412 dynamic_linker="$host_os dyld"
7416 # FIXME: Relying on posixy $() will cause problems for
7417 # cross-compilation, but unfortunately the echo tests do not
7418 # yet detect zsh echo's removal of \ escapes.
7419 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7420 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7421 shlibpath_overrides_runpath=yes
7422 shlibpath_var=DYLD_LIBRARY_PATH
7429 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7430 soname_spec='${libname}${release}.so$major'
7431 shlibpath_var=LD_LIBRARY_PATH
7439 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7440 version_type=freebsd-$objformat
7441 case $version_type in
7443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7448 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7452 shlibpath_var=LD_LIBRARY_PATH
7455 shlibpath_overrides_runpath=yes
7457 freebsd3.01* | freebsdelf3.01*)
7458 shlibpath_overrides_runpath=yes
7459 hardcode_into_libs=yes
7462 shlibpath_overrides_runpath=no
7463 hardcode_into_libs=yes
7472 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7473 soname_spec='${libname}${release}.so$major'
7474 shlibpath_var=LD_LIBRARY_PATH
7475 hardcode_into_libs=yes
7478 hpux9* | hpux10* | hpux11*)
7479 # Give a soname corresponding to the major version so that dld.sl refuses to
7480 # link against other versions.
7481 dynamic_linker="$host_os dld.sl"
7485 shlibpath_var=SHLIB_PATH
7486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7487 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7488 soname_spec='${libname}${release}.sl$major'
7489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7490 postinstall_cmds='chmod 555 $lib'
7497 soname_spec='${libname}${release}.so.$major'
7498 library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7504 case $LD in # libtool.m4 will add one of these switches to LD
7505 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7506 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7507 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7508 *) libsuff= shlibsuff= libmagic=never-match;;
7512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7513 shlibpath_overrides_runpath=no
7514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7518 # No shared lib support for Linux oldld, aout, or coff.
7519 linux*oldld* | linux*aout* | linux*coff*)
7523 # This must be Linux ELF.
7528 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7529 soname_spec='${libname}${release}.so$major'
7530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7531 shlibpath_var=LD_LIBRARY_PATH
7532 shlibpath_overrides_runpath=no
7533 # This implies no fast_install, which is unacceptable.
7534 # Some rework will be needed to allow for fast_install
7535 # before this can be enabled.
7536 hardcode_into_libs=yes
7538 # We used to test for /lib/ld.so.1 and disable shared libraries on
7539 # powerpc, because MkLinux only supported shared libraries with the
7540 # GNU dynamic linker. Since this was broken with cross compilers,
7541 # most powerpc-linux boxes support dynamic linking these days and
7542 # people can always --disable-shared, the test was removed, and we
7543 # assume the GNU/Linux dynamic linker is in use.
7544 dynamic_linker='GNU/Linux ld.so'
7551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7552 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7554 dynamic_linker='NetBSD (a.out) ld.so'
7556 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7557 soname_spec='${libname}${release}.so$major'
7558 dynamic_linker='NetBSD ld.elf_so'
7560 shlibpath_var=LD_LIBRARY_PATH
7561 shlibpath_overrides_runpath=yes
7562 hardcode_into_libs=yes
7567 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7568 shlibpath_var=LD_LIBRARY_PATH
7569 shlibpath_overrides_runpath=yes
7574 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7576 shlibpath_var=LD_LIBRARY_PATH
7577 file_magic_cmd=/usr/bin/file
7578 file_magic_test_file=`echo /usr/lib/libc.so.*`
7579 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
7580 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
7582 deplibs_check_method='file_magic OpenBSD.* shared library'
7587 libname_spec='$name'
7589 library_names_spec='$libname.dll $libname.a'
7590 dynamic_linker='OS/2 ld.exe'
7591 shlibpath_var=LIBPATH
7594 osf3* | osf4* | osf5*)
7597 soname_spec='${libname}${release}.so'
7598 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7599 shlibpath_var=LD_LIBRARY_PATH
7600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7606 soname_spec='${libname}${release}.so$major'
7607 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7608 shlibpath_var=LD_LIBRARY_PATH
7615 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7616 soname_spec='${libname}${release}.so$major'
7617 shlibpath_var=LD_LIBRARY_PATH
7618 shlibpath_overrides_runpath=yes
7619 hardcode_into_libs=yes
7620 # ldd complains unless libraries are executable
7621 postinstall_cmds='chmod +x $lib'
7626 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7628 shlibpath_var=LD_LIBRARY_PATH
7629 shlibpath_overrides_runpath=yes
7630 if test "$with_gnu_ld" = yes; then
7636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7639 soname_spec='${libname}${release}.so$major'
7640 shlibpath_var=LD_LIBRARY_PATH
7641 case $host_vendor in
7643 shlibpath_overrides_runpath=no
7648 shlibpath_overrides_runpath=no
7649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7655 if test -d /usr/nec ;then
7657 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7658 soname_spec='$libname.so.$major'
7659 shlibpath_var=LD_LIBRARY_PATH
7665 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7666 soname_spec='${libname}${release}.so$major'
7667 shlibpath_var=LD_LIBRARY_PATH
7674 echo "$as_me:7674: result: $dynamic_linker" >&5
7675 echo "${ECHO_T}$dynamic_linker" >&6
7676 test "$dynamic_linker" = no && can_build_shared=no
7678 if test "x$enable_dlopen" != xyes; then
7679 enable_dlopen=unknown
7680 enable_dlopen_self=unknown
7681 enable_dlopen_self_static=unknown
7688 lt_cv_dlopen="load_add_on"
7690 lt_cv_dlopen_self=yes
7693 cygwin* | mingw* | pw32*)
7694 lt_cv_dlopen="LoadLibrary"
7699 echo "$as_me:7699: checking for shl_load" >&5
7700 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7701 if test "${ac_cv_func_shl_load+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line 7705 "configure"
7706 #include "confdefs.h"
7707 /* System header to define __stub macros and hopefully few prototypes,
7708 which can conflict with char shl_load (); below. */
7710 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7722 /* The GNU C library defines this for functions which it implements
7723 to always fail with ENOSYS. Some functions are actually named
7724 something starting with __ and the normal name is an alias. */
7725 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:7736: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>&5
7739 echo "$as_me:7739: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest$ac_exeext'
7742 { (eval echo "$as_me:7742: \"$ac_try\"") >&5
7745 echo "$as_me:7745: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 ac_cv_func_shl_load=yes
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 ac_cv_func_shl_load=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7755 echo "$as_me:7755: result: $ac_cv_func_shl_load" >&5
7756 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7757 if test $ac_cv_func_shl_load = yes; then
7758 lt_cv_dlopen="shl_load"
7760 echo "$as_me:7760: checking for shl_load in -ldld" >&5
7761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_check_lib_save_LIBS=$LIBS
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line 7768 "configure"
7769 #include "confdefs.h"
7771 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7786 rm -f conftest.$ac_objext conftest$ac_exeext
7787 if { (eval echo "$as_me:7787: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:7793: \"$ac_try\"") >&5
7796 echo "$as_me:7796: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_lib_dld_shl_load=yes
7800 echo "$as_me: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 ac_cv_lib_dld_shl_load=no
7804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7807 echo "$as_me:7807: result: $ac_cv_lib_dld_shl_load" >&5
7808 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7809 if test $ac_cv_lib_dld_shl_load = yes; then
7810 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7812 echo "$as_me:7812: checking for dlopen in -ldl" >&5
7813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_check_lib_save_LIBS=$LIBS
7819 cat >conftest.$ac_ext <<_ACEOF
7820 #line 7820 "configure"
7821 #include "confdefs.h"
7823 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:7845: \"$ac_try\"") >&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_dl_dlopen=yes
7852 echo "$as_me: failed program was:" >&5
7853 cat conftest.$ac_ext >&5
7854 ac_cv_lib_dl_dlopen=no
7856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 echo "$as_me:7859: result: $ac_cv_lib_dl_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7861 if test $ac_cv_lib_dl_dlopen = yes; then
7862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7864 echo "$as_me:7864: checking for dlopen" >&5
7865 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7866 if test "${ac_cv_func_dlopen+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.$ac_ext <<_ACEOF
7870 #line 7870 "configure"
7871 #include "confdefs.h"
7872 /* System header to define __stub macros and hopefully few prototypes,
7873 which can conflict with char dlopen (); below. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:7901: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:7907: \"$ac_try\"") >&5
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_func_dlopen=yes
7914 echo "$as_me: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7916 ac_cv_func_dlopen=no
7918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7920 echo "$as_me:7920: result: $ac_cv_func_dlopen" >&5
7921 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7922 if test $ac_cv_func_dlopen = yes; then
7923 lt_cv_dlopen="dlopen"
7925 echo "$as_me:7925: checking for dlopen in -lsvld" >&5
7926 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7927 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_check_lib_save_LIBS=$LIBS
7932 cat >conftest.$ac_ext <<_ACEOF
7933 #line 7933 "configure"
7934 #include "confdefs.h"
7936 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:7952: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:7958: \"$ac_try\"") >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 ac_cv_lib_svld_dlopen=yes
7965 echo "$as_me: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 ac_cv_lib_svld_dlopen=no
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 echo "$as_me:7972: result: $ac_cv_lib_svld_dlopen" >&5
7973 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7974 if test $ac_cv_lib_svld_dlopen = yes; then
7975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7989 if test "x$lt_cv_dlopen" != xno; then
7995 case $lt_cv_dlopen in
7997 save_CPPFLAGS="$CPPFLAGS"
7998 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8000 save_LDFLAGS="$LDFLAGS"
8001 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8004 LIBS="$lt_cv_dlopen_libs $LIBS"
8006 echo "$as_me:8006: checking whether a program can dlopen itself" >&5
8007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8008 if test "${lt_cv_dlopen_self+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 if test "$cross_compiling" = yes; then :
8012 lt_cv_dlopen_self=cross
8014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8015 lt_status=$lt_dlunknown
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8017 "configure"
8018 #include "confdefs.h"
8027 # define LT_DLGLOBAL RTLD_GLOBAL
8030 # define LT_DLGLOBAL DL_GLOBAL
8032 # define LT_DLGLOBAL 0
8036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8037 find out it does not work in some platform. */
8038 #ifndef LT_DLLAZY_OR_NOW
8040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8043 # define LT_DLLAZY_OR_NOW DL_LAZY
8046 # define LT_DLLAZY_OR_NOW RTLD_NOW
8049 # define LT_DLLAZY_OR_NOW DL_NOW
8051 # define LT_DLLAZY_OR_NOW 0
8059 extern "C" void exit (int);
8062 void fnord() { int i=42;}
8065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8066 int status = $lt_dlunknown;
8070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8072 /* dlclose (self); */
8078 if { (eval echo "$as_me:8078: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8081 echo "$as_me:8081: \$? = $ac_status" >&5
8082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8083 (./conftest; exit; ) 2>/dev/null
8086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8088 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8091 # compilation failed
8092 lt_cv_dlopen_self=no
8098 echo "$as_me:8098: result: $lt_cv_dlopen_self" >&5
8099 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8101 if test "x$lt_cv_dlopen_self" = xyes; then
8102 LDFLAGS="$LDFLAGS $link_static_flag"
8103 echo "$as_me:8103: checking whether a statically linked program can dlopen itself" >&5
8104 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8105 if test "${lt_cv_dlopen_self_static+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 if test "$cross_compiling" = yes; then :
8109 lt_cv_dlopen_self_static=cross
8111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8112 lt_status=$lt_dlunknown
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8114 "configure"
8115 #include "confdefs.h"
8124 # define LT_DLGLOBAL RTLD_GLOBAL
8127 # define LT_DLGLOBAL DL_GLOBAL
8129 # define LT_DLGLOBAL 0
8133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8134 find out it does not work in some platform. */
8135 #ifndef LT_DLLAZY_OR_NOW
8137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8140 # define LT_DLLAZY_OR_NOW DL_LAZY
8143 # define LT_DLLAZY_OR_NOW RTLD_NOW
8146 # define LT_DLLAZY_OR_NOW DL_NOW
8148 # define LT_DLLAZY_OR_NOW 0
8156 extern "C" void exit (int);
8159 void fnord() { int i=42;}
8162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8163 int status = $lt_dlunknown;
8167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8169 /* dlclose (self); */
8175 if { (eval echo "$as_me:8175: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8178 echo "$as_me:8178: \$? = $ac_status" >&5
8179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8180 (./conftest; exit; ) 2>/dev/null
8183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8185 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8188 # compilation failed
8189 lt_cv_dlopen_self_static=no
8195 echo "$as_me:8195: result: $lt_cv_dlopen_self_static" >&5
8196 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8199 CPPFLAGS="$save_CPPFLAGS"
8200 LDFLAGS="$save_LDFLAGS"
8205 case $lt_cv_dlopen_self in
8206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8207 *) enable_dlopen_self=unknown ;;
8210 case $lt_cv_dlopen_self_static in
8211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8212 *) enable_dlopen_self_static=unknown ;;
8216 # Report which librarie types wil actually be built
8217 echo "$as_me:8217: checking if libtool supports shared libraries" >&5
8218 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8219 echo "$as_me:8219: result: $can_build_shared" >&5
8220 echo "${ECHO_T}$can_build_shared" >&6
8222 echo "$as_me:8222: checking whether to build shared libraries" >&5
8223 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8224 test "$can_build_shared" = "no" && enable_shared=no
8226 # On AIX, shared libraries and static libraries use the same namespace, and
8227 # are all built from PIC.
8230 test "$enable_shared" = yes && enable_static=no
8231 if test -n "$RANLIB"; then
8232 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8233 postinstall_cmds='$RANLIB $lib'
8238 test "$enable_shared" = yes && enable_static=no
8241 echo "$as_me:8241: result: $enable_shared" >&5
8242 echo "${ECHO_T}$enable_shared" >&6
8244 echo "$as_me:8244: checking whether to build static libraries" >&5
8245 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8246 # Make sure either enable_shared or enable_static is yes.
8247 test "$enable_shared" = yes || enable_static=yes
8248 echo "$as_me:8248: result: $enable_static" >&5
8249 echo "${ECHO_T}$enable_static" >&6
8251 # The else clause should only fire when bootstrapping the
8252 # libtool distribution, otherwise you forgot to ship ltmain.sh
8253 # with your package, and you will get complaints that there are
8254 # no rules to generate ltmain.sh.
8255 if test -f "$ltmain"; then
8256 # Now quote all the things that may contain metacharacters while being
8257 # careful not to overquote the AC_SUBSTed values. We take copies of the
8258 # variables and quote the copies for generation of the libtool script.
8259 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
8260 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8261 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8262 deplibs_check_method reload_flag reload_cmds need_locks \
8263 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8264 lt_cv_sys_global_symbol_to_c_name_address \
8265 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8266 old_postinstall_cmds old_postuninstall_cmds \
8270 lt_prog_compiler_wl \
8271 lt_prog_compiler_pic \
8272 lt_prog_compiler_static \
8273 lt_prog_compiler_no_builtin_flag \
8274 export_dynamic_flag_spec \
8275 thread_safe_flag_spec \
8276 whole_archive_flag_spec \
8278 old_archive_from_new_cmds \
8283 compiler_lib_search_path \
8285 archive_expsym_cmds \
8287 postuninstall_cmds \
8288 old_archive_from_expsyms_cmds \
8289 allow_undefined_flag \
8291 export_symbols_cmds \
8292 hardcode_libdir_flag_spec \
8293 hardcode_libdir_separator \
8294 lt_cv_prog_compiler_c_o \
8299 old_archive_cmds | \
8300 old_archive_from_new_cmds | \
8302 archive_expsym_cmds | \
8303 old_archive_from_expsyms_cmds | \
8304 export_symbols_cmds | \
8305 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8306 postinstall_cmds | postuninstall_cmds | \
8307 old_postinstall_cmds | old_postuninstall_cmds | \
8308 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8309 # Double-quote double-evaled strings.
8310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8319 *'\$0 --fallback-echo"')
8320 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8325 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8327 { echo "$as_me:8327: creating $ofile" >&5
8328 echo "$as_me: creating $ofile" >&6;}
8330 cat <<__EOF__ >> "$cfgfile"
8333 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8334 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8335 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8337 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8338 # Free Software Foundation, Inc.
8340 # This file is part of GNU Libtool:
8341 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8343 # This program is free software; you can redistribute it and/or modify
8344 # it under the terms of the GNU General Public License as published by
8345 # the Free Software Foundation; either version 2 of the License, or
8346 # (at your option) any later version.
8348 # This program is distributed in the hope that it will be useful, but
8349 # WITHOUT ANY WARRANTY; without even the implied warranty of
8350 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8351 # General Public License for more details.
8353 # You should have received a copy of the GNU General Public License
8354 # along with this program; if not, write to the Free Software
8355 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8357 # As a special exception to the GNU General Public License, if you
8358 # distribute this file as part of a program that contains a
8359 # configuration script generated by Autoconf, you may include it under
8360 # the same distribution terms that you use for the rest of that program.
8362 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8363 Xsed="sed -e s/^X//"
8365 # The HP-UX ksh and POSIX shell print the target directory to stdout
8367 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8369 # The names of the tagged configurations supported by this script.
8372 # ### BEGIN LIBTOOL CONFIG
8374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8376 # Shell to use when invoking shell scripts.
8379 # Whether or not to build shared libraries.
8380 build_libtool_libs=$enable_shared
8382 # Whether or not to build static libraries.
8383 build_old_libs=$enable_static
8385 # Whether or not to add -lc for building shared libraries.
8386 build_libtool_need_lc=$archive_cmds_need_lc
8388 # Whether or not to optimize for fast installation.
8389 fast_install=$enable_fast_install
8392 host_alias=$host_alias
8395 # An echo program that does not interpret backslashes.
8400 AR_FLAGS=$lt_AR_FLAGS
8405 # A language-specific compiler.
8408 # Is the compiler the GNU C compiler?
8411 # The linker used to build libraries.
8414 # Whether we need hard or soft links.
8417 # A BSD-compatible nm program.
8420 # A symbol stripping program
8423 # Used to examine libraries when file_magic_cmd begins "file"
8424 MAGIC_CMD=$MAGIC_CMD
8426 # Used on cygwin: DLL creation program.
8429 # Used on cygwin: object dumper.
8432 # Used on cygwin: assembler.
8435 # The name of the directory that contains temporary libtool files.
8438 # How to create reloadable object files.
8439 reload_flag=$lt_reload_flag
8440 reload_cmds=$lt_reload_cmds
8442 # How to pass a linker flag through the compiler.
8443 wl=$lt_lt_prog_compiler_wl
8445 # Object file suffix (normally "o").
8448 # Old archive suffix (normally "a").
8451 # Executable file suffix (normally "").
8454 # Additional compiler flags for building library objects.
8455 pic_flag=$lt_lt_prog_compiler_pic
8458 # What is the maximum length of a command?
8459 max_cmd_len=$lt_cv_sys_max_cmd_len
8461 # Does compiler simultaneously support -c and -o options?
8462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8464 # Must we lock files when doing compilation ?
8465 need_locks=$lt_need_locks
8467 # Do we need the lib prefix for modules?
8468 need_lib_prefix=$need_lib_prefix
8470 # Do we need a version for libraries?
8471 need_version=$need_version
8473 # Whether dlopen is supported.
8474 dlopen_support=$enable_dlopen
8476 # Whether dlopen of programs is supported.
8477 dlopen_self=$enable_dlopen_self
8479 # Whether dlopen of statically linked programs is supported.
8480 dlopen_self_static=$enable_dlopen_self_static
8482 # Compiler flag to prevent dynamic linking.
8483 link_static_flag=$lt_lt_prog_compiler_static
8485 # Compiler flag to turn off builtin functions.
8486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8488 # Compiler flag to allow reflexive dlopens.
8489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8491 # Compiler flag to generate shared objects directly from archives.
8492 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8494 # Compiler flag to generate thread-safe objects.
8495 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8497 # Library versioning type.
8498 version_type=$version_type
8500 # Format of library name prefix.
8501 libname_spec=$lt_libname_spec
8503 # List of archive names. First name is the real one, the rest are links.
8504 # The last name is the one that the linker finds with -lNAME.
8505 library_names_spec=$lt_library_names_spec
8507 # The coded name of the library, if different from the real name.
8508 soname_spec=$lt_soname_spec
8510 # Commands used to build and install an old-style archive.
8512 old_archive_cmds=$lt_old_archive_cmds
8513 old_postinstall_cmds=$lt_old_postinstall_cmds
8514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8516 # Create an old-style archive from a shared archive.
8517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8519 # Create a temporary old-style archive to link instead of a shared archive.
8520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8522 # Commands used to build and install a shared archive.
8523 archive_cmds=$lt_archive_cmds
8524 archive_expsym_cmds=$lt_archive_expsym_cmds
8525 postinstall_cmds=$lt_postinstall_cmds
8526 postuninstall_cmds=$lt_postuninstall_cmds
8528 # Commands to strip libraries.
8529 old_striplib=$lt_old_striplib
8530 striplib=$lt_striplib
8532 # Dependencies to place before the objects being linked to create a
8534 predep_objects=$lt_predep_objects
8536 # Dependencies to place after the objects being linked to create a
8538 postdep_objects=$lt_postdep_objects
8540 # Dependencies to place before the objects being linked to create a
8544 # Dependencies to place after the objects being linked to create a
8546 postdeps=$lt_postdeps
8548 # The library search path used internally by the compiler when linking
8550 compiler_lib_search_path=$lt_compiler_lib_search_path
8552 # Method to check whether dependent libraries are shared objects.
8553 deplibs_check_method=$lt_deplibs_check_method
8555 # Command to use when deplibs_check_method == file_magic.
8556 file_magic_cmd=$lt_file_magic_cmd
8558 # Flag that allows shared libraries with undefined symbols to be built.
8559 allow_undefined_flag=$lt_allow_undefined_flag
8561 # Flag that forces no undefined symbols.
8562 no_undefined_flag=$lt_no_undefined_flag
8564 # Commands used to finish a libtool library installation in a directory.
8565 finish_cmds=$lt_finish_cmds
8567 # Same as above, but a single script fragment to be evaled but not shown.
8568 finish_eval=$lt_finish_eval
8570 # Take the output of nm and produce a listing of raw symbols and C names.
8571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8573 # Transform the output of nm in a proper C declaration
8574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8576 # Transform the output of nm in a C name address pair
8577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8579 # This is the shared library runtime path variable.
8580 runpath_var=$runpath_var
8582 # This is the shared library path variable.
8583 shlibpath_var=$shlibpath_var
8585 # Is shlibpath searched before the hard-coded library search path?
8586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8588 # How to hardcode a shared library path into an executable.
8589 hardcode_action=$hardcode_action
8591 # Whether we should hardcode library paths into libraries.
8592 hardcode_into_libs=$hardcode_into_libs
8594 # Flag to hardcode \$libdir into a binary during linking.
8595 # This must work even if \$libdir does not exist.
8596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8598 # Whether we need a single -rpath flag with a separated argument.
8599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8601 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8603 hardcode_direct=$hardcode_direct
8605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8607 hardcode_minus_L=$hardcode_minus_L
8609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8610 # the resulting binary.
8611 hardcode_shlibpath_var=$hardcode_shlibpath_var
8613 # Variables whose values should be saved in libtool wrapper scripts and
8614 # restored at relink time.
8615 variables_saved_for_relink="$variables_saved_for_relink"
8617 # Whether libtool must link a program against all its dependency libraries.
8618 link_all_deplibs=$link_all_deplibs
8620 # Compile-time system search path for libraries
8621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8623 # Run-time system search path for libraries
8624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8626 # Fix the shell variable \$srcfile for the compiler.
8627 fix_srcfile_path="$fix_srcfile_path"
8629 # Set to yes if exported symbols are required.
8630 always_export_symbols=$always_export_symbols
8632 # The commands to list exported symbols.
8633 export_symbols_cmds=$lt_export_symbols_cmds
8635 # The commands to extract the exported symbol list from a shared archive.
8636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8638 # Symbols that should not be listed in the preloaded symbols.
8639 exclude_expsyms=$lt_exclude_expsyms
8641 # Symbols that must always be exported.
8642 include_expsyms=$lt_include_expsyms
8644 # ### END LIBTOOL CONFIG
8650 cat <<\EOF >> "$cfgfile"
8652 # AIX sometimes has problems with the GCC collect2 program. For some
8653 # reason, if we set the COLLECT_NAMES environment variable, the problems
8654 # vanish in a puff of smoke.
8655 if test "X${COLLECT_NAMES+set}" != Xset; then
8657 export COLLECT_NAMES
8662 cygwin* | mingw* | pw32* | os2*)
8663 cat <<'EOF' >> "$cfgfile"
8664 # This is a source program that is used to create dlls on Windows
8665 # Don't remove nor modify the starting and closing comments
8666 # /* ltdll.c starts here */
8667 # #define WIN32_LEAN_AND_MEAN
8668 # #include <windows.h>
8669 # #undef WIN32_LEAN_AND_MEAN
8670 # #include <stdio.h>
8672 # #ifndef __CYGWIN__
8673 # # ifdef __CYGWIN32__
8674 # # define __CYGWIN__ __CYGWIN32__
8678 # #ifdef __cplusplus
8681 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8682 # #ifdef __cplusplus
8687 # #include <cygwin/cygwin_dll.h>
8688 # DECLARE_CYGWIN_DLL( DllMain );
8690 # HINSTANCE __hDllInstance_base;
8693 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8695 # __hDllInstance_base = hInst;
8698 # /* ltdll.c ends here */
8700 # This is a source program that is used to create import libraries
8701 # on Windows for dlls which lack them. Don't remove nor modify the
8702 # starting and closing comments
8703 # /* impgen.c starts here */
8704 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8706 # This file is part of GNU libtool.
8708 # This program is free software; you can redistribute it and/or modify
8709 # it under the terms of the GNU General Public License as published by
8710 # the Free Software Foundation; either version 2 of the License, or
8711 # (at your option) any later version.
8713 # This program is distributed in the hope that it will be useful,
8714 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8716 # GNU General Public License for more details.
8718 # You should have received a copy of the GNU General Public License
8719 # along with this program; if not, write to the Free Software
8720 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8723 # #include <stdio.h> /* for printf() */
8724 # #include <unistd.h> /* for open(), lseek(), read() */
8725 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8726 # #include <string.h> /* for strdup() */
8728 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8730 # #define O_BINARY 0
8733 # static unsigned int
8734 # pe_get16 (fd, offset)
8738 # unsigned char b[2];
8739 # lseek (fd, offset, SEEK_SET);
8741 # return b[0] + (b[1]<<8);
8744 # static unsigned int
8745 # pe_get32 (fd, offset)
8749 # unsigned char b[4];
8750 # lseek (fd, offset, SEEK_SET);
8752 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8755 # static unsigned int
8759 # unsigned char *b = ptr;
8760 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8769 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8770 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8771 # unsigned long name_rvas, nexp;
8772 # unsigned char *expdata, *erva;
8773 # char *filename, *dll_name;
8775 # filename = argv[1];
8777 # dll = open(filename, O_RDONLY|O_BINARY);
8781 # dll_name = filename;
8783 # for (i=0; filename[i]; i++)
8784 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8785 # dll_name = filename + i +1;
8787 # pe_header_offset = pe_get32 (dll, 0x3c);
8788 # opthdr_ofs = pe_header_offset + 4 + 20;
8789 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8791 # if (num_entries < 1) /* no exports */
8794 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8795 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8796 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8797 # secptr = (pe_header_offset + 4 + 20 +
8798 # pe_get16 (dll, pe_header_offset + 4 + 16));
8801 # for (i = 0; i < nsections; i++)
8804 # unsigned long secptr1 = secptr + 40 * i;
8805 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8806 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8807 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8808 # lseek(dll, secptr1, SEEK_SET);
8809 # read(dll, sname, 8);
8810 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8812 # expptr = fptr + (export_rva - vaddr);
8813 # if (export_rva + export_size > vaddr + vsize)
8814 # export_size = vsize - (export_rva - vaddr);
8819 # expdata = (unsigned char*)malloc(export_size);
8820 # lseek (dll, expptr, SEEK_SET);
8821 # read (dll, expdata, export_size);
8822 # erva = expdata - export_rva;
8824 # nexp = pe_as32 (expdata+24);
8825 # name_rvas = pe_as32 (expdata+32);
8827 # printf ("EXPORTS\n");
8828 # for (i = 0; i<nexp; i++)
8830 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8831 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8836 # /* impgen.c ends here */
8842 # We use sed instead of cat because bash on DJGPP gets confused if
8843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8844 # text mode, it properly converts lines to CR/LF. This bash problem
8845 # is reportedly fixed, but why not run on old versions too?
8846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8848 mv -f "$cfgfile" "$ofile" || \
8849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8853 # If there is no Makefile yet, we rely on a make rule to execute
8854 # `config.status --recheck' to rerun these tests and create the
8855 # libtool script then.
8856 test -f Makefile && make "$ltmain"
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8867 # Determine the tags from the languages used - this is another
8868 # hack by Erik L - if the flag for -g is set, then AC_PROG_*** has
8869 # probably been called. NB: I removed the GCJ support...
8871 if test "${ac_cv_prog_cxx_g+set}" = set; then
8874 if test "${ac_cv_prog_f77_g+set}" = set; then
8875 if test -n "$tagnames"; then
8882 if test -f "$ltmain" && test -n "$tagnames"; then
8883 if test ! -f "${ofile}"; then
8884 { echo "$as_me:8884: WARNING: output file \`$ofile' does not exist" >&5
8885 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8888 if test -z "$LTCC"; then
8889 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8890 if test -z "$LTCC"; then
8891 { echo "$as_me:8891: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8892 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8894 { echo "$as_me:8894: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8895 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8899 # Extract list of available tagged configurations in $ofile.
8900 # Note that this assumes the entire list is on one line.
8901 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8903 IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
8904 for tagname in $tagnames; do
8906 # Check whether tagname contains only valid characters
8907 case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
8909 *) { { echo "$as_me:8909: error: invalid tag name: $tagname" >&5
8910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8911 { (exit 1); exit 1; }; }
8915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8917 { { echo "$as_me:8917: error: tag name $tagname already exists" >&5
8918 echo "$as_me: error: tag name $tagname already exists" >&2;}
8919 { (exit 1); exit 1; }; }
8922 # Update the list of available tags.
8923 if test -n "$tagname"; then
8924 echo appending configuration tag \"$tagname\" to $ofile
8929 ac_cpp='$CXXCPP $CPPFLAGS'
8930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8934 archive_cmds_need_lc_CXX=no
8935 allow_undefined_flag_CXX=
8936 always_export_symbols_CXX=no
8937 archive_expsym_cmds_CXX=
8938 export_dynamic_flag_spec_CXX=
8939 hardcode_direct_CXX=no
8940 hardcode_libdir_flag_spec_CXX=
8941 hardcode_libdir_separator_CXX=
8942 hardcode_minus_L_CXX=no
8943 link_all_deplibs_CXX=unknown
8944 old_archive_cmds_CXX=$old_archive_cmds
8945 no_undefined_flag_CXX=
8946 whole_archive_flag_spec_CXX=
8948 # Dependencies to place before and after the object being linked:
8950 postdep_objects_CXX=
8953 compiler_lib_search_path_CXX=
8955 # Source file extension for C test sources.
8958 # Object file extension for compiled C test sources.
8962 # Code to be used in simple compile tests
8963 lt_simple_compile_test_code="int some_variable = 0;\n"
8965 # Code to be used in simple link tests
8966 lt_simple_link_test_code='int main(int char *) { return(0); }\n'
8968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8970 # If no C compiler was specified, use CC.
8973 # Allow CC to be a program name with arguments.
8977 # Allow CC to be a program name with arguments.
8983 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8985 # We don't want -fno-exception wen compiling C++ code, so set the
8986 # no_builtin_flag separately
8987 if test "$GXX" = yes; then
8988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8990 lt_prog_compiler_no_builtin_flag_CXX=
8993 if test "$GXX" = yes; then
8994 # Set up default GNU C++ configuration
8996 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8997 # archiving commands below assume that GNU ld is being used.
8998 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8999 egrep 'GNU ld' > /dev/null; then
9002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 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'
9005 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9008 # If archive_cmds runs LD, not CC, wlarc should be empty
9009 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9010 # investigate it a little bit more. (MM)
9013 # ancient GNU ld didn't support --whole-archive et. al.
9014 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9015 egrep 'no-whole-archive' > /dev/null; then
9016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9018 whole_archive_flag_spec_CXX=
9024 # A generic and very simple default shared library creation
9025 # command for GNU C++ for the case where it uses the native
9026 # linker, instead of GNU ld. If possible, this setting should
9027 # overridden to take advantage of the native linker features on
9028 # the platform it is being used on.
9029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9032 # Commands to make compiler produce verbose output that lists
9033 # what "hidden" libraries, object files and flags are used when
9034 # linking a shared library.
9035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9043 # PORTME: fill in a description of your system's C++ link characteristics
9044 echo "$as_me:9044: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9049 # FIXME: insert proper C++ library support
9054 hardcode_direct_CXX=yes
9055 hardcode_libdir_separator_CXX=':'
9056 link_all_deplibs_CXX=yes
9057 # When large executables or shared objects are built, AIX ld can
9058 # have problems creating the table of contents. If linking a library
9059 # or program results in "error TOC overflow" add -mminimal-toc to
9060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9062 if test "$GXX" = yes; then
9063 case $host_os in aix4.012|aix4.012.*)
9064 # We only want to do this on AIX 4.2 and lower, the check
9065 # below for broken collect2 doesn't work under 4.3+
9066 collect2name=`${CC} -print-prog-name=collect2`
9067 if test -f "$collect2name" && \
9068 strings "$collect2name" | grep resolve_lib_name >/dev/null
9070 # We have reworked collect2
9071 hardcode_direct_CXX=yes
9073 # We have old collect2
9074 hardcode_direct_CXX=unsupported
9075 # It fails to find uninstalled libraries when the uninstalled
9076 # path is not listed in the libpath. Setting hardcode_minus_L
9077 # to unsupported forces relinking
9078 hardcode_minus_L_CXX=yes
9079 hardcode_libdir_flag_spec_CXX='-L$libdir'
9080 hardcode_libdir_separator_CXX=
9083 shared_flag='-shared'
9086 if test "$host_cpu" = ia64; then
9087 shared_flag='${wl}-G'
9089 shared_flag='${wl}-bM:SRE'
9093 if test "$host_cpu" = ia64; then
9094 # On IA64, the linker does run time linking by default, so we don't
9095 # have to do anything special.
9096 aix_use_runtimelinking=no
9097 exp_sym_flag='-Bexport'
9100 # Test if we are trying to use run time linking, or normal AIX style linking.
9101 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
9102 aix_use_runtimelinking=no
9103 for ld_flag in $LDFLAGS; do
9104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
9105 aix_use_runtimelinking=yes
9109 exp_sym_flag='-bexport'
9110 no_entry_flag='-bnoentry'
9112 # It seems that -bexpall does not export symbols beginning with
9113 # underscore (_), so it is better to generate a list of symbols to export.
9114 always_export_symbols_CXX=yes
9115 if test "$aix_use_runtimelinking" = yes; then
9116 # Determine the default libpath from the value encoded in an empty executable.
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line 9118 "configure"
9119 #include "confdefs.h"
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:9130: \"$ac_link\"") >&5
9131 (eval $ac_link) 2>&5
9133 echo "$as_me:9133: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -s conftest$ac_exeext'
9136 { (eval echo "$as_me:9136: \"$ac_try\"") >&5
9139 echo "$as_me:9139: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
9143 # Check for a 64-bit object if we didn't find anything.
9144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
9146 echo "$as_me: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9152 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9154 allow_undefined_flag_CXX=' -Wl,-G'
9155 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}-brtl \${wl}$exp_sym_flag:\$export_symbols"
9157 if test "$host_cpu" = ia64; then
9158 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9159 allow_undefined_flag_CXX="-z nodefs"
9160 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"
9162 # Determine the default libpath from the value encoded in an empty executable.
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line 9164 "configure"
9165 #include "confdefs.h"
9175 rm -f conftest.$ac_objext conftest$ac_exeext
9176 if { (eval echo "$as_me:9176: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>&5
9179 echo "$as_me:9179: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (eval echo "$as_me:9182: \"$ac_try\"") >&5
9185 echo "$as_me:9185: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
9189 # Check for a 64-bit object if we didn't find anything.
9190 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
9192 echo "$as_me: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9200 # Warning - without using the other run time loading flags, -berok will
9201 # link without error, but may produce a broken library.
9202 no_undefined_flag_CXX=' ${wl}-bnoerok'
9203 allow_undefined_flag_CXX=' ${wl}-berok'
9204 # -bexpall does not export symbols beginning with underscore (_)
9205 always_export_symbols_CXX=yes
9206 # Exported symbols can be pulled into shared objects from archives
9207 whole_archive_flag_spec_CXX=' '
9208 archive_cmds_need_lc_CXX=yes
9209 # This is similar to how AIX traditionally builds it's shared libraries.
9210 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'
9215 case $cc_basename in
9217 # FIXME: insert proper C++ library support
9223 case $cc_basename in
9225 # FIXME: insert proper C++ library support
9229 # Green Hills C++ Compiler
9230 # FIXME: insert proper C++ library support
9234 # FIXME: insert proper C++ library support
9240 # C++ shared libraries reported to be fairly broken before switch to ELF
9244 archive_cmds_need_lc_CXX=no
9247 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9252 if test $with_gnu_ld = no; then
9253 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator_CXX=:
9255 export_dynamic_flag_spec_CXX='${wl}-E'
9257 hardcode_direct_CXX=yes
9258 hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
9259 # location of the library.
9261 case $cc_basename in
9263 # FIXME: insert proper C++ library support
9268 hpux9*) 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' ;;
9269 *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
9271 # Commands to make compiler produce verbose output that lists
9272 # what "hidden" libraries, object files and flags are used when
9273 # linking a shared library.
9275 # There doesn't appear to be a way to prevent this compiler from
9276 # explicitly linking system object files so we need to strip them
9277 # from the output so that they don't get included in the library
9279 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9282 if test $GXX = yes; then
9283 if test $with_gnu_ld = no; then
9285 hpux9*) 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' ;;
9286 *) 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' ;;
9290 # FIXME: insert proper C++ library support
9297 case $cc_basename in
9300 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'
9302 # Archives containing C++ object files must be created using
9303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9304 # necessary to make sure instantiated templates are included
9306 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9309 if test "$GXX" = yes; then
9310 if test "$with_gnu_ld" = no; then
9311 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'
9313 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9316 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9317 hardcode_libdir_separator_CXX=:
9318 link_all_deplibs_CXX=yes
9323 case $cc_basename in
9325 # Kuck and Associates, Inc. (KAI) C++ Compiler
9327 # KCC will only create a shared library if the output file
9328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9329 # to its proper name (with version) after linking.
9330 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9331 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9333 # Commands to make compiler produce verbose output that lists
9334 # what "hidden" libraries, object files and flags are used when
9335 # linking a shared library.
9337 # There doesn't appear to be a way to prevent this compiler from
9338 # explicitly linking system object files so we need to strip them
9339 # from the output so that they don't get included in the library
9341 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9343 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9346 # Archives containing C++ object files must be created using
9347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 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'
9355 runpath_var=LD_RUN_PATH
9356 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9357 hardcode_libdir_separator_CXX=:
9359 # Commands to make compiler produce verbose output that lists
9360 # what "hidden" libraries, object files and flags are used when
9361 # linking a shared library.
9363 # There doesn't appear to be a way to prevent this compiler from
9364 # explicitly linking system object files so we need to strip them
9365 # from the output so that they don't get included in the library
9367 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'
9372 # FIXME: insert proper C++ library support
9376 # FIXME: insert proper C++ library support
9380 case $cc_basename in
9382 # FIXME: insert proper C++ library support
9386 # FIXME: insert proper C++ library support
9392 # NetBSD uses g++ - do we need to do anything?
9395 case $cc_basename in
9397 # Kuck and Associates, Inc. (KAI) C++ Compiler
9399 # KCC will only create a shared library if the output file
9400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9401 # to its proper name (with version) after linking.
9402 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9405 hardcode_libdir_separator_CXX=:
9407 # Archives containing C++ object files must be created using
9408 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9409 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9413 # Rational C++ 2.4.1
9414 # FIXME: insert proper C++ library support
9418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9419 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'
9421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9422 hardcode_libdir_separator_CXX=:
9424 # Commands to make compiler produce verbose output that lists
9425 # what "hidden" libraries, object files and flags are used when
9426 # linking a shared library.
9428 # There doesn't appear to be a way to prevent this compiler from
9429 # explicitly linking system object files so we need to strip them
9430 # from the output so that they don't get included in the library
9432 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'
9435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9437 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'
9439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator_CXX=:
9442 # Commands to make compiler produce verbose output that lists
9443 # what "hidden" libraries, object files and flags are used when
9444 # linking a shared library.
9445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9448 # FIXME: insert proper C++ library support
9455 case $cc_basename in
9457 # Kuck and Associates, Inc. (KAI) C++ Compiler
9459 # KCC will only create a shared library if the output file
9460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9461 # to its proper name (with version) after linking.
9462 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9465 hardcode_libdir_separator_CXX=:
9467 # Archives containing C++ object files must be created using
9468 # the KAI C++ compiler.
9469 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9472 # Rational C++ 2.4.1
9473 # FIXME: insert proper C++ library support
9477 allow_undefined_flag_CXX=' -expect_unresolved \*'
9478 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'
9479 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9480 echo "-hidden">> $lib.exp~
9481 $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~
9484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9485 hardcode_libdir_separator_CXX=:
9487 # Commands to make compiler produce verbose output that lists
9488 # what "hidden" libraries, object files and flags are used when
9489 # linking a shared library.
9491 # There doesn't appear to be a way to prevent this compiler from
9492 # explicitly linking system object files so we need to strip them
9493 # from the output so that they don't get included in the library
9495 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'
9498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9500 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'
9502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9503 hardcode_libdir_separator_CXX=:
9505 # Commands to make compiler produce verbose output that lists
9506 # what "hidden" libraries, object files and flags are used when
9507 # linking a shared library.
9508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9511 # FIXME: insert proper C++ library support
9518 # FIXME: insert proper C++ library support
9522 case $cc_basename in
9524 # FIXME: insert proper C++ library support
9528 # FIXME: insert proper C++ library support
9534 case $cc_basename in
9537 # FIXME: insert proper C++ library support
9542 # FIXME: insert proper C++ library support
9546 # FIXME: insert proper C++ library support
9552 case $cc_basename in
9554 # Sun C++ 4.2, 5.x and Centerline C++
9555 no_undefined_flag_CXX=' -zdefs'
9556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9557 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9558 $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'
9560 hardcode_libdir_flag_spec_CXX='-R$libdir'
9561 hardcode_shlibpath_var_CXX=no
9563 solaris2.0-5 | solaris2.0-5.*) ;;
9565 # The C++ compiler is used as linker so we must use $wl
9566 # flag to pass the commands to the underlying system
9568 # Supported since Solaris 2.6 (maybe 2.5.1?)
9569 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9572 link_all_deplibs_CXX=yes
9574 # Commands to make compiler produce verbose output that lists
9575 # what "hidden" libraries, object files and flags are used when
9576 # linking a shared library.
9578 # There doesn't appear to be a way to prevent this compiler from
9579 # explicitly linking system object files so we need to strip them
9580 # from the output so that they don't get included in the library
9582 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9584 # Archives containing C++ object files must be created using
9585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9586 # necessary to make sure instantiated templates are included
9588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9591 # Green Hills C++ Compiler
9592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9594 # The C++ compiler must be used to create the archive.
9595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9598 # GNU C++ compiler with Solaris linker
9599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9600 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9601 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9602 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9604 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9606 # Commands to make compiler produce verbose output that lists
9607 # what "hidden" libraries, object files and flags are used when
9608 # linking a shared library.
9609 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9611 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9613 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9614 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9615 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9617 # Commands to make compiler produce verbose output that lists
9618 # what "hidden" libraries, object files and flags are used when
9619 # linking a shared library.
9620 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9623 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9629 case $cc_basename in
9631 # NonStop-UX NCC 3.20
9632 # FIXME: insert proper C++ library support
9636 # FIXME: insert proper C++ library support
9642 # FIXME: insert proper C++ library support
9646 # FIXME: insert proper C++ library support
9650 # FIXME: insert proper C++ library support
9654 echo "$as_me:9654: result: $ld_shlibs_CXX" >&5
9655 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9656 test "$ld_shlibs_CXX" = no && can_build_shared=no
9658 # Figure out "hidden" C++ library dependencies from verbose
9659 # compiler output whening linking a shared library.
9660 cat > conftest.$ac_ext <<EOF
9664 Foo (void) { a = 0; }
9670 if { (eval echo "$as_me:9670: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>&5
9673 echo "$as_me:9673: \$? = $ac_status" >&5
9674 (exit $ac_status); }; then
9675 # Parse the compiler output and extract the necessary
9676 # objects, libraries and library flags.
9678 # Sentinel used to keep track of whether or not we are before
9679 # the conftest object file.
9680 pre_test_object_deps_done=no
9682 # The `*' in the case matches for architectures that use `case' in
9683 # $output_verbose_cmd can trigger glob expansion during the loop
9684 # eval without this substitution.
9685 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9687 for p in `eval $output_verbose_link_cmd`; do
9692 # Some compilers place space between "-{L,R}" and the path.
9695 || test $p = "-R"; then
9702 if test "$pre_test_object_deps_done" = no; then
9705 # Internal compiler library paths should come after those
9706 # provided the user. The postdeps already come after the
9707 # user supplied libs so there is no need to process them.
9708 if test -z "$compiler_lib_search_path_CXX"; then
9709 compiler_lib_search_path_CXX="${prev}${p}"
9711 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9714 # The "-l" case would never come before the object being
9715 # linked, so don't bother handling this case.
9718 if test -z "$postdeps_CXX"; then
9719 postdeps_CXX="${prev}${p}"
9721 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9727 # This assumes that the test object file only shows up
9728 # once in the compiler output.
9729 if test "$p" = "conftest.$objext"; then
9730 pre_test_object_deps_done=yes
9734 if test "$pre_test_object_deps_done" = no; then
9735 if test -z "$predep_objects_CXX"; then
9736 predep_objects_CXX="$p"
9738 predep_objects_CXX="$predep_objects_CXX $p"
9741 if test -z "$postdep_objects_CXX"; then
9742 postdep_objects_CXX="$p"
9744 postdep_objects_CXX="$postdep_objects_CXX $p"
9749 *) ;; # Ignore the rest.
9757 echo "ltcf-cxx.sh: error: problem compiling test program"
9760 $rm -f confest.$objext
9762 case " $postdeps_CXX " in
9763 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9764 *) archive_cmds_need_lc_CXX=yes ;;
9770 hard_links="nottested"
9771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
9772 # do not overwrite the value of need_locks provided by the user
9773 echo "$as_me:9773: checking if we can lock with hard links" >&5
9774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9779 ln conftest.a conftest.b 2>&5 || hard_links=no
9780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781 echo "$as_me:9781: result: $hard_links" >&5
9782 echo "${ECHO_T}$hard_links" >&6
9783 if test "$hard_links" = no; then
9784 { echo "$as_me:9784: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9792 lt_prog_compiler_wl_CXX=
9793 lt_prog_compiler_pic_CXX=
9794 lt_prog_compiler_static_CXX=
9796 echo "$as_me:9796: checking for $compiler option to produce PIC" >&5
9797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9798 if test "$GCC" = yes; then
9799 lt_prog_compiler_wl_CXX='-Wl,'
9800 lt_prog_compiler_static_CXX='-static'
9804 # All AIX code is PIC.
9805 if test "$host_cpu" = ia64; then
9806 # AIX 5 now supports IA64 processor
9807 lt_prog_compiler_static_CXX='-Bstatic'
9809 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9814 # FIXME: we need at least 68020 code to build shared libraries, but
9815 # adding the `-m68020' flag to GCC prevents building anything better,
9817 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9820 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
9821 # PIC is the default for these OSes.
9824 cygwin* | mingw* | pw32* | os2*)
9825 # This hack is so that the source file can tell whether it is being
9826 # built for inclusion in a dll (and should export symbols for example).
9827 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9830 darwin* | rhapsody*)
9831 # PIC is the default on this platform
9832 # Common symbols not allowed in MH_DYLIB files
9833 lt_prog_compiler_pic_CXX='-fno-common'
9837 # Just because we use GCC doesn't mean we suddenly get shared libraries
9838 # on systems that don't support them.
9839 lt_prog_compiler_can_build_shared_CXX=no
9844 if test -d /usr/nec; then
9845 lt_prog_compiler_pic_CXX=-Kconform_pic
9850 lt_prog_compiler_pic_CXX='-fPIC'
9854 # PORTME Check for flag to pass linker flags through the system compiler.
9857 lt_prog_compiler_wl_CXX='-Wl,'
9858 if test "$host_cpu" = ia64; then
9859 # AIX 5 now supports IA64 processor
9860 lt_prog_compiler_static_CXX='-Bstatic'
9862 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9866 cygwin* | mingw* | pw32* | os2*)
9867 # This hack is so that the source file can tell whether it is being
9868 # built for inclusion in a dll (and should export symbols for example).
9869 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9872 hpux9* | hpux10* | hpux11*)
9873 lt_prog_compiler_wl_CXX='-Wl,'
9874 lt_prog_compiler_pic_CXX='+Z'
9875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9876 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
9880 lt_prog_compiler_wl_CXX='-Wl,'
9881 # PIC (with -KPIC) is the default.
9882 lt_prog_compiler_static_CXX='-non_shared'
9886 # Check flags for non-gnu compilers on Linux
9889 # The only non-gnu compiler on Linux/Alpha is the Compaq one:
9890 lt_prog_compiler_wl_CXX='-Wl,'
9891 lt_prog_compiler_static_CXX='-non_shared'
9894 lt_prog_compiler_can_build_shared_CXX=no
9899 lt_prog_compiler_pic_CXX='-KPIC'
9900 lt_prog_compiler_static_CXX='-Bstatic'
9903 osf3* | osf4* | osf5*)
9904 lt_prog_compiler_wl_CXX='-Wl,'
9905 # All OSF/1 code is PIC.
9906 lt_prog_compiler_static_CXX='-non_shared'
9910 lt_prog_compiler_pic_CXX='-Kpic'
9911 lt_prog_compiler_static_CXX='-dn'
9915 lt_prog_compiler_wl_CXX='-Wl,'
9916 lt_prog_compiler_pic_CXX='-KPIC'
9917 lt_prog_compiler_static_CXX='-Bstatic'
9921 lt_prog_compiler_wl_CXX='-Qoption ld '
9922 lt_prog_compiler_pic_CXX='-PIC'
9923 lt_prog_compiler_static_CXX='-Bstatic'
9926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9927 if test "x$host_vendor" = xsni; then
9928 lt_prog_compiler_wl_CXX='-LD'
9930 lt_prog_compiler_wl_CXX='-Wl,'
9932 lt_prog_compiler_pic_CXX='-KPIC'
9933 lt_prog_compiler_static_CXX='-Bstatic'
9937 if test -d /usr/nec ;then
9938 lt_prog_compiler_pic_CXX='-Kconform_pic'
9939 lt_prog_compiler_static_CXX='-Bstatic'
9944 lt_prog_compiler_pic_CXX='-pic'
9945 lt_prog_compiler_static_CXX='-Bstatic'
9949 lt_prog_compiler_can_build_shared_CXX=no
9953 echo "$as_me:9953: result: $lt_prog_compiler_pic_CXX" >&5
9954 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9957 # Check to make sure the PIC flag actually works.
9959 if test -n "$lt_prog_compiler_pic_CXX"; then
9960 echo "$as_me:9960: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9962 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 lt_prog_compiler_pic_works_CXX=no
9966 ac_outfile=conftest.$ac_objext
9967 save_CFLAGS="$CFLAGS"
9968 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX"
9969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9970 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9971 # The compiler can only warn and ignore the option if not recognized
9972 # So say no if there are warnings
9973 if test -s conftest.err; then
9974 # Append any errors to the config.log.
9975 cat conftest.err 1>&5
9977 lt_prog_compiler_pic_works_CXX=yes
9981 CFLAGS="$save_CFLAGS"
9984 echo "$as_me:9984: result: $lt_prog_compiler_pic_works_CXX" >&5
9985 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9987 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9988 case $lt_prog_compiler_pic_CXX in
9990 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9994 lt_prog_compiler_pic_CXX=
9995 lt_prog_compiler_can_build_shared_CXX=no
10000 # For platforms which do not support PIC, -DPIC is meaningless:
10002 lt_prog_compiler_pic_CXX=
10005 echo "$as_me:10005: checking if $compiler PIC define -DPIC works" >&5
10006 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
10007 if test "${lt_prog_compiler_picdef_works_CXX+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 lt_prog_compiler_picdef_works_CXX=no
10011 ac_outfile=conftest.$ac_objext
10012 save_CFLAGS="$CFLAGS"
10013 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
10014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10015 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10016 # The compiler can only warn and ignore the option if not recognized
10017 # So say no if there are warnings
10018 if test -s conftest.err; then
10019 # Append any errors to the config.log.
10020 cat conftest.err 1>&5
10022 lt_prog_compiler_picdef_works_CXX=yes
10026 CFLAGS="$save_CFLAGS"
10029 echo "$as_me:10029: result: $lt_prog_compiler_picdef_works_CXX" >&5
10030 echo "${ECHO_T}$lt_prog_compiler_picdef_works_CXX" >&6
10032 if test x"$lt_prog_compiler_picdef_works_CXX" = xyes; then
10033 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10035 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX"
10041 echo "$as_me:10041: checking if $compiler supports -c -o file.$ac_objext" >&5
10042 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10043 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 lt_cv_prog_compiler_c_o_CXX=no
10047 $rm -r conftest 2>/dev/null
10051 save_CFLAGS="$CFLAGS"
10052 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
10053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10055 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10056 # that will create temporary files in the current directory regardless of
10057 # the output directory. Thus, making CWD read-only will cause this test
10058 # to fail, enabling locking or at least warning the user not to do parallel
10062 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10064 # The compiler can only warn and ignore the option if not recognized
10065 # So say no if there are warnings
10066 if test -s out/conftest.err; then
10067 # Append any errors to the config.log.
10068 cat out/conftest.err 1>&5
10070 lt_cv_prog_compiler_c_o_CXX=yes
10073 CFLAGS="$save_CFLAGS"
10076 $rm conftest* out/*
10083 echo "$as_me:10083: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10086 echo "$as_me:10086: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10090 allow_undefined_flag_CXX=
10093 archive_cmds_need_lc_CXX=
10094 archive_expsym_cmds_CXX=
10095 old_archive_From_new_cmds_CXX=
10096 old_archive_from_expsyms_cmds_CXX=
10097 export_dynamic_flag_spec_CXX=
10098 whole_archive_flag_spec_CXX=
10099 thread_safe_flag_spec_CXX=
10100 hardcode_libdir_flag_spec_CXX=
10101 hardcode_libdir_separator_CXX=
10102 hardcode_direct_CXX=no
10103 hardcode_minus_L_CXX=no
10104 hardcode_shlibpath_var_CXX=unsupported
10105 link_all_deplibs_CXX=unknown
10106 always_export_symbols_CXX=no
10107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10108 # include_expsyms should be a list of space-separated symbols to be *always*
10109 # included in the symbol list
10110 include_expsyms_CXX=
10111 # exclude_expsyms can be an egrep regular expression of symbols to exclude
10112 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10113 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10114 # as well as any symbol that contains `d'.
10115 exclude_expsyms_CXX="_GLOBAL_OFFSET_TABLE_"
10116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10117 # platforms (ab)use it in PIC code, but their linkers get confused if
10118 # the symbol is explicitly referenced. Since portable code cannot
10119 # rely on this symbol name, it's probably fine to never include it in
10120 # preloaded symbol tables.
10121 extract_expsyms_cmds=
10124 cygwin* | mingw* | pw32*)
10125 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10126 # When not using gcc, we currently assume that we are using
10127 # Microsoft Visual C++.
10128 if test "$GCC" != yes; then
10138 if test "$with_gnu_ld" = yes; then
10139 # If archive_cmds runs LD, not CC, wlarc should be empty
10142 # See if GNU ld supports shared libraries.
10144 aix3* | aix4* | aix5*)
10145 # On AIX/PPC, the GNU linker is very broken
10146 if test "$host_cpu" != ia64; then
10150 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10151 *** to be unable to reliably create shared libraries on AIX.
10152 *** Therefore, libtool is disabling shared libraries support. If you
10153 *** really care for shared libraries, you may want to modify your PATH
10154 *** so that a non-GNU linker is found, and then restart.
10161 archive_cmds_CXX='$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)'
10162 hardcode_libdir_flag_spec_CXX='-L$libdir'
10163 hardcode_minus_L_CXX=yes
10165 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10166 # that the semantics of dynamic libraries on AmigaOS, at least up
10167 # to version 4, is to share data among multiple programs linked
10168 # with the same dynamic library. Since this doesn't match the
10169 # behavior of shared libraries on other platforms, we can't use
10175 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10176 allow_undefined_flag_CXX=unsupported
10177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10178 # support --undefined. This deserves some investigation. FIXME
10179 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185 cygwin* | mingw* | pw32*)
10186 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, as there is
10187 # no search path for DLLs.
10188 hardcode_libdir_flag_spec_CXX='-L$libdir'
10189 allow_undefined_flag_CXX=unsupported
10190 always_export_symbols_CXX=yes
10192 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
10193 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
10194 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
10195 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
10196 else $CC -o impgen impgen.c ; fi)~
10197 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
10199 old_archive_from_expsyms_cmds_CXX='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
10201 # cygwin and mingw dlls have different entry points and sets of symbols
10203 # FIXME: what about values for MSVC?
10204 dll_entry=__cygwin_dll_entry@12
10205 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
10209 dll_entry=_DllMainCRTStartup@12
10210 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
10214 # mingw and cygwin differ, and it's simplest to just exclude the union
10215 # of the two symbol sets.
10216 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
10218 # recent cygwin and mingw systems supply a stub DllMain which the user
10219 # can override, but on older systems we have to supply one (in ltdll.c)
10220 if test "x$lt_cv_need_dllmain" = "xyes"; then
10221 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
10222 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
10223 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
10229 # Extract the symbol export list from an `--export-all' def file,
10230 # then regenerate the def file from the symbol export list, so that
10231 # the compiled dll only exports the symbol export list.
10232 # Be careful not to strip the DATA tag left by newer dlltools.
10233 export_symbols_cmds_CXX="$ltdll_cmds"'
10234 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
10235 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
10237 # If the export-symbols file already is a .def file (1st line
10238 # is EXPORTS), use it as is.
10239 # If DATA tags from a recent dlltool are present, honour them!
10240 archive_expsym_cmds_CXX='if test "x`head -1 $export_symbols`" = xEXPORTS; then
10241 cp $export_symbols $output_objdir/$soname-def;
10243 echo EXPORTS > $output_objdir/$soname-def;
10245 cat $export_symbols | while read symbol; do
10246 set dummy \$symbol;
10248 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
10249 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
10251 _lt_hint=`expr 1 + \$_lt_hint`;
10255 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10256 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
10257 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10258 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
10259 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
10262 darwin* | rhapsody*)
10263 allow_undefined_flag_CXX='-undefined suppress'
10264 # FIXME: Relying on posixy $() will cause problems for
10265 # cross-compilation, but unfortunately the echo tests do not
10266 # yet detect zsh echo's removal of \ escapes.
10267 archive_cmds_CXX='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
10268 # We need to add '_' to the symbols in $export_symbols first
10269 #_LT_AC_TAGVAR(archive_expsym_cmds, CXX)="$_LT_AC_TAGVAR(archive_cmds, CXX)"' && strip -s $export_symbols'
10270 hardcode_direct_CXX=yes
10271 hardcode_shlibpath_var_CXX=no
10272 whole_archive_flag_spec_CXX='-all_load $convenience'
10276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277 archive_cmds_CXX='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10280 archive_cmds_CXX='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 archive_expsym_cmds_CXX='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10286 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
10290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10291 *** create shared libraries on Solaris systems. Therefore, libtool
10292 *** is disabling shared libraries support. We urge you to upgrade GNU
10293 *** binutils to release 2.9.1 or newer. Another option is to modify
10294 *** your PATH or compiler configuration so that the native linker is
10295 *** used, and then restart.
10298 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10299 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307 archive_cmds_CXX='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_direct_CXX=yes
10310 hardcode_shlibpath_var_CXX=no
10314 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10315 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10316 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10323 if test "$ld_shlibs_CXX" = yes; then
10324 runpath_var=LD_RUN_PATH
10325 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10328 cygwin* | mingw* | pw32*)
10329 # dlltool doesn't understand --whole-archive et. al.
10330 whole_archive_flag_spec_CXX=
10333 # ancient GNU ld didn't support --whole-archive et. al.
10334 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
10335 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10337 whole_archive_flag_spec_CXX=
10343 # PORTME fill in a description of your system's linker (not GNU ld)
10346 allow_undefined_flag_CXX=unsupported
10347 always_export_symbols_CXX=yes
10348 archive_expsym_cmds_CXX='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10349 # Note: this linker hardcodes the directories in LIBPATH if there
10350 # are no directories specified by -L.
10351 hardcode_minus_L_CXX=yes
10352 if test "$GCC" = yes && test -z "$link_static_flag"; then
10353 # Neither direct hardcoding nor static linking is supported with a
10355 hardcode_direct_CXX=unsupported
10360 hardcode_direct_CXX=yes
10361 hardcode_libdir_separator_CXX=':'
10362 link_all_deplibs_CXX=yes
10363 # When large executables or shared objects are built, AIX ld can
10364 # have problems creating the table of contents. If linking a library
10365 # or program results in "error TOC overflow" add -mminimal-toc to
10366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10368 if test "$GCC" = yes; then
10369 case $host_os in aix4.012|aix4.-12.*)
10370 # We only want to do this on AIX 4.2 and lower, the check
10371 # below for broken collect2 doesn't work under 4.3+
10372 collect2name=`${CC} -print-prog-name=collect2`
10373 if test -f "$collect2name" && \
10374 strings "$collect2name" | grep resolve_lib_name >/dev/null
10376 # We have reworked collect2
10377 hardcode_direct_CXX=yes
10379 # We have old collect2
10380 hardcode_direct_CXX=unsupported
10381 # It fails to find uninstalled libraries when the uninstalled
10382 # path is not listed in the libpath. Setting hardcode_minus_L
10383 # to unsupported forces relinking
10384 hardcode_minus_L_CXX=yes
10385 hardcode_libdir_flag_spec_CXX='-L$libdir'
10386 hardcode_libdir_separator_CXX=
10389 shared_flag='-shared'
10392 if test "$host_cpu" = ia64; then
10393 shared_flag='${wl}-G'
10395 shared_flag='${wl}-bM:SRE'
10399 if test "$host_cpu" = ia64; then
10400 # On IA64, the linker does run time linking by default, so we don't
10401 # have to do anything special.
10402 aix_use_runtimelinking=no
10403 if test $with_gnu_ld = no; then
10404 exp_sym_flag='-Bexport'
10408 # Test if we are trying to use run time linking, or normal AIX style
10409 # linking. If -brtl is somewhere in LDFLAGS, we need to do run time
10411 aix_use_runtimelinking=no
10412 for ld_flag in $LDFLAGS; do
10413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
10414 aix_use_runtimelinking=yes
10418 exp_sym_flag='-bexport'
10419 no_entry_flag='-bnoentry'
10421 # -bexpall does not export symbols beginning with underscore (_)
10422 always_export_symbols_CXX=yes
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # Warning - without using the other run time loading flags (-brtl),
10425 # -berok will link without error, but may produce a broken
10427 allow_undefined_flag_CXX=' $wl}-berok'
10428 # Determine the default libpath from the value encoded in an empty executable.
10429 # If we don't find anything, use the default library path according to the cc manual.
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:10443: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -s conftest$ac_exeext'
10449 { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10456 # Check for a 64-bit object if we didn't find anything.
10457 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10459 echo "$as_me: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10465 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10466 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10468 if test "$host_cpu" = ia64; then
10469 if test $with_gnu_ld = no; then
10470 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10471 allow_undefined_flag_CXX="-z nodefs"
10472 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"
10475 # Determine the default libpath from the value encoded in an empty executable.
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line 10477 "configure"
10478 #include "confdefs.h"
10488 rm -f conftest.$ac_objext conftest$ac_exeext
10489 if { (eval echo "$as_me:10489: \"$ac_link\"") >&5
10490 (eval $ac_link) 2>&5
10492 echo "$as_me:10492: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:10495: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:10498: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10502 # Check for a 64-bit object if we didn't find anything.
10503 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10505 echo "$as_me: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10511 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10512 allow_undefined_flag_CXX=' ${wl}-berok'
10513 # -bexpall does not export symbols beginning with underscore (_)
10514 always_export_symbols_CXX=yes
10515 # Exported symbols can be pulled into shared objects from archives
10516 whole_archive_flag_spec_CXX=' '
10517 archive_cmds_need_lc_CXX=yes
10518 # This is similar to how AIX traditionally builds it's shared
10520 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'
10526 archive_cmds_CXX='$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)'
10527 hardcode_libdir_flag_spec_CXX='-L$libdir'
10528 hardcode_minus_L_CXX=yes
10529 # see comment about different semantics on the GNU ld section
10534 export_dynamic_flag_spec_CXX=-rdynamic
10537 cygwin* | mingw* | pw32*)
10538 # When not using gcc, we currently assume that we are using
10539 # Microsoft Visual C++.
10540 # hardcode_libdir_flag_spec is actually meaningless, as there is
10541 # no search path for DLLs.
10542 hardcode_libdir_flag_spec_CXX=' '
10543 allow_undefined_flag_CXX=unsupported
10544 # Tell ltmain to make .lib files, not .a files.
10546 # FIXME: Setting linknames here is a bad hack.
10547 archive_cmds_CXX='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10548 # The linker will automatically build a .lib file if we build a DLL.
10549 old_archive_From_new_cmds_CXX='true'
10550 # FIXME: Should let the user specify the lib program.
10551 old_archive_cmds_CXX='lib /OUT:$oldlib$oldobjs$old_deplibs'
10552 fix_srcfile_path='`cygpath -w "$srcfile"`'
10556 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_libdir_flag_spec_CXX='-L$libdir'
10558 hardcode_shlibpath_var_CXX=no
10565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10566 # support. Future versions do this automatically, but an explicit c++rt0.o
10567 # does not break anything, and helps significantly (at the cost of a little
10570 archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10571 hardcode_libdir_flag_spec_CXX='-R$libdir'
10572 hardcode_direct_CXX=yes
10573 hardcode_shlibpath_var_CXX=no
10576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10578 archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_direct_CXX=yes
10580 hardcode_minus_L_CXX=yes
10581 hardcode_shlibpath_var_CXX=no
10584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10586 archive_cmds_CXX='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10587 hardcode_libdir_flag_spec_CXX='-R$libdir'
10588 hardcode_direct_CXX=yes
10589 hardcode_shlibpath_var_CXX=no
10592 hpux9* | hpux10* | hpux11*)
10593 if test $with_gcc = yes; then
10595 hpux9*) archive_cmds_CXX='$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' ;;
10596 *) archive_cmds_CXX='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
10600 hpux9*) archive_cmds_CXX='$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' ;;
10601 *) archive_cmds_CXX='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
10604 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10605 hardcode_libdir_separator_CXX=:
10606 hardcode_direct_CXX=yes
10607 hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
10608 # location of the library.
10609 export_dynamic_flag_spec_CXX='${wl}-E'
10613 if test "$GCC" = yes; then
10614 archive_cmds_CXX='$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'
10616 archive_cmds_CXX='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10619 hardcode_libdir_separator_CXX=:
10620 link_all_deplibs_CXX=yes
10624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10625 archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10627 archive_cmds_CXX='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10629 hardcode_libdir_flag_spec_CXX='-R$libdir'
10630 hardcode_direct_CXX=yes
10631 hardcode_shlibpath_var_CXX=no
10635 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
10636 hardcode_direct_CXX=yes
10637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10638 hardcode_libdir_separator_CXX=:
10639 hardcode_shlibpath_var_CXX=no
10643 hardcode_direct_CXX=yes
10644 hardcode_shlibpath_var_CXX=no
10647 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
10648 archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_libdir_flag_spec_CXX='-R$libdir'
10652 archive_cmds_CXX='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
10653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10654 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
10655 export_dynamic_flag_spec_CXX='${wl}-E'
10662 hardcode_libdir_flag_spec_CXX='-L$libdir'
10663 hardcode_minus_L_CXX=yes
10664 allow_undefined_flag_CXX=unsupported
10665 archive_cmds_CXX='$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'
10666 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10670 if test "$GCC" = yes; then
10671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10672 archive_cmds_CXX='$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'
10674 allow_undefined_flag_CXX=' -expect_unresolved \*'
10675 archive_cmds_CXX='$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'
10677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10678 hardcode_libdir_separator_CXX=:
10681 osf4* | osf5*) # as osf3* with the addition of -msym flag
10682 if test "$GCC" = yes; then
10683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684 archive_cmds_CXX='$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'
10685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10687 allow_undefined_flag_CXX=' -expect_unresolved \*'
10688 archive_cmds_CXX='$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'
10689 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10690 $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'
10692 # Both c and cxx compiler support -rpath directly
10693 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10695 hardcode_libdir_separator_CXX=:
10699 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_shlibpath_var_CXX=no
10701 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10702 runpath_var=LD_RUN_PATH
10703 hardcode_runpath_var=yes
10707 no_undefined_flag_CXX=' -z defs'
10708 if test "$with_gcc" = yes; then
10709 archive_cmds_CXX='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10713 archive_cmds_CXX='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10717 hardcode_libdir_flag_spec_CXX='-R$libdir'
10718 hardcode_shlibpath_var_CXX=no
10720 solaris2.[0-5] | solaris2.[0-5].*) ;;
10721 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10722 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;;
10724 link_all_deplibs_CXX=yes
10728 if test "x$host_vendor" = xsequent; then
10729 # Use $CC to link under sequent, because it throws in some extra .o
10730 # files that make .init and .fini sections work.
10731 archive_cmds_CXX='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds_CXX='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_libdir_flag_spec_CXX='-L$libdir'
10736 hardcode_direct_CXX=yes
10737 hardcode_minus_L_CXX=yes
10738 hardcode_shlibpath_var_CXX=no
10742 if test "x$host_vendor" = xsni; then
10743 archive_cmds_CXX='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
10744 hardcode_direct_CXX=yes # is this really true???
10746 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct_CXX=no #Motorola manual says yes, but my tests say they lie
10749 runpath_var='LD_RUN_PATH'
10750 hardcode_shlibpath_var_CXX=no
10754 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var_CXX=no
10756 export_dynamic_flag_spec_CXX='-Bexport'
10760 if test -d /usr/nec; then
10761 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_shlibpath_var_CXX=no
10763 runpath_var=LD_RUN_PATH
10764 hardcode_runpath_var=yes
10770 archive_cmds_CXX='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_direct_CXX=yes
10772 hardcode_minus_L_CXX=no
10773 hardcode_shlibpath_var_CXX=no
10774 hardcode_runpath_var=yes
10775 runpath_var=LD_RUN_PATH
10778 sysv5uw7* | unixware7*)
10779 no_undefined_flag_CXX='${wl}-z ${wl}text'
10780 if test "$GCC" = yes; then
10781 archive_cmds_CXX='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_cmds_CXX='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 runpath_var='LD_RUN_PATH'
10786 hardcode_shlibpath_var_CXX=no
10790 no_undefined_flag_CXX=' -z text'
10791 # $CC -shared without GNU ld will not create a library from C++
10792 # object files and a static libstdc++, better avoid it by now
10793 archive_cmds_CXX='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10796 hardcode_libdir_flag_spec_CXX=
10797 hardcode_shlibpath_var_CXX=no
10798 runpath_var='LD_RUN_PATH'
10802 archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_libdir_flag_spec_CXX='-L$libdir'
10804 hardcode_shlibpath_var_CXX=no
10812 echo "$as_me:10812: result: $ld_shlibs_CXX" >&5
10813 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10814 test "$ld_shlibs_CXX" = no && can_build_shared=no
10816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10817 if test "$GCC" = yes; then
10818 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10822 # Do we need to explicitly link libc?
10824 archive_cmds_need_lc_CXX=yes
10825 if test "$enable_shared" = yes && test "$GCC" = yes; then
10826 case $archive_cmds_CXX in
10828 # FIXME: we may have to deal with multi-command sequences.
10831 # Test whether the compiler implicitly links with -lc since on some
10832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10833 # to ld, don't add -lc before -lgcc.
10834 echo "$as_me:10834: checking whether -lc should be explicitly linked in" >&5
10835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10837 echo 'static int dummy;' > conftest.$ac_ext
10839 if { (eval echo "$as_me:10839: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>&5
10842 echo "$as_me:10842: \$? = $ac_status" >&5
10843 (exit $ac_status); } 2>conftest.err; then
10846 libobjs=conftest.$ac_objext
10848 wl=$lt_prog_compiler_wl_CXX
10854 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10855 allow_undefined_flag_CXX=
10856 if { (eval echo "$as_me:10856: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10857 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10859 echo "$as_me:10859: \$? = $ac_status" >&5
10860 (exit $ac_status); }
10862 archive_cmds_need_lc_CXX=no
10864 archive_cmds_need_lc_CXX=yes
10866 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10868 cat conftest.err 1>&5
10871 echo "$as_me:10871: result: $archive_cmds_need_lc_CXX" >&5
10872 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10877 echo "$as_me:10877: checking how to hardcode library paths into programs" >&5
10878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10879 hardcode_action_CXX=
10880 if test -n "$hardcode_libdir_flag_spec" || \
10881 test -n "$runpath_var"; then
10883 # We can hardcode non-existant directories.
10884 if test "$hardcode_direct_CXX" != no &&
10885 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10886 # have to relink, otherwise we might link with an installed library
10887 # when we should be linking with a yet-to-be-installed one
10888 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10889 test "$hardcode_minus_L_CXX" != no; then
10890 # Linking always hardcodes the temporary library directory.
10891 hardcode_action_CXX=relink
10893 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10894 hardcode_action_CXX=immediate
10897 # We cannot hardcode anything, or else we can only hardcode existing
10899 hardcode_action_CXX=unsupported
10901 echo "$as_me:10901: result: $hardcode_action_CXX" >&5
10902 echo "${ECHO_T}$hardcode_action_CXX" >&6
10904 if test "$hardcode_action_CXX" = relink; then
10905 # Fast installation is not supported
10906 enable_fast_install=no
10907 elif test "$shlibpath_overrides_runpath" = yes ||
10908 test "$enable_shared" = no; then
10909 # Fast installation is not necessary
10910 enable_fast_install=needless
10915 echo "$as_me:10915: checking whether stripping libraries is possible" >&5
10916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10918 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10919 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10920 echo "$as_me:10920: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6
10923 echo "$as_me:10923: result: no" >&5
10924 echo "${ECHO_T}no" >&6
10927 echo "$as_me:10927: checking dynamic linker characteristics" >&5
10928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10929 library_names_spec=
10930 libname_spec='lib$name'
10933 postuninstall_cmds=
10937 shlibpath_overrides_runpath=unknown
10939 dynamic_linker="$host_os ld.so"
10940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10942 need_lib_prefix=unknown
10943 hardcode_into_libs=no
10945 # when you set need_version to no, make sure it does not cause -set_version
10946 # flags to be left without arguments
10947 need_version=unknown
10952 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10953 shlibpath_var=LIBPATH
10955 # AIX 3 has no versioning support, so we append a major version to the name.
10956 soname_spec='${libname}${release}.so$major'
10961 if test "$host_cpu" = ia64; then
10962 # AIX 5 supports IA64
10963 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10964 shlibpath_var=LD_LIBRARY_PATH
10966 # With GCC up to 2.95.x, collect2 would create an import file
10967 # for dependence libraries. The import file would start with
10968 # the line `#! .'. This would cause the generated library to
10969 # depend on `.', always an invalid library. This was fixed in
10970 # development snapshots of GCC prior to 3.0.
10972 aix4 | aix4.[01] | aix4.[01].*)
10973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10975 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10978 can_build_shared=no
10982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10983 # soname into executable. Probably we can add versioning support to
10984 # collect2, so additional links can be useful in future.
10985 if test "$aix_use_runtimelinking" = yes; then
10986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10987 # instead of lib<name>.a to let people know that these are not
10988 # typical AIX shared libraries.
10989 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10991 # We preserve .a as extension for shared libraries through AIX4.2
10992 # and later when we are not doing run time linking.
10993 library_names_spec='${libname}${release}.a $libname.a'
10994 soname_spec='${libname}${release}.so$major'
10996 shlibpath_var=LIBPATH
10997 deplibs_check_method=pass_all
11002 library_names_spec='$libname.ixlibrary $libname.a'
11003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004 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'
11008 library_names_spec='${libname}.so'
11009 dynamic_linker="$host_os ld.so"
11010 shlibpath_var=LIBRARY_PATH
11016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11017 soname_spec='${libname}${release}.so$major'
11018 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11021 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11022 # the default ld.so.conf also contains /usr/contrib/lib and
11023 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11024 # libtool to hard-code these into programs
11027 cygwin* | mingw* | pw32*)
11028 version_type=windows
11031 case $GCC,$host_os in
11033 library_names_spec='$libname.dll.a'
11034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11035 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
11036 dldir=$destdir/`dirname \$dlpath`~
11037 test -d \$dldir || mkdir -p \$dldir~
11038 $install_prog .libs/$dlname \$dldir/$dlname'
11039 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
11040 dlpath=$dir/\$dldll~
11044 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
11048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
11051 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
11054 dynamic_linker='Win32 ld.exe'
11055 # FIXME: first we should search . and the directory the executable is in
11059 darwin* | rhapsody*)
11060 dynamic_linker="$host_os dyld"
11061 version_type=darwin
11064 # FIXME: Relying on posixy $() will cause problems for
11065 # cross-compilation, but unfortunately the echo tests do not
11066 # yet detect zsh echo's removal of \ escapes.
11067 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
11068 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
11069 shlibpath_overrides_runpath=yes
11070 shlibpath_var=DYLD_LIBRARY_PATH
11077 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11078 soname_spec='${libname}${release}.so$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11087 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11088 version_type=freebsd-$objformat
11089 case $version_type in
11091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11096 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
11100 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11105 freebsd3.01* | freebsdelf3.01*)
11106 shlibpath_overrides_runpath=yes
11107 hardcode_into_libs=yes
11110 shlibpath_overrides_runpath=no
11111 hardcode_into_libs=yes
11120 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
11121 soname_spec='${libname}${release}.so$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 hardcode_into_libs=yes
11126 hpux9* | hpux10* | hpux11*)
11127 # Give a soname corresponding to the major version so that dld.sl refuses to
11128 # link against other versions.
11129 dynamic_linker="$host_os dld.sl"
11133 shlibpath_var=SHLIB_PATH
11134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11135 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
11136 soname_spec='${libname}${release}.sl$major'
11137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11138 postinstall_cmds='chmod 555 $lib'
11145 soname_spec='${libname}${release}.so.$major'
11146 library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
11149 libsuff= shlibsuff=
11152 case $LD in # libtool.m4 will add one of these switches to LD
11153 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
11154 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
11155 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
11156 *) libsuff= shlibsuff= libmagic=never-match;;
11160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11161 shlibpath_overrides_runpath=no
11162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11166 # No shared lib support for Linux oldld, aout, or coff.
11167 linux*oldld* | linux*aout* | linux*coff*)
11171 # This must be Linux ELF.
11176 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11177 soname_spec='${libname}${release}.so$major'
11178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=no
11181 # This implies no fast_install, which is unacceptable.
11182 # Some rework will be needed to allow for fast_install
11183 # before this can be enabled.
11184 hardcode_into_libs=yes
11186 # We used to test for /lib/ld.so.1 and disable shared libraries on
11187 # powerpc, because MkLinux only supported shared libraries with the
11188 # GNU dynamic linker. Since this was broken with cross compilers,
11189 # most powerpc-linux boxes support dynamic linking these days and
11190 # people can always --disable-shared, the test was removed, and we
11191 # assume the GNU/Linux dynamic linker is in use.
11192 dynamic_linker='GNU/Linux ld.so'
11199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11200 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11202 dynamic_linker='NetBSD (a.out) ld.so'
11204 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
11205 soname_spec='${libname}${release}.so$major'
11206 dynamic_linker='NetBSD ld.elf_so'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 shlibpath_overrides_runpath=yes
11210 hardcode_into_libs=yes
11215 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=yes
11222 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 file_magic_cmd=/usr/bin/file
11226 file_magic_test_file=`echo /usr/lib/libc.so.*`
11227 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
11228 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
11230 deplibs_check_method='file_magic OpenBSD.* shared library'
11235 libname_spec='$name'
11237 library_names_spec='$libname.dll $libname.a'
11238 dynamic_linker='OS/2 ld.exe'
11239 shlibpath_var=LIBPATH
11242 osf3* | osf4* | osf5*)
11245 soname_spec='${libname}${release}.so'
11246 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11254 soname_spec='${libname}${release}.so$major'
11255 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11256 shlibpath_var=LD_LIBRARY_PATH
11263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11264 soname_spec='${libname}${release}.so$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11267 hardcode_into_libs=yes
11268 # ldd complains unless libraries are executable
11269 postinstall_cmds='chmod +x $lib'
11274 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 if test "$with_gnu_ld" = yes; then
11284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11286 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11287 soname_spec='${libname}${release}.so$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 case $host_vendor in
11291 shlibpath_overrides_runpath=no
11296 shlibpath_overrides_runpath=no
11297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11303 if test -d /usr/nec ;then
11305 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
11306 soname_spec='$libname.so.$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11313 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11314 soname_spec='${libname}${release}.so$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11322 echo "$as_me:11322: result: $dynamic_linker" >&5
11323 echo "${ECHO_T}$dynamic_linker" >&6
11324 test "$dynamic_linker" = no && can_build_shared=no
11326 if test "x$enable_dlopen" != xyes; then
11327 enable_dlopen=unknown
11328 enable_dlopen_self=unknown
11329 enable_dlopen_self_static=unknown
11336 lt_cv_dlopen="load_add_on"
11338 lt_cv_dlopen_self=yes
11341 cygwin* | mingw* | pw32*)
11342 lt_cv_dlopen="LoadLibrary"
11347 echo "$as_me:11347: checking for shl_load" >&5
11348 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11349 if test "${ac_cv_func_shl_load+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line 11353 "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356 which can conflict with char shl_load (); below. */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:11384: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11387 echo "$as_me:11387: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:11390: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:11393: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_func_shl_load=yes
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 ac_cv_func_shl_load=no
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11403 echo "$as_me:11403: result: $ac_cv_func_shl_load" >&5
11404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11405 if test $ac_cv_func_shl_load = yes; then
11406 lt_cv_dlopen="shl_load"
11408 echo "$as_me:11408: checking for shl_load in -ldld" >&5
11409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_check_lib_save_LIBS=$LIBS
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line 11416 "configure"
11417 #include "confdefs.h"
11419 /* Override any gcc2 internal prototype to avoid an error. */
11423 /* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:11435: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>&5
11438 echo "$as_me:11438: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:11441: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:11444: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_cv_lib_dld_shl_load=yes
11448 echo "$as_me: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 ac_cv_lib_dld_shl_load=no
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11455 echo "$as_me:11455: result: $ac_cv_lib_dld_shl_load" >&5
11456 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11457 if test $ac_cv_lib_dld_shl_load = yes; then
11458 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11460 echo "$as_me:11460: checking for dlopen in -ldl" >&5
11461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 ac_check_lib_save_LIBS=$LIBS
11467 cat >conftest.$ac_ext <<_ACEOF
11468 #line 11468 "configure"
11469 #include "confdefs.h"
11471 /* Override any gcc2 internal prototype to avoid an error. */
11475 /* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:11487: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>&5
11490 echo "$as_me:11490: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -s conftest$ac_exeext'
11493 { (eval echo "$as_me:11493: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:11496: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ac_cv_lib_dl_dlopen=yes
11500 echo "$as_me: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 ac_cv_lib_dl_dlopen=no
11504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 echo "$as_me:11507: result: $ac_cv_lib_dl_dlopen" >&5
11508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11509 if test $ac_cv_lib_dl_dlopen = yes; then
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11512 echo "$as_me:11512: checking for dlopen" >&5
11513 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11514 if test "${ac_cv_func_dlopen+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 cat >conftest.$ac_ext <<_ACEOF
11518 #line 11518 "configure"
11519 #include "confdefs.h"
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char dlopen (); below. */
11522 #include <assert.h>
11523 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11535 /* The GNU C library defines this for functions which it implements
11536 to always fail with ENOSYS. Some functions are actually named
11537 something starting with __ and the normal name is an alias. */
11538 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:11549: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11552 echo "$as_me:11552: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:11555: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11558 echo "$as_me:11558: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_func_dlopen=yes
11562 echo "$as_me: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 ac_cv_func_dlopen=no
11566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 echo "$as_me:11568: result: $ac_cv_func_dlopen" >&5
11569 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11570 if test $ac_cv_func_dlopen = yes; then
11571 lt_cv_dlopen="dlopen"
11573 echo "$as_me:11573: checking for dlopen in -lsvld" >&5
11574 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11575 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-lsvld $LIBS"
11580 cat >conftest.$ac_ext <<_ACEOF
11581 #line 11581 "configure"
11582 #include "confdefs.h"
11584 /* Override any gcc2 internal prototype to avoid an error. */
11588 /* We use char because int might match the return type of a gcc2
11589 builtin and then its argument prototype would still apply. */
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (eval echo "$as_me:11600: \"$ac_link\"") >&5
11601 (eval $ac_link) 2>&5
11603 echo "$as_me:11603: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (eval echo "$as_me:11606: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_cv_lib_svld_dlopen=yes
11613 echo "$as_me: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 ac_cv_lib_svld_dlopen=no
11617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11620 echo "$as_me:11620: result: $ac_cv_lib_svld_dlopen" >&5
11621 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11622 if test $ac_cv_lib_svld_dlopen = yes; then
11623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11637 if test "x$lt_cv_dlopen" != xno; then
11643 case $lt_cv_dlopen in
11645 save_CPPFLAGS="$CPPFLAGS"
11646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11648 save_LDFLAGS="$LDFLAGS"
11649 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11652 LIBS="$lt_cv_dlopen_libs $LIBS"
11654 echo "$as_me:11654: checking whether a program can dlopen itself" >&5
11655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11656 if test "${lt_cv_dlopen_self+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 if test "$cross_compiling" = yes; then :
11660 lt_cv_dlopen_self=cross
11662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11663 lt_status=$lt_dlunknown
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11675 # define LT_DLGLOBAL RTLD_GLOBAL
11678 # define LT_DLGLOBAL DL_GLOBAL
11680 # define LT_DLGLOBAL 0
11684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11685 find out it does not work in some platform. */
11686 #ifndef LT_DLLAZY_OR_NOW
11688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11691 # define LT_DLLAZY_OR_NOW DL_LAZY
11694 # define LT_DLLAZY_OR_NOW RTLD_NOW
11697 # define LT_DLLAZY_OR_NOW DL_NOW
11699 # define LT_DLLAZY_OR_NOW 0
11707 extern "C" void exit (int);
11710 void fnord() { int i=42;}
11713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714 int status = $lt_dlunknown;
11718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11720 /* dlclose (self); */
11726 if { (eval echo "$as_me:11726: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>&5
11729 echo "$as_me:11729: \$? = $ac_status" >&5
11730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11731 (./conftest; exit; ) 2>/dev/null
11733 case x$lt_status in
11734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11736 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11739 # compilation failed
11740 lt_cv_dlopen_self=no
11746 echo "$as_me:11746: result: $lt_cv_dlopen_self" >&5
11747 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11749 if test "x$lt_cv_dlopen_self" = xyes; then
11750 LDFLAGS="$LDFLAGS $link_static_flag"
11751 echo "$as_me:11751: checking whether a statically linked program can dlopen itself" >&5
11752 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11753 if test "${lt_cv_dlopen_self_static+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 if test "$cross_compiling" = yes; then :
11757 lt_cv_dlopen_self_static=cross
11759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760 lt_status=$lt_dlunknown
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11762 "configure"
11763 #include "confdefs.h"
11772 # define LT_DLGLOBAL RTLD_GLOBAL
11775 # define LT_DLGLOBAL DL_GLOBAL
11777 # define LT_DLGLOBAL 0
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782 find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11788 # define LT_DLLAZY_OR_NOW DL_LAZY
11791 # define LT_DLLAZY_OR_NOW RTLD_NOW
11794 # define LT_DLLAZY_OR_NOW DL_NOW
11796 # define LT_DLLAZY_OR_NOW 0
11804 extern "C" void exit (int);
11807 void fnord() { int i=42;}
11810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11811 int status = $lt_dlunknown;
11815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 /* dlclose (self); */
11823 if { (eval echo "$as_me:11823: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11826 echo "$as_me:11826: \$? = $ac_status" >&5
11827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11828 (./conftest; exit; ) 2>/dev/null
11830 case x$lt_status in
11831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11833 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11836 # compilation failed
11837 lt_cv_dlopen_self_static=no
11843 echo "$as_me:11843: result: $lt_cv_dlopen_self_static" >&5
11844 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11847 CPPFLAGS="$save_CPPFLAGS"
11848 LDFLAGS="$save_LDFLAGS"
11853 case $lt_cv_dlopen_self in
11854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11855 *) enable_dlopen_self=unknown ;;
11858 case $lt_cv_dlopen_self_static in
11859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11860 *) enable_dlopen_self_static=unknown ;;
11864 # The else clause should only fire when bootstrapping the
11865 # libtool distribution, otherwise you forgot to ship ltmain.sh
11866 # with your package, and you will get complaints that there are
11867 # no rules to generate ltmain.sh.
11868 if test -f "$ltmain"; then
11869 # Now quote all the things that may contain metacharacters while being
11870 # careful not to overquote the AC_SUBSTed values. We take copies of the
11871 # variables and quote the copies for generation of the libtool script.
11872 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
11873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11875 deplibs_check_method reload_flag reload_cmds need_locks \
11876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11877 lt_cv_sys_global_symbol_to_c_name_address \
11878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11879 old_postinstall_cmds old_postuninstall_cmds \
11883 lt_prog_compiler_wl_CXX \
11884 lt_prog_compiler_pic_CXX \
11885 lt_prog_compiler_static_CXX \
11886 lt_prog_compiler_no_builtin_flag_CXX \
11887 export_dynamic_flag_spec_CXX \
11888 thread_safe_flag_spec_CXX \
11889 whole_archive_flag_spec_CXX \
11890 old_archive_cmds_CXX \
11891 old_archive_from_new_cmds_CXX \
11892 predep_objects_CXX \
11893 postdep_objects_CXX \
11896 compiler_lib_search_path_CXX \
11898 archive_expsym_cmds_CXX \
11899 postinstall_cmds_CXX \
11900 postuninstall_cmds_CXX \
11901 old_archive_from_expsyms_cmds_CXX \
11902 allow_undefined_flag_CXX \
11903 no_undefined_flag_CXX \
11904 export_symbols_cmds_CXX \
11905 hardcode_libdir_flag_spec_CXX \
11906 hardcode_libdir_separator_CXX \
11907 lt_cv_prog_compiler_c_o_CXX \
11908 exclude_expsyms_CXX \
11909 include_expsyms_CXX; do
11912 old_archive_cmds_CXX | \
11913 old_archive_from_new_cmds_CXX | \
11914 archive_cmds_CXX | \
11915 archive_expsym_cmds_CXX | \
11916 old_archive_from_expsyms_cmds_CXX | \
11917 export_symbols_cmds_CXX | \
11918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11919 postinstall_cmds | postuninstall_cmds | \
11920 old_postinstall_cmds | old_postuninstall_cmds | \
11921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11922 # Double-quote double-evaled strings.
11923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11932 *'\$0 --fallback-echo"')
11933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11939 cat <<__EOF__ >> "$cfgfile"
11940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11944 # Shell to use when invoking shell scripts.
11947 # Whether or not to build shared libraries.
11948 build_libtool_libs=$enable_shared
11950 # Whether or not to build static libraries.
11951 build_old_libs=$enable_static
11953 # Whether or not to add -lc for building shared libraries.
11954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11956 # Whether or not to optimize for fast installation.
11957 fast_install=$enable_fast_install
11960 host_alias=$host_alias
11963 # An echo program that does not interpret backslashes.
11968 AR_FLAGS=$lt_AR_FLAGS
11973 # A language-specific compiler.
11974 CC=$lt_compiler_CXX
11976 # Is the compiler the GNU C compiler?
11979 # The linker used to build libraries.
11982 # Whether we need hard or soft links.
11985 # A BSD-compatible nm program.
11988 # A symbol stripping program
11991 # Used to examine libraries when file_magic_cmd begins "file"
11992 MAGIC_CMD=$MAGIC_CMD
11994 # Used on cygwin: DLL creation program.
11997 # Used on cygwin: object dumper.
12000 # Used on cygwin: assembler.
12003 # The name of the directory that contains temporary libtool files.
12006 # How to create reloadable object files.
12007 reload_flag=$lt_reload_flag
12008 reload_cmds=$lt_reload_cmds
12010 # How to pass a linker flag through the compiler.
12011 wl=$lt_lt_prog_compiler_wl_CXX
12013 # Object file suffix (normally "o").
12014 objext="$ac_objext"
12016 # Old archive suffix (normally "a").
12019 # Executable file suffix (normally "").
12022 # Additional compiler flags for building library objects.
12023 pic_flag=$lt_lt_prog_compiler_pic_CXX
12026 # What is the maximum length of a command?
12027 max_cmd_len=$lt_cv_sys_max_cmd_len
12029 # Does compiler simultaneously support -c and -o options?
12030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12032 # Must we lock files when doing compilation ?
12033 need_locks=$lt_need_locks
12035 # Do we need the lib prefix for modules?
12036 need_lib_prefix=$need_lib_prefix
12038 # Do we need a version for libraries?
12039 need_version=$need_version
12041 # Whether dlopen is supported.
12042 dlopen_support=$enable_dlopen
12044 # Whether dlopen of programs is supported.
12045 dlopen_self=$enable_dlopen_self
12047 # Whether dlopen of statically linked programs is supported.
12048 dlopen_self_static=$enable_dlopen_self_static
12050 # Compiler flag to prevent dynamic linking.
12051 link_static_flag=$lt_lt_prog_compiler_static_CXX
12053 # Compiler flag to turn off builtin functions.
12054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12056 # Compiler flag to allow reflexive dlopens.
12057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12059 # Compiler flag to generate shared objects directly from archives.
12060 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12062 # Compiler flag to generate thread-safe objects.
12063 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12065 # Library versioning type.
12066 version_type=$version_type
12068 # Format of library name prefix.
12069 libname_spec=$lt_libname_spec
12071 # List of archive names. First name is the real one, the rest are links.
12072 # The last name is the one that the linker finds with -lNAME.
12073 library_names_spec=$lt_library_names_spec
12075 # The coded name of the library, if different from the real name.
12076 soname_spec=$lt_soname_spec
12078 # Commands used to build and install an old-style archive.
12080 old_archive_cmds=$lt_old_archive_cmds_CXX
12081 old_postinstall_cmds=$lt_old_postinstall_cmds
12082 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12084 # Create an old-style archive from a shared archive.
12085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12087 # Create a temporary old-style archive to link instead of a shared archive.
12088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12090 # Commands used to build and install a shared archive.
12091 archive_cmds=$lt_archive_cmds_CXX
12092 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12093 postinstall_cmds=$lt_postinstall_cmds
12094 postuninstall_cmds=$lt_postuninstall_cmds
12096 # Commands to strip libraries.
12097 old_striplib=$lt_old_striplib
12098 striplib=$lt_striplib
12100 # Dependencies to place before the objects being linked to create a
12102 predep_objects=$lt_predep_objects_CXX
12104 # Dependencies to place after the objects being linked to create a
12106 postdep_objects=$lt_postdep_objects_CXX
12108 # Dependencies to place before the objects being linked to create a
12110 predeps=$lt_predeps_CXX
12112 # Dependencies to place after the objects being linked to create a
12114 postdeps=$lt_postdeps_CXX
12116 # The library search path used internally by the compiler when linking
12117 # a shared library.
12118 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12120 # Method to check whether dependent libraries are shared objects.
12121 deplibs_check_method=$lt_deplibs_check_method
12123 # Command to use when deplibs_check_method == file_magic.
12124 file_magic_cmd=$lt_file_magic_cmd
12126 # Flag that allows shared libraries with undefined symbols to be built.
12127 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12129 # Flag that forces no undefined symbols.
12130 no_undefined_flag=$lt_no_undefined_flag_CXX
12132 # Commands used to finish a libtool library installation in a directory.
12133 finish_cmds=$lt_finish_cmds
12135 # Same as above, but a single script fragment to be evaled but not shown.
12136 finish_eval=$lt_finish_eval
12138 # Take the output of nm and produce a listing of raw symbols and C names.
12139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12141 # Transform the output of nm in a proper C declaration
12142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12144 # Transform the output of nm in a C name address pair
12145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12147 # This is the shared library runtime path variable.
12148 runpath_var=$runpath_var
12150 # This is the shared library path variable.
12151 shlibpath_var=$shlibpath_var
12153 # Is shlibpath searched before the hard-coded library search path?
12154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12156 # How to hardcode a shared library path into an executable.
12157 hardcode_action=$hardcode_action_CXX
12159 # Whether we should hardcode library paths into libraries.
12160 hardcode_into_libs=$hardcode_into_libs
12162 # Flag to hardcode \$libdir into a binary during linking.
12163 # This must work even if \$libdir does not exist.
12164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12166 # Whether we need a single -rpath flag with a separated argument.
12167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12169 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
12170 # resulting binary.
12171 hardcode_direct=$hardcode_direct_CXX
12173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12174 # resulting binary.
12175 hardcode_minus_L=$hardcode_minus_L_CXX
12177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12178 # the resulting binary.
12179 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12181 # Variables whose values should be saved in libtool wrapper scripts and
12182 # restored at relink time.
12183 variables_saved_for_relink="$variables_saved_for_relink"
12185 # Whether libtool must link a program against all its dependency libraries.
12186 link_all_deplibs=$link_all_deplibs_CXX
12188 # Compile-time system search path for libraries
12189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12191 # Run-time system search path for libraries
12192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12194 # Fix the shell variable \$srcfile for the compiler.
12195 fix_srcfile_path="$fix_srcfile_path_CXX"
12197 # Set to yes if exported symbols are required.
12198 always_export_symbols=$always_export_symbols_CXX
12200 # The commands to list exported symbols.
12201 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12203 # The commands to extract the exported symbol list from a shared archive.
12204 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12206 # Symbols that should not be listed in the preloaded symbols.
12207 exclude_expsyms=$lt_exclude_expsyms_CXX
12209 # Symbols that must always be exported.
12210 include_expsyms=$lt_include_expsyms_CXX
12212 # ### END LIBTOOL TAG CONFIG: $tagname
12217 # If there is no Makefile yet, we rely on a make rule to execute
12218 # `config.status --recheck' to rerun these tests and create the
12219 # libtool script then.
12220 test -f Makefile && make "$ltmain"
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12235 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12236 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12239 # Source file extension for f77 test sources.
12242 # Object file extension for compiled f77 test sources.
12246 # Code to be used in simple compile tests
12247 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12249 # Code to be used in simple link tests
12250 lt_simple_link_test_code=" program t\n end\n"
12252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12254 # If no C compiler was specified, use CC.
12257 # Allow CC to be a program name with arguments.
12261 # Allow CC to be a program name with arguments.
12267 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12269 # Report which library types wil actually be built
12270 echo "$as_me:12270: checking if libtool supports shared libraries" >&5
12271 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12272 echo "$as_me:12272: result: $can_build_shared" >&5
12273 echo "${ECHO_T}$can_build_shared" >&6
12275 echo "$as_me:12275: checking whether to build shared libraries" >&5
12276 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12277 test "$can_build_shared" = "no" && enable_shared=no
12279 # We never build shared libraries with the fortran linker;
12280 # this support is only meant for including fortran objects
12281 # in C libraries. You should normally always be able to
12282 # perform the linking stage with the C compiler, anyway...
12284 # On AIX, shared libraries and static libraries use the same namespace, and
12285 # are all built from PIC.
12288 test "$enable_shared" = yes && enable_static=no
12289 if test -n "$RANLIB"; then
12290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12291 postinstall_cmds='$RANLIB $lib'
12296 test "$enable_shared" = yes && enable_static=no
12299 echo "$as_me:12299: result: $enable_shared" >&5
12300 echo "${ECHO_T}$enable_shared" >&6
12302 echo "$as_me:12302: checking whether to build static libraries" >&5
12303 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12304 # Make sure either enable_shared or enable_static is yes.
12305 test "$enable_shared" = yes || enable_static=yes
12306 echo "$as_me:12306: result: $enable_static" >&5
12307 echo "${ECHO_T}$enable_static" >&6
12309 lt_prog_compiler_wl_F77=
12310 lt_prog_compiler_pic_F77=
12311 lt_prog_compiler_static_F77=
12313 echo "$as_me:12313: checking for $compiler option to produce PIC" >&5
12314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12315 if test "$GCC" = yes; then
12316 lt_prog_compiler_wl_F77='-Wl,'
12317 lt_prog_compiler_static_F77='-static'
12321 # All AIX code is PIC.
12322 if test "$host_cpu" = ia64; then
12323 # AIX 5 now supports IA64 processor
12324 lt_prog_compiler_static_F77='-Bstatic'
12326 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12331 # FIXME: we need at least 68020 code to build shared libraries, but
12332 # adding the `-m68020' flag to GCC prevents building anything better,
12334 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12337 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
12338 # PIC is the default for these OSes.
12341 cygwin* | mingw* | pw32* | os2*)
12342 # This hack is so that the source file can tell whether it is being
12343 # built for inclusion in a dll (and should export symbols for example).
12344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12347 darwin* | rhapsody*)
12348 # PIC is the default on this platform
12349 # Common symbols not allowed in MH_DYLIB files
12350 lt_prog_compiler_pic_F77='-fno-common'
12354 # Just because we use GCC doesn't mean we suddenly get shared libraries
12355 # on systems that don't support them.
12356 lt_prog_compiler_can_build_shared_F77=no
12361 if test -d /usr/nec; then
12362 lt_prog_compiler_pic_F77=-Kconform_pic
12367 lt_prog_compiler_pic_F77='-fPIC'
12371 # PORTME Check for flag to pass linker flags through the system compiler.
12374 lt_prog_compiler_wl_F77='-Wl,'
12375 if test "$host_cpu" = ia64; then
12376 # AIX 5 now supports IA64 processor
12377 lt_prog_compiler_static_F77='-Bstatic'
12379 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12383 cygwin* | mingw* | pw32* | os2*)
12384 # This hack is so that the source file can tell whether it is being
12385 # built for inclusion in a dll (and should export symbols for example).
12386 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12389 hpux9* | hpux10* | hpux11*)
12390 lt_prog_compiler_wl_F77='-Wl,'
12391 lt_prog_compiler_pic_F77='+Z'
12392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12393 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12397 lt_prog_compiler_wl_F77='-Wl,'
12398 # PIC (with -KPIC) is the default.
12399 lt_prog_compiler_static_F77='-non_shared'
12403 # Check flags for non-gnu compilers on Linux
12404 case "$host_cpu" in
12406 # The only non-gnu compiler on Linux/Alpha is the Compaq one:
12407 lt_prog_compiler_wl_F77='-Wl,'
12408 lt_prog_compiler_static_F77='-non_shared'
12411 lt_prog_compiler_can_build_shared_F77=no
12416 lt_prog_compiler_pic_F77='-KPIC'
12417 lt_prog_compiler_static_F77='-Bstatic'
12420 osf3* | osf4* | osf5*)
12421 lt_prog_compiler_wl_F77='-Wl,'
12422 # All OSF/1 code is PIC.
12423 lt_prog_compiler_static_F77='-non_shared'
12427 lt_prog_compiler_pic_F77='-Kpic'
12428 lt_prog_compiler_static_F77='-dn'
12432 lt_prog_compiler_wl_F77='-Wl,'
12433 lt_prog_compiler_pic_F77='-KPIC'
12434 lt_prog_compiler_static_F77='-Bstatic'
12438 lt_prog_compiler_wl_F77='-Qoption ld '
12439 lt_prog_compiler_pic_F77='-PIC'
12440 lt_prog_compiler_static_F77='-Bstatic'
12443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12444 if test "x$host_vendor" = xsni; then
12445 lt_prog_compiler_wl_F77='-LD'
12447 lt_prog_compiler_wl_F77='-Wl,'
12449 lt_prog_compiler_pic_F77='-KPIC'
12450 lt_prog_compiler_static_F77='-Bstatic'
12454 if test -d /usr/nec ;then
12455 lt_prog_compiler_pic_F77='-Kconform_pic'
12456 lt_prog_compiler_static_F77='-Bstatic'
12461 lt_prog_compiler_pic_F77='-pic'
12462 lt_prog_compiler_static_F77='-Bstatic'
12466 lt_prog_compiler_can_build_shared_F77=no
12470 echo "$as_me:12470: result: $lt_prog_compiler_pic_F77" >&5
12471 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12474 # Check to make sure the PIC flag actually works.
12476 if test -n "$lt_prog_compiler_pic_F77"; then
12477 echo "$as_me:12477: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12479 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 lt_prog_compiler_pic_works_F77=no
12483 ac_outfile=conftest.$ac_objext
12484 save_CFLAGS="$CFLAGS"
12485 CFLAGS="$CFLAGS $lt_prog_compiler_pic_F77"
12486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12487 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12488 # The compiler can only warn and ignore the option if not recognized
12489 # So say no if there are warnings
12490 if test -s conftest.err; then
12491 # Append any errors to the config.log.
12492 cat conftest.err 1>&5
12494 lt_prog_compiler_pic_works_F77=yes
12498 CFLAGS="$save_CFLAGS"
12501 echo "$as_me:12501: result: $lt_prog_compiler_pic_works_F77" >&5
12502 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12504 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12505 case $lt_prog_compiler_pic_F77 in
12507 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12511 lt_prog_compiler_pic_F77=
12512 lt_prog_compiler_can_build_shared_F77=no
12517 # For platforms which do not support PIC, -DPIC is meaningless:
12519 lt_prog_compiler_pic_F77=
12522 echo "$as_me:12522: checking if $compiler PIC define -DPIC works" >&5
12523 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
12524 if test "${lt_prog_compiler_picdef_works_F77+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 lt_prog_compiler_picdef_works_F77=no
12528 ac_outfile=conftest.$ac_objext
12529 save_CFLAGS="$CFLAGS"
12530 CFLAGS="$CFLAGS $lt_prog_compiler_pic_F77 -DPIC"
12531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12532 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12533 # The compiler can only warn and ignore the option if not recognized
12534 # So say no if there are warnings
12535 if test -s conftest.err; then
12536 # Append any errors to the config.log.
12537 cat conftest.err 1>&5
12539 lt_prog_compiler_picdef_works_F77=yes
12543 CFLAGS="$save_CFLAGS"
12546 echo "$as_me:12546: result: $lt_prog_compiler_picdef_works_F77" >&5
12547 echo "${ECHO_T}$lt_prog_compiler_picdef_works_F77" >&6
12549 if test x"$lt_prog_compiler_picdef_works_F77" = xyes; then
12550 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77 -DPIC"
12552 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12558 echo "$as_me:12558: checking if $compiler supports -c -o file.$ac_objext" >&5
12559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12560 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 lt_cv_prog_compiler_c_o_F77=no
12564 $rm -r conftest 2>/dev/null
12568 save_FFLAGS="$FFLAGS"
12569 FFLAGS="$FFLAGS -o out/conftest2.$ac_objext"
12570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12572 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12573 # that will create temporary files in the current directory regardless of
12574 # the output directory. Thus, making CWD read-only will cause this test
12575 # to fail, enabling locking or at least warning the user not to do parallel
12579 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12581 # The compiler can only warn and ignore the option if not recognized
12582 # So say no if there are warnings
12583 if test -s out/conftest.err; then
12584 # Append any errors to the config.log.
12585 cat out/conftest.err 1>&5
12587 lt_cv_prog_compiler_c_o_F77=yes
12590 FFLAGS="$save_FFLAGS"
12593 $rm conftest* out/*
12600 echo "$as_me:12600: result: $lt_cv_prog_compiler_c_o_F77" >&5
12601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12603 echo "$as_me:12603: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12607 allow_undefined_flag_F77=
12610 archive_cmds_need_lc_F77=
12611 archive_expsym_cmds_F77=
12612 old_archive_From_new_cmds_F77=
12613 old_archive_from_expsyms_cmds_F77=
12614 export_dynamic_flag_spec_F77=
12615 whole_archive_flag_spec_F77=
12616 thread_safe_flag_spec_F77=
12617 hardcode_libdir_flag_spec_F77=
12618 hardcode_libdir_separator_F77=
12619 hardcode_direct_F77=no
12620 hardcode_minus_L_F77=no
12621 hardcode_shlibpath_var_F77=unsupported
12622 link_all_deplibs_F77=unknown
12623 always_export_symbols_F77=no
12624 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12625 # include_expsyms should be a list of space-separated symbols to be *always*
12626 # included in the symbol list
12627 include_expsyms_F77=
12628 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12631 # as well as any symbol that contains `d'.
12632 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12634 # platforms (ab)use it in PIC code, but their linkers get confused if
12635 # the symbol is explicitly referenced. Since portable code cannot
12636 # rely on this symbol name, it's probably fine to never include it in
12637 # preloaded symbol tables.
12638 extract_expsyms_cmds=
12641 cygwin* | mingw* | pw32*)
12642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12643 # When not using gcc, we currently assume that we are using
12644 # Microsoft Visual C++.
12645 if test "$GCC" != yes; then
12655 if test "$with_gnu_ld" = yes; then
12656 # If archive_cmds runs LD, not CC, wlarc should be empty
12659 # See if GNU ld supports shared libraries.
12661 aix3* | aix4* | aix5*)
12662 # On AIX/PPC, the GNU linker is very broken
12663 if test "$host_cpu" != ia64; then
12667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12668 *** to be unable to reliably create shared libraries on AIX.
12669 *** Therefore, libtool is disabling shared libraries support. If you
12670 *** really care for shared libraries, you may want to modify your PATH
12671 *** so that a non-GNU linker is found, and then restart.
12678 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)'
12679 hardcode_libdir_flag_spec_F77='-L$libdir'
12680 hardcode_minus_L_F77=yes
12682 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12683 # that the semantics of dynamic libraries on AmigaOS, at least up
12684 # to version 4, is to share data among multiple programs linked
12685 # with the same dynamic library. Since this doesn't match the
12686 # behavior of shared libraries on other platforms, we can't use
12692 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12693 allow_undefined_flag_F77=unsupported
12694 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12695 # support --undefined. This deserves some investigation. FIXME
12696 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702 cygwin* | mingw* | pw32*)
12703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, as there is
12704 # no search path for DLLs.
12705 hardcode_libdir_flag_spec_F77='-L$libdir'
12706 allow_undefined_flag_F77=unsupported
12707 always_export_symbols_F77=yes
12709 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12710 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12711 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12712 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12713 else $CC -o impgen impgen.c ; fi)~
12714 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12716 old_archive_from_expsyms_cmds_F77='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12718 # cygwin and mingw dlls have different entry points and sets of symbols
12720 # FIXME: what about values for MSVC?
12721 dll_entry=__cygwin_dll_entry@12
12722 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
12726 dll_entry=_DllMainCRTStartup@12
12727 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
12731 # mingw and cygwin differ, and it's simplest to just exclude the union
12732 # of the two symbol sets.
12733 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12735 # recent cygwin and mingw systems supply a stub DllMain which the user
12736 # can override, but on older systems we have to supply one (in ltdll.c)
12737 if test "x$lt_cv_need_dllmain" = "xyes"; then
12738 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12739 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12740 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12746 # Extract the symbol export list from an `--export-all' def file,
12747 # then regenerate the def file from the symbol export list, so that
12748 # the compiled dll only exports the symbol export list.
12749 # Be careful not to strip the DATA tag left by newer dlltools.
12750 export_symbols_cmds_F77="$ltdll_cmds"'
12751 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12752 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12754 # If the export-symbols file already is a .def file (1st line
12755 # is EXPORTS), use it as is.
12756 # If DATA tags from a recent dlltool are present, honour them!
12757 archive_expsym_cmds_F77='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12758 cp $export_symbols $output_objdir/$soname-def;
12760 echo EXPORTS > $output_objdir/$soname-def;
12762 cat $export_symbols | while read symbol; do
12763 set dummy \$symbol;
12765 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12766 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12768 _lt_hint=`expr 1 + \$_lt_hint`;
12772 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12773 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12774 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12775 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12776 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12779 darwin* | rhapsody*)
12780 allow_undefined_flag_F77='-undefined suppress'
12781 # FIXME: Relying on posixy $() will cause problems for
12782 # cross-compilation, but unfortunately the echo tests do not
12783 # yet detect zsh echo's removal of \ escapes.
12784 archive_cmds_F77='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
12785 # We need to add '_' to the symbols in $export_symbols first
12786 #_LT_AC_TAGVAR(archive_expsym_cmds, F77)="$_LT_AC_TAGVAR(archive_cmds, F77)"' && strip -s $export_symbols'
12787 hardcode_direct_F77=yes
12788 hardcode_shlibpath_var_F77=no
12789 whole_archive_flag_spec_F77='-all_load $convenience'
12793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12794 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12797 archive_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798 archive_expsym_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12803 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12807 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12808 *** create shared libraries on Solaris systems. Therefore, libtool
12809 *** is disabling shared libraries support. We urge you to upgrade GNU
12810 *** binutils to release 2.9.1 or newer. Another option is to modify
12811 *** your PATH or compiler configuration so that the native linker is
12812 *** used, and then restart.
12815 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12816 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12817 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12824 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12826 hardcode_direct_F77=yes
12827 hardcode_shlibpath_var_F77=no
12831 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12840 if test "$ld_shlibs_F77" = yes; then
12841 runpath_var=LD_RUN_PATH
12842 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12843 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12845 cygwin* | mingw* | pw32*)
12846 # dlltool doesn't understand --whole-archive et. al.
12847 whole_archive_flag_spec_F77=
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12852 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12854 whole_archive_flag_spec_F77=
12860 # PORTME fill in a description of your system's linker (not GNU ld)
12863 allow_undefined_flag_F77=unsupported
12864 always_export_symbols_F77=yes
12865 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'
12866 # Note: this linker hardcodes the directories in LIBPATH if there
12867 # are no directories specified by -L.
12868 hardcode_minus_L_F77=yes
12869 if test "$GCC" = yes && test -z "$link_static_flag"; then
12870 # Neither direct hardcoding nor static linking is supported with a
12872 hardcode_direct_F77=unsupported
12877 hardcode_direct_F77=yes
12878 hardcode_libdir_separator_F77=':'
12879 link_all_deplibs_F77=yes
12880 # When large executables or shared objects are built, AIX ld can
12881 # have problems creating the table of contents. If linking a library
12882 # or program results in "error TOC overflow" add -mminimal-toc to
12883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12885 if test "$GCC" = yes; then
12886 case $host_os in aix4.012|aix4.-12.*)
12887 # We only want to do this on AIX 4.2 and lower, the check
12888 # below for broken collect2 doesn't work under 4.3+
12889 collect2name=`${CC} -print-prog-name=collect2`
12890 if test -f "$collect2name" && \
12891 strings "$collect2name" | grep resolve_lib_name >/dev/null
12893 # We have reworked collect2
12894 hardcode_direct_F77=yes
12896 # We have old collect2
12897 hardcode_direct_F77=unsupported
12898 # It fails to find uninstalled libraries when the uninstalled
12899 # path is not listed in the libpath. Setting hardcode_minus_L
12900 # to unsupported forces relinking
12901 hardcode_minus_L_F77=yes
12902 hardcode_libdir_flag_spec_F77='-L$libdir'
12903 hardcode_libdir_separator_F77=
12906 shared_flag='-shared'
12909 if test "$host_cpu" = ia64; then
12910 shared_flag='${wl}-G'
12912 shared_flag='${wl}-bM:SRE'
12916 if test "$host_cpu" = ia64; then
12917 # On IA64, the linker does run time linking by default, so we don't
12918 # have to do anything special.
12919 aix_use_runtimelinking=no
12920 if test $with_gnu_ld = no; then
12921 exp_sym_flag='-Bexport'
12925 # Test if we are trying to use run time linking, or normal AIX style
12926 # linking. If -brtl is somewhere in LDFLAGS, we need to do run time
12928 aix_use_runtimelinking=no
12929 for ld_flag in $LDFLAGS; do
12930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
12931 aix_use_runtimelinking=yes
12935 exp_sym_flag='-bexport'
12936 no_entry_flag='-bnoentry'
12938 # -bexpall does not export symbols beginning with underscore (_)
12939 always_export_symbols_F77=yes
12940 if test "$aix_use_runtimelinking" = yes; then
12941 # Warning - without using the other run time loading flags (-brtl),
12942 # -berok will link without error, but may produce a broken
12944 allow_undefined_flag_F77=' $wl}-berok'
12945 # Determine the default libpath from the value encoded in an empty executable.
12946 # If we don't find anything, use the default library path according to the cc manual.
12947 cat >conftest.$ac_ext <<_ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (eval echo "$as_me:12953: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>&5
12956 echo "$as_me:12956: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -s conftest$ac_exeext'
12959 { (eval echo "$as_me:12959: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:12962: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
12966 # Check for a 64-bit object if we didn't find anything.
12967 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
12969 echo "$as_me: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12975 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12976 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12978 if test "$host_cpu" = ia64; then
12979 if test $with_gnu_ld = no; then
12980 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12981 allow_undefined_flag_F77="-z nodefs"
12982 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"
12985 # Determine the default libpath from the value encoded in an empty executable.
12986 cat >conftest.$ac_ext <<_ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (eval echo "$as_me:12992: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>&5
12995 echo "$as_me:12995: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:12998: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:13001: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
13005 # Check for a 64-bit object if we didn't find anything.
13006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
13008 echo "$as_me: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13014 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13015 allow_undefined_flag_F77=' ${wl}-berok'
13016 # -bexpall does not export symbols beginning with underscore (_)
13017 always_export_symbols_F77=yes
13018 # Exported symbols can be pulled into shared objects from archives
13019 whole_archive_flag_spec_F77=' '
13020 archive_cmds_need_lc_F77=yes
13021 # This is similar to how AIX traditionally builds it's shared
13023 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'
13029 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)'
13030 hardcode_libdir_flag_spec_F77='-L$libdir'
13031 hardcode_minus_L_F77=yes
13032 # see comment about different semantics on the GNU ld section
13037 export_dynamic_flag_spec_F77=-rdynamic
13040 cygwin* | mingw* | pw32*)
13041 # When not using gcc, we currently assume that we are using
13042 # Microsoft Visual C++.
13043 # hardcode_libdir_flag_spec is actually meaningless, as there is
13044 # no search path for DLLs.
13045 hardcode_libdir_flag_spec_F77=' '
13046 allow_undefined_flag_F77=unsupported
13047 # Tell ltmain to make .lib files, not .a files.
13049 # FIXME: Setting linknames here is a bad hack.
13050 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13051 # The linker will automatically build a .lib file if we build a DLL.
13052 old_archive_From_new_cmds_F77='true'
13053 # FIXME: Should let the user specify the lib program.
13054 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13055 fix_srcfile_path='`cygpath -w "$srcfile"`'
13059 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13060 hardcode_libdir_flag_spec_F77='-L$libdir'
13061 hardcode_shlibpath_var_F77=no
13068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13069 # support. Future versions do this automatically, but an explicit c++rt0.o
13070 # does not break anything, and helps significantly (at the cost of a little
13073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13074 hardcode_libdir_flag_spec_F77='-R$libdir'
13075 hardcode_direct_F77=yes
13076 hardcode_shlibpath_var_F77=no
13079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13082 hardcode_direct_F77=yes
13083 hardcode_minus_L_F77=yes
13084 hardcode_shlibpath_var_F77=no
13087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13089 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13090 hardcode_libdir_flag_spec_F77='-R$libdir'
13091 hardcode_direct_F77=yes
13092 hardcode_shlibpath_var_F77=no
13095 hpux9* | hpux10* | hpux11*)
13096 if test $with_gcc = yes; then
13098 hpux9*) 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' ;;
13099 *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
13103 hpux9*) 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' ;;
13104 *) archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
13107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13108 hardcode_libdir_separator_F77=:
13109 hardcode_direct_F77=yes
13110 hardcode_minus_L_F77=yes # Not in the search PATH, but as the default
13111 # location of the library.
13112 export_dynamic_flag_spec_F77='${wl}-E'
13116 if test "$GCC" = yes; then
13117 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'
13119 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'
13121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13122 hardcode_libdir_separator_F77=:
13123 link_all_deplibs_F77=yes
13127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13128 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13130 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13132 hardcode_libdir_flag_spec_F77='-R$libdir'
13133 hardcode_direct_F77=yes
13134 hardcode_shlibpath_var_F77=no
13138 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
13139 hardcode_direct_F77=yes
13140 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13141 hardcode_libdir_separator_F77=:
13142 hardcode_shlibpath_var_F77=no
13146 hardcode_direct_F77=yes
13147 hardcode_shlibpath_var_F77=no
13150 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
13151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13152 hardcode_libdir_flag_spec_F77='-R$libdir'
13155 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
13156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13157 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
13158 export_dynamic_flag_spec_F77='${wl}-E'
13165 hardcode_libdir_flag_spec_F77='-L$libdir'
13166 hardcode_minus_L_F77=yes
13167 allow_undefined_flag_F77=unsupported
13168 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'
13169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13173 if test "$GCC" = yes; then
13174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13175 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'
13177 allow_undefined_flag_F77=' -expect_unresolved \*'
13178 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'
13180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13181 hardcode_libdir_separator_F77=:
13184 osf4* | osf5*) # as osf3* with the addition of -msym flag
13185 if test "$GCC" = yes; then
13186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13187 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'
13188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13190 allow_undefined_flag_F77=' -expect_unresolved \*'
13191 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'
13192 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13193 $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'
13195 # Both c and cxx compiler support -rpath directly
13196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13198 hardcode_libdir_separator_F77=:
13202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13203 hardcode_shlibpath_var_F77=no
13204 export_dynamic_flag_spec_F77='${wl}-Bexport'
13205 runpath_var=LD_RUN_PATH
13206 hardcode_runpath_var=yes
13210 no_undefined_flag_F77=' -z defs'
13211 if test "$with_gcc" = yes; then
13212 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13216 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13220 hardcode_libdir_flag_spec_F77='-R$libdir'
13221 hardcode_shlibpath_var_F77=no
13223 solaris2.[0-5] | solaris2.[0-5].*) ;;
13224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13225 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13227 link_all_deplibs_F77=yes
13231 if test "x$host_vendor" = xsequent; then
13232 # Use $CC to link under sequent, because it throws in some extra .o
13233 # files that make .init and .fini sections work.
13234 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13236 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_libdir_flag_spec_F77='-L$libdir'
13239 hardcode_direct_F77=yes
13240 hardcode_minus_L_F77=yes
13241 hardcode_shlibpath_var_F77=no
13245 if test "x$host_vendor" = xsni; then
13246 archive_cmds_F77='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
13247 hardcode_direct_F77=yes # is this really true???
13249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13250 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13252 runpath_var='LD_RUN_PATH'
13253 hardcode_shlibpath_var_F77=no
13257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_shlibpath_var_F77=no
13259 export_dynamic_flag_spec_F77='-Bexport'
13263 if test -d /usr/nec; then
13264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13265 hardcode_shlibpath_var_F77=no
13266 runpath_var=LD_RUN_PATH
13267 hardcode_runpath_var=yes
13273 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13274 hardcode_direct_F77=yes
13275 hardcode_minus_L_F77=no
13276 hardcode_shlibpath_var_F77=no
13277 hardcode_runpath_var=yes
13278 runpath_var=LD_RUN_PATH
13281 sysv5uw7* | unixware7*)
13282 no_undefined_flag_F77='${wl}-z ${wl}text'
13283 if test "$GCC" = yes; then
13284 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13288 runpath_var='LD_RUN_PATH'
13289 hardcode_shlibpath_var_F77=no
13293 no_undefined_flag_F77=' -z text'
13294 # $CC -shared without GNU ld will not create a library from C++
13295 # object files and a static libstdc++, better avoid it by now
13296 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13297 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13299 hardcode_libdir_flag_spec_F77=
13300 hardcode_shlibpath_var_F77=no
13301 runpath_var='LD_RUN_PATH'
13305 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13306 hardcode_libdir_flag_spec_F77='-L$libdir'
13307 hardcode_shlibpath_var_F77=no
13315 echo "$as_me:13315: result: $ld_shlibs_F77" >&5
13316 echo "${ECHO_T}$ld_shlibs_F77" >&6
13317 test "$ld_shlibs_F77" = no && can_build_shared=no
13319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13320 if test "$GCC" = yes; then
13321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13325 # Do we need to explicitly link libc?
13327 archive_cmds_need_lc_F77=yes
13328 if test "$enable_shared" = yes && test "$GCC" = yes; then
13329 case $archive_cmds_F77 in
13331 # FIXME: we may have to deal with multi-command sequences.
13334 # Test whether the compiler implicitly links with -lc since on some
13335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13336 # to ld, don't add -lc before -lgcc.
13337 echo "$as_me:13337: checking whether -lc should be explicitly linked in" >&5
13338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13340 echo 'static int dummy;' > conftest.$ac_ext
13342 if { (eval echo "$as_me:13342: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>&5
13345 echo "$as_me:13345: \$? = $ac_status" >&5
13346 (exit $ac_status); } 2>conftest.err; then
13349 libobjs=conftest.$ac_objext
13351 wl=$lt_prog_compiler_wl_F77
13357 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13358 allow_undefined_flag_F77=
13359 if { (eval echo "$as_me:13359: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13360 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13362 echo "$as_me:13362: \$? = $ac_status" >&5
13363 (exit $ac_status); }
13365 archive_cmds_need_lc_F77=no
13367 archive_cmds_need_lc_F77=yes
13369 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13371 cat conftest.err 1>&5
13374 echo "$as_me:13374: result: $archive_cmds_need_lc_F77" >&5
13375 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13380 echo "$as_me:13380: checking how to hardcode library paths into programs" >&5
13381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13382 hardcode_action_F77=
13383 if test -n "$hardcode_libdir_flag_spec" || \
13384 test -n "$runpath_var"; then
13386 # We can hardcode non-existant directories.
13387 if test "$hardcode_direct_F77" != no &&
13388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13389 # have to relink, otherwise we might link with an installed library
13390 # when we should be linking with a yet-to-be-installed one
13391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13392 test "$hardcode_minus_L_F77" != no; then
13393 # Linking always hardcodes the temporary library directory.
13394 hardcode_action_F77=relink
13396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13397 hardcode_action_F77=immediate
13400 # We cannot hardcode anything, or else we can only hardcode existing
13402 hardcode_action_F77=unsupported
13404 echo "$as_me:13404: result: $hardcode_action_F77" >&5
13405 echo "${ECHO_T}$hardcode_action_F77" >&6
13407 if test "$hardcode_action_F77" = relink; then
13408 # Fast installation is not supported
13409 enable_fast_install=no
13410 elif test "$shlibpath_overrides_runpath" = yes ||
13411 test "$enable_shared" = no; then
13412 # Fast installation is not necessary
13413 enable_fast_install=needless
13418 echo "$as_me:13418: checking whether stripping libraries is possible" >&5
13419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13423 echo "$as_me:13423: result: yes" >&5
13424 echo "${ECHO_T}yes" >&6
13426 echo "$as_me:13426: result: no" >&5
13427 echo "${ECHO_T}no" >&6
13430 echo "$as_me:13430: checking dynamic linker characteristics" >&5
13431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13432 library_names_spec=
13433 libname_spec='lib$name'
13436 postuninstall_cmds=
13440 shlibpath_overrides_runpath=unknown
13442 dynamic_linker="$host_os ld.so"
13443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13445 need_lib_prefix=unknown
13446 hardcode_into_libs=no
13448 # when you set need_version to no, make sure it does not cause -set_version
13449 # flags to be left without arguments
13450 need_version=unknown
13455 library_names_spec='${libname}${release}.so$versuffix $libname.a'
13456 shlibpath_var=LIBPATH
13458 # AIX 3 has no versioning support, so we append a major version to the name.
13459 soname_spec='${libname}${release}.so$major'
13464 if test "$host_cpu" = ia64; then
13465 # AIX 5 supports IA64
13466 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13467 shlibpath_var=LD_LIBRARY_PATH
13469 # With GCC up to 2.95.x, collect2 would create an import file
13470 # for dependence libraries. The import file would start with
13471 # the line `#! .'. This would cause the generated library to
13472 # depend on `.', always an invalid library. This was fixed in
13473 # development snapshots of GCC prior to 3.0.
13475 aix4 | aix4.[01] | aix4.[01].*)
13476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13481 can_build_shared=no
13485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13486 # soname into executable. Probably we can add versioning support to
13487 # collect2, so additional links can be useful in future.
13488 if test "$aix_use_runtimelinking" = yes; then
13489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13490 # instead of lib<name>.a to let people know that these are not
13491 # typical AIX shared libraries.
13492 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13494 # We preserve .a as extension for shared libraries through AIX4.2
13495 # and later when we are not doing run time linking.
13496 library_names_spec='${libname}${release}.a $libname.a'
13497 soname_spec='${libname}${release}.so$major'
13499 shlibpath_var=LIBPATH
13500 deplibs_check_method=pass_all
13505 library_names_spec='$libname.ixlibrary $libname.a'
13506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13507 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'
13511 library_names_spec='${libname}.so'
13512 dynamic_linker="$host_os ld.so"
13513 shlibpath_var=LIBRARY_PATH
13519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13520 soname_spec='${libname}${release}.so$major'
13521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13525 # the default ld.so.conf also contains /usr/contrib/lib and
13526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13527 # libtool to hard-code these into programs
13530 cygwin* | mingw* | pw32*)
13531 version_type=windows
13534 case $GCC,$host_os in
13536 library_names_spec='$libname.dll.a'
13537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13538 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13539 dldir=$destdir/`dirname \$dlpath`~
13540 test -d \$dldir || mkdir -p \$dldir~
13541 $install_prog .libs/$dlname \$dldir/$dlname'
13542 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13543 dlpath=$dir/\$dldll~
13547 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
13551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13554 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13557 dynamic_linker='Win32 ld.exe'
13558 # FIXME: first we should search . and the directory the executable is in
13562 darwin* | rhapsody*)
13563 dynamic_linker="$host_os dyld"
13564 version_type=darwin
13567 # FIXME: Relying on posixy $() will cause problems for
13568 # cross-compilation, but unfortunately the echo tests do not
13569 # yet detect zsh echo's removal of \ escapes.
13570 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13571 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13572 shlibpath_overrides_runpath=yes
13573 shlibpath_var=DYLD_LIBRARY_PATH
13580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13581 soname_spec='${libname}${release}.so$major'
13582 shlibpath_var=LD_LIBRARY_PATH
13590 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13591 version_type=freebsd-$objformat
13592 case $version_type in
13594 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13599 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13603 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes
13608 freebsd3.01* | freebsdelf3.01*)
13609 shlibpath_overrides_runpath=yes
13610 hardcode_into_libs=yes
13613 shlibpath_overrides_runpath=no
13614 hardcode_into_libs=yes
13623 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13624 soname_spec='${libname}${release}.so$major'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 hardcode_into_libs=yes
13629 hpux9* | hpux10* | hpux11*)
13630 # Give a soname corresponding to the major version so that dld.sl refuses to
13631 # link against other versions.
13632 dynamic_linker="$host_os dld.sl"
13636 shlibpath_var=SHLIB_PATH
13637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13638 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13639 soname_spec='${libname}${release}.sl$major'
13640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13641 postinstall_cmds='chmod 555 $lib'
13648 soname_spec='${libname}${release}.so.$major'
13649 library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13652 libsuff= shlibsuff=
13655 case $LD in # libtool.m4 will add one of these switches to LD
13656 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13657 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13658 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13659 *) libsuff= shlibsuff= libmagic=never-match;;
13663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13664 shlibpath_overrides_runpath=no
13665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13669 # No shared lib support for Linux oldld, aout, or coff.
13670 linux*oldld* | linux*aout* | linux*coff*)
13674 # This must be Linux ELF.
13679 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13680 soname_spec='${libname}${release}.so$major'
13681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13682 shlibpath_var=LD_LIBRARY_PATH
13683 shlibpath_overrides_runpath=no
13684 # This implies no fast_install, which is unacceptable.
13685 # Some rework will be needed to allow for fast_install
13686 # before this can be enabled.
13687 hardcode_into_libs=yes
13689 # We used to test for /lib/ld.so.1 and disable shared libraries on
13690 # powerpc, because MkLinux only supported shared libraries with the
13691 # GNU dynamic linker. Since this was broken with cross compilers,
13692 # most powerpc-linux boxes support dynamic linking these days and
13693 # people can always --disable-shared, the test was removed, and we
13694 # assume the GNU/Linux dynamic linker is in use.
13695 dynamic_linker='GNU/Linux ld.so'
13702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13703 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13705 dynamic_linker='NetBSD (a.out) ld.so'
13707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13708 soname_spec='${libname}${release}.so$major'
13709 dynamic_linker='NetBSD ld.elf_so'
13711 shlibpath_var=LD_LIBRARY_PATH
13712 shlibpath_overrides_runpath=yes
13713 hardcode_into_libs=yes
13718 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 shlibpath_overrides_runpath=yes
13725 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 file_magic_cmd=/usr/bin/file
13729 file_magic_test_file=`echo /usr/lib/libc.so.*`
13730 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
13731 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
13733 deplibs_check_method='file_magic OpenBSD.* shared library'
13738 libname_spec='$name'
13740 library_names_spec='$libname.dll $libname.a'
13741 dynamic_linker='OS/2 ld.exe'
13742 shlibpath_var=LIBPATH
13745 osf3* | osf4* | osf5*)
13748 soname_spec='${libname}${release}.so'
13749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13750 shlibpath_var=LD_LIBRARY_PATH
13751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13757 soname_spec='${libname}${release}.so$major'
13758 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13759 shlibpath_var=LD_LIBRARY_PATH
13766 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13767 soname_spec='${libname}${release}.so$major'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=yes
13770 hardcode_into_libs=yes
13771 # ldd complains unless libraries are executable
13772 postinstall_cmds='chmod +x $lib'
13777 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13779 shlibpath_var=LD_LIBRARY_PATH
13780 shlibpath_overrides_runpath=yes
13781 if test "$with_gnu_ld" = yes; then
13787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13789 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13790 soname_spec='${libname}${release}.so$major'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 case $host_vendor in
13794 shlibpath_overrides_runpath=no
13799 shlibpath_overrides_runpath=no
13800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13806 if test -d /usr/nec ;then
13808 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13809 soname_spec='$libname.so.$major'
13810 shlibpath_var=LD_LIBRARY_PATH
13816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13817 soname_spec='${libname}${release}.so$major'
13818 shlibpath_var=LD_LIBRARY_PATH
13825 echo "$as_me:13825: result: $dynamic_linker" >&5
13826 echo "${ECHO_T}$dynamic_linker" >&6
13827 test "$dynamic_linker" = no && can_build_shared=no
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834 # Now quote all the things that may contain metacharacters while being
13835 # careful not to overquote the AC_SUBSTed values. We take copies of the
13836 # variables and quote the copies for generation of the libtool script.
13837 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
13838 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13839 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13840 deplibs_check_method reload_flag reload_cmds need_locks \
13841 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13842 lt_cv_sys_global_symbol_to_c_name_address \
13843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13844 old_postinstall_cmds old_postuninstall_cmds \
13848 lt_prog_compiler_wl_F77 \
13849 lt_prog_compiler_pic_F77 \
13850 lt_prog_compiler_static_F77 \
13851 lt_prog_compiler_no_builtin_flag_F77 \
13852 export_dynamic_flag_spec_F77 \
13853 thread_safe_flag_spec_F77 \
13854 whole_archive_flag_spec_F77 \
13855 old_archive_cmds_F77 \
13856 old_archive_from_new_cmds_F77 \
13857 predep_objects_F77 \
13858 postdep_objects_F77 \
13861 compiler_lib_search_path_F77 \
13863 archive_expsym_cmds_F77 \
13864 postinstall_cmds_F77 \
13865 postuninstall_cmds_F77 \
13866 old_archive_from_expsyms_cmds_F77 \
13867 allow_undefined_flag_F77 \
13868 no_undefined_flag_F77 \
13869 export_symbols_cmds_F77 \
13870 hardcode_libdir_flag_spec_F77 \
13871 hardcode_libdir_separator_F77 \
13872 lt_cv_prog_compiler_c_o_F77 \
13873 exclude_expsyms_F77 \
13874 include_expsyms_F77; do
13877 old_archive_cmds_F77 | \
13878 old_archive_from_new_cmds_F77 | \
13879 archive_cmds_F77 | \
13880 archive_expsym_cmds_F77 | \
13881 old_archive_from_expsyms_cmds_F77 | \
13882 export_symbols_cmds_F77 | \
13883 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13884 postinstall_cmds | postuninstall_cmds | \
13885 old_postinstall_cmds | old_postuninstall_cmds | \
13886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13887 # Double-quote double-evaled strings.
13888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13897 *'\$0 --fallback-echo"')
13898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13904 cat <<__EOF__ >> "$cfgfile"
13905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13909 # Shell to use when invoking shell scripts.
13912 # Whether or not to build shared libraries.
13913 build_libtool_libs=$enable_shared
13915 # Whether or not to build static libraries.
13916 build_old_libs=$enable_static
13918 # Whether or not to add -lc for building shared libraries.
13919 build_libtool_need_lc=$archive_cmds_need_lc_F77
13921 # Whether or not to optimize for fast installation.
13922 fast_install=$enable_fast_install
13925 host_alias=$host_alias
13928 # An echo program that does not interpret backslashes.
13933 AR_FLAGS=$lt_AR_FLAGS
13938 # A language-specific compiler.
13939 CC=$lt_compiler_F77
13941 # Is the compiler the GNU C compiler?
13944 # The linker used to build libraries.
13947 # Whether we need hard or soft links.
13950 # A BSD-compatible nm program.
13953 # A symbol stripping program
13956 # Used to examine libraries when file_magic_cmd begins "file"
13957 MAGIC_CMD=$MAGIC_CMD
13959 # Used on cygwin: DLL creation program.
13962 # Used on cygwin: object dumper.
13965 # Used on cygwin: assembler.
13968 # The name of the directory that contains temporary libtool files.
13971 # How to create reloadable object files.
13972 reload_flag=$lt_reload_flag
13973 reload_cmds=$lt_reload_cmds
13975 # How to pass a linker flag through the compiler.
13976 wl=$lt_lt_prog_compiler_wl_F77
13978 # Object file suffix (normally "o").
13979 objext="$ac_objext"
13981 # Old archive suffix (normally "a").
13984 # Executable file suffix (normally "").
13987 # Additional compiler flags for building library objects.
13988 pic_flag=$lt_lt_prog_compiler_pic_F77
13991 # What is the maximum length of a command?
13992 max_cmd_len=$lt_cv_sys_max_cmd_len
13994 # Does compiler simultaneously support -c and -o options?
13995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13997 # Must we lock files when doing compilation ?
13998 need_locks=$lt_need_locks
14000 # Do we need the lib prefix for modules?
14001 need_lib_prefix=$need_lib_prefix
14003 # Do we need a version for libraries?
14004 need_version=$need_version
14006 # Whether dlopen is supported.
14007 dlopen_support=$enable_dlopen
14009 # Whether dlopen of programs is supported.
14010 dlopen_self=$enable_dlopen_self
14012 # Whether dlopen of statically linked programs is supported.
14013 dlopen_self_static=$enable_dlopen_self_static
14015 # Compiler flag to prevent dynamic linking.
14016 link_static_flag=$lt_lt_prog_compiler_static_F77
14018 # Compiler flag to turn off builtin functions.
14019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14021 # Compiler flag to allow reflexive dlopens.
14022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14024 # Compiler flag to generate shared objects directly from archives.
14025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14027 # Compiler flag to generate thread-safe objects.
14028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14030 # Library versioning type.
14031 version_type=$version_type
14033 # Format of library name prefix.
14034 libname_spec=$lt_libname_spec
14036 # List of archive names. First name is the real one, the rest are links.
14037 # The last name is the one that the linker finds with -lNAME.
14038 library_names_spec=$lt_library_names_spec
14040 # The coded name of the library, if different from the real name.
14041 soname_spec=$lt_soname_spec
14043 # Commands used to build and install an old-style archive.
14045 old_archive_cmds=$lt_old_archive_cmds_F77
14046 old_postinstall_cmds=$lt_old_postinstall_cmds
14047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14049 # Create an old-style archive from a shared archive.
14050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14052 # Create a temporary old-style archive to link instead of a shared archive.
14053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14055 # Commands used to build and install a shared archive.
14056 archive_cmds=$lt_archive_cmds_F77
14057 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14058 postinstall_cmds=$lt_postinstall_cmds
14059 postuninstall_cmds=$lt_postuninstall_cmds
14061 # Commands to strip libraries.
14062 old_striplib=$lt_old_striplib
14063 striplib=$lt_striplib
14065 # Dependencies to place before the objects being linked to create a
14067 predep_objects=$lt_predep_objects_F77
14069 # Dependencies to place after the objects being linked to create a
14071 postdep_objects=$lt_postdep_objects_F77
14073 # Dependencies to place before the objects being linked to create a
14075 predeps=$lt_predeps_F77
14077 # Dependencies to place after the objects being linked to create a
14079 postdeps=$lt_postdeps_F77
14081 # The library search path used internally by the compiler when linking
14082 # a shared library.
14083 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14085 # Method to check whether dependent libraries are shared objects.
14086 deplibs_check_method=$lt_deplibs_check_method
14088 # Command to use when deplibs_check_method == file_magic.
14089 file_magic_cmd=$lt_file_magic_cmd
14091 # Flag that allows shared libraries with undefined symbols to be built.
14092 allow_undefined_flag=$lt_allow_undefined_flag_F77
14094 # Flag that forces no undefined symbols.
14095 no_undefined_flag=$lt_no_undefined_flag_F77
14097 # Commands used to finish a libtool library installation in a directory.
14098 finish_cmds=$lt_finish_cmds
14100 # Same as above, but a single script fragment to be evaled but not shown.
14101 finish_eval=$lt_finish_eval
14103 # Take the output of nm and produce a listing of raw symbols and C names.
14104 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14106 # Transform the output of nm in a proper C declaration
14107 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14109 # Transform the output of nm in a C name address pair
14110 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14112 # This is the shared library runtime path variable.
14113 runpath_var=$runpath_var
14115 # This is the shared library path variable.
14116 shlibpath_var=$shlibpath_var
14118 # Is shlibpath searched before the hard-coded library search path?
14119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14121 # How to hardcode a shared library path into an executable.
14122 hardcode_action=$hardcode_action_F77
14124 # Whether we should hardcode library paths into libraries.
14125 hardcode_into_libs=$hardcode_into_libs
14127 # Flag to hardcode \$libdir into a binary during linking.
14128 # This must work even if \$libdir does not exist.
14129 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14131 # Whether we need a single -rpath flag with a separated argument.
14132 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14134 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14135 # resulting binary.
14136 hardcode_direct=$hardcode_direct_F77
14138 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14139 # resulting binary.
14140 hardcode_minus_L=$hardcode_minus_L_F77
14142 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14143 # the resulting binary.
14144 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14146 # Variables whose values should be saved in libtool wrapper scripts and
14147 # restored at relink time.
14148 variables_saved_for_relink="$variables_saved_for_relink"
14150 # Whether libtool must link a program against all its dependency libraries.
14151 link_all_deplibs=$link_all_deplibs_F77
14153 # Compile-time system search path for libraries
14154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14156 # Run-time system search path for libraries
14157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14159 # Fix the shell variable \$srcfile for the compiler.
14160 fix_srcfile_path="$fix_srcfile_path_F77"
14162 # Set to yes if exported symbols are required.
14163 always_export_symbols=$always_export_symbols_F77
14165 # The commands to list exported symbols.
14166 export_symbols_cmds=$lt_export_symbols_cmds_F77
14168 # The commands to extract the exported symbol list from a shared archive.
14169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14171 # Symbols that should not be listed in the preloaded symbols.
14172 exclude_expsyms=$lt_exclude_expsyms_F77
14174 # Symbols that must always be exported.
14175 include_expsyms=$lt_include_expsyms_F77
14177 # ### END LIBTOOL TAG CONFIG: $tagname
14182 # If there is no Makefile yet, we rely on a make rule to execute
14183 # `config.status --recheck' to rerun these tests and create the
14184 # libtool script then.
14185 test -f Makefile && make "$ltmain"
14189 ac_cpp='$CPP $CPPFLAGS'
14190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200 # Source file extension for C test sources.
14203 # Object file extension for compiled C test sources.
14207 # Code to be used in simple compile tests
14208 lt_simple_compile_test_code="class foo {}\n"
14210 # Code to be used in simple link tests
14211 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14216 # If no C compiler was specified, use CC.
14219 # Allow CC to be a program name with arguments.
14223 # Allow CC to be a program name with arguments.
14230 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14231 archive_cmds_need_lc_GCJ=no
14233 lt_prog_compiler_no_builtin_flag_GCJ=
14235 if test "$GCC" = yes; then
14236 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14238 echo "$as_me:14238: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14239 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14240 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 lt_cv_prog_compiler_rtti_exceptions=no
14244 ac_outfile=conftest.$ac_objext
14245 save_CFLAGS="$CFLAGS"
14246 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14248 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14249 # The compiler can only warn and ignore the option if not recognized
14250 # So say no if there are warnings
14251 if test -s conftest.err; then
14252 # Append any errors to the config.log.
14253 cat conftest.err 1>&5
14255 lt_cv_prog_compiler_rtti_exceptions=yes
14259 CFLAGS="$save_CFLAGS"
14262 echo "$as_me:14262: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14266 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14273 hard_links="nottested"
14274 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14275 # do not overwrite the value of need_locks provided by the user
14276 echo "$as_me:14276: checking if we can lock with hard links" >&5
14277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14282 ln conftest.a conftest.b 2>&5 || hard_links=no
14283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14284 echo "$as_me:14284: result: $hard_links" >&5
14285 echo "${ECHO_T}$hard_links" >&6
14286 if test "$hard_links" = no; then
14287 { echo "$as_me:14287: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14295 lt_prog_compiler_wl_GCJ=
14296 lt_prog_compiler_pic_GCJ=
14297 lt_prog_compiler_static_GCJ=
14299 echo "$as_me:14299: checking for $compiler option to produce PIC" >&5
14300 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14301 if test "$GCC" = yes; then
14302 lt_prog_compiler_wl_GCJ='-Wl,'
14303 lt_prog_compiler_static_GCJ='-static'
14307 # All AIX code is PIC.
14308 if test "$host_cpu" = ia64; then
14309 # AIX 5 now supports IA64 processor
14310 lt_prog_compiler_static_GCJ='-Bstatic'
14312 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14317 # FIXME: we need at least 68020 code to build shared libraries, but
14318 # adding the `-m68020' flag to GCC prevents building anything better,
14320 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14323 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
14324 # PIC is the default for these OSes.
14327 cygwin* | mingw* | pw32* | os2*)
14328 # This hack is so that the source file can tell whether it is being
14329 # built for inclusion in a dll (and should export symbols for example).
14330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14333 darwin* | rhapsody*)
14334 # PIC is the default on this platform
14335 # Common symbols not allowed in MH_DYLIB files
14336 lt_prog_compiler_pic_GCJ='-fno-common'
14340 # Just because we use GCC doesn't mean we suddenly get shared libraries
14341 # on systems that don't support them.
14342 lt_prog_compiler_can_build_shared_GCJ=no
14347 if test -d /usr/nec; then
14348 lt_prog_compiler_pic_GCJ=-Kconform_pic
14353 lt_prog_compiler_pic_GCJ='-fPIC'
14357 # PORTME Check for flag to pass linker flags through the system compiler.
14360 lt_prog_compiler_wl_GCJ='-Wl,'
14361 if test "$host_cpu" = ia64; then
14362 # AIX 5 now supports IA64 processor
14363 lt_prog_compiler_static_GCJ='-Bstatic'
14365 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14369 cygwin* | mingw* | pw32* | os2*)
14370 # This hack is so that the source file can tell whether it is being
14371 # built for inclusion in a dll (and should export symbols for example).
14372 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14375 hpux9* | hpux10* | hpux11*)
14376 lt_prog_compiler_wl_GCJ='-Wl,'
14377 lt_prog_compiler_pic_GCJ='+Z'
14378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14383 lt_prog_compiler_wl_GCJ='-Wl,'
14384 # PIC (with -KPIC) is the default.
14385 lt_prog_compiler_static_GCJ='-non_shared'
14389 # Check flags for non-gnu compilers on Linux
14390 case "$host_cpu" in
14392 # The only non-gnu compiler on Linux/Alpha is the Compaq one:
14393 lt_prog_compiler_wl_GCJ='-Wl,'
14394 lt_prog_compiler_static_GCJ='-non_shared'
14397 lt_prog_compiler_can_build_shared_GCJ=no
14402 lt_prog_compiler_pic_GCJ='-KPIC'
14403 lt_prog_compiler_static_GCJ='-Bstatic'
14406 osf3* | osf4* | osf5*)
14407 lt_prog_compiler_wl_GCJ='-Wl,'
14408 # All OSF/1 code is PIC.
14409 lt_prog_compiler_static_GCJ='-non_shared'
14413 lt_prog_compiler_pic_GCJ='-Kpic'
14414 lt_prog_compiler_static_GCJ='-dn'
14418 lt_prog_compiler_wl_GCJ='-Wl,'
14419 lt_prog_compiler_pic_GCJ='-KPIC'
14420 lt_prog_compiler_static_GCJ='-Bstatic'
14424 lt_prog_compiler_wl_GCJ='-Qoption ld '
14425 lt_prog_compiler_pic_GCJ='-PIC'
14426 lt_prog_compiler_static_GCJ='-Bstatic'
14429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14430 if test "x$host_vendor" = xsni; then
14431 lt_prog_compiler_wl_GCJ='-LD'
14433 lt_prog_compiler_wl_GCJ='-Wl,'
14435 lt_prog_compiler_pic_GCJ='-KPIC'
14436 lt_prog_compiler_static_GCJ='-Bstatic'
14440 if test -d /usr/nec ;then
14441 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14442 lt_prog_compiler_static_GCJ='-Bstatic'
14447 lt_prog_compiler_pic_GCJ='-pic'
14448 lt_prog_compiler_static_GCJ='-Bstatic'
14452 lt_prog_compiler_can_build_shared_GCJ=no
14456 echo "$as_me:14456: result: $lt_prog_compiler_pic_GCJ" >&5
14457 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14460 # Check to make sure the PIC flag actually works.
14462 if test -n "$lt_prog_compiler_pic_GCJ"; then
14463 echo "$as_me:14463: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 lt_prog_compiler_pic_works_GCJ=no
14469 ac_outfile=conftest.$ac_objext
14470 save_CFLAGS="$CFLAGS"
14471 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ"
14472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14473 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14474 # The compiler can only warn and ignore the option if not recognized
14475 # So say no if there are warnings
14476 if test -s conftest.err; then
14477 # Append any errors to the config.log.
14478 cat conftest.err 1>&5
14480 lt_prog_compiler_pic_works_GCJ=yes
14484 CFLAGS="$save_CFLAGS"
14487 echo "$as_me:14487: result: $lt_prog_compiler_pic_works_GCJ" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14490 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14491 case $lt_prog_compiler_pic_GCJ in
14493 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14497 lt_prog_compiler_pic_GCJ=
14498 lt_prog_compiler_can_build_shared_GCJ=no
14503 # For platforms which do not support PIC, -DPIC is meaningless:
14505 lt_prog_compiler_pic_GCJ=
14508 echo "$as_me:14508: checking if $compiler PIC define -DPIC works" >&5
14509 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
14510 if test "${lt_prog_compiler_picdef_works_GCJ+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 lt_prog_compiler_picdef_works_GCJ=no
14514 ac_outfile=conftest.$ac_objext
14515 save_CFLAGS="$CFLAGS"
14516 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
14517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14518 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14519 # The compiler can only warn and ignore the option if not recognized
14520 # So say no if there are warnings
14521 if test -s conftest.err; then
14522 # Append any errors to the config.log.
14523 cat conftest.err 1>&5
14525 lt_prog_compiler_picdef_works_GCJ=yes
14529 CFLAGS="$save_CFLAGS"
14532 echo "$as_me:14532: result: $lt_prog_compiler_picdef_works_GCJ" >&5
14533 echo "${ECHO_T}$lt_prog_compiler_picdef_works_GCJ" >&6
14535 if test x"$lt_prog_compiler_picdef_works_GCJ" = xyes; then
14536 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
14538 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14544 echo "$as_me:14544: checking if $compiler supports -c -o file.$ac_objext" >&5
14545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14546 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 lt_cv_prog_compiler_c_o_GCJ=no
14550 $rm -r conftest 2>/dev/null
14554 save_CFLAGS="$CFLAGS"
14555 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
14556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14558 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14559 # that will create temporary files in the current directory regardless of
14560 # the output directory. Thus, making CWD read-only will cause this test
14561 # to fail, enabling locking or at least warning the user not to do parallel
14565 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
14567 # The compiler can only warn and ignore the option if not recognized
14568 # So say no if there are warnings
14569 if test -s out/conftest.err; then
14570 # Append any errors to the config.log.
14571 cat out/conftest.err 1>&5
14573 lt_cv_prog_compiler_c_o_GCJ=yes
14576 CFLAGS="$save_CFLAGS"
14579 $rm conftest* out/*
14586 echo "$as_me:14586: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14589 echo "$as_me:14589: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14593 allow_undefined_flag_GCJ=
14596 archive_cmds_need_lc_GCJ=
14597 archive_expsym_cmds_GCJ=
14598 old_archive_From_new_cmds_GCJ=
14599 old_archive_from_expsyms_cmds_GCJ=
14600 export_dynamic_flag_spec_GCJ=
14601 whole_archive_flag_spec_GCJ=
14602 thread_safe_flag_spec_GCJ=
14603 hardcode_libdir_flag_spec_GCJ=
14604 hardcode_libdir_separator_GCJ=
14605 hardcode_direct_GCJ=no
14606 hardcode_minus_L_GCJ=no
14607 hardcode_shlibpath_var_GCJ=unsupported
14608 link_all_deplibs_GCJ=unknown
14609 always_export_symbols_GCJ=no
14610 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14611 # include_expsyms should be a list of space-separated symbols to be *always*
14612 # included in the symbol list
14613 include_expsyms_GCJ=
14614 # exclude_expsyms can be an egrep regular expression of symbols to exclude
14615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14617 # as well as any symbol that contains `d'.
14618 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14620 # platforms (ab)use it in PIC code, but their linkers get confused if
14621 # the symbol is explicitly referenced. Since portable code cannot
14622 # rely on this symbol name, it's probably fine to never include it in
14623 # preloaded symbol tables.
14624 extract_expsyms_cmds=
14627 cygwin* | mingw* | pw32*)
14628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14629 # When not using gcc, we currently assume that we are using
14630 # Microsoft Visual C++.
14631 if test "$GCC" != yes; then
14641 if test "$with_gnu_ld" = yes; then
14642 # If archive_cmds runs LD, not CC, wlarc should be empty
14645 # See if GNU ld supports shared libraries.
14647 aix3* | aix4* | aix5*)
14648 # On AIX/PPC, the GNU linker is very broken
14649 if test "$host_cpu" != ia64; then
14653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14654 *** to be unable to reliably create shared libraries on AIX.
14655 *** Therefore, libtool is disabling shared libraries support. If you
14656 *** really care for shared libraries, you may want to modify your PATH
14657 *** so that a non-GNU linker is found, and then restart.
14664 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)'
14665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14666 hardcode_minus_L_GCJ=yes
14668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14669 # that the semantics of dynamic libraries on AmigaOS, at least up
14670 # to version 4, is to share data among multiple programs linked
14671 # with the same dynamic library. Since this doesn't match the
14672 # behavior of shared libraries on other platforms, we can't use
14678 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14679 allow_undefined_flag_GCJ=unsupported
14680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14681 # support --undefined. This deserves some investigation. FIXME
14682 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14688 cygwin* | mingw* | pw32*)
14689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
14690 # no search path for DLLs.
14691 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14692 allow_undefined_flag_GCJ=unsupported
14693 always_export_symbols_GCJ=yes
14695 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
14696 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
14697 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
14698 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
14699 else $CC -o impgen impgen.c ; fi)~
14700 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
14702 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
14704 # cygwin and mingw dlls have different entry points and sets of symbols
14706 # FIXME: what about values for MSVC?
14707 dll_entry=__cygwin_dll_entry@12
14708 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
14712 dll_entry=_DllMainCRTStartup@12
14713 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
14717 # mingw and cygwin differ, and it's simplest to just exclude the union
14718 # of the two symbol sets.
14719 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
14721 # recent cygwin and mingw systems supply a stub DllMain which the user
14722 # can override, but on older systems we have to supply one (in ltdll.c)
14723 if test "x$lt_cv_need_dllmain" = "xyes"; then
14724 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
14725 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
14726 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
14732 # Extract the symbol export list from an `--export-all' def file,
14733 # then regenerate the def file from the symbol export list, so that
14734 # the compiled dll only exports the symbol export list.
14735 # Be careful not to strip the DATA tag left by newer dlltools.
14736 export_symbols_cmds_GCJ="$ltdll_cmds"'
14737 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
14738 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
14740 # If the export-symbols file already is a .def file (1st line
14741 # is EXPORTS), use it as is.
14742 # If DATA tags from a recent dlltool are present, honour them!
14743 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
14744 cp $export_symbols $output_objdir/$soname-def;
14746 echo EXPORTS > $output_objdir/$soname-def;
14748 cat $export_symbols | while read symbol; do
14749 set dummy \$symbol;
14751 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
14752 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
14754 _lt_hint=`expr 1 + \$_lt_hint`;
14758 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14759 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
14760 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
14761 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
14762 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
14765 darwin* | rhapsody*)
14766 allow_undefined_flag_GCJ='-undefined suppress'
14767 # FIXME: Relying on posixy $() will cause problems for
14768 # cross-compilation, but unfortunately the echo tests do not
14769 # yet detect zsh echo's removal of \ escapes.
14770 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
14771 # We need to add '_' to the symbols in $export_symbols first
14772 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14773 hardcode_direct_GCJ=yes
14774 hardcode_shlibpath_var_GCJ=no
14775 whole_archive_flag_spec_GCJ='-all_load $convenience'
14779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14783 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14789 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
14793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14794 *** create shared libraries on Solaris systems. Therefore, libtool
14795 *** is disabling shared libraries support. We urge you to upgrade GNU
14796 *** binutils to release 2.9.1 or newer. Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14801 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14802 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14810 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812 hardcode_direct_GCJ=yes
14813 hardcode_shlibpath_var_GCJ=no
14817 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14818 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14819 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14826 if test "$ld_shlibs_GCJ" = yes; then
14827 runpath_var=LD_RUN_PATH
14828 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14829 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14831 cygwin* | mingw* | pw32*)
14832 # dlltool doesn't understand --whole-archive et. al.
14833 whole_archive_flag_spec_GCJ=
14836 # ancient GNU ld didn't support --whole-archive et. al.
14837 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
14838 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14840 whole_archive_flag_spec_GCJ=
14846 # PORTME fill in a description of your system's linker (not GNU ld)
14849 allow_undefined_flag_GCJ=unsupported
14850 always_export_symbols_GCJ=yes
14851 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'
14852 # Note: this linker hardcodes the directories in LIBPATH if there
14853 # are no directories specified by -L.
14854 hardcode_minus_L_GCJ=yes
14855 if test "$GCC" = yes && test -z "$link_static_flag"; then
14856 # Neither direct hardcoding nor static linking is supported with a
14858 hardcode_direct_GCJ=unsupported
14863 hardcode_direct_GCJ=yes
14864 hardcode_libdir_separator_GCJ=':'
14865 link_all_deplibs_GCJ=yes
14866 # When large executables or shared objects are built, AIX ld can
14867 # have problems creating the table of contents. If linking a library
14868 # or program results in "error TOC overflow" add -mminimal-toc to
14869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14871 if test "$GCC" = yes; then
14872 case $host_os in aix4.012|aix4.-12.*)
14873 # We only want to do this on AIX 4.2 and lower, the check
14874 # below for broken collect2 doesn't work under 4.3+
14875 collect2name=`${CC} -print-prog-name=collect2`
14876 if test -f "$collect2name" && \
14877 strings "$collect2name" | grep resolve_lib_name >/dev/null
14879 # We have reworked collect2
14880 hardcode_direct_GCJ=yes
14882 # We have old collect2
14883 hardcode_direct_GCJ=unsupported
14884 # It fails to find uninstalled libraries when the uninstalled
14885 # path is not listed in the libpath. Setting hardcode_minus_L
14886 # to unsupported forces relinking
14887 hardcode_minus_L_GCJ=yes
14888 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14889 hardcode_libdir_separator_GCJ=
14892 shared_flag='-shared'
14895 if test "$host_cpu" = ia64; then
14896 shared_flag='${wl}-G'
14898 shared_flag='${wl}-bM:SRE'
14902 if test "$host_cpu" = ia64; then
14903 # On IA64, the linker does run time linking by default, so we don't
14904 # have to do anything special.
14905 aix_use_runtimelinking=no
14906 if test $with_gnu_ld = no; then
14907 exp_sym_flag='-Bexport'
14911 # Test if we are trying to use run time linking, or normal AIX style
14912 # linking. If -brtl is somewhere in LDFLAGS, we need to do run time
14914 aix_use_runtimelinking=no
14915 for ld_flag in $LDFLAGS; do
14916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
14917 aix_use_runtimelinking=yes
14921 exp_sym_flag='-bexport'
14922 no_entry_flag='-bnoentry'
14924 # -bexpall does not export symbols beginning with underscore (_)
14925 always_export_symbols_GCJ=yes
14926 if test "$aix_use_runtimelinking" = yes; then
14927 # Warning - without using the other run time loading flags (-brtl),
14928 # -berok will link without error, but may produce a broken
14930 allow_undefined_flag_GCJ=' $wl}-berok'
14931 # Determine the default libpath from the value encoded in an empty executable.
14932 # If we don't find anything, use the default library path according to the cc manual.
14933 cat >conftest.$ac_ext <<_ACEOF
14934 #line 14934 "configure"
14935 #include "confdefs.h"
14945 rm -f conftest.$ac_objext conftest$ac_exeext
14946 if { (eval echo "$as_me:14946: \"$ac_link\"") >&5
14947 (eval $ac_link) 2>&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -s conftest$ac_exeext'
14952 { (eval echo "$as_me:14952: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:14955: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
14959 # Check for a 64-bit object if we didn't find anything.
14960 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
14962 echo "$as_me: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14968 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14969 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14971 if test "$host_cpu" = ia64; then
14972 if test $with_gnu_ld = no; then
14973 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14974 allow_undefined_flag_GCJ="-z nodefs"
14975 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"
14978 # Determine the default libpath from the value encoded in an empty executable.
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line 14980 "configure"
14981 #include "confdefs.h"
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:14992: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>&5
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (eval echo "$as_me:14998: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:15001: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
15008 echo "$as_me: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15014 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15015 allow_undefined_flag_GCJ=' ${wl}-berok'
15016 # -bexpall does not export symbols beginning with underscore (_)
15017 always_export_symbols_GCJ=yes
15018 # Exported symbols can be pulled into shared objects from archives
15019 whole_archive_flag_spec_GCJ=' '
15020 archive_cmds_need_lc_GCJ=yes
15021 # This is similar to how AIX traditionally builds it's shared
15023 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'
15029 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)'
15030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15031 hardcode_minus_L_GCJ=yes
15032 # see comment about different semantics on the GNU ld section
15037 export_dynamic_flag_spec_GCJ=-rdynamic
15040 cygwin* | mingw* | pw32*)
15041 # When not using gcc, we currently assume that we are using
15042 # Microsoft Visual C++.
15043 # hardcode_libdir_flag_spec is actually meaningless, as there is
15044 # no search path for DLLs.
15045 hardcode_libdir_flag_spec_GCJ=' '
15046 allow_undefined_flag_GCJ=unsupported
15047 # Tell ltmain to make .lib files, not .a files.
15049 # FIXME: Setting linknames here is a bad hack.
15050 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15051 # The linker will automatically build a .lib file if we build a DLL.
15052 old_archive_From_new_cmds_GCJ='true'
15053 # FIXME: Should let the user specify the lib program.
15054 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15055 fix_srcfile_path='`cygpath -w "$srcfile"`'
15059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15061 hardcode_shlibpath_var_GCJ=no
15068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15069 # support. Future versions do this automatically, but an explicit c++rt0.o
15070 # does not break anything, and helps significantly (at the cost of a little
15073 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15074 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15075 hardcode_direct_GCJ=yes
15076 hardcode_shlibpath_var_GCJ=no
15079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082 hardcode_direct_GCJ=yes
15083 hardcode_minus_L_GCJ=yes
15084 hardcode_shlibpath_var_GCJ=no
15087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15089 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15090 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15091 hardcode_direct_GCJ=yes
15092 hardcode_shlibpath_var_GCJ=no
15095 hpux9* | hpux10* | hpux11*)
15096 if test $with_gcc = yes; then
15098 hpux9*) 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' ;;
15099 *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
15103 hpux9*) 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' ;;
15104 *) archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
15107 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15108 hardcode_libdir_separator_GCJ=:
15109 hardcode_direct_GCJ=yes
15110 hardcode_minus_L_GCJ=yes # Not in the search PATH, but as the default
15111 # location of the library.
15112 export_dynamic_flag_spec_GCJ='${wl}-E'
15116 if test "$GCC" = yes; then
15117 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'
15119 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'
15121 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15122 hardcode_libdir_separator_GCJ=:
15123 link_all_deplibs_GCJ=yes
15127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15130 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15132 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15133 hardcode_direct_GCJ=yes
15134 hardcode_shlibpath_var_GCJ=no
15138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
15139 hardcode_direct_GCJ=yes
15140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15141 hardcode_libdir_separator_GCJ=:
15142 hardcode_shlibpath_var_GCJ=no
15146 hardcode_direct_GCJ=yes
15147 hardcode_shlibpath_var_GCJ=no
15150 openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
15151 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15155 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15157 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
15158 export_dynamic_flag_spec_GCJ='${wl}-E'
15165 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15166 hardcode_minus_L_GCJ=yes
15167 allow_undefined_flag_GCJ=unsupported
15168 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'
15169 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15173 if test "$GCC" = yes; then
15174 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15175 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'
15177 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15178 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'
15180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15181 hardcode_libdir_separator_GCJ=:
15184 osf4* | osf5*) # as osf3* with the addition of -msym flag
15185 if test "$GCC" = yes; then
15186 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15187 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'
15188 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15190 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15191 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'
15192 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15193 $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'
15195 # Both c and cxx compiler support -rpath directly
15196 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15198 hardcode_libdir_separator_GCJ=:
15202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_shlibpath_var_GCJ=no
15204 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15205 runpath_var=LD_RUN_PATH
15206 hardcode_runpath_var=yes
15210 no_undefined_flag_GCJ=' -z defs'
15211 if test "$with_gcc" = yes; then
15212 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15216 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15217 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15220 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15221 hardcode_shlibpath_var_GCJ=no
15223 solaris2.[0-5] | solaris2.[0-5].*) ;;
15224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15225 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15227 link_all_deplibs_GCJ=yes
15231 if test "x$host_vendor" = xsequent; then
15232 # Use $CC to link under sequent, because it throws in some extra .o
15233 # files that make .init and .fini sections work.
15234 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15239 hardcode_direct_GCJ=yes
15240 hardcode_minus_L_GCJ=yes
15241 hardcode_shlibpath_var_GCJ=no
15245 if test "x$host_vendor" = xsni; then
15246 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
15247 hardcode_direct_GCJ=yes # is this really true???
15249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15252 runpath_var='LD_RUN_PATH'
15253 hardcode_shlibpath_var_GCJ=no
15257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_shlibpath_var_GCJ=no
15259 export_dynamic_flag_spec_GCJ='-Bexport'
15263 if test -d /usr/nec; then
15264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15265 hardcode_shlibpath_var_GCJ=no
15266 runpath_var=LD_RUN_PATH
15267 hardcode_runpath_var=yes
15273 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15274 hardcode_direct_GCJ=yes
15275 hardcode_minus_L_GCJ=no
15276 hardcode_shlibpath_var_GCJ=no
15277 hardcode_runpath_var=yes
15278 runpath_var=LD_RUN_PATH
15281 sysv5uw7* | unixware7*)
15282 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15283 if test "$GCC" = yes; then
15284 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15286 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15288 runpath_var='LD_RUN_PATH'
15289 hardcode_shlibpath_var_GCJ=no
15293 no_undefined_flag_GCJ=' -z text'
15294 # $CC -shared without GNU ld will not create a library from C++
15295 # object files and a static libstdc++, better avoid it by now
15296 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15297 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15299 hardcode_libdir_flag_spec_GCJ=
15300 hardcode_shlibpath_var_GCJ=no
15301 runpath_var='LD_RUN_PATH'
15305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15307 hardcode_shlibpath_var_GCJ=no
15315 echo "$as_me:15315: result: $ld_shlibs_GCJ" >&5
15316 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15317 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15320 if test "$GCC" = yes; then
15321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15325 # Do we need to explicitly link libc?
15327 archive_cmds_need_lc_GCJ=yes
15328 if test "$enable_shared" = yes && test "$GCC" = yes; then
15329 case $archive_cmds_GCJ in
15331 # FIXME: we may have to deal with multi-command sequences.
15334 # Test whether the compiler implicitly links with -lc since on some
15335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15336 # to ld, don't add -lc before -lgcc.
15337 echo "$as_me:15337: checking whether -lc should be explicitly linked in" >&5
15338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15340 echo 'static int dummy;' > conftest.$ac_ext
15342 if { (eval echo "$as_me:15342: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>&5
15345 echo "$as_me:15345: \$? = $ac_status" >&5
15346 (exit $ac_status); } 2>conftest.err; then
15349 libobjs=conftest.$ac_objext
15351 wl=$lt_prog_compiler_wl_GCJ
15357 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15358 allow_undefined_flag_GCJ=
15359 if { (eval echo "$as_me:15359: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15360 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 (exit $ac_status); }
15365 archive_cmds_need_lc_GCJ=no
15367 archive_cmds_need_lc_GCJ=yes
15369 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15371 cat conftest.err 1>&5
15374 echo "$as_me:15374: result: $archive_cmds_need_lc_GCJ" >&5
15375 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15380 echo "$as_me:15380: checking how to hardcode library paths into programs" >&5
15381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15382 hardcode_action_GCJ=
15383 if test -n "$hardcode_libdir_flag_spec" || \
15384 test -n "$runpath_var"; then
15386 # We can hardcode non-existant directories.
15387 if test "$hardcode_direct_GCJ" != no &&
15388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389 # have to relink, otherwise we might link with an installed library
15390 # when we should be linking with a yet-to-be-installed one
15391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15392 test "$hardcode_minus_L_GCJ" != no; then
15393 # Linking always hardcodes the temporary library directory.
15394 hardcode_action_GCJ=relink
15396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397 hardcode_action_GCJ=immediate
15400 # We cannot hardcode anything, or else we can only hardcode existing
15402 hardcode_action_GCJ=unsupported
15404 echo "$as_me:15404: result: $hardcode_action_GCJ" >&5
15405 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15407 if test "$hardcode_action_GCJ" = relink; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411 test "$enable_shared" = no; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15418 echo "$as_me:15418: checking whether stripping libraries is possible" >&5
15419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15423 echo "$as_me:15423: result: yes" >&5
15424 echo "${ECHO_T}yes" >&6
15426 echo "$as_me:15426: result: no" >&5
15427 echo "${ECHO_T}no" >&6
15430 echo "$as_me:15430: checking dynamic linker characteristics" >&5
15431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15432 library_names_spec=
15433 libname_spec='lib$name'
15436 postuninstall_cmds=
15440 shlibpath_overrides_runpath=unknown
15442 dynamic_linker="$host_os ld.so"
15443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15445 need_lib_prefix=unknown
15446 hardcode_into_libs=no
15448 # when you set need_version to no, make sure it does not cause -set_version
15449 # flags to be left without arguments
15450 need_version=unknown
15455 library_names_spec='${libname}${release}.so$versuffix $libname.a'
15456 shlibpath_var=LIBPATH
15458 # AIX 3 has no versioning support, so we append a major version to the name.
15459 soname_spec='${libname}${release}.so$major'
15464 if test "$host_cpu" = ia64; then
15465 # AIX 5 supports IA64
15466 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15467 shlibpath_var=LD_LIBRARY_PATH
15469 # With GCC up to 2.95.x, collect2 would create an import file
15470 # for dependence libraries. The import file would start with
15471 # the line `#! .'. This would cause the generated library to
15472 # depend on `.', always an invalid library. This was fixed in
15473 # development snapshots of GCC prior to 3.0.
15475 aix4 | aix4.[01] | aix4.[01].*)
15476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15481 can_build_shared=no
15485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15486 # soname into executable. Probably we can add versioning support to
15487 # collect2, so additional links can be useful in future.
15488 if test "$aix_use_runtimelinking" = yes; then
15489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15490 # instead of lib<name>.a to let people know that these are not
15491 # typical AIX shared libraries.
15492 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15494 # We preserve .a as extension for shared libraries through AIX4.2
15495 # and later when we are not doing run time linking.
15496 library_names_spec='${libname}${release}.a $libname.a'
15497 soname_spec='${libname}${release}.so$major'
15499 shlibpath_var=LIBPATH
15500 deplibs_check_method=pass_all
15505 library_names_spec='$libname.ixlibrary $libname.a'
15506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15507 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'
15511 library_names_spec='${libname}.so'
15512 dynamic_linker="$host_os ld.so"
15513 shlibpath_var=LIBRARY_PATH
15519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15520 soname_spec='${libname}${release}.so$major'
15521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15525 # the default ld.so.conf also contains /usr/contrib/lib and
15526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15527 # libtool to hard-code these into programs
15530 cygwin* | mingw* | pw32*)
15531 version_type=windows
15534 case $GCC,$host_os in
15536 library_names_spec='$libname.dll.a'
15537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15538 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15539 dldir=$destdir/`dirname \$dlpath`~
15540 test -d \$dldir || mkdir -p \$dldir~
15541 $install_prog .libs/$dlname \$dldir/$dlname'
15542 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15543 dlpath=$dir/\$dldll~
15547 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
15551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15554 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15557 dynamic_linker='Win32 ld.exe'
15558 # FIXME: first we should search . and the directory the executable is in
15562 darwin* | rhapsody*)
15563 dynamic_linker="$host_os dyld"
15564 version_type=darwin
15567 # FIXME: Relying on posixy $() will cause problems for
15568 # cross-compilation, but unfortunately the echo tests do not
15569 # yet detect zsh echo's removal of \ escapes.
15570 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
15571 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15572 shlibpath_overrides_runpath=yes
15573 shlibpath_var=DYLD_LIBRARY_PATH
15580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15581 soname_spec='${libname}${release}.so$major'
15582 shlibpath_var=LD_LIBRARY_PATH
15590 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15591 version_type=freebsd-$objformat
15592 case $version_type in
15594 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15599 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15603 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15608 freebsd3.01* | freebsdelf3.01*)
15609 shlibpath_overrides_runpath=yes
15610 hardcode_into_libs=yes
15613 shlibpath_overrides_runpath=no
15614 hardcode_into_libs=yes
15623 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15624 soname_spec='${libname}${release}.so$major'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 hardcode_into_libs=yes
15629 hpux9* | hpux10* | hpux11*)
15630 # Give a soname corresponding to the major version so that dld.sl refuses to
15631 # link against other versions.
15632 dynamic_linker="$host_os dld.sl"
15636 shlibpath_var=SHLIB_PATH
15637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15638 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15639 soname_spec='${libname}${release}.sl$major'
15640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15641 postinstall_cmds='chmod 555 $lib'
15648 soname_spec='${libname}${release}.so.$major'
15649 library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15652 libsuff= shlibsuff=
15655 case $LD in # libtool.m4 will add one of these switches to LD
15656 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15657 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15658 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15659 *) libsuff= shlibsuff= libmagic=never-match;;
15663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15664 shlibpath_overrides_runpath=no
15665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15669 # No shared lib support for Linux oldld, aout, or coff.
15670 linux*oldld* | linux*aout* | linux*coff*)
15674 # This must be Linux ELF.
15679 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15680 soname_spec='${libname}${release}.so$major'
15681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=no
15684 # This implies no fast_install, which is unacceptable.
15685 # Some rework will be needed to allow for fast_install
15686 # before this can be enabled.
15687 hardcode_into_libs=yes
15689 # We used to test for /lib/ld.so.1 and disable shared libraries on
15690 # powerpc, because MkLinux only supported shared libraries with the
15691 # GNU dynamic linker. Since this was broken with cross compilers,
15692 # most powerpc-linux boxes support dynamic linking these days and
15693 # people can always --disable-shared, the test was removed, and we
15694 # assume the GNU/Linux dynamic linker is in use.
15695 dynamic_linker='GNU/Linux ld.so'
15702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15703 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15705 dynamic_linker='NetBSD (a.out) ld.so'
15707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15708 soname_spec='${libname}${release}.so$major'
15709 dynamic_linker='NetBSD ld.elf_so'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15713 hardcode_into_libs=yes
15718 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 shlibpath_overrides_runpath=yes
15725 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 file_magic_cmd=/usr/bin/file
15729 file_magic_test_file=`echo /usr/lib/libc.so.*`
15730 if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
15731 deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
15733 deplibs_check_method='file_magic OpenBSD.* shared library'
15738 libname_spec='$name'
15740 library_names_spec='$libname.dll $libname.a'
15741 dynamic_linker='OS/2 ld.exe'
15742 shlibpath_var=LIBPATH
15745 osf3* | osf4* | osf5*)
15748 soname_spec='${libname}${release}.so'
15749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15757 soname_spec='${libname}${release}.so$major'
15758 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15759 shlibpath_var=LD_LIBRARY_PATH
15766 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15767 soname_spec='${libname}${release}.so$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 shlibpath_overrides_runpath=yes
15770 hardcode_into_libs=yes
15771 # ldd complains unless libraries are executable
15772 postinstall_cmds='chmod +x $lib'
15777 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15781 if test "$with_gnu_ld" = yes; then
15787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15789 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15790 soname_spec='${libname}${release}.so$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 case $host_vendor in
15794 shlibpath_overrides_runpath=no
15799 shlibpath_overrides_runpath=no
15800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15806 if test -d /usr/nec ;then
15808 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15809 soname_spec='$libname.so.$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15817 soname_spec='${libname}${release}.so$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15825 echo "$as_me:15825: result: $dynamic_linker" >&5
15826 echo "${ECHO_T}$dynamic_linker" >&6
15827 test "$dynamic_linker" = no && can_build_shared=no
15829 if test "x$enable_dlopen" != xyes; then
15830 enable_dlopen=unknown
15831 enable_dlopen_self=unknown
15832 enable_dlopen_self_static=unknown
15839 lt_cv_dlopen="load_add_on"
15841 lt_cv_dlopen_self=yes
15844 cygwin* | mingw* | pw32*)
15845 lt_cv_dlopen="LoadLibrary"
15850 echo "$as_me:15850: checking for shl_load" >&5
15851 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15852 if test "${ac_cv_func_shl_load+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line 15856 "configure"
15857 #include "confdefs.h"
15858 /* System header to define __stub macros and hopefully few prototypes,
15859 which can conflict with char shl_load (); below. */
15860 #include <assert.h>
15861 /* Override any gcc2 internal prototype to avoid an error. */
15865 /* We use char because int might match the return type of a gcc2
15866 builtin and then its argument prototype would still apply. */
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15886 rm -f conftest.$ac_objext conftest$ac_exeext
15887 if { (eval echo "$as_me:15887: \"$ac_link\"") >&5
15888 (eval $ac_link) 2>&5
15890 echo "$as_me:15890: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
15892 { ac_try='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:15893: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:15896: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ac_cv_func_shl_load=yes
15900 echo "$as_me: failed program was:" >&5
15901 cat conftest.$ac_ext >&5
15902 ac_cv_func_shl_load=no
15904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15906 echo "$as_me:15906: result: $ac_cv_func_shl_load" >&5
15907 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15908 if test $ac_cv_func_shl_load = yes; then
15909 lt_cv_dlopen="shl_load"
15911 echo "$as_me:15911: checking for shl_load in -ldld" >&5
15912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 ac_check_lib_save_LIBS=$LIBS
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line 15919 "configure"
15920 #include "confdefs.h"
15922 /* Override any gcc2 internal prototype to avoid an error. */
15926 /* We use char because int might match the return type of a gcc2
15927 builtin and then its argument prototype would still apply. */
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:15938: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15941 echo "$as_me:15941: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -s conftest$ac_exeext'
15944 { (eval echo "$as_me:15944: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15947 echo "$as_me:15947: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_cv_lib_dld_shl_load=yes
15951 echo "$as_me: failed program was:" >&5
15952 cat conftest.$ac_ext >&5
15953 ac_cv_lib_dld_shl_load=no
15955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_check_lib_save_LIBS
15958 echo "$as_me:15958: result: $ac_cv_lib_dld_shl_load" >&5
15959 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15960 if test $ac_cv_lib_dld_shl_load = yes; then
15961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15963 echo "$as_me:15963: checking for dlopen in -ldl" >&5
15964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_check_lib_save_LIBS=$LIBS
15970 cat >conftest.$ac_ext <<_ACEOF
15971 #line 15971 "configure"
15972 #include "confdefs.h"
15974 /* Override any gcc2 internal prototype to avoid an error. */
15978 /* We use char because int might match the return type of a gcc2
15979 builtin and then its argument prototype would still apply. */
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:15990: \"$ac_link\"") >&5
15991 (eval $ac_link) 2>&5
15993 echo "$as_me:15993: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -s conftest$ac_exeext'
15996 { (eval echo "$as_me:15996: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:15999: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_cv_lib_dl_dlopen=yes
16003 echo "$as_me: failed program was:" >&5
16004 cat conftest.$ac_ext >&5
16005 ac_cv_lib_dl_dlopen=no
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008 LIBS=$ac_check_lib_save_LIBS
16010 echo "$as_me:16010: result: $ac_cv_lib_dl_dlopen" >&5
16011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16012 if test $ac_cv_lib_dl_dlopen = yes; then
16013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16015 echo "$as_me:16015: checking for dlopen" >&5
16016 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16017 if test "${ac_cv_func_dlopen+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 cat >conftest.$ac_ext <<_ACEOF
16021 #line 16021 "configure"
16022 #include "confdefs.h"
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char dlopen (); below. */
16025 #include <assert.h>
16026 /* Override any gcc2 internal prototype to avoid an error. */
16030 /* We use char because int might match the return type of a gcc2
16031 builtin and then its argument prototype would still apply. */
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (eval echo "$as_me:16052: \"$ac_link\"") >&5
16053 (eval $ac_link) 2>&5
16055 echo "$as_me:16055: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -s conftest$ac_exeext'
16058 { (eval echo "$as_me:16058: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:16061: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_cv_func_dlopen=yes
16065 echo "$as_me: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16067 ac_cv_func_dlopen=no
16069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16071 echo "$as_me:16071: result: $ac_cv_func_dlopen" >&5
16072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16073 if test $ac_cv_func_dlopen = yes; then
16074 lt_cv_dlopen="dlopen"
16076 echo "$as_me:16076: checking for dlopen in -lsvld" >&5
16077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-lsvld $LIBS"
16083 cat >conftest.$ac_ext <<_ACEOF
16084 #line 16084 "configure"
16085 #include "confdefs.h"
16087 /* Override any gcc2 internal prototype to avoid an error. */
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:16103: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>&5
16106 echo "$as_me:16106: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (eval echo "$as_me:16109: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:16112: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_lib_svld_dlopen=yes
16116 echo "$as_me: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 ac_cv_lib_svld_dlopen=no
16120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16123 echo "$as_me:16123: result: $ac_cv_lib_svld_dlopen" >&5
16124 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16125 if test $ac_cv_lib_svld_dlopen = yes; then
16126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16140 if test "x$lt_cv_dlopen" != xno; then
16146 case $lt_cv_dlopen in
16148 save_CPPFLAGS="$CPPFLAGS"
16149 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16151 save_LDFLAGS="$LDFLAGS"
16152 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16155 LIBS="$lt_cv_dlopen_libs $LIBS"
16157 echo "$as_me:16157: checking whether a program can dlopen itself" >&5
16158 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16159 if test "${lt_cv_dlopen_self+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 if test "$cross_compiling" = yes; then :
16163 lt_cv_dlopen_self=cross
16165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16166 lt_status=$lt_dlunknown
16167 cat > conftest.$ac_ext <<EOF
16168 #line 16168 "configure"
16169 #include "confdefs.h"
16178 # define LT_DLGLOBAL RTLD_GLOBAL
16181 # define LT_DLGLOBAL DL_GLOBAL
16183 # define LT_DLGLOBAL 0
16187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16188 find out it does not work in some platform. */
16189 #ifndef LT_DLLAZY_OR_NOW
16191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16194 # define LT_DLLAZY_OR_NOW DL_LAZY
16197 # define LT_DLLAZY_OR_NOW RTLD_NOW
16200 # define LT_DLLAZY_OR_NOW DL_NOW
16202 # define LT_DLLAZY_OR_NOW 0
16210 extern "C" void exit (int);
16213 void fnord() { int i=42;}
16216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16217 int status = $lt_dlunknown;
16221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16223 /* dlclose (self); */
16229 if { (eval echo "$as_me:16229: \"$ac_link\"") >&5
16230 (eval $ac_link) 2>&5
16232 echo "$as_me:16232: \$? = $ac_status" >&5
16233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16234 (./conftest; exit; ) 2>/dev/null
16236 case x$lt_status in
16237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16239 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16242 # compilation failed
16243 lt_cv_dlopen_self=no
16249 echo "$as_me:16249: result: $lt_cv_dlopen_self" >&5
16250 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16252 if test "x$lt_cv_dlopen_self" = xyes; then
16253 LDFLAGS="$LDFLAGS $link_static_flag"
16254 echo "$as_me:16254: checking whether a statically linked program can dlopen itself" >&5
16255 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16256 if test "${lt_cv_dlopen_self_static+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 if test "$cross_compiling" = yes; then :
16260 lt_cv_dlopen_self_static=cross
16262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16263 lt_status=$lt_dlunknown
16264 cat > conftest.$ac_ext <<EOF
16265 #line 16265 "configure"
16266 #include "confdefs.h"
16275 # define LT_DLGLOBAL RTLD_GLOBAL
16278 # define LT_DLGLOBAL DL_GLOBAL
16280 # define LT_DLGLOBAL 0
16284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16285 find out it does not work in some platform. */
16286 #ifndef LT_DLLAZY_OR_NOW
16288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16291 # define LT_DLLAZY_OR_NOW DL_LAZY
16294 # define LT_DLLAZY_OR_NOW RTLD_NOW
16297 # define LT_DLLAZY_OR_NOW DL_NOW
16299 # define LT_DLLAZY_OR_NOW 0
16307 extern "C" void exit (int);
16310 void fnord() { int i=42;}
16313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16314 int status = $lt_dlunknown;
16318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16319 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16320 /* dlclose (self); */
16326 if { (eval echo "$as_me:16326: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>&5
16329 echo "$as_me:16329: \$? = $ac_status" >&5
16330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16331 (./conftest; exit; ) 2>/dev/null
16333 case x$lt_status in
16334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16336 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16339 # compilation failed
16340 lt_cv_dlopen_self_static=no
16346 echo "$as_me:16346: result: $lt_cv_dlopen_self_static" >&5
16347 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16350 CPPFLAGS="$save_CPPFLAGS"
16351 LDFLAGS="$save_LDFLAGS"
16356 case $lt_cv_dlopen_self in
16357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16358 *) enable_dlopen_self=unknown ;;
16361 case $lt_cv_dlopen_self_static in
16362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16363 *) enable_dlopen_self_static=unknown ;;
16367 # The else clause should only fire when bootstrapping the
16368 # libtool distribution, otherwise you forgot to ship ltmain.sh
16369 # with your package, and you will get complaints that there are
16370 # no rules to generate ltmain.sh.
16371 if test -f "$ltmain"; then
16372 # Now quote all the things that may contain metacharacters while being
16373 # careful not to overquote the AC_SUBSTed values. We take copies of the
16374 # variables and quote the copies for generation of the libtool script.
16375 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
16376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16378 deplibs_check_method reload_flag reload_cmds need_locks \
16379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16380 lt_cv_sys_global_symbol_to_c_name_address \
16381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16382 old_postinstall_cmds old_postuninstall_cmds \
16386 lt_prog_compiler_wl_GCJ \
16387 lt_prog_compiler_pic_GCJ \
16388 lt_prog_compiler_static_GCJ \
16389 lt_prog_compiler_no_builtin_flag_GCJ \
16390 export_dynamic_flag_spec_GCJ \
16391 thread_safe_flag_spec_GCJ \
16392 whole_archive_flag_spec_GCJ \
16393 old_archive_cmds_GCJ \
16394 old_archive_from_new_cmds_GCJ \
16395 predep_objects_GCJ \
16396 postdep_objects_GCJ \
16399 compiler_lib_search_path_GCJ \
16401 archive_expsym_cmds_GCJ \
16402 postinstall_cmds_GCJ \
16403 postuninstall_cmds_GCJ \
16404 old_archive_from_expsyms_cmds_GCJ \
16405 allow_undefined_flag_GCJ \
16406 no_undefined_flag_GCJ \
16407 export_symbols_cmds_GCJ \
16408 hardcode_libdir_flag_spec_GCJ \
16409 hardcode_libdir_separator_GCJ \
16410 lt_cv_prog_compiler_c_o_GCJ \
16411 exclude_expsyms_GCJ \
16412 include_expsyms_GCJ; do
16415 old_archive_cmds_GCJ | \
16416 old_archive_from_new_cmds_GCJ | \
16417 archive_cmds_GCJ | \
16418 archive_expsym_cmds_GCJ | \
16419 old_archive_from_expsyms_cmds_GCJ | \
16420 export_symbols_cmds_GCJ | \
16421 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16422 postinstall_cmds | postuninstall_cmds | \
16423 old_postinstall_cmds | old_postuninstall_cmds | \
16424 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16425 # Double-quote double-evaled strings.
16426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16435 *'\$0 --fallback-echo"')
16436 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16442 cat <<__EOF__ >> "$cfgfile"
16443 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16447 # Shell to use when invoking shell scripts.
16450 # Whether or not to build shared libraries.
16451 build_libtool_libs=$enable_shared
16453 # Whether or not to build static libraries.
16454 build_old_libs=$enable_static
16456 # Whether or not to add -lc for building shared libraries.
16457 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16459 # Whether or not to optimize for fast installation.
16460 fast_install=$enable_fast_install
16463 host_alias=$host_alias
16466 # An echo program that does not interpret backslashes.
16471 AR_FLAGS=$lt_AR_FLAGS
16476 # A language-specific compiler.
16477 CC=$lt_compiler_GCJ
16479 # Is the compiler the GNU C compiler?
16482 # The linker used to build libraries.
16485 # Whether we need hard or soft links.
16488 # A BSD-compatible nm program.
16491 # A symbol stripping program
16494 # Used to examine libraries when file_magic_cmd begins "file"
16495 MAGIC_CMD=$MAGIC_CMD
16497 # Used on cygwin: DLL creation program.
16500 # Used on cygwin: object dumper.
16503 # Used on cygwin: assembler.
16506 # The name of the directory that contains temporary libtool files.
16509 # How to create reloadable object files.
16510 reload_flag=$lt_reload_flag
16511 reload_cmds=$lt_reload_cmds
16513 # How to pass a linker flag through the compiler.
16514 wl=$lt_lt_prog_compiler_wl_GCJ
16516 # Object file suffix (normally "o").
16517 objext="$ac_objext"
16519 # Old archive suffix (normally "a").
16522 # Executable file suffix (normally "").
16525 # Additional compiler flags for building library objects.
16526 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16529 # What is the maximum length of a command?
16530 max_cmd_len=$lt_cv_sys_max_cmd_len
16532 # Does compiler simultaneously support -c and -o options?
16533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16535 # Must we lock files when doing compilation ?
16536 need_locks=$lt_need_locks
16538 # Do we need the lib prefix for modules?
16539 need_lib_prefix=$need_lib_prefix
16541 # Do we need a version for libraries?
16542 need_version=$need_version
16544 # Whether dlopen is supported.
16545 dlopen_support=$enable_dlopen
16547 # Whether dlopen of programs is supported.
16548 dlopen_self=$enable_dlopen_self
16550 # Whether dlopen of statically linked programs is supported.
16551 dlopen_self_static=$enable_dlopen_self_static
16553 # Compiler flag to prevent dynamic linking.
16554 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16556 # Compiler flag to turn off builtin functions.
16557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16559 # Compiler flag to allow reflexive dlopens.
16560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16562 # Compiler flag to generate shared objects directly from archives.
16563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16565 # Compiler flag to generate thread-safe objects.
16566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16568 # Library versioning type.
16569 version_type=$version_type
16571 # Format of library name prefix.
16572 libname_spec=$lt_libname_spec
16574 # List of archive names. First name is the real one, the rest are links.
16575 # The last name is the one that the linker finds with -lNAME.
16576 library_names_spec=$lt_library_names_spec
16578 # The coded name of the library, if different from the real name.
16579 soname_spec=$lt_soname_spec
16581 # Commands used to build and install an old-style archive.
16583 old_archive_cmds=$lt_old_archive_cmds_GCJ
16584 old_postinstall_cmds=$lt_old_postinstall_cmds
16585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16587 # Create an old-style archive from a shared archive.
16588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16590 # Create a temporary old-style archive to link instead of a shared archive.
16591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16593 # Commands used to build and install a shared archive.
16594 archive_cmds=$lt_archive_cmds_GCJ
16595 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16596 postinstall_cmds=$lt_postinstall_cmds
16597 postuninstall_cmds=$lt_postuninstall_cmds
16599 # Commands to strip libraries.
16600 old_striplib=$lt_old_striplib
16601 striplib=$lt_striplib
16603 # Dependencies to place before the objects being linked to create a
16605 predep_objects=$lt_predep_objects_GCJ
16607 # Dependencies to place after the objects being linked to create a
16609 postdep_objects=$lt_postdep_objects_GCJ
16611 # Dependencies to place before the objects being linked to create a
16613 predeps=$lt_predeps_GCJ
16615 # Dependencies to place after the objects being linked to create a
16617 postdeps=$lt_postdeps_GCJ
16619 # The library search path used internally by the compiler when linking
16620 # a shared library.
16621 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16623 # Method to check whether dependent libraries are shared objects.
16624 deplibs_check_method=$lt_deplibs_check_method
16626 # Command to use when deplibs_check_method == file_magic.
16627 file_magic_cmd=$lt_file_magic_cmd
16629 # Flag that allows shared libraries with undefined symbols to be built.
16630 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16632 # Flag that forces no undefined symbols.
16633 no_undefined_flag=$lt_no_undefined_flag_GCJ
16635 # Commands used to finish a libtool library installation in a directory.
16636 finish_cmds=$lt_finish_cmds
16638 # Same as above, but a single script fragment to be evaled but not shown.
16639 finish_eval=$lt_finish_eval
16641 # Take the output of nm and produce a listing of raw symbols and C names.
16642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16644 # Transform the output of nm in a proper C declaration
16645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16647 # Transform the output of nm in a C name address pair
16648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16650 # This is the shared library runtime path variable.
16651 runpath_var=$runpath_var
16653 # This is the shared library path variable.
16654 shlibpath_var=$shlibpath_var
16656 # Is shlibpath searched before the hard-coded library search path?
16657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16659 # How to hardcode a shared library path into an executable.
16660 hardcode_action=$hardcode_action_GCJ
16662 # Whether we should hardcode library paths into libraries.
16663 hardcode_into_libs=$hardcode_into_libs
16665 # Flag to hardcode \$libdir into a binary during linking.
16666 # This must work even if \$libdir does not exist.
16667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16669 # Whether we need a single -rpath flag with a separated argument.
16670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16672 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16673 # resulting binary.
16674 hardcode_direct=$hardcode_direct_GCJ
16676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16677 # resulting binary.
16678 hardcode_minus_L=$hardcode_minus_L_GCJ
16680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16681 # the resulting binary.
16682 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16684 # Variables whose values should be saved in libtool wrapper scripts and
16685 # restored at relink time.
16686 variables_saved_for_relink="$variables_saved_for_relink"
16688 # Whether libtool must link a program against all its dependency libraries.
16689 link_all_deplibs=$link_all_deplibs_GCJ
16691 # Compile-time system search path for libraries
16692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16694 # Run-time system search path for libraries
16695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16697 # Fix the shell variable \$srcfile for the compiler.
16698 fix_srcfile_path="$fix_srcfile_path_GCJ"
16700 # Set to yes if exported symbols are required.
16701 always_export_symbols=$always_export_symbols_GCJ
16703 # The commands to list exported symbols.
16704 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16706 # The commands to extract the exported symbol list from a shared archive.
16707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16709 # Symbols that should not be listed in the preloaded symbols.
16710 exclude_expsyms=$lt_exclude_expsyms_GCJ
16712 # Symbols that must always be exported.
16713 include_expsyms=$lt_include_expsyms_GCJ
16715 # ### END LIBTOOL TAG CONFIG: $tagname
16720 # If there is no Makefile yet, we rely on a make rule to execute
16721 # `config.status --recheck' to rerun these tests and create the
16722 # libtool script then.
16723 test -f Makefile && make "$ltmain"
16727 ac_cpp='$CPP $CPPFLAGS'
16728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16737 { { echo "$as_me:16737: error: Unsupported tag name: $tagname" >&5
16738 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
16739 { (exit 1); exit 1; }; }
16743 # Append the new tag name to the list of available tags.
16744 available_tags="$available_tags $tagname"
16749 # Now substitute the updated list of available tags.
16750 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16751 mv "${ofile}T" "$ofile"
16755 { { echo "$as_me:16755: error: unable to update list of available tagged configurations." >&5
16756 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
16757 { (exit 1); exit 1; }; }
16761 # This can be used to rebuild libtool when needed
16762 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
16764 # Always use our own libtool.
16765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16767 # Prevent multiple expansion
16769 echo "$as_me:16769: checking whether ln -s works" >&5
16770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
16772 if test "$LN_S" = "ln -s"; then
16773 echo "$as_me:16773: result: yes" >&5
16774 echo "${ECHO_T}yes" >&6
16776 echo "$as_me:16776: result: no, using $LN_S" >&5
16777 echo "${ECHO_T}no, using $LN_S" >&6
16780 ############################################################################
16781 # Checks for libraries.
16782 ############################################################################
16784 echo "$as_me:16784: checking for sqrt in -lm" >&5
16785 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
16786 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 ac_check_lib_save_LIBS=$LIBS
16791 cat >conftest.$ac_ext <<_ACEOF
16792 #line 16792 "configure"
16793 #include "confdefs.h"
16795 /* Override any gcc2 internal prototype to avoid an error. */
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:16811: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>&5
16814 echo "$as_me:16814: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:16817: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:16820: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_lib_m_sqrt=yes
16824 echo "$as_me: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 ac_cv_lib_m_sqrt=no
16828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16829 LIBS=$ac_check_lib_save_LIBS
16831 echo "$as_me:16831: result: $ac_cv_lib_m_sqrt" >&5
16832 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
16833 if test $ac_cv_lib_m_sqrt = yes; then
16834 cat >>confdefs.h <<EOF
16835 #define HAVE_LIBM 1
16841 { { echo "$as_me:16841: error: No math library found" >&5
16842 echo "$as_me: error: No math library found" >&2;}
16843 { (exit 1); exit 1; }; }
16847 # IBM provides a MASS library with vectorized and optimized math stuff,
16848 # and an xlopt library which partly overlaps this. They must come before
16849 # libm in the link list, thus the test goes after that for libm!
16850 if test "${host_vendor}" = "ibm"; then
16852 echo "$as_me:16852: checking for main in -lxlopt" >&5
16853 echo $ECHO_N "checking for main in -lxlopt... $ECHO_C" >&6
16854 if test "${ac_cv_lib_xlopt_main+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-lxlopt $LIBS"
16859 cat >conftest.$ac_ext <<_ACEOF
16860 #line 16860 "configure"
16861 #include "confdefs.h"
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:16872: \"$ac_link\"") >&5
16873 (eval $ac_link) 2>&5
16875 echo "$as_me:16875: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:16878: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:16881: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 ac_cv_lib_xlopt_main=yes
16885 echo "$as_me: failed program was:" >&5
16886 cat conftest.$ac_ext >&5
16887 ac_cv_lib_xlopt_main=no
16889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16892 echo "$as_me:16892: result: $ac_cv_lib_xlopt_main" >&5
16893 echo "${ECHO_T}$ac_cv_lib_xlopt_main" >&6
16894 if test $ac_cv_lib_xlopt_main = yes; then
16895 cat >>confdefs.h <<EOF
16896 #define HAVE_LIBXLOPT 1
16899 LIBS="-lxlopt $LIBS"
16903 echo "$as_me:16903: checking for main in -lmass" >&5
16904 echo $ECHO_N "checking for main in -lmass... $ECHO_C" >&6
16905 if test "${ac_cv_lib_mass_main+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-lmass $LIBS"
16910 cat >conftest.$ac_ext <<_ACEOF
16911 #line 16911 "configure"
16912 #include "confdefs.h"
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:16923: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>&5
16926 echo "$as_me:16926: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:16929: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:16932: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_lib_mass_main=yes
16936 echo "$as_me: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 ac_cv_lib_mass_main=no
16940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16943 echo "$as_me:16943: result: $ac_cv_lib_mass_main" >&5
16944 echo "${ECHO_T}$ac_cv_lib_mass_main" >&6
16945 if test $ac_cv_lib_mass_main = yes; then
16946 cat >>confdefs.h <<EOF
16947 #define HAVE_LIBMASS 1
16950 LIBS="-lmass $LIBS"
16957 # first check for a power4 lib, then power3, power2.
16958 echo "$as_me:16958: checking for library containing vsrsqrt" >&5
16959 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
16960 if test "${ac_cv_search_vsrsqrt+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 ac_func_search_save_LIBS=$LIBS
16964 ac_cv_search_vsrsqrt=no
16965 cat >conftest.$ac_ext <<_ACEOF
16966 #line 16966 "configure"
16967 #include "confdefs.h"
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:16985: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>&5
16988 echo "$as_me:16988: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:16991: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_search_vsrsqrt="none required"
16998 echo "$as_me: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17002 if test "$ac_cv_search_vsrsqrt" = no; then
17003 for ac_lib in massvp4 massvp3 massvp2 massv; do
17004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17005 cat >conftest.$ac_ext <<_ACEOF
17006 #line 17006 "configure"
17007 #include "confdefs.h"
17009 /* Override any gcc2 internal prototype to avoid an error. */
17013 /* We use char because int might match the return type of a gcc2
17014 builtin and then its argument prototype would still apply. */
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (eval echo "$as_me:17025: \"$ac_link\"") >&5
17026 (eval $ac_link) 2>&5
17028 echo "$as_me:17028: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (eval echo "$as_me:17031: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:17034: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_search_vsrsqrt="-l$ac_lib"
17039 echo "$as_me: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17045 LIBS=$ac_func_search_save_LIBS
17047 echo "$as_me:17047: result: $ac_cv_search_vsrsqrt" >&5
17048 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17049 if test "$ac_cv_search_vsrsqrt" != no; then
17050 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17055 echo "$as_me:17055: checking for library containing vsrsqrt" >&5
17056 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
17057 if test "${ac_cv_search_vsrsqrt+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 ac_func_search_save_LIBS=$LIBS
17061 ac_cv_search_vsrsqrt=no
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line 17063 "configure"
17064 #include "confdefs.h"
17066 /* Override any gcc2 internal prototype to avoid an error. */
17070 /* We use char because int might match the return type of a gcc2
17071 builtin and then its argument prototype would still apply. */
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (eval echo "$as_me:17082: \"$ac_link\"") >&5
17083 (eval $ac_link) 2>&5
17085 echo "$as_me:17085: \$? = $ac_status" >&5
17086 (exit $ac_status); } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (eval echo "$as_me:17088: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:17091: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_cv_search_vsrsqrt="none required"
17095 echo "$as_me: failed program was:" >&5
17096 cat conftest.$ac_ext >&5
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17099 if test "$ac_cv_search_vsrsqrt" = no; then
17100 for ac_lib in massvp3 massvp2 massv; do
17101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17102 cat >conftest.$ac_ext <<_ACEOF
17103 #line 17103 "configure"
17104 #include "confdefs.h"
17106 /* Override any gcc2 internal prototype to avoid an error. */
17110 /* We use char because int might match the return type of a gcc2
17111 builtin and then its argument prototype would still apply. */
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:17122: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -s conftest$ac_exeext'
17128 { (eval echo "$as_me:17128: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:17131: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_search_vsrsqrt="-l$ac_lib"
17136 echo "$as_me: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17142 LIBS=$ac_func_search_save_LIBS
17144 echo "$as_me:17144: result: $ac_cv_search_vsrsqrt" >&5
17145 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17146 if test "$ac_cv_search_vsrsqrt" != no; then
17147 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17152 echo "$as_me:17152: checking for library containing vsrsqrt" >&5
17153 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
17154 if test "${ac_cv_search_vsrsqrt+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 ac_func_search_save_LIBS=$LIBS
17158 ac_cv_search_vsrsqrt=no
17159 cat >conftest.$ac_ext <<_ACEOF
17160 #line 17160 "configure"
17161 #include "confdefs.h"
17163 /* Override any gcc2 internal prototype to avoid an error. */
17167 /* We use char because int might match the return type of a gcc2
17168 builtin and then its argument prototype would still apply. */
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (eval echo "$as_me:17179: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17182 echo "$as_me:17182: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:17185: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:17188: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_search_vsrsqrt="none required"
17192 echo "$as_me: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17196 if test "$ac_cv_search_vsrsqrt" = no; then
17197 for ac_lib in massvp2 massv; do
17198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17199 cat >conftest.$ac_ext <<_ACEOF
17200 #line 17200 "configure"
17201 #include "confdefs.h"
17203 /* Override any gcc2 internal prototype to avoid an error. */
17207 /* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:17219: \"$ac_link\"") >&5
17220 (eval $ac_link) 2>&5
17222 echo "$as_me:17222: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (eval echo "$as_me:17225: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:17228: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_cv_search_vsrsqrt="-l$ac_lib"
17233 echo "$as_me: failed program was:" >&5
17234 cat conftest.$ac_ext >&5
17236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17239 LIBS=$ac_func_search_save_LIBS
17241 echo "$as_me:17241: result: $ac_cv_search_vsrsqrt" >&5
17242 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17243 if test "$ac_cv_search_vsrsqrt" != no; then
17244 test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17249 echo "$as_me:17249: checking for vsrsqrt in -lmassv" >&5
17250 echo $ECHO_N "checking for vsrsqrt in -lmassv... $ECHO_C" >&6
17251 if test "${ac_cv_lib_massv_vsrsqrt+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 ac_check_lib_save_LIBS=$LIBS
17255 LIBS="-lmassv $LIBS"
17256 cat >conftest.$ac_ext <<_ACEOF
17257 #line 17257 "configure"
17258 #include "confdefs.h"
17260 /* Override any gcc2 internal prototype to avoid an error. */
17264 /* We use char because int might match the return type of a gcc2
17265 builtin and then its argument prototype would still apply. */
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (eval echo "$as_me:17276: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>&5
17279 echo "$as_me:17279: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:17282: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:17285: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_lib_massv_vsrsqrt=yes
17289 echo "$as_me: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17291 ac_cv_lib_massv_vsrsqrt=no
17293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 echo "$as_me:17296: result: $ac_cv_lib_massv_vsrsqrt" >&5
17297 echo "${ECHO_T}$ac_cv_lib_massv_vsrsqrt" >&6
17298 if test $ac_cv_lib_massv_vsrsqrt = yes; then
17299 vectmass=yes LIBS="$LIBS -lmassv"
17303 if test "$vectmass" = "yes"; then
17305 cat >>confdefs.h <<\EOF
17306 #define HAVE_LIBMASSV_ANY
17309 if test "$enable_vectorized_recip" = "not_selected"; then
17310 { echo "$as_me:17310: vector MASS lib present - vectorizing 1/x inner loops" >&5
17311 echo "$as_me: vector MASS lib present - vectorizing 1/x inner loops" >&6;}
17312 enable_vectorized_recip="yes"
17314 if test "$enable_vectorized_sqrt" = "not_selected"; then
17315 { echo "$as_me:17315: vector MASS lib present - vectorizing 1/sqrt inner loops" >&5
17316 echo "$as_me: vector MASS lib present - vectorizing 1/sqrt inner loops" >&6;}
17317 enable_vectorized_sqrt="yes"
17320 echo "******************************************************************************"
17321 echo "*Didn't find the IBM MASS library. It's not necessary, but can provide 20% *"
17322 echo "*performance improvement by loop vectorization. Add the library search path *"
17323 echo "*with -L in the LDFLAGS variable. If you cannot find MASS, download it from *"
17324 echo "*http://www.research.ibm.com/mass *"
17325 echo "******************************************************************************"
17329 if test "$with_fftw" = "yes"; then
17330 if test "$enable_float" = "yes"; then
17336 if test -z "$ac_fftw_firstname"; then
17338 sizeof_real=$sizeof_real
17339 if test $sizeof_real = 8; then
17349 # check header doesn't work, since we must use mpicc to get includes,
17350 # we cant trust cpp.
17351 echo "$as_me:17351: checking for fftw.h" >&5
17352 echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17354 #line 17354 "configure"
17355 #include "confdefs.h"
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:17366: \"$ac_compile\"") >&5
17367 (eval $ac_compile) 2>&5
17369 echo "$as_me:17369: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:17372: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:17375: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17379 echo "$as_me:17379: result: yes" >&5
17380 echo "${ECHO_T}yes" >&6
17383 echo "$as_me: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 echo "$as_me:17385: result: no" >&5
17386 echo "${ECHO_T}no" >&6
17388 rm -f conftest.$ac_objext conftest.$ac_ext
17390 if test -n "$fftwname"; then
17391 # we cannot run the code since an MPI program might not be allowed
17392 # on a login node of a supercomputer
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line 17394 "configure"
17395 #include "confdefs.h"
17396 #include <$fftwname.h>
17400 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17405 rm -f conftest.$ac_objext
17406 if { (eval echo "$as_me:17406: \"$ac_compile\"") >&5
17407 (eval $ac_compile) 2>&5
17409 echo "$as_me:17409: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -s conftest.$ac_objext'
17412 { (eval echo "$as_me:17412: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:17415: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17419 echo "$as_me: failed program was:" >&5
17420 cat conftest.$ac_ext >&5
17423 rm -f conftest.$ac_objext conftest.$ac_ext
17428 if test "$ok" != "yes"; then
17429 xfftwname=${fftwcheckprefix}${fftwname}
17430 echo "$as_me:17430: checking for $xfftwname.h" >&5
17431 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
17432 cat >conftest.$ac_ext <<_ACEOF
17433 #line 17433 "configure"
17434 #include "confdefs.h"
17435 #include <$xfftwname.h>
17444 rm -f conftest.$ac_objext
17445 if { (eval echo "$as_me:17445: \"$ac_compile\"") >&5
17446 (eval $ac_compile) 2>&5
17448 echo "$as_me:17448: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -s conftest.$ac_objext'
17451 { (eval echo "$as_me:17451: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17454 echo "$as_me:17454: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 echo "$as_me:17456: result: yes" >&5
17457 echo "${ECHO_T}yes" >&6
17459 echo "$as_me: failed program was:" >&5
17460 cat conftest.$ac_ext >&5
17462 echo "$as_me:17462: result: no" >&5
17463 echo "${ECHO_T}no" >&6
17464 { { echo "$as_me:17464: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17465 Do you have $prec precision FFTW installed? If you are using packages,
17466 note that you also need fftw-devel to compile GROMACS. You can find the
17467 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17468 If you compiled FFTW yourself:
17469 Note that the default FFTW setup is double precision. Change the FFTW
17470 configuration to single with --enable-float. If you want MPI support,
17471 use --enable-mpi. It is a good idea to install both single & double.
17472 If your sysadm doesn't want to install it you can do it to a location
17473 in your home directory and provide the correct paths in the CPPFLAGS
17474 and LDFLAGS environment variables before running configure.
17475 That is also necessary to do if your compiler doesn't search
17476 /usr/local/include and /usr/local/lib by default.
17477 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17478 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17479 Do you have $prec precision FFTW installed? If you are using packages,
17480 note that you also need fftw-devel to compile GROMACS. You can find the
17481 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17482 If you compiled FFTW yourself:
17483 Note that the default FFTW setup is double precision. Change the FFTW
17484 configuration to single with --enable-float. If you want MPI support,
17485 use --enable-mpi. It is a good idea to install both single & double.
17486 If your sysadm doesn't want to install it you can do it to a location
17487 in your home directory and provide the correct paths in the CPPFLAGS
17488 and LDFLAGS environment variables before running configure.
17489 That is also necessary to do if your compiler doesn't search
17490 /usr/local/include and /usr/local/lib by default.
17491 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17492 { (exit 1); exit 1; }; }
17495 rm -f conftest.$ac_objext conftest.$ac_ext
17496 cat >conftest.$ac_ext <<_ACEOF
17497 #line 17497 "configure"
17498 #include "confdefs.h"
17499 #include <$xfftwname.h>
17503 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:17509: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>&5
17512 echo "$as_me:17512: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:17515: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:17518: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17521 fftwname=$xfftwname
17522 usedprefix=$fftwcheckprefix
17525 echo "$as_me: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17528 { { echo "$as_me:17528: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17529 Do you have $prec precision FFTW installed? If you are using packages,
17530 note that you also need fftw-devel to compile GROMACS. You can find the
17531 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17532 If you compiled FFTW yourself:
17533 Note that the default FFTW setup is double precision. Change the FFTW
17534 configuration to single with --enable-float. If you want MPI support,
17535 use --enable-mpi. It is a good idea to install both single & double.
17536 If your sysadm doesn't want to install it you can do it to a location
17537 in your home directory and provide the correct paths in the CPPFLAGS
17538 and LDFLAGS environment variables before running configure.
17539 That is also necessary to do if your compiler doesn't search
17540 /usr/local/include and /usr/local/lib by default.
17541 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17542 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17543 Do you have $prec precision FFTW installed? If you are using packages,
17544 note that you also need fftw-devel to compile GROMACS. You can find the
17545 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17546 If you compiled FFTW yourself:
17547 Note that the default FFTW setup is double precision. Change the FFTW
17548 configuration to single with --enable-float. If you want MPI support,
17549 use --enable-mpi. It is a good idea to install both single & double.
17550 If your sysadm doesn't want to install it you can do it to a location
17551 in your home directory and provide the correct paths in the CPPFLAGS
17552 and LDFLAGS environment variables before running configure.
17553 That is also necessary to do if your compiler doesn't search
17554 /usr/local/include and /usr/local/lib by default.
17555 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17556 { (exit 1); exit 1; }; }
17558 rm -f conftest.$ac_objext conftest.$ac_ext
17561 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
17562 echo "$as_me:17562: checking for main in -l$fftwname" >&5
17563 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
17564 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-l$fftwname $LIBS"
17569 cat >conftest.$ac_ext <<_ACEOF
17570 #line 17570 "configure"
17571 #include "confdefs.h"
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (eval echo "$as_me:17582: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17585 echo "$as_me:17585: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (eval echo "$as_me:17588: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:17591: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 eval "$ac_ac_Lib=yes"
17595 echo "$as_me: failed program was:" >&5
17596 cat conftest.$ac_ext >&5
17597 eval "$ac_ac_Lib=no"
17599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17600 LIBS=$ac_check_lib_save_LIBS
17602 echo "$as_me:17602: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
17603 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
17604 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
17605 cat >>confdefs.h <<EOF
17606 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
17609 LIBS="-l$fftwname $LIBS"
17612 { { echo "$as_me:17612: error: Can't find a library to match the $fftwname header" >&5
17613 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
17614 { (exit 1); exit 1; }; }
17617 ac_fftw_savedprefix=$usedprefix
17618 ac_fftw_firstname=$fftwname
17622 fftwname=${ac_fftw_savedprefix}fftw
17623 echo "$as_me:17623: checking for $fftwname.h" >&5
17624 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17628 #include <$fftwname.h>
17637 rm -f conftest.$ac_objext
17638 if { (eval echo "$as_me:17638: \"$ac_compile\"") >&5
17639 (eval $ac_compile) 2>&5
17641 echo "$as_me:17641: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (eval echo "$as_me:17644: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:17647: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 echo "$as_me:17649: result: yes" >&5
17650 echo "${ECHO_T}yes" >&6
17651 LIBS="-l$fftwname $LIBS"
17652 cat >conftest.$ac_ext <<_ACEOF
17653 #line 17653 "configure"
17654 #include "confdefs.h"
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:17665: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>&5
17668 echo "$as_me:17668: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:17671: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:17674: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17678 echo "$as_me: failed program was:" >&5
17679 cat conftest.$ac_ext >&5
17681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17683 echo "$as_me: failed program was:" >&5
17684 cat conftest.$ac_ext >&5
17686 echo "$as_me:17686: result: no" >&5
17687 echo "${ECHO_T}no" >&6
17688 { { echo "$as_me:17688: error: Cant find $fftwname.h header. Make sure all your
17689 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
17690 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
17691 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
17692 { (exit 1); exit 1; }; }
17695 rm -f conftest.$ac_objext conftest.$ac_ext
17699 if test -z "$ac_fftw_firstname"; then
17701 sizeof_real=$sizeof_real
17702 if test $sizeof_real = 8; then
17712 # check header doesn't work, since we must use mpicc to get includes,
17713 # we cant trust cpp.
17714 echo "$as_me:17714: checking for rfftw.h" >&5
17715 echo $ECHO_N "checking for rfftw.h... $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17717 #line 17717 "configure"
17718 #include "confdefs.h"
17728 rm -f conftest.$ac_objext
17729 if { (eval echo "$as_me:17729: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>&5
17732 echo "$as_me:17732: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -s conftest.$ac_objext'
17735 { (eval echo "$as_me:17735: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:17738: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17742 echo "$as_me:17742: result: yes" >&5
17743 echo "${ECHO_T}yes" >&6
17746 echo "$as_me: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 echo "$as_me:17748: result: no" >&5
17749 echo "${ECHO_T}no" >&6
17751 rm -f conftest.$ac_objext conftest.$ac_ext
17753 if test -n "$fftwname"; then
17754 # we cannot run the code since an MPI program might not be allowed
17755 # on a login node of a supercomputer
17756 cat >conftest.$ac_ext <<_ACEOF
17757 #line 17757 "configure"
17758 #include "confdefs.h"
17759 #include <$fftwname.h>
17763 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17768 rm -f conftest.$ac_objext
17769 if { (eval echo "$as_me:17769: \"$ac_compile\"") >&5
17770 (eval $ac_compile) 2>&5
17772 echo "$as_me:17772: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -s conftest.$ac_objext'
17775 { (eval echo "$as_me:17775: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:17778: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17782 echo "$as_me: failed program was:" >&5
17783 cat conftest.$ac_ext >&5
17786 rm -f conftest.$ac_objext conftest.$ac_ext
17791 if test "$ok" != "yes"; then
17792 xfftwname=${fftwcheckprefix}${fftwname}
17793 echo "$as_me:17793: checking for $xfftwname.h" >&5
17794 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
17795 cat >conftest.$ac_ext <<_ACEOF
17796 #line 17796 "configure"
17797 #include "confdefs.h"
17798 #include <$xfftwname.h>
17807 rm -f conftest.$ac_objext
17808 if { (eval echo "$as_me:17808: \"$ac_compile\"") >&5
17809 (eval $ac_compile) 2>&5
17811 echo "$as_me:17811: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -s conftest.$ac_objext'
17814 { (eval echo "$as_me:17814: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:17817: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 echo "$as_me:17819: result: yes" >&5
17820 echo "${ECHO_T}yes" >&6
17822 echo "$as_me: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17825 echo "$as_me:17825: result: no" >&5
17826 echo "${ECHO_T}no" >&6
17827 { { echo "$as_me:17827: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17828 Do you have $prec precision FFTW installed? If you are using packages,
17829 note that you also need fftw-devel to compile GROMACS. You can find the
17830 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17831 If you compiled FFTW yourself:
17832 Note that the default FFTW setup is double precision. Change the FFTW
17833 configuration to single with --enable-float. If you want MPI support,
17834 use --enable-mpi. It is a good idea to install both single & double.
17835 If your sysadm doesn't want to install it you can do it to a location
17836 in your home directory and provide the correct paths in the CPPFLAGS
17837 and LDFLAGS environment variables before running configure.
17838 That is also necessary to do if your compiler doesn't search
17839 /usr/local/include and /usr/local/lib by default.
17840 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17841 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17842 Do you have $prec precision FFTW installed? If you are using packages,
17843 note that you also need fftw-devel to compile GROMACS. You can find the
17844 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17845 If you compiled FFTW yourself:
17846 Note that the default FFTW setup is double precision. Change the FFTW
17847 configuration to single with --enable-float. If you want MPI support,
17848 use --enable-mpi. It is a good idea to install both single & double.
17849 If your sysadm doesn't want to install it you can do it to a location
17850 in your home directory and provide the correct paths in the CPPFLAGS
17851 and LDFLAGS environment variables before running configure.
17852 That is also necessary to do if your compiler doesn't search
17853 /usr/local/include and /usr/local/lib by default.
17854 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17855 { (exit 1); exit 1; }; }
17858 rm -f conftest.$ac_objext conftest.$ac_ext
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line 17860 "configure"
17861 #include "confdefs.h"
17862 #include <$xfftwname.h>
17866 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:17872: \"$ac_compile\"") >&5
17873 (eval $ac_compile) 2>&5
17875 echo "$as_me:17875: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:17878: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:17881: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17884 fftwname=$xfftwname
17885 usedprefix=$fftwcheckprefix
17888 echo "$as_me: failed program was:" >&5
17889 cat conftest.$ac_ext >&5
17891 { { echo "$as_me:17891: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17892 Do you have $prec precision FFTW installed? If you are using packages,
17893 note that you also need fftw-devel to compile GROMACS. You can find the
17894 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17895 If you compiled FFTW yourself:
17896 Note that the default FFTW setup is double precision. Change the FFTW
17897 configuration to single with --enable-float. If you want MPI support,
17898 use --enable-mpi. It is a good idea to install both single & double.
17899 If your sysadm doesn't want to install it you can do it to a location
17900 in your home directory and provide the correct paths in the CPPFLAGS
17901 and LDFLAGS environment variables before running configure.
17902 That is also necessary to do if your compiler doesn't search
17903 /usr/local/include and /usr/local/lib by default.
17904 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17905 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17906 Do you have $prec precision FFTW installed? If you are using packages,
17907 note that you also need fftw-devel to compile GROMACS. You can find the
17908 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17909 If you compiled FFTW yourself:
17910 Note that the default FFTW setup is double precision. Change the FFTW
17911 configuration to single with --enable-float. If you want MPI support,
17912 use --enable-mpi. It is a good idea to install both single & double.
17913 If your sysadm doesn't want to install it you can do it to a location
17914 in your home directory and provide the correct paths in the CPPFLAGS
17915 and LDFLAGS environment variables before running configure.
17916 That is also necessary to do if your compiler doesn't search
17917 /usr/local/include and /usr/local/lib by default.
17918 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17919 { (exit 1); exit 1; }; }
17921 rm -f conftest.$ac_objext conftest.$ac_ext
17924 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
17925 echo "$as_me:17925: checking for main in -l$fftwname" >&5
17926 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
17927 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-l$fftwname $LIBS"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 #line 17933 "configure"
17934 #include "confdefs.h"
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:17945: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>&5
17948 echo "$as_me:17948: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:17951: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:17954: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 eval "$ac_ac_Lib=yes"
17958 echo "$as_me: failed program was:" >&5
17959 cat conftest.$ac_ext >&5
17960 eval "$ac_ac_Lib=no"
17962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 echo "$as_me:17965: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
17966 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
17967 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
17968 cat >>confdefs.h <<EOF
17969 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
17972 LIBS="-l$fftwname $LIBS"
17975 { { echo "$as_me:17975: error: Can't find a library to match the $fftwname header" >&5
17976 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
17977 { (exit 1); exit 1; }; }
17980 ac_fftw_savedprefix=$usedprefix
17981 ac_fftw_firstname=$fftwname
17985 fftwname=${ac_fftw_savedprefix}rfftw
17986 echo "$as_me:17986: checking for $fftwname.h" >&5
17987 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
17988 cat >conftest.$ac_ext <<_ACEOF
17989 #line 17989 "configure"
17990 #include "confdefs.h"
17991 #include <$fftwname.h>
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:18001: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>&5
18004 echo "$as_me:18004: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (eval echo "$as_me:18007: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18010 echo "$as_me:18010: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 echo "$as_me:18012: result: yes" >&5
18013 echo "${ECHO_T}yes" >&6
18014 LIBS="-l$fftwname $LIBS"
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:18028: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>&5
18031 echo "$as_me:18031: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -s conftest$ac_exeext'
18034 { (eval echo "$as_me:18034: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:18037: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18041 echo "$as_me: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18046 echo "$as_me: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18049 echo "$as_me:18049: result: no" >&5
18050 echo "${ECHO_T}no" >&6
18051 { { echo "$as_me:18051: error: Cant find $fftwname.h header. Make sure all your
18052 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18053 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18054 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18055 { (exit 1); exit 1; }; }
18058 rm -f conftest.$ac_objext conftest.$ac_ext
18062 if test "$enable_mpi" = "yes"; then
18064 if test -z "$ac_fftw_firstname"; then
18066 sizeof_real=$sizeof_real
18067 if test $sizeof_real = 8; then
18077 # check header doesn't work, since we must use mpicc to get includes,
18078 # we cant trust cpp.
18079 echo "$as_me:18079: checking for fftw_mpi.h" >&5
18080 echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6
18081 cat >conftest.$ac_ext <<_ACEOF
18082 #line 18082 "configure"
18083 #include "confdefs.h"
18084 #include <fftw_mpi.h>
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:18094: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>&5
18097 echo "$as_me:18097: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -s conftest.$ac_objext'
18100 { (eval echo "$as_me:18100: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:18103: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18107 echo "$as_me:18107: result: yes" >&5
18108 echo "${ECHO_T}yes" >&6
18111 echo "$as_me: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 echo "$as_me:18113: result: no" >&5
18114 echo "${ECHO_T}no" >&6
18116 rm -f conftest.$ac_objext conftest.$ac_ext
18118 if test -n "$fftwname"; then
18119 # we cannot run the code since an MPI program might not be allowed
18120 # on a login node of a supercomputer
18121 cat >conftest.$ac_ext <<_ACEOF
18122 #line 18122 "configure"
18123 #include "confdefs.h"
18124 #include <$fftwname.h>
18128 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18133 rm -f conftest.$ac_objext
18134 if { (eval echo "$as_me:18134: \"$ac_compile\"") >&5
18135 (eval $ac_compile) 2>&5
18137 echo "$as_me:18137: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -s conftest.$ac_objext'
18140 { (eval echo "$as_me:18140: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:18143: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18147 echo "$as_me: failed program was:" >&5
18148 cat conftest.$ac_ext >&5
18151 rm -f conftest.$ac_objext conftest.$ac_ext
18156 if test "$ok" != "yes"; then
18157 xfftwname=${fftwcheckprefix}${fftwname}
18158 echo "$as_me:18158: checking for $xfftwname.h" >&5
18159 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18161 #line 18161 "configure"
18162 #include "confdefs.h"
18163 #include <$xfftwname.h>
18172 rm -f conftest.$ac_objext
18173 if { (eval echo "$as_me:18173: \"$ac_compile\"") >&5
18174 (eval $ac_compile) 2>&5
18176 echo "$as_me:18176: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:18179: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18182 echo "$as_me:18182: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 echo "$as_me:18184: result: yes" >&5
18185 echo "${ECHO_T}yes" >&6
18187 echo "$as_me: failed program was:" >&5
18188 cat conftest.$ac_ext >&5
18190 echo "$as_me:18190: result: no" >&5
18191 echo "${ECHO_T}no" >&6
18192 { { echo "$as_me:18192: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18193 Do you have $prec precision FFTW installed? If you are using packages,
18194 note that you also need fftw-devel to compile GROMACS. You can find the
18195 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18196 If you compiled FFTW yourself:
18197 Note that the default FFTW setup is double precision. Change the FFTW
18198 configuration to single with --enable-float. If you want MPI support,
18199 use --enable-mpi. It is a good idea to install both single & double.
18200 If your sysadm doesn't want to install it you can do it to a location
18201 in your home directory and provide the correct paths in the CPPFLAGS
18202 and LDFLAGS environment variables before running configure.
18203 That is also necessary to do if your compiler doesn't search
18204 /usr/local/include and /usr/local/lib by default.
18205 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18206 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18207 Do you have $prec precision FFTW installed? If you are using packages,
18208 note that you also need fftw-devel to compile GROMACS. You can find the
18209 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18210 If you compiled FFTW yourself:
18211 Note that the default FFTW setup is double precision. Change the FFTW
18212 configuration to single with --enable-float. If you want MPI support,
18213 use --enable-mpi. It is a good idea to install both single & double.
18214 If your sysadm doesn't want to install it you can do it to a location
18215 in your home directory and provide the correct paths in the CPPFLAGS
18216 and LDFLAGS environment variables before running configure.
18217 That is also necessary to do if your compiler doesn't search
18218 /usr/local/include and /usr/local/lib by default.
18219 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18220 { (exit 1); exit 1; }; }
18223 rm -f conftest.$ac_objext conftest.$ac_ext
18224 cat >conftest.$ac_ext <<_ACEOF
18225 #line 18225 "configure"
18226 #include "confdefs.h"
18227 #include <$xfftwname.h>
18231 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18236 rm -f conftest.$ac_objext
18237 if { (eval echo "$as_me:18237: \"$ac_compile\"") >&5
18238 (eval $ac_compile) 2>&5
18240 echo "$as_me:18240: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:18243: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:18246: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18249 fftwname=$xfftwname
18250 usedprefix=$fftwcheckprefix
18253 echo "$as_me: failed program was:" >&5
18254 cat conftest.$ac_ext >&5
18256 { { echo "$as_me:18256: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18257 Do you have $prec precision FFTW installed? If you are using packages,
18258 note that you also need fftw-devel to compile GROMACS. You can find the
18259 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18260 If you compiled FFTW yourself:
18261 Note that the default FFTW setup is double precision. Change the FFTW
18262 configuration to single with --enable-float. If you want MPI support,
18263 use --enable-mpi. It is a good idea to install both single & double.
18264 If your sysadm doesn't want to install it you can do it to a location
18265 in your home directory and provide the correct paths in the CPPFLAGS
18266 and LDFLAGS environment variables before running configure.
18267 That is also necessary to do if your compiler doesn't search
18268 /usr/local/include and /usr/local/lib by default.
18269 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18270 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18271 Do you have $prec precision FFTW installed? If you are using packages,
18272 note that you also need fftw-devel to compile GROMACS. You can find the
18273 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18274 If you compiled FFTW yourself:
18275 Note that the default FFTW setup is double precision. Change the FFTW
18276 configuration to single with --enable-float. If you want MPI support,
18277 use --enable-mpi. It is a good idea to install both single & double.
18278 If your sysadm doesn't want to install it you can do it to a location
18279 in your home directory and provide the correct paths in the CPPFLAGS
18280 and LDFLAGS environment variables before running configure.
18281 That is also necessary to do if your compiler doesn't search
18282 /usr/local/include and /usr/local/lib by default.
18283 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18284 { (exit 1); exit 1; }; }
18286 rm -f conftest.$ac_objext conftest.$ac_ext
18289 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
18290 echo "$as_me:18290: checking for main in -l$fftwname" >&5
18291 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
18292 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-l$fftwname $LIBS"
18297 cat >conftest.$ac_ext <<_ACEOF
18298 #line 18298 "configure"
18299 #include "confdefs.h"
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (eval echo "$as_me:18310: \"$ac_link\"") >&5
18311 (eval $ac_link) 2>&5
18313 echo "$as_me:18313: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:18316: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:18319: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 eval "$ac_ac_Lib=yes"
18323 echo "$as_me: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18325 eval "$ac_ac_Lib=no"
18327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18330 echo "$as_me:18330: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
18331 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
18332 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
18333 cat >>confdefs.h <<EOF
18334 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
18337 LIBS="-l$fftwname $LIBS"
18340 { { echo "$as_me:18340: error: Can't find a library to match the $fftwname header" >&5
18341 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
18342 { (exit 1); exit 1; }; }
18345 ac_fftw_savedprefix=$usedprefix
18346 ac_fftw_firstname=$fftwname
18350 fftwname=${ac_fftw_savedprefix}fftw_mpi
18351 echo "$as_me:18351: checking for $fftwname.h" >&5
18352 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18354 #line 18354 "configure"
18355 #include "confdefs.h"
18356 #include <$fftwname.h>
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:18366: \"$ac_compile\"") >&5
18367 (eval $ac_compile) 2>&5
18369 echo "$as_me:18369: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:18372: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:18375: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 echo "$as_me:18377: result: yes" >&5
18378 echo "${ECHO_T}yes" >&6
18379 LIBS="-l$fftwname $LIBS"
18380 cat >conftest.$ac_ext <<_ACEOF
18381 #line 18381 "configure"
18382 #include "confdefs.h"
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:18393: \"$ac_link\"") >&5
18394 (eval $ac_link) 2>&5
18396 echo "$as_me:18396: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (eval echo "$as_me:18399: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:18402: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18406 echo "$as_me: failed program was:" >&5
18407 cat conftest.$ac_ext >&5
18409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18411 echo "$as_me: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18414 echo "$as_me:18414: result: no" >&5
18415 echo "${ECHO_T}no" >&6
18416 { { echo "$as_me:18416: error: Cant find $fftwname.h header. Make sure all your
18417 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18418 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18419 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18420 { (exit 1); exit 1; }; }
18423 rm -f conftest.$ac_objext conftest.$ac_ext
18427 if test -z "$ac_fftw_firstname"; then
18429 sizeof_real=$sizeof_real
18430 if test $sizeof_real = 8; then
18440 # check header doesn't work, since we must use mpicc to get includes,
18441 # we cant trust cpp.
18442 echo "$as_me:18442: checking for rfftw_mpi.h" >&5
18443 echo $ECHO_N "checking for rfftw_mpi.h... $ECHO_C" >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18445 #line 18445 "configure"
18446 #include "confdefs.h"
18447 #include <rfftw_mpi.h>
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:18457: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>&5
18460 echo "$as_me:18460: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (eval echo "$as_me:18463: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:18466: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18470 echo "$as_me:18470: result: yes" >&5
18471 echo "${ECHO_T}yes" >&6
18474 echo "$as_me: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18476 echo "$as_me:18476: result: no" >&5
18477 echo "${ECHO_T}no" >&6
18479 rm -f conftest.$ac_objext conftest.$ac_ext
18481 if test -n "$fftwname"; then
18482 # we cannot run the code since an MPI program might not be allowed
18483 # on a login node of a supercomputer
18484 cat >conftest.$ac_ext <<_ACEOF
18485 #line 18485 "configure"
18486 #include "confdefs.h"
18487 #include <$fftwname.h>
18491 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18496 rm -f conftest.$ac_objext
18497 if { (eval echo "$as_me:18497: \"$ac_compile\"") >&5
18498 (eval $ac_compile) 2>&5
18500 echo "$as_me:18500: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -s conftest.$ac_objext'
18503 { (eval echo "$as_me:18503: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:18506: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18510 echo "$as_me: failed program was:" >&5
18511 cat conftest.$ac_ext >&5
18514 rm -f conftest.$ac_objext conftest.$ac_ext
18519 if test "$ok" != "yes"; then
18520 xfftwname=${fftwcheckprefix}${fftwname}
18521 echo "$as_me:18521: checking for $xfftwname.h" >&5
18522 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
18523 cat >conftest.$ac_ext <<_ACEOF
18524 #line 18524 "configure"
18525 #include "confdefs.h"
18526 #include <$xfftwname.h>
18535 rm -f conftest.$ac_objext
18536 if { (eval echo "$as_me:18536: \"$ac_compile\"") >&5
18537 (eval $ac_compile) 2>&5
18539 echo "$as_me:18539: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -s conftest.$ac_objext'
18542 { (eval echo "$as_me:18542: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:18545: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 echo "$as_me:18547: result: yes" >&5
18548 echo "${ECHO_T}yes" >&6
18550 echo "$as_me: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18553 echo "$as_me:18553: result: no" >&5
18554 echo "${ECHO_T}no" >&6
18555 { { echo "$as_me:18555: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18556 Do you have $prec precision FFTW installed? If you are using packages,
18557 note that you also need fftw-devel to compile GROMACS. You can find the
18558 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18559 If you compiled FFTW yourself:
18560 Note that the default FFTW setup is double precision. Change the FFTW
18561 configuration to single with --enable-float. If you want MPI support,
18562 use --enable-mpi. It is a good idea to install both single & double.
18563 If your sysadm doesn't want to install it you can do it to a location
18564 in your home directory and provide the correct paths in the CPPFLAGS
18565 and LDFLAGS environment variables before running configure.
18566 That is also necessary to do if your compiler doesn't search
18567 /usr/local/include and /usr/local/lib by default.
18568 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18569 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18570 Do you have $prec precision FFTW installed? If you are using packages,
18571 note that you also need fftw-devel to compile GROMACS. You can find the
18572 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18573 If you compiled FFTW yourself:
18574 Note that the default FFTW setup is double precision. Change the FFTW
18575 configuration to single with --enable-float. If you want MPI support,
18576 use --enable-mpi. It is a good idea to install both single & double.
18577 If your sysadm doesn't want to install it you can do it to a location
18578 in your home directory and provide the correct paths in the CPPFLAGS
18579 and LDFLAGS environment variables before running configure.
18580 That is also necessary to do if your compiler doesn't search
18581 /usr/local/include and /usr/local/lib by default.
18582 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18583 { (exit 1); exit 1; }; }
18586 rm -f conftest.$ac_objext conftest.$ac_ext
18587 cat >conftest.$ac_ext <<_ACEOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18590 #include <$xfftwname.h>
18594 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:18600: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>&5
18603 echo "$as_me:18603: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -s conftest.$ac_objext'
18606 { (eval echo "$as_me:18606: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:18609: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18612 fftwname=$xfftwname
18613 usedprefix=$fftwcheckprefix
18616 echo "$as_me: failed program was:" >&5
18617 cat conftest.$ac_ext >&5
18619 { { echo "$as_me:18619: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18620 Do you have $prec precision FFTW installed? If you are using packages,
18621 note that you also need fftw-devel to compile GROMACS. You can find the
18622 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18623 If you compiled FFTW yourself:
18624 Note that the default FFTW setup is double precision. Change the FFTW
18625 configuration to single with --enable-float. If you want MPI support,
18626 use --enable-mpi. It is a good idea to install both single & double.
18627 If your sysadm doesn't want to install it you can do it to a location
18628 in your home directory and provide the correct paths in the CPPFLAGS
18629 and LDFLAGS environment variables before running configure.
18630 That is also necessary to do if your compiler doesn't search
18631 /usr/local/include and /usr/local/lib by default.
18632 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18633 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18634 Do you have $prec precision FFTW installed? If you are using packages,
18635 note that you also need fftw-devel to compile GROMACS. You can find the
18636 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18637 If you compiled FFTW yourself:
18638 Note that the default FFTW setup is double precision. Change the FFTW
18639 configuration to single with --enable-float. If you want MPI support,
18640 use --enable-mpi. It is a good idea to install both single & double.
18641 If your sysadm doesn't want to install it you can do it to a location
18642 in your home directory and provide the correct paths in the CPPFLAGS
18643 and LDFLAGS environment variables before running configure.
18644 That is also necessary to do if your compiler doesn't search
18645 /usr/local/include and /usr/local/lib by default.
18646 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18647 { (exit 1); exit 1; }; }
18649 rm -f conftest.$ac_objext conftest.$ac_ext
18652 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
18653 echo "$as_me:18653: checking for main in -l$fftwname" >&5
18654 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
18655 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-l$fftwname $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 #line 18661 "configure"
18662 #include "confdefs.h"
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:18673: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>&5
18676 echo "$as_me:18676: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:18679: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:18682: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 eval "$ac_ac_Lib=yes"
18686 echo "$as_me: failed program was:" >&5
18687 cat conftest.$ac_ext >&5
18688 eval "$ac_ac_Lib=no"
18690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18693 echo "$as_me:18693: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
18694 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
18695 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
18696 cat >>confdefs.h <<EOF
18697 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
18700 LIBS="-l$fftwname $LIBS"
18703 { { echo "$as_me:18703: error: Can't find a library to match the $fftwname header" >&5
18704 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
18705 { (exit 1); exit 1; }; }
18708 ac_fftw_savedprefix=$usedprefix
18709 ac_fftw_firstname=$fftwname
18713 fftwname=${ac_fftw_savedprefix}rfftw_mpi
18714 echo "$as_me:18714: checking for $fftwname.h" >&5
18715 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
18716 cat >conftest.$ac_ext <<_ACEOF
18717 #line 18717 "configure"
18718 #include "confdefs.h"
18719 #include <$fftwname.h>
18728 rm -f conftest.$ac_objext
18729 if { (eval echo "$as_me:18729: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>&5
18732 echo "$as_me:18732: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -s conftest.$ac_objext'
18735 { (eval echo "$as_me:18735: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:18738: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 echo "$as_me:18740: result: yes" >&5
18741 echo "${ECHO_T}yes" >&6
18742 LIBS="-l$fftwname $LIBS"
18743 cat >conftest.$ac_ext <<_ACEOF
18744 #line 18744 "configure"
18745 #include "confdefs.h"
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:18756: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>&5
18759 echo "$as_me:18759: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (eval echo "$as_me:18762: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:18765: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18769 echo "$as_me: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18774 echo "$as_me: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18777 echo "$as_me:18777: result: no" >&5
18778 echo "${ECHO_T}no" >&6
18779 { { echo "$as_me:18779: error: Cant find $fftwname.h header. Make sure all your
18780 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18781 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18782 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18783 { (exit 1); exit 1; }; }
18786 rm -f conftest.$ac_objext conftest.$ac_ext
18792 case ${ac_fftw_savedprefix} in
18794 cat >>confdefs.h <<\EOF
18795 #define FFTW_NAME_DFFTW
18799 cat >>confdefs.h <<\EOF
18800 #define FFTW_NAME_SFFTW
18804 cat >>confdefs.h <<\EOF
18805 #define FFTW_NAME_FFTW
18810 echo "*******************************************************************"
18811 echo "* WARNING! You have disabled FFTW support! *"
18812 echo "* You will not be able to use PME (Particle Mesh Ewald) summation *"
18813 echo "* in your simulations. Unless you are absolutely sure you won't *"
18814 echo "* ever need this we suggest you install FFTW instead of compiling *"
18815 echo "* a version of GROMACS that will be crippled! *"
18816 echo "*******************************************************************"
18817 fi # end of fftw check
18820 # check for xtc headers
18822 for ac_header in rpc/rpc.h rpc/xdr.h
18824 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
18825 echo "$as_me:18825: checking for $ac_header" >&5
18826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18827 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 cat >conftest.$ac_ext <<_ACEOF
18831 #line 18831 "configure"
18832 #include "confdefs.h"
18833 #include <$ac_header>
18835 if { (eval echo "$as_me:18835: \"$ac_cpp conftest.$ac_ext\"") >&5
18836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18838 egrep -v '^ *\+' conftest.er1 >conftest.err
18840 cat conftest.err >&5
18841 echo "$as_me:18841: \$? = $ac_status" >&5
18842 (exit $ac_status); } >/dev/null; then
18843 if test -s conftest.err; then
18844 ac_cpp_err=$ac_c_preproc_warn_flag
18851 if test -z "$ac_cpp_err"; then
18852 eval "$ac_ac_Header=yes"
18854 echo "$as_me: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18856 eval "$ac_ac_Header=no"
18858 rm -f conftest.err conftest.$ac_ext
18860 echo "$as_me:18860: result: `eval echo '${'$ac_ac_Header'}'`" >&5
18861 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
18862 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
18863 cat >>confdefs.h <<EOF
18864 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
18866 # check for xtc libs if we found headers - on solaris the xdr stuff is in libnsl
18868 echo "$as_me:18868: checking for xdr_float in -lnsl" >&5
18869 echo $ECHO_N "checking for xdr_float in -lnsl... $ECHO_C" >&6
18870 if test "${ac_cv_lib_nsl_xdr_float+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 ac_check_lib_save_LIBS=$LIBS
18875 cat >conftest.$ac_ext <<_ACEOF
18876 #line 18876 "configure"
18877 #include "confdefs.h"
18879 /* Override any gcc2 internal prototype to avoid an error. */
18883 /* We use char because int might match the return type of a gcc2
18884 builtin and then its argument prototype would still apply. */
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (eval echo "$as_me:18895: \"$ac_link\"") >&5
18896 (eval $ac_link) 2>&5
18898 echo "$as_me:18898: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
18900 { ac_try='test -s conftest$ac_exeext'
18901 { (eval echo "$as_me:18901: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:18904: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_lib_nsl_xdr_float=yes
18908 echo "$as_me: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 ac_cv_lib_nsl_xdr_float=no
18912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18915 echo "$as_me:18915: result: $ac_cv_lib_nsl_xdr_float" >&5
18916 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_float" >&6
18917 if test $ac_cv_lib_nsl_xdr_float = yes; then
18918 cat >>confdefs.h <<EOF
18919 #define HAVE_LIBNSL 1
18926 cat >conftest.$ac_ext <<_ACEOF
18927 #line 18927 "configure"
18928 #include "confdefs.h"
18929 #include<rpc/rpc.h>
18930 #include<rpc/xdr.h>
18934 XDR *xd; float f; xdr_float(xd,&f);
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:18940: \"$ac_link\"") >&5
18941 (eval $ac_link) 2>&5
18943 echo "$as_me:18943: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
18945 { ac_try='test -s conftest$ac_exeext'
18946 { (eval echo "$as_me:18946: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18949 echo "$as_me:18949: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18953 echo "$as_me: failed program was:" >&5
18954 cat conftest.$ac_ext >&5
18955 { echo "$as_me:18955: WARNING: RPC/XDR libraries not found - disabling xtc" >&5
18956 echo "$as_me: WARNING: RPC/XDR libraries not found - disabling xtc" >&2;}
18958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18961 { echo "$as_me:18961: WARNING: RPC/XDR include headers not found - disabling xtc" >&5
18962 echo "$as_me: WARNING: RPC/XDR include headers not found - disabling xtc" >&2;}
18966 if test "$have_xdr" = "yes"; then
18968 cat >>confdefs.h <<\EOF
18973 echo "*****************************************************************************"
18974 echo "*WARNING - XDR not found. This cripples GROMACS significantly - you cannot *"
18975 echo "*read/write portable trajectories. No choice on windows, but locate the RPC *"
18976 echo "*header files and libraries if you run UNIX - they do exist! *"
18977 echo "*****************************************************************************"
18981 # Checks for additional and/or optional functions or libraries.
18983 echo "$as_me:18983: checking for working memcmp" >&5
18984 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
18985 if test "${ac_cv_func_memcmp_working+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 if test "$cross_compiling" = yes; then
18989 ac_cv_func_memcmp_working=no
18991 cat >conftest.$ac_ext <<_ACEOF
18992 #line 18992 "configure"
18993 #include "confdefs.h"
18999 /* Some versions of memcmp are not 8-bit clean. */
19000 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19001 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19004 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19005 or more and with at least one buffer not starting on a 4-byte boundary.
19006 William Lewis provided this test program. */
19011 for (i = 0; i < 4; i++)
19015 strcpy (a, "--------01111111");
19016 strcpy (b, "--------10000000");
19017 if (memcmp (a, b, 16) >= 0)
19027 rm -f conftest$ac_exeext
19028 if { (eval echo "$as_me:19028: \"$ac_link\"") >&5
19029 (eval $ac_link) 2>&5
19031 echo "$as_me:19031: \$? = $ac_status" >&5
19032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19033 { (eval echo "$as_me:19033: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19036 echo "$as_me:19036: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_func_memcmp_working=yes
19040 echo "$as_me: program exited with status $ac_status" >&5
19041 echo "$as_me: failed program was:" >&5
19042 cat conftest.$ac_ext >&5
19043 ac_cv_func_memcmp_working=no
19045 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
19048 echo "$as_me:19048: result: $ac_cv_func_memcmp_working" >&5
19049 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
19050 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19052 echo "$as_me:19052: checking return type of signal handlers" >&5
19053 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19054 if test "${ac_cv_type_signal+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 cat >conftest.$ac_ext <<_ACEOF
19058 #line 19058 "configure"
19059 #include "confdefs.h"
19060 #include <sys/types.h>
19061 #include <signal.h>
19066 extern "C" void (*signal (int, void (*)(int)))(int);
19068 void (*signal ()) ();
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:19080: \"$ac_compile\"") >&5
19081 (eval $ac_compile) 2>&5
19083 echo "$as_me:19083: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (eval echo "$as_me:19086: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:19089: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_cv_type_signal=void
19093 echo "$as_me: failed program was:" >&5
19094 cat conftest.$ac_ext >&5
19095 ac_cv_type_signal=int
19097 rm -f conftest.$ac_objext conftest.$ac_ext
19099 echo "$as_me:19099: result: $ac_cv_type_signal" >&5
19100 echo "${ECHO_T}$ac_cv_type_signal" >&6
19102 cat >>confdefs.h <<EOF
19103 #define RETSIGTYPE $ac_cv_type_signal
19106 for ac_func in vprintf
19108 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19109 echo "$as_me:19109: checking for $ac_func" >&5
19110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19111 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 cat >conftest.$ac_ext <<_ACEOF
19115 #line 19115 "configure"
19116 #include "confdefs.h"
19117 /* System header to define __stub macros and hopefully few prototypes,
19118 which can conflict with char $ac_func (); below. */
19119 #include <assert.h>
19120 /* Override any gcc2 internal prototype to avoid an error. */
19124 /* We use char because int might match the return type of a gcc2
19125 builtin and then its argument prototype would still apply. */
19132 /* The GNU C library defines this for functions which it implements
19133 to always fail with ENOSYS. Some functions are actually named
19134 something starting with __ and the normal name is an alias. */
19135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:19146: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>&5
19149 echo "$as_me:19149: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (eval echo "$as_me:19152: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19155 echo "$as_me:19155: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 eval "$ac_ac_var=yes"
19159 echo "$as_me: failed program was:" >&5
19160 cat conftest.$ac_ext >&5
19161 eval "$ac_ac_var=no"
19163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19165 echo "$as_me:19165: result: `eval echo '${'$ac_ac_var'}'`" >&5
19166 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19167 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19168 cat >>confdefs.h <<EOF
19169 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19172 echo "$as_me:19172: checking for _doprnt" >&5
19173 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19174 if test "${ac_cv_func__doprnt+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19178 #line 19178 "configure"
19179 #include "confdefs.h"
19180 /* System header to define __stub macros and hopefully few prototypes,
19181 which can conflict with char _doprnt (); below. */
19182 #include <assert.h>
19183 /* Override any gcc2 internal prototype to avoid an error. */
19187 /* We use char because int might match the return type of a gcc2
19188 builtin and then its argument prototype would still apply. */
19195 /* The GNU C library defines this for functions which it implements
19196 to always fail with ENOSYS. Some functions are actually named
19197 something starting with __ and the normal name is an alias. */
19198 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:19209: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>&5
19212 echo "$as_me:19212: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try='test -s conftest$ac_exeext'
19215 { (eval echo "$as_me:19215: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:19218: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_func__doprnt=yes
19222 echo "$as_me: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 ac_cv_func__doprnt=no
19226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19228 echo "$as_me:19228: result: $ac_cv_func__doprnt" >&5
19229 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19230 if test $ac_cv_func__doprnt = yes; then
19232 cat >>confdefs.h <<\EOF
19233 #define HAVE_DOPRNT 1
19241 echo "$as_me:19241: checking if malloc debugging is wanted" >&5
19242 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
19244 # Check whether --with-dmalloc or --without-dmalloc was given.
19245 if test "${with_dmalloc+set}" = set; then
19246 withval="$with_dmalloc"
19247 if test "$withval" = yes; then
19248 echo "$as_me:19248: result: yes" >&5
19249 echo "${ECHO_T}yes" >&6
19251 cat >>confdefs.h <<\EOF
19252 #define WITH_DMALLOC 1
19255 LIBS="$LIBS -ldmalloc"
19256 LDFLAGS="$LDFLAGS -g"
19258 echo "$as_me:19258: result: no" >&5
19259 echo "${ECHO_T}no" >&6
19262 echo "$as_me:19262: result: no" >&5
19263 echo "${ECHO_T}no" >&6
19266 for ac_func in strcasecmp
19268 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19269 echo "$as_me:19269: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 cat >conftest.$ac_ext <<_ACEOF
19275 #line 19275 "configure"
19276 #include "confdefs.h"
19277 /* System header to define __stub macros and hopefully few prototypes,
19278 which can conflict with char $ac_func (); below. */
19279 #include <assert.h>
19280 /* Override any gcc2 internal prototype to avoid an error. */
19284 /* We use char because int might match the return type of a gcc2
19285 builtin and then its argument prototype would still apply. */
19292 /* The GNU C library defines this for functions which it implements
19293 to always fail with ENOSYS. Some functions are actually named
19294 something starting with __ and the normal name is an alias. */
19295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:19306: \"$ac_link\"") >&5
19307 (eval $ac_link) 2>&5
19309 echo "$as_me:19309: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:19312: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:19315: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 eval "$ac_ac_var=yes"
19319 echo "$as_me: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19321 eval "$ac_ac_var=no"
19323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19325 echo "$as_me:19325: result: `eval echo '${'$ac_ac_var'}'`" >&5
19326 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19327 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19328 cat >>confdefs.h <<EOF
19329 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19335 for ac_func in strdup
19337 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19338 echo "$as_me:19338: checking for $ac_func" >&5
19339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19340 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19344 #line 19344 "configure"
19345 #include "confdefs.h"
19346 /* System header to define __stub macros and hopefully few prototypes,
19347 which can conflict with char $ac_func (); below. */
19348 #include <assert.h>
19349 /* Override any gcc2 internal prototype to avoid an error. */
19353 /* We use char because int might match the return type of a gcc2
19354 builtin and then its argument prototype would still apply. */
19361 /* The GNU C library defines this for functions which it implements
19362 to always fail with ENOSYS. Some functions are actually named
19363 something starting with __ and the normal name is an alias. */
19364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:19375: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -s conftest$ac_exeext'
19381 { (eval echo "$as_me:19381: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:19384: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 eval "$ac_ac_var=yes"
19388 echo "$as_me: failed program was:" >&5
19389 cat conftest.$ac_ext >&5
19390 eval "$ac_ac_var=no"
19392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19394 echo "$as_me:19394: result: `eval echo '${'$ac_ac_var'}'`" >&5
19395 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19396 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19397 cat >>confdefs.h <<EOF
19398 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19406 echo "$as_me:19406: checking for X" >&5
19407 echo $ECHO_N "checking for X... $ECHO_C" >&6
19409 # Check whether --with-x or --without-x was given.
19410 if test "${with_x+set}" = set; then
19414 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19415 if test "x$with_x" = xno; then
19416 # The user explicitly disabled X.
19419 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19420 # Both variables are already set.
19423 if test "${ac_cv_have_x+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 # One or both of the vars are not set, and there is no cached value.
19427 ac_x_includes=no ac_x_libraries=no
19428 rm -fr conftest.dir
19429 if mkdir conftest.dir; then
19431 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19432 cat >Imakefile <<'EOF'
19434 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19436 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19437 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19438 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19439 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19440 for ac_extension in a so sl; do
19441 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19442 test -f $ac_im_libdir/libX11.$ac_extension; then
19443 ac_im_usrlibdir=$ac_im_libdir; break
19446 # Screen out bogus values from the imake configuration. They are
19447 # bogus both because they are the default anyway, and because
19448 # using them would break gcc on systems where it needs fixed includes.
19449 case $ac_im_incroot in
19451 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19453 case $ac_im_usrlibdir in
19454 /usr/lib | /lib) ;;
19455 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19459 rm -fr conftest.dir
19462 # Standard set of common directories for X headers.
19463 # Check X11 before X11Rn because it is often a symlink to the current release.
19475 /usr/local/X11/include
19476 /usr/local/X11R6/include
19477 /usr/local/X11R5/include
19478 /usr/local/X11R4/include
19480 /usr/local/include/X11
19481 /usr/local/include/X11R6
19482 /usr/local/include/X11R5
19483 /usr/local/include/X11R4
19487 /usr/XFree86/include/X11
19491 /usr/unsupported/include
19492 /usr/athena/include
19493 /usr/local/x11r5/include
19494 /usr/lpp/Xamples/include
19496 /usr/openwin/include
19497 /usr/openwin/share/include'
19499 if test "$ac_x_includes" = no; then
19500 # Guess where to find include files, by looking for Intrinsic.h.
19501 # First, try using that file with no special directory specified.
19502 cat >conftest.$ac_ext <<_ACEOF
19503 #line 19503 "configure"
19504 #include "confdefs.h"
19505 #include <X11/Intrinsic.h>
19507 if { (eval echo "$as_me:19507: \"$ac_cpp conftest.$ac_ext\"") >&5
19508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19510 egrep -v '^ *\+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 echo "$as_me:19513: \$? = $ac_status" >&5
19514 (exit $ac_status); } >/dev/null; then
19515 if test -s conftest.err; then
19516 ac_cpp_err=$ac_c_preproc_warn_flag
19523 if test -z "$ac_cpp_err"; then
19524 # We can compile using X headers with no special include directory.
19527 echo "$as_me: failed program was:" >&5
19528 cat conftest.$ac_ext >&5
19529 for ac_dir in $ac_x_header_dirs; do
19530 if test -r "$ac_dir/X11/Intrinsic.h"; then
19531 ac_x_includes=$ac_dir
19536 rm -f conftest.err conftest.$ac_ext
19537 fi # $ac_x_includes = no
19539 if test "$ac_x_libraries" = no; then
19540 # Check for the libraries.
19541 # See if we find them without any special options.
19542 # Don't add to $LIBS permanently.
19545 cat >conftest.$ac_ext <<_ACEOF
19546 #line 19546 "configure"
19547 #include "confdefs.h"
19548 #include <X11/Intrinsic.h>
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (eval echo "$as_me:19558: \"$ac_link\"") >&5
19559 (eval $ac_link) 2>&5
19561 echo "$as_me:19561: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (eval echo "$as_me:19564: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:19567: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19570 # We can link X programs with no special library path.
19573 echo "$as_me: failed program was:" >&5
19574 cat conftest.$ac_ext >&5
19576 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19578 # Don't even attempt the hair of trying to link an X program!
19579 for ac_extension in a so sl; do
19580 if test -r $ac_dir/libXt.$ac_extension; then
19581 ac_x_libraries=$ac_dir
19587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19588 fi # $ac_x_libraries = no
19590 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19591 # Didn't find X anywhere. Cache the known absence of X.
19592 ac_cv_have_x="have_x=no"
19594 # Record where we found X for the cache.
19595 ac_cv_have_x="have_x=yes \
19596 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19601 eval "$ac_cv_have_x"
19604 if test "$have_x" != yes; then
19605 echo "$as_me:19605: result: $have_x" >&5
19606 echo "${ECHO_T}$have_x" >&6
19609 # If each of the values was on the command line, it overrides each guess.
19610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19612 # Update the cache value to reflect the command line values.
19613 ac_cv_have_x="have_x=yes \
19614 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19615 echo "$as_me:19615: result: libraries $x_libraries, headers $x_includes" >&5
19616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19619 if test "$no_x" = yes; then
19620 # Not all programs may use this symbol, but it does not hurt to define it.
19622 cat >>confdefs.h <<\EOF
19623 #define X_DISPLAY_MISSING 1
19626 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19628 if test -n "$x_includes"; then
19629 X_CFLAGS="$X_CFLAGS -I$x_includes"
19632 # It would also be nice to do this for all -L options, not just this one.
19633 if test -n "$x_libraries"; then
19634 X_LIBS="$X_LIBS -L$x_libraries"
19635 # For Solaris; some versions of Sun CC require a space after -R and
19636 # others require no space. Words are not sufficient . . . .
19637 case `(uname -sr) 2>/dev/null` in
19639 echo "$as_me:19639: checking whether -R must be followed by a space" >&5
19640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19641 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19642 cat >conftest.$ac_ext <<_ACEOF
19643 #line 19643 "configure"
19644 #include "confdefs.h"
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (eval echo "$as_me:19655: \"$ac_link\"") >&5
19656 (eval $ac_link) 2>&5
19658 echo "$as_me:19658: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -s conftest$ac_exeext'
19661 { (eval echo "$as_me:19661: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:19664: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19668 echo "$as_me: failed program was:" >&5
19669 cat conftest.$ac_ext >&5
19672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19673 if test $ac_R_nospace = yes; then
19674 echo "$as_me:19674: result: no" >&5
19675 echo "${ECHO_T}no" >&6
19676 X_LIBS="$X_LIBS -R$x_libraries"
19678 LIBS="$ac_xsave_LIBS -R $x_libraries"
19679 cat >conftest.$ac_ext <<_ACEOF
19680 #line 19680 "configure"
19681 #include "confdefs.h"
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:19692: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19695 echo "$as_me:19695: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -s conftest$ac_exeext'
19698 { (eval echo "$as_me:19698: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19701 echo "$as_me:19701: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19705 echo "$as_me: failed program was:" >&5
19706 cat conftest.$ac_ext >&5
19709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19710 if test $ac_R_space = yes; then
19711 echo "$as_me:19711: result: yes" >&5
19712 echo "${ECHO_T}yes" >&6
19713 X_LIBS="$X_LIBS -R $x_libraries"
19715 echo "$as_me:19715: result: neither works" >&5
19716 echo "${ECHO_T}neither works" >&6
19719 LIBS=$ac_xsave_LIBS
19723 # Check for system-dependent libraries X programs must link with.
19724 # Do this before checking for the system-independent R6 libraries
19725 # (-lICE), since we may need -lsocket or whatever for X linking.
19727 if test "$ISC" = yes; then
19728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19730 # Martyn Johnson says this is needed for Ultrix, if the X
19731 # libraries were built with DECnet support. And Karl Berry says
19732 # the Alpha needs dnet_stub (dnet does not exist).
19733 echo "$as_me:19733: checking for dnet_ntoa in -ldnet" >&5
19734 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19735 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-ldnet $LIBS"
19740 cat >conftest.$ac_ext <<_ACEOF
19741 #line 19741 "configure"
19742 #include "confdefs.h"
19744 /* Override any gcc2 internal prototype to avoid an error. */
19748 /* We use char because int might match the return type of a gcc2
19749 builtin and then its argument prototype would still apply. */
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (eval echo "$as_me:19760: \"$ac_link\"") >&5
19761 (eval $ac_link) 2>&5
19763 echo "$as_me:19763: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -s conftest$ac_exeext'
19766 { (eval echo "$as_me:19766: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:19769: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 ac_cv_lib_dnet_dnet_ntoa=yes
19773 echo "$as_me: failed program was:" >&5
19774 cat conftest.$ac_ext >&5
19775 ac_cv_lib_dnet_dnet_ntoa=no
19777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19780 echo "$as_me:19780: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19781 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19782 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19783 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19786 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19787 echo "$as_me:19787: checking for dnet_ntoa in -ldnet_stub" >&5
19788 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19789 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-ldnet_stub $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19798 /* Override any gcc2 internal prototype to avoid an error. */
19802 /* We use char because int might match the return type of a gcc2
19803 builtin and then its argument prototype would still apply. */
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:19814: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>&5
19817 echo "$as_me:19817: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (eval echo "$as_me:19820: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:19823: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19827 echo "$as_me: failed program was:" >&5
19828 cat conftest.$ac_ext >&5
19829 ac_cv_lib_dnet_stub_dnet_ntoa=no
19831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19834 echo "$as_me:19834: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19835 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19836 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19837 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19842 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19843 # to get the SysV transport functions.
19844 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19846 # The nsl library prevents programs from opening the X display
19847 # on Irix 5.2, according to T.E. Dickey.
19848 # The functions gethostbyname, getservbyname, and inet_addr are
19849 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19850 echo "$as_me:19850: checking for gethostbyname" >&5
19851 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19852 if test "${ac_cv_func_gethostbyname+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19856 #line 19856 "configure"
19857 #include "confdefs.h"
19858 /* System header to define __stub macros and hopefully few prototypes,
19859 which can conflict with char gethostbyname (); below. */
19860 #include <assert.h>
19861 /* Override any gcc2 internal prototype to avoid an error. */
19865 /* We use char because int might match the return type of a gcc2
19866 builtin and then its argument prototype would still apply. */
19867 char gethostbyname ();
19873 /* The GNU C library defines this for functions which it implements
19874 to always fail with ENOSYS. Some functions are actually named
19875 something starting with __ and the normal name is an alias. */
19876 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (eval echo "$as_me:19887: \"$ac_link\"") >&5
19888 (eval $ac_link) 2>&5
19890 echo "$as_me:19890: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -s conftest$ac_exeext'
19893 { (eval echo "$as_me:19893: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19896 echo "$as_me:19896: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_gethostbyname=yes
19900 echo "$as_me: failed program was:" >&5
19901 cat conftest.$ac_ext >&5
19902 ac_cv_func_gethostbyname=no
19904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19906 echo "$as_me:19906: result: $ac_cv_func_gethostbyname" >&5
19907 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19909 if test $ac_cv_func_gethostbyname = no; then
19910 echo "$as_me:19910: checking for gethostbyname in -lnsl" >&5
19911 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19912 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 ac_check_lib_save_LIBS=$LIBS
19917 cat >conftest.$ac_ext <<_ACEOF
19918 #line 19918 "configure"
19919 #include "confdefs.h"
19921 /* Override any gcc2 internal prototype to avoid an error. */
19925 /* We use char because int might match the return type of a gcc2
19926 builtin and then its argument prototype would still apply. */
19927 char gethostbyname ();
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (eval echo "$as_me:19937: \"$ac_link\"") >&5
19938 (eval $ac_link) 2>&5
19940 echo "$as_me:19940: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (eval echo "$as_me:19943: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:19946: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_lib_nsl_gethostbyname=yes
19950 echo "$as_me: failed program was:" >&5
19951 cat conftest.$ac_ext >&5
19952 ac_cv_lib_nsl_gethostbyname=no
19954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19957 echo "$as_me:19957: result: $ac_cv_lib_nsl_gethostbyname" >&5
19958 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19959 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19963 if test $ac_cv_lib_nsl_gethostbyname = no; then
19964 echo "$as_me:19964: checking for gethostbyname in -lbsd" >&5
19965 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19966 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_check_lib_save_LIBS=$LIBS
19971 cat >conftest.$ac_ext <<_ACEOF
19972 #line 19972 "configure"
19973 #include "confdefs.h"
19975 /* Override any gcc2 internal prototype to avoid an error. */
19979 /* We use char because int might match the return type of a gcc2
19980 builtin and then its argument prototype would still apply. */
19981 char gethostbyname ();
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (eval echo "$as_me:19991: \"$ac_link\"") >&5
19992 (eval $ac_link) 2>&5
19994 echo "$as_me:19994: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -s conftest$ac_exeext'
19997 { (eval echo "$as_me:19997: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:20000: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_lib_bsd_gethostbyname=yes
20004 echo "$as_me: failed program was:" >&5
20005 cat conftest.$ac_ext >&5
20006 ac_cv_lib_bsd_gethostbyname=no
20008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 echo "$as_me:20011: result: $ac_cv_lib_bsd_gethostbyname" >&5
20012 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20013 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20020 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20021 # socket/setsockopt and other routines are undefined under SCO ODT
20022 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20023 # on later versions), says Simon Leinen: it contains gethostby*
20024 # variants that don't use the nameserver (or something). -lsocket
20025 # must be given before -lnsl if both are needed. We assume that
20026 # if connect needs -lnsl, so does gethostbyname.
20027 echo "$as_me:20027: checking for connect" >&5
20028 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20029 if test "${ac_cv_func_connect+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 cat >conftest.$ac_ext <<_ACEOF
20033 #line 20033 "configure"
20034 #include "confdefs.h"
20035 /* System header to define __stub macros and hopefully few prototypes,
20036 which can conflict with char connect (); below. */
20037 #include <assert.h>
20038 /* Override any gcc2 internal prototype to avoid an error. */
20042 /* We use char because int might match the return type of a gcc2
20043 builtin and then its argument prototype would still apply. */
20050 /* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053 #if defined (__stub_connect) || defined (__stub___connect)
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (eval echo "$as_me:20064: \"$ac_link\"") >&5
20065 (eval $ac_link) 2>&5
20067 echo "$as_me:20067: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -s conftest$ac_exeext'
20070 { (eval echo "$as_me:20070: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20073 echo "$as_me:20073: \$? = $ac_status" >&5
20074 (exit $ac_status); }; }; then
20075 ac_cv_func_connect=yes
20077 echo "$as_me: failed program was:" >&5
20078 cat conftest.$ac_ext >&5
20079 ac_cv_func_connect=no
20081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20083 echo "$as_me:20083: result: $ac_cv_func_connect" >&5
20084 echo "${ECHO_T}$ac_cv_func_connect" >&6
20086 if test $ac_cv_func_connect = no; then
20087 echo "$as_me:20087: checking for connect in -lsocket" >&5
20088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20089 if test "${ac_cv_lib_socket_connect+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20094 cat >conftest.$ac_ext <<_ACEOF
20095 #line 20095 "configure"
20096 #include "confdefs.h"
20098 /* Override any gcc2 internal prototype to avoid an error. */
20102 /* We use char because int might match the return type of a gcc2
20103 builtin and then its argument prototype would still apply. */
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (eval echo "$as_me:20114: \"$ac_link\"") >&5
20115 (eval $ac_link) 2>&5
20117 echo "$as_me:20117: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -s conftest$ac_exeext'
20120 { (eval echo "$as_me:20120: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:20123: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_lib_socket_connect=yes
20127 echo "$as_me: failed program was:" >&5
20128 cat conftest.$ac_ext >&5
20129 ac_cv_lib_socket_connect=no
20131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20134 echo "$as_me:20134: result: $ac_cv_lib_socket_connect" >&5
20135 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20136 if test $ac_cv_lib_socket_connect = yes; then
20137 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20142 # Guillermo Gomez says -lposix is necessary on A/UX.
20143 echo "$as_me:20143: checking for remove" >&5
20144 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20145 if test "${ac_cv_func_remove+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20149 #line 20149 "configure"
20150 #include "confdefs.h"
20151 /* System header to define __stub macros and hopefully few prototypes,
20152 which can conflict with char remove (); below. */
20153 #include <assert.h>
20154 /* Override any gcc2 internal prototype to avoid an error. */
20158 /* We use char because int might match the return type of a gcc2
20159 builtin and then its argument prototype would still apply. */
20166 /* The GNU C library defines this for functions which it implements
20167 to always fail with ENOSYS. Some functions are actually named
20168 something starting with __ and the normal name is an alias. */
20169 #if defined (__stub_remove) || defined (__stub___remove)
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (eval echo "$as_me:20180: \"$ac_link\"") >&5
20181 (eval $ac_link) 2>&5
20183 echo "$as_me:20183: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -s conftest$ac_exeext'
20186 { (eval echo "$as_me:20186: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:20189: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_cv_func_remove=yes
20193 echo "$as_me: failed program was:" >&5
20194 cat conftest.$ac_ext >&5
20195 ac_cv_func_remove=no
20197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20199 echo "$as_me:20199: result: $ac_cv_func_remove" >&5
20200 echo "${ECHO_T}$ac_cv_func_remove" >&6
20202 if test $ac_cv_func_remove = no; then
20203 echo "$as_me:20203: checking for remove in -lposix" >&5
20204 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20205 if test "${ac_cv_lib_posix_remove+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 ac_check_lib_save_LIBS=$LIBS
20209 LIBS="-lposix $LIBS"
20210 cat >conftest.$ac_ext <<_ACEOF
20211 #line 20211 "configure"
20212 #include "confdefs.h"
20214 /* Override any gcc2 internal prototype to avoid an error. */
20218 /* We use char because int might match the return type of a gcc2
20219 builtin and then its argument prototype would still apply. */
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (eval echo "$as_me:20230: \"$ac_link\"") >&5
20231 (eval $ac_link) 2>&5
20233 echo "$as_me:20233: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -s conftest$ac_exeext'
20236 { (eval echo "$as_me:20236: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:20239: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_lib_posix_remove=yes
20243 echo "$as_me: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20245 ac_cv_lib_posix_remove=no
20247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20248 LIBS=$ac_check_lib_save_LIBS
20250 echo "$as_me:20250: result: $ac_cv_lib_posix_remove" >&5
20251 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20252 if test $ac_cv_lib_posix_remove = yes; then
20253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20258 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20259 echo "$as_me:20259: checking for shmat" >&5
20260 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20261 if test "${ac_cv_func_shmat+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20265 #line 20265 "configure"
20266 #include "confdefs.h"
20267 /* System header to define __stub macros and hopefully few prototypes,
20268 which can conflict with char shmat (); below. */
20269 #include <assert.h>
20270 /* Override any gcc2 internal prototype to avoid an error. */
20274 /* We use char because int might match the return type of a gcc2
20275 builtin and then its argument prototype would still apply. */
20282 /* The GNU C library defines this for functions which it implements
20283 to always fail with ENOSYS. Some functions are actually named
20284 something starting with __ and the normal name is an alias. */
20285 #if defined (__stub_shmat) || defined (__stub___shmat)
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (eval echo "$as_me:20296: \"$ac_link\"") >&5
20297 (eval $ac_link) 2>&5
20299 echo "$as_me:20299: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -s conftest$ac_exeext'
20302 { (eval echo "$as_me:20302: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:20305: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_func_shmat=yes
20309 echo "$as_me: failed program was:" >&5
20310 cat conftest.$ac_ext >&5
20311 ac_cv_func_shmat=no
20313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20315 echo "$as_me:20315: result: $ac_cv_func_shmat" >&5
20316 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20318 if test $ac_cv_func_shmat = no; then
20319 echo "$as_me:20319: checking for shmat in -lipc" >&5
20320 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20321 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 ac_check_lib_save_LIBS=$LIBS
20326 cat >conftest.$ac_ext <<_ACEOF
20327 #line 20327 "configure"
20328 #include "confdefs.h"
20330 /* Override any gcc2 internal prototype to avoid an error. */
20334 /* We use char because int might match the return type of a gcc2
20335 builtin and then its argument prototype would still apply. */
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (eval echo "$as_me:20346: \"$ac_link\"") >&5
20347 (eval $ac_link) 2>&5
20349 echo "$as_me:20349: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -s conftest$ac_exeext'
20352 { (eval echo "$as_me:20352: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20355 echo "$as_me:20355: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_lib_ipc_shmat=yes
20359 echo "$as_me: failed program was:" >&5
20360 cat conftest.$ac_ext >&5
20361 ac_cv_lib_ipc_shmat=no
20363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_check_lib_save_LIBS
20366 echo "$as_me:20366: result: $ac_cv_lib_ipc_shmat" >&5
20367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20368 if test $ac_cv_lib_ipc_shmat = yes; then
20369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20375 # Check for libraries that X11R6 Xt/Xaw programs need.
20376 ac_save_LDFLAGS=$LDFLAGS
20377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20379 # check for ICE first), but we must link in the order -lSM -lICE or
20380 # we get undefined symbols. So assume we have SM if we have ICE.
20381 # These have to be linked with before -lX11, unlike the other
20382 # libraries we check for below, so use a different variable.
20383 # John Interrante, Karl Berry
20384 echo "$as_me:20384: checking for IceConnectionNumber in -lICE" >&5
20385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20392 #line 20392 "configure"
20393 #include "confdefs.h"
20395 /* Override any gcc2 internal prototype to avoid an error. */
20399 /* We use char because int might match the return type of a gcc2
20400 builtin and then its argument prototype would still apply. */
20401 char IceConnectionNumber ();
20405 IceConnectionNumber ();
20410 rm -f conftest.$ac_objext conftest$ac_exeext
20411 if { (eval echo "$as_me:20411: \"$ac_link\"") >&5
20412 (eval $ac_link) 2>&5
20414 echo "$as_me:20414: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (eval echo "$as_me:20417: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20420 echo "$as_me:20420: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_lib_ICE_IceConnectionNumber=yes
20424 echo "$as_me: failed program was:" >&5
20425 cat conftest.$ac_ext >&5
20426 ac_cv_lib_ICE_IceConnectionNumber=no
20428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20431 echo "$as_me:20431: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20432 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20433 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20434 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20437 LDFLAGS=$ac_save_LDFLAGS
20441 # try to find motif headers and libraries
20446 if test "$no_x" = "yes"
20452 # Check whether --with-motif-includes or --without-motif-includes was given.
20453 if test "${with_motif_includes+set}" = set; then
20454 withval="$with_motif_includes"
20455 motif_includes="$withval"
20458 # Check whether --with-motif-libraries or --without-motif-libraries was given.
20459 if test "${with_motif_libraries+set}" = set; then
20460 withval="$with_motif_libraries"
20461 motif_libraries="$withval"
20464 echo "$as_me:20464: checking for Motif" >&5
20465 echo $ECHO_N "checking for Motif... $ECHO_C" >&6
20469 # Search the include files.
20471 if test "$motif_includes" = ""; then
20472 if test "${ac_cv_motif_includes+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_motif_save_LIBS="$LIBS"
20477 ac_motif_save_INCLUDES="$INCLUDES"
20478 ac_motif_save_CPPFLAGS="$CPPFLAGS"
20479 ac_motif_save_LDFLAGS="$LDFLAGS"
20481 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
20482 INCLUDES="$X_CFLAGS $INCLUDES"
20483 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
20484 LDFLAGS="$X_LIBS $LDFLAGS"
20486 ac_cv_motif_includes="no"
20487 cat >conftest.$ac_ext <<_ACEOF
20488 #line 20488 "configure"
20489 #include "confdefs.h"
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:20500: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>&5
20503 echo "$as_me:20503: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (eval echo "$as_me:20506: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:20509: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20512 # Xm/Xm.h is in the standard search path.
20513 ac_cv_motif_includes=
20516 echo "$as_me: failed program was:" >&5
20517 cat conftest.$ac_ext >&5
20519 # Xm/Xm.h is not in the standard search path.
20520 # Locate it and put its directory in `motif_includes'
20522 # /usr/include/Motif* are used on HP-UX (Motif).
20523 # /usr/include/X11* are used on HP-UX (X and Athena).
20524 # /usr/dt is used on Solaris (Motif).
20525 # /usr/openwin is used on Solaris (X and Athena).
20526 # Other directories are just guesses.
20527 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
20528 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
20529 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
20530 /usr/dt/include /usr/openwin/include \
20531 /usr/dt/*/include /opt/*/include /usr/include/Motif* \
20532 "${prefix}"/*/include /usr/*/include /usr/local/*/include \
20533 "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
20534 if test -f "$dir/Xm/Xm.h"; then
20535 ac_cv_motif_includes="$dir"
20541 rm -f conftest.$ac_objext conftest.$ac_ext
20543 LIBS="$ac_motif_save_LIBS"
20544 INCLUDES="$ac_motif_save_INCLUDES"
20545 CPPFLAGS="$ac_motif_save_CPPFLAGS"
20546 LDFLAGS="$ac_motif_save_LDFLAGS"
20550 motif_includes="$ac_cv_motif_includes"
20554 # Now for the libraries.
20556 if test "$motif_libraries" = ""; then
20557 if test "${ac_cv_motif_libraries+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 ac_motif_save_LIBS="$LIBS"
20562 ac_motif_save_INCLUDES="$INCLUDES"
20563 ac_motif_save_CPPFLAGS="$CPPFLAGS"
20564 ac_motif_save_LDFLAGS="$LDFLAGS"
20566 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
20567 INCLUDES="$X_CFLAGS $INCLUDES"
20568 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
20569 LDFLAGS="$X_LIBS $LDFLAGS"
20571 ac_cv_motif_libraries="no"
20572 cat >conftest.$ac_ext <<_ACEOF
20573 #line 20573 "configure"
20574 #include "confdefs.h"
20579 XtToolkitInitialize();
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (eval echo "$as_me:20585: \"$ac_link\"") >&5
20586 (eval $ac_link) 2>&5
20588 echo "$as_me:20588: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -s conftest$ac_exeext'
20591 { (eval echo "$as_me:20591: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:20594: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20597 # libXm.a is in the standard search path.
20598 ac_cv_motif_libraries=
20601 echo "$as_me: failed program was:" >&5
20602 cat conftest.$ac_ext >&5
20604 # libXm.a is not in the standard search path.
20605 # Locate it and put its directory in `motif_libraries'
20607 # /usr/lib/Motif* are used on HP-UX (Motif).
20608 # /usr/lib/X11* are used on HP-UX (X and Athena).
20609 # /usr/dt is used on Solaris (Motif).
20610 # /usr/lesstif is used on Linux (Lesstif).
20611 # /usr/openwin is used on Solaris (X and Athena).
20612 # Other directories are just guesses.
20613 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
20614 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
20615 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
20616 /usr/dt/lib /usr/openwin/lib \
20617 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
20618 /usr/lesstif*/lib /usr/lib/Lesstif* \
20619 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
20620 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
20621 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
20622 ac_cv_motif_libraries="$dir"
20628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20630 LIBS="$ac_motif_save_LIBS"
20631 INCLUDES="$ac_motif_save_INCLUDES"
20632 CPPFLAGS="$ac_motif_save_CPPFLAGS"
20633 LDFLAGS="$ac_motif_save_LDFLAGS"
20638 motif_libraries="$ac_cv_motif_libraries"
20641 # Provide an easier way to link
20643 if test "$motif_includes" = "no" -o "$motif_libraries" = "no"; then
20649 if test "$with_motif" != "no"; then
20650 if test "$motif_libraries" = ""; then
20651 link_motif="-lXm -lXt"
20652 MOTIF_LIBS="-lXm -lXt"
20654 link_motif="-L$motif_libraries -lXm -lXt"
20655 MOTIF_LIBS="-L$motif_libraries -lXm -lXt"
20657 if test "$motif_includes" != ""; then
20658 include_motif="-I$motif_includes"
20659 MOTIF_INCLUDES="-I$motif_includes"
20661 LIBS="$LIBS $MOTIF_LIBS"
20662 INCLUDES="$INCLUDES $MOTIF_INCLUDES"
20664 cat >>confdefs.h <<\EOF
20675 motif_libraries_result="$motif_libraries"
20676 motif_includes_result="$motif_includes"
20677 test "$motif_libraries_result" = "" && motif_libraries_result="in default path"
20678 test "$motif_includes_result" = "" && motif_includes_result="in default path"
20679 test "$motif_libraries_result" = "no" && motif_libraries_result="(none)"
20680 test "$motif_includes_result" = "no" && motif_includes_result="(none)"
20681 echo "$as_me:20681: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5
20682 echo "${ECHO_T}libraries $motif_libraries_result, headers $motif_includes_result" >&6
20685 if test "$motif_libraries" != "no"; then
20686 if test "$motif_includes" != "no"; then
20687 GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mgmx.lo widget.lo"
20690 { echo "$as_me:20690: Both libraries and includes are needed for Motif - disabling." >&5
20691 echo "$as_me: Both libraries and includes are needed for Motif - disabling." >&6;}
20695 if test "$no_x" != "yes"; then
20696 LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
20697 INCLUDES="$INCLUDES $X_CFLAGS $MOTIF_CFLAGS"
20718 # And collect the f77 libs to the linker - on Solaris, f77 stuff must go first,
20719 # and we need -L/usr/ucblib to find libucb... (stupid OS)
20720 # On e.g. ibm the mass libraries must come before -lm...
20721 case "${host_cpu}-${host_os}" in
20723 LIBS="$FLIBS $LIBS"
20724 LDFLAGS="$LDFLAGS -L/usr/ucblib"
20726 *) LIBS="$LIBS $FLIBS" ;;
20729 ########################################################################
20730 # Checks for header files and types
20731 ########################################################################
20733 for ac_header in limits.h malloc.h strings.h unistd.h
20735 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
20736 echo "$as_me:20736: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20738 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 cat >conftest.$ac_ext <<_ACEOF
20742 #line 20742 "configure"
20743 #include "confdefs.h"
20744 #include <$ac_header>
20746 if { (eval echo "$as_me:20746: \"$ac_cpp conftest.$ac_ext\"") >&5
20747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20749 egrep -v '^ *\+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 echo "$as_me:20752: \$? = $ac_status" >&5
20753 (exit $ac_status); } >/dev/null; then
20754 if test -s conftest.err; then
20755 ac_cpp_err=$ac_c_preproc_warn_flag
20762 if test -z "$ac_cpp_err"; then
20763 eval "$ac_ac_Header=yes"
20765 echo "$as_me: failed program was:" >&5
20766 cat conftest.$ac_ext >&5
20767 eval "$ac_ac_Header=no"
20769 rm -f conftest.err conftest.$ac_ext
20771 echo "$as_me:20771: result: `eval echo '${'$ac_ac_Header'}'`" >&5
20772 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
20773 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
20774 cat >>confdefs.h <<EOF
20775 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
20779 { { echo "$as_me:20779: error: Include headers not found" >&5
20780 echo "$as_me: error: Include headers not found" >&2;}
20781 { (exit 1); exit 1; }; }
20785 for ac_header in unistd.h
20787 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
20788 echo "$as_me:20788: checking for $ac_header" >&5
20789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20790 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 cat >conftest.$ac_ext <<_ACEOF
20794 #line 20794 "configure"
20795 #include "confdefs.h"
20796 #include <$ac_header>
20798 if { (eval echo "$as_me:20798: \"$ac_cpp conftest.$ac_ext\"") >&5
20799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20801 egrep -v '^ *\+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:20804: \$? = $ac_status" >&5
20805 (exit $ac_status); } >/dev/null; then
20806 if test -s conftest.err; then
20807 ac_cpp_err=$ac_c_preproc_warn_flag
20814 if test -z "$ac_cpp_err"; then
20815 eval "$ac_ac_Header=yes"
20817 echo "$as_me: failed program was:" >&5
20818 cat conftest.$ac_ext >&5
20819 eval "$ac_ac_Header=no"
20821 rm -f conftest.err conftest.$ac_ext
20823 echo "$as_me:20823: result: `eval echo '${'$ac_ac_Header'}'`" >&5
20824 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
20825 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
20826 cat >>confdefs.h <<EOF
20827 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
20834 # Checks for typedefs, structures, and compiler characteristics.
20835 echo "$as_me:20835: checking for $CC option to accept ANSI C" >&5
20836 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20837 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 ac_cv_prog_cc_stdc=no
20842 cat >conftest.$ac_ext <<_ACEOF
20843 #line 20843 "configure"
20844 #include "confdefs.h"
20845 #include <stdarg.h>
20847 #include <sys/types.h>
20848 #include <sys/stat.h>
20849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20850 struct buf { int x; };
20851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20852 static char *e (p, i)
20858 static char *f (char * (*g) (char **, int), char **p, ...)
20863 s = g (p, va_arg (v,int));
20867 int test (int i, double x);
20868 struct s1 {int (*f) (int a);};
20869 struct s2 {int (*f) (double a);};
20870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20881 # Don't try gcc -ansi; that turns off useful extensions and
20882 # breaks some systems' header files.
20883 # AIX -qlanglvl=ansi
20884 # Ultrix and OSF/1 -std1
20885 # HP-UX 10.20 and later -Ae
20886 # HP-UX older versions -Aa -D_HPUX_SOURCE
20887 # SVR4 -Xc -D__EXTENSIONS__
20888 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20890 CC="$ac_save_CC $ac_arg"
20891 rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:20892: \"$ac_compile\"") >&5
20893 (eval $ac_compile) 2>&5
20895 echo "$as_me:20895: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (eval echo "$as_me:20898: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 echo "$as_me:20901: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_cv_prog_cc_stdc=$ac_arg
20906 echo "$as_me: failed program was:" >&5
20907 cat conftest.$ac_ext >&5
20909 rm -f conftest.$ac_objext
20911 rm -f conftest.$ac_ext conftest.$ac_objext
20916 case "x$ac_cv_prog_cc_stdc" in
20918 echo "$as_me:20918: result: none needed" >&5
20919 echo "${ECHO_T}none needed" >&6 ;;
20921 echo "$as_me:20921: result: $ac_cv_prog_cc_stdc" >&5
20922 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20923 CC="$CC $ac_cv_prog_cc_stdc" ;;
20926 echo "$as_me:20926: checking for an ANSI C-conforming const" >&5
20927 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20928 if test "${ac_cv_c_const+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20932 #line 20932 "configure"
20933 #include "confdefs.h"
20938 /* FIXME: Include the comments suggested by Paul. */
20939 #ifndef __cplusplus
20940 /* Ultrix mips cc rejects this. */
20941 typedef int charset[2];
20943 /* SunOS 4.1.1 cc rejects this. */
20944 char const *const *ccp;
20946 /* NEC SVR4.0.2 mips cc rejects this. */
20947 struct point {int x, y;};
20948 static struct point const zero = {0,0};
20949 /* AIX XL C 1.02.0.0 rejects this.
20950 It does not let you subtract one const X* pointer from another in
20951 an arm of an if-expression whose if-part is not a constant
20953 const char *g = "string";
20954 ccp = &g + (g ? g-g : 0);
20955 /* HPUX 7.0 cc rejects these. */
20958 ccp = (char const *const *) p;
20959 { /* SCO 3.2v4 cc rejects this. */
20961 char const *s = 0 ? (char *) 0 : (char const *) 0;
20965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20966 int x[] = {25, 17};
20967 const int *foo = &x[0];
20970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20971 typedef const int *iptr;
20975 { /* AIX XL C 1.02.0.0 rejects this saying
20976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20977 struct s { int j; const int *ap[3]; };
20978 struct s *b; b->j = 5;
20980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20981 const int foo = 10;
20989 rm -f conftest.$ac_objext
20990 if { (eval echo "$as_me:20990: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>&5
20993 echo "$as_me:20993: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -s conftest.$ac_objext'
20996 { (eval echo "$as_me:20996: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:20999: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21003 echo "$as_me: failed program was:" >&5
21004 cat conftest.$ac_ext >&5
21007 rm -f conftest.$ac_objext conftest.$ac_ext
21009 echo "$as_me:21009: result: $ac_cv_c_const" >&5
21010 echo "${ECHO_T}$ac_cv_c_const" >&6
21011 if test $ac_cv_c_const = no; then
21013 cat >>confdefs.h <<\EOF
21019 echo "$as_me:21019: checking for ANSI C header files" >&5
21020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21021 if test "${ac_cv_header_stdc+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 cat >conftest.$ac_ext <<_ACEOF
21025 #line 21025 "configure"
21026 #include "confdefs.h"
21027 #include <stdlib.h>
21028 #include <stdarg.h>
21029 #include <string.h>
21033 if { (eval echo "$as_me:21033: \"$ac_cpp conftest.$ac_ext\"") >&5
21034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21036 egrep -v '^ *\+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:21039: \$? = $ac_status" >&5
21040 (exit $ac_status); } >/dev/null; then
21041 if test -s conftest.err; then
21042 ac_cpp_err=$ac_c_preproc_warn_flag
21049 if test -z "$ac_cpp_err"; then
21050 ac_cv_header_stdc=yes
21052 echo "$as_me: failed program was:" >&5
21053 cat conftest.$ac_ext >&5
21054 ac_cv_header_stdc=no
21056 rm -f conftest.err conftest.$ac_ext
21058 if test $ac_cv_header_stdc = yes; then
21059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21060 cat >conftest.$ac_ext <<_ACEOF
21061 #line 21061 "configure"
21062 #include "confdefs.h"
21063 #include <string.h>
21066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21067 egrep "memchr" >/dev/null 2>&1; then
21070 ac_cv_header_stdc=no
21076 if test $ac_cv_header_stdc = yes; then
21077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21078 cat >conftest.$ac_ext <<_ACEOF
21079 #line 21079 "configure"
21080 #include "confdefs.h"
21081 #include <stdlib.h>
21084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21085 egrep "free" >/dev/null 2>&1; then
21088 ac_cv_header_stdc=no
21094 if test $ac_cv_header_stdc = yes; then
21095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21096 if test "$cross_compiling" = yes; then
21099 cat >conftest.$ac_ext <<_ACEOF
21100 #line 21100 "configure"
21101 #include "confdefs.h"
21103 #if ((' ' & 0x0FF) == 0x020)
21104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21107 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21108 || ('j' <= (c) && (c) <= 'r') \
21109 || ('s' <= (c) && (c) <= 'z'))
21110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21118 for (i = 0; i < 256; i++)
21119 if (XOR (islower (i), ISLOWER (i))
21120 || toupper (i) != TOUPPER (i))
21125 rm -f conftest$ac_exeext
21126 if { (eval echo "$as_me:21126: \"$ac_link\"") >&5
21127 (eval $ac_link) 2>&5
21129 echo "$as_me:21129: \$? = $ac_status" >&5
21130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21131 { (eval echo "$as_me:21131: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21134 echo "$as_me:21134: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21138 echo "$as_me: program exited with status $ac_status" >&5
21139 echo "$as_me: failed program was:" >&5
21140 cat conftest.$ac_ext >&5
21141 ac_cv_header_stdc=no
21143 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
21147 echo "$as_me:21147: result: $ac_cv_header_stdc" >&5
21148 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21149 if test $ac_cv_header_stdc = yes; then
21151 cat >>confdefs.h <<\EOF
21152 #define STDC_HEADERS 1
21157 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
21159 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
21160 echo "$as_me:21160: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 cat >conftest.$ac_ext <<_ACEOF
21166 #line 21166 "configure"
21167 #include "confdefs.h"
21168 #include <$ac_header>
21170 if { (eval echo "$as_me:21170: \"$ac_cpp conftest.$ac_ext\"") >&5
21171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21173 egrep -v '^ *\+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 echo "$as_me:21176: \$? = $ac_status" >&5
21177 (exit $ac_status); } >/dev/null; then
21178 if test -s conftest.err; then
21179 ac_cpp_err=$ac_c_preproc_warn_flag
21186 if test -z "$ac_cpp_err"; then
21187 eval "$ac_ac_Header=yes"
21189 echo "$as_me: failed program was:" >&5
21190 cat conftest.$ac_ext >&5
21191 eval "$ac_ac_Header=no"
21193 rm -f conftest.err conftest.$ac_ext
21195 echo "$as_me:21195: result: `eval echo '${'$ac_ac_Header'}'`" >&5
21196 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
21197 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
21198 cat >>confdefs.h <<EOF
21199 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
21205 echo "$as_me:21205: checking for size_t" >&5
21206 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21207 if test "${ac_cv_type_size_t+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 cat >conftest.$ac_ext <<_ACEOF
21211 #line 21211 "configure"
21212 #include "confdefs.h"
21213 $ac_includes_default
21219 if (sizeof (size_t))
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:21226: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>&5
21229 echo "$as_me:21229: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -s conftest.$ac_objext'
21232 { (eval echo "$as_me:21232: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:21235: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_cv_type_size_t=yes
21239 echo "$as_me: failed program was:" >&5
21240 cat conftest.$ac_ext >&5
21241 ac_cv_type_size_t=no
21243 rm -f conftest.$ac_objext conftest.$ac_ext
21245 echo "$as_me:21245: result: $ac_cv_type_size_t" >&5
21246 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21247 if test $ac_cv_type_size_t = yes; then
21251 cat >>confdefs.h <<EOF
21252 #define size_t unsigned
21257 echo "$as_me:21257: checking whether struct tm is in sys/time.h or time.h" >&5
21258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21259 if test "${ac_cv_struct_tm+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 cat >conftest.$ac_ext <<_ACEOF
21263 #line 21263 "configure"
21264 #include "confdefs.h"
21265 #include <sys/types.h>
21271 struct tm *tp; tp->tm_sec;
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:21277: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>&5
21280 echo "$as_me:21280: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -s conftest.$ac_objext'
21283 { (eval echo "$as_me:21283: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:21286: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_struct_tm=time.h
21290 echo "$as_me: failed program was:" >&5
21291 cat conftest.$ac_ext >&5
21292 ac_cv_struct_tm=sys/time.h
21294 rm -f conftest.$ac_objext conftest.$ac_ext
21296 echo "$as_me:21296: result: $ac_cv_struct_tm" >&5
21297 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21298 if test $ac_cv_struct_tm = sys/time.h; then
21300 cat >>confdefs.h <<\EOF
21301 #define TM_IN_SYS_TIME 1
21306 echo "$as_me:21306: checking for uid_t in sys/types.h" >&5
21307 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21308 if test "${ac_cv_type_uid_t+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 cat >conftest.$ac_ext <<_ACEOF
21312 #line 21312 "configure"
21313 #include "confdefs.h"
21314 #include <sys/types.h>
21317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21318 egrep "uid_t" >/dev/null 2>&1; then
21319 ac_cv_type_uid_t=yes
21321 ac_cv_type_uid_t=no
21326 echo "$as_me:21326: result: $ac_cv_type_uid_t" >&5
21327 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21328 if test $ac_cv_type_uid_t = no; then
21330 cat >>confdefs.h <<\EOF
21334 cat >>confdefs.h <<\EOF
21340 echo "$as_me:21340: checking for inline" >&5
21341 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21342 if test "${ac_cv_c_inline+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 for ac_kw in inline __inline__ __inline; do
21347 cat >conftest.$ac_ext <<_ACEOF
21348 #line 21348 "configure"
21349 #include "confdefs.h"
21350 #ifndef __cplusplus
21351 static $ac_kw int static_foo () {return 0; }
21352 $ac_kw int foo () {return 0; }
21356 rm -f conftest.$ac_objext
21357 if { (eval echo "$as_me:21357: \"$ac_compile\"") >&5
21358 (eval $ac_compile) 2>&5
21360 echo "$as_me:21360: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -s conftest.$ac_objext'
21363 { (eval echo "$as_me:21363: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:21366: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_c_inline=$ac_kw; break
21370 echo "$as_me: failed program was:" >&5
21371 cat conftest.$ac_ext >&5
21373 rm -f conftest.$ac_objext conftest.$ac_ext
21377 echo "$as_me:21377: result: $ac_cv_c_inline" >&5
21378 echo "${ECHO_T}$ac_cv_c_inline" >&6
21379 case $ac_cv_c_inline in
21382 cat >>confdefs.h <<\EOF
21386 *) cat >>confdefs.h <<EOF
21387 #define inline $ac_cv_c_inline
21392 ########################################################################
21393 # Process vectorization and prefetch options for inner loops
21394 ########################################################################
21395 # check which loops to vectorize
21396 list_of_vectorized_sqrt=""
21397 if test "$enable_vectorized_sqrt" != "no"; then
21398 if test "$enable_vectorized_sqrt" = "yes" -o "$enable_vectorized_sqrt" = "all" ; then
21399 enable_vectorized_sqrt="normal,solvent,water,water-water"
21401 if echo $enable_vectorized_sqrt | grep "normal" >/dev/null; then
21402 list_of_vectorized_sqrt="normal "
21404 cat >>confdefs.h <<\EOF
21405 #define VECTORIZE_INVSQRT
21409 if echo $enable_vectorized_sqrt | grep "solvent" >/dev/null; then
21410 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}solvent "
21412 cat >>confdefs.h <<\EOF
21413 #define VECTORIZE_INVSQRT_S
21417 if echo $enable_vectorized_sqrt | sed 's/water-water//' | grep "water" >/dev/null; then
21418 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water "
21420 cat >>confdefs.h <<\EOF
21421 #define VECTORIZE_INVSQRT_W
21425 if echo $enable_vectorized_sqrt | grep "water-water" >/dev/null; then
21426 list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water-water "
21428 cat >>confdefs.h <<\EOF
21429 #define VECTORIZE_INVSQRT_WW
21434 if test -z "$list_of_vectorized_sqrt"; then
21435 list_of_vectorized_sqrt="no"
21438 # check loops to prefetch coordinates in
21439 list_of_prefetch_x=""
21440 if test "$enable_prefetch_x" != "no"; then
21441 if test "$enable_prefetch_x" = "yes" -o "$enable_prefetch_x" = "all"; then
21442 enable_prefetch_x="normal,solvent,water,water-water"
21444 if echo $enable_prefetch_x | grep "normal" >/dev/null; then
21445 list_of_prefetch_x="normal "
21447 cat >>confdefs.h <<\EOF
21452 if echo $enable_prefetch_x | grep "solvent" >/dev/null; then
21453 list_of_prefetch_x="${list_of_prefetch_x}solvent "
21455 cat >>confdefs.h <<\EOF
21456 #define PREFETCH_X_S
21460 if echo $enable_prefetch_x | sed 's/water-water//' | grep "water" >/dev/null; then
21461 list_of_prefetch_x="${list_of_prefetch_x}water "
21463 cat >>confdefs.h <<\EOF
21464 #define PREFETCH_X_W
21468 if echo $enable_prefetch_x | grep "water-water" >/dev/null; then
21469 list_of_prefetch_x="${list_of_prefetch_x}water-water "
21471 cat >>confdefs.h <<\EOF
21472 #define PREFETCH_X_WW
21477 if test -z "$list_of_prefetch_x"; then
21478 list_of_prefetch_x="no"
21481 # check loops to prefetch forces in
21482 list_of_prefetch_f=""
21483 if test "$enable_prefetch_f" != "no"; then
21484 if test "$enable_prefetch_f" = "yes" -o "$enable_prefetch_f" = "all"; then
21485 enable_prefetch_f="normal,solvent,water,water-water"
21487 if echo $enable_prefetch_f | grep "normal" >/dev/null; then
21488 list_of_prefetch_f="normal "
21490 cat >>confdefs.h <<\EOF
21495 if echo $enable_prefetch_f | grep "solvent" >/dev/null; then
21496 list_of_prefetch_f="${list_of_prefetch_f}solvent "
21498 cat >>confdefs.h <<\EOF
21499 #define PREFETCH_F_S
21503 if echo $enable_prefetch_f | sed 's/water-water//' | grep "water"; then
21504 list_of_prefetch_f="${list_of_prefetch_f}water "
21506 cat >>confdefs.h <<\EOF
21507 #define PREFETCH_F_W
21511 if echo $enable_prefetch_f | grep "water-water" >/dev/null; then
21512 list_of_prefetch_f="${list_of_prefetch_f}water-water "
21514 cat >>confdefs.h <<\EOF
21515 #define PREFETCH_F_WW
21520 if test -z "$list_of_prefetch_f"; then
21521 list_of_prefetch_f="no"
21524 ########################################################################
21525 # Final output stage
21526 ########################################################################
21529 # should be automatic, but doesnt seem to be?
21531 # To tell libraries apart, we use four versions of the name. For instance, libgmx:
21532 # libgmx single prec, no mpi.
21533 # libgmx_d double prec, no mpi.
21534 # libgmx_mpi single prec, mpi.
21535 # libgmx_mpi_d double prec, mpi.
21536 # However, the non-suffixed names are linked to the _mpi and/or _d suffixed
21537 # ones upon installation if that is the only version available.
21539 if test "$enable_mpi" = "yes"; then
21542 if test "$enable_float" = "no"; then
21543 LIBSUFFIX="${LIBSUFFIX}_d"
21546 # Unless the user has explicitly requested a prefix/suffix/transform, we
21547 # use _d on double precision files. Don't add anything for mpi, but at the
21548 # end we tell the user it is possible and smart to do in some cases!
21549 if test "$program_transform_name" = "s,x,x,"; then
21550 name_transform_provided=no;
21551 if test "$enable_float" = "no"; then
21552 program_transform_name="s,\$\$,_d,"
21555 name_transform_provided=yes;
21558 # Set exec-prefix from the architecture and cpu.
21559 if test "$exec_prefix" = "NONE"; then
21560 arch_exec_prefix=yes;
21561 if test -n "$gmxcpu"; then
21562 exec_prefix="\${prefix}/${host}/${gmxcpu}"
21564 exec_prefix="\${prefix}/${host}"
21568 ac_config_files="$ac_config_files Makefile include/Makefile include/types/Makefile src/Makefile src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile share/tutor/nmr2/Makefile share/tutor/water/Makefile share/tutor/speptide/Makefile share/template/Makefile share/top/Makefile share/html/Makefile share/html/images/Makefile share/html/online/Makefile man/Makefile man/man1/Makefile"
21570 cat >confcache <<\_ACEOF
21571 # This file is a shell script that caches the results of configure
21572 # tests run on this system so they can be shared between configure
21573 # scripts and configure runs, see configure's option --config-cache.
21574 # It is not useful on other systems. If it contains results you don't
21575 # want to keep, you may remove or edit it.
21577 # config.status only pays attention to the cache file if you give it
21578 # the --recheck option to rerun configure.
21580 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21582 # following values.
21586 # The following way of writing the cache mishandles newlines in values,
21587 # but we know of no workaround that is simple, portable, and efficient.
21588 # So, don't put newlines in cache variables' values.
21589 # Ultrix sh set writes to stderr and can't be redirected directly,
21590 # and sets the high bit in the cache file unless we assign to the vars.
21593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21595 # `set' does not quote correctly, so add quotes (double-quote
21596 # substitution turns \\\\ into \\, and sed turns \\ into \).
21599 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21602 # `set' quotes correctly as required by POSIX, so do not add quotes.
21604 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21613 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21615 if cmp -s $cache_file confcache; then :; else
21616 if test -w $cache_file; then
21617 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21618 cat confcache >$cache_file
21620 echo "not updating unwritable cache $cache_file"
21625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21626 # Let make expand exec_prefix.
21627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21631 # trailing colons and then remove the whole line if VPATH becomes empty
21632 # (actually we leave an empty line to preserve line numbers).
21633 if test "x$srcdir" = x.; then
21634 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21635 s/:*\$(srcdir):*/:/;
21636 s/:*\${srcdir}:*/:/;
21638 s/^\([^=]*=[ ]*\):*/\1/;
21644 DEFS=-DHAVE_CONFIG_H
21646 : ${CONFIG_STATUS=./config.status}
21647 ac_clean_files_save=$ac_clean_files
21648 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21649 { echo "$as_me:21649: creating $CONFIG_STATUS" >&5
21650 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21651 cat >$CONFIG_STATUS <<_ACEOF
21653 # Generated automatically by configure.
21654 # Run this file to recreate the current configuration.
21655 # Compiler output produced by configure, useful for debugging
21656 # configure, is in config.log if it exists.
21659 SHELL=\${CONFIG_SHELL-$SHELL}
21660 ac_cs_invocation="\$0 \$@"
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21673 # Name of the executable.
21674 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21676 if expr a : '\(a\)' >/dev/null 2>&1; then
21682 rm -f conf$$ conf$$.exe conf$$.file
21684 if ln -s conf$$.file conf$$ 2>/dev/null; then
21685 # We could just check for DJGPP; but this test a) works b) is more generic
21686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21687 if test -f conf$$.exe; then
21688 # Don't use ln at all; we don't have any links
21693 elif ln conf$$.file conf$$ 2>/dev/null; then
21698 rm -f conf$$ conf$$.exe conf$$.file
21700 as_executable_p="test -f"
21702 # Support unset when possible.
21703 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21710 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21711 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21712 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21713 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21714 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21715 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21716 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21717 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21720 # We need space, tab and new line, in precisely that order.
21726 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21732 # Files that config.status was made for.
21733 if test -n "$ac_config_files"; then
21734 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21737 if test -n "$ac_config_headers"; then
21738 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21741 if test -n "$ac_config_links"; then
21742 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21745 if test -n "$ac_config_commands"; then
21746 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21749 cat >>$CONFIG_STATUS <<\EOF
21752 \`$as_me' instantiates files from templates according to the
21753 current configuration.
21755 Usage: $0 [OPTIONS] [FILE]...
21757 -h, --help print this help, then exit
21758 -V, --version print version number, then exit
21759 -d, --debug don't remove temporary files
21760 --recheck update $as_me by reconfiguring in the same conditions
21761 --file=FILE[:TEMPLATE]
21762 instantiate the configuration file FILE
21763 --header=FILE[:TEMPLATE]
21764 instantiate the configuration header FILE
21766 Configuration files:
21769 Configuration headers:
21772 Configuration commands:
21775 Report bugs to <bug-autoconf@gnu.org>."
21778 cat >>$CONFIG_STATUS <<EOF
21780 GROMACS config.status 3.0
21781 configured by $0, generated by GNU Autoconf 2.50,
21782 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21784 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21785 Free Software Foundation, Inc.
21786 This config.status script is free software; the Free Software Foundation
21787 gives unlimited permission to copy, distribute and modify it."
21792 cat >>$CONFIG_STATUS <<\EOF
21793 # If no file are specified by the user, then we need to provide default
21794 # value. By we need to know if files were specified by the user.
21800 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21801 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21803 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21807 *) # This is not an option, so the user has probably given explicit
21809 ac_need_defaults=false;;
21813 # Handling of the options.
21815 cat >>$CONFIG_STATUS <<EOF
21816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21817 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21818 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21820 cat >>$CONFIG_STATUS <<\EOF
21821 --version | --vers* | -V )
21822 echo "$ac_cs_version"; exit 0 ;;
21824 # Conflict between --help and --header
21825 { { echo "$as_me:21825: error: ambiguous option: $1
21826 Try \`$0 --help' for more information." >&5
21827 echo "$as_me: error: ambiguous option: $1
21828 Try \`$0 --help' for more information." >&2;}
21829 { (exit 1); exit 1; }; };;
21830 --help | --hel | -h )
21831 echo "$ac_cs_usage"; exit 0 ;;
21832 --debug | --d* | -d )
21834 --file | --fil | --fi | --f )
21836 CONFIG_FILES="$CONFIG_FILES $1"
21837 ac_need_defaults=false;;
21838 --header | --heade | --head | --hea )
21840 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21841 ac_need_defaults=false;;
21843 # Handling of arguments.
21844 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21845 'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21846 'include/types/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/types/Makefile" ;;
21847 'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21848 'src/gmxlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/gmxlib/Makefile" ;;
21849 'src/mdlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/mdlib/Makefile" ;;
21850 'src/kernel/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/kernel/Makefile" ;;
21851 'src/tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21852 'src/ngmx/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/ngmx/Makefile" ;;
21853 'src/contrib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/contrib/Makefile" ;;
21854 'scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21855 'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
21856 'share/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
21857 'share/tutor/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/Makefile" ;;
21858 'share/tutor/gmxdemo/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/gmxdemo/Makefile" ;;
21859 'share/tutor/nmr1/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/nmr1/Makefile" ;;
21860 'share/tutor/nmr2/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/nmr2/Makefile" ;;
21861 'share/tutor/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/water/Makefile" ;;
21862 'share/tutor/speptide/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/speptide/Makefile" ;;
21863 'share/template/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/template/Makefile" ;;
21864 'share/top/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/top/Makefile" ;;
21865 'share/html/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/Makefile" ;;
21866 'share/html/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/images/Makefile" ;;
21867 'share/html/online/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/online/Makefile" ;;
21868 'man/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21869 'man/man1/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
21870 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21871 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21872 'src/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21874 # This is an error.
21875 -*) { { echo "$as_me:21875: error: unrecognized option: $1
21876 Try \`$0 --help' for more information." >&5
21877 echo "$as_me: error: unrecognized option: $1
21878 Try \`$0 --help' for more information." >&2;}
21879 { (exit 1); exit 1; }; } ;;
21880 *) { { echo "$as_me:21880: error: invalid argument: $1" >&5
21881 echo "$as_me: error: invalid argument: $1" >&2;}
21882 { (exit 1); exit 1; }; };;
21890 ## ----------------------- ##
21891 ## Running config.status. ##
21892 ## ----------------------- ##
21894 This file was extended by $as_me (GROMACS 3.0) 2.50, executed with
21895 > $ac_cs_invocation
21896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21901 cat >>$CONFIG_STATUS <<\EOF
21902 # If the user did not use the arguments to specify the items to instantiate,
21903 # then the envvar interface is used. Set only those that are not.
21904 # We use the long form for the default assignment because of an extremely
21905 # bizarre bug on SunOS 4.1.3.
21906 if $ac_need_defaults; then
21907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21912 # Create a temporary directory, and hook for its removal unless debugging.
21915 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21916 trap '{ (exit $?); exit $?; }' 1 2 13 15
21919 # Create a (secure) tmp directory for tmp files.
21922 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21923 test -n "$tmp" && test -d "$tmp"
21926 tmp=$TMPDIR/cs$$-$RANDOM
21927 (umask 077 && mkdir $tmp)
21930 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21931 { (exit 1); exit 1; }
21936 cat >>$CONFIG_STATUS <<EOF
21938 # INIT-COMMANDS section.
21942 for am_file in src/config.h; do
21943 case " $CONFIG_HEADERS " in
21945 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
21948 am_indx=\`expr \$am_indx + 1\`
21950 AMDEP_TRUE="$AMDEP_TRUE"
21951 ac_aux_dir="$ac_aux_dir"
21955 cat >>$CONFIG_STATUS <<EOF
21958 # CONFIG_FILES section.
21961 # No need to generate the scripts if there are no CONFIG_FILES.
21962 # This happens for instance when ./config.status config.h
21963 if test -n "\$CONFIG_FILES"; then
21964 # Protect against being on the right side of a sed subst in config.status.
21965 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21966 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21967 s,@SHELL@,$SHELL,;t t
21968 s,@exec_prefix@,$exec_prefix,;t t
21969 s,@prefix@,$prefix,;t t
21970 s,@program_transform_name@,$program_transform_name,;t t
21971 s,@bindir@,$bindir,;t t
21972 s,@sbindir@,$sbindir,;t t
21973 s,@libexecdir@,$libexecdir,;t t
21974 s,@datadir@,$datadir,;t t
21975 s,@sysconfdir@,$sysconfdir,;t t
21976 s,@sharedstatedir@,$sharedstatedir,;t t
21977 s,@localstatedir@,$localstatedir,;t t
21978 s,@libdir@,$libdir,;t t
21979 s,@includedir@,$includedir,;t t
21980 s,@oldincludedir@,$oldincludedir,;t t
21981 s,@infodir@,$infodir,;t t
21982 s,@mandir@,$mandir,;t t
21983 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21984 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21985 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21986 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21987 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21988 s,@ECHO_C@,$ECHO_C,;t t
21989 s,@ECHO_N@,$ECHO_N,;t t
21990 s,@ECHO_T@,$ECHO_T,;t t
21991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21992 s,@DEFS@,$DEFS,;t t
21993 s,@LIBS@,$LIBS,;t t
21994 s,@build@,$build,;t t
21995 s,@build_cpu@,$build_cpu,;t t
21996 s,@build_vendor@,$build_vendor,;t t
21997 s,@build_os@,$build_os,;t t
21998 s,@host@,$host,;t t
21999 s,@host_cpu@,$host_cpu,;t t
22000 s,@host_vendor@,$host_vendor,;t t
22001 s,@host_os@,$host_os,;t t
22002 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22003 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22005 s,@PACKAGE@,$PACKAGE,;t t
22006 s,@VERSION@,$VERSION,;t t
22007 s,@ACLOCAL@,$ACLOCAL,;t t
22008 s,@AUTOCONF@,$AUTOCONF,;t t
22009 s,@AUTOMAKE@,$AUTOMAKE,;t t
22010 s,@AUTOHEADER@,$AUTOHEADER,;t t
22011 s,@MAKEINFO@,$MAKEINFO,;t t
22012 s,@AMTAR@,$AMTAR,;t t
22013 s,@install_sh@,$install_sh,;t t
22014 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22016 s,@SET_MAKE@,$SET_MAKE,;t t
22017 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22018 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22019 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22020 s,@DEPDIR@,$DEPDIR,;t t
22021 s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t
22022 s,@DOUBLE_TRUE@,$DOUBLE_TRUE,;t t
22023 s,@DOUBLE_FALSE@,$DOUBLE_FALSE,;t t
22025 s,@CFLAGS@,$CFLAGS,;t t
22026 s,@LDFLAGS@,$LDFLAGS,;t t
22027 s,@CPPFLAGS@,$CPPFLAGS,;t t
22028 s,@ac_ct_CC@,$ac_ct_CC,;t t
22029 s,@EXEEXT@,$EXEEXT,;t t
22030 s,@OBJEXT@,$OBJEXT,;t t
22031 s,@_am_include@,$_am_include,;t t
22032 s,@_am_quote@,$_am_quote,;t t
22033 s,@CCDEPMODE@,$CCDEPMODE,;t t
22034 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22036 s,@FFLAGS@,$FFLAGS,;t t
22037 s,@ac_ct_F77@,$ac_ct_F77,;t t
22039 s,@CXXFLAGS@,$CXXFLAGS,;t t
22040 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22041 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22042 s,@CXXCPP@,$CXXCPP,;t t
22043 s,@MPICC@,$MPICC,;t t
22044 s,@FLIBS@,$FLIBS,;t t
22046 s,@GNU_CC_TRUE@,$GNU_CC_TRUE,;t t
22047 s,@GNU_CC_FALSE@,$GNU_CC_FALSE,;t t
22048 s,@AXP_ASM_CAPITAL_S_TRUE@,$AXP_ASM_CAPITAL_S_TRUE,;t t
22049 s,@AXP_ASM_CAPITAL_S_FALSE@,$AXP_ASM_CAPITAL_S_FALSE,;t t
22050 s,@IDENT@,$IDENT,;t t
22051 s,@LN_S@,$LN_S,;t t
22052 s,@ECHO@,$ECHO,;t t
22053 s,@RANLIB@,$RANLIB,;t t
22054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22055 s,@STRIP@,$STRIP,;t t
22056 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22057 s,@LIBTOOL@,$LIBTOOL,;t t
22058 s,@LIBOBJS@,$LIBOBJS,;t t
22059 s,@X_CFLAGS@,$X_CFLAGS,;t t
22060 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22061 s,@X_LIBS@,$X_LIBS,;t t
22062 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22063 s,@USE_X11_TRUE@,$USE_X11_TRUE,;t t
22064 s,@USE_X11_FALSE@,$USE_X11_FALSE,;t t
22065 s,@ASFLAGS@,$ASFLAGS,;t t
22067 s,@INCLUDES@,$INCLUDES,;t t
22068 s,@GMXLIB_LIBOBJS@,$GMXLIB_LIBOBJS,;t t
22069 s,@MDLIB_LIBOBJS@,$MDLIB_LIBOBJS,;t t
22070 s,@LIBSUFFIX@,$LIBSUFFIX,;t t
22075 cat >>$CONFIG_STATUS <<\EOF
22076 # Split the substitutions into bite-sized pieces for seds with
22077 # small command number limits, like on Digital OSF/1 and HP-UX.
22078 ac_max_sed_lines=48
22079 ac_sed_frag=1 # Number of current file.
22080 ac_beg=1 # First line for current file.
22081 ac_end=$ac_max_sed_lines # Line after last line for current file.
22084 while $ac_more_lines; do
22085 if test $ac_beg -gt 1; then
22086 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22088 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22090 if test ! -s $tmp/subs.frag; then
22091 ac_more_lines=false
22093 # The purpose of the label and of the branching condition is to
22094 # speed up the sed processing (if there are no `@' at all, there
22095 # is no need to browse any of the substitutions).
22096 # These are the two extra sed commands mentioned above.
22098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22099 if test -z "$ac_sed_cmds"; then
22100 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22102 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22104 ac_sed_frag=`expr $ac_sed_frag + 1`
22106 ac_end=`expr $ac_end + $ac_max_sed_lines`
22109 if test -z "$ac_sed_cmds"; then
22112 fi # test -n "$CONFIG_FILES"
22115 cat >>$CONFIG_STATUS <<\EOF
22116 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22119 - | *:- | *:-:* ) # input from stdin
22121 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22123 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22125 * ) ac_file_in=$ac_file.in ;;
22128 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22129 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22130 X"$ac_file" : 'X\(//\)[^/]' \| \
22131 X"$ac_file" : 'X\(//\)$' \| \
22132 X"$ac_file" : 'X\(/\)' \| \
22133 . : '\(.\)' 2>/dev/null ||
22135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22137 /^X\(\/\/\)$/{ s//\1/; q; }
22138 /^X\(\/\).*/{ s//\1/; q; }
22140 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22141 { case "$ac_dir" in
22142 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22146 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22147 case $as_mkdir_dir in
22148 # Skip DOS drivespec
22149 ?:) as_incr_dir=$as_mkdir_dir ;;
22151 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22152 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22157 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
22158 # A "../" for each directory in $ac_dir_suffix.
22159 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
22161 ac_dir_suffix= ac_dots=
22166 if test -z "$ac_dots"; then
22169 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
22171 [\\/]* | ?:[\\/]* )
22172 ac_srcdir=$srcdir$ac_dir_suffix;
22173 ac_top_srcdir=$srcdir ;;
22174 *) # Relative path.
22175 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22176 ac_top_srcdir=$ac_dots$srcdir ;;
22180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22181 *) ac_INSTALL=$ac_dots$INSTALL ;;
22184 if test x"$ac_file" != x-; then
22185 { echo "$as_me:22185: creating $ac_file" >&5
22186 echo "$as_me: creating $ac_file" >&6;}
22189 # Let's still pretend it is `configure' which instantiates (i.e., don't
22190 # use $as_me), people would be surprised to read:
22191 # /* config.h. Generated automatically by config.status. */
22192 configure_input="Generated automatically from `echo $ac_file_in |
22193 sed 's,.*/,,'` by configure."
22195 # First look for the input files in the build tree, otherwise in the
22197 ac_file_inputs=`IFS=:
22198 for f in $ac_file_in; do
22200 -) echo $tmp/stdin ;;
22202 # Absolute (can't be DOS-style, as IFS=:)
22203 test -f "$f" || { { echo "$as_me:22203: error: cannot find input file: $f" >&5
22204 echo "$as_me: error: cannot find input file: $f" >&2;}
22205 { (exit 1); exit 1; }; }
22208 if test -f "$f"; then
22211 elif test -f "$srcdir/$f"; then
22216 { { echo "$as_me:22216: error: cannot find input file: $f" >&5
22217 echo "$as_me: error: cannot find input file: $f" >&2;}
22218 { (exit 1); exit 1; }; }
22221 done` || { (exit 1); exit 1; }
22223 cat >>$CONFIG_STATUS <<EOF
22227 cat >>$CONFIG_STATUS <<\EOF
22229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22230 s,@configure_input@,$configure_input,;t t
22231 s,@srcdir@,$ac_srcdir,;t t
22232 s,@top_srcdir@,$ac_top_srcdir,;t t
22233 s,@INSTALL@,$ac_INSTALL,;t t
22234 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22236 if test x"$ac_file" != x-; then
22237 mv $tmp/out $ac_file
22245 cat >>$CONFIG_STATUS <<\EOF
22248 # CONFIG_HEADER section.
22251 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22252 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22254 # ac_d sets the value in "#define NAME VALUE" lines.
22255 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22256 ac_dB='[ ].*$,\1#\2'
22259 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22260 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22261 ac_uB='$,\1#\2define\3'
22265 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22268 - | *:- | *:-:* ) # input from stdin
22270 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22272 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22273 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22274 * ) ac_file_in=$ac_file.in ;;
22277 test x"$ac_file" != x- && { echo "$as_me:22277: creating $ac_file" >&5
22278 echo "$as_me: creating $ac_file" >&6;}
22280 # First look for the input files in the build tree, otherwise in the
22282 ac_file_inputs=`IFS=:
22283 for f in $ac_file_in; do
22285 -) echo $tmp/stdin ;;
22287 # Absolute (can't be DOS-style, as IFS=:)
22288 test -f "$f" || { { echo "$as_me:22288: error: cannot find input file: $f" >&5
22289 echo "$as_me: error: cannot find input file: $f" >&2;}
22290 { (exit 1); exit 1; }; }
22293 if test -f "$f"; then
22296 elif test -f "$srcdir/$f"; then
22301 { { echo "$as_me:22301: error: cannot find input file: $f" >&5
22302 echo "$as_me: error: cannot find input file: $f" >&2;}
22303 { (exit 1); exit 1; }; }
22306 done` || { (exit 1); exit 1; }
22307 # Remove the trailing spaces.
22308 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22312 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22313 # `conftest.undefs', that substitutes the proper values into
22314 # config.h.in to produce config.h. The first handles `#define'
22315 # templates, and the second `#undef' templates.
22316 # And first: Protect against being on the right side of a sed subst in
22317 # config.status. Protect against being in an unquoted here document
22318 # in config.status.
22319 rm -f conftest.defines conftest.undefs
22320 # Using a here document instead of a string reduces the quoting nightmare.
22321 # Putting comments in sed scripts is not portable.
22323 # `end' is used to avoid that the second main sed command (meant for
22324 # 0-ary CPP macros) applies to n-ary macro definitions.
22325 # See the Autoconf documentation for `clear'.
22326 cat >confdef2sed.sed <<\EOF
22331 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
22333 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22336 # If some macros were called several times there might be several times
22337 # the same #defines, which is useless. Nevertheless, we may not want to
22338 # sort them, since we want the *last* AC-DEFINE to be honored.
22339 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22340 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22341 rm -f confdef2sed.sed
22343 # This sed command replaces #undef with comments. This is necessary, for
22344 # example, in the case of _POSIX_SOURCE, which is predefined and required
22345 # on some systems where configure will not decide to define it.
22346 cat >>conftest.undefs <<\EOF
22347 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22350 # Break up conftest.defines because some shells have a limit on the size
22351 # of here documents, and old seds have small limits too (100 cmds).
22352 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22353 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22354 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22355 echo ' :' >>$CONFIG_STATUS
22356 rm -f conftest.tail
22357 while grep . conftest.defines >/dev/null
22359 # Write a limited-size here document to $tmp/defines.sed.
22360 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22361 # Speed up: don't consider the non `#define' lines.
22362 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22363 # Work around the forget-to-reset-the-flag bug.
22364 echo 't clr' >>$CONFIG_STATUS
22365 echo ': clr' >>$CONFIG_STATUS
22366 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22368 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22370 mv $tmp/out $tmp/in
22372 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22373 rm -f conftest.defines
22374 mv conftest.tail conftest.defines
22376 rm -f conftest.defines
22377 echo ' fi # egrep' >>$CONFIG_STATUS
22378 echo >>$CONFIG_STATUS
22380 # Break up conftest.undefs because some shells have a limit on the size
22381 # of here documents, and old seds have small limits too (100 cmds).
22382 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22383 rm -f conftest.tail
22384 while grep . conftest.undefs >/dev/null
22386 # Write a limited-size here document to $tmp/undefs.sed.
22387 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22388 # Speed up: don't consider the non `#undef'
22389 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22390 # Work around the forget-to-reset-the-flag bug.
22391 echo 't clr' >>$CONFIG_STATUS
22392 echo ': clr' >>$CONFIG_STATUS
22393 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22395 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22397 mv $tmp/out $tmp/in
22399 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22400 rm -f conftest.undefs
22401 mv conftest.tail conftest.undefs
22403 rm -f conftest.undefs
22405 cat >>$CONFIG_STATUS <<\EOF
22406 # Let's still pretend it is `configure' which instantiates (i.e., don't
22407 # use $as_me), people would be surprised to read:
22408 # /* config.h. Generated automatically by config.status. */
22409 if test x"$ac_file" = x-; then
22410 echo "/* Generated automatically by configure. */" >$tmp/config.h
22412 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22414 cat $tmp/in >>$tmp/config.h
22416 if test x"$ac_file" != x-; then
22417 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22418 { echo "$as_me:22418: $ac_file is unchanged" >&5
22419 echo "$as_me: $ac_file is unchanged" >&6;}
22421 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22422 X"$ac_file" : 'X\(//\)[^/]' \| \
22423 X"$ac_file" : 'X\(//\)$' \| \
22424 X"$ac_file" : 'X\(/\)' \| \
22425 . : '\(.\)' 2>/dev/null ||
22427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22429 /^X\(\/\/\)$/{ s//\1/; q; }
22430 /^X\(\/\).*/{ s//\1/; q; }
22432 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22433 { case "$ac_dir" in
22434 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22438 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22439 case $as_mkdir_dir in
22440 # Skip DOS drivespec
22441 ?:) as_incr_dir=$as_mkdir_dir ;;
22443 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22444 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22451 mv $tmp/config.h $ac_file
22455 rm -f $tmp/config.h
22459 cat >>$CONFIG_STATUS <<\EOF
22462 # CONFIG_COMMANDS section.
22464 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22465 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22466 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22469 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
22471 test x"$AMDEP_TRUE" != x"" ||
22472 for mf in $CONFIG_FILES; do
22474 Makefile) dirpart=.;;
22475 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
22478 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22479 # Extract the definition of DEP_FILES from the Makefile without
22481 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22482 test -z "$DEPDIR" && continue
22483 # When using ansi2knr, U may be empty or an underscore; expand it
22484 U=`sed -n -e '/^U = / s///p' < "$mf"`
22485 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22486 # We invoke sed twice because it is the simplest approach to
22487 # changing $(DEPDIR) to its actual value in the expansion.
22488 for file in `sed -n -e '
22489 /^DEP_FILES = .*\\\\$/ {
22498 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22499 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22500 # Make sure the directory exists.
22501 test -f "$dirpart/$file" && continue
22502 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
22503 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
22504 # echo "creating $dirpart/$file"
22505 echo '# dummy' > "$dirpart/$file"
22513 cat >>$CONFIG_STATUS <<\EOF
22515 { (exit 0); exit 0; }
22517 chmod +x $CONFIG_STATUS
22518 ac_clean_files=$ac_clean_files_save
22520 # configure is writing to config.log, and then calls config.status.
22521 # config.status does its own redirection, appending to config.log.
22522 # Unfortunately, on DOS this fails, as config.log is still kept open
22523 # by configure, so config.status won't be able to write to it; its
22524 # output is simply discarded. So we exec the FD to /dev/null,
22525 # effectively closing config.log, so it can be properly (re)opened and
22526 # appended to by config.status. When coming back to configure, we
22527 # need to make the FD available again.
22528 if test "$no_create" != yes; then
22531 $SHELL $CONFIG_STATUS || ac_cs_success=false
22533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22534 # would make configure fail if this is the last instruction.
22535 $ac_cs_success || { (exit 1); exit 1; }
22538 #########################################################
22539 # Echo some important info, to avoid stupid mistakes
22543 echo "GROMACS is ready to compile."
22545 eval "show_path=`echo ${exec_prefix} | sed -e s,NONE,${ac_default_prefix},`"
22547 echo "* Binaries and libraries for this host will be installed under"
22548 echo " ${show_path}"
22549 echo " (You can set it with the --prefix and --exec-prefix options.)"
22551 if test "$enable_float" = "no" -a "$name_transform_provided" = "no"; then
22553 echo "* You are compiling a double precision version of the package -"
22554 echo " program names will be suffixed with _d to avoid overwriting single"
22555 echo " precision files. You can override it with --program-suffix"
22558 if test "$name_transform_provided" = "no" -a "$enable_mpi" = "yes"; then
22560 echo "* Seems you are compiling with MPI support. You can install the MPI-"
22561 echo " enabled programs with suffixed names to have both MPI and non-MPI"
22562 echo " versions. This is useful e.g. on supercomputers where you usually"
22563 echo " cannot run MPI-linked programs on the login node."
22564 echo " Set a suffix with e.g. --program-suffix=_mpi (or _mpi_d for double)."
22565 echo " You only need MPI for mdrun, so if you already have non-MPI stuff"
22566 echo " installed you can issue make mdrun; make install-mdrun."
22569 if test "$enable_shared" = "yes"; then
22571 echo "* To save space, we use shared libraries. If this causes any problems,"
22572 echo " you can turn it off with --disable-shared."