Annotation of OpenXM_contrib/gmp/configure, Revision 1.1.1.4
1.1.1.2 maekawa 1: #! /bin/sh
1.1.1.4 ! ohara 2: # From configure.in Revision: 1.425.2.17 .
! 3: #
! 4: #
! 5: #
! 6: # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
! 7: # Foundation, Inc.
! 8: #
! 9: # This file is part of the GNU MP Library.
! 10: #
! 11: # The GNU MP Library is free software; you can redistribute it and/or modify
! 12: # it under the terms of the GNU Lesser General Public License as published
! 13: # by the Free Software Foundation; either version 2.1 of the License, or (at
! 14: # your option) any later version.
! 15: #
! 16: # The GNU MP Library is distributed in the hope that it will be useful, but
! 17: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 18: # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
! 19: # License for more details.
! 20: #
! 21: # You should have received a copy of the GNU Lesser General Public License
! 22: # along with the GNU MP Library; see the file COPYING.LIB. If not, write to
! 23: # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
! 24: # MA 02111-1307, USA.
! 25: #
1.1.1.2 maekawa 26: # Guess values for system-dependent variables and create Makefiles.
1.1.1.4 ! ohara 27: # Generated by Autoconf 2.52.
1.1.1.2 maekawa 28: #
1.1.1.4 ! ohara 29: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 30: # Free Software Foundation, Inc.
1.1.1.2 maekawa 31: # This configure script is free software; the Free Software Foundation
32: # gives unlimited permission to copy, distribute and modify it.
33:
1.1.1.4 ! ohara 34: # Check that we are running under the correct shell.
! 35: SHELL=${CONFIG_SHELL-/bin/sh}
! 36:
! 37: case X$ECHO in
! 38: X*--fallback-echo)
! 39: # Remove one level of quotation (which was required for Make).
! 40: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
! 41: ;;
! 42: esac
! 43:
! 44: echo=${ECHO-echo}
! 45: if test "X$1" = X--no-reexec; then
! 46: # Discard the --no-reexec flag, and continue.
! 47: shift
! 48: elif test "X$1" = X--fallback-echo; then
! 49: # Avoid inline document here, it may be left over
! 50: :
! 51: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
! 52: # Yippee, $echo works!
! 53: :
! 54: else
! 55: # Restart under the correct shell.
! 56: exec $SHELL "$0" --no-reexec ${1+"$@"}
! 57: fi
! 58:
! 59: if test "X$1" = X--fallback-echo; then
! 60: # used as fallback echo
! 61: shift
! 62: cat <<EOF
! 63: $*
! 64: EOF
! 65: exit 0
! 66: fi
! 67:
! 68: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 69: # if CDPATH is set.
! 70: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 71:
! 72: if test -z "$ECHO"; then
! 73: if test "X${echo_test_string+set}" != Xset; then
! 74: # find a string as large as possible, as long as the shell can cope with it
! 75: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
! 76: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
! 77: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
! 78: echo_test_string="`eval $cmd`" &&
! 79: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
! 80: then
! 81: break
! 82: fi
! 83: done
! 84: fi
! 85:
! 86: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 87: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 88: test "X$echo_testing_string" = "X$echo_test_string"; then
! 89: :
! 90: else
! 91: # The Solaris, AIX, and Digital Unix default echo programs unquote
! 92: # backslashes. This makes it impossible to quote backslashes using
! 93: # echo "$something" | sed 's/\\/\\\\/g'
! 94: #
! 95: # So, first we look for a working echo in the user's PATH.
! 96:
! 97: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 98: for dir in $PATH /usr/ucb; do
! 99: IFS="$lt_save_ifs"
! 100: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
! 101: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
! 102: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
! 103: test "X$echo_testing_string" = "X$echo_test_string"; then
! 104: echo="$dir/echo"
! 105: break
! 106: fi
! 107: done
! 108: IFS="$lt_save_ifs"
! 109:
! 110: if test "X$echo" = Xecho; then
! 111: # We didn't find a better echo, so look for alternatives.
! 112: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
! 113: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
! 114: test "X$echo_testing_string" = "X$echo_test_string"; then
! 115: # This shell has a builtin print -r that does the trick.
! 116: echo='print -r'
! 117: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
! 118: test "X$CONFIG_SHELL" != X/bin/ksh; then
! 119: # If we have ksh, try running configure again with it.
! 120: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
! 121: export ORIGINAL_CONFIG_SHELL
! 122: CONFIG_SHELL=/bin/ksh
! 123: export CONFIG_SHELL
! 124: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
! 125: else
! 126: # Try using printf.
! 127: echo='printf %s\n'
! 128: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 129: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 130: test "X$echo_testing_string" = "X$echo_test_string"; then
! 131: # Cool, printf works
! 132: :
! 133: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 134: test "X$echo_testing_string" = 'X\t' &&
! 135: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 136: test "X$echo_testing_string" = "X$echo_test_string"; then
! 137: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
! 138: export CONFIG_SHELL
! 139: SHELL="$CONFIG_SHELL"
! 140: export SHELL
! 141: echo="$CONFIG_SHELL $0 --fallback-echo"
! 142: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 143: test "X$echo_testing_string" = 'X\t' &&
! 144: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 145: test "X$echo_testing_string" = "X$echo_test_string"; then
! 146: echo="$CONFIG_SHELL $0 --fallback-echo"
! 147: else
! 148: # maybe with a smaller string...
! 149: prev=:
! 150:
! 151: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
! 152: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
! 153: then
! 154: break
! 155: fi
! 156: prev="$cmd"
! 157: done
! 158:
! 159: if test "$prev" != 'sed 50q "$0"'; then
! 160: echo_test_string=`eval $prev`
! 161: export echo_test_string
! 162: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
! 163: else
! 164: # Oops. We lost completely, so just stick with echo.
! 165: echo=echo
! 166: fi
! 167: fi
! 168: fi
! 169: fi
! 170: fi
! 171: fi
! 172:
! 173: # Copy echo and quote the copy suitably for passing to libtool from
! 174: # the Makefile, instead of quoting the original, which is used later.
! 175: ECHO=$echo
! 176: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
! 177: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
! 178: fi
! 179:
! 180: # Avoid depending upon Character Ranges.
! 181: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 182: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 183: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 184: as_cr_digits='0123456789'
! 185: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 186:
! 187: # Sed expression to map a string onto a valid variable name.
! 188: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 189:
! 190: # Sed expression to map a string onto a valid CPP name.
! 191: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 192:
! 193: # Be Bourne compatible
! 194: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 195: emulate sh
! 196: NULLCMD=:
! 197: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 198: set -o posix
! 199: fi
! 200:
! 201: # Name of the executable.
! 202: as_me=`echo "$0" |sed 's,.*[\\/],,'`
! 203:
! 204: if expr a : '\(a\)' >/dev/null 2>&1; then
! 205: as_expr=expr
! 206: else
! 207: as_expr=false
! 208: fi
! 209:
! 210: rm -f conf$$ conf$$.exe conf$$.file
! 211: echo >conf$$.file
! 212: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 213: # We could just check for DJGPP; but this test a) works b) is more generic
! 214: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 215: if test -f conf$$.exe; then
! 216: # Don't use ln at all; we don't have any links
! 217: as_ln_s='cp -p'
! 218: else
! 219: as_ln_s='ln -s'
! 220: fi
! 221: elif ln conf$$.file conf$$ 2>/dev/null; then
! 222: as_ln_s=ln
! 223: else
! 224: as_ln_s='cp -p'
! 225: fi
! 226: rm -f conf$$ conf$$.exe conf$$.file
! 227:
! 228: as_executable_p="test -f"
! 229:
! 230: # Support unset when possible.
! 231: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 232: as_unset=unset
! 233: else
! 234: as_unset=false
! 235: fi
! 236:
! 237: # NLS nuisances.
! 238: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
! 239: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
! 240: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
! 241: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
! 242: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
! 243: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
! 244: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
! 245: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
! 246:
! 247: # IFS
! 248: # We need space, tab and new line, in precisely that order.
! 249: as_nl='
! 250: '
! 251: IFS=" $as_nl"
! 252:
! 253: # CDPATH.
! 254: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
! 255:
! 256: # Name of the host.
! 257: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! 258: # so uname gets run too.
! 259: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
! 260:
! 261: exec 6>&1
! 262:
! 263: #
! 264: # Initializations.
! 265: #
1.1.1.2 maekawa 266: ac_default_prefix=/usr/local
1.1.1.4 ! ohara 267: cross_compiling=no
! 268: subdirs=
! 269: MFLAGS= MAKEFLAGS=
! 270: SHELL=${CONFIG_SHELL-/bin/sh}
! 271:
! 272: # Maximum number of lines to put in a shell here document.
! 273: # This variable seems obsolete. It should probably be removed, and
! 274: # only ac_max_sed_lines should be used.
! 275: : ${ac_max_here_lines=38}
! 276:
! 277: ac_unique_file="gmp-impl.h"
! 278: # Factoring default headers for most tests.
! 279: ac_includes_default="\
! 280: #include <stdio.h>
! 281: #if HAVE_SYS_TYPES_H
! 282: # include <sys/types.h>
! 283: #endif
! 284: #if HAVE_SYS_STAT_H
! 285: # include <sys/stat.h>
! 286: #endif
! 287: #if STDC_HEADERS
! 288: # include <stdlib.h>
! 289: # include <stddef.h>
! 290: #else
! 291: # if HAVE_STDLIB_H
! 292: # include <stdlib.h>
! 293: # endif
! 294: #endif
! 295: #if HAVE_STRING_H
! 296: # if !STDC_HEADERS && HAVE_MEMORY_H
! 297: # include <memory.h>
! 298: # endif
! 299: # include <string.h>
! 300: #endif
! 301: #if HAVE_STRINGS_H
! 302: # include <strings.h>
! 303: #endif
! 304: #if HAVE_INTTYPES_H
! 305: # include <inttypes.h>
! 306: #else
! 307: # if HAVE_STDINT_H
! 308: # include <stdint.h>
! 309: # endif
! 310: #endif
! 311: #if HAVE_UNISTD_H
! 312: # include <unistd.h>
! 313: #endif"
1.1.1.2 maekawa 314:
315: # Initialize some variables set by options.
1.1.1.4 ! ohara 316: ac_init_help=
1.1.1.2 maekawa 317: ac_init_version=false
318: # The variables have the same names as the options, with
319: # dashes changed to underlines.
1.1.1.4 ! ohara 320: cache_file=/dev/null
1.1.1.2 maekawa 321: exec_prefix=NONE
322: no_create=
323: no_recursion=
324: prefix=NONE
325: program_prefix=NONE
326: program_suffix=NONE
327: program_transform_name=s,x,x,
328: silent=
329: site=
330: srcdir=
331: verbose=
332: x_includes=NONE
333: x_libraries=NONE
1.1.1.4 ! ohara 334:
! 335: # Installation directory options.
! 336: # These are left unexpanded so users can "make install exec_prefix=/foo"
! 337: # and all the variables that are supposed to be based on exec_prefix
! 338: # by default will actually change.
! 339: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.2 maekawa 340: bindir='${exec_prefix}/bin'
341: sbindir='${exec_prefix}/sbin'
342: libexecdir='${exec_prefix}/libexec'
343: datadir='${prefix}/share'
344: sysconfdir='${prefix}/etc'
345: sharedstatedir='${prefix}/com'
346: localstatedir='${prefix}/var'
347: libdir='${exec_prefix}/lib'
348: includedir='${prefix}/include'
349: oldincludedir='/usr/include'
350: infodir='${prefix}/info'
351: mandir='${prefix}/man'
352:
1.1.1.4 ! ohara 353: # Identity of this package.
! 354: PACKAGE_NAME=
! 355: PACKAGE_TARNAME=
! 356: PACKAGE_VERSION=
! 357: PACKAGE_STRING=
! 358: PACKAGE_BUGREPORT=
1.1.1.2 maekawa 359:
360: ac_prev=
361: for ac_option
362: do
363: # If the previous option needs an argument, assign it.
364: if test -n "$ac_prev"; then
365: eval "$ac_prev=\$ac_option"
366: ac_prev=
367: continue
368: fi
369:
1.1.1.4 ! ohara 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1.1.2 maekawa 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.1.1.4 ! ohara 374: case $ac_option in
1.1.1.2 maekawa 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.1.1.4 ! ohara 379: bindir=$ac_optarg ;;
1.1.1.2 maekawa 380:
381: -build | --build | --buil | --bui | --bu)
1.1.1.4 ! ohara 382: ac_prev=build_alias ;;
1.1.1.2 maekawa 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.1.1.4 ! ohara 384: build_alias=$ac_optarg ;;
1.1.1.2 maekawa 385:
386: -cache-file | --cache-file | --cache-fil | --cache-fi \
387: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
388: ac_prev=cache_file ;;
389: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
390: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.1.1.4 ! ohara 391: cache_file=$ac_optarg ;;
! 392:
! 393: --config-cache | -C)
! 394: cache_file=config.cache ;;
1.1.1.2 maekawa 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.1.1.4 ! ohara 400: datadir=$ac_optarg ;;
1.1.1.2 maekawa 401:
402: -disable-* | --disable-*)
1.1.1.4 ! ohara 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1.1.2 maekawa 404: # Reject names that are not valid shell variable names.
1.1.1.4 ! ohara 405: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 406: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 407: { (exit 1); exit 1; }; }
! 408: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 409: eval "enable_$ac_feature=no" ;;
1.1.1.2 maekawa 410:
411: -enable-* | --enable-*)
1.1.1.4 ! ohara 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1.1.2 maekawa 413: # Reject names that are not valid shell variable names.
1.1.1.4 ! ohara 414: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 415: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 416: { (exit 1); exit 1; }; }
! 417: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 418: case $ac_option in
1.1.1.2 maekawa 419: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420: *) ac_optarg=yes ;;
421: esac
1.1.1.4 ! ohara 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1.1.2 maekawa 423:
424: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426: | --exec | --exe | --ex)
427: ac_prev=exec_prefix ;;
428: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430: | --exec=* | --exe=* | --ex=*)
1.1.1.4 ! ohara 431: exec_prefix=$ac_optarg ;;
1.1.1.2 maekawa 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
437: -help | --help | --hel | --he | -h)
1.1.1.4 ! ohara 438: ac_init_help=long ;;
! 439: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
! 440: ac_init_help=recursive ;;
! 441: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
! 442: ac_init_help=short ;;
! 443:
1.1.1.2 maekawa 444: -host | --host | --hos | --ho)
1.1.1.4 ! ohara 445: ac_prev=host_alias ;;
1.1.1.2 maekawa 446: -host=* | --host=* | --hos=* | --ho=*)
1.1.1.4 ! ohara 447: host_alias=$ac_optarg ;;
1.1.1.2 maekawa 448:
449: -includedir | --includedir | --includedi | --included | --include \
450: | --includ | --inclu | --incl | --inc)
451: ac_prev=includedir ;;
452: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
453: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.1.1.4 ! ohara 454: includedir=$ac_optarg ;;
1.1.1.2 maekawa 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.1.1.4 ! ohara 459: infodir=$ac_optarg ;;
1.1.1.2 maekawa 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.1.1.4 ! ohara 464: libdir=$ac_optarg ;;
1.1.1.2 maekawa 465:
466: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
467: | --libexe | --libex | --libe)
468: ac_prev=libexecdir ;;
469: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
470: | --libexe=* | --libex=* | --libe=*)
1.1.1.4 ! ohara 471: libexecdir=$ac_optarg ;;
1.1.1.2 maekawa 472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
474: | --localstate | --localstat | --localsta | --localst \
475: | --locals | --local | --loca | --loc | --lo)
476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.1.1.4 ! ohara 480: localstatedir=$ac_optarg ;;
1.1.1.2 maekawa 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.1.1.4 ! ohara 485: mandir=$ac_optarg ;;
1.1.1.2 maekawa 486:
487: -nfp | --nfp | --nf)
488: # Obsolete; use --without-fp.
489: with_fp=no ;;
490:
491: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492: | --no-cr | --no-c)
493: no_create=yes ;;
494:
495: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497: no_recursion=yes ;;
498:
499: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
500: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
501: | --oldin | --oldi | --old | --ol | --o)
502: ac_prev=oldincludedir ;;
503: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
504: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
505: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.1.1.4 ! ohara 506: oldincludedir=$ac_optarg ;;
1.1.1.2 maekawa 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.1.1.4 ! ohara 511: prefix=$ac_optarg ;;
1.1.1.2 maekawa 512:
513: -program-prefix | --program-prefix | --program-prefi | --program-pref \
514: | --program-pre | --program-pr | --program-p)
515: ac_prev=program_prefix ;;
516: -program-prefix=* | --program-prefix=* | --program-prefi=* \
517: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.1.1.4 ! ohara 518: program_prefix=$ac_optarg ;;
1.1.1.2 maekawa 519:
520: -program-suffix | --program-suffix | --program-suffi | --program-suff \
521: | --program-suf | --program-su | --program-s)
522: ac_prev=program_suffix ;;
523: -program-suffix=* | --program-suffix=* | --program-suffi=* \
524: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.1.1.4 ! ohara 525: program_suffix=$ac_optarg ;;
1.1.1.2 maekawa 526:
527: -program-transform-name | --program-transform-name \
528: | --program-transform-nam | --program-transform-na \
529: | --program-transform-n | --program-transform- \
530: | --program-transform | --program-transfor \
531: | --program-transfo | --program-transf \
532: | --program-trans | --program-tran \
533: | --progr-tra | --program-tr | --program-t)
534: ac_prev=program_transform_name ;;
535: -program-transform-name=* | --program-transform-name=* \
536: | --program-transform-nam=* | --program-transform-na=* \
537: | --program-transform-n=* | --program-transform-=* \
538: | --program-transform=* | --program-transfor=* \
539: | --program-transfo=* | --program-transf=* \
540: | --program-trans=* | --program-tran=* \
541: | --progr-tra=* | --program-tr=* | --program-t=*)
1.1.1.4 ! ohara 542: program_transform_name=$ac_optarg ;;
1.1.1.2 maekawa 543:
544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
545: | -silent | --silent | --silen | --sile | --sil)
546: silent=yes ;;
547:
548: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549: ac_prev=sbindir ;;
550: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551: | --sbi=* | --sb=*)
1.1.1.4 ! ohara 552: sbindir=$ac_optarg ;;
1.1.1.2 maekawa 553:
554: -sharedstatedir | --sharedstatedir | --sharedstatedi \
555: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
556: | --sharedst | --shareds | --shared | --share | --shar \
557: | --sha | --sh)
558: ac_prev=sharedstatedir ;;
559: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
560: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
561: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562: | --sha=* | --sh=*)
1.1.1.4 ! ohara 563: sharedstatedir=$ac_optarg ;;
1.1.1.2 maekawa 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.1.1.4 ! ohara 568: site=$ac_optarg ;;
1.1.1.2 maekawa 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.1.1.4 ! ohara 573: srcdir=$ac_optarg ;;
1.1.1.2 maekawa 574:
575: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
576: | --syscon | --sysco | --sysc | --sys | --sy)
577: ac_prev=sysconfdir ;;
578: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
579: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.1.1.4 ! ohara 580: sysconfdir=$ac_optarg ;;
1.1.1.2 maekawa 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.1.1.4 ! ohara 583: ac_prev=target_alias ;;
1.1.1.2 maekawa 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.1.1.4 ! ohara 585: target_alias=$ac_optarg ;;
1.1.1.2 maekawa 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
592:
593: -with-* | --with-*)
1.1.1.4 ! ohara 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1.1.2 maekawa 595: # Reject names that are not valid shell variable names.
1.1.1.4 ! ohara 596: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 597: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 598: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.1.1.4 ! ohara 600: case $ac_option in
1.1.1.2 maekawa 601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602: *) ac_optarg=yes ;;
603: esac
1.1.1.4 ! ohara 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1.1.2 maekawa 605:
606: -without-* | --without-*)
1.1.1.4 ! ohara 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1.1.2 maekawa 608: # Reject names that are not valid shell variable names.
1.1.1.4 ! ohara 609: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 610: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 611: { (exit 1); exit 1; }; }
! 612: ac_package=`echo $ac_package | sed 's/-/_/g'`
! 613: eval "with_$ac_package=no" ;;
1.1.1.2 maekawa 614:
615: --x)
616: # Obsolete; use --with-x.
617: with_x=yes ;;
618:
619: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
620: | --x-incl | --x-inc | --x-in | --x-i)
621: ac_prev=x_includes ;;
622: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
623: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.1.1.4 ! ohara 624: x_includes=$ac_optarg ;;
1.1.1.2 maekawa 625:
626: -x-libraries | --x-libraries | --x-librarie | --x-librari \
627: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
628: ac_prev=x_libraries ;;
629: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
630: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.1.1.4 ! ohara 631: x_libraries=$ac_optarg ;;
1.1.1.2 maekawa 632:
1.1.1.4 ! ohara 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 634: Try \`$0 --help' for more information." >&2
! 635: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 636: ;;
637:
638: *=*)
1.1.1.4 ! ohara 639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1.1.1.2 maekawa 640: # Reject names that are not valid shell variable names.
1.1.1.4 ! ohara 641: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 642: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 643: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 644: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
645: eval "$ac_envvar='$ac_optarg'"
646: export $ac_envvar ;;
647:
648: *)
1.1.1.4 ! ohara 649: # FIXME: should be removed in autoconf 3.0.
! 650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
! 651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1.1.2 maekawa 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.1.1.4 ! ohara 660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
! 661: { echo "$as_me: error: missing argument to $ac_option" >&2
! 662: { (exit 1); exit 1; }; }
! 663: fi
! 664:
! 665: # Be sure to have absolute paths.
! 666: for ac_var in exec_prefix prefix
! 667: do
! 668: eval ac_val=$`echo $ac_var`
! 669: case $ac_val in
! 670: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
! 671: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
! 672: { (exit 1); exit 1; }; };;
! 673: esac
! 674: done
! 675:
! 676: # Be sure to have absolute paths.
! 677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
! 678: localstatedir libdir includedir oldincludedir infodir mandir
! 679: do
! 680: eval ac_val=$`echo $ac_var`
! 681: case $ac_val in
! 682: [\\/$]* | ?:[\\/]* ) ;;
! 683: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
! 684: { (exit 1); exit 1; }; };;
! 685: esac
! 686: done
! 687:
! 688: # There might be people who depend on the old broken behavior: `$host'
! 689: # used to hold the argument of --host etc.
! 690: build=$build_alias
! 691: host=$host_alias
! 692: target=$target_alias
! 693:
! 694: # FIXME: should be removed in autoconf 3.0.
! 695: if test "x$host_alias" != x; then
! 696: if test "x$build_alias" = x; then
! 697: cross_compiling=maybe
! 698: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 699: If a cross compiler is detected then cross compile mode will be used." >&2
! 700: elif test "x$build_alias" != "x$host_alias"; then
! 701: cross_compiling=yes
! 702: fi
! 703: fi
! 704:
! 705: ac_tool_prefix=
! 706: test -n "$host_alias" && ac_tool_prefix=$host_alias-
! 707:
! 708: test "$silent" = yes && exec 6>/dev/null
! 709:
! 710: # Find the source files, if location was not specified.
! 711: if test -z "$srcdir"; then
! 712: ac_srcdir_defaulted=yes
! 713: # Try the directory containing this script, then its parent.
! 714: ac_prog=$0
! 715: ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
! 716: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
! 717: srcdir=$ac_confdir
! 718: if test ! -r $srcdir/$ac_unique_file; then
! 719: srcdir=..
! 720: fi
! 721: else
! 722: ac_srcdir_defaulted=no
! 723: fi
! 724: if test ! -r $srcdir/$ac_unique_file; then
! 725: if test "$ac_srcdir_defaulted" = yes; then
! 726: { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
! 727: { (exit 1); exit 1; }; }
! 728: else
! 729: { echo "$as_me: error: cannot find sources in $srcdir" >&2
! 730: { (exit 1); exit 1; }; }
! 731: fi
1.1.1.2 maekawa 732: fi
1.1.1.4 ! ohara 733: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! 734: ac_env_build_alias_set=${build_alias+set}
! 735: ac_env_build_alias_value=$build_alias
! 736: ac_cv_env_build_alias_set=${build_alias+set}
! 737: ac_cv_env_build_alias_value=$build_alias
! 738: ac_env_host_alias_set=${host_alias+set}
! 739: ac_env_host_alias_value=$host_alias
! 740: ac_cv_env_host_alias_set=${host_alias+set}
! 741: ac_cv_env_host_alias_value=$host_alias
! 742: ac_env_target_alias_set=${target_alias+set}
! 743: ac_env_target_alias_value=$target_alias
! 744: ac_cv_env_target_alias_set=${target_alias+set}
! 745: ac_cv_env_target_alias_value=$target_alias
! 746: ac_env_ABI_set=${ABI+set}
! 747: ac_env_ABI_value=$ABI
! 748: ac_cv_env_ABI_set=${ABI+set}
! 749: ac_cv_env_ABI_value=$ABI
! 750: ac_env_CC_set=${CC+set}
! 751: ac_env_CC_value=$CC
! 752: ac_cv_env_CC_set=${CC+set}
! 753: ac_cv_env_CC_value=$CC
! 754: ac_env_CFLAGS_set=${CFLAGS+set}
! 755: ac_env_CFLAGS_value=$CFLAGS
! 756: ac_cv_env_CFLAGS_set=${CFLAGS+set}
! 757: ac_cv_env_CFLAGS_value=$CFLAGS
! 758: ac_env_LDFLAGS_set=${LDFLAGS+set}
! 759: ac_env_LDFLAGS_value=$LDFLAGS
! 760: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! 761: ac_cv_env_LDFLAGS_value=$LDFLAGS
! 762: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! 763: ac_env_CPPFLAGS_value=$CPPFLAGS
! 764: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! 765: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! 766: ac_env_CPP_set=${CPP+set}
! 767: ac_env_CPP_value=$CPP
! 768: ac_cv_env_CPP_set=${CPP+set}
! 769: ac_cv_env_CPP_value=$CPP
! 770: ac_env_CXX_set=${CXX+set}
! 771: ac_env_CXX_value=$CXX
! 772: ac_cv_env_CXX_set=${CXX+set}
! 773: ac_cv_env_CXX_value=$CXX
! 774: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
! 775: ac_env_CXXFLAGS_value=$CXXFLAGS
! 776: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
! 777: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
! 778: ac_env_CXXCPP_set=${CXXCPP+set}
! 779: ac_env_CXXCPP_value=$CXXCPP
! 780: ac_cv_env_CXXCPP_set=${CXXCPP+set}
! 781: ac_cv_env_CXXCPP_value=$CXXCPP
! 782: ac_env_M4_set=${M4+set}
! 783: ac_env_M4_value=$M4
! 784: ac_cv_env_M4_set=${M4+set}
! 785: ac_cv_env_M4_value=$M4
! 786:
! 787: #
! 788: # Report the --help message.
! 789: #
! 790: if test "$ac_init_help" = "long"; then
1.1.1.2 maekawa 791: # Omit some internal or obsolete options to make the list less imposing.
792: # This message is too long to be a string in the A/UX 3.1 sh.
1.1.1.4 ! ohara 793: cat <<EOF
! 794: \`configure' configures this package to adapt to many kinds of systems.
1.1.1.2 maekawa 795:
1.1.1.4 ! ohara 796: Usage: $0 [OPTION]... [VAR=VALUE]...
1.1.1.2 maekawa 797:
1.1.1.4 ! ohara 798: To assign environment variables (e.g., CC, CFLAGS...), specify them as
! 799: VAR=VALUE. See below for descriptions of some of the useful variables.
1.1.1.2 maekawa 800:
801: Defaults for the options are specified in brackets.
802:
803: Configuration:
1.1.1.4 ! ohara 804: -h, --help display this help and exit
! 805: --help=short display options specific to this package
! 806: --help=recursive display the short help of all the included packages
! 807: -V, --version display version information and exit
! 808: -q, --quiet, --silent do not print \`checking...' messages
! 809: --cache-file=FILE cache test results in FILE [disabled]
! 810: -C, --config-cache alias for \`--cache-file=config.cache'
1.1.1.2 maekawa 811: -n, --no-create do not create output files
1.1.1.4 ! ohara 812: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1.1.1.2 maekawa 813:
814: EOF
815:
816: cat <<EOF
1.1.1.4 ! ohara 817: Installation directories:
1.1.1.2 maekawa 818: --prefix=PREFIX install architecture-independent files in PREFIX
819: [$ac_default_prefix]
820: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.4 ! ohara 821: [PREFIX]
1.1.1.2 maekawa 822:
1.1.1.4 ! ohara 823: By default, \`make install' will install all the files in
! 824: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
! 825: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
! 826: for instance \`--prefix=\$HOME'.
! 827:
! 828: For better control, use the options below.
! 829:
! 830: Fine tuning of the installation directories:
! 831: --bindir=DIR user executables [EPREFIX/bin]
! 832: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 833: --libexecdir=DIR program executables [EPREFIX/libexec]
! 834: --datadir=DIR read-only architecture-independent data [PREFIX/share]
! 835: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 836: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 837: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 838: --libdir=DIR object code libraries [EPREFIX/lib]
! 839: --includedir=DIR C header files [PREFIX/include]
! 840: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 841: --infodir=DIR info documentation [PREFIX/info]
! 842: --mandir=DIR man documentation [PREFIX/man]
1.1.1.2 maekawa 843: EOF
844:
845: cat <<\EOF
846:
847: Program names:
848: --program-prefix=PREFIX prepend PREFIX to installed program names
849: --program-suffix=SUFFIX append SUFFIX to installed program names
850: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
851:
1.1.1.4 ! ohara 852: System types:
! 853: --build=BUILD configure for building on BUILD [guessed]
! 854: --host=HOST build programs to run on HOST [BUILD]
! 855: EOF
! 856: fi
! 857:
! 858: if test -n "$ac_init_help"; then
! 859:
! 860: cat <<\EOF
! 861:
1.1.1.2 maekawa 862: Optional Features:
863: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1.1.1.4 ! ohara 864: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 maekawa 865: --disable-dependency-tracking Speeds up one-time builds
866: --enable-dependency-tracking Do not reject slow dependency extractors
867: --enable-maintainer-mode enable make rules and dependencies not useful
868: (and sometimes confusing) to the casual installer
1.1.1.4 ! ohara 869: --enable-assert enable ASSERT checking [default=no]
! 870: --enable-alloca how to get temp memory [default=reentrant]
! 871: --enable-cxx enable C++ support [default=no]
! 872: --enable-fft enable FFTs for multiplication [default=yes]
! 873: --enable-mpbsd build Berkley MP compatibility library
! 874: [default=no]
! 875: --enable-mpfr build MPFR [default=no]
! 876: --enable-nails use nails on limbs [default=no]
! 877: --enable-profiling build with profiler support [default=no]
! 878: --enable-shared[=PKGS]
! 879: build shared libraries [default=yes]
! 880: --enable-static[=PKGS]
! 881: build static libraries [default=yes]
! 882: --enable-fast-install[=PKGS]
! 883: optimize for fast installation [default=yes]
1.1.1.2 maekawa 884: --disable-libtool-lock avoid locking (might break parallel builds)
885:
886: Optional Packages:
1.1.1.4 ! ohara 887: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1.1.1.2 maekawa 888: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.4 ! ohara 889: --with-readline readline support in calc demo program
! 890: [default=detect]
! 891: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
! 892: --with-pic try to use only PIC/non-PIC objects [default=use
! 893: both]
! 894: --with-tags=TAGS include additional configurations [CXX,GCJ]
! 895:
! 896: Some influential environment variables:
! 897: ABI desired ABI (for processors supporting more than one ABI)
! 898: CC C compiler command
! 899: CFLAGS C compiler flags
! 900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
! 901: nonstandard directory <lib dir>
! 902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! 903: headers in a nonstandard directory <include dir>
! 904: CPP C preprocessor
! 905: CXX C++ compiler command
! 906: CXXFLAGS C++ compiler flags
! 907: CXXCPP C++ preprocessor
! 908: M4 m4 macro processor
! 909:
! 910: Use these variables to override the choices made by `configure' or to help
! 911: it to find libraries and programs with nonstandard names/locations.
! 912:
1.1.1.2 maekawa 913: EOF
914: fi
1.1.1.4 ! ohara 915:
! 916: if test "$ac_init_help" = "recursive"; then
! 917: # If there are subdirs, report their specific --help.
! 918: ac_popdir=`pwd`
! 919: for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
! 920: cd $ac_subdir
! 921: # A "../" for each directory in /$ac_subdir.
! 922: ac_dots=`echo $ac_subdir |
! 923: sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
! 924:
! 925: case $srcdir in
! 926: .) # No --srcdir option. We are building in place.
! 927: ac_sub_srcdir=$srcdir ;;
! 928: [\\/]* | ?:[\\/]* ) # Absolute path.
! 929: ac_sub_srcdir=$srcdir/$ac_subdir ;;
! 930: *) # Relative path.
! 931: ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
! 932: esac
! 933:
! 934: # Check for guested configure; otherwise get Cygnus style configure.
! 935: if test -f $ac_sub_srcdir/configure.gnu; then
! 936: echo
! 937: $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
! 938: elif test -f $ac_sub_srcdir/configure; then
! 939: echo
! 940: $SHELL $ac_sub_srcdir/configure --help=recursive
! 941: elif test -f $ac_sub_srcdir/configure.ac ||
! 942: test -f $ac_sub_srcdir/configure.in; then
! 943: echo
! 944: $ac_configure --help
! 945: else
! 946: echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
! 947: fi
! 948: cd $ac_popdir
! 949: done
! 950: fi
! 951:
! 952: test -n "$ac_init_help" && exit 0
1.1.1.2 maekawa 953: if $ac_init_version; then
954: cat <<\EOF
955:
1.1.1.4 ! ohara 956: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 957: Free Software Foundation, Inc.
1.1.1.2 maekawa 958: This configure script is free software; the Free Software Foundation
959: gives unlimited permission to copy, distribute and modify it.
1.1.1.4 ! ohara 960:
! 961: Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
! 962: Foundation, Inc.
! 963:
! 964: This file is part of the GNU MP Library.
! 965:
! 966: The GNU MP Library is free software; you can redistribute it and/or modify
! 967: it under the terms of the GNU Lesser General Public License as published
! 968: by the Free Software Foundation; either version 2.1 of the License, or (at
! 969: your option) any later version.
! 970:
! 971: The GNU MP Library is distributed in the hope that it will be useful, but
! 972: WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 973: or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
! 974: License for more details.
! 975:
! 976: You should have received a copy of the GNU Lesser General Public License
! 977: along with the GNU MP Library; see the file COPYING.LIB. If not, write to
! 978: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
! 979: MA 02111-1307, USA.
! 980:
1.1.1.2 maekawa 981: EOF
982: exit 0
983: fi
1.1.1.4 ! ohara 984: exec 5>config.log
! 985: cat >&5 <<EOF
! 986: This file contains any messages produced by compilers while
! 987: running configure, to aid debugging if configure makes a mistake.
! 988:
! 989: It was created by $as_me, which was
! 990: generated by GNU Autoconf 2.52. Invocation command line was
! 991:
! 992: $ $0 $@
! 993:
! 994: EOF
! 995: {
! 996: cat <<_ASUNAME
! 997: ## ---------- ##
! 998: ## Platform. ##
! 999: ## ---------- ##
! 1000:
! 1001: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 1002: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 1003: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 1004: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 1005: uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 1006:
! 1007: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! 1008: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
! 1009:
! 1010: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
! 1011: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
! 1012: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! 1013: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
! 1014: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
! 1015: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
! 1016: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
! 1017:
! 1018: PATH = $PATH
! 1019:
! 1020: _ASUNAME
! 1021: } >&5
! 1022:
! 1023: cat >&5 <<EOF
! 1024: ## ------------ ##
! 1025: ## Core tests. ##
! 1026: ## ------------ ##
! 1027:
! 1028: EOF
1.1.1.2 maekawa 1029:
1030: # Keep a trace of the command line.
1031: # Strip out --no-create and --no-recursion so they do not pile up.
1032: # Also quote any args containing shell meta-characters.
1033: ac_configure_args=
1.1.1.4 ! ohara 1034: ac_sep=
1.1.1.2 maekawa 1035: for ac_arg
1036: do
1.1.1.4 ! ohara 1037: case $ac_arg in
1.1.1.2 maekawa 1038: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039: | --no-cr | --no-c) ;;
1040: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1042: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.1.1.4 ! ohara 1043: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
! 1044: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
! 1045: ac_sep=" " ;;
! 1046: *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
! 1047: ac_sep=" " ;;
1.1.1.2 maekawa 1048: esac
1.1.1.4 ! ohara 1049: # Get rid of the leading space.
1.1.1.2 maekawa 1050: done
1051:
1.1.1.4 ! ohara 1052: # When interrupted or exit'd, cleanup temporary files, and complete
! 1053: # config.log. We remove comments because anyway the quotes in there
! 1054: # would cause problems or look ugly.
! 1055: trap 'exit_status=$?
! 1056: # Save into config.log some information that might help in debugging.
! 1057: echo >&5
! 1058: echo "## ----------------- ##" >&5
! 1059: echo "## Cache variables. ##" >&5
! 1060: echo "## ----------------- ##" >&5
! 1061: echo >&5
! 1062: # The following way of writing the cache mishandles newlines in values,
! 1063: {
! 1064: (set) 2>&1 |
! 1065: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
! 1066: *ac_space=\ *)
! 1067: sed -n \
! 1068: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 1069: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
! 1070: ;;
! 1071: *)
! 1072: sed -n \
! 1073: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 1074: ;;
! 1075: esac;
! 1076: } >&5
! 1077: sed "/^$/d" confdefs.h >conftest.log
! 1078: if test -s conftest.log; then
! 1079: echo >&5
! 1080: echo "## ------------ ##" >&5
! 1081: echo "## confdefs.h. ##" >&5
! 1082: echo "## ------------ ##" >&5
! 1083: echo >&5
! 1084: cat conftest.log >&5
! 1085: fi
! 1086: (echo; echo) >&5
! 1087: test "$ac_signal" != 0 &&
! 1088: echo "$as_me: caught signal $ac_signal" >&5
! 1089: echo "$as_me: exit $exit_status" >&5
! 1090: rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
! 1091: exit $exit_status
! 1092: ' 0
! 1093: for ac_signal in 1 2 13 15; do
! 1094: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
! 1095: done
! 1096: ac_signal=0
1.1.1.2 maekawa 1097:
1098: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099: rm -rf conftest* confdefs.h
1100: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101: echo >confdefs.h
1102:
1.1.1.4 ! ohara 1103: # Let the site file select an alternate cache file if it wants to.
1.1.1.2 maekawa 1104: # Prefer explicitly selected file to automatically selected ones.
1105: if test -z "$CONFIG_SITE"; then
1106: if test "x$prefix" != xNONE; then
1107: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1108: else
1109: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1110: fi
1111: fi
1112: for ac_site_file in $CONFIG_SITE; do
1113: if test -r "$ac_site_file"; then
1.1.1.4 ! ohara 1114: { echo "$as_me:1114: loading site script $ac_site_file" >&5
! 1115: echo "$as_me: loading site script $ac_site_file" >&6;}
! 1116: cat "$ac_site_file" >&5
1.1.1.2 maekawa 1117: . "$ac_site_file"
1118: fi
1119: done
1120:
1121: if test -r "$cache_file"; then
1.1.1.4 ! ohara 1122: # Some versions of bash will fail to source /dev/null (special
! 1123: # files actually), so we avoid doing that.
! 1124: if test -f "$cache_file"; then
! 1125: { echo "$as_me:1125: loading cache $cache_file" >&5
! 1126: echo "$as_me: loading cache $cache_file" >&6;}
! 1127: case $cache_file in
! 1128: [\\/]* | ?:[\\/]* ) . $cache_file;;
! 1129: *) . ./$cache_file;;
! 1130: esac
! 1131: fi
1.1.1.2 maekawa 1132: else
1.1.1.4 ! ohara 1133: { echo "$as_me:1133: creating cache $cache_file" >&5
! 1134: echo "$as_me: creating cache $cache_file" >&6;}
1.1.1.2 maekawa 1135: >$cache_file
1136: fi
1137:
1.1.1.4 ! ohara 1138: # Check that the precious variables saved in the cache have kept the same
! 1139: # value.
! 1140: ac_cache_corrupted=false
! 1141: for ac_var in `(set) 2>&1 |
! 1142: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
! 1143: eval ac_old_set=\$ac_cv_env_${ac_var}_set
! 1144: eval ac_new_set=\$ac_env_${ac_var}_set
! 1145: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
! 1146: eval ac_new_val="\$ac_env_${ac_var}_value"
! 1147: case $ac_old_set,$ac_new_set in
! 1148: set,)
! 1149: { echo "$as_me:1149: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 1150: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
! 1151: ac_cache_corrupted=: ;;
! 1152: ,set)
! 1153: { echo "$as_me:1153: error: \`$ac_var' was not set in the previous run" >&5
! 1154: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
! 1155: ac_cache_corrupted=: ;;
! 1156: ,);;
! 1157: *)
! 1158: if test "x$ac_old_val" != "x$ac_new_val"; then
! 1159: { echo "$as_me:1159: error: \`$ac_var' has changed since the previous run:" >&5
! 1160: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 1161: { echo "$as_me:1161: former value: $ac_old_val" >&5
! 1162: echo "$as_me: former value: $ac_old_val" >&2;}
! 1163: { echo "$as_me:1163: current value: $ac_new_val" >&5
! 1164: echo "$as_me: current value: $ac_new_val" >&2;}
! 1165: ac_cache_corrupted=:
! 1166: fi;;
! 1167: esac
! 1168: # Pass precious variables to config.status. It doesn't matter if
! 1169: # we pass some twice (in addition to the command line arguments).
! 1170: if test "$ac_new_set" = set; then
! 1171: case $ac_new_val in
! 1172: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1173: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
! 1174: ac_configure_args="$ac_configure_args '$ac_arg'"
! 1175: ;;
! 1176: *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
! 1177: ;;
! 1178: esac
! 1179: fi
! 1180: done
! 1181: if $ac_cache_corrupted; then
! 1182: { echo "$as_me:1182: error: changes in the environment can compromise the build" >&5
! 1183: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1184: { { echo "$as_me:1184: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1185: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 1186: { (exit 1); exit 1; }; }
! 1187: fi
! 1188:
1.1.1.2 maekawa 1189: ac_ext=c
1190: ac_cpp='$CPP $CPPFLAGS'
1.1.1.4 ! ohara 1191: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1192: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1193: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1194:
! 1195: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 1196: *c*,-n*) ECHO_N= ECHO_C='
! 1197: ' ECHO_T=' ' ;;
! 1198: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 1199: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 1200: esac
! 1201: echo "#! $SHELL" >conftest.sh
! 1202: echo "exit 0" >>conftest.sh
! 1203: chmod +x conftest.sh
! 1204: if { (echo "$as_me:1204: PATH=\".;.\"; conftest.sh") >&5
! 1205: (PATH=".;."; conftest.sh) 2>&5
! 1206: ac_status=$?
! 1207: echo "$as_me:1207: \$? = $ac_status" >&5
! 1208: (exit $ac_status); }; then
! 1209: ac_path_separator=';'
! 1210: else
! 1211: ac_path_separator=:
! 1212: fi
! 1213: PATH_SEPARATOR="$ac_path_separator"
! 1214: rm -f conftest.sh
! 1215:
! 1216: # If --target is not used then $target_alias is empty, but if say
! 1217: # "./configure athlon-pc-freebsd3.5" is used, then all three of
! 1218: # $build_alias, $host_alias and $target_alias are set to
! 1219: # "athlon-pc-freebsd3.5".
! 1220: #
! 1221: if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
! 1222: { { echo "$as_me:1222: error: --target is not appropriate for GMP
! 1223: Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
! 1224: explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
! 1225: manual for more on this)." >&5
! 1226: echo "$as_me: error: --target is not appropriate for GMP
! 1227: Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
! 1228: explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
! 1229: manual for more on this)." >&2;}
! 1230: { (exit 1); exit 1; }; }
! 1231: fi
1.1.1.2 maekawa 1232:
1.1.1.4 ! ohara 1233: gmp_configm4="config.m4"
! 1234: gmp_tmpconfigm4=cnfm4.tmp
! 1235: gmp_tmpconfigm4i=cnfm4i.tmp
! 1236: gmp_tmpconfigm4p=cnfm4p.tmp
! 1237: rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
1.1.1.2 maekawa 1238:
1.1.1.4 ! ohara 1239: # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
! 1240: # The pattern here tests for an absolute path the same way as
! 1241: # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
! 1242: case $srcdir in
! 1243: [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
! 1244: *) tmp="../$srcdir" ;;
! 1245: esac
! 1246: echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
! 1247:
! 1248: # All CPUs use asm-defs.m4
! 1249: echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
1.1.1.2 maekawa 1250:
1251: ac_aux_dir=
1252: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1253: if test -f $ac_dir/install-sh; then
1254: ac_aux_dir=$ac_dir
1255: ac_install_sh="$ac_aux_dir/install-sh -c"
1256: break
1257: elif test -f $ac_dir/install.sh; then
1258: ac_aux_dir=$ac_dir
1259: ac_install_sh="$ac_aux_dir/install.sh -c"
1260: break
1261: elif test -f $ac_dir/shtool; then
1262: ac_aux_dir=$ac_dir
1263: ac_install_sh="$ac_aux_dir/shtool install -c"
1264: break
1265: fi
1266: done
1267: if test -z "$ac_aux_dir"; then
1.1.1.4 ! ohara 1268: { { echo "$as_me:1268: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1269: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1270: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1271: fi
1272: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1273: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1274: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1275:
1.1.1.4 ! ohara 1276: # Make sure we can run config.sub.
! 1277: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 1278: { { echo "$as_me:1278: error: cannot run $ac_config_sub" >&5
! 1279: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 1280: { (exit 1); exit 1; }; }
! 1281:
! 1282: echo "$as_me:1282: checking build system type" >&5
! 1283: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 1284: if test "${ac_cv_build+set}" = set; then
! 1285: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1286: else
! 1287: ac_cv_build_alias=$build_alias
! 1288: test -z "$ac_cv_build_alias" &&
! 1289: ac_cv_build_alias=`$ac_config_guess`
! 1290: test -z "$ac_cv_build_alias" &&
! 1291: { { echo "$as_me:1291: error: cannot guess build type; you must specify one" >&5
! 1292: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 1293: { (exit 1); exit 1; }; }
! 1294: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 1295: { { echo "$as_me:1295: error: $ac_config_sub $ac_cv_build_alias failed." >&5
! 1296: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
! 1297: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1298:
1299: fi
1.1.1.4 ! ohara 1300: echo "$as_me:1300: result: $ac_cv_build" >&5
! 1301: echo "${ECHO_T}$ac_cv_build" >&6
! 1302: build=$ac_cv_build
! 1303: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1304: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1305: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 1306:
! 1307: echo "$as_me:1307: checking host system type" >&5
! 1308: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 1309: if test "${ac_cv_host+set}" = set; then
! 1310: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1311: else
! 1312: ac_cv_host_alias=$host_alias
! 1313: test -z "$ac_cv_host_alias" &&
! 1314: ac_cv_host_alias=$ac_cv_build_alias
! 1315: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 1316: { { echo "$as_me:1316: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 1317: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 1318: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1319:
1320: fi
1.1.1.4 ! ohara 1321: echo "$as_me:1321: result: $ac_cv_host" >&5
! 1322: echo "${ECHO_T}$ac_cv_host" >&6
! 1323: host=$ac_cv_host
! 1324: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1325: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1326: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1.1.2 maekawa 1327:
1.1.1.4 ! ohara 1328: tmp_host=`echo $host_cpu | sed 's/\./_/'`
! 1329: cat >>confdefs.h <<EOF
! 1330: #define HAVE_HOST_CPU_$tmp_host 1
! 1331: EOF
1.1.1.2 maekawa 1332:
1.1.1.4 ! ohara 1333: echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
1.1.1.2 maekawa 1334:
1335: # Find a good install program. We prefer a C program (faster),
1336: # so one script is as good as another. But avoid the broken or
1337: # incompatible versions:
1338: # SysV /etc/install, /usr/sbin/install
1339: # SunOS /usr/etc/install
1340: # IRIX /sbin/install
1341: # AIX /bin/install
1.1.1.4 ! ohara 1342: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1.1.2 maekawa 1343: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1344: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1345: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1346: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.4 ! ohara 1347: echo "$as_me:1347: checking for a BSD compatible install" >&5
! 1348: echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1.1.1.2 maekawa 1349: if test -z "$INSTALL"; then
1350: if test "${ac_cv_path_install+set}" = set; then
1.1.1.4 ! ohara 1351: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 1352: else
1.1.1.4 ! ohara 1353: ac_save_IFS=$IFS; IFS=$ac_path_separator
1.1.1.2 maekawa 1354: for ac_dir in $PATH; do
1.1.1.4 ! ohara 1355: IFS=$ac_save_IFS
1.1.1.2 maekawa 1356: # Account for people who put trailing slashes in PATH elements.
1.1.1.4 ! ohara 1357: case $ac_dir/ in
! 1358: / | ./ | .// | /cC/* \
! 1359: | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
! 1360: | /usr/ucb/* ) ;;
1.1.1.2 maekawa 1361: *)
1362: # OSF1 and SCO ODT 3.0 have their own names for install.
1363: # Don't use installbsd from OSF since it installs stuff as root
1364: # by default.
1365: for ac_prog in ginstall scoinst install; do
1.1.1.4 ! ohara 1366: if $as_executable_p "$ac_dir/$ac_prog"; then
1.1.1.2 maekawa 1367: if test $ac_prog = install &&
1.1.1.4 ! ohara 1368: grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1.1.1.2 maekawa 1369: # AIX install. It has an incompatible calling convention.
1370: :
1371: elif test $ac_prog = install &&
1.1.1.4 ! ohara 1372: grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1.1.1.2 maekawa 1373: # program-specific install script used by HP pwplus--don't use.
1374: :
1375: else
1376: ac_cv_path_install="$ac_dir/$ac_prog -c"
1377: break 2
1378: fi
1379: fi
1380: done
1381: ;;
1382: esac
1383: done
1384:
1385: fi
1386: if test "${ac_cv_path_install+set}" = set; then
1.1.1.4 ! ohara 1387: INSTALL=$ac_cv_path_install
1.1.1.2 maekawa 1388: else
1389: # As a last resort, use the slow shell script. We don't cache a
1390: # path for INSTALL within a source directory, because that will
1391: # break other packages using the cache if that directory is
1392: # removed, or if the path is relative.
1.1.1.4 ! ohara 1393: INSTALL=$ac_install_sh
1.1.1.2 maekawa 1394: fi
1395: fi
1.1.1.4 ! ohara 1396: echo "$as_me:1396: result: $INSTALL" >&5
! 1397: echo "${ECHO_T}$INSTALL" >&6
1.1.1.2 maekawa 1398:
1399: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1400: # It thinks the first close brace ends the variable substitution.
1401: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1402:
1403: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1404:
1405: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406:
1.1.1.4 ! ohara 1407: echo "$as_me:1407: checking whether build environment is sane" >&5
! 1408: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1.1.2 maekawa 1409: # Just in case
1410: sleep 1
1.1.1.4 ! ohara 1411: echo timestamp > conftest.file
1.1.1.2 maekawa 1412: # Do `set' in a subshell so we don't clobber the current shell's
1413: # arguments. Must try -L first in case configure is actually a
1414: # symlink; some systems play weird games with the mod time of symlinks
1415: # (eg FreeBSD returns the mod time of the symlink's containing
1416: # directory).
1417: if (
1.1.1.4 ! ohara 1418: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1.1.2 maekawa 1419: if test "$*" = "X"; then
1420: # -L didn't work.
1.1.1.4 ! ohara 1421: set X `ls -t $srcdir/configure conftest.file`
1.1.1.2 maekawa 1422: fi
1.1.1.4 ! ohara 1423: rm -f conftest.file
! 1424: if test "$*" != "X $srcdir/configure conftest.file" \
! 1425: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1.1.2 maekawa 1426:
1427: # If neither matched, then we have a broken ls. This can happen
1428: # if, for instance, CONFIG_SHELL is bash and it inherits a
1429: # broken ls alias from the environment. This has actually
1430: # happened. Such a system could not be considered "sane".
1.1.1.4 ! ohara 1431: { { echo "$as_me:1431: error: ls -t appears to fail. Make sure there is not a broken
! 1432: alias in your environment" >&5
! 1433: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
! 1434: alias in your environment" >&2;}
! 1435: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1436: fi
1437:
1.1.1.4 ! ohara 1438: test "$2" = conftest.file
1.1.1.2 maekawa 1439: )
1440: then
1441: # Ok.
1442: :
1443: else
1.1.1.4 ! ohara 1444: { { echo "$as_me:1444: error: newly created file is older than distributed files!
! 1445: Check your system clock" >&5
! 1446: echo "$as_me: error: newly created file is older than distributed files!
! 1447: Check your system clock" >&2;}
! 1448: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1449: fi
1.1.1.4 ! ohara 1450: echo "$as_me:1450: result: yes" >&5
! 1451: echo "${ECHO_T}yes" >&6
1.1.1.2 maekawa 1452: test "$program_prefix" != NONE &&
1.1.1.4 ! ohara 1453: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1.1.2 maekawa 1454: # Use a double $ so make ignores it.
1455: test "$program_suffix" != NONE &&
1.1.1.4 ! ohara 1456: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
! 1457: # Double any \ or $. echo might interpret backslashes.
! 1458: # By default was `s,x,x', remove it if useless.
! 1459: cat <<\_ACEOF >conftest.sed
! 1460: s/[\\$]/&&/g;s/;s,x,x,$//
! 1461: _ACEOF
! 1462: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
! 1463: rm conftest.sed
! 1464:
! 1465: # expand $ac_aux_dir to an absolute path
! 1466: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
! 1467:
! 1468: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
! 1469: # Use eval to expand $SHELL
! 1470: if eval "$MISSING --run true"; then
1.1.1.2 maekawa 1471: am_missing_run="$MISSING --run "
1472: else
1473: am_missing_run=
1474: am_backtick='`'
1.1.1.4 ! ohara 1475: { echo "$as_me:1475: WARNING: ${am_backtick}missing' script is too old or missing" >&5
! 1476: echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1.1.1.2 maekawa 1477: fi
1478:
1479: for ac_prog in mawk gawk nawk awk
1480: do
1.1.1.4 ! ohara 1481: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1.1.2 maekawa 1482: set dummy $ac_prog; ac_word=$2
1.1.1.4 ! ohara 1483: echo "$as_me:1483: checking for $ac_word" >&5
! 1484: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.1.1.2 maekawa 1485: if test "${ac_cv_prog_AWK+set}" = set; then
1.1.1.4 ! ohara 1486: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 1487: else
1488: if test -n "$AWK"; then
1489: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1490: else
1.1.1.4 ! ohara 1491: ac_save_IFS=$IFS; IFS=$ac_path_separator
1.1.1.2 maekawa 1492: ac_dummy="$PATH"
1493: for ac_dir in $ac_dummy; do
1.1.1.4 ! ohara 1494: IFS=$ac_save_IFS
1.1.1.2 maekawa 1495: test -z "$ac_dir" && ac_dir=.
1.1.1.4 ! ohara 1496: $as_executable_p "$ac_dir/$ac_word" || continue
! 1497: ac_cv_prog_AWK="$ac_prog"
! 1498: echo "$as_me:1498: found $ac_dir/$ac_word" >&5
! 1499: break
1.1.1.2 maekawa 1500: done
1.1.1.4 ! ohara 1501:
1.1.1.2 maekawa 1502: fi
1503: fi
1.1.1.4 ! ohara 1504: AWK=$ac_cv_prog_AWK
1.1.1.2 maekawa 1505: if test -n "$AWK"; then
1.1.1.4 ! ohara 1506: echo "$as_me:1506: result: $AWK" >&5
! 1507: echo "${ECHO_T}$AWK" >&6
1.1.1.2 maekawa 1508: else
1.1.1.4 ! ohara 1509: echo "$as_me:1509: result: no" >&5
! 1510: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 1511: fi
1512:
1.1.1.4 ! ohara 1513: test -n "$AWK" && break
1.1.1.2 maekawa 1514: done
1515:
1.1.1.4 ! ohara 1516: echo "$as_me:1516: checking whether ${MAKE-make} sets \${MAKE}" >&5
! 1517: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
! 1518: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1.1.1.2 maekawa 1519: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1.1.1.4 ! ohara 1520: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 1521: else
1.1.1.4 ! ohara 1522: cat >conftest.make <<\EOF
1.1.1.2 maekawa 1523: all:
1524: @echo 'ac_maketemp="${MAKE}"'
1525: EOF
1526: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.4 ! ohara 1527: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1.1.2 maekawa 1528: if test -n "$ac_maketemp"; then
1529: eval ac_cv_prog_make_${ac_make}_set=yes
1530: else
1531: eval ac_cv_prog_make_${ac_make}_set=no
1532: fi
1.1.1.4 ! ohara 1533: rm -f conftest.make
1.1.1.2 maekawa 1534: fi
1535: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.1.1.4 ! ohara 1536: echo "$as_me:1536: result: yes" >&5
! 1537: echo "${ECHO_T}yes" >&6
1.1.1.2 maekawa 1538: SET_MAKE=
1539: else
1.1.1.4 ! ohara 1540: echo "$as_me:1540: result: no" >&5
! 1541: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 1542: SET_MAKE="MAKE=${MAKE-make}"
1543: fi
1544:
1545: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1546: if test "${enable_dependency_tracking+set}" = set; then
1547: enableval="$enable_dependency_tracking"
1548:
1.1.1.4 ! ohara 1549: fi;
! 1550: if test "x$enable_dependency_tracking" != xno; then
1.1.1.2 maekawa 1551: am_depcomp="$ac_aux_dir/depcomp"
1.1.1.4 ! ohara 1552: AMDEPBACKSLASH='\'
1.1.1.2 maekawa 1553: fi
1554:
1.1.1.4 ! ohara 1555: if test "x$enable_dependency_tracking" != xno; then
! 1556: AMDEP_TRUE=
! 1557: AMDEP_FALSE='#'
1.1.1.2 maekawa 1558: else
1.1.1.4 ! ohara 1559: AMDEP_TRUE='#'
! 1560: AMDEP_FALSE=
1.1.1.2 maekawa 1561: fi
1562:
1.1.1.4 ! ohara 1563: rm -f .deps 2>/dev/null
! 1564: mkdir .deps 2>/dev/null
! 1565: if test -d .deps; then
1.1.1.2 maekawa 1566: DEPDIR=.deps
1567: else
1.1.1.4 ! ohara 1568: # MS-DOS does not allow filenames that begin with a dot.
1.1.1.2 maekawa 1569: DEPDIR=_deps
1570: fi
1.1.1.4 ! ohara 1571: rmdir .deps 2>/dev/null
1.1.1.2 maekawa 1572:
1.1.1.4 ! ohara 1573: # test to see if srcdir already configured
! 1574: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1.1.1.2 maekawa 1575: test -f $srcdir/config.status; then
1.1.1.4 ! ohara 1576: { { echo "$as_me:1576: error: source directory already configured; run \"make distclean\" there first" >&5
! 1577: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 1578: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 1579: fi
1.1.1.4 ! ohara 1580:
! 1581: # Define the identity of the package.
! 1582: PACKAGE=gmp
! 1583: VERSION=4.1.2
! 1584:
1.1.1.2 maekawa 1585: cat >>confdefs.h <<EOF
1586: #define PACKAGE "$PACKAGE"
1587: EOF
1588:
1589: cat >>confdefs.h <<EOF
1590: #define VERSION "$VERSION"
1591: EOF
1592:
1.1.1.4 ! ohara 1593: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
! 1594: # the ones we care about.
! 1595:
! 1596: # Autoconf 2.50 always computes EXEEXT. However we need to be
! 1597: # compatible with 2.13, for now. So we always define EXEEXT, but we
! 1598: # don't compute it.
! 1599:
! 1600: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
! 1601: # requests that it be used. This is a bit dumb.
! 1602: : ${OBJEXT=o}
! 1603:
! 1604: # Some tools Automake needs.
! 1605:
1.1.1.2 maekawa 1606: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1607:
1608: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1609:
1610: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1611:
1612: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1613:
1614: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1615:
1616: AMTAR=${AMTAR-"${am_missing_run}tar"}
1617:
1.1.1.4 ! ohara 1618: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1.1.2 maekawa 1619:
1.1.1.4 ! ohara 1620: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
! 1621:
! 1622: # We need awk for the "check" target. The system "awk" is bad on
! 1623: # some platforms.
! 1624:
! 1625: ac_config_headers="$ac_config_headers config.h:config.in"
! 1626:
! 1627: echo "$as_me:1627: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 1628: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1.1.1.2 maekawa 1629: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1630: if test "${enable_maintainer_mode+set}" = set; then
1631: enableval="$enable_maintainer_mode"
1632: USE_MAINTAINER_MODE=$enableval
1633: else
1634: USE_MAINTAINER_MODE=no
1.1.1.4 ! ohara 1635: fi;
! 1636: echo "$as_me:1636: result: $USE_MAINTAINER_MODE" >&5
! 1637: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1.1.1.2 maekawa 1638:
1639: if test $USE_MAINTAINER_MODE = yes; then
1640: MAINTAINER_MODE_TRUE=
1641: MAINTAINER_MODE_FALSE='#'
1642: else
1643: MAINTAINER_MODE_TRUE='#'
1644: MAINTAINER_MODE_FALSE=
1645: fi
1646: MAINT=$MAINTAINER_MODE_TRUE
1647:
1648: # Check whether --enable-assert or --disable-assert was given.
1649: if test "${enable_assert+set}" = set; then
1650: enableval="$enable_assert"
1.1.1.4 ! ohara 1651: case $enableval in
1.1.1.2 maekawa 1652: yes|no) ;;
1.1.1.4 ! ohara 1653: *) { { echo "$as_me:1653: error: bad value $enableval for --enable-assert, need yes or no" >&5
! 1654: echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
! 1655: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 1656: esac
1657: else
1658: enable_assert=no
1.1.1.4 ! ohara 1659: fi;
1.1.1.2 maekawa 1660:
1661: if test "$enable_assert" = "yes"; then
1.1.1.4 ! ohara 1662:
! 1663: cat >>confdefs.h <<\EOF
1.1.1.2 maekawa 1664: #define WANT_ASSERT 1
1665: EOF
1666:
1667: fi
1668:
1669: # Check whether --enable-alloca or --disable-alloca was given.
1670: if test "${enable_alloca+set}" = set; then
1671: enableval="$enable_alloca"
1.1.1.4 ! ohara 1672: case $enableval in
! 1673: alloca|malloc-reentrant|malloc-notreentrant) ;;
! 1674: yes|no|reentrant|notreentrant) ;;
! 1675: debug) ;;
! 1676: *)
! 1677: { { echo "$as_me:1677: error: bad value $enableval for --enable-alloca, need one of:
! 1678: yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
! 1679: echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
! 1680: yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
! 1681: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 1682: esac
1683: else
1.1.1.4 ! ohara 1684: enable_alloca=reentrant
! 1685: fi;
1.1.1.2 maekawa 1686:
1.1.1.4 ! ohara 1687: # IMPROVE ME: The default for C++ is disabled. The tests currently
! 1688: # performed below for a working C++ compiler are not particularly strong,
! 1689: # and in general can't be expected to get the right setup on their own. The
! 1690: # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
! 1691: # to CFLAGS takes only a small step towards this. It's also probably worth
! 1692: # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
! 1693: # work together. Some rather broken C++ installations were encountered
! 1694: # during testing, and though such things clearly aren't GMP's problem, if
! 1695: # --enable-cxx=detect were to be the default then some careful checks of
! 1696: # which, if any, C++ compiler on the system is up to scratch would be
! 1697: # wanted.
! 1698: #
! 1699: # Check whether --enable-cxx or --disable-cxx was given.
! 1700: if test "${enable_cxx+set}" = set; then
! 1701: enableval="$enable_cxx"
! 1702: case $enableval in
! 1703: yes|no|detect) ;;
! 1704: *) { { echo "$as_me:1704: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
! 1705: echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
! 1706: { (exit 1); exit 1; }; } ;;
! 1707: esac
! 1708: else
! 1709: enable_cxx=no
! 1710: fi;
1.1.1.2 maekawa 1711:
1712: # Check whether --enable-fft or --disable-fft was given.
1713: if test "${enable_fft+set}" = set; then
1714: enableval="$enable_fft"
1.1.1.4 ! ohara 1715: case $enableval in
1.1.1.2 maekawa 1716: yes|no) ;;
1.1.1.4 ! ohara 1717: *) { { echo "$as_me:1717: error: bad value $enableval for --enable-fft, need yes or no" >&5
! 1718: echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
! 1719: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 1720: esac
1721: else
1.1.1.4 ! ohara 1722: enable_fft=yes
! 1723: fi;
1.1.1.2 maekawa 1724:
1725: if test "$enable_fft" = "yes"; then
1.1.1.4 ! ohara 1726:
! 1727: cat >>confdefs.h <<\EOF
1.1.1.2 maekawa 1728: #define WANT_FFT 1
1729: EOF
1730:
1731: fi
1732:
1733: # Check whether --enable-mpbsd or --disable-mpbsd was given.
1734: if test "${enable_mpbsd+set}" = set; then
1735: enableval="$enable_mpbsd"
1.1.1.4 ! ohara 1736: case $enableval in
1.1.1.2 maekawa 1737: yes|no) ;;
1.1.1.4 ! ohara 1738: *) { { echo "$as_me:1738: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
! 1739: echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
! 1740: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 1741: esac
1742: else
1743: enable_mpbsd=no
1.1.1.4 ! ohara 1744: fi;
1.1.1.2 maekawa 1745:
1746: if test "$enable_mpbsd" = "yes"; then
1747: WANT_MPBSD_TRUE=
1748: WANT_MPBSD_FALSE='#'
1749: else
1750: WANT_MPBSD_TRUE='#'
1751: WANT_MPBSD_FALSE=
1752: fi
1753:
1754: # Check whether --enable-mpfr or --disable-mpfr was given.
1755: if test "${enable_mpfr+set}" = set; then
1756: enableval="$enable_mpfr"
1.1.1.4 ! ohara 1757: case $enableval in
1.1.1.2 maekawa 1758: yes|no) ;;
1.1.1.4 ! ohara 1759: *) { { echo "$as_me:1759: error: bad value $enableval for --enable-mpfr, need yes or no" >&5
! 1760: echo "$as_me: error: bad value $enableval for --enable-mpfr, need yes or no" >&2;}
! 1761: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 1762: esac
1763: else
1764: enable_mpfr=no
1.1.1.4 ! ohara 1765: fi;
1.1.1.2 maekawa 1766:
1767: if test "$enable_mpfr" = "yes"; then
1768: WANT_MPFR_TRUE=
1769: WANT_MPFR_FALSE='#'
1770: else
1771: WANT_MPFR_TRUE='#'
1772: WANT_MPFR_FALSE=
1773: fi
1774:
1.1.1.4 ! ohara 1775: # Check whether --enable-nails or --disable-nails was given.
! 1776: if test "${enable_nails+set}" = set; then
! 1777: enableval="$enable_nails"
! 1778: case $enableval in
! 1779: yes|no|[0-9]|[0-9][0-9]) ;;
! 1780: *) { { echo "$as_me:1780: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
! 1781: echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
! 1782: { (exit 1); exit 1; }; } ;;
! 1783: esac
! 1784: else
! 1785: enable_nails=no
! 1786: fi;
! 1787:
! 1788: case $enable_nails in
! 1789: yes) GMP_NAIL_BITS=2 ;;
! 1790: no) GMP_NAIL_BITS=0 ;;
! 1791: *) GMP_NAIL_BITS=$enable_nails ;;
! 1792: esac
! 1793:
! 1794: # Check whether --enable-profiling or --disable-profiling was given.
! 1795: if test "${enable_profiling+set}" = set; then
! 1796: enableval="$enable_profiling"
! 1797: case $enableval in
! 1798: no|prof|gprof) ;;
! 1799: *) { { echo "$as_me:1799: error: bad value $enableval for --enable-profiling, need no/prof/gprof" >&5
! 1800: echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof" >&2;}
! 1801: { (exit 1); exit 1; }; } ;;
! 1802: esac
! 1803: else
! 1804: enable_profiling=no
! 1805: fi;
! 1806:
! 1807: echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
! 1808:
! 1809: # -fomit-frame-pointer is incompatible with -pg, on x86s at least
! 1810: if test "$enable_profiling" = gprof; then
! 1811: fomit_frame_pointer=
! 1812: else
! 1813: fomit_frame_pointer="-fomit-frame-pointer"
! 1814: fi
! 1815:
! 1816: # Check whether --with-readline or --without-readline was given.
! 1817: if test "${with_readline+set}" = set; then
! 1818: withval="$with_readline"
! 1819: case $withval in
! 1820: yes|no|detect) ;;
! 1821: *) { { echo "$as_me:1821: error: bad value $withval for --with-readline, need yes/no/detect" >&5
! 1822: echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
! 1823: { (exit 1); exit 1; }; } ;;
! 1824: esac
! 1825: else
! 1826: with_readline=detect
! 1827: fi;
! 1828:
! 1829: # Table of compilers, options, and mpn paths. This code has various related
! 1830: # purposes
! 1831: #
! 1832: # - better default CC/CFLAGS selections than autoconf otherwise gives
! 1833: # - default CC/CFLAGS selections for extra CPU types specific to GMP
! 1834: # - a few tests for known bad compilers
! 1835: # - choice of ABIs on suitable systems
! 1836: # - selection of corresponding mpn search path
! 1837: #
! 1838: # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
! 1839: # called. User selections of CC etc are respected.
! 1840: #
! 1841: # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
! 1842: # pre-testing, since they of course depend on AC_PROG_CC, and also some of
! 1843: # them cache their results, which is not wanted.
! 1844: #
! 1845: # The ABI selection mechanism is unique to GMP. All that reaches autoconf
! 1846: # is a different selection of CC/CFLAGS according to the best ABI the system
! 1847: # supports, and/or what the user selects. Naturally the mpn assembler code
! 1848: # selected is very dependent on the ABI.
! 1849: #
! 1850: # The closest the standard tools come to a notion of ABI is something like
! 1851: # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
! 1852: # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
! 1853: # separate from the ABI used on them.
! 1854: #
! 1855: #
! 1856: # The variables set here are
! 1857: #
! 1858: # cclist the compiler choices
! 1859: # xx_cflags flags for compiler xx
! 1860: # xx_cppflags cpp flags for compiler xx
! 1861: # xx_cflags_optlist list of sets of optional flags
! 1862: # xx_cflags_yyy set yyy of optional flags for compiler xx
! 1863: # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
! 1864: # ar_flags extra flags for $AR
! 1865: # nm_flags extra flags for $NM
! 1866: # limb limb size, can be "longlong"
! 1867: # path mpn search path
! 1868: # extra_functions extra mpn functions
! 1869: #
! 1870: # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
! 1871: # tried, and the first flag that works will be used. An optlist like "arch
! 1872: # cpu optimize" can be used to get multiple independent sets of flags tried.
! 1873: # The first that works from each will be used. If no flag in a set works
! 1874: # then nothing from that set is added.
! 1875: #
! 1876: # For multiple ABIs, the scheme extends as follows.
! 1877: #
! 1878: # abilist set of ABI choices
! 1879: # cclist_aa compiler choices in ABI aa
! 1880: # xx_aa_cflags flags for xx in ABI aa
! 1881: # xx_aa_cppflags cpp flags for xx in ABI aa
! 1882: # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
! 1883: # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
! 1884: # xx_aa_ldflags -Wc,-foo flags for libtool linking
! 1885: # ar_aa_flags extra flags for $AR in ABI aa
! 1886: # nm_aa_flags extra flags for $NM in ABI aa
! 1887: # limb_aa limb size in ABI aa, can be "longlong"
! 1888: # path_aa mpn search path in ABI aa
! 1889: # extra_functions_aa extra mpn functions in ABI aa
! 1890: #
! 1891: # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
! 1892: # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
! 1893: # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
! 1894: # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
! 1895: # defined. This makes it easy to add some 64-bit compilers and flags to an
! 1896: # unadorned 32-bit set.
! 1897: #
! 1898: # limb=longlong (or limb_aa=longlong) applies to all compilers within that
! 1899: # ABI. It won't work to have some needing long long and some not, since a
! 1900: # single instantiated gmp.h will be used by both.
! 1901: #
! 1902: # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
! 1903: # also set here, with an ABI suffix.
! 1904: #
! 1905: #
! 1906: #
! 1907: # A table-driven approach like this to mapping cpu type to good compiler
! 1908: # options is a bit of a maintenance burden, but there's not much uniformity
! 1909: # between options specifications on different compilers. Some sort of
! 1910: # separately updatable tool might be cute.
! 1911: #
! 1912: # The use of lots of variables like this, direct and indirect, tends to
! 1913: # obscure when and how various things are done, but unfortunately it's
! 1914: # pretty much the only way. If shell subroutines were portable then actual
! 1915: # code like "if this .. do that" could be written, but attempting the same
! 1916: # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
! 1917: # hugely bloat the output.
! 1918:
! 1919: # abilist needs to be non-empty, "standard" is just a generic name here
! 1920: abilist="standard"
! 1921:
! 1922: # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
! 1923: # c89 over cc here. But note that on HP-UX c89 provides a castrated
! 1924: # environment, and would want to be excluded somehow. Maybe
! 1925: # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
! 1926: # we don't need to worry.
! 1927: #
! 1928: cclist="gcc cc"
! 1929:
! 1930: gcc_cflags="-g -O2"
! 1931: gcc_64_cflags="-g -O2"
! 1932: cc_cflags="-O"
! 1933: cc_64_cflags="-O"
! 1934:
! 1935: SPEED_CYCLECOUNTER_OBJ=
! 1936: cyclecounter_size=2
! 1937:
! 1938: HAVE_HOST_CPU_FAMILY_power=0
! 1939:
! 1940: HAVE_HOST_CPU_FAMILY_powerpc=0
! 1941:
! 1942: case $host in
! 1943:
! 1944: a29k*-*-*)
! 1945: path="a29k"
1.1.1.2 maekawa 1946: ;;
1.1.1.4 ! ohara 1947:
1.1.1.2 maekawa 1948: alpha*-*-*)
1.1.1.4 ! ohara 1949: case $host_cpu in
! 1950: alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;;
! 1951: alphaev6*) path="alpha/ev6 alpha/ev5 alpha" ;;
! 1952: *) path="alpha" ;;
! 1953: esac
! 1954: extra_functions="cntlz"
! 1955: gcc_cflags_optlist="cpu asm"
1.1.1.2 maekawa 1956:
1.1.1.4 ! ohara 1957: # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
! 1958: # gcc 2.95 and 3.0 know ev4, ev5, ev56, pca56, ev6.
! 1959: # gcc 3.1 pre-releases add ev67.
! 1960: #
! 1961: case $host_cpu in
! 1962: alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
! 1963: alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
! 1964: alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
! 1965: alphapca56 | alphapca57)
! 1966: gcc_cflags_cpu="-mcpu=pca56" ;;
! 1967: alphaev6) gcc_cflags_cpu="-mcpu=ev6" ;;
! 1968: alphaev67 | alphaev68)
! 1969: gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6" ;;
! 1970: esac
1.1.1.2 maekawa 1971:
1.1.1.4 ! ohara 1972: # On old versions of gcc, which don't know -mcpu=, we believe an
! 1973: # explicit -Wa,-mev5 etc will be necessary to put the assembler in
! 1974: # the right mode for our .asm files and longlong.h asm blocks.
! 1975: #
! 1976: # On newer versions of gcc, when -mcpu= is known, we must give a
! 1977: # -Wa which is at least as high as the code gcc will generate,
! 1978: # since the options ordering seems to make our setting override
! 1979: # that passed by gcc.
! 1980: #
! 1981: # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
! 1982: # ctlz and cttz (in 2.10.0 at least).
! 1983: #
! 1984: # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
! 1985: # to affect insns like ldbu which are expanded as macros when necessary.
! 1986: # Insns like ctlz which were never available as macros are always
! 1987: # accepted and always generate their plain code.
! 1988: #
! 1989: case $host_cpu in
! 1990: alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
! 1991: alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
! 1992: alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
! 1993: alphapca56 | alphapca57)
! 1994: gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
! 1995: alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
! 1996: alphaev67 | alphaev68)
! 1997: gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
! 1998: esac
1.1.1.2 maekawa 1999:
1.1.1.4 ! ohara 2000: # It might be better to ask "cc" whether it's Cray C or DEC C,
! 2001: # instead of relying on the OS part of $host. But it's hard to
! 2002: # imagine either of those compilers anywhere except their native
! 2003: # systems.
! 2004: #
! 2005: case $host in
! 2006: *-cray-unicos*)
! 2007: cc_cflags="-O" # no -g, it silently disables all optimizations
! 2008:
! 2009: echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
! 2010:
! 2011: # Don't perform any assembly syntax tests on this beast.
! 2012: gmp_asm_syntax_testing=no
! 2013: ;;
! 2014: *-*-osf*)
! 2015:
! 2016: echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
! 2017:
! 2018: cc_cflags=""
! 2019: cc_cflags_optlist="opt cpu"
! 2020:
! 2021: # not sure if -fast works on old versions, so make it optional
! 2022: cc_cflags_opt="-fast -O2"
! 2023:
! 2024: # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
! 2025: # Compaq C V6.3-029 adds ev67.
! 2026: #
! 2027: case $host_cpu in
! 2028: alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
! 2029: alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
! 2030: alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
! 2031: alphapca56 | alphapca57)
! 2032: cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
! 2033: alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
! 2034: alphaev67 | alphaev68)
! 2035: cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
! 2036: esac
! 2037: ;;
! 2038: *)
! 2039:
! 2040: echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
1.1.1.2 maekawa 2041:
1.1.1.4 ! ohara 2042: ;;
! 2043: esac
1.1.1.2 maekawa 2044:
1.1.1.4 ! ohara 2045: case $host in
! 2046: *-*-unicos*)
! 2047: # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
! 2048: ;;
! 2049: *)
! 2050: SPEED_CYCLECOUNTER_OBJ=alpha.lo
! 2051: cyclecounter_size=1 ;;
1.1.1.2 maekawa 2052: esac
2053: ;;
2054:
1.1.1.4 ! ohara 2055: # Cray vector machines.
! 2056: # This must come after alpha* so that we can recognize present and future
! 2057: # vector processors with a wildcard.
! 2058: *-cray-unicos*)
! 2059: gmp_asm_syntax_testing=no
! 2060: cclist="cc"
! 2061: # We used to have -hscalar0 here as a workaround for miscompilation of
! 2062: # mpz/import.c, but let's hope Cray fixes their bugs instead, since
! 2063: # -hscalar0 causes disastrously poor code to be generated.
! 2064: cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
! 2065: path="cray"
1.1.1.2 maekawa 2066: ;;
1.1.1.4 ! ohara 2067:
! 2068: arm*-*-*)
! 2069: path="arm"
! 2070: gcc_cflags="$gcc_cflags $fomit_frame_pointer"
! 2071: gcc_testlist="gcc-arm-umodsi"
! 2072: extra_functions="udiv"
! 2073:
! 2074: echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
! 2075:
1.1.1.2 maekawa 2076: ;;
1.1.1.4 ! ohara 2077:
! 2078: clipper*-*-*)
! 2079: path="clipper"
1.1.1.2 maekawa 2080: ;;
1.1.1.4 ! ohara 2081:
! 2082: # Fujitsu
! 2083: f30[01]-fujitsu-sysv*)
! 2084: cclist="gcc vcc"
! 2085: # FIXME: flags for vcc?
! 2086: vcc_cflags="-g"
! 2087: path="fujitsu"
1.1.1.2 maekawa 2088: ;;
2089:
1.1.1.4 ! ohara 2090: hppa*-*-*)
! 2091: # HP cc is K&R by default, but AM_C_PROTOTYPES will add "-Ae", or "-Aa
! 2092: # -D_HPUX_SOURCE", to put it into ansi mode, if possible.
! 2093:
! 2094: # default to pa7100
! 2095: gcc_cflags="-g -O2"
! 2096: gcc_cflags_optlist="arch"
! 2097: gcc_cflags_arch="-mpa-risc-1-1"
! 2098: cc_cflags="+DA1.1 +O2"
! 2099: path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32"
! 2100: extra_functions="udiv_qrnnd"
! 2101:
! 2102: SPEED_CYCLECOUNTER_OBJ=hppa.lo
! 2103: cyclecounter_size=1
! 2104:
! 2105: case $host in
! 2106: hppa1.0*-*-*)
! 2107: # override back to plain 1.0
! 2108: gcc_cflags_optlist=
! 2109: cc_cflags="+O2"
! 2110: path="pa32"
! 2111: ;;
! 2112: hppa7000*-*-*)
! 2113: path="pa32/hppa1_1 pa32"
! 2114: ;;
! 2115:
! 2116: hppa2.0*-*-*)
! 2117: abilist="2.0n 1.0"
! 2118:
! 2119: # FIXME: It's suspected that an assembler feature test might be
! 2120: # necessary before -mpa-risc-2-0 can be enabled, since it's not
! 2121: # clear (as of gcc 2.95.2) whether that option always gives an
! 2122: # explicit ".level 2.0" or whatever to the assembler. In any case,
! 2123: # under gcc 2.95.2 it only enables a few extra floating point insns,
! 2124: # so it's not very important.
! 2125: #
! 2126: # gmp_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
! 2127:
! 2128: # FIXME: path should be "pa32/hppa2_0 pa32/hppa1_1 pa32"
! 2129: path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32"
! 2130:
! 2131: # no gcc support for long long in 2.0n
! 2132: cclist_20n="cc"
! 2133: # +O3 causes problems with fp rounding in mpfr/tests/tdiv.
! 2134: cc_20n_cflags="+DA2.0 +e +O2"
! 2135: cc_20n_testlist="hpc-hppa-2-0"
! 2136: path_20n="pa64"
! 2137: limb_20n=longlong
! 2138: extra_functions_20n="umul_ppmm udiv_qrnnd"
! 2139: SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
! 2140: cyclecounter_size_20n=2
! 2141:
! 2142: # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for hppa2.0n.
! 2143: case $host in
! 2144: hppa2.0n-*-*) ;;
! 2145: *)
! 2146: # HPUX 11 or up is required to run 2.0w. Not sure about other
! 2147: # systems (GNU/Linux for instance), but lets assume they're ok.
! 2148: case $host in
! 2149: *-*-hpux1[1-9]*) abilist="2.0w $abilist" ;;
! 2150: *-*-hpux*) ;;
! 2151: *) abilist="2.0w $abilist" ;;
! 2152: esac
! 2153:
! 2154: # gcc support for 2.0w is in progress
! 2155: cclist_20w="cc"
! 2156: cc_20w_cflags="+DD64 +O2" # +O3 causes problems with fp rounding in mpfr/tests/tdiv.
! 2157: cc_20w_testlist="hpc-hppa-2-0"
! 2158: path_20w="pa64"
! 2159: extra_functions_20w="umul_ppmm udiv_qrnnd"
! 2160: SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
! 2161: cyclecounter_size_20w=2
! 2162: ;;
! 2163: esac
! 2164: ;;
! 2165: esac
1.1.1.2 maekawa 2166: ;;
1.1.1.4 ! ohara 2167:
! 2168: i960*-*-*)
! 2169: path="i960"
1.1.1.2 maekawa 2170: ;;
2171:
1.1.1.4 ! ohara 2172: ia64*-*-*)
! 2173: path="ia64"
! 2174:
! 2175: echo "include_mpn(\`ia64/default.m4')" >> $gmp_tmpconfigm4i
! 2176:
! 2177: SPEED_CYCLECOUNTER_OBJ=ia64.lo
1.1.1.2 maekawa 2178: ;;
2179:
1.1.1.4 ! ohara 2180: # Motorola 68k
! 2181: #
1.1.1.2 maekawa 2182: m68*-*-*)
1.1.1.4 ! ohara 2183:
! 2184: echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
! 2185:
! 2186: gcc_cflags="-g $fomit_frame_pointer"
! 2187: gcc_cflags_optlist="optimize arch"
! 2188: gcc_cflags_optimize="-O2" # munged below on gcc 2.95.x
! 2189:
! 2190: # gcc 2.7.2 doesn't know -m68060 or -mcpu32, so let them fall back
! 2191: # appropriately.
! 2192: # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
! 2193: #
! 2194: case $host in
! 2195: m68020-*-*) gcc_cflags_arch="-m68020" ;;
! 2196: m68030-*-*) gcc_cflags_arch="-m68030" ;;
! 2197: m68040-*-*) gcc_cflags_arch="-m68040" ;;
! 2198: m68060-*-*) gcc_cflags_arch="-m68060 -m68040" ;;
! 2199: m68360-*-*) gcc_cflags_arch="-mcpu32 -m68000" ;;
! 2200: *) gcc_cflags_arch="-m68000" ;;
! 2201: esac
! 2202:
! 2203: # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
! 2204: # tested. Will need to introduce an m68k/cpu32 if m68k/mc62020 ever uses
! 2205: # the bitfield instructions.
! 2206: case $host in
! 2207: m680[2346]0-*-* | m68360-*-*) path="m68k/mc68020 m68k"
! 2208: extra_functions="udiv umul" ;;
! 2209: *) path="m68k" ;;
! 2210: esac
1.1.1.2 maekawa 2211: ;;
2212:
1.1.1.4 ! ohara 2213: # Motorola 88k
! 2214: m88k*-*-*)
! 2215: path="m88k"
! 2216: ;;
! 2217: m88110*-*-*)
! 2218: # FIXME: Use `-O2'?
! 2219: gcc_cflags="-g -O -m88110"
! 2220: path="m88k/mc88110 m88k"
1.1.1.2 maekawa 2221: ;;
2222:
1.1.1.4 ! ohara 2223: # National Semiconductor 32k
! 2224: ns32k*-*-*)
! 2225: path="ns32k"
1.1.1.2 maekawa 2226: ;;
2227:
1.1.1.4 ! ohara 2228: # IRIX 5 and earlier can only run 32-bit o32.
! 2229: #
! 2230: # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
! 2231: # preferred over 64, but only because that's been the default in past
! 2232: # versions of GMP. The two are equally efficient.
! 2233: #
! 2234: # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
! 2235: # supporting n32 or 64.
! 2236: #
! 2237: # FIXME: It's necessary to pass -mabi or -n32 to the compiler when
! 2238: # linking. Libtool used to strip them, hence the ldflags here. It
! 2239: # looks like it has something equivalent itself now, so perhaps
! 2240: # these can be removed.
! 2241: #
! 2242: mips*-*-*)
! 2243: abilist="o32"
! 2244: gcc_cflags_optlist="abi"
! 2245: gcc_cflags_abi="-mabi=32"
! 2246: gcc_testlist="gcc-mips-o32"
! 2247: path="mips32"
! 2248: cc_cflags="-O2 -o32" # no -g, it disables all optimizations
! 2249: extra_functions="umul"
! 2250: # this suits both mips32 and mips64
! 2251:
! 2252: echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
! 2253:
! 2254: case $host in
! 2255: mips64*-*-* | mips*-*-irix6789*)
! 2256: abilist="n32 64 o32"
! 2257:
! 2258: cclist_n32="gcc cc"
! 2259: gcc_n32_cflags="-g -O2 -mabi=n32"
! 2260: gcc_n32_ldflags="-Wc,-mabi=n32"
! 2261: # Pass just -O1, MIPSpro 7.2.1 miscompiles mpn/generic/divrem_1.c
! 2262: # cvs version 1.20, for -O2 and -O3
! 2263: cc_n32_cflags="-O1 -n32" # no -g, it disables all optimizations
! 2264: cc_n32_ldflags="-Wc,-n32"
! 2265: limb_n32=longlong
! 2266: path_n32="mips64"
! 2267: extra_functions_n32="umul"
! 2268:
! 2269: cclist_64="gcc cc"
! 2270: gcc_64_cflags="-g -O2 -mabi=64"
! 2271: gcc_64_ldflags="-Wc,-mabi=64"
! 2272: cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
! 2273: cc_64_ldflags="-Wc,-64"
! 2274: path_64="mips64"
! 2275: extra_functions_64="umul"
! 2276: ;;
! 2277: esac
1.1.1.2 maekawa 2278: ;;
2279:
1.1.1.4 ! ohara 2280: # Darwin (powerpc-apple-darwin1.3) has gcc installed as cc.
! 2281: #
! 2282: # The darwin assembler doesn't accept "-mppc", so gcc_cflags_asm is
! 2283: # optional. The right flag would be "-arch ppc" or some such, but that's
! 2284: # already the default.
! 2285: #
! 2286: # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
! 2287: # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
! 2288: # and so always ends up running the plain preprocessor anyway. This could
! 2289: # be done in CPPFLAGS rather than CFLAGS, but there's not many places
! 2290: # preprocessing is done separately, and this is only a speedup, the normal
! 2291: # preprocessor gets run if there's any problems.
! 2292: #
! 2293: powerpc*-*-*)
! 2294: cat >>confdefs.h <<\EOF
! 2295: #define HAVE_HOST_CPU_FAMILY_powerpc 1
! 2296: EOF
! 2297:
! 2298: HAVE_HOST_CPU_FAMILY_powerpc=1
! 2299: cclist="gcc cc"
! 2300: cc_cflags="-g -O2"
! 2301: gcc_cflags="-g -O2 -mpowerpc"
! 2302: gcc_cflags_optlist="asm precomp cpu"
! 2303: gcc_cflags_asm="-Wa,-mppc"
! 2304: gcc_cflags_precomp="-no-cpp-precomp"
! 2305: extra_functions="umul"
! 2306:
! 2307: case $host_cpu in
! 2308: powerpc740 | powerpc750 | powerpc7400)
! 2309: path="powerpc32/750 powerpc32" ;;
! 2310: *)
! 2311: path="powerpc32" ;;
! 2312: esac
1.1.1.2 maekawa 2313:
1.1.1.4 ! ohara 2314: # gcc 2.7.2 knows -mcpu=403, 603, 604.
! 2315: # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
! 2316: # 801, 821, 823, 860.
! 2317: # gcc 3.0 adds 630, rs64a.
! 2318: # gcc 3.1 pre-releases add 405, 7400, 7450.
! 2319: #
! 2320: # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
! 2321: # done for all the others too. But what would be the correct
! 2322: # arrangements?
! 2323: #
! 2324: case $host_cpu in
! 2325: powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
! 2326: powerpc403) gcc_cflags_cpu="-mcpu=403" ;;
! 2327: powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
! 2328: powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
! 2329: powerpc602) gcc_cflags_cpu="-mcpu=602" ;;
! 2330: powerpc603) gcc_cflags_cpu="-mcpu=603" ;;
! 2331: powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
! 2332: powerpc604) gcc_cflags_cpu="-mcpu=604" ;;
! 2333: powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
! 2334: powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
! 2335: powerpc630) gcc_cflags_cpu="-mcpu=630" ;;
! 2336: powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
! 2337: powerpc7400) gcc_cflags_cpu="-mcpu=7400" ;;
! 2338: powerpc7450) gcc_cflags_cpu="-mcpu=7450" ;;
! 2339: powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
! 2340: powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
! 2341: powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
! 2342: powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
! 2343: powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
! 2344: esac
! 2345:
! 2346: case $host in
! 2347: *-*-aix*)
! 2348: cclist="gcc xlc cc"
! 2349: xlc_cflags="-g -O2 -qmaxmem=20000"
! 2350: xlc_cflags_optlist="arch"
! 2351:
! 2352: # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
! 2353: # 403, rs64a
! 2354: # -qarch=ppc is needed, so ensure everything falls back to that.
! 2355: # FIXME: Perhaps newer versions know more flavours.
! 2356: #
! 2357: case $host_cpu in
! 2358: powerpc403) xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
! 2359: powerpc602) xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
! 2360: powerpc603) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
! 2361: powerpc603e) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
! 2362: powerpc604) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
! 2363: powerpc604e) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
! 2364: *) xlc_cflags_arch="-qarch=ppc" ;;
! 2365: esac
! 2366: ;;
! 2367: esac
! 2368:
! 2369: case $host in
! 2370: powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-*)
! 2371: # On AIX a true 64-bit ABI is available.
! 2372: case $host in
! 2373: *-*-aix*)
! 2374: # Need -Wc to pass object type flags through to the linker.
! 2375: abilist="aix64 32"
! 2376: cclist_aix64="gcc xlc"
! 2377: gcc_aix64_cflags="-g -O2 -maix64 -mpowerpc64"
! 2378: gcc_aix64_cflags_optlist="cpu"
! 2379: gcc_aix64_ldflags="-Wc,-maix64"
! 2380: xlc_aix64_cflags="-g -O2 -q64 -qtune=pwr3 -qmaxmem=20000"
! 2381: xlc_aix64_ldflags="-Wc,-q64"
! 2382: # Must indicate object type to ar and nm
! 2383: ar_aix64_flags="-X64"
! 2384: nm_aix64_flags="-X64"
! 2385: path_aix64="powerpc64"
! 2386: extra_functions_aix64="umul"
! 2387: ;;
! 2388: esac
! 2389: ;;
! 2390: esac
1.1.1.2 maekawa 2391: ;;
2392:
1.1.1.4 ! ohara 2393: # POWER
! 2394: power-*-* | power[12]-*-* | power2sc-*-*)
! 2395: cat >>confdefs.h <<\EOF
! 2396: #define HAVE_HOST_CPU_FAMILY_power 1
! 2397: EOF
1.1.1.2 maekawa 2398:
1.1.1.4 ! ohara 2399: HAVE_HOST_CPU_FAMILY_power=1
! 2400: cclist="gcc"
! 2401: extra_functions="udiv_w_sdiv"
! 2402: path="power"
1.1.1.2 maekawa 2403:
1.1.1.4 ! ohara 2404: gcc_cflags_optlist="cpu"
! 2405: case $host in
! 2406: power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
! 2407: power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
! 2408: power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
! 2409: power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
! 2410: esac
! 2411: case $host in
! 2412: *-*-aix*)
! 2413: cclist="gcc xlc"
! 2414: xlc_cflags="-g -O2 -qarch=pwr -qmaxmem=20000"
! 2415: ;;
! 2416: esac
! 2417: ;;
1.1.1.2 maekawa 2418:
1.1.1.4 ! ohara 2419: # FIXME: ppc601 isn't accepted by config.sub.
! 2420: ppc601-*-*)
! 2421: path="power powerpc32"
! 2422: ;;
1.1.1.2 maekawa 2423:
1.1.1.4 ! ohara 2424: pyramid-*-*)
! 2425: path="pyr"
! 2426: ;;
1.1.1.2 maekawa 2427:
1.1.1.4 ! ohara 2428: # IBM s/370 and similar
! 2429: s3[6-9]0*-*-*)
! 2430: gcc_cflags="-g -O2 $fomit_frame_pointer"
! 2431: path="s390"
! 2432: extra_functions="udiv_w_sdiv"
! 2433: ;;
1.1.1.2 maekawa 2434:
1.1.1.4 ! ohara 2435: sh-*-*) path="sh" ;;
! 2436: sh2-*-*) path="sh/sh2 sh" ;;
1.1.1.2 maekawa 2437:
1.1.1.4 ! ohara 2438: *sparc*-*-*)
! 2439: # For cc and acc, -g disables -O, so it's not used
! 2440: cclist="gcc acc cc"
! 2441: path="sparc32"
! 2442: gcc_cflags="-g -O2"
! 2443: gcc_cflags_optlist="cpu"
! 2444: gcc_cflags_cpu=
! 2445: acc_cflags="-O2"
! 2446: cc_cflags="-O2"
! 2447:
! 2448: echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
! 2449:
! 2450: # FIXME: This should be selected according to the CPU
! 2451: if test x${floating_point} = xno
! 2452: then extra_functions="udiv_nfp"
! 2453: else extra_functions="udiv_fp"
! 2454: fi
1.1.1.2 maekawa 2455:
1.1.1.4 ! ohara 2456: case $host in
! 2457: sparcv8*-*-* | supersparc*-*-* | microsparc*-*-*)
! 2458: gcc_cflags_cpu="-mcpu=v8 -mv8"
! 2459: acc_cflags="-O2 -cg92"
! 2460: path="sparc32/v8 sparc32"
! 2461: extra_functions="udiv"
! 2462:
! 2463: case $host in
! 2464: *-*-solaris2.*) cc_cflags="-xtarget=native -xarch=v8 -xO4" ;;
! 2465: esac
! 2466: case $host in
! 2467: supersparc*-*-*) path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
! 2468: esac
! 2469: ;;
1.1.1.2 maekawa 2470:
1.1.1.4 ! ohara 2471: # sparc64-*-linux-gnu is a misnomer, since there's no support for any
! 2472: # 64-bit operations in user mode. We assume that a future release
! 2473: # will have some 64-bit support and that the gcc options will be the
! 2474: # same as on solaris.
! 2475: #
! 2476: # cc -xarch actually controls the ABI, hence it must be v8 for 32-bit,
! 2477: # even though the chip is v9.
! 2478: #
! 2479: sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
! 2480: path="sparc32/v9 sparc32/v8 sparc32"
! 2481: extra_functions="udiv_fp"
! 2482:
! 2483: SPEED_CYCLECOUNTER_OBJ=sparcv9.lo
! 2484:
! 2485: gcc_cflags="-g -O2 -Wa,-xarch=v8plus"
! 2486: gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9 -mcpu=v8 -mv8"
! 2487:
! 2488: cc_cflags="-xtarget=native -xarch=v8 -xO4"
! 2489:
! 2490: case $host in
! 2491: *-*-solaris2.[7-9])
! 2492: # solaris prior to 2.6 doesn't save registers properly, so the
! 2493: # 64-bit ABI is only available for 2.7 up
! 2494: abilist="64 32"
! 2495: path_64="sparc64"
! 2496: cclist_64="gcc cc"
! 2497: gcc_64_cflags="-g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
! 2498: gcc_64_ldflags="-Wc,-m64"
! 2499: # -fast enables different optimizations depending compiler version
! 2500: # -fns=no and -fsimple=1 disables some transformations that
! 2501: # conflict with IEEE 754, which some compiler versions perform.
! 2502: cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
! 2503: SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
! 2504: cyclecounter_size_64=2
! 2505: ;;
! 2506: *-*-*bsd*)
! 2507: # NetBSD and OpenBSD sparc64
! 2508: abilist="64"
! 2509: extra_functions=
! 2510: path="sparc64"
! 2511: gcc_cflags="-g -O2"
! 2512: cyclecounter_size=2
! 2513: ;;
! 2514: esac
! 2515: ;;
! 2516: esac
! 2517: ;;
! 2518:
! 2519: # VAX
! 2520: vax*-*-*)
! 2521: # Currently (version 3.0) gcc on vax always uses a frame pointer
! 2522: # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
! 2523: # will be ignored.
! 2524: #
! 2525: gcc_cflags="-g -O2 $fomit_frame_pointer"
! 2526: path="vax"
! 2527: extra_functions="udiv_w_sdiv"
! 2528: ;;
1.1.1.2 maekawa 2529:
1.1.1.4 ! ohara 2530: # AMD and Intel x86 configurations
! 2531: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
! 2532: cat >>confdefs.h <<\EOF
! 2533: #define HAVE_HOST_CPU_FAMILY_x86 1
1.1.1.2 maekawa 2534: EOF
2535:
1.1.1.4 ! ohara 2536: # Rumour has it gcc -O2 used to give worse register allocation than just
! 2537: # -O, but lets assume that's no longer true.
! 2538: gcc_cflags="-g -O2 $fomit_frame_pointer"
1.1.1.2 maekawa 2539:
1.1.1.4 ! ohara 2540: echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
1.1.1.2 maekawa 2541:
1.1.1.4 ! ohara 2542: extra_functions="udiv umul"
! 2543: CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
1.1.1.2 maekawa 2544:
1.1.1.4 ! ohara 2545: # Availability of rdtsc is checked at run-time.
! 2546: SPEED_CYCLECOUNTER_OBJ=pentium.lo
1.1.1.2 maekawa 2547:
1.1.1.4 ! ohara 2548: # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
! 2549: # represent -mcpu= since -m486 doesn't generate 486 specific insns. The
! 2550: # -mcpu= and -march= options will fail, leaving just -m486.
! 2551: #
! 2552: # gcc 2.95.2 adds k6, pentium and pentiumpro, and allows -march= and
! 2553: # -mcpu=.
! 2554: #
! 2555: # gcc 3.0 adds athlon.
! 2556: #
! 2557: # gcc 3.1 adds pentium4.
1.1.1.2 maekawa 2558:
1.1.1.4 ! ohara 2559: # Defaults for anything not otherwise mentioned.
! 2560: path="x86"
! 2561: gcc_cflags_optlist="cpu arch"
! 2562: gcc_cflags_cpu="-mcpu=i486 -m486"
! 2563: gcc_cflags_arch="-march=i486"
! 2564:
! 2565: case $host in
! 2566: i386*-*-*)
! 2567: # Because i386 means generic x86, -mcpu=i486 is used since that
! 2568: # should better suit newer processors.
! 2569: # FIXME: How would a user ask for an actual 80386? Currently only by
! 2570: # using CFLAGS="-mcpu=386" or whatever.
! 2571: gcc_cflags_cpu="-mcpu=i486 -m486"
! 2572: gcc_cflags_arch="-march=i386"
! 2573: ;;
! 2574: i586*-*-* | pentium-*-* | pentiummmx-*-*)
! 2575: gcc_cflags_cpu="-mcpu=pentium -m486"
! 2576: gcc_cflags_arch="-march=pentium"
! 2577: ;;
! 2578: i686*-*-* | pentiumpro-*-* | pentium[23]-*-*)
! 2579: gcc_cflags_cpu="-mcpu=pentiumpro -mcpu=i486 -m486"
! 2580: gcc_cflags_arch="-march=pentiumpro -march=pentium -march=i486"
! 2581: ;;
! 2582: k6*-*-*)
! 2583: gcc_cflags_cpu="-mcpu=k6 -mcpu=i486 -m486"
! 2584: gcc_cflags_arch="-march=k6 -march=i486"
! 2585: ;;
! 2586: athlon-*-*)
! 2587: # Athlon instruction costs are close to P6 (3 cycle load latency,
! 2588: # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
! 2589: # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
! 2590: gcc_cflags_cpu="-mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
! 2591: gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium -march=i486"
! 2592: ;;
! 2593: pentium4-*-*)
! 2594: # pentium4 is known to gcc 3.1 and up, not sure what cpu choice
! 2595: # would best suit previous versions, pentiumpro will get us cmov
! 2596: # from gcc 2.95.4 up, otherwise let's just try i486.
! 2597: gcc_cflags_cpu="-mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
! 2598: gcc_cflags_arch="-march=pentium4 -march=pentiumpro -march=pentium -march=i486"
! 2599: ;;
! 2600: esac
1.1.1.2 maekawa 2601:
1.1.1.4 ! ohara 2602: case $host in
! 2603: i486*-*-*) path="x86/i486 x86" ;;
! 2604: i586*-*-* | pentium-*-*) path="x86/pentium x86" ;;
! 2605: pentiummmx-*-*) path="x86/pentium/mmx x86/pentium x86" ;;
! 2606: i686*-*-* | pentiumpro-*-*) path="x86/p6 x86" ;;
! 2607: pentium2-*-*) path="x86/p6/mmx x86/p6 x86" ;;
! 2608: pentium3-*-*) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
! 2609: k6[23]*-*-*) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
! 2610: k6*-*-*) path="x86/k6/mmx x86/k6 x86" ;;
! 2611: athlon-*-*) path="x86/k7/mmx x86/k7 x86" ;;
! 2612: pentium4-*-*) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
! 2613: esac
! 2614: ;;
1.1.1.2 maekawa 2615:
1.1.1.4 ! ohara 2616: # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
! 2617: # limb an ABI option perhaps.
! 2618: z8kx*-*-*)
! 2619: path="z8000x"
! 2620: extra_functions="udiv_w_sdiv"
! 2621: ;;
! 2622: z8k*-*-*)
! 2623: path="z8000"
! 2624: extra_functions="udiv_w_sdiv"
! 2625: ;;
1.1.1.2 maekawa 2626:
1.1.1.4 ! ohara 2627: # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
! 2628: # asm blocks in longlong.h (since they're driven by cpp pre-defined
! 2629: # symbols like __alpha rather than the configured $host_cpu).
! 2630: #
! 2631: none-*-*)
! 2632: abilist="long longlong"
! 2633: cclist_long=$cclist
! 2634: gcc_long_cflags=$gcc_cflags
! 2635: gcc_long_cppflags="-DNO_ASM"
! 2636: cc_long_cflags=$cc_cflags
! 2637: cclist_longlong=$cclist
! 2638: gcc_longlong_cflags=$gcc_cflags
! 2639: gcc_longlong_cppflags="-DNO_ASM"
! 2640: cc_longlong_cflags=$cc_cflags
! 2641: limb_longlong=longlong
! 2642: ;;
1.1.1.2 maekawa 2643:
1.1.1.4 ! ohara 2644: esac
1.1.1.2 maekawa 2645:
1.1.1.4 ! ohara 2646: CFLAGS_or_unset=${CFLAGS-'(unset)'}
! 2647: CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
1.1.1.2 maekawa 2648:
1.1.1.4 ! ohara 2649: cat >&5 <<EOF
! 2650: configure:1014: User:
! 2651: ABI=$ABI
! 2652: CC=$CC
! 2653: CFLAGS=$CFLAGS_or_unset
! 2654: CPPFLAGS=$CPPFLAGS_or_unset
! 2655: MPN_PATH=$MPN_PATH
! 2656: configure:1020: GMP:
! 2657: abilist=$abilist
! 2658: cclist=$cclist
! 2659: EOF
1.1.1.2 maekawa 2660:
1.1.1.4 ! ohara 2661: test_CFLAGS=${CFLAGS+set}
! 2662: test_CPPFLAGS=${CPPFLAGS+set}
1.1.1.2 maekawa 2663:
1.1.1.4 ! ohara 2664: for abi in $abilist; do
! 2665: abi_last="$abi"
! 2666: done
1.1.1.2 maekawa 2667:
1.1.1.4 ! ohara 2668: # If the user specifies an ABI then it must be in $abilist, after that
! 2669: # $abilist is restricted to just that choice.
! 2670: #
! 2671: if test -n "$ABI"; then
! 2672: found=no
! 2673: for abi in $abilist; do
! 2674: if test $abi = "$ABI"; then found=yes; break; fi
! 2675: done
! 2676: if test $found = no; then
! 2677: { { echo "$as_me:2677: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
! 2678: echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
! 2679: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 2680: fi
1.1.1.4 ! ohara 2681: abilist="$ABI"
! 2682: fi
1.1.1.2 maekawa 2683:
1.1.1.4 ! ohara 2684: found_compiler=no
1.1.1.2 maekawa 2685:
1.1.1.4 ! ohara 2686: for abi in $abilist; do
1.1.1.2 maekawa 2687:
1.1.1.4 ! ohara 2688: # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
! 2689: # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
! 2690: # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
! 2691: # abilist), but there's no fallback for $gcc_64_cflags.
! 2692: #
! 2693: abi1=`echo _$abi | sed 's/[.]//g'`
! 2694: if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
1.1.1.2 maekawa 2695:
1.1.1.4 ! ohara 2696: # Compiler choices under this ABI
! 2697: eval cclist_chosen=\"\$cclist$abi1\"
! 2698: test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
1.1.1.2 maekawa 2699:
1.1.1.4 ! ohara 2700: # If there's a user specified $CC then don't use a list for
! 2701: # $cclist_chosen, just a single value for $ccbase.
! 2702: #
! 2703: if test -n "$CC"; then
! 2704:
! 2705: # The first word of $CC, stripped of any directory. For instance
! 2706: # CC="/usr/local/bin/gcc -pipe" will give "gcc".
! 2707: #
! 2708: for ccbase in $CC; do break; done
! 2709: ccbase=`echo $ccbase | sed 's:.*/::'`
! 2710:
! 2711: # If this $ccbase is in $cclist_chosen then it's a compiler we know and
! 2712: # we can do flags defaulting with it. If not, then $cclist_chosen is
! 2713: # set to "unrecognised" so no default flags are used.
! 2714: #
! 2715: # "unrecognised" is used to avoid bad effects with eval if $ccbase has
! 2716: # non-symbol characters. For instance ccbase=my+cc would end up with
! 2717: # something like cflags="$my+cc_cflags" which would give
! 2718: # cflags="+cc_cflags" rather than the intended empty string for an
! 2719: # unknown compiler.
! 2720: #
! 2721: found=unrecognised
! 2722: for i in $cclist_chosen; do
! 2723: if test "$ccbase" = $i; then
! 2724: found=$ccbase
! 2725: break
1.1.1.2 maekawa 2726: fi
1.1.1.4 ! ohara 2727: done
! 2728: cclist_chosen=$found
1.1.1.2 maekawa 2729: fi
2730:
1.1.1.4 ! ohara 2731: for ccbase in $cclist_chosen; do
1.1.1.2 maekawa 2732:
1.1.1.4 ! ohara 2733: # When cross compiling, look for a compiler with the $host_alias as a
! 2734: # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
! 2735: # user-selected $CC.
! 2736: #
! 2737: # $cross_compiling will be yes/no/maybe at this point. Do the host
! 2738: # prefixing for "maybe" as well as "yes".
! 2739: #
! 2740: if test "$cross_compiling" != no && test -z "$CC"; then
! 2741: cross_compiling_prefix="${host_alias}-"
1.1.1.2 maekawa 2742: fi
2743:
1.1.1.4 ! ohara 2744: for ccprefix in $cross_compiling_prefix ""; do
1.1.1.2 maekawa 2745:
1.1.1.4 ! ohara 2746: cc="$CC"
! 2747: test -n "$cc" || cc="$ccprefix$ccbase"
1.1.1.2 maekawa 2748:
1.1.1.4 ! ohara 2749: # If the compiler is gcc but installed under another name, then change
! 2750: # $ccbase so as to use the flags we know for gcc. This helps for
! 2751: # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
! 2752: # native cc which is really gcc on NeXT or MacOS-X.
! 2753: #
! 2754: # FIXME: There's a slight misfeature here. If cc is actually gcc but
! 2755: # gcc is not a known compiler under this $abi then we'll end up
! 2756: # testing it with no flags and it'll work, but chances are it won't be
! 2757: # in the right mode for the ABI we desire. Let's quietly hope this
! 2758: # doesn't happen.
! 2759: #
! 2760: if test $ccbase != gcc; then
! 2761: cat >conftest.c <<EOF
! 2762: #ifndef __GNUC__
! 2763: choke me
! 2764: #endif
1.1.1.2 maekawa 2765: EOF
1.1.1.4 ! ohara 2766: gmp_compile="$cc -c conftest.c >&5"
! 2767: if { (eval echo "$as_me:2767: \"$gmp_compile\"") >&5
! 2768: (eval $gmp_compile) 2>&5
! 2769: ac_status=$?
! 2770: echo "$as_me:2770: \$? = $ac_status" >&5
! 2771: (exit $ac_status); }; then
! 2772: rm -f conftest*
! 2773: echo "$as_me:2773: checking whether $cc is gcc" >&5
! 2774: echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
! 2775: echo "$as_me:2775: result: yes" >&5
! 2776: echo "${ECHO_T}yes" >&6
! 2777: ccbase=gcc
1.1.1.2 maekawa 2778: else
1.1.1.4 ! ohara 2779: rm -f conftest*
! 2780: :
1.1.1.2 maekawa 2781: fi
2782:
1.1.1.4 ! ohara 2783: fi
1.1.1.2 maekawa 2784:
1.1.1.4 ! ohara 2785: # Similarly if the compiler is IBM xlc but invoked as cc or whatever
! 2786: # then change $ccbase and make the default xlc flags available.
! 2787: if test $ccbase != xlc; then
! 2788: gmp_command="$cc 2>&1 | grep xlc >/dev/null"
! 2789: if { (eval echo "$as_me:2789: \"$gmp_command\"") >&5
! 2790: (eval $gmp_command) 2>&5
! 2791: ac_status=$?
! 2792: echo "$as_me:2792: \$? = $ac_status" >&5
! 2793: (exit $ac_status); }; then
! 2794: echo "$as_me:2794: checking whether $cc is xlc" >&5
! 2795: echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6
! 2796: echo "$as_me:2796: result: yes" >&5
! 2797: echo "${ECHO_T}yes" >&6
! 2798: ccbase=xlc
! 2799: else
! 2800: :
! 2801: fi
1.1.1.2 maekawa 2802:
1.1.1.4 ! ohara 2803: fi
1.1.1.2 maekawa 2804:
1.1.1.4 ! ohara 2805: # Any user CFLAGS, even an empty string, takes precendence
! 2806: eval cflags=\"\$${ccbase}${abi1}_cflags\"
! 2807: test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
! 2808: if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
! 2809:
! 2810: # Any user CPPFLAGS, even an empty string, takes precendence
! 2811: eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
! 2812: test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
! 2813: if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
! 2814:
! 2815: # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
! 2816: # This is convenient, but it's perhaps a bit naughty to modify user
! 2817: # CFLAGS.
! 2818: case "$enable_profiling" in
! 2819: prof) cflags="$cflags -p" ;;
! 2820: gprof) cflags="$cflags -pg" ;;
! 2821: esac
1.1.1.2 maekawa 2822:
1.1.1.4 ! ohara 2823: echo "$as_me:2823: checking compiler $cc $cflags $cppflags" >&5
! 2824: echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6
! 2825: cat >conftest.c <<EOF
! 2826:
! 2827: /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
! 2828: (without -maix64), hence detecting an unusable compiler */
! 2829: void *g() { return (void *) 0; }
! 2830: void *f() { return g(); }
! 2831:
! 2832: /* The following provokes an invalid instruction syntax from i386 gcc
! 2833: -march=pentiumpro on Solaris 2.8. The native sun assembler
! 2834: requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
! 2835: least) doesn't know. */
! 2836: int n;
! 2837: int cmov () { return (n >= 0 ? n : 0); }
! 2838:
! 2839: /* The following provokes a linker invocation problem with gcc 3.0.3
! 2840: on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
! 2841: option causes gcc to incorrectly select the 32-bit libgcc.a, not
! 2842: the 64-bit one, and consequently it misses out on the __fixunsdfdi
! 2843: helper (double -> uint64 conversion). */
! 2844: double d;
! 2845: unsigned long gcc303 () { return (unsigned long) d; }
! 2846:
! 2847: int main () { return 0; }
! 2848: EOF
! 2849: gmp_prog_cc_works=no
! 2850: gmp_compile="$cc $cflags $cppflags conftest.c >&5"
! 2851: if { (eval echo "$as_me:2851: \"$gmp_compile\"") >&5
! 2852: (eval $gmp_compile) 2>&5
! 2853: ac_status=$?
! 2854: echo "$as_me:2854: \$? = $ac_status" >&5
! 2855: (exit $ac_status); }; then
! 2856: if test "$cross_compiling" = no; then
! 2857: if { ac_try='./a.out || ./a.exe || ./conftest'
! 2858: { (eval echo "$as_me:2858: \"$ac_try\"") >&5
! 2859: (eval $ac_try) 2>&5
! 2860: ac_status=$?
! 2861: echo "$as_me:2861: \$? = $ac_status" >&5
! 2862: (exit $ac_status); }; }; then
! 2863: gmp_prog_cc_works=yes
! 2864: fi
1.1.1.2 maekawa 2865: else
1.1.1.4 ! ohara 2866: gmp_prog_cc_works=yes
1.1.1.2 maekawa 2867: fi
2868: fi
1.1.1.4 ! ohara 2869: rm -f conftest* a.out a.exe
! 2870: echo "$as_me:2870: result: $gmp_prog_cc_works" >&5
! 2871: echo "${ECHO_T}$gmp_prog_cc_works" >&6
! 2872: if test $gmp_prog_cc_works = yes; then
! 2873: :
1.1.1.2 maekawa 2874: else
1.1.1.4 ! ohara 2875: continue
1.1.1.2 maekawa 2876: fi
2877:
1.1.1.4 ! ohara 2878: # The tests to perform on this $cc, if any
! 2879: eval testlist=\"\$${ccbase}${abi1}_testlist\"
! 2880: test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
! 2881:
! 2882: testlist_pass=yes
! 2883: for tst in $testlist; do
! 2884: case $tst in
! 2885: hpc-hppa-2-0) echo "$as_me:2885: checking whether HP compiler $cc is good for 64-bits" >&5
! 2886: echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6
! 2887: # Bad compiler output:
! 2888: # ccom: HP92453-01 G.10.32.05 HP C Compiler
! 2889: # Good compiler output:
! 2890: # ccom: HP92453-01 A.10.32.30 HP C Compiler
! 2891: # Let A.10.32.30 or higher be ok.
! 2892: echo >conftest.c
! 2893: gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
! 2894: echo "Version string: $gmp_tmp_vs" >&5
! 2895: rm conftest*
! 2896: gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\(.*\)\..*\..* HP C.*/\1/'`
! 2897: gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
! 2898: gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
! 2899: echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
! 2900: if test -z "$gmp_tmp_v1"; then
! 2901: gmp_hpc_64bit=not-applicable
! 2902: else
! 2903: gmp_compare_ge=no
! 2904: if test -n "$gmp_tmp_v1"; then
! 2905: if test "$gmp_tmp_v1" -gt 10; then
! 2906: gmp_compare_ge=yes
! 2907: else
! 2908: if test "$gmp_tmp_v1" -eq 10; then
! 2909: if test -n "$gmp_tmp_v2"; then
! 2910: if test "$gmp_tmp_v2" -gt 32; then
! 2911: gmp_compare_ge=yes
! 2912: else
! 2913: if test "$gmp_tmp_v2" -eq 32; then
! 2914: if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
! 2915: gmp_compare_ge=yes
1.1.1.2 maekawa 2916: fi
2917:
1.1.1.4 ! ohara 2918: fi
1.1.1.2 maekawa 2919: fi
2920: fi
2921:
1.1.1.4 ! ohara 2922: fi
! 2923: fi
1.1.1.2 maekawa 2924: fi
2925:
1.1.1.4 ! ohara 2926: gmp_hpc_64bit=$gmp_compare_ge
1.1.1.2 maekawa 2927: fi
1.1.1.4 ! ohara 2928: echo "$as_me:2928: result: $gmp_hpc_64bit" >&5
! 2929: echo "${ECHO_T}$gmp_hpc_64bit" >&6
! 2930: if test $gmp_hpc_64bit = yes; then
1.1.1.2 maekawa 2931: :
2932: else
1.1.1.4 ! ohara 2933: testlist_pass=no
! 2934: fi
! 2935: ;;
! 2936: gcc-arm-umodsi) echo "$as_me:2936: checking whether ARM gcc unsigned division works" >&5
! 2937: echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6
! 2938: tmp_version=`$cc --version`
! 2939: echo "$tmp_version" >&5
! 2940: case $tmp_version in
! 2941: 2.95 | 2.95.[123])
! 2942: testlist_pass=no
! 2943: gmp_gcc_arm_umodsi_result="no, gcc 2.95.0123" ;;
! 2944: *)
! 2945: :
! 2946: gmp_gcc_arm_umodsi_result=yes ;;
! 2947: esac
! 2948: echo "$as_me:2948: result: $gmp_gcc_arm_umodsi_result" >&5
! 2949: echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6
! 2950: ;;
! 2951: gcc-mips-o32) echo "$as_me:2951: checking whether gcc supports o32" >&5
! 2952: echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6
! 2953: echo 'int x;' >conftest.c
! 2954: echo "$cc -mabi=32 -c conftest.c" >&5
! 2955: if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
! 2956: result=yes
! 2957: else
! 2958: cat conftest.out >&5
! 2959: if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
! 2960: result=yes
! 2961: else
! 2962: result=no
! 2963: fi
! 2964: fi
! 2965: rm -f conftest.*
! 2966: echo "$as_me:2966: result: $result" >&5
! 2967: echo "${ECHO_T}$result" >&6
! 2968: if test $result = yes; then
1.1.1.2 maekawa 2969: :
2970: else
1.1.1.4 ! ohara 2971: testlist_pass=no
! 2972: fi
! 2973: ;;
! 2974: esac
! 2975: if test $testlist_pass = no; then break; fi
! 2976: done
1.1.1.2 maekawa 2977:
1.1.1.4 ! ohara 2978: if test $testlist_pass = yes; then
! 2979: found_compiler=yes
! 2980: break
! 2981: fi
! 2982: done
! 2983:
! 2984: if test $found_compiler = yes; then break; fi
! 2985: done
! 2986:
! 2987: if test $found_compiler = yes; then break; fi
! 2988: done
! 2989:
! 2990: # If we recognised the CPU, as indicated by $path being set, then insist
! 2991: # that we have a working compiler, either from our $cclist choices or from
! 2992: # $CC. We can't let AC_PROG_CC look around for a compiler because it might
! 2993: # find one that we've rejected (for not supporting the modes our asm code
! 2994: # demands, etc).
! 2995: #
! 2996: # If we didn't recognise the CPU (and this includes host_cpu=none), then
! 2997: # fall through and let AC_PROG_CC look around for a compiler too. This is
! 2998: # mostly in the interests of following a standard autoconf setup, after all
! 2999: # we've already tested cc and gcc adequately (hopefully). As of autoconf
! 3000: # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
! 3001: # C on MS-DOS systems).
! 3002: #
! 3003: if test $found_compiler = no && test -n "$path"; then
! 3004: { { echo "$as_me:3004: error: could not find a working compiler" >&5
! 3005: echo "$as_me: error: could not find a working compiler" >&2;}
! 3006: { (exit 1); exit 1; }; }
! 3007: fi
! 3008:
! 3009: if test $found_compiler = yes; then
! 3010:
! 3011: # If we're creating CFLAGS, then look for optional additions. If the user
! 3012: # set CFLAGS then leave it alone.
! 3013: #
! 3014: if test "$test_CFLAGS" != set; then
! 3015: eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
! 3016: test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
! 3017:
! 3018: for opt in $optlist; do
! 3019: eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
! 3020: test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
! 3021: test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
! 3022:
! 3023: for flag in $optflags; do
! 3024:
! 3025: # ~ respresents a space in an option spec
! 3026: flag=`echo "$flag" | tr '~' ' '`
! 3027:
! 3028: case $flag in
! 3029: -O*)
! 3030: # ease back to just -O on m68k gcc 2.95.x
! 3031: case $host in
! 3032: m68*-*-*)
! 3033: if test $ccbase = gcc; then
! 3034: case `$cc --version` in
! 3035: 2.95*) flag=-O ;;
! 3036: esac
! 3037: fi
! 3038: ;;
! 3039: esac
! 3040:
! 3041: ;;
! 3042: -no-cpp-precomp)
! 3043: # special check, avoiding a warning
! 3044: if test "$ccbase" = gcc; then
! 3045: echo "$as_me:3045: checking compiler $cc $cflags -no-cpp-precomp" >&5
! 3046: echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6
! 3047: result=no
! 3048: cat >conftest.c <<EOF
! 3049: int main () { return 0; }
1.1.1.2 maekawa 3050: EOF
1.1.1.4 ! ohara 3051: gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
! 3052: if { (eval echo "$as_me:3052: \"$gmp_compile\"") >&5
! 3053: (eval $gmp_compile) 2>&5
! 3054: ac_status=$?
! 3055: echo "$as_me:3055: \$? = $ac_status" >&5
! 3056: (exit $ac_status); }; then
! 3057: if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
! 3058: else
! 3059: result=yes
! 3060: fi
! 3061: fi
! 3062: cat conftest.out >&5
! 3063: rm -f conftest* a.out
! 3064: echo "$as_me:3064: result: $result" >&5
! 3065: echo "${ECHO_T}$result" >&6
! 3066: if test "$result" = yes; then
! 3067: cflags="$cflags $flag"
! 3068: break
! 3069: else
! 3070: continue
! 3071: fi
1.1.1.2 maekawa 3072: fi
1.1.1.4 ! ohara 3073:
! 3074: ;;
! 3075: -Wa,-m*)
! 3076: case $host in
! 3077: alpha*-*-*)
! 3078: echo "$as_me:3078: checking assembler $cc $cflags $flag" >&5
! 3079: echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6
! 3080: result=no
! 3081: cat >conftest.c <<EOF
! 3082: int main () {}
! 3083: EOF
! 3084: gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
! 3085: if { (eval echo "$as_me:3085: \"$gmp_compile\"") >&5
! 3086: (eval $gmp_compile) 2>&5
! 3087: ac_status=$?
! 3088: echo "$as_me:3088: \$? = $ac_status" >&5
! 3089: (exit $ac_status); }; then
! 3090: if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
! 3091: else
! 3092: result=yes
! 3093: fi
1.1.1.2 maekawa 3094: fi
1.1.1.4 ! ohara 3095: cat conftest.out >&5
1.1.1.2 maekawa 3096: rm -f conftest*
1.1.1.4 ! ohara 3097: echo "$as_me:3097: result: $result" >&5
! 3098: echo "${ECHO_T}$result" >&6
! 3099: if test "$result" = yes; then
! 3100: :
! 3101: else
! 3102: continue
1.1.1.2 maekawa 3103: fi
1.1.1.4 ! ohara 3104:
! 3105: ;;
! 3106: esac
! 3107: ;;
! 3108: esac
! 3109:
! 3110: echo "$as_me:3110: checking compiler $cc $cflags $cppflags $flag" >&5
! 3111: echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6
! 3112: cat >conftest.c <<EOF
! 3113:
! 3114: /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
! 3115: (without -maix64), hence detecting an unusable compiler */
! 3116: void *g() { return (void *) 0; }
! 3117: void *f() { return g(); }
! 3118:
! 3119: /* The following provokes an invalid instruction syntax from i386 gcc
! 3120: -march=pentiumpro on Solaris 2.8. The native sun assembler
! 3121: requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
! 3122: least) doesn't know. */
! 3123: int n;
! 3124: int cmov () { return (n >= 0 ? n : 0); }
! 3125:
! 3126: /* The following provokes a linker invocation problem with gcc 3.0.3
! 3127: on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
! 3128: option causes gcc to incorrectly select the 32-bit libgcc.a, not
! 3129: the 64-bit one, and consequently it misses out on the __fixunsdfdi
! 3130: helper (double -> uint64 conversion). */
! 3131: double d;
! 3132: unsigned long gcc303 () { return (unsigned long) d; }
! 3133:
! 3134: int main () { return 0; }
! 3135: EOF
! 3136: gmp_prog_cc_works=no
! 3137: gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
! 3138: if { (eval echo "$as_me:3138: \"$gmp_compile\"") >&5
! 3139: (eval $gmp_compile) 2>&5
! 3140: ac_status=$?
! 3141: echo "$as_me:3141: \$? = $ac_status" >&5
! 3142: (exit $ac_status); }; then
! 3143: if test "$cross_compiling" = no; then
! 3144: if { ac_try='./a.out || ./a.exe || ./conftest'
! 3145: { (eval echo "$as_me:3145: \"$ac_try\"") >&5
! 3146: (eval $ac_try) 2>&5
! 3147: ac_status=$?
! 3148: echo "$as_me:3148: \$? = $ac_status" >&5
! 3149: (exit $ac_status); }; }; then
! 3150: gmp_prog_cc_works=yes
! 3151: fi
! 3152: else
! 3153: gmp_prog_cc_works=yes
! 3154: fi
1.1.1.2 maekawa 3155: fi
1.1.1.4 ! ohara 3156: rm -f conftest* a.out a.exe
! 3157: echo "$as_me:3157: result: $gmp_prog_cc_works" >&5
! 3158: echo "${ECHO_T}$gmp_prog_cc_works" >&6
! 3159: if test $gmp_prog_cc_works = yes; then
! 3160: cflags="$cflags $flag"
! 3161: break
1.1.1.2 maekawa 3162: else
1.1.1.4 ! ohara 3163: :
1.1.1.2 maekawa 3164: fi
3165:
3166: done
1.1.1.4 ! ohara 3167: done
! 3168: fi
! 3169:
! 3170: ABI="$abi"
! 3171: CC="$cc"
! 3172: CFLAGS="$cflags"
! 3173: CPPFLAGS="$cppflags"
! 3174:
! 3175: # Could easily have this in config.h too, if desired.
! 3176: ABI_nodots=`echo $ABI | sed 's/\./_/'`
! 3177:
! 3178: echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
! 3179:
! 3180: # GMP_LDFLAGS substitution, selected according to ABI.
! 3181: # These are needed on libgmp.la and libmp.la, but currently not on
! 3182: # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
! 3183: #
! 3184: eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
! 3185: test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
! 3186:
! 3187: # extra_functions, selected according to ABI
! 3188: eval tmp=\"\$extra_functions$abi1\"
! 3189: test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
! 3190: extra_functions="$tmp"
! 3191:
! 3192: # Cycle counter, selected according to ABI.
! 3193: #
! 3194: eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
! 3195: test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
! 3196: SPEED_CYCLECOUNTER_OBJ="$tmp"
! 3197: eval tmp=\"\$cyclecounter_size$abi1\"
! 3198: test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
! 3199: cyclecounter_size="$tmp"
! 3200:
! 3201: if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
! 3202:
! 3203: cat >>confdefs.h <<EOF
! 3204: #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
! 3205: EOF
1.1.1.2 maekawa 3206:
3207: fi
3208:
1.1.1.4 ! ohara 3209: # Calling conventions checking, selected according to ABI.
! 3210: #
! 3211: eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
! 3212: test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
! 3213: CALLING_CONVENTIONS_OBJS="$tmp"
1.1.1.2 maekawa 3214:
1.1.1.4 ! ohara 3215: if test -n "$CALLING_CONVENTIONS_OBJS"; then
1.1.1.2 maekawa 3216:
1.1.1.4 ! ohara 3217: cat >>confdefs.h <<\EOF
! 3218: #define HAVE_CALLING_CONVENTIONS 1
! 3219: EOF
! 3220:
! 3221: fi
1.1.1.2 maekawa 3222:
3223: fi
1.1.1.4 ! ohara 3224:
! 3225: # If the user gave an MPN_PATH, use that verbatim, otherwise choose
! 3226: # according to the ABI and add "generic".
! 3227: #
! 3228: if test -n "$MPN_PATH"; then
! 3229: path="$MPN_PATH"
1.1.1.2 maekawa 3230: else
1.1.1.4 ! ohara 3231: eval tmp=\"\$path$abi1\"
! 3232: test -n "$tmp" || eval tmp=\"\$path$abi2\"
! 3233: path="$tmp generic"
1.1.1.2 maekawa 3234: fi
3235:
1.1.1.4 ! ohara 3236: # Whether using a long long limb in this ABI.
! 3237: eval limb_chosen=\"\$limb$abi1\"
! 3238: test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
! 3239: case $limb_chosen in
! 3240: longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
! 3241: *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
! 3242: esac
! 3243:
! 3244: # The C compiler and preprocessor, put into ANSI mode if possible.
! 3245: ac_ext=c
! 3246: ac_cpp='$CPP $CPPFLAGS'
! 3247: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3248: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3249: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3250: if test -n "$ac_tool_prefix"; then
! 3251: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 3252: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 3253: echo "$as_me:3253: checking for $ac_word" >&5
! 3254: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3255: if test "${ac_cv_prog_CC+set}" = set; then
! 3256: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3257: else
1.1.1.4 ! ohara 3258: if test -n "$CC"; then
! 3259: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1.1.2 maekawa 3260: else
1.1.1.4 ! ohara 3261: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3262: ac_dummy="$PATH"
! 3263: for ac_dir in $ac_dummy; do
! 3264: IFS=$ac_save_IFS
! 3265: test -z "$ac_dir" && ac_dir=.
! 3266: $as_executable_p "$ac_dir/$ac_word" || continue
! 3267: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 3268: echo "$as_me:3268: found $ac_dir/$ac_word" >&5
! 3269: break
! 3270: done
! 3271:
1.1.1.2 maekawa 3272: fi
3273: fi
1.1.1.4 ! ohara 3274: CC=$ac_cv_prog_CC
! 3275: if test -n "$CC"; then
! 3276: echo "$as_me:3276: result: $CC" >&5
! 3277: echo "${ECHO_T}$CC" >&6
! 3278: else
! 3279: echo "$as_me:3279: result: no" >&5
! 3280: echo "${ECHO_T}no" >&6
! 3281: fi
1.1.1.2 maekawa 3282:
1.1.1.4 ! ohara 3283: fi
! 3284: if test -z "$ac_cv_prog_CC"; then
! 3285: ac_ct_CC=$CC
! 3286: # Extract the first word of "gcc", so it can be a program name with args.
! 3287: set dummy gcc; ac_word=$2
! 3288: echo "$as_me:3288: checking for $ac_word" >&5
! 3289: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3290: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3291: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3292: else
1.1.1.4 ! ohara 3293: if test -n "$ac_ct_CC"; then
! 3294: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1.1.2 maekawa 3295: else
1.1.1.4 ! ohara 3296: ac_save_IFS=$IFS; IFS=$ac_path_separator
1.1.1.2 maekawa 3297: ac_dummy="$PATH"
3298: for ac_dir in $ac_dummy; do
1.1.1.4 ! ohara 3299: IFS=$ac_save_IFS
1.1.1.2 maekawa 3300: test -z "$ac_dir" && ac_dir=.
1.1.1.4 ! ohara 3301: $as_executable_p "$ac_dir/$ac_word" || continue
! 3302: ac_cv_prog_ac_ct_CC="gcc"
! 3303: echo "$as_me:3303: found $ac_dir/$ac_word" >&5
! 3304: break
1.1.1.2 maekawa 3305: done
1.1.1.4 ! ohara 3306:
1.1.1.2 maekawa 3307: fi
3308: fi
1.1.1.4 ! ohara 3309: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3310: if test -n "$ac_ct_CC"; then
! 3311: echo "$as_me:3311: result: $ac_ct_CC" >&5
! 3312: echo "${ECHO_T}$ac_ct_CC" >&6
1.1.1.2 maekawa 3313: else
1.1.1.4 ! ohara 3314: echo "$as_me:3314: result: no" >&5
! 3315: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3316: fi
3317:
1.1.1.4 ! ohara 3318: CC=$ac_ct_CC
1.1.1.2 maekawa 3319: else
1.1.1.4 ! ohara 3320: CC="$ac_cv_prog_CC"
1.1.1.2 maekawa 3321: fi
3322:
1.1.1.4 ! ohara 3323: if test -z "$CC"; then
! 3324: if test -n "$ac_tool_prefix"; then
! 3325: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 3326: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 3327: echo "$as_me:3327: checking for $ac_word" >&5
! 3328: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3329: if test "${ac_cv_prog_CC+set}" = set; then
! 3330: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3331: else
1.1.1.4 ! ohara 3332: if test -n "$CC"; then
! 3333: ac_cv_prog_CC="$CC" # Let the user override the test.
! 3334: else
! 3335: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3336: ac_dummy="$PATH"
! 3337: for ac_dir in $ac_dummy; do
! 3338: IFS=$ac_save_IFS
! 3339: test -z "$ac_dir" && ac_dir=.
! 3340: $as_executable_p "$ac_dir/$ac_word" || continue
! 3341: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 3342: echo "$as_me:3342: found $ac_dir/$ac_word" >&5
! 3343: break
! 3344: done
1.1.1.2 maekawa 3345:
3346: fi
1.1.1.4 ! ohara 3347: fi
! 3348: CC=$ac_cv_prog_CC
! 3349: if test -n "$CC"; then
! 3350: echo "$as_me:3350: result: $CC" >&5
! 3351: echo "${ECHO_T}$CC" >&6
1.1.1.2 maekawa 3352: else
1.1.1.4 ! ohara 3353: echo "$as_me:3353: result: no" >&5
! 3354: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3355: fi
3356:
1.1.1.4 ! ohara 3357: fi
! 3358: if test -z "$ac_cv_prog_CC"; then
! 3359: ac_ct_CC=$CC
! 3360: # Extract the first word of "cc", so it can be a program name with args.
! 3361: set dummy cc; ac_word=$2
! 3362: echo "$as_me:3362: checking for $ac_word" >&5
! 3363: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3364: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3365: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3366: else
1.1.1.4 ! ohara 3367: if test -n "$ac_ct_CC"; then
! 3368: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 3369: else
! 3370: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3371: ac_dummy="$PATH"
! 3372: for ac_dir in $ac_dummy; do
! 3373: IFS=$ac_save_IFS
! 3374: test -z "$ac_dir" && ac_dir=.
! 3375: $as_executable_p "$ac_dir/$ac_word" || continue
! 3376: ac_cv_prog_ac_ct_CC="cc"
! 3377: echo "$as_me:3377: found $ac_dir/$ac_word" >&5
! 3378: break
! 3379: done
1.1.1.2 maekawa 3380:
3381: fi
1.1.1.4 ! ohara 3382: fi
! 3383: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3384: if test -n "$ac_ct_CC"; then
! 3385: echo "$as_me:3385: result: $ac_ct_CC" >&5
! 3386: echo "${ECHO_T}$ac_ct_CC" >&6
1.1.1.2 maekawa 3387: else
1.1.1.4 ! ohara 3388: echo "$as_me:3388: result: no" >&5
! 3389: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3390: fi
3391:
1.1.1.4 ! ohara 3392: CC=$ac_ct_CC
! 3393: else
! 3394: CC="$ac_cv_prog_CC"
1.1.1.2 maekawa 3395: fi
3396:
1.1.1.4 ! ohara 3397: fi
! 3398: if test -z "$CC"; then
! 3399: # Extract the first word of "cc", so it can be a program name with args.
! 3400: set dummy cc; ac_word=$2
! 3401: echo "$as_me:3401: checking for $ac_word" >&5
! 3402: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3403: if test "${ac_cv_prog_CC+set}" = set; then
! 3404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3405: else
1.1.1.4 ! ohara 3406: if test -n "$CC"; then
! 3407: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1.1.2 maekawa 3408: else
1.1.1.4 ! ohara 3409: ac_prog_rejected=no
! 3410: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3411: ac_dummy="$PATH"
! 3412: for ac_dir in $ac_dummy; do
! 3413: IFS=$ac_save_IFS
! 3414: test -z "$ac_dir" && ac_dir=.
! 3415: $as_executable_p "$ac_dir/$ac_word" || continue
! 3416: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
! 3417: ac_prog_rejected=yes
! 3418: continue
! 3419: fi
! 3420: ac_cv_prog_CC="cc"
! 3421: echo "$as_me:3421: found $ac_dir/$ac_word" >&5
! 3422: break
! 3423: done
1.1.1.2 maekawa 3424:
1.1.1.4 ! ohara 3425: if test $ac_prog_rejected = yes; then
! 3426: # We found a bogon in the path, so make sure we never use it.
! 3427: set dummy $ac_cv_prog_CC
! 3428: shift
! 3429: if test $# != 0; then
! 3430: # We chose a different compiler from the bogus one.
! 3431: # However, it has the same basename, so the bogon will be chosen
! 3432: # first if we set CC to just the basename; use the full file name.
! 3433: shift
! 3434: set dummy "$ac_dir/$ac_word" ${1+"$@"}
! 3435: shift
! 3436: ac_cv_prog_CC="$@"
! 3437: fi
1.1.1.2 maekawa 3438: fi
1.1.1.4 ! ohara 3439: fi
! 3440: fi
! 3441: CC=$ac_cv_prog_CC
! 3442: if test -n "$CC"; then
! 3443: echo "$as_me:3443: result: $CC" >&5
! 3444: echo "${ECHO_T}$CC" >&6
1.1.1.2 maekawa 3445: else
1.1.1.4 ! ohara 3446: echo "$as_me:3446: result: no" >&5
! 3447: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3448: fi
3449:
3450: fi
1.1.1.4 ! ohara 3451: if test -z "$CC"; then
! 3452: if test -n "$ac_tool_prefix"; then
! 3453: for ac_prog in cl
! 3454: do
! 3455: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 3456: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 3457: echo "$as_me:3457: checking for $ac_word" >&5
! 3458: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3459: if test "${ac_cv_prog_CC+set}" = set; then
! 3460: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3461: else
! 3462: if test -n "$CC"; then
! 3463: ac_cv_prog_CC="$CC" # Let the user override the test.
! 3464: else
! 3465: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3466: ac_dummy="$PATH"
! 3467: for ac_dir in $ac_dummy; do
! 3468: IFS=$ac_save_IFS
! 3469: test -z "$ac_dir" && ac_dir=.
! 3470: $as_executable_p "$ac_dir/$ac_word" || continue
! 3471: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 3472: echo "$as_me:3472: found $ac_dir/$ac_word" >&5
! 3473: break
! 3474: done
1.1.1.2 maekawa 3475:
3476: fi
3477: fi
1.1.1.4 ! ohara 3478: CC=$ac_cv_prog_CC
! 3479: if test -n "$CC"; then
! 3480: echo "$as_me:3480: result: $CC" >&5
! 3481: echo "${ECHO_T}$CC" >&6
1.1.1.2 maekawa 3482: else
1.1.1.4 ! ohara 3483: echo "$as_me:3483: result: no" >&5
! 3484: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3485: fi
3486:
1.1.1.4 ! ohara 3487: test -n "$CC" && break
! 3488: done
1.1.1.2 maekawa 3489: fi
1.1.1.4 ! ohara 3490: if test -z "$CC"; then
! 3491: ac_ct_CC=$CC
! 3492: for ac_prog in cl
! 3493: do
! 3494: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3495: set dummy $ac_prog; ac_word=$2
! 3496: echo "$as_me:3496: checking for $ac_word" >&5
! 3497: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 3498: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 3499: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3500: else
1.1.1.4 ! ohara 3501: if test -n "$ac_ct_CC"; then
! 3502: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1.1.2 maekawa 3503: else
1.1.1.4 ! ohara 3504: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 3505: ac_dummy="$PATH"
! 3506: for ac_dir in $ac_dummy; do
! 3507: IFS=$ac_save_IFS
! 3508: test -z "$ac_dir" && ac_dir=.
! 3509: $as_executable_p "$ac_dir/$ac_word" || continue
! 3510: ac_cv_prog_ac_ct_CC="$ac_prog"
! 3511: echo "$as_me:3511: found $ac_dir/$ac_word" >&5
! 3512: break
! 3513: done
1.1.1.2 maekawa 3514:
3515: fi
3516: fi
1.1.1.4 ! ohara 3517: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3518: if test -n "$ac_ct_CC"; then
! 3519: echo "$as_me:3519: result: $ac_ct_CC" >&5
! 3520: echo "${ECHO_T}$ac_ct_CC" >&6
1.1.1.2 maekawa 3521: else
1.1.1.4 ! ohara 3522: echo "$as_me:3522: result: no" >&5
! 3523: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 3524: fi
3525:
1.1.1.4 ! ohara 3526: test -n "$ac_ct_CC" && break
! 3527: done
1.1.1.2 maekawa 3528:
1.1.1.4 ! ohara 3529: CC=$ac_ct_CC
1.1.1.2 maekawa 3530: fi
3531:
3532: fi
3533:
1.1.1.4 ! ohara 3534: test -z "$CC" && { { echo "$as_me:3534: error: no acceptable cc found in \$PATH" >&5
! 3535: echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
! 3536: { (exit 1); exit 1; }; }
! 3537:
! 3538: # Provide some information about the compiler.
! 3539: echo "$as_me:3539:" \
! 3540: "checking for C compiler version" >&5
! 3541: ac_compiler=`set X $ac_compile; echo $2`
! 3542: { (eval echo "$as_me:3542: \"$ac_compiler --version </dev/null >&5\"") >&5
! 3543: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 3544: ac_status=$?
! 3545: echo "$as_me:3545: \$? = $ac_status" >&5
! 3546: (exit $ac_status); }
! 3547: { (eval echo "$as_me:3547: \"$ac_compiler -v </dev/null >&5\"") >&5
! 3548: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 3549: ac_status=$?
! 3550: echo "$as_me:3550: \$? = $ac_status" >&5
! 3551: (exit $ac_status); }
! 3552: { (eval echo "$as_me:3552: \"$ac_compiler -V </dev/null >&5\"") >&5
! 3553: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 3554: ac_status=$?
! 3555: echo "$as_me:3555: \$? = $ac_status" >&5
! 3556: (exit $ac_status); }
1.1.1.2 maekawa 3557:
1.1.1.4 ! ohara 3558: cat >conftest.$ac_ext <<_ACEOF
! 3559: #line 3559 "configure"
! 3560: #include "confdefs.h"
1.1.1.2 maekawa 3561:
1.1.1.4 ! ohara 3562: int
! 3563: main ()
! 3564: {
1.1.1.2 maekawa 3565:
1.1.1.4 ! ohara 3566: ;
! 3567: return 0;
! 3568: }
! 3569: _ACEOF
! 3570: ac_clean_files_save=$ac_clean_files
! 3571: ac_clean_files="$ac_clean_files a.out a.exe"
! 3572: # Try to create an executable without -o first, disregard a.out.
! 3573: # It will help us diagnose broken compilers, and finding out an intuition
! 3574: # of exeext.
! 3575: echo "$as_me:3575: checking for C compiler default output" >&5
! 3576: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
! 3577: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 3578: if { (eval echo "$as_me:3578: \"$ac_link_default\"") >&5
! 3579: (eval $ac_link_default) 2>&5
! 3580: ac_status=$?
! 3581: echo "$as_me:3581: \$? = $ac_status" >&5
! 3582: (exit $ac_status); }; then
! 3583: # Find the output, starting from the most likely. This scheme is
! 3584: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 3585: # resort.
! 3586: for ac_file in `ls a.exe conftest.exe 2>/dev/null;
! 3587: ls a.out conftest 2>/dev/null;
! 3588: ls a.* conftest.* 2>/dev/null`; do
! 3589: case $ac_file in
! 3590: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3591: a.out ) # We found the default executable, but exeext='' is most
! 3592: # certainly right.
! 3593: break;;
! 3594: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3595: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
! 3596: export ac_cv_exeext
! 3597: break;;
! 3598: * ) break;;
! 3599: esac
! 3600: done
1.1.1.2 maekawa 3601: else
1.1.1.4 ! ohara 3602: echo "$as_me: failed program was:" >&5
! 3603: cat conftest.$ac_ext >&5
! 3604: { { echo "$as_me:3604: error: C compiler cannot create executables" >&5
! 3605: echo "$as_me: error: C compiler cannot create executables" >&2;}
! 3606: { (exit 77); exit 77; }; }
! 3607: fi
! 3608:
! 3609: ac_exeext=$ac_cv_exeext
! 3610: echo "$as_me:3610: result: $ac_file" >&5
! 3611: echo "${ECHO_T}$ac_file" >&6
! 3612:
! 3613: # Check the compiler produces executables we can run. If not, either
! 3614: # the compiler is broken, or we cross compile.
! 3615: echo "$as_me:3615: checking whether the C compiler works" >&5
! 3616: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
! 3617: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 3618: # If not cross compiling, check that we can run a simple program.
! 3619: if test "$cross_compiling" != yes; then
! 3620: if { ac_try='./$ac_file'
! 3621: { (eval echo "$as_me:3621: \"$ac_try\"") >&5
! 3622: (eval $ac_try) 2>&5
! 3623: ac_status=$?
! 3624: echo "$as_me:3624: \$? = $ac_status" >&5
! 3625: (exit $ac_status); }; }; then
! 3626: cross_compiling=no
! 3627: else
! 3628: if test "$cross_compiling" = maybe; then
! 3629: cross_compiling=yes
! 3630: else
! 3631: { { echo "$as_me:3631: error: cannot run C compiled programs.
! 3632: If you meant to cross compile, use \`--host'." >&5
! 3633: echo "$as_me: error: cannot run C compiled programs.
! 3634: If you meant to cross compile, use \`--host'." >&2;}
! 3635: { (exit 1); exit 1; }; }
! 3636: fi
1.1.1.2 maekawa 3637: fi
3638: fi
1.1.1.4 ! ohara 3639: echo "$as_me:3639: result: yes" >&5
! 3640: echo "${ECHO_T}yes" >&6
1.1.1.2 maekawa 3641:
1.1.1.4 ! ohara 3642: rm -f a.out a.exe conftest$ac_cv_exeext
! 3643: ac_clean_files=$ac_clean_files_save
! 3644: # Check the compiler produces executables we can run. If not, either
! 3645: # the compiler is broken, or we cross compile.
! 3646: echo "$as_me:3646: checking whether we are cross compiling" >&5
! 3647: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 3648: echo "$as_me:3648: result: $cross_compiling" >&5
! 3649: echo "${ECHO_T}$cross_compiling" >&6
! 3650:
! 3651: echo "$as_me:3651: checking for executable suffix" >&5
! 3652: echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
! 3653: if { (eval echo "$as_me:3653: \"$ac_link\"") >&5
! 3654: (eval $ac_link) 2>&5
! 3655: ac_status=$?
! 3656: echo "$as_me:3656: \$? = $ac_status" >&5
! 3657: (exit $ac_status); }; then
! 3658: # If both `conftest.exe' and `conftest' are `present' (well, observable)
! 3659: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
! 3660: # work properly (i.e., refer to `conftest.exe'), while it won't with
! 3661: # `rm'.
! 3662: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
! 3663: case $ac_file in
! 3664: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3665: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3666: export ac_cv_exeext
! 3667: break;;
! 3668: * ) break;;
! 3669: esac
! 3670: done
1.1.1.2 maekawa 3671: else
1.1.1.4 ! ohara 3672: { { echo "$as_me:3672: error: cannot compute EXEEXT: cannot compile and link" >&5
! 3673: echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
! 3674: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 3675: fi
3676:
1.1.1.4 ! ohara 3677: rm -f conftest$ac_cv_exeext
! 3678: echo "$as_me:3678: result: $ac_cv_exeext" >&5
! 3679: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1.1.2 maekawa 3680:
1.1.1.4 ! ohara 3681: rm -f conftest.$ac_ext
! 3682: EXEEXT=$ac_cv_exeext
! 3683: ac_exeext=$EXEEXT
! 3684: echo "$as_me:3684: checking for object suffix" >&5
! 3685: echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
! 3686: if test "${ac_cv_objext+set}" = set; then
! 3687: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3688: else
! 3689: cat >conftest.$ac_ext <<_ACEOF
! 3690: #line 3690 "configure"
! 3691: #include "confdefs.h"
1.1.1.2 maekawa 3692:
1.1.1.4 ! ohara 3693: int
! 3694: main ()
! 3695: {
1.1.1.2 maekawa 3696:
1.1.1.4 ! ohara 3697: ;
! 3698: return 0;
! 3699: }
! 3700: _ACEOF
! 3701: rm -f conftest.o conftest.obj
! 3702: if { (eval echo "$as_me:3702: \"$ac_compile\"") >&5
! 3703: (eval $ac_compile) 2>&5
! 3704: ac_status=$?
! 3705: echo "$as_me:3705: \$? = $ac_status" >&5
! 3706: (exit $ac_status); }; then
! 3707: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
! 3708: case $ac_file in
! 3709: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
! 3710: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
! 3711: break;;
! 3712: esac
! 3713: done
! 3714: else
! 3715: echo "$as_me: failed program was:" >&5
! 3716: cat conftest.$ac_ext >&5
! 3717: { { echo "$as_me:3717: error: cannot compute OBJEXT: cannot compile" >&5
! 3718: echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
! 3719: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 3720: fi
3721:
1.1.1.4 ! ohara 3722: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1.1.2 maekawa 3723: fi
1.1.1.4 ! ohara 3724: echo "$as_me:3724: result: $ac_cv_objext" >&5
! 3725: echo "${ECHO_T}$ac_cv_objext" >&6
! 3726: OBJEXT=$ac_cv_objext
! 3727: ac_objext=$OBJEXT
! 3728: echo "$as_me:3728: checking whether we are using the GNU C compiler" >&5
! 3729: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 3730: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 3731: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3732: else
1.1.1.4 ! ohara 3733: cat >conftest.$ac_ext <<_ACEOF
! 3734: #line 3734 "configure"
1.1.1.2 maekawa 3735: #include "confdefs.h"
3736:
3737: int
3738: main ()
3739: {
1.1.1.4 ! ohara 3740: #ifndef __GNUC__
! 3741: choke me
1.1.1.2 maekawa 3742: #endif
1.1.1.4 ! ohara 3743:
1.1.1.2 maekawa 3744: ;
3745: return 0;
3746: }
1.1.1.4 ! ohara 3747: _ACEOF
! 3748: rm -f conftest.$ac_objext
! 3749: if { (eval echo "$as_me:3749: \"$ac_compile\"") >&5
! 3750: (eval $ac_compile) 2>&5
! 3751: ac_status=$?
! 3752: echo "$as_me:3752: \$? = $ac_status" >&5
! 3753: (exit $ac_status); } &&
! 3754: { ac_try='test -s conftest.$ac_objext'
! 3755: { (eval echo "$as_me:3755: \"$ac_try\"") >&5
! 3756: (eval $ac_try) 2>&5
! 3757: ac_status=$?
! 3758: echo "$as_me:3758: \$? = $ac_status" >&5
! 3759: (exit $ac_status); }; }; then
! 3760: ac_compiler_gnu=yes
! 3761: else
! 3762: echo "$as_me: failed program was:" >&5
! 3763: cat conftest.$ac_ext >&5
! 3764: ac_compiler_gnu=no
! 3765: fi
! 3766: rm -f conftest.$ac_objext conftest.$ac_ext
! 3767: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 3768:
! 3769: fi
! 3770: echo "$as_me:3770: result: $ac_cv_c_compiler_gnu" >&5
! 3771: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 3772: GCC=`test $ac_compiler_gnu = yes && echo yes`
! 3773: ac_test_CFLAGS=${CFLAGS+set}
! 3774: ac_save_CFLAGS=$CFLAGS
! 3775: CFLAGS="-g"
! 3776: echo "$as_me:3776: checking whether $CC accepts -g" >&5
! 3777: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 3778: if test "${ac_cv_prog_cc_g+set}" = set; then
! 3779: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 3780: else
1.1.1.4 ! ohara 3781: cat >conftest.$ac_ext <<_ACEOF
! 3782: #line 3782 "configure"
1.1.1.2 maekawa 3783: #include "confdefs.h"
3784:
3785: int
3786: main ()
3787: {
1.1.1.4 ! ohara 3788:
1.1.1.2 maekawa 3789: ;
3790: return 0;
3791: }
1.1.1.4 ! ohara 3792: _ACEOF
! 3793: rm -f conftest.$ac_objext
! 3794: if { (eval echo "$as_me:3794: \"$ac_compile\"") >&5
! 3795: (eval $ac_compile) 2>&5
! 3796: ac_status=$?
! 3797: echo "$as_me:3797: \$? = $ac_status" >&5
! 3798: (exit $ac_status); } &&
! 3799: { ac_try='test -s conftest.$ac_objext'
! 3800: { (eval echo "$as_me:3800: \"$ac_try\"") >&5
! 3801: (eval $ac_try) 2>&5
! 3802: ac_status=$?
! 3803: echo "$as_me:3803: \$? = $ac_status" >&5
! 3804: (exit $ac_status); }; }; then
! 3805: ac_cv_prog_cc_g=yes
! 3806: else
! 3807: echo "$as_me: failed program was:" >&5
! 3808: cat conftest.$ac_ext >&5
! 3809: ac_cv_prog_cc_g=no
! 3810: fi
! 3811: rm -f conftest.$ac_objext conftest.$ac_ext
! 3812: fi
! 3813: echo "$as_me:3813: result: $ac_cv_prog_cc_g" >&5
! 3814: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
! 3815: if test "$ac_test_CFLAGS" = set; then
! 3816: CFLAGS=$ac_save_CFLAGS
! 3817: elif test $ac_cv_prog_cc_g = yes; then
! 3818: if test "$GCC" = yes; then
! 3819: CFLAGS="-g -O2"
! 3820: else
! 3821: CFLAGS="-g"
! 3822: fi
1.1.1.2 maekawa 3823: else
1.1.1.4 ! ohara 3824: if test "$GCC" = yes; then
! 3825: CFLAGS="-O2"
! 3826: else
! 3827: CFLAGS=
! 3828: fi
1.1.1.2 maekawa 3829: fi
1.1.1.4 ! ohara 3830: # Some people use a C++ compiler to compile C. Since we use `exit',
! 3831: # in C++ we need to declare it. In case someone uses the same compiler
! 3832: # for both compiling C and C++ we need to have the C++ compiler decide
! 3833: # the declaration of exit, since it's the most demanding environment.
! 3834: cat >conftest.$ac_ext <<_ACEOF
! 3835: #ifndef __cplusplus
! 3836: choke me
! 3837: #endif
! 3838: _ACEOF
! 3839: rm -f conftest.$ac_objext
! 3840: if { (eval echo "$as_me:3840: \"$ac_compile\"") >&5
! 3841: (eval $ac_compile) 2>&5
! 3842: ac_status=$?
! 3843: echo "$as_me:3843: \$? = $ac_status" >&5
! 3844: (exit $ac_status); } &&
! 3845: { ac_try='test -s conftest.$ac_objext'
! 3846: { (eval echo "$as_me:3846: \"$ac_try\"") >&5
! 3847: (eval $ac_try) 2>&5
! 3848: ac_status=$?
! 3849: echo "$as_me:3849: \$? = $ac_status" >&5
! 3850: (exit $ac_status); }; }; then
! 3851: for ac_declaration in \
! 3852: ''\
! 3853: '#include <stdlib.h>' \
! 3854: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 3855: 'extern "C" void std::exit (int); using std::exit;' \
! 3856: 'extern "C" void exit (int) throw ();' \
! 3857: 'extern "C" void exit (int);' \
! 3858: 'void exit (int);'
! 3859: do
! 3860: cat >conftest.$ac_ext <<_ACEOF
! 3861: #line 3861 "configure"
! 3862: #include "confdefs.h"
! 3863: #include <stdlib.h>
! 3864: $ac_declaration
! 3865: int
! 3866: main ()
! 3867: {
! 3868: exit (42);
! 3869: ;
! 3870: return 0;
! 3871: }
! 3872: _ACEOF
! 3873: rm -f conftest.$ac_objext
! 3874: if { (eval echo "$as_me:3874: \"$ac_compile\"") >&5
! 3875: (eval $ac_compile) 2>&5
! 3876: ac_status=$?
! 3877: echo "$as_me:3877: \$? = $ac_status" >&5
! 3878: (exit $ac_status); } &&
! 3879: { ac_try='test -s conftest.$ac_objext'
! 3880: { (eval echo "$as_me:3880: \"$ac_try\"") >&5
! 3881: (eval $ac_try) 2>&5
! 3882: ac_status=$?
! 3883: echo "$as_me:3883: \$? = $ac_status" >&5
! 3884: (exit $ac_status); }; }; then
! 3885: :
1.1.1.2 maekawa 3886: else
1.1.1.4 ! ohara 3887: echo "$as_me: failed program was:" >&5
! 3888: cat conftest.$ac_ext >&5
! 3889: continue
! 3890: fi
! 3891: rm -f conftest.$ac_objext conftest.$ac_ext
! 3892: cat >conftest.$ac_ext <<_ACEOF
! 3893: #line 3893 "configure"
1.1.1.2 maekawa 3894: #include "confdefs.h"
1.1.1.4 ! ohara 3895: $ac_declaration
1.1.1.2 maekawa 3896: int
3897: main ()
3898: {
1.1.1.4 ! ohara 3899: exit (42);
1.1.1.2 maekawa 3900: ;
3901: return 0;
3902: }
1.1.1.4 ! ohara 3903: _ACEOF
! 3904: rm -f conftest.$ac_objext
! 3905: if { (eval echo "$as_me:3905: \"$ac_compile\"") >&5
! 3906: (eval $ac_compile) 2>&5
! 3907: ac_status=$?
! 3908: echo "$as_me:3908: \$? = $ac_status" >&5
! 3909: (exit $ac_status); } &&
! 3910: { ac_try='test -s conftest.$ac_objext'
! 3911: { (eval echo "$as_me:3911: \"$ac_try\"") >&5
! 3912: (eval $ac_try) 2>&5
! 3913: ac_status=$?
! 3914: echo "$as_me:3914: \$? = $ac_status" >&5
! 3915: (exit $ac_status); }; }; then
! 3916: break
1.1.1.2 maekawa 3917: else
1.1.1.4 ! ohara 3918: echo "$as_me: failed program was:" >&5
! 3919: cat conftest.$ac_ext >&5
1.1.1.2 maekawa 3920: fi
1.1.1.4 ! ohara 3921: rm -f conftest.$ac_objext conftest.$ac_ext
! 3922: done
1.1.1.2 maekawa 3923: rm -f conftest*
1.1.1.4 ! ohara 3924: if test -n "$ac_declaration"; then
! 3925: echo '#ifdef __cplusplus' >>confdefs.h
! 3926: echo $ac_declaration >>confdefs.h
! 3927: echo '#endif' >>confdefs.h
1.1.1.2 maekawa 3928: fi
1.1.1.4 ! ohara 3929:
1.1.1.2 maekawa 3930: else
1.1.1.4 ! ohara 3931: echo "$as_me: failed program was:" >&5
! 3932: cat conftest.$ac_ext >&5
1.1.1.2 maekawa 3933: fi
1.1.1.4 ! ohara 3934: rm -f conftest.$ac_objext conftest.$ac_ext
! 3935: ac_ext=c
! 3936: ac_cpp='$CPP $CPPFLAGS'
! 3937: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3938: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3939: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3940:
! 3941: ac_config_commands="$ac_config_commands default-1"
! 3942:
! 3943: am_make=${MAKE-make}
! 3944: cat > confinc << 'END'
! 3945: doit:
! 3946: @echo done
! 3947: END
! 3948: # If we don't find an include directive, just comment out the code.
! 3949: echo "$as_me:3949: checking for style of include used by $am_make" >&5
! 3950: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
! 3951: am__include='#'
! 3952: am__quote=
! 3953: _am_result=none
! 3954: # First try GNU make style include.
! 3955: echo "include confinc" > confmf
! 3956: # We grep out `Entering directory' and `Leaving directory'
! 3957: # messages which can occur if `w' ends up in MAKEFLAGS.
! 3958: # In particular we don't look at `^make:' because GNU make might
! 3959: # be invoked under some other name (usually "gmake"), in which
! 3960: # case it prints its new name instead of `make'.
! 3961: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
! 3962: am__include=include
! 3963: am__quote=
! 3964: _am_result=GNU
! 3965: fi
! 3966: # Now try BSD make style include.
! 3967: if test "$am__include" = "#"; then
! 3968: echo '.include "confinc"' > confmf
! 3969: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
! 3970: am__include=.include
! 3971: am__quote='"'
! 3972: _am_result=BSD
! 3973: fi
1.1.1.2 maekawa 3974: fi
3975:
1.1.1.4 ! ohara 3976: echo "$as_me:3976: result: $_am_result" >&5
! 3977: echo "${ECHO_T}$_am_result" >&6
! 3978: rm -f confinc confmf
! 3979:
! 3980: depcc="$CC" am_compiler_list=
! 3981:
! 3982: echo "$as_me:3982: checking dependency style of $depcc" >&5
! 3983: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 3984: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
! 3985: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3986: else
! 3987: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 3988: # We make a subdir and do the tests there. Otherwise we can end up
! 3989: # making bogus files that we don't know about and never remove. For
! 3990: # instance it was reported that on HP-UX the gcc test will end up
! 3991: # making a dummy file named `D' -- because `-MD' means `put the output
! 3992: # in D'.
! 3993: mkdir conftest.dir
! 3994: # Copy depcomp to subdir because otherwise we won't find it if we're
! 3995: # using a relative directory.
! 3996: cp "$am_depcomp" conftest.dir
! 3997: cd conftest.dir
! 3998:
! 3999: am_cv_CC_dependencies_compiler_type=none
! 4000: if test "$am_compiler_list" = ""; then
! 4001: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 4002: fi
! 4003: for depmode in $am_compiler_list; do
! 4004: # We need to recreate these files for each test, as the compiler may
! 4005: # overwrite some of them when testing with obscure command lines.
! 4006: # This happens at least with the AIX C compiler.
! 4007: echo '#include "conftest.h"' > conftest.c
! 4008: echo 'int i;' > conftest.h
! 4009: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 4010:
! 4011: case $depmode in
! 4012: nosideeffect)
! 4013: # after this tag, mechanisms are not by side-effect, so they'll
! 4014: # only be used when explicitly requested
! 4015: if test "x$enable_dependency_tracking" = xyes; then
! 4016: continue
! 4017: else
! 4018: break
! 4019: fi
! 4020: ;;
! 4021: none) break ;;
1.1.1.2 maekawa 4022: esac
1.1.1.4 ! ohara 4023: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 4024: # mode. It turns out that the SunPro C++ compiler does not properly
! 4025: # handle `-M -o', and we need to detect this.
! 4026: if depmode=$depmode \
! 4027: source=conftest.c object=conftest.o \
! 4028: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 4029: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
! 4030: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 4031: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 4032: am_cv_CC_dependencies_compiler_type=$depmode
! 4033: break
! 4034: fi
1.1.1.2 maekawa 4035: done
1.1.1.4 ! ohara 4036:
! 4037: cd ..
! 4038: rm -rf conftest.dir
1.1.1.2 maekawa 4039: else
1.1.1.4 ! ohara 4040: am_cv_CC_dependencies_compiler_type=none
1.1.1.2 maekawa 4041: fi
4042:
1.1.1.4 ! ohara 4043: fi
! 4044: echo "$as_me:4044: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4045: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
! 4046: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1.1.1.2 maekawa 4047:
1.1.1.4 ! ohara 4048: echo "$as_me:4048: checking for $CC option to accept ANSI C" >&5
! 4049: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 4050: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 4051: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 4052: else
1.1.1.4 ! ohara 4053: ac_cv_prog_cc_stdc=no
! 4054: ac_save_CC=$CC
! 4055: cat >conftest.$ac_ext <<_ACEOF
! 4056: #line 4056 "configure"
! 4057: #include "confdefs.h"
! 4058: #include <stdarg.h>
! 4059: #include <stdio.h>
! 4060: #include <sys/types.h>
! 4061: #include <sys/stat.h>
! 4062: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 4063: struct buf { int x; };
! 4064: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 4065: static char *e (p, i)
! 4066: char **p;
! 4067: int i;
! 4068: {
! 4069: return p[i];
! 4070: }
! 4071: static char *f (char * (*g) (char **, int), char **p, ...)
! 4072: {
! 4073: char *s;
! 4074: va_list v;
! 4075: va_start (v,p);
! 4076: s = g (p, va_arg (v,int));
! 4077: va_end (v);
! 4078: return s;
! 4079: }
! 4080: int test (int i, double x);
! 4081: struct s1 {int (*f) (int a);};
! 4082: struct s2 {int (*f) (double a);};
! 4083: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 4084: int argc;
! 4085: char **argv;
! 4086: int
! 4087: main ()
! 4088: {
! 4089: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 4090: ;
! 4091: return 0;
! 4092: }
! 4093: _ACEOF
! 4094: # Don't try gcc -ansi; that turns off useful extensions and
! 4095: # breaks some systems' header files.
! 4096: # AIX -qlanglvl=ansi
! 4097: # Ultrix and OSF/1 -std1
! 4098: # HP-UX 10.20 and later -Ae
! 4099: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 4100: # SVR4 -Xc -D__EXTENSIONS__
! 4101: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 4102: do
! 4103: CC="$ac_save_CC $ac_arg"
! 4104: rm -f conftest.$ac_objext
! 4105: if { (eval echo "$as_me:4105: \"$ac_compile\"") >&5
! 4106: (eval $ac_compile) 2>&5
! 4107: ac_status=$?
! 4108: echo "$as_me:4108: \$? = $ac_status" >&5
! 4109: (exit $ac_status); } &&
! 4110: { ac_try='test -s conftest.$ac_objext'
! 4111: { (eval echo "$as_me:4111: \"$ac_try\"") >&5
! 4112: (eval $ac_try) 2>&5
! 4113: ac_status=$?
! 4114: echo "$as_me:4114: \$? = $ac_status" >&5
! 4115: (exit $ac_status); }; }; then
! 4116: ac_cv_prog_cc_stdc=$ac_arg
! 4117: break
! 4118: else
! 4119: echo "$as_me: failed program was:" >&5
! 4120: cat conftest.$ac_ext >&5
1.1.1.2 maekawa 4121: fi
1.1.1.4 ! ohara 4122: rm -f conftest.$ac_objext
! 4123: done
! 4124: rm -f conftest.$ac_ext conftest.$ac_objext
! 4125: CC=$ac_save_CC
! 4126:
! 4127: fi
! 4128:
! 4129: case "x$ac_cv_prog_cc_stdc" in
! 4130: x|xno)
! 4131: echo "$as_me:4131: result: none needed" >&5
! 4132: echo "${ECHO_T}none needed" >&6 ;;
! 4133: *)
! 4134: echo "$as_me:4134: result: $ac_cv_prog_cc_stdc" >&5
! 4135: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 4136: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1.1.2 maekawa 4137: esac
1.1.1.4 ! ohara 4138:
! 4139: ac_ext=c
! 4140: ac_cpp='$CPP $CPPFLAGS'
! 4141: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4142: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4143: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4144: echo "$as_me:4144: checking how to run the C preprocessor" >&5
! 4145: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
! 4146: # On Suns, sometimes $CPP names a directory.
! 4147: if test -n "$CPP" && test -d "$CPP"; then
! 4148: CPP=
! 4149: fi
! 4150: if test -z "$CPP"; then
! 4151: if test "${ac_cv_prog_CPP+set}" = set; then
! 4152: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 4153: else
1.1.1.4 ! ohara 4154: # Double quotes because CPP needs to be expanded
! 4155: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
! 4156: do
! 4157: ac_preproc_ok=false
! 4158: for ac_c_preproc_warn_flag in '' yes
! 4159: do
! 4160: # Use a header file that comes with gcc, so configuring glibc
! 4161: # with a fresh cross-compiler works.
! 4162: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4163: # not just through cpp. "Syntax error" is here to catch this case.
! 4164: cat >conftest.$ac_ext <<_ACEOF
! 4165: #line 4165 "configure"
! 4166: #include "confdefs.h"
! 4167: #include <assert.h>
! 4168: Syntax error
! 4169: _ACEOF
! 4170: if { (eval echo "$as_me:4170: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4171: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4172: ac_status=$?
! 4173: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4174: rm -f conftest.er1
! 4175: cat conftest.err >&5
! 4176: echo "$as_me:4176: \$? = $ac_status" >&5
! 4177: (exit $ac_status); } >/dev/null; then
! 4178: if test -s conftest.err; then
! 4179: ac_cpp_err=$ac_c_preproc_warn_flag
! 4180: else
! 4181: ac_cpp_err=
! 4182: fi
! 4183: else
! 4184: ac_cpp_err=yes
1.1.1.2 maekawa 4185: fi
1.1.1.4 ! ohara 4186: if test -z "$ac_cpp_err"; then
! 4187: :
1.1.1.2 maekawa 4188: else
1.1.1.4 ! ohara 4189: echo "$as_me: failed program was:" >&5
! 4190: cat conftest.$ac_ext >&5
! 4191: # Broken: fails on valid input.
! 4192: continue
1.1.1.2 maekawa 4193: fi
1.1.1.4 ! ohara 4194: rm -f conftest.err conftest.$ac_ext
1.1.1.2 maekawa 4195:
1.1.1.4 ! ohara 4196: # OK, works on sane cases. Now check whether non-existent headers
! 4197: # can be detected and how.
! 4198: cat >conftest.$ac_ext <<_ACEOF
! 4199: #line 4199 "configure"
! 4200: #include "confdefs.h"
! 4201: #include <ac_nonexistent.h>
! 4202: _ACEOF
! 4203: if { (eval echo "$as_me:4203: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4204: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4205: ac_status=$?
! 4206: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4207: rm -f conftest.er1
! 4208: cat conftest.err >&5
! 4209: echo "$as_me:4209: \$? = $ac_status" >&5
! 4210: (exit $ac_status); } >/dev/null; then
! 4211: if test -s conftest.err; then
! 4212: ac_cpp_err=$ac_c_preproc_warn_flag
! 4213: else
! 4214: ac_cpp_err=
1.1.1.2 maekawa 4215: fi
1.1.1.4 ! ohara 4216: else
! 4217: ac_cpp_err=yes
! 4218: fi
! 4219: if test -z "$ac_cpp_err"; then
! 4220: # Broken: success on invalid input.
! 4221: continue
! 4222: else
! 4223: echo "$as_me: failed program was:" >&5
! 4224: cat conftest.$ac_ext >&5
! 4225: # Passes both tests.
! 4226: ac_preproc_ok=:
! 4227: break
! 4228: fi
! 4229: rm -f conftest.err conftest.$ac_ext
1.1.1.2 maekawa 4230:
1.1.1.4 ! ohara 4231: done
! 4232: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4233: rm -f conftest.err conftest.$ac_ext
! 4234: if $ac_preproc_ok; then
! 4235: break
! 4236: fi
1.1.1.2 maekawa 4237:
1.1.1.4 ! ohara 4238: done
! 4239: ac_cv_prog_CPP=$CPP
! 4240:
! 4241: fi
! 4242: CPP=$ac_cv_prog_CPP
1.1.1.2 maekawa 4243: else
1.1.1.4 ! ohara 4244: ac_cv_prog_CPP=$CPP
1.1.1.2 maekawa 4245: fi
1.1.1.4 ! ohara 4246: echo "$as_me:4246: result: $CPP" >&5
! 4247: echo "${ECHO_T}$CPP" >&6
! 4248: ac_preproc_ok=false
! 4249: for ac_c_preproc_warn_flag in '' yes
! 4250: do
! 4251: # Use a header file that comes with gcc, so configuring glibc
! 4252: # with a fresh cross-compiler works.
! 4253: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4254: # not just through cpp. "Syntax error" is here to catch this case.
! 4255: cat >conftest.$ac_ext <<_ACEOF
! 4256: #line 4256 "configure"
! 4257: #include "confdefs.h"
! 4258: #include <assert.h>
! 4259: Syntax error
! 4260: _ACEOF
! 4261: if { (eval echo "$as_me:4261: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4262: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4263: ac_status=$?
! 4264: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4265: rm -f conftest.er1
! 4266: cat conftest.err >&5
! 4267: echo "$as_me:4267: \$? = $ac_status" >&5
! 4268: (exit $ac_status); } >/dev/null; then
! 4269: if test -s conftest.err; then
! 4270: ac_cpp_err=$ac_c_preproc_warn_flag
! 4271: else
! 4272: ac_cpp_err=
! 4273: fi
! 4274: else
! 4275: ac_cpp_err=yes
! 4276: fi
! 4277: if test -z "$ac_cpp_err"; then
! 4278: :
! 4279: else
! 4280: echo "$as_me: failed program was:" >&5
! 4281: cat conftest.$ac_ext >&5
! 4282: # Broken: fails on valid input.
! 4283: continue
! 4284: fi
! 4285: rm -f conftest.err conftest.$ac_ext
1.1.1.2 maekawa 4286:
1.1.1.4 ! ohara 4287: # OK, works on sane cases. Now check whether non-existent headers
! 4288: # can be detected and how.
! 4289: cat >conftest.$ac_ext <<_ACEOF
! 4290: #line 4290 "configure"
! 4291: #include "confdefs.h"
! 4292: #include <ac_nonexistent.h>
! 4293: _ACEOF
! 4294: if { (eval echo "$as_me:4294: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4295: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4296: ac_status=$?
! 4297: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4298: rm -f conftest.er1
! 4299: cat conftest.err >&5
! 4300: echo "$as_me:4300: \$? = $ac_status" >&5
! 4301: (exit $ac_status); } >/dev/null; then
! 4302: if test -s conftest.err; then
! 4303: ac_cpp_err=$ac_c_preproc_warn_flag
! 4304: else
! 4305: ac_cpp_err=
! 4306: fi
! 4307: else
! 4308: ac_cpp_err=yes
! 4309: fi
! 4310: if test -z "$ac_cpp_err"; then
! 4311: # Broken: success on invalid input.
! 4312: continue
! 4313: else
! 4314: echo "$as_me: failed program was:" >&5
! 4315: cat conftest.$ac_ext >&5
! 4316: # Passes both tests.
! 4317: ac_preproc_ok=:
! 4318: break
! 4319: fi
! 4320: rm -f conftest.err conftest.$ac_ext
1.1.1.2 maekawa 4321:
1.1.1.4 ! ohara 4322: done
! 4323: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4324: rm -f conftest.err conftest.$ac_ext
! 4325: if $ac_preproc_ok; then
! 4326: :
1.1.1.2 maekawa 4327: else
1.1.1.4 ! ohara 4328: { { echo "$as_me:4328: error: C preprocessor \"$CPP\" fails sanity check" >&5
! 4329: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
! 4330: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 4331: fi
4332:
1.1.1.4 ! ohara 4333: ac_ext=c
! 4334: ac_cpp='$CPP $CPPFLAGS'
! 4335: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4336: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4337: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4338:
! 4339: case $ac_cv_prog_cc_stdc in
! 4340: no)
1.1.1.2 maekawa 4341: ;;
4342: *)
1.1.1.4 ! ohara 4343: cat >conftest.$ac_ext <<_ACEOF
! 4344: #line 4344 "configure"
! 4345: #include "confdefs.h"
! 4346: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 4347: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 4348: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 4349: #define GMP_LIMB_BITS 123
! 4350: $DEFN_LONG_LONG_LIMB
! 4351: #include "$srcdir/gmp-h.in"
! 4352:
! 4353: #if ! __GMP_HAVE_PROTOTYPES
! 4354: die die die
! 4355: #endif
! 4356:
! 4357: int
! 4358: main ()
! 4359: {
! 4360:
! 4361: ;
! 4362: return 0;
! 4363: }
! 4364: _ACEOF
! 4365: rm -f conftest.$ac_objext
! 4366: if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5
! 4367: (eval $ac_compile) 2>&5
! 4368: ac_status=$?
! 4369: echo "$as_me:4369: \$? = $ac_status" >&5
! 4370: (exit $ac_status); } &&
! 4371: { ac_try='test -s conftest.$ac_objext'
! 4372: { (eval echo "$as_me:4372: \"$ac_try\"") >&5
! 4373: (eval $ac_try) 2>&5
! 4374: ac_status=$?
! 4375: echo "$as_me:4375: \$? = $ac_status" >&5
! 4376: (exit $ac_status); }; }; then
! 4377: :
1.1.1.2 maekawa 4378: else
1.1.1.4 ! ohara 4379: echo "$as_me: failed program was:" >&5
! 4380: cat conftest.$ac_ext >&5
! 4381: { echo "$as_me:4381: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
! 4382: echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
1.1.1.2 maekawa 4383: fi
1.1.1.4 ! ohara 4384: rm -f conftest.$ac_objext conftest.$ac_ext
! 4385: ;;
! 4386: esac
! 4387:
! 4388: # The C++ compiler, if desired.
! 4389: want_cxx=no
! 4390: if test $enable_cxx != no; then
! 4391: test_CXXFLAGS=${CXXFLAGS+set}
! 4392: ac_ext=cc
! 4393: ac_cpp='$CXXCPP $CPPFLAGS'
! 4394: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4395: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4396: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4397: if test -n "$ac_tool_prefix"; then
! 4398: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 4399: do
! 4400: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 4401: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 4402: echo "$as_me:4402: checking for $ac_word" >&5
! 4403: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4404: if test "${ac_cv_prog_CXX+set}" = set; then
! 4405: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 4406: else
1.1.1.4 ! ohara 4407: if test -n "$CXX"; then
! 4408: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.1.1.2 maekawa 4409: else
1.1.1.4 ! ohara 4410: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 4411: ac_dummy="$PATH"
! 4412: for ac_dir in $ac_dummy; do
! 4413: IFS=$ac_save_IFS
! 4414: test -z "$ac_dir" && ac_dir=.
! 4415: $as_executable_p "$ac_dir/$ac_word" || continue
! 4416: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 4417: echo "$as_me:4417: found $ac_dir/$ac_word" >&5
! 4418: break
! 4419: done
! 4420:
1.1.1.2 maekawa 4421: fi
4422: fi
1.1.1.4 ! ohara 4423: CXX=$ac_cv_prog_CXX
! 4424: if test -n "$CXX"; then
! 4425: echo "$as_me:4425: result: $CXX" >&5
! 4426: echo "${ECHO_T}$CXX" >&6
1.1.1.2 maekawa 4427: else
1.1.1.4 ! ohara 4428: echo "$as_me:4428: result: no" >&5
! 4429: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 4430: fi
1.1.1.4 ! ohara 4431:
! 4432: test -n "$CXX" && break
! 4433: done
! 4434: fi
! 4435: if test -z "$CXX"; then
! 4436: ac_ct_CXX=$CXX
! 4437: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 4438: do
! 4439: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 4440: set dummy $ac_prog; ac_word=$2
! 4441: echo "$as_me:4441: checking for $ac_word" >&5
! 4442: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 4443: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 4444: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 4445: else
1.1.1.4 ! ohara 4446: if test -n "$ac_ct_CXX"; then
! 4447: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.1.1.2 maekawa 4448: else
1.1.1.4 ! ohara 4449: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 4450: ac_dummy="$PATH"
! 4451: for ac_dir in $ac_dummy; do
! 4452: IFS=$ac_save_IFS
! 4453: test -z "$ac_dir" && ac_dir=.
! 4454: $as_executable_p "$ac_dir/$ac_word" || continue
! 4455: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 4456: echo "$as_me:4456: found $ac_dir/$ac_word" >&5
! 4457: break
! 4458: done
! 4459:
1.1.1.2 maekawa 4460: fi
4461: fi
1.1.1.4 ! ohara 4462: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 4463: if test -n "$ac_ct_CXX"; then
! 4464: echo "$as_me:4464: result: $ac_ct_CXX" >&5
! 4465: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1.1.2 maekawa 4466: else
1.1.1.4 ! ohara 4467: echo "$as_me:4467: result: no" >&5
! 4468: echo "${ECHO_T}no" >&6
1.1.1.2 maekawa 4469: fi
4470:
1.1.1.4 ! ohara 4471: test -n "$ac_ct_CXX" && break
! 4472: done
! 4473: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1.1.2 maekawa 4474:
1.1.1.4 ! ohara 4475: CXX=$ac_ct_CXX
! 4476: fi
1.1.1.2 maekawa 4477:
1.1.1.4 ! ohara 4478: # Provide some information about the compiler.
! 4479: echo "$as_me:4479:" \
! 4480: "checking for C++ compiler version" >&5
! 4481: ac_compiler=`set X $ac_compile; echo $2`
! 4482: { (eval echo "$as_me:4482: \"$ac_compiler --version </dev/null >&5\"") >&5
! 4483: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 4484: ac_status=$?
! 4485: echo "$as_me:4485: \$? = $ac_status" >&5
! 4486: (exit $ac_status); }
! 4487: { (eval echo "$as_me:4487: \"$ac_compiler -v </dev/null >&5\"") >&5
! 4488: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 4489: ac_status=$?
! 4490: echo "$as_me:4490: \$? = $ac_status" >&5
! 4491: (exit $ac_status); }
! 4492: { (eval echo "$as_me:4492: \"$ac_compiler -V </dev/null >&5\"") >&5
! 4493: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 4494: ac_status=$?
! 4495: echo "$as_me:4495: \$? = $ac_status" >&5
! 4496: (exit $ac_status); }
! 4497:
! 4498: echo "$as_me:4498: checking whether we are using the GNU C++ compiler" >&5
! 4499: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
! 4500: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 4501: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4502: else
! 4503: cat >conftest.$ac_ext <<_ACEOF
! 4504: #line 4504 "configure"
! 4505: #include "confdefs.h"
1.1.1.2 maekawa 4506:
1.1.1.4 ! ohara 4507: int
! 4508: main ()
! 4509: {
! 4510: #ifndef __GNUC__
! 4511: choke me
! 4512: #endif
1.1.1.2 maekawa 4513:
1.1.1.4 ! ohara 4514: ;
! 4515: return 0;
! 4516: }
! 4517: _ACEOF
! 4518: rm -f conftest.$ac_objext
! 4519: if { (eval echo "$as_me:4519: \"$ac_compile\"") >&5
! 4520: (eval $ac_compile) 2>&5
! 4521: ac_status=$?
! 4522: echo "$as_me:4522: \$? = $ac_status" >&5
! 4523: (exit $ac_status); } &&
! 4524: { ac_try='test -s conftest.$ac_objext'
! 4525: { (eval echo "$as_me:4525: \"$ac_try\"") >&5
! 4526: (eval $ac_try) 2>&5
! 4527: ac_status=$?
! 4528: echo "$as_me:4528: \$? = $ac_status" >&5
! 4529: (exit $ac_status); }; }; then
! 4530: ac_compiler_gnu=yes
! 4531: else
! 4532: echo "$as_me: failed program was:" >&5
! 4533: cat conftest.$ac_ext >&5
! 4534: ac_compiler_gnu=no
! 4535: fi
! 4536: rm -f conftest.$ac_objext conftest.$ac_ext
! 4537: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 4538:
! 4539: fi
! 4540: echo "$as_me:4540: result: $ac_cv_cxx_compiler_gnu" >&5
! 4541: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
! 4542: GXX=`test $ac_compiler_gnu = yes && echo yes`
! 4543: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 4544: ac_save_CXXFLAGS=$CXXFLAGS
! 4545: CXXFLAGS="-g"
! 4546: echo "$as_me:4546: checking whether $CXX accepts -g" >&5
! 4547: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
! 4548: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 4549: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4550: else
! 4551: cat >conftest.$ac_ext <<_ACEOF
! 4552: #line 4552 "configure"
! 4553: #include "confdefs.h"
1.1.1.2 maekawa 4554:
1.1.1.4 ! ohara 4555: int
! 4556: main ()
! 4557: {
1.1.1.2 maekawa 4558:
1.1.1.4 ! ohara 4559: ;
! 4560: return 0;
! 4561: }
! 4562: _ACEOF
! 4563: rm -f conftest.$ac_objext
! 4564: if { (eval echo "$as_me:4564: \"$ac_compile\"") >&5
! 4565: (eval $ac_compile) 2>&5
! 4566: ac_status=$?
! 4567: echo "$as_me:4567: \$? = $ac_status" >&5
! 4568: (exit $ac_status); } &&
! 4569: { ac_try='test -s conftest.$ac_objext'
! 4570: { (eval echo "$as_me:4570: \"$ac_try\"") >&5
! 4571: (eval $ac_try) 2>&5
! 4572: ac_status=$?
! 4573: echo "$as_me:4573: \$? = $ac_status" >&5
! 4574: (exit $ac_status); }; }; then
! 4575: ac_cv_prog_cxx_g=yes
! 4576: else
! 4577: echo "$as_me: failed program was:" >&5
! 4578: cat conftest.$ac_ext >&5
! 4579: ac_cv_prog_cxx_g=no
! 4580: fi
! 4581: rm -f conftest.$ac_objext conftest.$ac_ext
! 4582: fi
! 4583: echo "$as_me:4583: result: $ac_cv_prog_cxx_g" >&5
! 4584: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
! 4585: if test "$ac_test_CXXFLAGS" = set; then
! 4586: CXXFLAGS=$ac_save_CXXFLAGS
! 4587: elif test $ac_cv_prog_cxx_g = yes; then
! 4588: if test "$GXX" = yes; then
! 4589: CXXFLAGS="-g -O2"
! 4590: else
! 4591: CXXFLAGS="-g"
! 4592: fi
! 4593: else
! 4594: if test "$GXX" = yes; then
! 4595: CXXFLAGS="-O2"
! 4596: else
! 4597: CXXFLAGS=
! 4598: fi
! 4599: fi
! 4600: for ac_declaration in \
! 4601: ''\
! 4602: '#include <stdlib.h>' \
! 4603: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 4604: 'extern "C" void std::exit (int); using std::exit;' \
! 4605: 'extern "C" void exit (int) throw ();' \
! 4606: 'extern "C" void exit (int);' \
! 4607: 'void exit (int);'
! 4608: do
! 4609: cat >conftest.$ac_ext <<_ACEOF
! 4610: #line 4610 "configure"
! 4611: #include "confdefs.h"
! 4612: #include <stdlib.h>
! 4613: $ac_declaration
! 4614: int
! 4615: main ()
! 4616: {
! 4617: exit (42);
! 4618: ;
! 4619: return 0;
! 4620: }
! 4621: _ACEOF
! 4622: rm -f conftest.$ac_objext
! 4623: if { (eval echo "$as_me:4623: \"$ac_compile\"") >&5
! 4624: (eval $ac_compile) 2>&5
! 4625: ac_status=$?
! 4626: echo "$as_me:4626: \$? = $ac_status" >&5
! 4627: (exit $ac_status); } &&
! 4628: { ac_try='test -s conftest.$ac_objext'
! 4629: { (eval echo "$as_me:4629: \"$ac_try\"") >&5
! 4630: (eval $ac_try) 2>&5
! 4631: ac_status=$?
! 4632: echo "$as_me:4632: \$? = $ac_status" >&5
! 4633: (exit $ac_status); }; }; then
! 4634: :
! 4635: else
! 4636: echo "$as_me: failed program was:" >&5
! 4637: cat conftest.$ac_ext >&5
! 4638: continue
! 4639: fi
! 4640: rm -f conftest.$ac_objext conftest.$ac_ext
! 4641: cat >conftest.$ac_ext <<_ACEOF
! 4642: #line 4642 "configure"
! 4643: #include "confdefs.h"
! 4644: $ac_declaration
! 4645: int
! 4646: main ()
! 4647: {
! 4648: exit (42);
! 4649: ;
! 4650: return 0;
! 4651: }
! 4652: _ACEOF
! 4653: rm -f conftest.$ac_objext
! 4654: if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
! 4655: (eval $ac_compile) 2>&5
! 4656: ac_status=$?
! 4657: echo "$as_me:4657: \$? = $ac_status" >&5
! 4658: (exit $ac_status); } &&
! 4659: { ac_try='test -s conftest.$ac_objext'
! 4660: { (eval echo "$as_me:4660: \"$ac_try\"") >&5
! 4661: (eval $ac_try) 2>&5
! 4662: ac_status=$?
! 4663: echo "$as_me:4663: \$? = $ac_status" >&5
! 4664: (exit $ac_status); }; }; then
! 4665: break
! 4666: else
! 4667: echo "$as_me: failed program was:" >&5
! 4668: cat conftest.$ac_ext >&5
! 4669: fi
! 4670: rm -f conftest.$ac_objext conftest.$ac_ext
! 4671: done
! 4672: rm -f conftest*
! 4673: if test -n "$ac_declaration"; then
! 4674: echo '#ifdef __cplusplus' >>confdefs.h
! 4675: echo $ac_declaration >>confdefs.h
! 4676: echo '#endif' >>confdefs.h
! 4677: fi
! 4678:
! 4679: ac_ext=c
! 4680: ac_cpp='$CPP $CPPFLAGS'
! 4681: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4682: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4683: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4684:
! 4685: depcc="$CXX" am_compiler_list=
! 4686:
! 4687: echo "$as_me:4687: checking dependency style of $depcc" >&5
! 4688: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 4689: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
! 4690: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4691: else
! 4692: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 4693: # We make a subdir and do the tests there. Otherwise we can end up
! 4694: # making bogus files that we don't know about and never remove. For
! 4695: # instance it was reported that on HP-UX the gcc test will end up
! 4696: # making a dummy file named `D' -- because `-MD' means `put the output
! 4697: # in D'.
! 4698: mkdir conftest.dir
! 4699: # Copy depcomp to subdir because otherwise we won't find it if we're
! 4700: # using a relative directory.
! 4701: cp "$am_depcomp" conftest.dir
! 4702: cd conftest.dir
! 4703:
! 4704: am_cv_CXX_dependencies_compiler_type=none
! 4705: if test "$am_compiler_list" = ""; then
! 4706: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 4707: fi
! 4708: for depmode in $am_compiler_list; do
! 4709: # We need to recreate these files for each test, as the compiler may
! 4710: # overwrite some of them when testing with obscure command lines.
! 4711: # This happens at least with the AIX C compiler.
! 4712: echo '#include "conftest.h"' > conftest.c
! 4713: echo 'int i;' > conftest.h
! 4714: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 4715:
! 4716: case $depmode in
! 4717: nosideeffect)
! 4718: # after this tag, mechanisms are not by side-effect, so they'll
! 4719: # only be used when explicitly requested
! 4720: if test "x$enable_dependency_tracking" = xyes; then
! 4721: continue
! 4722: else
! 4723: break
! 4724: fi
! 4725: ;;
! 4726: none) break ;;
! 4727: esac
! 4728: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 4729: # mode. It turns out that the SunPro C++ compiler does not properly
! 4730: # handle `-M -o', and we need to detect this.
! 4731: if depmode=$depmode \
! 4732: source=conftest.c object=conftest.o \
! 4733: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 4734: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
! 4735: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 4736: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 4737: am_cv_CXX_dependencies_compiler_type=$depmode
! 4738: break
! 4739: fi
! 4740: done
! 4741:
! 4742: cd ..
! 4743: rm -rf conftest.dir
! 4744: else
! 4745: am_cv_CXX_dependencies_compiler_type=none
! 4746: fi
! 4747:
! 4748: fi
! 4749: echo "$as_me:4749: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 4750: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
! 4751: CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
! 4752:
! 4753: echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
! 4754: cxxflags_ac_prog_cxx=$CXXFLAGS
! 4755: cxxflags_list=ac_prog_cxx
! 4756:
! 4757: # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
! 4758: # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
! 4759: # of working, eg. on a GNU system where CC=gcc and CXX=g++.
! 4760: #
! 4761: if test "$test_CXXFLAGS" != set; then
! 4762: cxxflags_cflags=$CFLAGS
! 4763: cxxflags_list="cflags $cxxflags_list"
! 4764: if test "$ac_prog_cxx_g" = no; then
! 4765: cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
! 4766: fi
! 4767: fi
! 4768:
! 4769: # See if the C++ compiler works. If the user specified CXXFLAGS then all
! 4770: # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
! 4771: # give a fatal error, just leaves CXX set to a default g++. If on the
! 4772: # other hand the user didn't specify CXXFLAGS then we get to try here our
! 4773: # $cxxflags_list alternatives.
! 4774: #
! 4775: for cxxflags_choice in $cxxflags_list; do
! 4776: eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
! 4777: echo "$as_me:4777: checking C++ compiler $CXX $CXXFLAGS" >&5
! 4778: echo $ECHO_N "checking C++ compiler $CXX $CXXFLAGS... $ECHO_C" >&6
! 4779: cat >conftest.cc <<EOF
! 4780: #include <iostream>
! 4781: using namespace std;
! 4782: int
! 4783: main (void)
! 4784: {
! 4785: cout.setf (ios::hex);
! 4786: cout << 123;
! 4787: return 0;
! 4788: }
! 4789: EOF
! 4790:
! 4791: gmp_cxxcompile="$CXX $CXXFLAGS conftest.cc -o conftest >&5"
! 4792: if { (eval echo "$as_me:4792: \"$gmp_cxxcompile\"") >&5
! 4793: (eval $gmp_cxxcompile) 2>&5
! 4794: ac_status=$?
! 4795: echo "$as_me:4795: \$? = $ac_status" >&5
! 4796: (exit $ac_status); }; then
! 4797: rm -f conftest*
! 4798: echo "$as_me:4798: result: yes" >&5
! 4799: echo "${ECHO_T}yes" >&6
! 4800: want_cxx=yes
! 4801: break
! 4802: else
! 4803: rm -f conftest*
! 4804: echo "$as_me:4804: result: no" >&5
! 4805: echo "${ECHO_T}no" >&6
! 4806: :
! 4807: fi
! 4808:
! 4809: done
! 4810:
! 4811: # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
! 4812: if test $want_cxx = no && test $enable_cxx = yes; then
! 4813: { { echo "$as_me:4813: error: C++ compiler not available" >&5
! 4814: echo "$as_me: error: C++ compiler not available" >&2;}
! 4815: { (exit 1); exit 1; }; }
! 4816: fi
! 4817: fi
! 4818:
! 4819: if test $want_cxx = yes; then
! 4820: WANT_CXX_TRUE=
! 4821: WANT_CXX_FALSE='#'
! 4822: else
! 4823: WANT_CXX_TRUE='#'
! 4824: WANT_CXX_FALSE=
! 4825: fi
! 4826:
! 4827: # FIXME: We're not interested in CXXCPP for ourselves, but if we don't call
! 4828: # it here then AC_PROG_LIBTOOL (via _LT_AC_TAGCONFIG) will do so
! 4829: # unconditionally, and that will fail if there's no C++ compiler (and no
! 4830: # generic /lib/cpp).
! 4831: #
! 4832: if test $want_cxx = yes; then
! 4833: ac_ext=cc
! 4834: ac_cpp='$CXXCPP $CPPFLAGS'
! 4835: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4836: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4837: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4838: echo "$as_me:4838: checking how to run the C++ preprocessor" >&5
! 4839: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
! 4840: if test -z "$CXXCPP"; then
! 4841: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 4842: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4843: else
! 4844: # Double quotes because CXXCPP needs to be expanded
! 4845: for CXXCPP in "$CXX -E" "/lib/cpp"
! 4846: do
! 4847: ac_preproc_ok=false
! 4848: for ac_cxx_preproc_warn_flag in '' yes
! 4849: do
! 4850: # Use a header file that comes with gcc, so configuring glibc
! 4851: # with a fresh cross-compiler works.
! 4852: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4853: # not just through cpp. "Syntax error" is here to catch this case.
! 4854: cat >conftest.$ac_ext <<_ACEOF
! 4855: #line 4855 "configure"
! 4856: #include "confdefs.h"
! 4857: #include <assert.h>
! 4858: Syntax error
! 4859: _ACEOF
! 4860: if { (eval echo "$as_me:4860: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4861: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4862: ac_status=$?
! 4863: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4864: rm -f conftest.er1
! 4865: cat conftest.err >&5
! 4866: echo "$as_me:4866: \$? = $ac_status" >&5
! 4867: (exit $ac_status); } >/dev/null; then
! 4868: if test -s conftest.err; then
! 4869: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4870: else
! 4871: ac_cpp_err=
! 4872: fi
! 4873: else
! 4874: ac_cpp_err=yes
! 4875: fi
! 4876: if test -z "$ac_cpp_err"; then
! 4877: :
! 4878: else
! 4879: echo "$as_me: failed program was:" >&5
! 4880: cat conftest.$ac_ext >&5
! 4881: # Broken: fails on valid input.
! 4882: continue
! 4883: fi
! 4884: rm -f conftest.err conftest.$ac_ext
! 4885:
! 4886: # OK, works on sane cases. Now check whether non-existent headers
! 4887: # can be detected and how.
! 4888: cat >conftest.$ac_ext <<_ACEOF
! 4889: #line 4889 "configure"
! 4890: #include "confdefs.h"
! 4891: #include <ac_nonexistent.h>
! 4892: _ACEOF
! 4893: if { (eval echo "$as_me:4893: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4894: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4895: ac_status=$?
! 4896: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4897: rm -f conftest.er1
! 4898: cat conftest.err >&5
! 4899: echo "$as_me:4899: \$? = $ac_status" >&5
! 4900: (exit $ac_status); } >/dev/null; then
! 4901: if test -s conftest.err; then
! 4902: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4903: else
! 4904: ac_cpp_err=
! 4905: fi
! 4906: else
! 4907: ac_cpp_err=yes
! 4908: fi
! 4909: if test -z "$ac_cpp_err"; then
! 4910: # Broken: success on invalid input.
! 4911: continue
! 4912: else
! 4913: echo "$as_me: failed program was:" >&5
! 4914: cat conftest.$ac_ext >&5
! 4915: # Passes both tests.
! 4916: ac_preproc_ok=:
! 4917: break
! 4918: fi
! 4919: rm -f conftest.err conftest.$ac_ext
! 4920:
! 4921: done
! 4922: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4923: rm -f conftest.err conftest.$ac_ext
! 4924: if $ac_preproc_ok; then
! 4925: break
! 4926: fi
! 4927:
! 4928: done
! 4929: ac_cv_prog_CXXCPP=$CXXCPP
! 4930:
! 4931: fi
! 4932: CXXCPP=$ac_cv_prog_CXXCPP
! 4933: else
! 4934: ac_cv_prog_CXXCPP=$CXXCPP
! 4935: fi
! 4936: echo "$as_me:4936: result: $CXXCPP" >&5
! 4937: echo "${ECHO_T}$CXXCPP" >&6
! 4938: ac_preproc_ok=false
! 4939: for ac_cxx_preproc_warn_flag in '' yes
! 4940: do
! 4941: # Use a header file that comes with gcc, so configuring glibc
! 4942: # with a fresh cross-compiler works.
! 4943: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4944: # not just through cpp. "Syntax error" is here to catch this case.
! 4945: cat >conftest.$ac_ext <<_ACEOF
! 4946: #line 4946 "configure"
! 4947: #include "confdefs.h"
! 4948: #include <assert.h>
! 4949: Syntax error
! 4950: _ACEOF
! 4951: if { (eval echo "$as_me:4951: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4952: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4953: ac_status=$?
! 4954: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4955: rm -f conftest.er1
! 4956: cat conftest.err >&5
! 4957: echo "$as_me:4957: \$? = $ac_status" >&5
! 4958: (exit $ac_status); } >/dev/null; then
! 4959: if test -s conftest.err; then
! 4960: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4961: else
! 4962: ac_cpp_err=
! 4963: fi
! 4964: else
! 4965: ac_cpp_err=yes
! 4966: fi
! 4967: if test -z "$ac_cpp_err"; then
! 4968: :
! 4969: else
! 4970: echo "$as_me: failed program was:" >&5
! 4971: cat conftest.$ac_ext >&5
! 4972: # Broken: fails on valid input.
! 4973: continue
! 4974: fi
! 4975: rm -f conftest.err conftest.$ac_ext
! 4976:
! 4977: # OK, works on sane cases. Now check whether non-existent headers
! 4978: # can be detected and how.
! 4979: cat >conftest.$ac_ext <<_ACEOF
! 4980: #line 4980 "configure"
! 4981: #include "confdefs.h"
! 4982: #include <ac_nonexistent.h>
! 4983: _ACEOF
! 4984: if { (eval echo "$as_me:4984: \"$ac_cpp conftest.$ac_ext\"") >&5
! 4985: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 4986: ac_status=$?
! 4987: egrep -v '^ *\+' conftest.er1 >conftest.err
! 4988: rm -f conftest.er1
! 4989: cat conftest.err >&5
! 4990: echo "$as_me:4990: \$? = $ac_status" >&5
! 4991: (exit $ac_status); } >/dev/null; then
! 4992: if test -s conftest.err; then
! 4993: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 4994: else
! 4995: ac_cpp_err=
! 4996: fi
! 4997: else
! 4998: ac_cpp_err=yes
! 4999: fi
! 5000: if test -z "$ac_cpp_err"; then
! 5001: # Broken: success on invalid input.
! 5002: continue
! 5003: else
! 5004: echo "$as_me: failed program was:" >&5
! 5005: cat conftest.$ac_ext >&5
! 5006: # Passes both tests.
! 5007: ac_preproc_ok=:
! 5008: break
! 5009: fi
! 5010: rm -f conftest.err conftest.$ac_ext
! 5011:
! 5012: done
! 5013: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 5014: rm -f conftest.err conftest.$ac_ext
! 5015: if $ac_preproc_ok; then
! 5016: :
! 5017: else
! 5018: { { echo "$as_me:5018: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
! 5019: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
! 5020: { (exit 1); exit 1; }; }
! 5021: fi
! 5022:
! 5023: ac_ext=c
! 5024: ac_cpp='$CPP $CPPFLAGS'
! 5025: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5026: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5027: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5028:
! 5029: fi
! 5030:
! 5031: case $host_cpu in
! 5032: c90 | t90)
! 5033:
! 5034: cat >conftest.$ac_ext <<_ACEOF
! 5035: #line 5035 "configure"
! 5036: #include "confdefs.h"
! 5037: #ifdef _CRAYIEEE
! 5038: yes
! 5039: #endif
! 5040: _ACEOF
! 5041: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5042: egrep "yes" >/dev/null 2>&1; then
! 5043: add_path="cray/ieee"
! 5044: else
! 5045: add_path="cray/cfp"; extra_functions="mulwwc90"
! 5046: fi
! 5047: rm -f conftest*
! 5048: ;;
! 5049: j90 | sv1)
! 5050: extra_functions="mulwwj90"
! 5051: add_path="cray/cfp" ;;
! 5052: esac
! 5053:
! 5054: if test -z "$MPN_PATH"; then
! 5055: path="$add_path $path"
! 5056: fi
! 5057:
! 5058: # for a nail build, also look in "nails" subdirectories
! 5059: if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
! 5060: new_path=
! 5061: for i in $path; do
! 5062: case $i in
! 5063: generic) new_path="$new_path $i" ;;
! 5064: *) new_path="$new_path $i/nails $i" ;;
! 5065: esac
! 5066: done
! 5067: path=$new_path
! 5068: fi
! 5069:
! 5070: cat >&5 <<EOF
! 5071: configure:1413: Decided:
! 5072: ABI=$ABI
! 5073: CC=$CC
! 5074: CFLAGS=$CFLAGS
! 5075: CPPFLAGS=$CPPFLAGS
! 5076: GMP_LDFLAGS=$GMP_LDFLAGS
! 5077: CXX=$CXX
! 5078: CXXFLAGS=$CXXFLAGS
! 5079: path=$path
! 5080: EOF
! 5081: echo "using ABI=\"$ABI\""
! 5082: echo " CC=\"$CC\""
! 5083: echo " CFLAGS=\"$CFLAGS\""
! 5084: echo " CPPFLAGS=\"$CPPFLAGS\""
! 5085: if test $want_cxx = yes; then
! 5086: echo " CXX=\"$CXX\""
! 5087: echo " CXXFLAGS=\"$CXXFLAGS\""
! 5088: fi
! 5089: echo " MPN_PATH=\"$path\""
! 5090:
! 5091: # Automake ansi2knr support.
! 5092:
! 5093: echo "$as_me:5093: checking for ${CC-cc} option to accept ANSI C" >&5
! 5094: echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
! 5095: if test "${am_cv_prog_cc_stdc+set}" = set; then
! 5096: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5097: else
! 5098: am_cv_prog_cc_stdc=no
! 5099: ac_save_CC="$CC"
! 5100: # Don't try gcc -ansi; that turns off useful extensions and
! 5101: # breaks some systems' header files.
! 5102: # AIX -qlanglvl=ansi
! 5103: # Ultrix and OSF/1 -std1
! 5104: # HP-UX 10.20 and later -Ae
! 5105: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 5106: # SVR4 -Xc -D__EXTENSIONS__
! 5107: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 5108: do
! 5109: CC="$ac_save_CC $ac_arg"
! 5110: cat >conftest.$ac_ext <<_ACEOF
! 5111: #line 5111 "configure"
! 5112: #include "confdefs.h"
! 5113: #include <stdarg.h>
! 5114: #include <stdio.h>
! 5115: #include <sys/types.h>
! 5116: #include <sys/stat.h>
! 5117: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 5118: struct buf { int x; };
! 5119: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 5120: static char *e (p, i)
! 5121: char **p;
! 5122: int i;
! 5123: {
! 5124: return p[i];
! 5125: }
! 5126: static char *f (char * (*g) (char **, int), char **p, ...)
! 5127: {
! 5128: char *s;
! 5129: va_list v;
! 5130: va_start (v,p);
! 5131: s = g (p, va_arg (v,int));
! 5132: va_end (v);
! 5133: return s;
! 5134: }
! 5135: int test (int i, double x);
! 5136: struct s1 {int (*f) (int a);};
! 5137: struct s2 {int (*f) (double a);};
! 5138: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 5139: int argc;
! 5140: char **argv;
! 5141:
! 5142: int
! 5143: main ()
! 5144: {
! 5145:
! 5146: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 5147:
! 5148: ;
! 5149: return 0;
! 5150: }
! 5151: _ACEOF
! 5152: rm -f conftest.$ac_objext
! 5153: if { (eval echo "$as_me:5153: \"$ac_compile\"") >&5
! 5154: (eval $ac_compile) 2>&5
! 5155: ac_status=$?
! 5156: echo "$as_me:5156: \$? = $ac_status" >&5
! 5157: (exit $ac_status); } &&
! 5158: { ac_try='test -s conftest.$ac_objext'
! 5159: { (eval echo "$as_me:5159: \"$ac_try\"") >&5
! 5160: (eval $ac_try) 2>&5
! 5161: ac_status=$?
! 5162: echo "$as_me:5162: \$? = $ac_status" >&5
! 5163: (exit $ac_status); }; }; then
! 5164: am_cv_prog_cc_stdc="$ac_arg"; break
! 5165: else
! 5166: echo "$as_me: failed program was:" >&5
! 5167: cat conftest.$ac_ext >&5
! 5168: fi
! 5169: rm -f conftest.$ac_objext conftest.$ac_ext
! 5170: done
! 5171: CC="$ac_save_CC"
! 5172:
! 5173: fi
! 5174:
! 5175: if test -z "$am_cv_prog_cc_stdc"; then
! 5176: echo "$as_me:5176: result: none needed" >&5
! 5177: echo "${ECHO_T}none needed" >&6
! 5178: else
! 5179: echo "$as_me:5179: result: $am_cv_prog_cc_stdc" >&5
! 5180: echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
! 5181: fi
! 5182: case "x$am_cv_prog_cc_stdc" in
! 5183: x|xno) ;;
! 5184: *) CC="$CC $am_cv_prog_cc_stdc" ;;
! 5185: esac
! 5186:
! 5187: echo "$as_me:5187: checking for function prototypes" >&5
! 5188: echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
! 5189: if test "$am_cv_prog_cc_stdc" != no; then
! 5190: echo "$as_me:5190: result: yes" >&5
! 5191: echo "${ECHO_T}yes" >&6
! 5192:
! 5193: cat >>confdefs.h <<\EOF
! 5194: #define PROTOTYPES 1
! 5195: EOF
! 5196:
! 5197: U= ANSI2KNR=
! 5198: else
! 5199: echo "$as_me:5199: result: no" >&5
! 5200: echo "${ECHO_T}no" >&6
! 5201: U=_ ANSI2KNR=./ansi2knr
! 5202: fi
! 5203: # Ensure some checks needed by ansi2knr itself.
! 5204: echo "$as_me:5204: checking for ANSI C header files" >&5
! 5205: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 5206: if test "${ac_cv_header_stdc+set}" = set; then
! 5207: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5208: else
! 5209: cat >conftest.$ac_ext <<_ACEOF
! 5210: #line 5210 "configure"
! 5211: #include "confdefs.h"
! 5212: #include <stdlib.h>
! 5213: #include <stdarg.h>
! 5214: #include <string.h>
! 5215: #include <float.h>
! 5216:
! 5217: _ACEOF
! 5218: if { (eval echo "$as_me:5218: \"$ac_cpp conftest.$ac_ext\"") >&5
! 5219: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 5220: ac_status=$?
! 5221: egrep -v '^ *\+' conftest.er1 >conftest.err
! 5222: rm -f conftest.er1
! 5223: cat conftest.err >&5
! 5224: echo "$as_me:5224: \$? = $ac_status" >&5
! 5225: (exit $ac_status); } >/dev/null; then
! 5226: if test -s conftest.err; then
! 5227: ac_cpp_err=$ac_c_preproc_warn_flag
! 5228: else
! 5229: ac_cpp_err=
! 5230: fi
! 5231: else
! 5232: ac_cpp_err=yes
! 5233: fi
! 5234: if test -z "$ac_cpp_err"; then
! 5235: ac_cv_header_stdc=yes
! 5236: else
! 5237: echo "$as_me: failed program was:" >&5
! 5238: cat conftest.$ac_ext >&5
! 5239: ac_cv_header_stdc=no
! 5240: fi
! 5241: rm -f conftest.err conftest.$ac_ext
! 5242:
! 5243: if test $ac_cv_header_stdc = yes; then
! 5244: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 5245: cat >conftest.$ac_ext <<_ACEOF
! 5246: #line 5246 "configure"
! 5247: #include "confdefs.h"
! 5248: #include <string.h>
! 5249:
! 5250: _ACEOF
! 5251: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5252: egrep "memchr" >/dev/null 2>&1; then
! 5253: :
! 5254: else
! 5255: ac_cv_header_stdc=no
! 5256: fi
! 5257: rm -f conftest*
! 5258:
! 5259: fi
! 5260:
! 5261: if test $ac_cv_header_stdc = yes; then
! 5262: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 5263: cat >conftest.$ac_ext <<_ACEOF
! 5264: #line 5264 "configure"
! 5265: #include "confdefs.h"
! 5266: #include <stdlib.h>
! 5267:
! 5268: _ACEOF
! 5269: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5270: egrep "free" >/dev/null 2>&1; then
! 5271: :
! 5272: else
! 5273: ac_cv_header_stdc=no
! 5274: fi
! 5275: rm -f conftest*
! 5276:
! 5277: fi
! 5278:
! 5279: if test $ac_cv_header_stdc = yes; then
! 5280: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 5281: if test "$cross_compiling" = yes; then
! 5282: :
! 5283: else
! 5284: cat >conftest.$ac_ext <<_ACEOF
! 5285: #line 5285 "configure"
! 5286: #include "confdefs.h"
! 5287: #include <ctype.h>
! 5288: #if ((' ' & 0x0FF) == 0x020)
! 5289: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 5290: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 5291: #else
! 5292: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
! 5293: || ('j' <= (c) && (c) <= 'r') \
! 5294: || ('s' <= (c) && (c) <= 'z'))
! 5295: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 5296: #endif
! 5297:
! 5298: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 5299: int
! 5300: main ()
! 5301: {
! 5302: int i;
! 5303: for (i = 0; i < 256; i++)
! 5304: if (XOR (islower (i), ISLOWER (i))
! 5305: || toupper (i) != TOUPPER (i))
! 5306: exit(2);
! 5307: exit (0);
! 5308: }
! 5309: _ACEOF
! 5310: rm -f conftest$ac_exeext
! 5311: if { (eval echo "$as_me:5311: \"$ac_link\"") >&5
! 5312: (eval $ac_link) 2>&5
! 5313: ac_status=$?
! 5314: echo "$as_me:5314: \$? = $ac_status" >&5
! 5315: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5316: { (eval echo "$as_me:5316: \"$ac_try\"") >&5
! 5317: (eval $ac_try) 2>&5
! 5318: ac_status=$?
! 5319: echo "$as_me:5319: \$? = $ac_status" >&5
! 5320: (exit $ac_status); }; }; then
! 5321: :
! 5322: else
! 5323: echo "$as_me: program exited with status $ac_status" >&5
! 5324: echo "$as_me: failed program was:" >&5
! 5325: cat conftest.$ac_ext >&5
! 5326: ac_cv_header_stdc=no
! 5327: fi
! 5328: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5329: fi
! 5330: fi
! 5331: fi
! 5332: echo "$as_me:5332: result: $ac_cv_header_stdc" >&5
! 5333: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 5334: if test $ac_cv_header_stdc = yes; then
! 5335:
! 5336: cat >>confdefs.h <<\EOF
! 5337: #define STDC_HEADERS 1
! 5338: EOF
! 5339:
! 5340: fi
! 5341:
! 5342: for ac_header in string.h
! 5343: do
! 5344: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5345: echo "$as_me:5345: checking for $ac_header" >&5
! 5346: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 5347: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5348: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5349: else
! 5350: cat >conftest.$ac_ext <<_ACEOF
! 5351: #line 5351 "configure"
! 5352: #include "confdefs.h"
! 5353: #include <$ac_header>
! 5354: _ACEOF
! 5355: if { (eval echo "$as_me:5355: \"$ac_cpp conftest.$ac_ext\"") >&5
! 5356: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 5357: ac_status=$?
! 5358: egrep -v '^ *\+' conftest.er1 >conftest.err
! 5359: rm -f conftest.er1
! 5360: cat conftest.err >&5
! 5361: echo "$as_me:5361: \$? = $ac_status" >&5
! 5362: (exit $ac_status); } >/dev/null; then
! 5363: if test -s conftest.err; then
! 5364: ac_cpp_err=$ac_c_preproc_warn_flag
! 5365: else
! 5366: ac_cpp_err=
! 5367: fi
! 5368: else
! 5369: ac_cpp_err=yes
! 5370: fi
! 5371: if test -z "$ac_cpp_err"; then
! 5372: eval "$as_ac_Header=yes"
! 5373: else
! 5374: echo "$as_me: failed program was:" >&5
! 5375: cat conftest.$ac_ext >&5
! 5376: eval "$as_ac_Header=no"
! 5377: fi
! 5378: rm -f conftest.err conftest.$ac_ext
! 5379: fi
! 5380: echo "$as_me:5380: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 5381: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 5382: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5383: cat >>confdefs.h <<EOF
! 5384: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5385: EOF
! 5386:
! 5387: fi
! 5388: done
! 5389:
! 5390: gmp_user_AR=$AR
! 5391: if test -n "$ac_tool_prefix"; then
! 5392: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
! 5393: set dummy ${ac_tool_prefix}ar; ac_word=$2
! 5394: echo "$as_me:5394: checking for $ac_word" >&5
! 5395: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5396: if test "${ac_cv_prog_AR+set}" = set; then
! 5397: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5398: else
! 5399: if test -n "$AR"; then
! 5400: ac_cv_prog_AR="$AR" # Let the user override the test.
! 5401: else
! 5402: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 5403: ac_dummy="$PATH"
! 5404: for ac_dir in $ac_dummy; do
! 5405: IFS=$ac_save_IFS
! 5406: test -z "$ac_dir" && ac_dir=.
! 5407: $as_executable_p "$ac_dir/$ac_word" || continue
! 5408: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 5409: echo "$as_me:5409: found $ac_dir/$ac_word" >&5
! 5410: break
! 5411: done
! 5412:
! 5413: fi
! 5414: fi
! 5415: AR=$ac_cv_prog_AR
! 5416: if test -n "$AR"; then
! 5417: echo "$as_me:5417: result: $AR" >&5
! 5418: echo "${ECHO_T}$AR" >&6
! 5419: else
! 5420: echo "$as_me:5420: result: no" >&5
! 5421: echo "${ECHO_T}no" >&6
! 5422: fi
! 5423:
! 5424: fi
! 5425: if test -z "$ac_cv_prog_AR"; then
! 5426: ac_ct_AR=$AR
! 5427: # Extract the first word of "ar", so it can be a program name with args.
! 5428: set dummy ar; ac_word=$2
! 5429: echo "$as_me:5429: checking for $ac_word" >&5
! 5430: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5431: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 5432: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5433: else
! 5434: if test -n "$ac_ct_AR"; then
! 5435: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! 5436: else
! 5437: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 5438: ac_dummy="$PATH"
! 5439: for ac_dir in $ac_dummy; do
! 5440: IFS=$ac_save_IFS
! 5441: test -z "$ac_dir" && ac_dir=.
! 5442: $as_executable_p "$ac_dir/$ac_word" || continue
! 5443: ac_cv_prog_ac_ct_AR="ar"
! 5444: echo "$as_me:5444: found $ac_dir/$ac_word" >&5
! 5445: break
! 5446: done
! 5447:
! 5448: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
! 5449: fi
! 5450: fi
! 5451: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 5452: if test -n "$ac_ct_AR"; then
! 5453: echo "$as_me:5453: result: $ac_ct_AR" >&5
! 5454: echo "${ECHO_T}$ac_ct_AR" >&6
! 5455: else
! 5456: echo "$as_me:5456: result: no" >&5
! 5457: echo "${ECHO_T}no" >&6
! 5458: fi
! 5459:
! 5460: AR=$ac_ct_AR
! 5461: else
! 5462: AR="$ac_cv_prog_AR"
! 5463: fi
! 5464:
! 5465: if test -z "$gmp_user_AR"; then
! 5466: eval arflags=\"\$ar${abi1}_flags\"
! 5467: test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
! 5468: if test -n "$arflags"; then
! 5469: echo "$as_me:5469: checking for extra ar flags" >&5
! 5470: echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6
! 5471: AR="$AR $arflags"
! 5472: echo "$as_me:5472: result: $arflags" >&5
! 5473: echo "${ECHO_T}$arflags" >&6
! 5474: fi
! 5475: fi
! 5476: if test -z "$AR_FLAGS"; then
! 5477: AR_FLAGS=cq
! 5478: fi
! 5479:
! 5480: gmp_user_NM=$NM
! 5481: echo "$as_me:5481: checking for BSD-compatible nm" >&5
! 5482: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 5483: if test "${lt_cv_path_NM+set}" = set; then
! 5484: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5485: else
! 5486: if test -n "$NM"; then
! 5487: # Let the user override the test.
! 5488: lt_cv_path_NM="$NM"
! 5489: else
! 5490: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5491: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
! 5492: IFS="$lt_save_ifs"
! 5493: test -z "$ac_dir" && ac_dir=.
! 5494: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
! 5495: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 5496: # Check to see if the nm accepts a BSD-compat flag.
! 5497: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 5498: # nm: unknown option "B" ignored
! 5499: # Tru64's nm complains that /dev/null is an invalid object file
! 5500: if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
! 5501: lt_cv_path_NM="$tmp_nm -B"
! 5502: break
! 5503: elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 5504: lt_cv_path_NM="$tmp_nm -p"
! 5505: break
! 5506: else
! 5507: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 5508: continue # so that we can try to find one that supports BSD flags
! 5509: fi
! 5510: fi
! 5511: done
! 5512: IFS="$lt_save_ifs"
! 5513: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
! 5514: fi
! 5515: fi
! 5516: echo "$as_me:5516: result: $lt_cv_path_NM" >&5
! 5517: echo "${ECHO_T}$lt_cv_path_NM" >&6
! 5518: NM="$lt_cv_path_NM"
! 5519:
! 5520: # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
! 5521: # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
! 5522: # case run it again to try the native "nm", firstly so that likely locations
! 5523: # are searched, secondly so that -B or -p are added if necessary for BSD
! 5524: # format. This is necessary for instance on OSF with "./configure
! 5525: # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
! 5526: #
! 5527: if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
! 5528: $as_unset lt_cv_path_NM
! 5529: gmp_save_ac_tool_prefix=$ac_tool_prefix
! 5530: ac_tool_prefix=
! 5531: NM=
! 5532: echo "$as_me:5532: checking for BSD-compatible nm" >&5
! 5533: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 5534: if test "${lt_cv_path_NM+set}" = set; then
! 5535: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5536: else
! 5537: if test -n "$NM"; then
! 5538: # Let the user override the test.
! 5539: lt_cv_path_NM="$NM"
! 5540: else
! 5541: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5542: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
! 5543: IFS="$lt_save_ifs"
! 5544: test -z "$ac_dir" && ac_dir=.
! 5545: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
! 5546: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 5547: # Check to see if the nm accepts a BSD-compat flag.
! 5548: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 5549: # nm: unknown option "B" ignored
! 5550: # Tru64's nm complains that /dev/null is an invalid object file
! 5551: if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
! 5552: lt_cv_path_NM="$tmp_nm -B"
! 5553: break
! 5554: elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 5555: lt_cv_path_NM="$tmp_nm -p"
! 5556: break
! 5557: else
! 5558: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 5559: continue # so that we can try to find one that supports BSD flags
! 5560: fi
! 5561: fi
! 5562: done
! 5563: IFS="$lt_save_ifs"
! 5564: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
! 5565: fi
! 5566: fi
! 5567: echo "$as_me:5567: result: $lt_cv_path_NM" >&5
! 5568: echo "${ECHO_T}$lt_cv_path_NM" >&6
! 5569: NM="$lt_cv_path_NM"
! 5570:
! 5571: ac_tool_prefix=$gmp_save_ac_tool_prefix
! 5572: fi
! 5573:
! 5574: if test -z "$gmp_user_NM"; then
! 5575: eval nmflags=\"\$nm${abi1}_flags\"
! 5576: test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
! 5577: if test -n "$nmflags"; then
! 5578: echo "$as_me:5578: checking for extra nm flags" >&5
! 5579: echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6
! 5580: NM="$NM $nmflags"
! 5581: echo "$as_me:5581: result: $nmflags" >&5
! 5582: echo "${ECHO_T}$nmflags" >&6
! 5583: fi
! 5584: fi
! 5585:
! 5586: case $host in
! 5587: # FIXME: On AIX 3 and 4, $libname.a is included in libtool
! 5588: # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
! 5589: # it impossible to build shared and static libraries simultaneously.
! 5590: # Disable shared libraries by default, but let the user override with
! 5591: # --enable-shared --disable-static.
! 5592: #
! 5593: # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
! 5594: # and *-*-os2* too, but wait for someone to test this before worrying
! 5595: # about it. If there is a problem then of course libtool is the right
! 5596: # place to fix it.
! 5597: #
! 5598: *-*-aix[34]*)
! 5599: if test -z "$enable_shared"; then enable_shared=no; fi ;;
! 5600:
! 5601: # FIXME: Libtool recognises djgpp can't build shared libraries, but still
! 5602: # makes tests/.libs/libtests.al out of PIC objects, which then fail to
! 5603: # link into the test programs. Forcibly disable shared stuff until
! 5604: # libtool gets it right,
! 5605: #
! 5606: *-*-msdosdjgpp*)
! 5607: enable_shared=no ;;
! 5608:
! 5609: # FIXME: On SCO 5, an explicit -lc is not wanted when making shared
! 5610: # libraries. Giving it makes strange things happen, like ctype.h macros
! 5611: # not working and profiler mcount calls segfaulting. Libtool ought to
! 5612: # know about this, but as of Dec 2000 it doesn't, so forcibly disable -lc
! 5613: # on relevant systems.
! 5614: #
! 5615: *-*-sco3.2v5*)
! 5616: lt_cv_archive_cmds_need_lc=no ;;
! 5617:
! 5618: # FIXME: Shared libraries aren't supported on unicos, but as of Dec 2000
! 5619: # libtool doesn't seem to detect this correctly, so forcibly disable them.
! 5620: #
! 5621: *-*-unicos*)
! 5622: enable_shared=no ;;
! 5623:
! 5624: # It seems there are no shared libs on ultrix, and it is not very important
! 5625: # to work on this. Just disable for now.
! 5626: *-*-ultrix*)
! 5627: enable_shared=no ;;
! 5628: esac
! 5629:
! 5630: # FIXME: AC_LIBTOOL_SYS_MAX_CMD_LEN has been reported to blow up in some
! 5631: # fashion on windows 9x (but not 2k), taking a very long time and
! 5632: # temporarily locking the whole PC. Clearly this is a libtool problem, but
! 5633: # for now force a sensible value to avoid the test.
! 5634: #
! 5635: case $build in
! 5636: *-*-cygwin*)
! 5637: if test -z "$lt_cv_sys_max_cmd_len"; then
! 5638: lt_cv_sys_max_cmd_len=20000
! 5639: fi
! 5640: ;;
! 5641: esac
! 5642:
! 5643: # Configs for Windows DLLs.
! 5644:
! 5645: LIBGMP_DLL=0
! 5646:
! 5647: case $host in
! 5648: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
! 5649: # By default, build only static.
! 5650: if test -z "$enable_shared"; then
! 5651: enable_shared=no
! 5652: fi
! 5653: # Don't allow both static and DLL.
! 5654: if test "$enable_shared" != no && test "$enable_static" != no; then
! 5655: { { echo "$as_me:5655: error: cannot build both static and DLL, since gmp.h is different for each.
! 5656: Use \"--disable-static --enable-shared\" to build just a DLL." >&5
! 5657: echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
! 5658: Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
! 5659: { (exit 1); exit 1; }; }
! 5660: fi
! 5661: if test "$enable_shared" = yes; then
! 5662: # libtool requires "-no-undefined", see AC_LIBTOOL_WIN32_DLL doco.
! 5663: GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined"
! 5664: LIBGMP_DLL=1
! 5665: fi
! 5666: ;;
! 5667: esac
! 5668:
! 5669: # When cross compiling a DLL, libtool requires $HOST_CC, to compile impgen.c
! 5670: # on the build system. It's a well-known misfeature that libtool doesn't
! 5671: # hunt around for a useful HOST_CC on its own.
! 5672: # FIXME: Newer libtool looks like it'll need this only for "*-*-mingw* |
! 5673: # *-*-pw32*", not *-*-cygwin*.
! 5674: #
! 5675: case $host in
! 5676: *-*-cygwin* | *-*-mingw* | *-*-pw32*)
! 5677: if test "$cross_compiling" != no && test "$enable_shared" != no; then
! 5678:
! 5679: echo "$as_me:5679: checking for HOST_CC build system compiler" >&5
! 5680: echo $ECHO_N "checking for HOST_CC build system compiler... $ECHO_C" >&6
! 5681: if test "${gmp_cv_prog_host_cc+set}" = set; then
! 5682: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5683: else
! 5684: if test -n "$HOST_CC"; then
! 5685: gmp_cv_prog_host_cc=$HOST_CC
! 5686: else
! 5687: if test -n "$CC_FOR_BUILD"; then
! 5688: gmp_cv_prog_host_cc=$CC_FOR_BUILD
! 5689: else
! 5690: cat >conftest.c <<EOF
! 5691: int main () { exit(0); }
! 5692: EOF
! 5693: for c in "$CC" cc gcc c89; do
! 5694: echo "trying $c" >&5
! 5695: if ($c conftest.c -o conftest) >&5 2>&1; then
! 5696: if (./conftest) >&5 2>&1; then
! 5697: gmp_cv_prog_host_cc=$c
! 5698: break
! 5699: fi
! 5700: fi
! 5701: done
! 5702: rm -f conftest*
! 5703: if test -z "$gmp_cv_prog_host_cc"; then
! 5704: { { echo "$as_me:5704: error: cannot find a build system compiler" >&5
! 5705: echo "$as_me: error: cannot find a build system compiler" >&2;}
! 5706: { (exit 1); exit 1; }; }
! 5707: fi
! 5708: fi
! 5709: fi
! 5710:
! 5711: fi
! 5712: echo "$as_me:5712: result: $gmp_cv_prog_host_cc" >&5
! 5713: echo "${ECHO_T}$gmp_cv_prog_host_cc" >&6
! 5714: HOST_CC=$gmp_cv_prog_host_cc
! 5715:
! 5716: fi
! 5717: ;;
! 5718: esac
! 5719:
! 5720: # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
! 5721: # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
! 5722: # _AS_LINENO_PREPARE, but not always.
! 5723: #
! 5724: # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
! 5725: # and an empty result. This only happens when invoked as "sh configure",
! 5726: # ie. no path, and can be seen for instance on ia64-*-hpux*.
! 5727: #
! 5728: # FIXME: Newer libtool should have it's own fix for this.
! 5729: #
! 5730: if test -z "$CONFIG_SHELL"; then
! 5731: CONFIG_SHELL=$SHELL
! 5732: fi
! 5733:
! 5734: # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
! 5735: # mingw and cygwin. Under --disable-cxx this avoids some error messages
! 5736: # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
! 5737: # Notice that any user-supplied --with-tags setting takes precedence.
! 5738: #
! 5739: # FIXME: Is this the right way to get this effect? Very possibly not, but
! 5740: # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
! 5741: #
! 5742: if test "${with_tags+set}" != set; then
! 5743: if test $want_cxx = yes; then
! 5744: with_tags=CXX
! 5745: else
! 5746: with_tags=
! 5747: fi
! 5748: fi
! 5749:
! 5750: # Check whether --enable-shared or --disable-shared was given.
! 5751: if test "${enable_shared+set}" = set; then
! 5752: enableval="$enable_shared"
! 5753: p=${PACKAGE-default}
! 5754: case $enableval in
! 5755: yes) enable_shared=yes ;;
! 5756: no) enable_shared=no ;;
! 5757: *)
! 5758: enable_shared=no
! 5759: # Look at the argument we got. We use all the common list separators.
! 5760: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5761: for pkg in $enableval; do
! 5762: IFS="$lt_save_ifs"
! 5763: if test "X$pkg" = "X$p"; then
! 5764: enable_shared=yes
! 5765: fi
! 5766: done
! 5767: IFS="$lt_save_ifs"
! 5768: ;;
! 5769: esac
! 5770: else
! 5771: enable_shared=yes
! 5772: fi;
! 5773:
! 5774: # Check whether --enable-static or --disable-static was given.
! 5775: if test "${enable_static+set}" = set; then
! 5776: enableval="$enable_static"
! 5777: p=${PACKAGE-default}
! 5778: case $enableval in
! 5779: yes) enable_static=yes ;;
! 5780: no) enable_static=no ;;
! 5781: *)
! 5782: enable_static=no
! 5783: # Look at the argument we got. We use all the common list separators.
! 5784: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5785: for pkg in $enableval; do
! 5786: IFS="$lt_save_ifs"
! 5787: if test "X$pkg" = "X$p"; then
! 5788: enable_static=yes
! 5789: fi
! 5790: done
! 5791: IFS="$lt_save_ifs"
! 5792: ;;
! 5793: esac
! 5794: else
! 5795: enable_static=yes
! 5796: fi;
! 5797:
! 5798: # Check whether --enable-fast-install or --disable-fast-install was given.
! 5799: if test "${enable_fast_install+set}" = set; then
! 5800: enableval="$enable_fast_install"
! 5801: p=${PACKAGE-default}
! 5802: case $enableval in
! 5803: yes) enable_fast_install=yes ;;
! 5804: no) enable_fast_install=no ;;
! 5805: *)
! 5806: enable_fast_install=no
! 5807: # Look at the argument we got. We use all the common list separators.
! 5808: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 5809: for pkg in $enableval; do
! 5810: IFS="$lt_save_ifs"
! 5811: if test "X$pkg" = "X$p"; then
! 5812: enable_fast_install=yes
! 5813: fi
! 5814: done
! 5815: IFS="$lt_save_ifs"
! 5816: ;;
! 5817: esac
! 5818: else
! 5819: enable_fast_install=yes
! 5820: fi;
! 5821:
! 5822: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 5823: if test "${with_gnu_ld+set}" = set; then
! 5824: withval="$with_gnu_ld"
! 5825: test "$withval" = no || with_gnu_ld=yes
! 5826: else
! 5827: with_gnu_ld=no
! 5828: fi;
! 5829: ac_prog=ld
! 5830: if test "$GCC" = yes; then
! 5831: # Check if gcc -print-prog-name=ld gives a path.
! 5832: echo "$as_me:5832: checking for ld used by GCC" >&5
! 5833: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
! 5834: case $host in
! 5835: *-*-mingw*)
! 5836: # gcc leaves a trailing carriage return which upsets mingw
! 5837: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 5838: *)
! 5839: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 5840: esac
! 5841: case $ac_prog in
! 5842: # Accept absolute paths.
! 5843: [\\/]* | ?:[\\/]*)
! 5844: re_direlt='/[^/][^/]*/\.\./'
! 5845: # Canonicalize the path of ld
! 5846: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
! 5847: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 5848: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
! 5849: done
! 5850: test -z "$LD" && LD="$ac_prog"
! 5851: ;;
! 5852: "")
! 5853: # If it fails, then pretend we aren't using GCC.
! 5854: ac_prog=ld
! 5855: ;;
! 5856: *)
! 5857: # If it is relative, then search for the first ld in PATH.
! 5858: with_gnu_ld=unknown
! 5859: ;;
! 5860: esac
! 5861: elif test "$with_gnu_ld" = yes; then
! 5862: echo "$as_me:5862: checking for GNU ld" >&5
! 5863: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
! 5864: else
! 5865: echo "$as_me:5865: checking for non-GNU ld" >&5
! 5866: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
! 5867: fi
! 5868: if test "${lt_cv_path_LD+set}" = set; then
! 5869: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5870: else
! 5871: if test -z "$LD"; then
! 5872: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5873: for ac_dir in $PATH; do
! 5874: IFS="$lt_save_ifs"
! 5875: test -z "$ac_dir" && ac_dir=.
! 5876: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 5877: lt_cv_path_LD="$ac_dir/$ac_prog"
! 5878: # Check to see if the program is GNU ld. I'd rather use --version,
! 5879: # but apparently some GNU ld's only accept -v.
! 5880: # Break only if it was the GNU/non-GNU ld that we prefer.
! 5881: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
! 5882: test "$with_gnu_ld" != no && break
! 5883: else
! 5884: test "$with_gnu_ld" != yes && break
! 5885: fi
! 5886: fi
! 5887: done
! 5888: IFS="$lt_save_ifs"
! 5889: else
! 5890: lt_cv_path_LD="$LD" # Let the user override the test with a path.
! 5891: fi
! 5892: fi
! 5893:
! 5894: LD="$lt_cv_path_LD"
! 5895: if test -n "$LD"; then
! 5896: echo "$as_me:5896: result: $LD" >&5
! 5897: echo "${ECHO_T}$LD" >&6
! 5898: else
! 5899: echo "$as_me:5899: result: no" >&5
! 5900: echo "${ECHO_T}no" >&6
! 5901: fi
! 5902: test -z "$LD" && { { echo "$as_me:5902: error: no acceptable ld found in \$PATH" >&5
! 5903: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 5904: { (exit 1); exit 1; }; }
! 5905: echo "$as_me:5905: checking if the linker ($LD) is GNU ld" >&5
! 5906: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 5907: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 5908: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5909: else
! 5910: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
! 5911: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
! 5912: lt_cv_prog_gnu_ld=yes
! 5913: else
! 5914: lt_cv_prog_gnu_ld=no
! 5915: fi
! 5916: fi
! 5917: echo "$as_me:5917: result: $lt_cv_prog_gnu_ld" >&5
! 5918: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
! 5919: with_gnu_ld=$lt_cv_prog_gnu_ld
! 5920:
! 5921: echo "$as_me:5921: checking for $LD option to reload object files" >&5
! 5922: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 5923: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 5924: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5925: else
! 5926: lt_cv_ld_reload_flag='-r'
! 5927: fi
! 5928: echo "$as_me:5928: result: $lt_cv_ld_reload_flag" >&5
! 5929: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
! 5930: reload_flag=$lt_cv_ld_reload_flag
! 5931: case $reload_flag in
! 5932: "" | " "*) ;;
! 5933: *) reload_flag=" $reload_flag" ;;
! 5934: esac
! 5935: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5936:
! 5937: echo "$as_me:5937: checking whether ln -s works" >&5
! 5938: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
! 5939: LN_S=$as_ln_s
! 5940: if test "$LN_S" = "ln -s"; then
! 5941: echo "$as_me:5941: result: yes" >&5
! 5942: echo "${ECHO_T}yes" >&6
! 5943: else
! 5944: echo "$as_me:5944: result: no, using $LN_S" >&5
! 5945: echo "${ECHO_T}no, using $LN_S" >&6
! 5946: fi
! 5947:
! 5948: echo "$as_me:5948: checking how to recognise dependant libraries" >&5
! 5949: echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
! 5950: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 5951: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5952: else
! 5953: lt_cv_file_magic_cmd='$MAGIC_CMD'
! 5954: lt_cv_file_magic_test_file=
! 5955: lt_cv_deplibs_check_method='unknown'
! 5956: # Need to set the preceding variable on all platforms that support
! 5957: # interlibrary dependencies.
! 5958: # 'none' -- dependencies not supported.
! 5959: # `unknown' -- same as none, but documents that we really don't know.
! 5960: # 'pass_all' -- all dependencies passed with no checks.
! 5961: # 'test_compile' -- check by making test program.
! 5962: # 'file_magic [[regex]]' -- check by looking for files in library path
! 5963: # which responds to the $file_magic_cmd with a given egrep regex.
! 5964: # If you have `file' or equivalent on your system and you're not sure
! 5965: # whether `pass_all' will *always* work, you probably want this one.
! 5966:
! 5967: case $host_os in
! 5968: aix4* | aix5*)
! 5969: lt_cv_deplibs_check_method=pass_all
! 5970: ;;
! 5971:
! 5972: beos*)
! 5973: lt_cv_deplibs_check_method=pass_all
! 5974: ;;
! 5975:
! 5976: bsdi4*)
! 5977: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
! 5978: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 5979: lt_cv_file_magic_test_file=/shlib/libc.so
! 5980: ;;
! 5981:
! 5982: cygwin* | mingw* | pw32*)
! 5983: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 5984: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 5985: ;;
! 5986:
! 5987: darwin* | rhapsody*)
! 5988: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
! 5989: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 5990: case "$host_os" in
! 5991: rhapsody* | darwin1.[012])
! 5992: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
! 5993: ;;
! 5994: *) # Darwin 1.3 on
! 5995: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
! 5996: ;;
! 5997: esac
! 5998: ;;
! 5999:
! 6000: freebsd*)
! 6001: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 6002: case $host_cpu in
! 6003: i*86 )
! 6004: # Not sure whether the presence of OpenBSD here was a mistake.
! 6005: # Let's accept both of them until this is cleared up.
! 6006: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
! 6007: lt_cv_file_magic_cmd=/usr/bin/file
! 6008: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 6009: ;;
! 6010: esac
! 6011: else
! 6012: lt_cv_deplibs_check_method=pass_all
! 6013: fi
! 6014: ;;
! 6015:
! 6016: gnu*)
! 6017: lt_cv_deplibs_check_method=pass_all
! 6018: ;;
! 6019:
! 6020: hpux10.20* | hpux11*)
! 6021: lt_cv_file_magic_cmd=/usr/bin/file
! 6022: if test "$host_cpu" = ia64; then
! 6023: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
! 6024: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
! 6025: else
! 6026: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
! 6027: lt_cv_file_magic_test_file=/usr/lib/libc.sl
! 6028: fi
! 6029: ;;
! 6030:
! 6031: irix5* | irix6*)
! 6032: case $host_os in
! 6033: irix5*)
! 6034: # this will be overridden with pass_all, but let us keep it just in case
! 6035: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
! 6036: ;;
! 6037: *)
! 6038: case $LD in
1.1.1.2 maekawa 6039: *-32|*"-32 ") libmagic=32-bit;;
6040: *-n32|*"-n32 ") libmagic=N32;;
6041: *-64|*"-64 ") libmagic=64-bit;;
6042: *) libmagic=never-match;;
6043: esac
1.1.1.4 ! ohara 6044: # this will be overridden with pass_all, but let us keep it just in case
! 6045: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
! 6046: ;;
! 6047: esac
! 6048: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
! 6049: lt_cv_deplibs_check_method=pass_all
! 6050: ;;
! 6051:
! 6052: # This must be Linux ELF.
! 6053: linux*)
! 6054: case $host_cpu in
! 6055: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
! 6056: lt_cv_deplibs_check_method=pass_all ;;
! 6057: *)
! 6058: # glibc up to 2.1.1 does not perform some relocations on ARM
! 6059: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
! 6060: esac
! 6061: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
! 6062: ;;
! 6063:
! 6064: netbsd*)
! 6065: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 6066: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
! 6067: else
! 6068: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
! 6069: fi
! 6070: ;;
! 6071:
! 6072: newos6*)
! 6073: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
! 6074: lt_cv_file_magic_cmd=/usr/bin/file
! 6075: lt_cv_file_magic_test_file=/usr/lib/libnls.so
! 6076: ;;
! 6077:
! 6078: nto-qnx)
! 6079: lt_cv_deplibs_check_method=unknown
! 6080: ;;
! 6081:
! 6082: openbsd*)
! 6083: lt_cv_file_magic_cmd=/usr/bin/file
! 6084: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 6085: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 6086: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
! 6087: else
! 6088: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
! 6089: fi
! 6090: ;;
! 6091:
! 6092: osf3* | osf4* | osf5*)
! 6093: # this will be overridden with pass_all, but let us keep it just in case
! 6094: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
! 6095: lt_cv_file_magic_test_file=/shlib/libc.so
! 6096: lt_cv_deplibs_check_method=pass_all
! 6097: ;;
! 6098:
! 6099: sco3.2v5*)
! 6100: lt_cv_deplibs_check_method=pass_all
! 6101: ;;
! 6102:
! 6103: solaris*)
! 6104: lt_cv_deplibs_check_method=pass_all
! 6105: lt_cv_file_magic_test_file=/lib/libc.so
! 6106: ;;
! 6107:
! 6108: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 6109: case $host_vendor in
! 6110: motorola)
! 6111: 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]'
! 6112: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 6113: ;;
! 6114: ncr)
! 6115: lt_cv_deplibs_check_method=pass_all
! 6116: ;;
! 6117: sequent)
! 6118: lt_cv_file_magic_cmd='/bin/file'
! 6119: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 6120: ;;
! 6121: sni)
! 6122: lt_cv_file_magic_cmd='/bin/file'
! 6123: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 6124: lt_cv_file_magic_test_file=/lib/libc.so
! 6125: ;;
! 6126: esac
! 6127: ;;
! 6128:
! 6129: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
! 6130: lt_cv_deplibs_check_method=pass_all
! 6131: ;;
! 6132: esac
! 6133:
! 6134: fi
! 6135: echo "$as_me:6135: result: $lt_cv_deplibs_check_method" >&5
! 6136: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
! 6137: file_magic_cmd=$lt_cv_file_magic_cmd
! 6138: deplibs_check_method=$lt_cv_deplibs_check_method
! 6139: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 6140:
! 6141: # If no C compiler was specified, use CC.
! 6142: LTCC=${LTCC-"$CC"}
! 6143:
! 6144: # Allow CC to be a program name with arguments.
! 6145: set dummy $CC
! 6146: compiler="$2"
! 6147:
! 6148: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 6149: if test "${enable_libtool_lock+set}" = set; then
! 6150: enableval="$enable_libtool_lock"
! 6151:
! 6152: fi;
! 6153: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 6154:
! 6155: # Some flags need to be propagated to the compiler or linker for good
! 6156: # libtool support.
! 6157: case $host in
! 6158: ia64-*-hpux*)
! 6159: # Find out which ABI we are using.
! 6160: echo 'int i;' > conftest.$ac_ext
! 6161: if { (eval echo "$as_me:6161: \"$ac_compile\"") >&5
! 6162: (eval $ac_compile) 2>&5
! 6163: ac_status=$?
! 6164: echo "$as_me:6164: \$? = $ac_status" >&5
! 6165: (exit $ac_status); }; then
! 6166: case `/usr/bin/file conftest.$ac_objext` in
! 6167: *ELF-32*)
! 6168: HPUX_IA64_MODE="32"
! 6169: ;;
! 6170: *ELF-64*)
! 6171: HPUX_IA64_MODE="64"
! 6172: ;;
! 6173: esac
! 6174: fi
! 6175: rm -rf conftest*
! 6176: ;;
! 6177: *-*-irix6*)
! 6178: # Find out which ABI we are using.
! 6179: echo '#line 6179 "configure"' > conftest.$ac_ext
! 6180: if { (eval echo "$as_me:6180: \"$ac_compile\"") >&5
! 6181: (eval $ac_compile) 2>&5
! 6182: ac_status=$?
! 6183: echo "$as_me:6183: \$? = $ac_status" >&5
! 6184: (exit $ac_status); }; then
! 6185: case `/usr/bin/file conftest.$ac_objext` in
! 6186: *32-bit*)
! 6187: LD="${LD-ld} -32"
! 6188: ;;
! 6189: *N32*)
! 6190: LD="${LD-ld} -n32"
! 6191: ;;
! 6192: *64-bit*)
! 6193: LD="${LD-ld} -64"
! 6194: ;;
! 6195: esac
! 6196: fi
! 6197: rm -rf conftest*
! 6198: ;;
! 6199:
! 6200: *-*-sco3.2v5*)
! 6201: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 6202: SAVE_CFLAGS="$CFLAGS"
! 6203: CFLAGS="$CFLAGS -belf"
! 6204: echo "$as_me:6204: checking whether the C compiler needs -belf" >&5
! 6205: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 6206: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 6207: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6208: else
! 6209: ac_ext=c
! 6210: ac_cpp='$CPP $CPPFLAGS'
! 6211: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6212: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6213: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 6214:
! 6215: cat >conftest.$ac_ext <<_ACEOF
! 6216: #line 6216 "configure"
! 6217: #include "confdefs.h"
! 6218:
! 6219: int
! 6220: main ()
! 6221: {
! 6222:
! 6223: ;
! 6224: return 0;
! 6225: }
! 6226: _ACEOF
! 6227: rm -f conftest.$ac_objext conftest$ac_exeext
! 6228: if { (eval echo "$as_me:6228: \"$ac_link\"") >&5
! 6229: (eval $ac_link) 2>&5
! 6230: ac_status=$?
! 6231: echo "$as_me:6231: \$? = $ac_status" >&5
! 6232: (exit $ac_status); } &&
! 6233: { ac_try='test -s conftest$ac_exeext'
! 6234: { (eval echo "$as_me:6234: \"$ac_try\"") >&5
! 6235: (eval $ac_try) 2>&5
! 6236: ac_status=$?
! 6237: echo "$as_me:6237: \$? = $ac_status" >&5
! 6238: (exit $ac_status); }; }; then
! 6239: lt_cv_cc_needs_belf=yes
! 6240: else
! 6241: echo "$as_me: failed program was:" >&5
! 6242: cat conftest.$ac_ext >&5
! 6243: lt_cv_cc_needs_belf=no
! 6244: fi
! 6245: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6246: ac_ext=c
! 6247: ac_cpp='$CPP $CPPFLAGS'
! 6248: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6249: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6250: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 6251:
! 6252: fi
! 6253: echo "$as_me:6253: result: $lt_cv_cc_needs_belf" >&5
! 6254: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
! 6255: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 6256: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 6257: CFLAGS="$SAVE_CFLAGS"
! 6258: fi
! 6259: ;;
! 6260: *-*-cygwin* | *-*-mingw* | *-*-pw32*)
! 6261: if test -n "$ac_tool_prefix"; then
! 6262: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
! 6263: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
! 6264: echo "$as_me:6264: checking for $ac_word" >&5
! 6265: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6266: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
! 6267: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6268: else
! 6269: if test -n "$DLLTOOL"; then
! 6270: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
! 6271: else
! 6272: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6273: ac_dummy="$PATH"
! 6274: for ac_dir in $ac_dummy; do
! 6275: IFS=$ac_save_IFS
! 6276: test -z "$ac_dir" && ac_dir=.
! 6277: $as_executable_p "$ac_dir/$ac_word" || continue
! 6278: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
! 6279: echo "$as_me:6279: found $ac_dir/$ac_word" >&5
! 6280: break
! 6281: done
! 6282:
! 6283: fi
! 6284: fi
! 6285: DLLTOOL=$ac_cv_prog_DLLTOOL
! 6286: if test -n "$DLLTOOL"; then
! 6287: echo "$as_me:6287: result: $DLLTOOL" >&5
! 6288: echo "${ECHO_T}$DLLTOOL" >&6
! 6289: else
! 6290: echo "$as_me:6290: result: no" >&5
! 6291: echo "${ECHO_T}no" >&6
! 6292: fi
! 6293:
! 6294: fi
! 6295: if test -z "$ac_cv_prog_DLLTOOL"; then
! 6296: ac_ct_DLLTOOL=$DLLTOOL
! 6297: # Extract the first word of "dlltool", so it can be a program name with args.
! 6298: set dummy dlltool; ac_word=$2
! 6299: echo "$as_me:6299: checking for $ac_word" >&5
! 6300: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6301: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
! 6302: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6303: else
! 6304: if test -n "$ac_ct_DLLTOOL"; then
! 6305: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
! 6306: else
! 6307: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6308: ac_dummy="$PATH"
! 6309: for ac_dir in $ac_dummy; do
! 6310: IFS=$ac_save_IFS
! 6311: test -z "$ac_dir" && ac_dir=.
! 6312: $as_executable_p "$ac_dir/$ac_word" || continue
! 6313: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
! 6314: echo "$as_me:6314: found $ac_dir/$ac_word" >&5
! 6315: break
! 6316: done
! 6317:
! 6318: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
! 6319: fi
! 6320: fi
! 6321: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
! 6322: if test -n "$ac_ct_DLLTOOL"; then
! 6323: echo "$as_me:6323: result: $ac_ct_DLLTOOL" >&5
! 6324: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
! 6325: else
! 6326: echo "$as_me:6326: result: no" >&5
! 6327: echo "${ECHO_T}no" >&6
! 6328: fi
! 6329:
! 6330: DLLTOOL=$ac_ct_DLLTOOL
! 6331: else
! 6332: DLLTOOL="$ac_cv_prog_DLLTOOL"
! 6333: fi
! 6334:
! 6335: if test -n "$ac_tool_prefix"; then
! 6336: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
! 6337: set dummy ${ac_tool_prefix}as; ac_word=$2
! 6338: echo "$as_me:6338: checking for $ac_word" >&5
! 6339: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6340: if test "${ac_cv_prog_AS+set}" = set; then
! 6341: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6342: else
! 6343: if test -n "$AS"; then
! 6344: ac_cv_prog_AS="$AS" # Let the user override the test.
! 6345: else
! 6346: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6347: ac_dummy="$PATH"
! 6348: for ac_dir in $ac_dummy; do
! 6349: IFS=$ac_save_IFS
! 6350: test -z "$ac_dir" && ac_dir=.
! 6351: $as_executable_p "$ac_dir/$ac_word" || continue
! 6352: ac_cv_prog_AS="${ac_tool_prefix}as"
! 6353: echo "$as_me:6353: found $ac_dir/$ac_word" >&5
! 6354: break
! 6355: done
! 6356:
! 6357: fi
! 6358: fi
! 6359: AS=$ac_cv_prog_AS
! 6360: if test -n "$AS"; then
! 6361: echo "$as_me:6361: result: $AS" >&5
! 6362: echo "${ECHO_T}$AS" >&6
! 6363: else
! 6364: echo "$as_me:6364: result: no" >&5
! 6365: echo "${ECHO_T}no" >&6
! 6366: fi
! 6367:
! 6368: fi
! 6369: if test -z "$ac_cv_prog_AS"; then
! 6370: ac_ct_AS=$AS
! 6371: # Extract the first word of "as", so it can be a program name with args.
! 6372: set dummy as; ac_word=$2
! 6373: echo "$as_me:6373: checking for $ac_word" >&5
! 6374: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6375: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
! 6376: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6377: else
! 6378: if test -n "$ac_ct_AS"; then
! 6379: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
! 6380: else
! 6381: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6382: ac_dummy="$PATH"
! 6383: for ac_dir in $ac_dummy; do
! 6384: IFS=$ac_save_IFS
! 6385: test -z "$ac_dir" && ac_dir=.
! 6386: $as_executable_p "$ac_dir/$ac_word" || continue
! 6387: ac_cv_prog_ac_ct_AS="as"
! 6388: echo "$as_me:6388: found $ac_dir/$ac_word" >&5
! 6389: break
! 6390: done
! 6391:
! 6392: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
! 6393: fi
! 6394: fi
! 6395: ac_ct_AS=$ac_cv_prog_ac_ct_AS
! 6396: if test -n "$ac_ct_AS"; then
! 6397: echo "$as_me:6397: result: $ac_ct_AS" >&5
! 6398: echo "${ECHO_T}$ac_ct_AS" >&6
! 6399: else
! 6400: echo "$as_me:6400: result: no" >&5
! 6401: echo "${ECHO_T}no" >&6
! 6402: fi
! 6403:
! 6404: AS=$ac_ct_AS
! 6405: else
! 6406: AS="$ac_cv_prog_AS"
! 6407: fi
! 6408:
! 6409: if test -n "$ac_tool_prefix"; then
! 6410: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
! 6411: set dummy ${ac_tool_prefix}objdump; ac_word=$2
! 6412: echo "$as_me:6412: checking for $ac_word" >&5
! 6413: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6414: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
! 6415: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6416: else
! 6417: if test -n "$OBJDUMP"; then
! 6418: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
! 6419: else
! 6420: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6421: ac_dummy="$PATH"
! 6422: for ac_dir in $ac_dummy; do
! 6423: IFS=$ac_save_IFS
! 6424: test -z "$ac_dir" && ac_dir=.
! 6425: $as_executable_p "$ac_dir/$ac_word" || continue
! 6426: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
! 6427: echo "$as_me:6427: found $ac_dir/$ac_word" >&5
! 6428: break
! 6429: done
! 6430:
! 6431: fi
! 6432: fi
! 6433: OBJDUMP=$ac_cv_prog_OBJDUMP
! 6434: if test -n "$OBJDUMP"; then
! 6435: echo "$as_me:6435: result: $OBJDUMP" >&5
! 6436: echo "${ECHO_T}$OBJDUMP" >&6
! 6437: else
! 6438: echo "$as_me:6438: result: no" >&5
! 6439: echo "${ECHO_T}no" >&6
! 6440: fi
! 6441:
! 6442: fi
! 6443: if test -z "$ac_cv_prog_OBJDUMP"; then
! 6444: ac_ct_OBJDUMP=$OBJDUMP
! 6445: # Extract the first word of "objdump", so it can be a program name with args.
! 6446: set dummy objdump; ac_word=$2
! 6447: echo "$as_me:6447: checking for $ac_word" >&5
! 6448: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6449: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
! 6450: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6451: else
! 6452: if test -n "$ac_ct_OBJDUMP"; then
! 6453: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
! 6454: else
! 6455: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6456: ac_dummy="$PATH"
! 6457: for ac_dir in $ac_dummy; do
! 6458: IFS=$ac_save_IFS
! 6459: test -z "$ac_dir" && ac_dir=.
! 6460: $as_executable_p "$ac_dir/$ac_word" || continue
! 6461: ac_cv_prog_ac_ct_OBJDUMP="objdump"
! 6462: echo "$as_me:6462: found $ac_dir/$ac_word" >&5
! 6463: break
! 6464: done
! 6465:
! 6466: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
! 6467: fi
! 6468: fi
! 6469: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
! 6470: if test -n "$ac_ct_OBJDUMP"; then
! 6471: echo "$as_me:6471: result: $ac_ct_OBJDUMP" >&5
! 6472: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
! 6473: else
! 6474: echo "$as_me:6474: result: no" >&5
! 6475: echo "${ECHO_T}no" >&6
! 6476: fi
! 6477:
! 6478: OBJDUMP=$ac_ct_OBJDUMP
! 6479: else
! 6480: OBJDUMP="$ac_cv_prog_OBJDUMP"
! 6481: fi
! 6482:
! 6483: # recent cygwin and mingw systems supply a stub DllMain which the user
! 6484: # can override, but on older systems we have to supply one
! 6485: echo "$as_me:6485: checking if libtool should supply DllMain function" >&5
! 6486: echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
! 6487: if test "${lt_cv_need_dllmain+set}" = set; then
! 6488: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6489: else
! 6490: cat >conftest.$ac_ext <<_ACEOF
! 6491: #line 6491 "configure"
! 6492: #include "confdefs.h"
! 6493:
! 6494: int
! 6495: main ()
! 6496: {
! 6497: extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
! 6498: DllMain (0, 0, 0);
! 6499: ;
! 6500: return 0;
! 6501: }
! 6502: _ACEOF
! 6503: rm -f conftest.$ac_objext conftest$ac_exeext
! 6504: if { (eval echo "$as_me:6504: \"$ac_link\"") >&5
! 6505: (eval $ac_link) 2>&5
! 6506: ac_status=$?
! 6507: echo "$as_me:6507: \$? = $ac_status" >&5
! 6508: (exit $ac_status); } &&
! 6509: { ac_try='test -s conftest$ac_exeext'
! 6510: { (eval echo "$as_me:6510: \"$ac_try\"") >&5
! 6511: (eval $ac_try) 2>&5
! 6512: ac_status=$?
! 6513: echo "$as_me:6513: \$? = $ac_status" >&5
! 6514: (exit $ac_status); }; }; then
! 6515: lt_cv_need_dllmain=no
! 6516: else
! 6517: echo "$as_me: failed program was:" >&5
! 6518: cat conftest.$ac_ext >&5
! 6519: lt_cv_need_dllmain=yes
! 6520: fi
! 6521: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6522: fi
! 6523: echo "$as_me:6523: result: $lt_cv_need_dllmain" >&5
! 6524: echo "${ECHO_T}$lt_cv_need_dllmain" >&6
! 6525:
! 6526: case $host/$CC in
! 6527: *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
! 6528: # old mingw systems require "-dll" to link a DLL, while more recent ones
! 6529: # require "-mdll"
! 6530: SAVE_CFLAGS="$CFLAGS"
! 6531: CFLAGS="$CFLAGS -mdll"
! 6532: echo "$as_me:6532: checking how to link DLLs" >&5
! 6533: echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
! 6534: if test "${lt_cv_cc_dll_switch+set}" = set; then
! 6535: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6536: else
! 6537: cat >conftest.$ac_ext <<_ACEOF
! 6538: #line 6538 "configure"
! 6539: #include "confdefs.h"
! 6540:
! 6541: int
! 6542: main ()
! 6543: {
! 6544:
! 6545: ;
! 6546: return 0;
! 6547: }
! 6548: _ACEOF
! 6549: rm -f conftest.$ac_objext conftest$ac_exeext
! 6550: if { (eval echo "$as_me:6550: \"$ac_link\"") >&5
! 6551: (eval $ac_link) 2>&5
! 6552: ac_status=$?
! 6553: echo "$as_me:6553: \$? = $ac_status" >&5
! 6554: (exit $ac_status); } &&
! 6555: { ac_try='test -s conftest$ac_exeext'
! 6556: { (eval echo "$as_me:6556: \"$ac_try\"") >&5
! 6557: (eval $ac_try) 2>&5
! 6558: ac_status=$?
! 6559: echo "$as_me:6559: \$? = $ac_status" >&5
! 6560: (exit $ac_status); }; }; then
! 6561: lt_cv_cc_dll_switch=-mdll
! 6562: else
! 6563: echo "$as_me: failed program was:" >&5
! 6564: cat conftest.$ac_ext >&5
! 6565: lt_cv_cc_dll_switch=-dll
! 6566: fi
! 6567: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6568: fi
! 6569: echo "$as_me:6569: result: $lt_cv_cc_dll_switch" >&5
! 6570: echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
! 6571: CFLAGS="$SAVE_CFLAGS" ;;
! 6572: *-*-cygwin* | *-*-pw32*)
! 6573: # cygwin systems need to pass --dll to the linker, and not link
! 6574: # crt.o which will require a WinMain@16 definition.
! 6575: lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
! 6576: esac
! 6577: ;;
! 6578:
! 6579: esac
! 6580:
! 6581: need_locks="$enable_libtool_lock"
! 6582:
! 6583: for ac_header in dlfcn.h
! 6584: do
! 6585: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6586: echo "$as_me:6586: checking for $ac_header" >&5
! 6587: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 6588: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 6589: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6590: else
! 6591: cat >conftest.$ac_ext <<_ACEOF
! 6592: #line 6592 "configure"
! 6593: #include "confdefs.h"
! 6594: #include <$ac_header>
! 6595: _ACEOF
! 6596: if { (eval echo "$as_me:6596: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6597: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6598: ac_status=$?
! 6599: egrep -v '^ *\+' conftest.er1 >conftest.err
! 6600: rm -f conftest.er1
! 6601: cat conftest.err >&5
! 6602: echo "$as_me:6602: \$? = $ac_status" >&5
! 6603: (exit $ac_status); } >/dev/null; then
! 6604: if test -s conftest.err; then
! 6605: ac_cpp_err=$ac_c_preproc_warn_flag
! 6606: else
! 6607: ac_cpp_err=
! 6608: fi
! 6609: else
! 6610: ac_cpp_err=yes
! 6611: fi
! 6612: if test -z "$ac_cpp_err"; then
! 6613: eval "$as_ac_Header=yes"
! 6614: else
! 6615: echo "$as_me: failed program was:" >&5
! 6616: cat conftest.$ac_ext >&5
! 6617: eval "$as_ac_Header=no"
! 6618: fi
! 6619: rm -f conftest.err conftest.$ac_ext
! 6620: fi
! 6621: echo "$as_me:6621: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6622: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6623: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6624: cat >>confdefs.h <<EOF
! 6625: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 6626: EOF
! 6627:
! 6628: fi
! 6629: done
! 6630:
! 6631: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
! 6632:
! 6633: # find the maximum length of command line arguments
! 6634: echo "$as_me:6634: checking the maximum length of command line arguments" >&5
! 6635: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
! 6636: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 6637: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6638: else
! 6639: i=0
! 6640: testring="ABCD"
! 6641:
! 6642: case $host_os in
! 6643: msdosdjgpp*)
! 6644: # On DJGPP, this test can blow up pretty badly due to problems in libc
! 6645: # (any single argument exceeding 2000 bytes causes a buffer overrun
! 6646: # during glob expansion). Even if it were fixed, the result of this
! 6647: # check would be larger than it should be.
! 6648: lt_cv_sys_max_cmd_len=12288; # 12K is about right
! 6649: ;;
! 6650:
! 6651: gnu*)
! 6652: # Under GNU Hurd, this test is not required because there is
! 6653: # no limit to the length of command line arguments.
! 6654: # Libtool will interpret -1 as no limit whatsoever
! 6655: lt_cv_sys_max_cmd_len=-1;
! 6656: ;;
! 6657:
! 6658: *)
! 6659: # If test is not a shell built-in, we'll probably end up computing a
! 6660: # maximum length that is only half of the actual maximum length, but
! 6661: # we can't tell.
! 6662: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
! 6663: = "XX$testring") >/dev/null 2>&1 &&
! 6664: new_result=`expr "X$testring" : ".*" 2>&1` &&
! 6665: lt_cv_sys_max_cmd_len=$new_result &&
! 6666: test $i != 17 # 1/2 MB should be enough
! 6667: do
! 6668: i=`expr $i + 1`
! 6669: testring=$testring$testring
! 6670: done
! 6671: testring=
! 6672: # add a significant safety factor because C++ compilers can tack on massive
! 6673: # amounts of additional arguments before passing them to the linker. 1/4
! 6674: # should be good.
! 6675: len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6676: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
! 6677: ;;
! 6678: esac
! 6679:
! 6680: fi
! 6681:
! 6682: if test -n $lt_cv_sys_max_cmd_len ; then
! 6683: echo "$as_me:6683: result: $lt_cv_sys_max_cmd_len" >&5
! 6684: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
! 6685: else
! 6686: echo "$as_me:6686: result: none" >&5
! 6687: echo "${ECHO_T}none" >&6
! 6688: fi
! 6689:
! 6690: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 6691: echo "$as_me:6691: checking command to parse $NM output from $compiler object" >&5
! 6692: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
! 6693: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 6694: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6695: else
! 6696:
! 6697: # These are sane defaults that work on at least a few old systems.
! 6698: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 6699:
! 6700: # Character class describing NM global symbol codes.
! 6701: symcode='[BCDEGRST]'
! 6702:
! 6703: # Regexp to match symbols that can be accessed directly from C.
! 6704: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 6705:
! 6706: # Transform the above into a raw symbol and a C symbol.
! 6707: symxfrm='\1 \2\3 \3'
! 6708:
! 6709: # Transform an extracted symbol line into a proper C declaration
! 6710: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
! 6711:
! 6712: # Transform an extracted symbol line into symbol name and symbol address
! 6713: 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'"
! 6714:
! 6715: # Define system-specific variables.
! 6716: case $host_os in
! 6717: aix*)
! 6718: symcode='[BCDT]'
! 6719: ;;
! 6720: cygwin* | mingw* | pw32*)
! 6721: symcode='[ABCDGISTW]'
! 6722: ;;
! 6723: hpux*) # Its linker distinguishes data from code symbols
! 6724: if test "$host_cpu" = ia64; then
! 6725: symcode='[ABCDEGRST]'
! 6726: fi
! 6727: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6728: 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'"
! 6729: ;;
! 6730: irix*)
! 6731: symcode='[BCDEGRST]'
! 6732: ;;
! 6733: solaris* | sysv5*)
! 6734: symcode='[BDT]'
! 6735: ;;
! 6736: sysv4)
! 6737: symcode='[DFNSTU]'
! 6738: ;;
! 6739: esac
! 6740:
! 6741: # Handle CRLF in mingw tool chain
! 6742: opt_cr=
! 6743: case $host_os in
! 6744: mingw*)
! 6745: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 6746: ;;
! 6747: esac
! 6748:
! 6749: # If we're using GNU nm, then use its standard symbol codes.
! 6750: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
! 6751: symcode='[ABCDGISTW]'
! 6752: fi
! 6753:
! 6754: # Try without a prefix undercore, then with it.
! 6755: for ac_symprfx in "" "_"; do
! 6756:
! 6757: # Write the raw and C identifiers.
! 6758: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
! 6759:
! 6760: # Check to see that the pipe works correctly.
! 6761: pipe_works=no
! 6762:
! 6763: rm -f conftest*
! 6764: cat > conftest.$ac_ext <<EOF
! 6765: #ifdef __cplusplus
! 6766: extern "C" {
! 6767: #endif
! 6768: char nm_test_var;
! 6769: void nm_test_func(){}
! 6770: #ifdef __cplusplus
! 6771: }
! 6772: #endif
! 6773: int main(){nm_test_var='a';nm_test_func();return(0);}
! 6774: EOF
! 6775:
! 6776: if { (eval echo "$as_me:6776: \"$ac_compile\"") >&5
! 6777: (eval $ac_compile) 2>&5
! 6778: ac_status=$?
! 6779: echo "$as_me:6779: \$? = $ac_status" >&5
! 6780: (exit $ac_status); }; then
! 6781: # Now try to grab the symbols.
! 6782: nlist=conftest.nm
! 6783: if { (eval echo "$as_me:6783: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 6784: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
! 6785: ac_status=$?
! 6786: echo "$as_me:6786: \$? = $ac_status" >&5
! 6787: (exit $ac_status); } && test -s "$nlist"; then
! 6788: # Try sorting and uniquifying the output.
! 6789: if sort "$nlist" | uniq > "$nlist"T; then
! 6790: mv -f "$nlist"T "$nlist"
! 6791: else
! 6792: rm -f "$nlist"T
! 6793: fi
! 6794:
! 6795: # Make sure that we snagged all the symbols we need.
! 6796: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
! 6797: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
! 6798: cat <<EOF > conftest.$ac_ext
! 6799: #ifdef __cplusplus
! 6800: extern "C" {
! 6801: #endif
! 6802:
! 6803: EOF
! 6804: # Now generate the symbol file.
! 6805: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
! 6806:
! 6807: cat <<EOF >> conftest.$ac_ext
! 6808: #if defined (__STDC__) && __STDC__
! 6809: # define lt_ptr_t void *
! 6810: #else
! 6811: # define lt_ptr_t char *
! 6812: # define const
! 6813: #endif
! 6814:
! 6815: /* The mapping between symbol names and symbols. */
! 6816: const struct {
! 6817: const char *name;
! 6818: lt_ptr_t address;
! 6819: }
! 6820: lt_preloaded_symbols[] =
! 6821: {
! 6822: EOF
! 6823: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
! 6824: cat <<\EOF >> conftest.$ac_ext
! 6825: {0, (lt_ptr_t) 0}
! 6826: };
! 6827:
! 6828: #ifdef __cplusplus
! 6829: }
! 6830: #endif
! 6831: EOF
! 6832: # Now try linking the two files.
! 6833: mv conftest.$ac_objext conftstm.$ac_objext
! 6834: lt_save_LIBS="$LIBS"
! 6835: lt_save_CFLAGS="$CFLAGS"
! 6836: LIBS="conftstm.$ac_objext"
! 6837: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
! 6838: if { (eval echo "$as_me:6838: \"$ac_link\"") >&5
! 6839: (eval $ac_link) 2>&5
! 6840: ac_status=$?
! 6841: echo "$as_me:6841: \$? = $ac_status" >&5
! 6842: (exit $ac_status); } && test -s conftest${ac_exeext}; then
! 6843: pipe_works=yes
! 6844: fi
! 6845: LIBS="$lt_save_LIBS"
! 6846: CFLAGS="$lt_save_CFLAGS"
! 6847: else
! 6848: echo "cannot find nm_test_func in $nlist" >&5
! 6849: fi
! 6850: else
! 6851: echo "cannot find nm_test_var in $nlist" >&5
! 6852: fi
! 6853: else
! 6854: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
! 6855: fi
! 6856: else
! 6857: echo "$progname: failed program was:" >&5
! 6858: cat conftest.$ac_ext >&5
! 6859: fi
! 6860: rm -f conftest* conftst*
! 6861:
! 6862: # Do not use the global_symbol_pipe unless it works.
! 6863: if test "$pipe_works" = yes; then
! 6864: break
! 6865: else
! 6866: lt_cv_sys_global_symbol_pipe=
! 6867: fi
! 6868: done
! 6869:
! 6870: fi
! 6871:
! 6872: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 6873: lt_cv_sys_global_symbol_to_cdecl=
! 6874: fi
! 6875: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
! 6876: echo "$as_me:6876: result: failed" >&5
! 6877: echo "${ECHO_T}failed" >&6
! 6878: else
! 6879: echo "$as_me:6879: result: ok" >&5
! 6880: echo "${ECHO_T}ok" >&6
! 6881: fi
! 6882:
! 6883: echo "$as_me:6883: checking for objdir" >&5
! 6884: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 6885: if test "${lt_cv_objdir+set}" = set; then
! 6886: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6887: else
! 6888: rm -f .libs 2>/dev/null
! 6889: mkdir .libs 2>/dev/null
! 6890: if test -d .libs; then
! 6891: lt_cv_objdir=.libs
! 6892: else
! 6893: # MS-DOS does not allow filenames that begin with a dot.
! 6894: lt_cv_objdir=_libs
! 6895: fi
! 6896: rmdir .libs 2>/dev/null
! 6897: fi
! 6898: echo "$as_me:6898: result: $lt_cv_objdir" >&5
! 6899: echo "${ECHO_T}$lt_cv_objdir" >&6
! 6900: objdir=$lt_cv_objdir
! 6901:
! 6902: case $host_os in
! 6903: aix3*)
! 6904: # AIX sometimes has problems with the GCC collect2 program. For some
! 6905: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 6906: # vanish in a puff of smoke.
! 6907: if test "X${COLLECT_NAMES+set}" != Xset; then
! 6908: COLLECT_NAMES=
! 6909: export COLLECT_NAMES
! 6910: fi
! 6911: ;;
! 6912: esac
! 6913:
! 6914: # Sed substitution that helps us do robust quoting. It backslashifies
! 6915: # metacharacters that are still active within double-quoted strings.
! 6916: Xsed='sed -e s/^X//'
! 6917: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
! 6918:
! 6919: # Same as above, but do not quote variable references.
! 6920: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
! 6921:
! 6922: # Sed substitution to delay expansion of an escaped shell variable in a
! 6923: # double_quote_subst'ed string.
! 6924: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
! 6925:
! 6926: # Sed substitution to avoid accidental globbing in evaled expressions
! 6927: no_glob_subst='s/\*/\\\*/g'
! 6928:
! 6929: # Constants:
! 6930: rm="rm -f"
! 6931:
! 6932: # Global variables:
! 6933: default_ofile=libtool
! 6934: can_build_shared=yes
! 6935:
! 6936: # All known linkers require a `.a' archive for static linking (except M$VC,
! 6937: # which needs '.lib').
! 6938: libext=a
! 6939: ltmain="$ac_aux_dir/ltmain.sh"
! 6940: ofile="$default_ofile"
! 6941: with_gnu_ld="$lt_cv_prog_gnu_ld"
! 6942:
! 6943: if test -n "$ac_tool_prefix"; then
! 6944: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 6945: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 6946: echo "$as_me:6946: checking for $ac_word" >&5
! 6947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6948: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 6949: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6950: else
! 6951: if test -n "$RANLIB"; then
! 6952: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 6953: else
! 6954: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6955: ac_dummy="$PATH"
! 6956: for ac_dir in $ac_dummy; do
! 6957: IFS=$ac_save_IFS
! 6958: test -z "$ac_dir" && ac_dir=.
! 6959: $as_executable_p "$ac_dir/$ac_word" || continue
! 6960: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 6961: echo "$as_me:6961: found $ac_dir/$ac_word" >&5
! 6962: break
! 6963: done
! 6964:
! 6965: fi
! 6966: fi
! 6967: RANLIB=$ac_cv_prog_RANLIB
! 6968: if test -n "$RANLIB"; then
! 6969: echo "$as_me:6969: result: $RANLIB" >&5
! 6970: echo "${ECHO_T}$RANLIB" >&6
! 6971: else
! 6972: echo "$as_me:6972: result: no" >&5
! 6973: echo "${ECHO_T}no" >&6
! 6974: fi
! 6975:
! 6976: fi
! 6977: if test -z "$ac_cv_prog_RANLIB"; then
! 6978: ac_ct_RANLIB=$RANLIB
! 6979: # Extract the first word of "ranlib", so it can be a program name with args.
! 6980: set dummy ranlib; ac_word=$2
! 6981: echo "$as_me:6981: checking for $ac_word" >&5
! 6982: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6983: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 6984: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6985: else
! 6986: if test -n "$ac_ct_RANLIB"; then
! 6987: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 6988: else
! 6989: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 6990: ac_dummy="$PATH"
! 6991: for ac_dir in $ac_dummy; do
! 6992: IFS=$ac_save_IFS
! 6993: test -z "$ac_dir" && ac_dir=.
! 6994: $as_executable_p "$ac_dir/$ac_word" || continue
! 6995: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 6996: echo "$as_me:6996: found $ac_dir/$ac_word" >&5
! 6997: break
! 6998: done
! 6999:
! 7000: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
! 7001: fi
! 7002: fi
! 7003: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 7004: if test -n "$ac_ct_RANLIB"; then
! 7005: echo "$as_me:7005: result: $ac_ct_RANLIB" >&5
! 7006: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 7007: else
! 7008: echo "$as_me:7008: result: no" >&5
! 7009: echo "${ECHO_T}no" >&6
! 7010: fi
! 7011:
! 7012: RANLIB=$ac_ct_RANLIB
! 7013: else
! 7014: RANLIB="$ac_cv_prog_RANLIB"
! 7015: fi
! 7016:
! 7017: if test -n "$ac_tool_prefix"; then
! 7018: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 7019: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 7020: echo "$as_me:7020: checking for $ac_word" >&5
! 7021: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7022: if test "${ac_cv_prog_STRIP+set}" = set; then
! 7023: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7024: else
! 7025: if test -n "$STRIP"; then
! 7026: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 7027: else
! 7028: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 7029: ac_dummy="$PATH"
! 7030: for ac_dir in $ac_dummy; do
! 7031: IFS=$ac_save_IFS
! 7032: test -z "$ac_dir" && ac_dir=.
! 7033: $as_executable_p "$ac_dir/$ac_word" || continue
! 7034: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 7035: echo "$as_me:7035: found $ac_dir/$ac_word" >&5
! 7036: break
! 7037: done
! 7038:
! 7039: fi
! 7040: fi
! 7041: STRIP=$ac_cv_prog_STRIP
! 7042: if test -n "$STRIP"; then
! 7043: echo "$as_me:7043: result: $STRIP" >&5
! 7044: echo "${ECHO_T}$STRIP" >&6
! 7045: else
! 7046: echo "$as_me:7046: result: no" >&5
! 7047: echo "${ECHO_T}no" >&6
! 7048: fi
! 7049:
! 7050: fi
! 7051: if test -z "$ac_cv_prog_STRIP"; then
! 7052: ac_ct_STRIP=$STRIP
! 7053: # Extract the first word of "strip", so it can be a program name with args.
! 7054: set dummy strip; ac_word=$2
! 7055: echo "$as_me:7055: checking for $ac_word" >&5
! 7056: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7057: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 7058: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7059: else
! 7060: if test -n "$ac_ct_STRIP"; then
! 7061: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 7062: else
! 7063: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 7064: ac_dummy="$PATH"
! 7065: for ac_dir in $ac_dummy; do
! 7066: IFS=$ac_save_IFS
! 7067: test -z "$ac_dir" && ac_dir=.
! 7068: $as_executable_p "$ac_dir/$ac_word" || continue
! 7069: ac_cv_prog_ac_ct_STRIP="strip"
! 7070: echo "$as_me:7070: found $ac_dir/$ac_word" >&5
! 7071: break
! 7072: done
! 7073:
! 7074: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 7075: fi
! 7076: fi
! 7077: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 7078: if test -n "$ac_ct_STRIP"; then
! 7079: echo "$as_me:7079: result: $ac_ct_STRIP" >&5
! 7080: echo "${ECHO_T}$ac_ct_STRIP" >&6
! 7081: else
! 7082: echo "$as_me:7082: result: no" >&5
! 7083: echo "${ECHO_T}no" >&6
! 7084: fi
! 7085:
! 7086: STRIP=$ac_ct_STRIP
! 7087: else
! 7088: STRIP="$ac_cv_prog_STRIP"
! 7089: fi
! 7090:
! 7091: old_CC="$CC"
! 7092: old_CFLAGS="$CFLAGS"
! 7093:
! 7094: # Set sane defaults for various variables
! 7095: test -z "$AR" && AR=ar
! 7096: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 7097: test -z "$AS" && AS=as
! 7098: test -z "$CC" && CC=cc
! 7099: test -z "$LTCC" && LTCC=$CC
! 7100: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 7101: test -z "$LD" && LD=ld
! 7102: test -z "$LN_S" && LN_S="ln -s"
! 7103: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 7104: test -z "$NM" && NM=nm
! 7105: test -z "$OBJDUMP" && OBJDUMP=objdump
! 7106: test -z "$RANLIB" && RANLIB=:
! 7107: test -z "$STRIP" && STRIP=:
! 7108: test -z "$ac_objext" && ac_objext=o
! 7109:
! 7110: # Determine commands to create old-style static archives.
! 7111: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 7112: old_postinstall_cmds='chmod 644 $oldlib'
! 7113: old_postuninstall_cmds=
! 7114:
! 7115: if test -n "$RANLIB"; then
! 7116: case $host_os in
! 7117: openbsd*)
! 7118: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
! 7119: ;;
! 7120: *)
! 7121: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
! 7122: ;;
! 7123: esac
! 7124: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
! 7125: fi
! 7126:
! 7127: # Only perform the check for file, if the check method requires it
! 7128: case $deplibs_check_method in
! 7129: file_magic*)
! 7130: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 7131: echo "$as_me:7131: checking for ${ac_tool_prefix}file" >&5
! 7132: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 7133: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7134: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7135: else
! 7136: case $MAGIC_CMD in
! 7137: [\\/*] | ?:[\\/]*)
! 7138: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7139: ;;
! 7140: *)
! 7141: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7142: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7143: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7144: for ac_dir in $ac_dummy; do
! 7145: IFS="$lt_save_ifs"
! 7146: test -z "$ac_dir" && ac_dir=.
! 7147: if test -f $ac_dir/${ac_tool_prefix}file; then
! 7148: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 7149: if test -n "$file_magic_test_file"; then
! 7150: case $deplibs_check_method in
! 7151: "file_magic "*)
! 7152: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 7153: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7154: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7155: egrep "$file_magic_regex" > /dev/null; then
! 7156: :
! 7157: else
! 7158: cat <<EOF 1>&2
! 7159:
! 7160: *** Warning: the command libtool uses to detect shared libraries,
! 7161: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7162: *** The result is that libtool may fail to recognize shared libraries
! 7163: *** as such. This will affect the creation of libtool libraries that
! 7164: *** depend on shared libraries, but programs linked with such libtool
! 7165: *** libraries will work regardless of this problem. Nevertheless, you
! 7166: *** may want to report the problem to your system manager and/or to
! 7167: *** bug-libtool@gnu.org
! 7168:
! 7169: EOF
! 7170: fi ;;
! 7171: esac
! 7172: fi
! 7173: break
! 7174: fi
! 7175: done
! 7176: IFS="$lt_save_ifs"
! 7177: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7178: ;;
! 7179: esac
! 7180: fi
! 7181:
! 7182: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7183: if test -n "$MAGIC_CMD"; then
! 7184: echo "$as_me:7184: result: $MAGIC_CMD" >&5
! 7185: echo "${ECHO_T}$MAGIC_CMD" >&6
! 7186: else
! 7187: echo "$as_me:7187: result: no" >&5
! 7188: echo "${ECHO_T}no" >&6
! 7189: fi
! 7190:
! 7191: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 7192: if test -n "$ac_tool_prefix"; then
! 7193: echo "$as_me:7193: checking for file" >&5
! 7194: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 7195: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7196: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7197: else
! 7198: case $MAGIC_CMD in
! 7199: [\\/*] | ?:[\\/]*)
! 7200: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7201: ;;
! 7202: *)
! 7203: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7204: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7205: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7206: for ac_dir in $ac_dummy; do
! 7207: IFS="$lt_save_ifs"
! 7208: test -z "$ac_dir" && ac_dir=.
! 7209: if test -f $ac_dir/file; then
! 7210: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 7211: if test -n "$file_magic_test_file"; then
! 7212: case $deplibs_check_method in
! 7213: "file_magic "*)
! 7214: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 7215: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7216: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7217: egrep "$file_magic_regex" > /dev/null; then
! 7218: :
! 7219: else
! 7220: cat <<EOF 1>&2
! 7221:
! 7222: *** Warning: the command libtool uses to detect shared libraries,
! 7223: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7224: *** The result is that libtool may fail to recognize shared libraries
! 7225: *** as such. This will affect the creation of libtool libraries that
! 7226: *** depend on shared libraries, but programs linked with such libtool
! 7227: *** libraries will work regardless of this problem. Nevertheless, you
! 7228: *** may want to report the problem to your system manager and/or to
! 7229: *** bug-libtool@gnu.org
! 7230:
! 7231: EOF
! 7232: fi ;;
! 7233: esac
! 7234: fi
! 7235: break
! 7236: fi
! 7237: done
! 7238: IFS="$lt_save_ifs"
! 7239: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7240: ;;
! 7241: esac
! 7242: fi
! 7243:
! 7244: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7245: if test -n "$MAGIC_CMD"; then
! 7246: echo "$as_me:7246: result: $MAGIC_CMD" >&5
! 7247: echo "${ECHO_T}$MAGIC_CMD" >&6
! 7248: else
! 7249: echo "$as_me:7249: result: no" >&5
! 7250: echo "${ECHO_T}no" >&6
! 7251: fi
! 7252:
! 7253: else
! 7254: MAGIC_CMD=:
! 7255: fi
! 7256: fi
! 7257:
! 7258: fi
! 7259: ;;
! 7260: esac
! 7261:
! 7262: enable_dlopen=no
! 7263: enable_win32_dll=yes
! 7264:
! 7265: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 7266: if test "${enable_libtool_lock+set}" = set; then
! 7267: enableval="$enable_libtool_lock"
! 7268:
! 7269: fi;
! 7270: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 7271:
! 7272: # Check whether --with-pic or --without-pic was given.
! 7273: if test "${with_pic+set}" = set; then
! 7274: withval="$with_pic"
! 7275: pic_mode="$withval"
! 7276: else
! 7277: pic_mode=default
! 7278: fi;
! 7279: test -z "$pic_mode" && pic_mode=default
! 7280:
! 7281: # Use C for the default configuration in the libtool script
! 7282: tagname=
! 7283: lt_save_CC="$CC"
! 7284: ac_ext=c
! 7285: ac_cpp='$CPP $CPPFLAGS'
! 7286: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7287: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7288: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 7289:
! 7290: # Source file extension for C test sources.
! 7291: ac_ext=c
! 7292:
! 7293: # Object file extension for compiled C test sources.
! 7294: objext=o
! 7295: objext=$objext
! 7296:
! 7297: # Code to be used in simple compile tests
! 7298: lt_simple_compile_test_code="int some_variable = 0;"
! 7299:
! 7300: # Code to be used in simple link tests
! 7301: lt_simple_link_test_code='main(){return(0);}'
! 7302:
! 7303: # If no C compiler was specified, use CC.
! 7304: LTCC=${LTCC-"$CC"}
! 7305:
! 7306: # Allow CC to be a program name with arguments.
! 7307: set dummy $CC
! 7308: compiler="$2"
! 7309:
! 7310: #
! 7311: # Check for any special shared library compilation flags.
! 7312: #
! 7313: lt_prog_cc_shlib=
! 7314: if test "$GCC" = no; then
! 7315: case $host_os in
! 7316: sco3.2v5*)
! 7317: lt_prog_cc_shlib='-belf'
! 7318: ;;
! 7319: esac
! 7320: fi
! 7321: if test -n "$lt_prog_cc_shlib"; then
! 7322: { echo "$as_me:7322: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
! 7323: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
! 7324: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
! 7325: else
! 7326: { echo "$as_me:7326: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
! 7327: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
! 7328: lt_cv_prog_cc_can_build_shared=no
! 7329: fi
! 7330: fi
! 7331:
! 7332: #
! 7333: # Check to make sure the static flag actually works.
! 7334: #
! 7335: echo "$as_me:7335: checking if $compiler static flag $lt_prog_compiler_static works" >&5
! 7336: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
! 7337: if test "${lt_prog_compiler_static_works+set}" = set; then
! 7338: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7339: else
! 7340: lt_prog_compiler_static_works=no
! 7341: save_LDFLAGS="$LDFLAGS"
! 7342: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
! 7343: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 7344: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 7345: # The compiler can only warn and ignore the option if not recognized
! 7346: # So say no if there are warnings
! 7347: if test -s conftest.err; then
! 7348: # Append any errors to the config.log.
! 7349: cat conftest.err 1>&5
! 7350: else
! 7351: lt_prog_compiler_static_works=yes
! 7352: fi
! 7353: fi
! 7354: $rm conftest*
! 7355: LDFLAGS="$save_LDFLAGS"
! 7356:
! 7357: fi
! 7358: echo "$as_me:7358: result: $lt_prog_compiler_static_works" >&5
! 7359: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
! 7360:
! 7361: if test x"$lt_prog_compiler_static_works" = xyes; then
! 7362: :
! 7363: else
! 7364: lt_prog_compiler_static=
! 7365: fi
! 7366:
! 7367: lt_prog_compiler_no_builtin_flag=
! 7368:
! 7369: if test "$GCC" = yes; then
! 7370: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
! 7371:
! 7372: echo "$as_me:7372: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7373: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 7374: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7375: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7376: else
! 7377: lt_cv_prog_compiler_rtti_exceptions=no
! 7378: ac_outfile=conftest.$ac_objext
! 7379: save_CFLAGS="$CFLAGS"
! 7380: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
! 7381: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7382: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
! 7383: # The compiler can only warn and ignore the option if not recognized
! 7384: # So say no if there are warnings mentioning the option
! 7385: cat conftest.err 1>&5
! 7386: lt_cv_prog_compiler_rtti_exceptions=yes
! 7387: for lt_i in -fno-rtti -fno-exceptions -c conftest.$ac_ext; do
! 7388: if grep -- $lt_i conftest.err >/dev/null; then
! 7389: lt_cv_prog_compiler_rtti_exceptions=no
! 7390: fi
! 7391: done
! 7392: fi
! 7393: $rm conftest*
! 7394: CFLAGS="$save_CFLAGS"
! 7395:
! 7396: fi
! 7397: echo "$as_me:7397: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7398: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
! 7399:
! 7400: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 7401: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
! 7402: else
! 7403: :
! 7404: fi
! 7405:
! 7406: fi
! 7407:
! 7408: lt_prog_compiler_wl=
! 7409: lt_prog_compiler_pic=
! 7410: lt_prog_compiler_static=
! 7411:
! 7412: echo "$as_me:7412: checking for $compiler option to produce PIC" >&5
! 7413: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 7414:
! 7415: if test "$GCC" = yes; then
! 7416: lt_prog_compiler_wl='-Wl,'
! 7417: lt_prog_compiler_static='-static'
! 7418:
! 7419: case $host_os in
! 7420: aix*)
! 7421: # All AIX code is PIC.
! 7422: if test "$host_cpu" = ia64; then
! 7423: # AIX 5 now supports IA64 processor
! 7424: lt_prog_compiler_static='-Bstatic'
! 7425: fi
! 7426: ;;
! 7427:
! 7428: amigaos*)
! 7429: # FIXME: we need at least 68020 code to build shared libraries, but
! 7430: # adding the `-m68020' flag to GCC prevents building anything better,
! 7431: # like `-m68040'.
! 7432: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
! 7433: ;;
! 7434:
! 7435: beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
! 7436: # PIC is the default for these OSes.
! 7437: ;;
! 7438:
! 7439: cygwin* | mingw* | pw32* | os2*)
! 7440: # This hack is so that the source file can tell whether it is being
! 7441: # built for inclusion in a dll (and should export symbols for example).
! 7442: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7443: ;;
! 7444:
! 7445: darwin* | rhapsody*)
! 7446: # PIC is the default on this platform
! 7447: # Common symbols not allowed in MH_DYLIB files
! 7448: lt_prog_compiler_pic='-fno-common'
! 7449: ;;
! 7450:
! 7451: msdosdjgpp*)
! 7452: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 7453: # on systems that don't support them.
! 7454: lt_prog_compiler_can_build_shared=no
! 7455: enable_shared=no
! 7456: ;;
! 7457:
! 7458: sysv4*MP*)
! 7459: if test -d /usr/nec; then
! 7460: lt_prog_compiler_pic=-Kconform_pic
! 7461: fi
! 7462: ;;
! 7463:
! 7464: hpux*)
! 7465: # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
! 7466: if test "$host_cpu" != ia64; then
! 7467: lt_prog_compiler_pic='-fPIC'
! 7468: fi
! 7469: ;;
! 7470:
! 7471: *)
! 7472: lt_prog_compiler_pic='-fPIC'
! 7473: ;;
! 7474: esac
! 7475: else
! 7476: # PORTME Check for flag to pass linker flags through the system compiler.
! 7477: case $host_os in
! 7478: aix*)
! 7479: lt_prog_compiler_wl='-Wl,'
! 7480: if test "$host_cpu" = ia64; then
! 7481: # AIX 5 now supports IA64 processor
! 7482: lt_prog_compiler_static='-Bstatic'
! 7483: else
! 7484: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
! 7485: fi
! 7486: ;;
! 7487:
! 7488: cygwin* | mingw* | pw32* | os2*)
! 7489: # This hack is so that the source file can tell whether it is being
! 7490: # built for inclusion in a dll (and should export symbols for example).
! 7491: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7492: ;;
! 7493:
! 7494: hpux9* | hpux10* | hpux11*)
! 7495: lt_prog_compiler_wl='-Wl,'
! 7496: if test "$host_cpu" != ia64; then
! 7497: lt_prog_compiler_pic='+Z'
! 7498: fi
! 7499: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 7500: lt_prog_compiler_static='${wl}-a ${wl}archive'
! 7501: ;;
! 7502:
! 7503: irix5* | irix6*)
! 7504: lt_prog_compiler_wl='-Wl,'
! 7505: # PIC (with -KPIC) is the default.
! 7506: lt_prog_compiler_static='-non_shared'
! 7507: ;;
! 7508:
! 7509: newsos6)
! 7510: lt_prog_compiler_pic='-KPIC'
! 7511: lt_prog_compiler_static='-Bstatic'
! 7512: ;;
! 7513:
! 7514: osf3* | osf4* | osf5*)
! 7515: lt_prog_compiler_wl='-Wl,'
! 7516: # All OSF/1 code is PIC.
! 7517: lt_prog_compiler_static='-non_shared'
! 7518: ;;
! 7519:
! 7520: sco3.2v5*)
! 7521: lt_prog_compiler_pic='-Kpic'
! 7522: lt_prog_compiler_static='-dn'
! 7523: ;;
! 7524:
! 7525: solaris*)
! 7526: lt_prog_compiler_wl='-Wl,'
! 7527: lt_prog_compiler_pic='-KPIC'
! 7528: lt_prog_compiler_static='-Bstatic'
! 7529: ;;
! 7530:
! 7531: sunos4*)
! 7532: lt_prog_compiler_wl='-Qoption ld '
! 7533: lt_prog_compiler_pic='-PIC'
! 7534: lt_prog_compiler_static='-Bstatic'
! 7535: ;;
! 7536:
! 7537: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 7538: if test "x$host_vendor" = xsni; then
! 7539: lt_prog_compiler_wl='-LD'
! 7540: else
! 7541: lt_prog_compiler_wl='-Wl,'
! 7542: fi
! 7543: lt_prog_compiler_pic='-KPIC'
! 7544: lt_prog_compiler_static='-Bstatic'
! 7545: ;;
! 7546:
! 7547: sysv4*MP*)
! 7548: if test -d /usr/nec ;then
! 7549: lt_prog_compiler_pic='-Kconform_pic'
! 7550: lt_prog_compiler_static='-Bstatic'
! 7551: fi
! 7552: ;;
! 7553:
! 7554: uts4*)
! 7555: lt_prog_compiler_pic='-pic'
! 7556: lt_prog_compiler_static='-Bstatic'
! 7557: ;;
! 7558:
! 7559: *)
! 7560: lt_prog_compiler_can_build_shared=no
! 7561: ;;
! 7562: esac
! 7563: fi
! 7564:
! 7565: echo "$as_me:7565: result: $lt_prog_compiler_pic" >&5
! 7566: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
! 7567:
! 7568: #
! 7569: # Check to make sure the PIC flag actually works.
! 7570: #
! 7571: if test -n "$lt_prog_compiler_pic"; then
! 7572: echo "$as_me:7572: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7573: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
! 7574: if test "${lt_prog_compiler_pic_works+set}" = set; then
! 7575: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7576: else
! 7577: lt_prog_compiler_pic_works=no
! 7578: ac_outfile=conftest.$ac_objext
! 7579: save_CFLAGS="$CFLAGS"
! 7580: CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
! 7581: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7582: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
! 7583: # The compiler can only warn and ignore the option if not recognized
! 7584: # So say no if there are warnings mentioning the option
! 7585: cat conftest.err 1>&5
! 7586: lt_prog_compiler_pic_works=yes
! 7587: for lt_i in $lt_prog_compiler_pic -DPIC; do
! 7588: if grep -- $lt_i conftest.err >/dev/null; then
! 7589: lt_prog_compiler_pic_works=no
! 7590: fi
! 7591: done
! 7592: fi
! 7593: $rm conftest*
! 7594: CFLAGS="$save_CFLAGS"
! 7595:
! 7596: fi
! 7597: echo "$as_me:7597: result: $lt_prog_compiler_pic_works" >&5
! 7598: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
! 7599:
! 7600: if test x"$lt_prog_compiler_pic_works" = xyes; then
! 7601: case $lt_prog_compiler_pic in
! 7602: "" | " "*) ;;
! 7603: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 7604: esac
! 7605: else
! 7606: lt_prog_compiler_pic=
! 7607: lt_prog_compiler_can_build_shared=no
! 7608: fi
! 7609:
! 7610: fi
! 7611: case "$host_os" in
! 7612: # For platforms which do not support PIC, -DPIC is meaningless:
! 7613: *djgpp*)
! 7614: lt_prog_compiler_pic=
! 7615: ;;
! 7616: *)
! 7617: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
! 7618: ;;
! 7619: esac
! 7620:
! 7621: echo "$as_me:7621: checking if $compiler supports -c -o file.$ac_objext" >&5
! 7622: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 7623: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 7624: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7625: else
! 7626: lt_cv_prog_compiler_c_o=no
! 7627: $rm -r conftest 2>/dev/null
! 7628: mkdir conftest
! 7629: cd conftest
! 7630: mkdir out
! 7631: save_CFLAGS="$CFLAGS"
! 7632: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
! 7633: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7634:
! 7635: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 7636: # that will create temporary files in the current directory regardless of
! 7637: # the output directory. Thus, making CWD read-only will cause this test
! 7638: # to fail, enabling locking or at least warning the user not to do parallel
! 7639: # builds.
! 7640: chmod -w .
! 7641:
! 7642: if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
! 7643: then
! 7644: # The compiler can only warn and ignore the option if not recognized
! 7645: # So say no if there are warnings
! 7646: if test -s out/conftest.err; then
! 7647: # Append any errors to the config.log.
! 7648: cat out/conftest.err 1>&5
! 7649: else
! 7650: lt_cv_prog_compiler_c_o=yes
! 7651: fi
! 7652: fi
! 7653: CFLAGS="$save_CFLAGS"
! 7654: chmod u+w .
! 7655: $rm conftest* out/*
! 7656: rmdir out
! 7657: cd ..
! 7658: rmdir conftest
! 7659: $rm conftest*
! 7660:
! 7661: fi
! 7662: echo "$as_me:7662: result: $lt_cv_prog_compiler_c_o" >&5
! 7663: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
! 7664:
! 7665: hard_links="nottested"
! 7666: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
! 7667: # do not overwrite the value of need_locks provided by the user
! 7668: echo "$as_me:7668: checking if we can lock with hard links" >&5
! 7669: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 7670: hard_links=yes
! 7671: $rm conftest*
! 7672: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7673: touch conftest.a
! 7674: ln conftest.a conftest.b 2>&5 || hard_links=no
! 7675: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7676: echo "$as_me:7676: result: $hard_links" >&5
! 7677: echo "${ECHO_T}$hard_links" >&6
! 7678: if test "$hard_links" = no; then
! 7679: { echo "$as_me:7679: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 7680: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 7681: need_locks=warn
! 7682: fi
! 7683: else
! 7684: need_locks=no
! 7685: fi
! 7686:
! 7687: echo "$as_me:7687: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 7688: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 7689:
! 7690: runpath_var=
! 7691: allow_undefined_flag=
! 7692:
! 7693: archive_cmds=
! 7694: archive_cmds_need_lc=
! 7695: archive_expsym_cmds=
! 7696: old_archive_From_new_cmds=
! 7697: old_archive_from_expsyms_cmds=
! 7698: export_dynamic_flag_spec=
! 7699: whole_archive_flag_spec=
! 7700: thread_safe_flag_spec=
! 7701: hardcode_libdir_flag_spec=
! 7702: hardcode_libdir_separator=
! 7703: hardcode_direct=no
! 7704: hardcode_minus_L=no
! 7705: hardcode_shlibpath_var=unsupported
! 7706: link_all_deplibs=unknown
! 7707: always_export_symbols=no
! 7708: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 7709: # include_expsyms should be a list of space-separated symbols to be *always*
! 7710: # included in the symbol list
! 7711: include_expsyms=
! 7712: # exclude_expsyms can be an egrep regular expression of symbols to exclude
! 7713: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 7714: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 7715: # as well as any symbol that contains `d'.
! 7716: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 7717: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 7718: # platforms (ab)use it in PIC code, but their linkers get confused if
! 7719: # the symbol is explicitly referenced. Since portable code cannot
! 7720: # rely on this symbol name, it's probably fine to never include it in
! 7721: # preloaded symbol tables.
! 7722: extract_expsyms_cmds=
! 7723:
! 7724: case $host_os in
! 7725: cygwin* | mingw* | pw32*)
! 7726: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 7727: # When not using gcc, we currently assume that we are using
! 7728: # Microsoft Visual C++.
! 7729: if test "$GCC" != yes; then
! 7730: with_gnu_ld=no
! 7731: fi
! 7732: ;;
! 7733: openbsd*)
! 7734: with_gnu_ld=no
! 7735: ;;
! 7736: esac
! 7737:
! 7738: ld_shlibs=yes
! 7739: if test "$with_gnu_ld" = yes; then
! 7740: # If archive_cmds runs LD, not CC, wlarc should be empty
! 7741: wlarc='${wl}'
! 7742:
! 7743: # See if GNU ld supports shared libraries.
! 7744: case $host_os in
! 7745: aix3* | aix4* | aix5*)
! 7746: # On AIX/PPC, the GNU linker is very broken
! 7747: if test "$host_cpu" != ia64; then
! 7748: ld_shlibs=no
! 7749: cat <<EOF 1>&2
! 7750:
! 7751: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 7752: *** to be unable to reliably create shared libraries on AIX.
! 7753: *** Therefore, libtool is disabling shared libraries support. If you
! 7754: *** really care for shared libraries, you may want to modify your PATH
! 7755: *** so that a non-GNU linker is found, and then restart.
! 7756:
! 7757: EOF
! 7758: fi
! 7759: ;;
! 7760:
! 7761: amigaos*)
! 7762: 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)'
! 7763: hardcode_libdir_flag_spec='-L$libdir'
! 7764: hardcode_minus_L=yes
! 7765:
! 7766: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 7767: # that the semantics of dynamic libraries on AmigaOS, at least up
! 7768: # to version 4, is to share data among multiple programs linked
! 7769: # with the same dynamic library. Since this doesn't match the
! 7770: # behavior of shared libraries on other platforms, we can't use
! 7771: # them.
! 7772: ld_shlibs=no
! 7773: ;;
! 7774:
! 7775: beos*)
! 7776: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 7777: allow_undefined_flag=unsupported
! 7778: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 7779: # support --undefined. This deserves some investigation. FIXME
! 7780: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7781: else
! 7782: ld_shlibs=no
! 7783: fi
! 7784: ;;
! 7785:
! 7786: cygwin* | mingw* | pw32*)
! 7787: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
! 7788: # no search path for DLLs.
! 7789: hardcode_libdir_flag_spec='-L$libdir'
! 7790: allow_undefined_flag=unsupported
! 7791: always_export_symbols=yes
! 7792:
! 7793: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
! 7794: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
! 7795: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
! 7796: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
! 7797: else $CC -o impgen impgen.c ; fi)~
! 7798: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
! 7799:
! 7800: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
! 7801:
! 7802: # cygwin and mingw dlls have different entry points and sets of symbols
! 7803: # to exclude.
! 7804: # FIXME: what about values for MSVC?
! 7805: dll_entry=__cygwin_dll_entry@12
! 7806: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
! 7807: case $host_os in
! 7808: mingw*)
! 7809: # mingw values
! 7810: dll_entry=_DllMainCRTStartup@12
! 7811: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
! 7812: ;;
! 7813: esac
! 7814:
! 7815: # mingw and cygwin differ, and it's simplest to just exclude the union
! 7816: # of the two symbol sets.
! 7817: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
! 7818:
! 7819: # recent cygwin and mingw systems supply a stub DllMain which the user
! 7820: # can override, but on older systems we have to supply one (in ltdll.c)
! 7821: if test "x$lt_cv_need_dllmain" = "xyes"; then
! 7822: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
! 7823: 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~
! 7824: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
! 7825: else
! 7826: ltdll_obj=
! 7827: ltdll_cmds=
! 7828: fi
! 7829:
! 7830: # Extract the symbol export list from an `--export-all' def file,
! 7831: # then regenerate the def file from the symbol export list, so that
! 7832: # the compiled dll only exports the symbol export list.
! 7833: # Be careful not to strip the DATA tag left by newer dlltools.
! 7834: export_symbols_cmds="$ltdll_cmds"'
! 7835: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
! 7836: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
! 7837:
! 7838: # If the export-symbols file already is a .def file (1st line
! 7839: # is EXPORTS), use it as is.
! 7840: # If DATA tags from a recent dlltool are present, honour them!
! 7841: archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
! 7842: cp $export_symbols $output_objdir/$soname-def;
! 7843: else
! 7844: echo EXPORTS > $output_objdir/$soname-def;
! 7845: _lt_hint=1;
! 7846: cat $export_symbols | while read symbol; do
! 7847: set dummy \$symbol;
! 7848: case \$# in
! 7849: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
! 7850: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
! 7851: esac;
! 7852: _lt_hint=`expr 1 + \$_lt_hint`;
! 7853: done;
! 7854: fi~
! 7855: '"$ltdll_cmds"'
! 7856: $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~
! 7857: $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~
! 7858: $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~
! 7859: $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~
! 7860: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
! 7861: ;;
! 7862:
! 7863: netbsd*)
! 7864: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 7865: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 7866: wlarc=
! 7867: else
! 7868: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7869: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7870: fi
! 7871: ;;
! 7872:
! 7873: solaris* | sysv5*)
! 7874: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
! 7875: ld_shlibs=no
! 7876: cat <<EOF 1>&2
! 7877:
! 7878: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 7879: *** create shared libraries on Solaris systems. Therefore, libtool
! 7880: *** is disabling shared libraries support. We urge you to upgrade GNU
! 7881: *** binutils to release 2.9.1 or newer. Another option is to modify
! 7882: *** your PATH or compiler configuration so that the native linker is
! 7883: *** used, and then restart.
! 7884:
! 7885: EOF
! 7886: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 7887: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7888: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7889: else
! 7890: ld_shlibs=no
! 7891: fi
! 7892: ;;
! 7893:
! 7894: sunos4*)
! 7895: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 7896: wlarc=
! 7897: hardcode_direct=yes
! 7898: hardcode_shlibpath_var=no
! 7899: ;;
! 7900:
! 7901: *)
! 7902: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 7903: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7904: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7905: else
! 7906: ld_shlibs=no
! 7907: fi
! 7908: ;;
! 7909: esac
! 7910:
! 7911: if test "$ld_shlibs" = yes; then
! 7912: runpath_var=LD_RUN_PATH
! 7913: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 7914: export_dynamic_flag_spec='${wl}--export-dynamic'
! 7915: case $host_os in
! 7916: cygwin* | mingw* | pw32*)
! 7917: # dlltool doesn't understand --whole-archive et. al.
! 7918: whole_archive_flag_spec=
! 7919: ;;
! 7920: *)
! 7921: # ancient GNU ld didn't support --whole-archive et. al.
! 7922: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
! 7923: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 7924: else
! 7925: whole_archive_flag_spec=
! 7926: fi
! 7927: ;;
! 7928: esac
! 7929: fi
! 7930: else
! 7931: # PORTME fill in a description of your system's linker (not GNU ld)
! 7932: case $host_os in
! 7933: aix3*)
! 7934: allow_undefined_flag=unsupported
! 7935: always_export_symbols=yes
! 7936: 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'
! 7937: # Note: this linker hardcodes the directories in LIBPATH if there
! 7938: # are no directories specified by -L.
! 7939: hardcode_minus_L=yes
! 7940: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 7941: # Neither direct hardcoding nor static linking is supported with a
! 7942: # broken collect2.
! 7943: hardcode_direct=unsupported
! 7944: fi
! 7945: ;;
! 7946:
! 7947: aix4* | aix5*)
! 7948: if test "$host_cpu" = ia64; then
! 7949: # On IA64, the linker does run time linking by default, so we don't
! 7950: # have to do anything special.
! 7951: aix_use_runtimelinking=no
! 7952: exp_sym_flag='-Bexport'
! 7953: no_entry_flag=""
! 7954: else
! 7955: # If we're using GNU nm, then we don't want the "-C" option.
! 7956: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 7957: if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
! 7958: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 7959: else
! 7960: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 7961: fi
! 7962: aix_use_runtimelinking=no
! 7963:
! 7964: # Test if we are trying to use run time linking or normal
! 7965: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 7966: # need to do runtime linking.
! 7967: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 7968: for ld_flag in $LDFLAGS; do
! 7969: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 7970: aix_use_runtimelinking=yes
! 7971: break
! 7972: fi
! 7973: done
! 7974: esac
! 7975:
! 7976: exp_sym_flag='-bexport'
! 7977: no_entry_flag='-bnoentry'
! 7978: fi
! 7979:
! 7980: # When large executables or shared objects are built, AIX ld can
! 7981: # have problems creating the table of contents. If linking a library
! 7982: # or program results in "error TOC overflow" add -mminimal-toc to
! 7983: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 7984: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 7985:
! 7986: archive_cmds=''
! 7987: hardcode_direct=yes
! 7988: hardcode_libdir_separator=':'
! 7989: link_all_deplibs=yes
! 7990:
! 7991: if test "$GCC" = yes; then
! 7992: case $host_os in aix4.012|aix4.012.*)
! 7993: # We only want to do this on AIX 4.2 and lower, the check
! 7994: # below for broken collect2 doesn't work under 4.3+
! 7995: collect2name=`${CC} -print-prog-name=collect2`
! 7996: if test -f "$collect2name" && \
! 7997: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 7998: then
! 7999: # We have reworked collect2
! 8000: hardcode_direct=yes
! 8001: else
! 8002: # We have old collect2
! 8003: hardcode_direct=unsupported
! 8004: # It fails to find uninstalled libraries when the uninstalled
! 8005: # path is not listed in the libpath. Setting hardcode_minus_L
! 8006: # to unsupported forces relinking
! 8007: hardcode_minus_L=yes
! 8008: hardcode_libdir_flag_spec='-L$libdir'
! 8009: hardcode_libdir_separator=
! 8010: fi
! 8011: esac
! 8012: shared_flag='-shared'
! 8013: else
! 8014: # not using gcc
! 8015: if test "$host_cpu" = ia64; then
! 8016: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 8017: # chokes on -Wl,-G. The following line is correct:
! 8018: shared_flag='-G'
! 8019: else
! 8020: if test "$aix_use_runtimelinking" = yes; then
! 8021: shared_flag='${wl}-G'
! 8022: else
! 8023: shared_flag='${wl}-bM:SRE'
! 8024: fi
! 8025: fi
! 8026: fi
! 8027:
! 8028: # It seems that -bexpall does not export symbols beginning with
! 8029: # underscore (_), so it is better to generate a list of symbols to export.
! 8030: always_export_symbols=yes
! 8031: if test "$aix_use_runtimelinking" = yes; then
! 8032: # Warning - without using the other runtime loading flags (-brtl),
! 8033: # -berok will link without error, but may produce a broken library.
! 8034: allow_undefined_flag='-berok'
! 8035: # Determine the default libpath from the value encoded in an empty executable.
! 8036: cat >conftest.$ac_ext <<_ACEOF
! 8037: #line 8037 "configure"
! 8038: #include "confdefs.h"
! 8039:
! 8040: int
! 8041: main ()
! 8042: {
! 8043:
! 8044: ;
! 8045: return 0;
! 8046: }
! 8047: _ACEOF
! 8048: rm -f conftest.$ac_objext conftest$ac_exeext
! 8049: if { (eval echo "$as_me:8049: \"$ac_link\"") >&5
! 8050: (eval $ac_link) 2>&5
! 8051: ac_status=$?
! 8052: echo "$as_me:8052: \$? = $ac_status" >&5
! 8053: (exit $ac_status); } &&
! 8054: { ac_try='test -s conftest$ac_exeext'
! 8055: { (eval echo "$as_me:8055: \"$ac_try\"") >&5
! 8056: (eval $ac_try) 2>&5
! 8057: ac_status=$?
! 8058: echo "$as_me:8058: \$? = $ac_status" >&5
! 8059: (exit $ac_status); }; }; then
! 8060:
! 8061: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8062: }'`
! 8063: # Check for a 64-bit object if we didn't find anything.
! 8064: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8065: }'`; fi
! 8066: else
! 8067: echo "$as_me: failed program was:" >&5
! 8068: cat conftest.$ac_ext >&5
! 8069: fi
! 8070: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8071: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8072:
! 8073: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8074: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 8075: else
! 8076: if test "$host_cpu" = ia64; then
! 8077: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 8078: allow_undefined_flag="-z nodefs"
! 8079: 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"
! 8080: else
! 8081: # Determine the default libpath from the value encoded in an empty executable.
! 8082: cat >conftest.$ac_ext <<_ACEOF
! 8083: #line 8083 "configure"
! 8084: #include "confdefs.h"
! 8085:
! 8086: int
! 8087: main ()
! 8088: {
! 8089:
! 8090: ;
! 8091: return 0;
! 8092: }
! 8093: _ACEOF
! 8094: rm -f conftest.$ac_objext conftest$ac_exeext
! 8095: if { (eval echo "$as_me:8095: \"$ac_link\"") >&5
! 8096: (eval $ac_link) 2>&5
! 8097: ac_status=$?
! 8098: echo "$as_me:8098: \$? = $ac_status" >&5
! 8099: (exit $ac_status); } &&
! 8100: { ac_try='test -s conftest$ac_exeext'
! 8101: { (eval echo "$as_me:8101: \"$ac_try\"") >&5
! 8102: (eval $ac_try) 2>&5
! 8103: ac_status=$?
! 8104: echo "$as_me:8104: \$? = $ac_status" >&5
! 8105: (exit $ac_status); }; }; then
! 8106:
! 8107: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8108: }'`
! 8109: # Check for a 64-bit object if we didn't find anything.
! 8110: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8111: }'`; fi
! 8112: else
! 8113: echo "$as_me: failed program was:" >&5
! 8114: cat conftest.$ac_ext >&5
! 8115: fi
! 8116: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8117: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8118:
! 8119: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8120: # Warning - without using the other run time loading flags,
! 8121: # -berok will link without error, but may produce a broken library.
! 8122: no_undefined_flag=' ${wl}-bernotok'
! 8123: allow_undefined_flag=' ${wl}-berok'
! 8124: # -bexpall does not export symbols beginning with underscore (_)
! 8125: always_export_symbols=yes
! 8126: # Exported symbols can be pulled into shared objects from archives
! 8127: whole_archive_flag_spec=' '
! 8128: archive_cmds_need_lc=yes
! 8129: # This is similar to how AIX traditionally builds it's shared libraries.
! 8130: 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'
! 8131: fi
! 8132: fi
! 8133: ;;
! 8134:
! 8135: amigaos*)
! 8136: 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)'
! 8137: hardcode_libdir_flag_spec='-L$libdir'
! 8138: hardcode_minus_L=yes
! 8139: # see comment about different semantics on the GNU ld section
! 8140: ld_shlibs=no
! 8141: ;;
! 8142:
! 8143: bsdi4*)
! 8144: export_dynamic_flag_spec=-rdynamic
! 8145: ;;
! 8146:
! 8147: cygwin* | mingw* | pw32*)
! 8148: # When not using gcc, we currently assume that we are using
! 8149: # Microsoft Visual C++.
! 8150: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 8151: # no search path for DLLs.
! 8152: hardcode_libdir_flag_spec=' '
! 8153: allow_undefined_flag=unsupported
! 8154: # Tell ltmain to make .lib files, not .a files.
! 8155: libext=lib
! 8156: # FIXME: Setting linknames here is a bad hack.
! 8157: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 8158: # The linker will automatically build a .lib file if we build a DLL.
! 8159: old_archive_From_new_cmds='true'
! 8160: # FIXME: Should let the user specify the lib program.
! 8161: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 8162: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 8163: ;;
! 8164:
! 8165: darwin* | rhapsody*)
! 8166: case "$host_os" in
! 8167: rhapsody* | darwin1.[012])
! 8168: allow_undefined_flag='-undefined suppress'
! 8169: ;;
! 8170: *) # Darwin 1.3 on
! 8171: allow_undefined_flag='-flat_namespace -undefined suppress'
! 8172: ;;
! 8173: esac
! 8174:
! 8175: # FIXME: Relying on posixy $() will cause problems for
! 8176: # cross-compilation, but unfortunately the echo tests do not
! 8177: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 8178: # `"' quotes if we put them in here... so don't!
! 8179: archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
! 8180: # We need to add '_' to the symbols in $export_symbols first
! 8181: #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
! 8182: hardcode_direct=yes
! 8183: hardcode_shlibpath_var=no
! 8184: whole_archive_flag_spec='-all_load $convenience'
! 8185: ;;
! 8186:
! 8187: dgux*)
! 8188: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8189: hardcode_libdir_flag_spec='-L$libdir'
! 8190: hardcode_shlibpath_var=no
! 8191: ;;
! 8192:
! 8193: freebsd1*)
! 8194: ld_shlibs=no
! 8195: ;;
! 8196:
! 8197: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 8198: # support. Future versions do this automatically, but an explicit c++rt0.o
! 8199: # does not break anything, and helps significantly (at the cost of a little
! 8200: # extra space).
! 8201: freebsd2.2*)
! 8202: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 8203: hardcode_libdir_flag_spec='-R$libdir'
! 8204: hardcode_direct=yes
! 8205: hardcode_shlibpath_var=no
! 8206: ;;
! 8207:
! 8208: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 8209: freebsd2*)
! 8210: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8211: hardcode_direct=yes
! 8212: hardcode_minus_L=yes
! 8213: hardcode_shlibpath_var=no
! 8214: ;;
! 8215:
! 8216: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 8217: freebsd*)
! 8218: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 8219: hardcode_libdir_flag_spec='-R$libdir'
! 8220: hardcode_direct=yes
! 8221: hardcode_shlibpath_var=no
! 8222: ;;
! 8223:
! 8224: hpux9* | hpux10* | hpux11*)
! 8225: if test "$GCC" = yes; then
! 8226: case $host_os in
! 8227: hpux9*)
! 8228: 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'
! 8229: ;;
! 8230: *)
! 8231: if test "$host_cpu" = ia64; then
! 8232: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8233: else
! 8234: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8235: fi
! 8236: ;;
! 8237: esac
! 8238: else
! 8239: case $host_os in
! 8240: hpux9*)
! 8241: 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'
! 8242: ;;
! 8243: *)
! 8244: if test "$host_cpu" = ia64; then
! 8245: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8246: else
! 8247: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 8248: fi
! 8249: ;;
! 8250: esac
! 8251: fi
! 8252: if test "$host_cpu" = ia64; then
! 8253: hardcode_libdir_flag_spec='-L$libdir'
! 8254: hardcode_direct=no
! 8255: hardcode_shlibpath_var=no
! 8256: else
! 8257: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8258: hardcode_libdir_separator=:
! 8259: hardcode_direct=yes
! 8260: fi
! 8261: # hardcode_minus_L: Not really in the search PATH,
! 8262: # but as the default location of the library.
! 8263: hardcode_minus_L=yes
! 8264: export_dynamic_flag_spec='${wl}-E'
! 8265: ;;
! 8266:
! 8267: irix5* | irix6*)
! 8268: if test "$GCC" = yes; then
! 8269: 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'
! 8270: else
! 8271: 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'
! 8272: fi
! 8273: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8274: hardcode_libdir_separator=:
! 8275: link_all_deplibs=yes
! 8276: ;;
! 8277:
! 8278: netbsd*)
! 8279: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8280: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 8281: else
! 8282: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 8283: fi
! 8284: hardcode_libdir_flag_spec='-R$libdir'
! 8285: hardcode_direct=yes
! 8286: hardcode_shlibpath_var=no
! 8287: ;;
! 8288:
! 8289: newsos6)
! 8290: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8291: hardcode_direct=yes
! 8292: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8293: hardcode_libdir_separator=:
! 8294: hardcode_shlibpath_var=no
! 8295: ;;
! 8296:
! 8297: openbsd*)
! 8298: hardcode_direct=yes
! 8299: hardcode_shlibpath_var=no
! 8300:
! 8301: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8302: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
! 8303: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8304: export_dynamic_flag_spec='${wl}-E'
! 8305: else
! 8306: case $host_os in
! 8307: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 8308: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8309: hardcode_libdir_flag_spec='-R$libdir'
! 8310: ;;
! 8311: *)
! 8312: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
! 8313: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8314: ;;
! 8315: esac
! 8316: fi
! 8317: ;;
! 8318:
! 8319: os2*)
! 8320: hardcode_libdir_flag_spec='-L$libdir'
! 8321: hardcode_minus_L=yes
! 8322: allow_undefined_flag=unsupported
! 8323: 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'
! 8324: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 8325: ;;
! 8326:
! 8327: osf3*)
! 8328: if test "$GCC" = yes; then
! 8329: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8330: 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'
! 8331: else
! 8332: allow_undefined_flag=' -expect_unresolved \*'
! 8333: 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'
! 8334: fi
! 8335: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8336: hardcode_libdir_separator=:
! 8337: ;;
! 8338:
! 8339: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 8340: if test "$GCC" = yes; then
! 8341: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8342: 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'
! 8343: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8344: else
! 8345: allow_undefined_flag=' -expect_unresolved \*'
! 8346: 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'
! 8347: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 8348: $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'
! 8349:
! 8350: # Both c and cxx compiler support -rpath directly
! 8351: hardcode_libdir_flag_spec='-rpath $libdir'
! 8352: fi
! 8353: hardcode_libdir_separator=:
! 8354: ;;
! 8355:
! 8356: sco3.2v5*)
! 8357: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8358: hardcode_shlibpath_var=no
! 8359: export_dynamic_flag_spec='${wl}-Bexport'
! 8360: runpath_var=LD_RUN_PATH
! 8361: hardcode_runpath_var=yes
! 8362: ;;
! 8363:
! 8364: solaris*)
! 8365: no_undefined_flag=' -z text'
! 8366: if test "$GCC" = yes; then
! 8367: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8368: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8369: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 8370: else
! 8371: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8372: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8373: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8374: fi
! 8375: hardcode_libdir_flag_spec='-R$libdir'
! 8376: hardcode_shlibpath_var=no
! 8377: case $host_os in
! 8378: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 8379: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 8380: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
! 8381: esac
! 8382: link_all_deplibs=yes
! 8383: ;;
! 8384:
! 8385: sunos4*)
! 8386: if test "x$host_vendor" = xsequent; then
! 8387: # Use $CC to link under sequent, because it throws in some extra .o
! 8388: # files that make .init and .fini sections work.
! 8389: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 8390: else
! 8391: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 8392: fi
! 8393: hardcode_libdir_flag_spec='-L$libdir'
! 8394: hardcode_direct=yes
! 8395: hardcode_minus_L=yes
! 8396: hardcode_shlibpath_var=no
! 8397: ;;
! 8398:
! 8399: sysv4)
! 8400: if test "x$host_vendor" = xsni; then
! 8401: archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8402: hardcode_direct=yes # is this really true???
! 8403: else
! 8404: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8405: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 8406: fi
! 8407: runpath_var='LD_RUN_PATH'
! 8408: hardcode_shlibpath_var=no
! 8409: ;;
! 8410:
! 8411: sysv4.3*)
! 8412: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8413: hardcode_shlibpath_var=no
! 8414: export_dynamic_flag_spec='-Bexport'
! 8415: ;;
! 8416:
! 8417: sysv4*MP*)
! 8418: if test -d /usr/nec; then
! 8419: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8420: hardcode_shlibpath_var=no
! 8421: runpath_var=LD_RUN_PATH
! 8422: hardcode_runpath_var=yes
! 8423: ld_shlibs=yes
! 8424: fi
! 8425: ;;
! 8426:
! 8427: sysv4.2uw2*)
! 8428: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 8429: hardcode_direct=yes
! 8430: hardcode_minus_L=no
! 8431: hardcode_shlibpath_var=no
! 8432: hardcode_runpath_var=yes
! 8433: runpath_var=LD_RUN_PATH
! 8434: ;;
! 8435:
! 8436: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 8437: no_undefined_flag='${wl}-z ${wl}text'
! 8438: if test "$GCC" = yes; then
! 8439: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8440: else
! 8441: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8442: fi
! 8443: runpath_var='LD_RUN_PATH'
! 8444: hardcode_shlibpath_var=no
! 8445: ;;
! 8446:
! 8447: sysv5*)
! 8448: no_undefined_flag=' -z text'
! 8449: # $CC -shared without GNU ld will not create a library from C++
! 8450: # object files and a static libstdc++, better avoid it by now
! 8451: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8452: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8453: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8454: hardcode_libdir_flag_spec=
! 8455: hardcode_shlibpath_var=no
! 8456: runpath_var='LD_RUN_PATH'
! 8457: ;;
! 8458:
! 8459: uts4*)
! 8460: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8461: hardcode_libdir_flag_spec='-L$libdir'
! 8462: hardcode_shlibpath_var=no
! 8463: ;;
! 8464:
! 8465: *)
! 8466: ld_shlibs=no
! 8467: ;;
! 8468: esac
! 8469: fi
! 8470:
! 8471: echo "$as_me:8471: result: $ld_shlibs" >&5
! 8472: echo "${ECHO_T}$ld_shlibs" >&6
! 8473: test "$ld_shlibs" = no && can_build_shared=no
! 8474:
! 8475: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 8476: if test "$GCC" = yes; then
! 8477: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 8478: fi
! 8479:
! 8480: #
! 8481: # Do we need to explicitly link libc?
! 8482: #
! 8483: archive_cmds_need_lc=yes
! 8484: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 8485: case $archive_cmds in
! 8486: *'~'*)
! 8487: # FIXME: we may have to deal with multi-command sequences.
! 8488: ;;
! 8489: '$CC '*)
! 8490: # Test whether the compiler implicitly links with -lc since on some
! 8491: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 8492: # to ld, don't add -lc before -lgcc.
! 8493: echo "$as_me:8493: checking whether -lc should be explicitly linked in" >&5
! 8494: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 8495: $rm conftest*
! 8496: echo 'static int dummy;' > conftest.$ac_ext
! 8497:
! 8498: if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5
! 8499: (eval $ac_compile) 2>&5
! 8500: ac_status=$?
! 8501: echo "$as_me:8501: \$? = $ac_status" >&5
! 8502: (exit $ac_status); } 2>conftest.err; then
! 8503: soname=conftest
! 8504: lib=conftest
! 8505: libobjs=conftest.$ac_objext
! 8506: deplibs=
! 8507: wl=$lt_prog_compiler_wl
! 8508: compiler_flags=-v
! 8509: linker_flags=-v
! 8510: verstring=
! 8511: output_objdir=.
! 8512: libname=conftest
! 8513: lt_save_allow_undefined_flag=$allow_undefined_flag
! 8514: allow_undefined_flag=
! 8515: if { (eval echo "$as_me:8515: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 8516: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 8517: ac_status=$?
! 8518: echo "$as_me:8518: \$? = $ac_status" >&5
! 8519: (exit $ac_status); }
! 8520: then
! 8521: archive_cmds_need_lc=no
! 8522: else
! 8523: archive_cmds_need_lc=yes
! 8524: fi
! 8525: allow_undefined_flag=$lt_save_allow_undefined_flag
! 8526: else
! 8527: cat conftest.err 1>&5
! 8528: fi
! 8529: $rm conftest*
! 8530: echo "$as_me:8530: result: $archive_cmds_need_lc" >&5
! 8531: echo "${ECHO_T}$archive_cmds_need_lc" >&6
! 8532: ;;
! 8533: esac
! 8534: fi
! 8535:
! 8536: echo "$as_me:8536: checking how to hardcode library paths into programs" >&5
! 8537: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 8538: hardcode_action=
! 8539: if test -n "$hardcode_libdir_flag_spec" || \
! 8540: test -n "$runpath_var "; then
! 8541:
! 8542: # We can hardcode non-existant directories.
! 8543: if test "$hardcode_direct" != no &&
! 8544: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 8545: # have to relink, otherwise we might link with an installed library
! 8546: # when we should be linking with a yet-to-be-installed one
! 8547: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 8548: test "$hardcode_minus_L" != no; then
! 8549: # Linking always hardcodes the temporary library directory.
! 8550: hardcode_action=relink
! 8551: else
! 8552: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 8553: hardcode_action=immediate
! 8554: fi
! 8555: else
! 8556: # We cannot hardcode anything, or else we can only hardcode existing
! 8557: # directories.
! 8558: hardcode_action=unsupported
! 8559: fi
! 8560: echo "$as_me:8560: result: $hardcode_action" >&5
! 8561: echo "${ECHO_T}$hardcode_action" >&6
! 8562:
! 8563: if test "$hardcode_action" = relink; then
! 8564: # Fast installation is not supported
! 8565: enable_fast_install=no
! 8566: elif test "$shlibpath_overrides_runpath" = yes ||
! 8567: test "$enable_shared" = no; then
! 8568: # Fast installation is not necessary
! 8569: enable_fast_install=needless
! 8570: fi
! 8571:
! 8572: striplib=
! 8573: old_striplib=
! 8574: echo "$as_me:8574: checking whether stripping libraries is possible" >&5
! 8575: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 8576: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 8577: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 8578: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 8579: echo "$as_me:8579: result: yes" >&5
! 8580: echo "${ECHO_T}yes" >&6
! 8581: else
! 8582: echo "$as_me:8582: result: no" >&5
! 8583: echo "${ECHO_T}no" >&6
! 8584: fi
! 8585:
! 8586: echo "$as_me:8586: checking dynamic linker characteristics" >&5
! 8587: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 8588: library_names_spec=
! 8589: libname_spec='lib$name'
! 8590: soname_spec=
! 8591: postinstall_cmds=
! 8592: postuninstall_cmds=
! 8593: finish_cmds=
! 8594: finish_eval=
! 8595: shlibpath_var=
! 8596: shlibpath_overrides_runpath=unknown
! 8597: version_type=none
! 8598: dynamic_linker="$host_os ld.so"
! 8599: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 8600: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 8601: need_lib_prefix=unknown
! 8602: hardcode_into_libs=no
! 8603:
! 8604: # when you set need_version to no, make sure it does not cause -set_version
! 8605: # flags to be left without arguments
! 8606: need_version=unknown
! 8607:
! 8608: case $host_os in
! 8609: aix3*)
! 8610: version_type=linux
! 8611: library_names_spec='${libname}${release}.so$versuffix $libname.a'
! 8612: shlibpath_var=LIBPATH
! 8613:
! 8614: # AIX 3 has no versioning support, so we append a major version to the name.
! 8615: soname_spec='${libname}${release}.so$major'
! 8616: ;;
! 8617:
! 8618: aix4* | aix5*)
! 8619: version_type=linux
! 8620: if test "$host_cpu" = ia64; then
! 8621: # AIX 5 supports IA64
! 8622: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
! 8623: shlibpath_var=LD_LIBRARY_PATH
! 8624: else
! 8625: # With GCC up to 2.95.x, collect2 would create an import file
! 8626: # for dependence libraries. The import file would start with
! 8627: # the line `#! .'. This would cause the generated library to
! 8628: # depend on `.', always an invalid library. This was fixed in
! 8629: # development snapshots of GCC prior to 3.0.
! 8630: case $host_os in
! 8631: aix4 | aix4.[01] | aix4.[01].*)
! 8632: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 8633: echo ' yes '
! 8634: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 8635: :
! 8636: else
! 8637: can_build_shared=no
! 8638: fi
! 8639: ;;
! 8640: esac
! 8641: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 8642: # soname into executable. Probably we can add versioning support to
! 8643: # collect2, so additional links can be useful in future.
! 8644: if test "$aix_use_runtimelinking" = yes; then
! 8645: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 8646: # instead of lib<name>.a to let people know that these are not
! 8647: # typical AIX shared libraries.
! 8648: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8649: else
! 8650: # We preserve .a as extension for shared libraries through AIX4.2
! 8651: # and later when we are not doing run time linking.
! 8652: library_names_spec='${libname}${release}.a $libname.a'
! 8653: soname_spec='${libname}${release}.so$major'
! 8654: fi
! 8655: shlibpath_var=LIBPATH
! 8656: fi
! 8657: ;;
! 8658:
! 8659: amigaos*)
! 8660: library_names_spec='$libname.ixlibrary $libname.a'
! 8661: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 8662: 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'
! 8663: ;;
! 8664:
! 8665: beos*)
! 8666: library_names_spec='${libname}.so'
! 8667: dynamic_linker="$host_os ld.so"
! 8668: shlibpath_var=LIBRARY_PATH
! 8669: ;;
! 8670:
! 8671: bsdi4*)
! 8672: version_type=linux
! 8673: need_version=no
! 8674: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8675: soname_spec='${libname}${release}.so$major'
! 8676: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 8677: shlibpath_var=LD_LIBRARY_PATH
! 8678: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 8679: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 8680: # the default ld.so.conf also contains /usr/contrib/lib and
! 8681: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 8682: # libtool to hard-code these into programs
! 8683: ;;
! 8684:
! 8685: cygwin* | mingw* | pw32*)
! 8686: version_type=windows
! 8687: need_version=no
! 8688: need_lib_prefix=no
! 8689: case $GCC,$host_os in
! 8690: yes,cygwin*)
! 8691: library_names_spec='$libname.dll.a'
! 8692: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 8693: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 8694: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
! 8695: dldir=$destdir/`dirname \$dlpath`~
! 8696: test -d \$dldir || mkdir -p \$dldir~
! 8697: $install_prog .libs/$dlname \$dldir/$dlname'
! 8698: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 8699: dlpath=$dir/\$dldll~
! 8700: $rm \$dlpath'
! 8701: ;;
! 8702: yes,mingw*)
! 8703: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 8704: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
! 8705: if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
! 8706: # It is most probably a Windows format PATH printed by
! 8707: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 8708: # path with ; separators, and with drive letters. We can handle the
! 8709: # drive letters (cygwin fileutils understands them), so leave them,
! 8710: # especially as we might pass files found there to a mingw objdump,
! 8711: # which wouldn't understand a cygwinified path. Ahh.
! 8712: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
! 8713: else
! 8714: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
! 8715: fi
! 8716: ;;
! 8717: yes,pw32*)
! 8718: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
! 8719: ;;
! 8720: *)
! 8721: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
! 8722: ;;
! 8723: esac
! 8724: dynamic_linker='Win32 ld.exe'
! 8725: # FIXME: first we should search . and the directory the executable is in
! 8726: shlibpath_var=PATH
! 8727: ;;
! 8728:
! 8729: darwin* | rhapsody*)
! 8730: dynamic_linker="$host_os dyld"
! 8731: version_type=darwin
! 8732: need_lib_prefix=no
! 8733: need_version=no
! 8734: # FIXME: Relying on posixy $() will cause problems for
! 8735: # cross-compilation, but unfortunately the echo tests do not
! 8736: # yet detect zsh echo's removal of \ escapes.
! 8737: 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)'
! 8738: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
! 8739: shlibpath_overrides_runpath=yes
! 8740: shlibpath_var=DYLD_LIBRARY_PATH
! 8741: ;;
! 8742:
! 8743: dgux*)
! 8744: version_type=linux
! 8745: need_lib_prefix=no
! 8746: need_version=no
! 8747: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8748: soname_spec='${libname}${release}.so$major'
! 8749: shlibpath_var=LD_LIBRARY_PATH
! 8750: ;;
! 8751:
! 8752: freebsd1*)
! 8753: dynamic_linker=no
! 8754: ;;
! 8755:
! 8756: freebsd*)
! 8757: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 8758: version_type=freebsd-$objformat
! 8759: case $version_type in
! 8760: freebsd-elf*)
! 8761: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 8762: need_version=no
! 8763: need_lib_prefix=no
! 8764: ;;
! 8765: freebsd-*)
! 8766: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
! 8767: need_version=yes
! 8768: ;;
! 8769: esac
! 8770: shlibpath_var=LD_LIBRARY_PATH
! 8771: case $host_os in
! 8772: freebsd2*)
! 8773: shlibpath_overrides_runpath=yes
! 8774: ;;
! 8775: freebsd3.01* | freebsdelf3.01*)
! 8776: shlibpath_overrides_runpath=yes
! 8777: hardcode_into_libs=yes
! 8778: ;;
! 8779: *) # from 3.2 on
! 8780: shlibpath_overrides_runpath=no
! 8781: hardcode_into_libs=yes
! 8782: ;;
! 8783: esac
! 8784: ;;
! 8785:
! 8786: gnu*)
! 8787: version_type=linux
! 8788: need_lib_prefix=no
! 8789: need_version=no
! 8790: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
! 8791: soname_spec='${libname}${release}.so$major'
! 8792: shlibpath_var=LD_LIBRARY_PATH
! 8793: hardcode_into_libs=yes
! 8794: ;;
! 8795:
! 8796: hpux9* | hpux10* | hpux11*)
! 8797: # Give a soname corresponding to the major version so that dld.sl refuses to
! 8798: # link against other versions.
! 8799: version_type=sunos
! 8800: need_lib_prefix=no
! 8801: need_version=no
! 8802: if test "$host_cpu" = ia64; then
! 8803: hardcode_into_libs=yes
! 8804: dynamic_linker="$host_os dld.so"
! 8805: shlibpath_var=LD_LIBRARY_PATH
! 8806: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 8807: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8808: soname_spec='${libname}${release}.so$major'
! 8809: if test "X$HPUX_IA64_MODE" = X32; then
! 8810: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 8811: else
! 8812: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 8813: fi
! 8814: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 8815: else
! 8816: dynamic_linker="$host_os dld.sl"
! 8817: shlibpath_var=SHLIB_PATH
! 8818: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 8819: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
! 8820: soname_spec='${libname}${release}.sl$major'
! 8821: fi
! 8822: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 8823: postinstall_cmds='chmod 555 $lib'
! 8824: ;;
! 8825:
! 8826: irix5* | irix6*)
! 8827: version_type=irix
! 8828: need_lib_prefix=no
! 8829: need_version=no
! 8830: soname_spec='${libname}${release}.so$major'
! 8831: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
! 8832: case $host_os in
! 8833: irix5*)
! 8834: libsuff= shlibsuff=
! 8835: ;;
! 8836: *)
! 8837: case $LD in # libtool.m4 will add one of these switches to LD
! 8838: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
! 8839: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
! 8840: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 8841: *) libsuff= shlibsuff= libmagic=never-match;;
! 8842: esac
! 8843: ;;
! 8844: esac
! 8845: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 8846: shlibpath_overrides_runpath=no
! 8847: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 8848: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 8849: ;;
! 8850:
! 8851: # No shared lib support for Linux oldld, aout, or coff.
! 8852: linux*oldld* | linux*aout* | linux*coff*)
! 8853: dynamic_linker=no
! 8854: ;;
! 8855:
! 8856: # This must be Linux ELF.
! 8857: linux*)
! 8858: version_type=linux
! 8859: need_lib_prefix=no
! 8860: need_version=no
! 8861: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8862: soname_spec='${libname}${release}.so$major'
! 8863: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 8864: shlibpath_var=LD_LIBRARY_PATH
! 8865: shlibpath_overrides_runpath=no
! 8866: # This implies no fast_install, which is unacceptable.
! 8867: # Some rework will be needed to allow for fast_install
! 8868: # before this can be enabled.
! 8869: hardcode_into_libs=yes
! 8870:
! 8871: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 8872: # powerpc, because MkLinux only supported shared libraries with the
! 8873: # GNU dynamic linker. Since this was broken with cross compilers,
! 8874: # most powerpc-linux boxes support dynamic linking these days and
! 8875: # people can always --disable-shared, the test was removed, and we
! 8876: # assume the GNU/Linux dynamic linker is in use.
! 8877: dynamic_linker='GNU/Linux ld.so'
! 8878: ;;
! 8879:
! 8880: netbsd*)
! 8881: version_type=sunos
! 8882: need_lib_prefix=no
! 8883: need_version=no
! 8884: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8885: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 8886: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 8887: dynamic_linker='NetBSD (a.out) ld.so'
! 8888: else
! 8889: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
! 8890: soname_spec='${libname}${release}.so$major'
! 8891: dynamic_linker='NetBSD ld.elf_so'
! 8892: fi
! 8893: shlibpath_var=LD_LIBRARY_PATH
! 8894: shlibpath_overrides_runpath=yes
! 8895: hardcode_into_libs=yes
! 8896: ;;
! 8897:
! 8898: newsos6)
! 8899: version_type=linux
! 8900: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8901: shlibpath_var=LD_LIBRARY_PATH
! 8902: shlibpath_overrides_runpath=yes
! 8903: ;;
! 8904:
! 8905: nto-qnx)
! 8906: version_type=linux
! 8907: need_lib_prefix=no
! 8908: need_version=no
! 8909: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8910: soname_spec='${libname}${release}.so$major'
! 8911: shlibpath_var=LD_LIBRARY_PATH
! 8912: shlibpath_overrides_runpath=yes
! 8913: ;;
! 8914:
! 8915: openbsd*)
! 8916: version_type=sunos
! 8917: need_lib_prefix=no
! 8918: need_version=no
! 8919: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 8920: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 8921: shlibpath_var=LD_LIBRARY_PATH
! 8922: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8923: case $host_os in
! 8924: openbsd2.[89] | openbsd2.[89].*)
! 8925: shlibpath_overrides_runpath=no
! 8926: ;;
! 8927: *)
! 8928: shlibpath_overrides_runpath=yes
! 8929: ;;
! 8930: esac
! 8931: else
! 8932: shlibpath_overrides_runpath=yes
! 8933: fi
! 8934: ;;
! 8935:
! 8936: os2*)
! 8937: libname_spec='$name'
! 8938: need_lib_prefix=no
! 8939: library_names_spec='$libname.dll $libname.a'
! 8940: dynamic_linker='OS/2 ld.exe'
! 8941: shlibpath_var=LIBPATH
! 8942: ;;
! 8943:
! 8944: osf3* | osf4* | osf5*)
! 8945: version_type=osf
! 8946: need_lib_prefix=no
! 8947: need_version=no
! 8948: soname_spec='${libname}${release}.so'
! 8949: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 8950: shlibpath_var=LD_LIBRARY_PATH
! 8951: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 8952: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 8953: ;;
! 8954:
! 8955: sco3.2v5*)
! 8956: version_type=osf
! 8957: soname_spec='${libname}${release}.so$major'
! 8958: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8959: shlibpath_var=LD_LIBRARY_PATH
! 8960: ;;
! 8961:
! 8962: solaris*)
! 8963: version_type=linux
! 8964: need_lib_prefix=no
! 8965: need_version=no
! 8966: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8967: soname_spec='${libname}${release}.so$major'
! 8968: shlibpath_var=LD_LIBRARY_PATH
! 8969: shlibpath_overrides_runpath=yes
! 8970: hardcode_into_libs=yes
! 8971: # ldd complains unless libraries are executable
! 8972: postinstall_cmds='chmod +x $lib'
! 8973: ;;
! 8974:
! 8975: sunos4*)
! 8976: version_type=sunos
! 8977: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 8978: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 8979: shlibpath_var=LD_LIBRARY_PATH
! 8980: shlibpath_overrides_runpath=yes
! 8981: if test "$with_gnu_ld" = yes; then
! 8982: need_lib_prefix=no
! 8983: fi
! 8984: need_version=yes
! 8985: ;;
! 8986:
! 8987: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 8988: version_type=linux
! 8989: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 8990: soname_spec='${libname}${release}.so$major'
! 8991: shlibpath_var=LD_LIBRARY_PATH
! 8992: case $host_vendor in
! 8993: sni)
! 8994: shlibpath_overrides_runpath=no
! 8995: ;;
! 8996: motorola)
! 8997: need_lib_prefix=no
! 8998: need_version=no
! 8999: shlibpath_overrides_runpath=no
! 9000: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 9001: ;;
! 9002: esac
! 9003: ;;
! 9004:
! 9005: sysv4*MP*)
! 9006: if test -d /usr/nec ;then
! 9007: version_type=linux
! 9008: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
! 9009: soname_spec='$libname.so.$major'
! 9010: shlibpath_var=LD_LIBRARY_PATH
! 9011: fi
! 9012: ;;
! 9013:
! 9014: uts4*)
! 9015: version_type=linux
! 9016: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 9017: soname_spec='${libname}${release}.so$major'
! 9018: shlibpath_var=LD_LIBRARY_PATH
! 9019: ;;
! 9020:
! 9021: *)
! 9022: dynamic_linker=no
! 9023: ;;
! 9024: esac
! 9025: echo "$as_me:9025: result: $dynamic_linker" >&5
! 9026: echo "${ECHO_T}$dynamic_linker" >&6
! 9027: test "$dynamic_linker" = no && can_build_shared=no
! 9028:
! 9029: if test "x$enable_dlopen" != xyes; then
! 9030: enable_dlopen=unknown
! 9031: enable_dlopen_self=unknown
! 9032: enable_dlopen_self_static=unknown
! 9033: else
! 9034: lt_cv_dlopen=no
! 9035: lt_cv_dlopen_libs=
! 9036:
! 9037: case $host_os in
! 9038: beos*)
! 9039: lt_cv_dlopen="load_add_on"
! 9040: lt_cv_dlopen_libs=
! 9041: lt_cv_dlopen_self=yes
! 9042: ;;
! 9043:
! 9044: cygwin* | mingw* | pw32*)
! 9045: lt_cv_dlopen="LoadLibrary"
! 9046: lt_cv_dlopen_libs=
! 9047: ;;
! 9048:
! 9049: *)
! 9050: echo "$as_me:9050: checking for shl_load" >&5
! 9051: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 9052: if test "${ac_cv_func_shl_load+set}" = set; then
! 9053: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9054: else
! 9055: cat >conftest.$ac_ext <<_ACEOF
! 9056: #line 9056 "configure"
! 9057: #include "confdefs.h"
! 9058: /* System header to define __stub macros and hopefully few prototypes,
! 9059: which can conflict with char shl_load (); below. */
! 9060: #include <assert.h>
! 9061: /* Override any gcc2 internal prototype to avoid an error. */
! 9062: #ifdef __cplusplus
! 9063: extern "C"
! 9064: #endif
! 9065: /* We use char because int might match the return type of a gcc2
! 9066: builtin and then its argument prototype would still apply. */
! 9067: char shl_load ();
! 9068: char (*f) ();
! 9069:
! 9070: int
! 9071: main ()
! 9072: {
! 9073: /* The GNU C library defines this for functions which it implements
! 9074: to always fail with ENOSYS. Some functions are actually named
! 9075: something starting with __ and the normal name is an alias. */
! 9076: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 9077: choke me
! 9078: #else
! 9079: f = shl_load;
! 9080: #endif
! 9081:
! 9082: ;
! 9083: return 0;
! 9084: }
! 9085: _ACEOF
! 9086: rm -f conftest.$ac_objext conftest$ac_exeext
! 9087: if { (eval echo "$as_me:9087: \"$ac_link\"") >&5
! 9088: (eval $ac_link) 2>&5
! 9089: ac_status=$?
! 9090: echo "$as_me:9090: \$? = $ac_status" >&5
! 9091: (exit $ac_status); } &&
! 9092: { ac_try='test -s conftest$ac_exeext'
! 9093: { (eval echo "$as_me:9093: \"$ac_try\"") >&5
! 9094: (eval $ac_try) 2>&5
! 9095: ac_status=$?
! 9096: echo "$as_me:9096: \$? = $ac_status" >&5
! 9097: (exit $ac_status); }; }; then
! 9098: ac_cv_func_shl_load=yes
! 9099: else
! 9100: echo "$as_me: failed program was:" >&5
! 9101: cat conftest.$ac_ext >&5
! 9102: ac_cv_func_shl_load=no
! 9103: fi
! 9104: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9105: fi
! 9106: echo "$as_me:9106: result: $ac_cv_func_shl_load" >&5
! 9107: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 9108: if test $ac_cv_func_shl_load = yes; then
! 9109: lt_cv_dlopen="shl_load"
! 9110: else
! 9111: echo "$as_me:9111: checking for shl_load in -ldld" >&5
! 9112: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 9113: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 9114: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9115: else
! 9116: ac_check_lib_save_LIBS=$LIBS
! 9117: LIBS="-ldld $LIBS"
! 9118: cat >conftest.$ac_ext <<_ACEOF
! 9119: #line 9119 "configure"
! 9120: #include "confdefs.h"
! 9121:
! 9122: /* Override any gcc2 internal prototype to avoid an error. */
! 9123: #ifdef __cplusplus
! 9124: extern "C"
! 9125: #endif
! 9126: /* We use char because int might match the return type of a gcc2
! 9127: builtin and then its argument prototype would still apply. */
! 9128: char shl_load ();
! 9129: int
! 9130: main ()
! 9131: {
! 9132: shl_load ();
! 9133: ;
! 9134: return 0;
! 9135: }
! 9136: _ACEOF
! 9137: rm -f conftest.$ac_objext conftest$ac_exeext
! 9138: if { (eval echo "$as_me:9138: \"$ac_link\"") >&5
! 9139: (eval $ac_link) 2>&5
! 9140: ac_status=$?
! 9141: echo "$as_me:9141: \$? = $ac_status" >&5
! 9142: (exit $ac_status); } &&
! 9143: { ac_try='test -s conftest$ac_exeext'
! 9144: { (eval echo "$as_me:9144: \"$ac_try\"") >&5
! 9145: (eval $ac_try) 2>&5
! 9146: ac_status=$?
! 9147: echo "$as_me:9147: \$? = $ac_status" >&5
! 9148: (exit $ac_status); }; }; then
! 9149: ac_cv_lib_dld_shl_load=yes
! 9150: else
! 9151: echo "$as_me: failed program was:" >&5
! 9152: cat conftest.$ac_ext >&5
! 9153: ac_cv_lib_dld_shl_load=no
! 9154: fi
! 9155: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9156: LIBS=$ac_check_lib_save_LIBS
! 9157: fi
! 9158: echo "$as_me:9158: result: $ac_cv_lib_dld_shl_load" >&5
! 9159: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 9160: if test $ac_cv_lib_dld_shl_load = yes; then
! 9161: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 9162: else
! 9163: echo "$as_me:9163: checking for dlopen" >&5
! 9164: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 9165: if test "${ac_cv_func_dlopen+set}" = set; then
! 9166: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9167: else
! 9168: cat >conftest.$ac_ext <<_ACEOF
! 9169: #line 9169 "configure"
! 9170: #include "confdefs.h"
! 9171: /* System header to define __stub macros and hopefully few prototypes,
! 9172: which can conflict with char dlopen (); below. */
! 9173: #include <assert.h>
! 9174: /* Override any gcc2 internal prototype to avoid an error. */
! 9175: #ifdef __cplusplus
! 9176: extern "C"
! 9177: #endif
! 9178: /* We use char because int might match the return type of a gcc2
! 9179: builtin and then its argument prototype would still apply. */
! 9180: char dlopen ();
! 9181: char (*f) ();
! 9182:
! 9183: int
! 9184: main ()
! 9185: {
! 9186: /* The GNU C library defines this for functions which it implements
! 9187: to always fail with ENOSYS. Some functions are actually named
! 9188: something starting with __ and the normal name is an alias. */
! 9189: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 9190: choke me
! 9191: #else
! 9192: f = dlopen;
! 9193: #endif
! 9194:
! 9195: ;
! 9196: return 0;
! 9197: }
! 9198: _ACEOF
! 9199: rm -f conftest.$ac_objext conftest$ac_exeext
! 9200: if { (eval echo "$as_me:9200: \"$ac_link\"") >&5
! 9201: (eval $ac_link) 2>&5
! 9202: ac_status=$?
! 9203: echo "$as_me:9203: \$? = $ac_status" >&5
! 9204: (exit $ac_status); } &&
! 9205: { ac_try='test -s conftest$ac_exeext'
! 9206: { (eval echo "$as_me:9206: \"$ac_try\"") >&5
! 9207: (eval $ac_try) 2>&5
! 9208: ac_status=$?
! 9209: echo "$as_me:9209: \$? = $ac_status" >&5
! 9210: (exit $ac_status); }; }; then
! 9211: ac_cv_func_dlopen=yes
! 9212: else
! 9213: echo "$as_me: failed program was:" >&5
! 9214: cat conftest.$ac_ext >&5
! 9215: ac_cv_func_dlopen=no
! 9216: fi
! 9217: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9218: fi
! 9219: echo "$as_me:9219: result: $ac_cv_func_dlopen" >&5
! 9220: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 9221: if test $ac_cv_func_dlopen = yes; then
! 9222: lt_cv_dlopen="dlopen"
! 9223: else
! 9224: echo "$as_me:9224: checking for dlopen in -ldl" >&5
! 9225: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 9226: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9227: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9228: else
! 9229: ac_check_lib_save_LIBS=$LIBS
! 9230: LIBS="-ldl $LIBS"
! 9231: cat >conftest.$ac_ext <<_ACEOF
! 9232: #line 9232 "configure"
! 9233: #include "confdefs.h"
! 9234:
! 9235: /* Override any gcc2 internal prototype to avoid an error. */
! 9236: #ifdef __cplusplus
! 9237: extern "C"
! 9238: #endif
! 9239: /* We use char because int might match the return type of a gcc2
! 9240: builtin and then its argument prototype would still apply. */
! 9241: char dlopen ();
! 9242: int
! 9243: main ()
! 9244: {
! 9245: dlopen ();
! 9246: ;
! 9247: return 0;
! 9248: }
! 9249: _ACEOF
! 9250: rm -f conftest.$ac_objext conftest$ac_exeext
! 9251: if { (eval echo "$as_me:9251: \"$ac_link\"") >&5
! 9252: (eval $ac_link) 2>&5
! 9253: ac_status=$?
! 9254: echo "$as_me:9254: \$? = $ac_status" >&5
! 9255: (exit $ac_status); } &&
! 9256: { ac_try='test -s conftest$ac_exeext'
! 9257: { (eval echo "$as_me:9257: \"$ac_try\"") >&5
! 9258: (eval $ac_try) 2>&5
! 9259: ac_status=$?
! 9260: echo "$as_me:9260: \$? = $ac_status" >&5
! 9261: (exit $ac_status); }; }; then
! 9262: ac_cv_lib_dl_dlopen=yes
! 9263: else
! 9264: echo "$as_me: failed program was:" >&5
! 9265: cat conftest.$ac_ext >&5
! 9266: ac_cv_lib_dl_dlopen=no
! 9267: fi
! 9268: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9269: LIBS=$ac_check_lib_save_LIBS
! 9270: fi
! 9271: echo "$as_me:9271: result: $ac_cv_lib_dl_dlopen" >&5
! 9272: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 9273: if test $ac_cv_lib_dl_dlopen = yes; then
! 9274: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9275: else
! 9276: echo "$as_me:9276: checking for dlopen in -lsvld" >&5
! 9277: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 9278: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 9279: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9280: else
! 9281: ac_check_lib_save_LIBS=$LIBS
! 9282: LIBS="-lsvld $LIBS"
! 9283: cat >conftest.$ac_ext <<_ACEOF
! 9284: #line 9284 "configure"
! 9285: #include "confdefs.h"
! 9286:
! 9287: /* Override any gcc2 internal prototype to avoid an error. */
! 9288: #ifdef __cplusplus
! 9289: extern "C"
! 9290: #endif
! 9291: /* We use char because int might match the return type of a gcc2
! 9292: builtin and then its argument prototype would still apply. */
! 9293: char dlopen ();
! 9294: int
! 9295: main ()
! 9296: {
! 9297: dlopen ();
! 9298: ;
! 9299: return 0;
! 9300: }
! 9301: _ACEOF
! 9302: rm -f conftest.$ac_objext conftest$ac_exeext
! 9303: if { (eval echo "$as_me:9303: \"$ac_link\"") >&5
! 9304: (eval $ac_link) 2>&5
! 9305: ac_status=$?
! 9306: echo "$as_me:9306: \$? = $ac_status" >&5
! 9307: (exit $ac_status); } &&
! 9308: { ac_try='test -s conftest$ac_exeext'
! 9309: { (eval echo "$as_me:9309: \"$ac_try\"") >&5
! 9310: (eval $ac_try) 2>&5
! 9311: ac_status=$?
! 9312: echo "$as_me:9312: \$? = $ac_status" >&5
! 9313: (exit $ac_status); }; }; then
! 9314: ac_cv_lib_svld_dlopen=yes
! 9315: else
! 9316: echo "$as_me: failed program was:" >&5
! 9317: cat conftest.$ac_ext >&5
! 9318: ac_cv_lib_svld_dlopen=no
! 9319: fi
! 9320: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9321: LIBS=$ac_check_lib_save_LIBS
! 9322: fi
! 9323: echo "$as_me:9323: result: $ac_cv_lib_svld_dlopen" >&5
! 9324: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 9325: if test $ac_cv_lib_svld_dlopen = yes; then
! 9326: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 9327: else
! 9328: echo "$as_me:9328: checking for dld_link in -ldld" >&5
! 9329: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 9330: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 9331: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9332: else
! 9333: ac_check_lib_save_LIBS=$LIBS
! 9334: LIBS="-ldld $LIBS"
! 9335: cat >conftest.$ac_ext <<_ACEOF
! 9336: #line 9336 "configure"
! 9337: #include "confdefs.h"
! 9338:
! 9339: /* Override any gcc2 internal prototype to avoid an error. */
! 9340: #ifdef __cplusplus
! 9341: extern "C"
! 9342: #endif
! 9343: /* We use char because int might match the return type of a gcc2
! 9344: builtin and then its argument prototype would still apply. */
! 9345: char dld_link ();
! 9346: int
! 9347: main ()
! 9348: {
! 9349: dld_link ();
! 9350: ;
! 9351: return 0;
! 9352: }
! 9353: _ACEOF
! 9354: rm -f conftest.$ac_objext conftest$ac_exeext
! 9355: if { (eval echo "$as_me:9355: \"$ac_link\"") >&5
! 9356: (eval $ac_link) 2>&5
! 9357: ac_status=$?
! 9358: echo "$as_me:9358: \$? = $ac_status" >&5
! 9359: (exit $ac_status); } &&
! 9360: { ac_try='test -s conftest$ac_exeext'
! 9361: { (eval echo "$as_me:9361: \"$ac_try\"") >&5
! 9362: (eval $ac_try) 2>&5
! 9363: ac_status=$?
! 9364: echo "$as_me:9364: \$? = $ac_status" >&5
! 9365: (exit $ac_status); }; }; then
! 9366: ac_cv_lib_dld_dld_link=yes
! 9367: else
! 9368: echo "$as_me: failed program was:" >&5
! 9369: cat conftest.$ac_ext >&5
! 9370: ac_cv_lib_dld_dld_link=no
! 9371: fi
! 9372: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9373: LIBS=$ac_check_lib_save_LIBS
! 9374: fi
! 9375: echo "$as_me:9375: result: $ac_cv_lib_dld_dld_link" >&5
! 9376: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 9377: if test $ac_cv_lib_dld_dld_link = yes; then
! 9378: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 9379: fi
! 9380:
! 9381: fi
! 9382:
! 9383: fi
! 9384:
! 9385: fi
! 9386:
! 9387: fi
! 9388:
! 9389: fi
! 9390:
! 9391: ;;
! 9392: esac
! 9393:
! 9394: if test "x$lt_cv_dlopen" != xno; then
! 9395: enable_dlopen=yes
! 9396: else
! 9397: enable_dlopen=no
! 9398: fi
! 9399:
! 9400: case $lt_cv_dlopen in
! 9401: dlopen)
! 9402: save_CPPFLAGS="$CPPFLAGS"
! 9403: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 9404:
! 9405: save_LDFLAGS="$LDFLAGS"
! 9406: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 9407:
! 9408: save_LIBS="$LIBS"
! 9409: LIBS="$lt_cv_dlopen_libs $LIBS"
! 9410:
! 9411: echo "$as_me:9411: checking whether a program can dlopen itself" >&5
! 9412: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 9413: if test "${lt_cv_dlopen_self+set}" = set; then
! 9414: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9415: else
! 9416: if test "$cross_compiling" = yes; then :
! 9417: lt_cv_dlopen_self=cross
! 9418: else
! 9419: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9420: lt_status=$lt_dlunknown
! 9421: cat > conftest.$ac_ext <<EOF
! 9422: #line 9422 "configure"
! 9423: #include "confdefs.h"
! 9424:
! 9425: #if HAVE_DLFCN_H
! 9426: #include <dlfcn.h>
! 9427: #endif
! 9428:
! 9429: #include <stdio.h>
! 9430:
! 9431: #ifdef RTLD_GLOBAL
! 9432: # define LT_DLGLOBAL RTLD_GLOBAL
! 9433: #else
! 9434: # ifdef DL_GLOBAL
! 9435: # define LT_DLGLOBAL DL_GLOBAL
! 9436: # else
! 9437: # define LT_DLGLOBAL 0
! 9438: # endif
! 9439: #endif
! 9440:
! 9441: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9442: find out it does not work in some platform. */
! 9443: #ifndef LT_DLLAZY_OR_NOW
! 9444: # ifdef RTLD_LAZY
! 9445: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9446: # else
! 9447: # ifdef DL_LAZY
! 9448: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9449: # else
! 9450: # ifdef RTLD_NOW
! 9451: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9452: # else
! 9453: # ifdef DL_NOW
! 9454: # define LT_DLLAZY_OR_NOW DL_NOW
! 9455: # else
! 9456: # define LT_DLLAZY_OR_NOW 0
! 9457: # endif
! 9458: # endif
! 9459: # endif
! 9460: # endif
! 9461: #endif
! 9462:
! 9463: #ifdef __cplusplus
! 9464: extern "C" void exit (int);
! 9465: #endif
! 9466:
! 9467: void fnord() { int i=42;}
! 9468: int main ()
! 9469: {
! 9470: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 9471: int status = $lt_dlunknown;
! 9472:
! 9473: if (self)
! 9474: {
! 9475: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 9476: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 9477: /* dlclose (self); */
! 9478: }
! 9479:
! 9480: exit (status);
! 9481: }
! 9482: EOF
! 9483: if { (eval echo "$as_me:9483: \"$ac_link\"") >&5
! 9484: (eval $ac_link) 2>&5
! 9485: ac_status=$?
! 9486: echo "$as_me:9486: \$? = $ac_status" >&5
! 9487: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 9488: (./conftest; exit; ) 2>/dev/null
! 9489: lt_status=$?
! 9490: case x$lt_status in
! 9491: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 9492: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 9493: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 9494: esac
! 9495: else :
! 9496: # compilation failed
! 9497: lt_cv_dlopen_self=no
! 9498: fi
! 9499: fi
! 9500: rm -fr conftest*
! 9501:
! 9502: fi
! 9503: echo "$as_me:9503: result: $lt_cv_dlopen_self" >&5
! 9504: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 9505:
! 9506: if test "x$lt_cv_dlopen_self" = xyes; then
! 9507: LDFLAGS="$LDFLAGS $link_static_flag"
! 9508: echo "$as_me:9508: checking whether a statically linked program can dlopen itself" >&5
! 9509: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 9510: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 9511: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9512: else
! 9513: if test "$cross_compiling" = yes; then :
! 9514: lt_cv_dlopen_self_static=cross
! 9515: else
! 9516: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9517: lt_status=$lt_dlunknown
! 9518: cat > conftest.$ac_ext <<EOF
! 9519: #line 9519 "configure"
! 9520: #include "confdefs.h"
! 9521:
! 9522: #if HAVE_DLFCN_H
! 9523: #include <dlfcn.h>
! 9524: #endif
! 9525:
! 9526: #include <stdio.h>
! 9527:
! 9528: #ifdef RTLD_GLOBAL
! 9529: # define LT_DLGLOBAL RTLD_GLOBAL
! 9530: #else
! 9531: # ifdef DL_GLOBAL
! 9532: # define LT_DLGLOBAL DL_GLOBAL
! 9533: # else
! 9534: # define LT_DLGLOBAL 0
! 9535: # endif
! 9536: #endif
! 9537:
! 9538: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9539: find out it does not work in some platform. */
! 9540: #ifndef LT_DLLAZY_OR_NOW
! 9541: # ifdef RTLD_LAZY
! 9542: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9543: # else
! 9544: # ifdef DL_LAZY
! 9545: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9546: # else
! 9547: # ifdef RTLD_NOW
! 9548: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9549: # else
! 9550: # ifdef DL_NOW
! 9551: # define LT_DLLAZY_OR_NOW DL_NOW
! 9552: # else
! 9553: # define LT_DLLAZY_OR_NOW 0
! 9554: # endif
! 9555: # endif
! 9556: # endif
! 9557: # endif
! 9558: #endif
! 9559:
! 9560: #ifdef __cplusplus
! 9561: extern "C" void exit (int);
! 9562: #endif
! 9563:
! 9564: void fnord() { int i=42;}
! 9565: int main ()
! 9566: {
! 9567: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 9568: int status = $lt_dlunknown;
! 9569:
! 9570: if (self)
! 9571: {
! 9572: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 9573: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 9574: /* dlclose (self); */
! 9575: }
! 9576:
! 9577: exit (status);
! 9578: }
! 9579: EOF
! 9580: if { (eval echo "$as_me:9580: \"$ac_link\"") >&5
! 9581: (eval $ac_link) 2>&5
! 9582: ac_status=$?
! 9583: echo "$as_me:9583: \$? = $ac_status" >&5
! 9584: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 9585: (./conftest; exit; ) 2>/dev/null
! 9586: lt_status=$?
! 9587: case x$lt_status in
! 9588: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 9589: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 9590: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 9591: esac
! 9592: else :
! 9593: # compilation failed
! 9594: lt_cv_dlopen_self_static=no
! 9595: fi
! 9596: fi
! 9597: rm -fr conftest*
! 9598:
! 9599: fi
! 9600: echo "$as_me:9600: result: $lt_cv_dlopen_self_static" >&5
! 9601: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 9602: fi
! 9603:
! 9604: CPPFLAGS="$save_CPPFLAGS"
! 9605: LDFLAGS="$save_LDFLAGS"
! 9606: LIBS="$save_LIBS"
! 9607: ;;
! 9608: esac
! 9609:
! 9610: case $lt_cv_dlopen_self in
! 9611: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 9612: *) enable_dlopen_self=unknown ;;
! 9613: esac
! 9614:
! 9615: case $lt_cv_dlopen_self_static in
! 9616: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 9617: *) enable_dlopen_self_static=unknown ;;
! 9618: esac
! 9619: fi
! 9620:
! 9621: # Report which librarie types wil actually be built
! 9622: echo "$as_me:9622: checking if libtool supports shared libraries" >&5
! 9623: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 9624: echo "$as_me:9624: result: $can_build_shared" >&5
! 9625: echo "${ECHO_T}$can_build_shared" >&6
! 9626:
! 9627: echo "$as_me:9627: checking whether to build shared libraries" >&5
! 9628: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 9629: test "$can_build_shared" = "no" && enable_shared=no
! 9630:
! 9631: # On AIX, shared libraries and static libraries use the same namespace, and
! 9632: # are all built from PIC.
! 9633: case "$host_os" in
! 9634: aix3*)
! 9635: test "$enable_shared" = yes && enable_static=no
! 9636: if test -n "$RANLIB"; then
! 9637: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 9638: postinstall_cmds='$RANLIB $lib'
! 9639: fi
! 9640: ;;
! 9641:
! 9642: aix4*)
! 9643: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 9644: test "$enable_shared" = yes && enable_static=no
! 9645: fi
! 9646: ;;
! 9647: esac
! 9648: echo "$as_me:9648: result: $enable_shared" >&5
! 9649: echo "${ECHO_T}$enable_shared" >&6
! 9650:
! 9651: echo "$as_me:9651: checking whether to build static libraries" >&5
! 9652: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 9653: # Make sure either enable_shared or enable_static is yes.
! 9654: test "$enable_shared" = yes || enable_static=yes
! 9655: echo "$as_me:9655: result: $enable_static" >&5
! 9656: echo "${ECHO_T}$enable_static" >&6
! 9657:
! 9658: # The else clause should only fire when bootstrapping the
! 9659: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 9660: # with your package, and you will get complaints that there are
! 9661: # no rules to generate ltmain.sh.
! 9662: if test -f "$ltmain"; then
! 9663: # Now quote all the things that may contain metacharacters while being
! 9664: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 9665: # variables and quote the copies for generation of the libtool script.
! 9666: for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \
! 9667: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 9668: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 9669: deplibs_check_method reload_flag reload_cmds need_locks \
! 9670: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 9671: lt_cv_sys_global_symbol_to_c_name_address \
! 9672: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 9673: old_postinstall_cmds old_postuninstall_cmds \
! 9674: HOST_CC \
! 9675: compiler \
! 9676: CC \
! 9677: LD \
! 9678: lt_prog_compiler_wl \
! 9679: lt_prog_compiler_pic \
! 9680: lt_prog_compiler_static \
! 9681: lt_prog_compiler_no_builtin_flag \
! 9682: export_dynamic_flag_spec \
! 9683: thread_safe_flag_spec \
! 9684: whole_archive_flag_spec \
! 9685: old_archive_cmds \
! 9686: old_archive_from_new_cmds \
! 9687: predep_objects \
! 9688: postdep_objects \
! 9689: predeps \
! 9690: postdeps \
! 9691: compiler_lib_search_path \
! 9692: archive_cmds \
! 9693: archive_expsym_cmds \
! 9694: postinstall_cmds \
! 9695: postuninstall_cmds \
! 9696: old_archive_from_expsyms_cmds \
! 9697: allow_undefined_flag \
! 9698: no_undefined_flag \
! 9699: export_symbols_cmds \
! 9700: hardcode_libdir_flag_spec \
! 9701: hardcode_libdir_separator \
! 9702: lt_cv_prog_compiler_c_o \
! 9703: exclude_expsyms \
! 9704: include_expsyms; do
! 9705:
! 9706: case $var in
! 9707: old_archive_cmds | \
! 9708: old_archive_from_new_cmds | \
! 9709: archive_cmds | \
! 9710: archive_expsym_cmds | \
! 9711: old_archive_from_expsyms_cmds | \
! 9712: export_symbols_cmds | \
! 9713: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 9714: postinstall_cmds | postuninstall_cmds | \
! 9715: old_postinstall_cmds | old_postuninstall_cmds | \
! 9716: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 9717: # Double-quote double-evaled strings.
! 9718: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 9719: ;;
! 9720: *)
! 9721: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 9722: ;;
! 9723: esac
! 9724: done
! 9725:
! 9726: case $lt_echo in
! 9727: *'\$0 --fallback-echo"')
! 9728: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 9729: ;;
! 9730: esac
! 9731:
! 9732: cfgfile="${ofile}T"
! 9733: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
! 9734: $rm -f "$cfgfile"
! 9735: { echo "$as_me:9735: creating $ofile" >&5
! 9736: echo "$as_me: creating $ofile" >&6;}
! 9737:
! 9738: cat <<__EOF__ >> "$cfgfile"
! 9739: #! $SHELL
! 9740:
! 9741: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 9742: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 9743: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 9744: #
! 9745: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
! 9746: # Free Software Foundation, Inc.
! 9747: #
! 9748: # This file is part of GNU Libtool:
! 9749: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 9750: #
! 9751: # This program is free software; you can redistribute it and/or modify
! 9752: # it under the terms of the GNU General Public License as published by
! 9753: # the Free Software Foundation; either version 2 of the License, or
! 9754: # (at your option) any later version.
! 9755: #
! 9756: # This program is distributed in the hope that it will be useful, but
! 9757: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 9758: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 9759: # General Public License for more details.
! 9760: #
! 9761: # You should have received a copy of the GNU General Public License
! 9762: # along with this program; if not, write to the Free Software
! 9763: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 9764: #
! 9765: # As a special exception to the GNU General Public License, if you
! 9766: # distribute this file as part of a program that contains a
! 9767: # configuration script generated by Autoconf, you may include it under
! 9768: # the same distribution terms that you use for the rest of that program.
! 9769:
! 9770: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 9771: Xsed="sed -e s/^X//"
! 9772:
! 9773: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 9774: # if CDPATH is set.
! 9775: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 9776:
! 9777: # The names of the tagged configurations supported by this script.
! 9778: available_tags=
! 9779:
! 9780: # ### BEGIN LIBTOOL CONFIG
! 9781:
! 9782: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 9783:
! 9784: # Shell to use when invoking shell scripts.
! 9785: SHELL=$lt_SHELL
! 9786:
! 9787: # Whether or not to build shared libraries.
! 9788: build_libtool_libs=$enable_shared
! 9789:
! 9790: # Whether or not to build static libraries.
! 9791: build_old_libs=$enable_static
! 9792:
! 9793: # Whether or not to add -lc for building shared libraries.
! 9794: build_libtool_need_lc=$archive_cmds_need_lc
! 9795:
! 9796: # Whether or not to optimize for fast installation.
! 9797: fast_install=$enable_fast_install
! 9798:
! 9799: # The host system.
! 9800: host_alias=$host_alias
! 9801: host=$host
! 9802:
! 9803: # An echo program that does not interpret backslashes.
! 9804: echo=$lt_echo
! 9805:
! 9806: # The archiver.
! 9807: AR=$lt_AR
! 9808: AR_FLAGS=$lt_AR_FLAGS
! 9809:
! 9810: # A C compiler.
! 9811: LTCC=$lt_LTCC
! 9812:
! 9813: # A C compiler for the build system.
! 9814: HOST_CC=$lt_HOST_CC
! 9815:
! 9816: # A language-specific compiler.
! 9817: CC=$lt_compiler
! 9818:
! 9819: # Is the compiler the GNU C compiler?
! 9820: with_gcc=$GCC
! 9821:
! 9822: # The linker used to build libraries.
! 9823: LD=$lt_LD
! 9824:
! 9825: # Whether we need hard or soft links.
! 9826: LN_S=$lt_LN_S
! 9827:
! 9828: # A BSD-compatible nm program.
! 9829: NM=$lt_NM
! 9830:
! 9831: # A symbol stripping program
! 9832: STRIP=$STRIP
! 9833:
! 9834: # Used to examine libraries when file_magic_cmd begins "file"
! 9835: MAGIC_CMD=$MAGIC_CMD
! 9836:
! 9837: # Used on cygwin: DLL creation program.
! 9838: DLLTOOL="$DLLTOOL"
! 9839:
! 9840: # Used on cygwin: object dumper.
! 9841: OBJDUMP="$OBJDUMP"
! 9842:
! 9843: # Used on cygwin: assembler.
! 9844: AS="$AS"
! 9845:
! 9846: # The name of the directory that contains temporary libtool files.
! 9847: objdir=$objdir
! 9848:
! 9849: # How to create reloadable object files.
! 9850: reload_flag=$lt_reload_flag
! 9851: reload_cmds=$lt_reload_cmds
! 9852:
! 9853: # How to pass a linker flag through the compiler.
! 9854: wl=$lt_lt_prog_compiler_wl
! 9855:
! 9856: # Object file suffix (normally "o").
! 9857: objext="$ac_objext"
! 9858:
! 9859: # Old archive suffix (normally "a").
! 9860: libext="$libext"
! 9861:
! 9862: # Executable file suffix (normally "").
! 9863: exeext="$exeext"
! 9864:
! 9865: # Additional compiler flags for building library objects.
! 9866: pic_flag=$lt_lt_prog_compiler_pic
! 9867: pic_mode=$pic_mode
! 9868:
! 9869: # What is the maximum length of a command?
! 9870: max_cmd_len=$lt_cv_sys_max_cmd_len
! 9871:
! 9872: # Does compiler simultaneously support -c and -o options?
! 9873: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
! 9874:
! 9875: # Must we lock files when doing compilation ?
! 9876: need_locks=$lt_need_locks
! 9877:
! 9878: # Do we need the lib prefix for modules?
! 9879: need_lib_prefix=$need_lib_prefix
! 9880:
! 9881: # Do we need a version for libraries?
! 9882: need_version=$need_version
! 9883:
! 9884: # Whether dlopen is supported.
! 9885: dlopen_support=$enable_dlopen
! 9886:
! 9887: # Whether dlopen of programs is supported.
! 9888: dlopen_self=$enable_dlopen_self
! 9889:
! 9890: # Whether dlopen of statically linked programs is supported.
! 9891: dlopen_self_static=$enable_dlopen_self_static
! 9892:
! 9893: # Compiler flag to prevent dynamic linking.
! 9894: link_static_flag=$lt_lt_prog_compiler_static
! 9895:
! 9896: # Compiler flag to turn off builtin functions.
! 9897: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
! 9898:
! 9899: # Compiler flag to allow reflexive dlopens.
! 9900: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
! 9901:
! 9902: # Compiler flag to generate shared objects directly from archives.
! 9903: whole_archive_flag_spec=$lt_whole_archive_flag_spec
! 9904:
! 9905: # Compiler flag to generate thread-safe objects.
! 9906: thread_safe_flag_spec=$lt_thread_safe_flag_spec
! 9907:
! 9908: # Library versioning type.
! 9909: version_type=$version_type
! 9910:
! 9911: # Format of library name prefix.
! 9912: libname_spec=$lt_libname_spec
! 9913:
! 9914: # List of archive names. First name is the real one, the rest are links.
! 9915: # The last name is the one that the linker finds with -lNAME.
! 9916: library_names_spec=$lt_library_names_spec
! 9917:
! 9918: # The coded name of the library, if different from the real name.
! 9919: soname_spec=$lt_soname_spec
! 9920:
! 9921: # Commands used to build and install an old-style archive.
! 9922: RANLIB=$lt_RANLIB
! 9923: old_archive_cmds=$lt_old_archive_cmds
! 9924: old_postinstall_cmds=$lt_old_postinstall_cmds
! 9925: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 9926:
! 9927: # Create an old-style archive from a shared archive.
! 9928: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
! 9929:
! 9930: # Create a temporary old-style archive to link instead of a shared archive.
! 9931: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
! 9932:
! 9933: # Commands used to build and install a shared archive.
! 9934: archive_cmds=$lt_archive_cmds
! 9935: archive_expsym_cmds=$lt_archive_expsym_cmds
! 9936: postinstall_cmds=$lt_postinstall_cmds
! 9937: postuninstall_cmds=$lt_postuninstall_cmds
! 9938:
! 9939: # Commands to strip libraries.
! 9940: old_striplib=$lt_old_striplib
! 9941: striplib=$lt_striplib
! 9942:
! 9943: # Dependencies to place before the objects being linked to create a
! 9944: # shared library.
! 9945: predep_objects=$lt_predep_objects
! 9946:
! 9947: # Dependencies to place after the objects being linked to create a
! 9948: # shared library.
! 9949: postdep_objects=$lt_postdep_objects
! 9950:
! 9951: # Dependencies to place before the objects being linked to create a
! 9952: # shared library.
! 9953: predeps=$lt_predeps
! 9954:
! 9955: # Dependencies to place after the objects being linked to create a
! 9956: # shared library.
! 9957: postdeps=$lt_postdeps
! 9958:
! 9959: # The library search path used internally by the compiler when linking
! 9960: # a shared library.
! 9961: compiler_lib_search_path=$lt_compiler_lib_search_path
! 9962:
! 9963: # Method to check whether dependent libraries are shared objects.
! 9964: deplibs_check_method=$lt_deplibs_check_method
! 9965:
! 9966: # Command to use when deplibs_check_method == file_magic.
! 9967: file_magic_cmd=$lt_file_magic_cmd
! 9968:
! 9969: # Flag that allows shared libraries with undefined symbols to be built.
! 9970: allow_undefined_flag=$lt_allow_undefined_flag
! 9971:
! 9972: # Flag that forces no undefined symbols.
! 9973: no_undefined_flag=$lt_no_undefined_flag
! 9974:
! 9975: # Commands used to finish a libtool library installation in a directory.
! 9976: finish_cmds=$lt_finish_cmds
! 9977:
! 9978: # Same as above, but a single script fragment to be evaled but not shown.
! 9979: finish_eval=$lt_finish_eval
! 9980:
! 9981: # Take the output of nm and produce a listing of raw symbols and C names.
! 9982: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 9983:
! 9984: # Transform the output of nm in a proper C declaration
! 9985: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 9986:
! 9987: # Transform the output of nm in a C name address pair
! 9988: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 9989:
! 9990: # This is the shared library runtime path variable.
! 9991: runpath_var=$runpath_var
! 9992:
! 9993: # This is the shared library path variable.
! 9994: shlibpath_var=$shlibpath_var
! 9995:
! 9996: # Is shlibpath searched before the hard-coded library search path?
! 9997: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 9998:
! 9999: # How to hardcode a shared library path into an executable.
! 10000: hardcode_action=$hardcode_action
! 10001:
! 10002: # Whether we should hardcode library paths into libraries.
! 10003: hardcode_into_libs=$hardcode_into_libs
! 10004:
! 10005: # Flag to hardcode \$libdir into a binary during linking.
! 10006: # This must work even if \$libdir does not exist.
! 10007: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
! 10008:
! 10009: # Whether we need a single -rpath flag with a separated argument.
! 10010: hardcode_libdir_separator=$lt_hardcode_libdir_separator
! 10011:
! 10012: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 10013: # resulting binary.
! 10014: hardcode_direct=$hardcode_direct
! 10015:
! 10016: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 10017: # resulting binary.
! 10018: hardcode_minus_L=$hardcode_minus_L
! 10019:
! 10020: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 10021: # the resulting binary.
! 10022: hardcode_shlibpath_var=$hardcode_shlibpath_var
! 10023:
! 10024: # Variables whose values should be saved in libtool wrapper scripts and
! 10025: # restored at relink time.
! 10026: variables_saved_for_relink="$variables_saved_for_relink"
! 10027:
! 10028: # Whether libtool must link a program against all its dependency libraries.
! 10029: link_all_deplibs=$link_all_deplibs
! 10030:
! 10031: # Compile-time system search path for libraries
! 10032: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 10033:
! 10034: # Run-time system search path for libraries
! 10035: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 10036:
! 10037: # Fix the shell variable \$srcfile for the compiler.
! 10038: fix_srcfile_path="$fix_srcfile_path"
! 10039:
! 10040: # Set to yes if exported symbols are required.
! 10041: always_export_symbols=$always_export_symbols
! 10042:
! 10043: # The commands to list exported symbols.
! 10044: export_symbols_cmds=$lt_export_symbols_cmds
! 10045:
! 10046: # The commands to extract the exported symbol list from a shared archive.
! 10047: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 10048:
! 10049: # Symbols that should not be listed in the preloaded symbols.
! 10050: exclude_expsyms=$lt_exclude_expsyms
! 10051:
! 10052: # Symbols that must always be exported.
! 10053: include_expsyms=$lt_include_expsyms
! 10054:
! 10055: # ### END LIBTOOL CONFIG
! 10056:
! 10057: __EOF__
! 10058:
! 10059: case $host_os in
! 10060: aix3*)
! 10061: cat <<\EOF >> "$cfgfile"
! 10062:
! 10063: # AIX sometimes has problems with the GCC collect2 program. For some
! 10064: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 10065: # vanish in a puff of smoke.
! 10066: if test "X${COLLECT_NAMES+set}" != Xset; then
! 10067: COLLECT_NAMES=
! 10068: export COLLECT_NAMES
! 10069: fi
! 10070: EOF
! 10071: ;;
! 10072:
! 10073: cygwin* | mingw* | pw32* | os2*)
! 10074: cat <<'EOF' >> "$cfgfile"
! 10075: # This is a source program that is used to create dlls on Windows
! 10076: # Don't remove nor modify the starting and closing comments
! 10077:
! 10078: # /* ltdll.c starts here */
! 10079: # #define WIN32_LEAN_AND_MEAN
! 10080: # #include <windows.h>
! 10081: # #undef WIN32_LEAN_AND_MEAN
! 10082: # #include <stdio.h>
! 10083: #
! 10084: # #ifndef __CYGWIN__
! 10085: # # ifdef __CYGWIN32__
! 10086: # # define __CYGWIN__ __CYGWIN32__
! 10087: # # endif
! 10088: # #endif
! 10089: #
! 10090: # #ifdef __cplusplus
! 10091: # extern "C" {
! 10092: # #endif
! 10093: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
! 10094: # #ifdef __cplusplus
! 10095: # }
! 10096: # #endif
! 10097: #
! 10098: # #ifdef __CYGWIN__
! 10099: # #include <cygwin/cygwin_dll.h>
! 10100: # DECLARE_CYGWIN_DLL( DllMain );
! 10101: # #endif
! 10102: # HINSTANCE __hDllInstance_base;
! 10103: #
! 10104: # BOOL APIENTRY
! 10105: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
! 10106: # {
! 10107: # __hDllInstance_base = hInst;
! 10108: # return TRUE;
! 10109: # }
! 10110: # /* ltdll.c ends here */
! 10111:
! 10112: # This is a source program that is used to create import libraries
! 10113: # on Windows for dlls which lack them. Don't remove nor modify the
! 10114: # starting and closing comments
! 10115:
! 10116: # /* impgen.c starts here */
! 10117: # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
! 10118: #
! 10119: # This file is part of GNU libtool.
! 10120: #
! 10121: # This program is free software; you can redistribute it and/or modify
! 10122: # it under the terms of the GNU General Public License as published by
! 10123: # the Free Software Foundation; either version 2 of the License, or
! 10124: # (at your option) any later version.
! 10125: #
! 10126: # This program is distributed in the hope that it will be useful,
! 10127: # but WITHOUT ANY WARRANTY; without even the implied warranty of
! 10128: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 10129: # GNU General Public License for more details.
! 10130: #
! 10131: # You should have received a copy of the GNU General Public License
! 10132: # along with this program; if not, write to the Free Software
! 10133: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 10134: # */
! 10135: #
! 10136: # #include <stdio.h> /* for printf() */
! 10137: # #include <unistd.h> /* for open(), lseek(), read() */
! 10138: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
! 10139: # #include <string.h> /* for strdup() */
! 10140: #
! 10141: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
! 10142: # #ifndef O_BINARY
! 10143: # #define O_BINARY 0
! 10144: # #endif
! 10145: #
! 10146: # static unsigned int
! 10147: # pe_get16 (fd, offset)
! 10148: # int fd;
! 10149: # int offset;
! 10150: # {
! 10151: # unsigned char b[2];
! 10152: # lseek (fd, offset, SEEK_SET);
! 10153: # read (fd, b, 2);
! 10154: # return b[0] + (b[1]<<8);
! 10155: # }
! 10156: #
! 10157: # static unsigned int
! 10158: # pe_get32 (fd, offset)
! 10159: # int fd;
! 10160: # int offset;
! 10161: # {
! 10162: # unsigned char b[4];
! 10163: # lseek (fd, offset, SEEK_SET);
! 10164: # read (fd, b, 4);
! 10165: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 10166: # }
! 10167: #
! 10168: # static unsigned int
! 10169: # pe_as32 (ptr)
! 10170: # void *ptr;
! 10171: # {
! 10172: # unsigned char *b = ptr;
! 10173: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
! 10174: # }
! 10175: #
! 10176: # int
! 10177: # main (argc, argv)
! 10178: # int argc;
! 10179: # char *argv[];
! 10180: # {
! 10181: # int dll;
! 10182: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
! 10183: # unsigned long export_rva, export_size, nsections, secptr, expptr;
! 10184: # unsigned long name_rvas, nexp;
! 10185: # unsigned char *expdata, *erva;
! 10186: # char *filename, *dll_name;
! 10187: #
! 10188: # filename = argv[1];
! 10189: #
! 10190: # dll = open(filename, O_RDONLY|O_BINARY);
! 10191: # if (dll < 1)
! 10192: # return 1;
! 10193: #
! 10194: # dll_name = filename;
! 10195: #
! 10196: # for (i=0; filename[i]; i++)
! 10197: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
! 10198: # dll_name = filename + i +1;
! 10199: #
! 10200: # pe_header_offset = pe_get32 (dll, 0x3c);
! 10201: # opthdr_ofs = pe_header_offset + 4 + 20;
! 10202: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
! 10203: #
! 10204: # if (num_entries < 1) /* no exports */
! 10205: # return 1;
! 10206: #
! 10207: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
! 10208: # export_size = pe_get32 (dll, opthdr_ofs + 100);
! 10209: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
! 10210: # secptr = (pe_header_offset + 4 + 20 +
! 10211: # pe_get16 (dll, pe_header_offset + 4 + 16));
! 10212: #
! 10213: # expptr = 0;
! 10214: # for (i = 0; i < nsections; i++)
! 10215: # {
! 10216: # char sname[8];
! 10217: # unsigned long secptr1 = secptr + 40 * i;
! 10218: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
! 10219: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
! 10220: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
! 10221: # lseek(dll, secptr1, SEEK_SET);
! 10222: # read(dll, sname, 8);
! 10223: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
! 10224: # {
! 10225: # expptr = fptr + (export_rva - vaddr);
! 10226: # if (export_rva + export_size > vaddr + vsize)
! 10227: # export_size = vsize - (export_rva - vaddr);
! 10228: # break;
! 10229: # }
! 10230: # }
! 10231: #
! 10232: # expdata = (unsigned char*)malloc(export_size);
! 10233: # lseek (dll, expptr, SEEK_SET);
! 10234: # read (dll, expdata, export_size);
! 10235: # erva = expdata - export_rva;
! 10236: #
! 10237: # nexp = pe_as32 (expdata+24);
! 10238: # name_rvas = pe_as32 (expdata+32);
! 10239: #
! 10240: # printf ("EXPORTS\n");
! 10241: # for (i = 0; i<nexp; i++)
! 10242: # {
! 10243: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
! 10244: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
! 10245: # }
! 10246: #
! 10247: # return 0;
! 10248: # }
! 10249: # /* impgen.c ends here */
! 10250:
! 10251: EOF
! 10252: ;;
! 10253: esac
! 10254:
! 10255: # We use sed instead of cat because bash on DJGPP gets confused if
! 10256: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 10257: # text mode, it properly converts lines to CR/LF. This bash problem
! 10258: # is reportedly fixed, but why not run on old versions too?
! 10259: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
! 10260:
! 10261: mv -f "$cfgfile" "$ofile" || \
! 10262: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
! 10263: chmod +x "$ofile"
! 10264:
! 10265: else
! 10266: # If there is no Makefile yet, we rely on a make rule to execute
! 10267: # `config.status --recheck' to rerun these tests and create the
! 10268: # libtool script then.
! 10269: test -f Makefile && make "$ltmain"
! 10270: fi
! 10271:
! 10272: ac_ext=c
! 10273: ac_cpp='$CPP $CPPFLAGS'
! 10274: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10275: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10276: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 10277:
! 10278: CC="$lt_save_CC"
! 10279:
! 10280: # Check whether --with-tags or --without-tags was given.
! 10281: if test "${with_tags+set}" = set; then
! 10282: withval="$with_tags"
! 10283: tagnames="$withval"
! 10284: else
! 10285: tagnames="CXX,GCJ"
! 10286: case $host_os in
! 10287: mingw*|cygwin*) tagnames="$tagnames,RC" ;;
! 10288: esac
! 10289: fi;
! 10290:
! 10291: if test -f "$ltmain" && test -n "$tagnames"; then
! 10292: if test ! -f "${ofile}"; then
! 10293: { echo "$as_me:10293: WARNING: output file \`$ofile' does not exist" >&5
! 10294: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
! 10295: fi
! 10296:
! 10297: if test -z "$LTCC"; then
! 10298: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
! 10299: if test -z "$LTCC"; then
! 10300: { echo "$as_me:10300: WARNING: output file \`$ofile' does not look like a libtool script" >&5
! 10301: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
! 10302: else
! 10303: { echo "$as_me:10303: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
! 10304: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
! 10305: fi
! 10306: fi
! 10307:
! 10308: # Extract list of available tagged configurations in $ofile.
! 10309: # Note that this assumes the entire list is on one line.
! 10310: available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
! 10311:
! 10312: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 10313: for tagname in $tagnames; do
! 10314: IFS="$lt_save_ifs"
! 10315: # Check whether tagname contains only valid characters
! 10316: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
! 10317: "") ;;
! 10318: *) { { echo "$as_me:10318: error: invalid tag name: $tagname" >&5
! 10319: echo "$as_me: error: invalid tag name: $tagname" >&2;}
! 10320: { (exit 1); exit 1; }; }
! 10321: ;;
! 10322: esac
! 10323:
! 10324: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
! 10325: then
! 10326: { { echo "$as_me:10326: error: tag name \"$tagname\" already exists" >&5
! 10327: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
! 10328: { (exit 1); exit 1; }; }
! 10329: fi
! 10330:
! 10331: # Update the list of available tags.
! 10332: if test -n "$tagname"; then
! 10333: echo appending configuration tag \"$tagname\" to $ofile
! 10334:
! 10335: case $tagname in
! 10336: CXX)
! 10337: ac_ext=cc
! 10338: ac_cpp='$CXXCPP $CPPFLAGS'
! 10339: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10340: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10341: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 10342:
! 10343: archive_cmds_need_lc_CXX=no
! 10344: allow_undefined_flag_CXX=
! 10345: always_export_symbols_CXX=no
! 10346: archive_expsym_cmds_CXX=
! 10347: export_dynamic_flag_spec_CXX=
! 10348: hardcode_direct_CXX=no
! 10349: hardcode_libdir_flag_spec_CXX=
! 10350: hardcode_libdir_separator_CXX=
! 10351: hardcode_minus_L_CXX=no
! 10352: link_all_deplibs_CXX=unknown
! 10353: old_archive_cmds_CXX=$old_archive_cmds
! 10354: no_undefined_flag_CXX=
! 10355: whole_archive_flag_spec_CXX=
! 10356:
! 10357: # Dependencies to place before and after the object being linked:
! 10358: predep_objects_CXX=
! 10359: postdep_objects_CXX=
! 10360: predeps_CXX=
! 10361: postdeps_CXX=
! 10362: compiler_lib_search_path_CXX=
! 10363:
! 10364: # Source file extension for C test sources.
! 10365: ac_ext=cc
! 10366:
! 10367: # Object file extension for compiled C test sources.
! 10368: objext=o
! 10369: objext_CXX=$objext
! 10370:
! 10371: # Code to be used in simple compile tests
! 10372: lt_simple_compile_test_code="int some_variable = 0;"
! 10373:
! 10374: # Code to be used in simple link tests
! 10375: lt_simple_link_test_code='int main(int char *) { return(0); }'
! 10376:
! 10377: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 10378:
! 10379: # If no C compiler was specified, use CC.
! 10380: LTCC=${LTCC-"$CC"}
! 10381:
! 10382: # Allow CC to be a program name with arguments.
! 10383: set dummy $CC
! 10384: compiler="$2"
! 10385:
! 10386: # Allow CC to be a program name with arguments.
! 10387: lt_save_CC="$CC"
! 10388: CC=${CXX-"c++"}
! 10389: set dummy $CC
! 10390: compiler="$2"
! 10391: compiler_CXX=$CC
! 10392: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
! 10393:
! 10394: # We don't want -fno-exception wen compiling C++ code, so set the
! 10395: # no_builtin_flag separately
! 10396: if test "$GXX" = yes; then
! 10397: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
! 10398: else
! 10399: lt_prog_compiler_no_builtin_flag_CXX=
! 10400: fi
! 10401:
! 10402: if test "$GXX" = yes; then
! 10403: # Set up default GNU C++ configuration
! 10404:
! 10405: # Check if GNU C++ uses GNU ld as the underlying linker, since the
! 10406: # archiving commands below assume that GNU ld is being used.
! 10407: if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
! 10408: egrep 'GNU ld' > /dev/null; then
! 10409: with_gnu_ld=yes
! 10410:
! 10411: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 10412: 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'
! 10413:
! 10414: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 10415: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 10416:
! 10417: # If archive_cmds runs LD, not CC, wlarc should be empty
! 10418: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
! 10419: # investigate it a little bit more. (MM)
! 10420: wlarc='${wl}'
! 10421:
! 10422: # ancient GNU ld didn't support --whole-archive et. al.
! 10423: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
! 10424: egrep 'no-whole-archive' > /dev/null; then
! 10425: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 10426: else
! 10427: whole_archive_flag_spec_CXX=
! 10428: fi
! 10429: else
! 10430: with_gnu_ld=no
! 10431: wlarc=
! 10432:
! 10433: # A generic and very simple default shared library creation
! 10434: # command for GNU C++ for the case where it uses the native
! 10435: # linker, instead of GNU ld. If possible, this setting should
! 10436: # overridden to take advantage of the native linker features on
! 10437: # the platform it is being used on.
! 10438: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 10439: fi
! 10440:
! 10441: # Commands to make compiler produce verbose output that lists
! 10442: # what "hidden" libraries, object files and flags are used when
! 10443: # linking a shared library.
! 10444: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
! 10445:
! 10446: else
! 10447: GXX=no
! 10448: with_gnu_ld=no
! 10449: wlarc=
! 10450: fi
! 10451:
! 10452: # PORTME: fill in a description of your system's C++ link characteristics
! 10453: echo "$as_me:10453: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 10454: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 10455: ld_shlibs_CXX=yes
! 10456: case $host_os in
! 10457: aix3*)
! 10458: # FIXME: insert proper C++ library support
! 10459: ld_shlibs_CXX=no
! 10460: ;;
! 10461: aix4* | aix5*)
! 10462: if test "$host_cpu" = ia64; then
! 10463: # On IA64, the linker does run time linking by default, so we don't
! 10464: # have to do anything special.
! 10465: aix_use_runtimelinking=no
! 10466: exp_sym_flag='-Bexport'
! 10467: no_entry_flag=""
! 10468: else
! 10469: aix_use_runtimelinking=no
! 10470:
! 10471: # Test if we are trying to use run time linking or normal
! 10472: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 10473: # need to do runtime linking.
! 10474: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 10475: for ld_flag in $LDFLAGS; do
! 10476: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 10477: aix_use_runtimelinking=yes
! 10478: break
! 10479: fi
! 10480: done
! 10481: esac
! 10482:
! 10483: exp_sym_flag='-bexport'
! 10484: no_entry_flag='-bnoentry'
! 10485: fi
! 10486:
! 10487: # When large executables or shared objects are built, AIX ld can
! 10488: # have problems creating the table of contents. If linking a library
! 10489: # or program results in "error TOC overflow" add -mminimal-toc to
! 10490: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 10491: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 10492:
! 10493: archive_cmds_CXX=''
! 10494: hardcode_direct_CXX=yes
! 10495: hardcode_libdir_separator_CXX=':'
! 10496: link_all_deplibs_CXX=yes
! 10497:
! 10498: if test "$GXX" = yes; then
! 10499: case $host_os in aix4.012|aix4.012.*)
! 10500: # We only want to do this on AIX 4.2 and lower, the check
! 10501: # below for broken collect2 doesn't work under 4.3+
! 10502: collect2name=`${CC} -print-prog-name=collect2`
! 10503: if test -f "$collect2name" && \
! 10504: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 10505: then
! 10506: # We have reworked collect2
! 10507: hardcode_direct_CXX=yes
! 10508: else
! 10509: # We have old collect2
! 10510: hardcode_direct_CXX=unsupported
! 10511: # It fails to find uninstalled libraries when the uninstalled
! 10512: # path is not listed in the libpath. Setting hardcode_minus_L
! 10513: # to unsupported forces relinking
! 10514: hardcode_minus_L_CXX=yes
! 10515: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 10516: hardcode_libdir_separator_CXX=
! 10517: fi
! 10518: esac
! 10519: shared_flag='-shared'
! 10520: else
! 10521: # not using gcc
! 10522: if test "$host_cpu" = ia64; then
! 10523: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 10524: # chokes on -Wl,-G. The following line is correct:
! 10525: shared_flag='-G'
! 10526: else
! 10527: if test "$aix_use_runtimelinking" = yes; then
! 10528: shared_flag='${wl}-G'
! 10529: else
! 10530: shared_flag='${wl}-bM:SRE'
! 10531: fi
! 10532: fi
! 10533: fi
! 10534:
! 10535: # It seems that -bexpall does not export symbols beginning with
! 10536: # underscore (_), so it is better to generate a list of symbols to export.
! 10537: always_export_symbols_CXX=yes
! 10538: if test "$aix_use_runtimelinking" = yes; then
! 10539: # Warning - without using the other runtime loading flags (-brtl),
! 10540: # -berok will link without error, but may produce a broken library.
! 10541: allow_undefined_flag_CXX='-berok'
! 10542: # Determine the default libpath from the value encoded in an empty executable.
! 10543: cat >conftest.$ac_ext <<_ACEOF
! 10544: #line 10544 "configure"
! 10545: #include "confdefs.h"
! 10546:
! 10547: int
! 10548: main ()
! 10549: {
! 10550:
! 10551: ;
! 10552: return 0;
! 10553: }
! 10554: _ACEOF
! 10555: rm -f conftest.$ac_objext conftest$ac_exeext
! 10556: if { (eval echo "$as_me:10556: \"$ac_link\"") >&5
! 10557: (eval $ac_link) 2>&5
! 10558: ac_status=$?
! 10559: echo "$as_me:10559: \$? = $ac_status" >&5
! 10560: (exit $ac_status); } &&
! 10561: { ac_try='test -s conftest$ac_exeext'
! 10562: { (eval echo "$as_me:10562: \"$ac_try\"") >&5
! 10563: (eval $ac_try) 2>&5
! 10564: ac_status=$?
! 10565: echo "$as_me:10565: \$? = $ac_status" >&5
! 10566: (exit $ac_status); }; }; then
! 10567:
! 10568: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 10569: }'`
! 10570: # Check for a 64-bit object if we didn't find anything.
! 10571: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 10572: }'`; fi
! 10573: else
! 10574: echo "$as_me: failed program was:" >&5
! 10575: cat conftest.$ac_ext >&5
! 10576: fi
! 10577: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10578: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 10579:
! 10580: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 10581:
! 10582: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 10583: else
! 10584: if test "$host_cpu" = ia64; then
! 10585: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
! 10586: allow_undefined_flag_CXX="-z nodefs"
! 10587: 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"
! 10588: else
! 10589: # Determine the default libpath from the value encoded in an empty executable.
! 10590: cat >conftest.$ac_ext <<_ACEOF
! 10591: #line 10591 "configure"
! 10592: #include "confdefs.h"
! 10593:
! 10594: int
! 10595: main ()
! 10596: {
! 10597:
! 10598: ;
! 10599: return 0;
! 10600: }
! 10601: _ACEOF
! 10602: rm -f conftest.$ac_objext conftest$ac_exeext
! 10603: if { (eval echo "$as_me:10603: \"$ac_link\"") >&5
! 10604: (eval $ac_link) 2>&5
! 10605: ac_status=$?
! 10606: echo "$as_me:10606: \$? = $ac_status" >&5
! 10607: (exit $ac_status); } &&
! 10608: { ac_try='test -s conftest$ac_exeext'
! 10609: { (eval echo "$as_me:10609: \"$ac_try\"") >&5
! 10610: (eval $ac_try) 2>&5
! 10611: ac_status=$?
! 10612: echo "$as_me:10612: \$? = $ac_status" >&5
! 10613: (exit $ac_status); }; }; then
! 10614:
! 10615: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 10616: }'`
! 10617: # Check for a 64-bit object if we didn't find anything.
! 10618: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 10619: }'`; fi
! 10620: else
! 10621: echo "$as_me: failed program was:" >&5
! 10622: cat conftest.$ac_ext >&5
! 10623: fi
! 10624: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 10625: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 10626:
! 10627: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 10628: # Warning - without using the other run time loading flags,
! 10629: # -berok will link without error, but may produce a broken library.
! 10630: no_undefined_flag_CXX=' ${wl}-bernotok'
! 10631: allow_undefined_flag_CXX=' ${wl}-berok'
! 10632: # -bexpall does not export symbols beginning with underscore (_)
! 10633: always_export_symbols_CXX=yes
! 10634: # Exported symbols can be pulled into shared objects from archives
! 10635: whole_archive_flag_spec_CXX=' '
! 10636: archive_cmds_need_lc_CXX=yes
! 10637: # This is similar to how AIX traditionally builds it's shared libraries.
! 10638: 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'
! 10639: fi
! 10640: fi
! 10641: ;;
! 10642: chorus*)
! 10643: case $cc_basename in
! 10644: *)
! 10645: # FIXME: insert proper C++ library support
! 10646: ld_shlibs_CXX=no
! 10647: ;;
! 10648: esac
! 10649: ;;
! 10650: dgux*)
! 10651: case $cc_basename in
! 10652: ec++)
! 10653: # FIXME: insert proper C++ library support
! 10654: ld_shlibs_CXX=no
! 10655: ;;
! 10656: ghcx)
! 10657: # Green Hills C++ Compiler
! 10658: # FIXME: insert proper C++ library support
! 10659: ld_shlibs_CXX=no
! 10660: ;;
! 10661: *)
! 10662: # FIXME: insert proper C++ library support
! 10663: ld_shlibs_CXX=no
! 10664: ;;
! 10665: esac
! 10666: ;;
! 10667: freebsd12*)
! 10668: # C++ shared libraries reported to be fairly broken before switch to ELF
! 10669: ld_shlibs_CXX=no
! 10670: ;;
! 10671: freebsd-elf*)
! 10672: archive_cmds_need_lc_CXX=no
! 10673: ;;
! 10674: freebsd*)
! 10675: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
! 10676: # conventions
! 10677: ld_shlibs_CXX=yes
! 10678: ;;
! 10679: gnu*)
! 10680: ;;
! 10681: hpux*)
! 10682: if test $with_gnu_ld = no; then
! 10683: if test "$host_cpu" = ia64; then
! 10684: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 10685: else
! 10686: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 10687: hardcode_libdir_separator_CXX=:
! 10688: export_dynamic_flag_spec_CXX='${wl}-E'
! 10689: fi
! 10690: fi
! 10691: if test "$host_cpu" = ia64; then
! 10692: hardcode_direct_CXX=no
! 10693: hardcode_shlibpath_var_CXX=no
! 10694: else
! 10695: hardcode_direct_CXX=yes
! 10696: fi
! 10697: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 10698: # but as the default
! 10699: # location of the library.
! 10700:
! 10701: case $cc_basename in
! 10702: CC)
! 10703: # FIXME: insert proper C++ library support
! 10704: ld_shlibs_CXX=no
! 10705: ;;
! 10706: aCC)
! 10707: case $host_os in
! 10708: hpux9*)
! 10709: 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'
! 10710: ;;
! 10711: *)
! 10712: if test "$host_cpu" = ia64; then
! 10713: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
! 10714: else
! 10715: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 10716: fi
! 10717: ;;
! 10718: esac
! 10719: # Commands to make compiler produce verbose output that lists
! 10720: # what "hidden" libraries, object files and flags are used when
! 10721: # linking a shared library.
! 10722: #
! 10723: # There doesn't appear to be a way to prevent this compiler from
! 10724: # explicitly linking system object files so we need to strip them
! 10725: # from the output so that they don't get included in the library
! 10726: # dependencies.
! 10727: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 10728: ;;
! 10729: *)
! 10730: if test "$GXX" = yes; then
! 10731: if test $with_gnu_ld = no; then
! 10732: case $host_os in
! 10733: hpux9*)
! 10734: 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'
! 10735: ;;
! 10736: *)
! 10737: if test "$host_cpu" = ia64; then
! 10738: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
! 10739: else
! 10740: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 10741: fi
! 10742: ;;
! 10743: esac
! 10744: fi
! 10745: else
! 10746: # FIXME: insert proper C++ library support
! 10747: ld_shlibs_CXX=no
! 10748: fi
! 10749: ;;
! 10750: esac
! 10751: ;;
! 10752: irix5* | irix6*)
! 10753: case $cc_basename in
! 10754: CC)
! 10755: # SGI C++
! 10756: 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'
! 10757:
! 10758: # Archives containing C++ object files must be created using
! 10759: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
! 10760: # necessary to make sure instantiated templates are included
! 10761: # in the archive.
! 10762: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
! 10763: ;;
! 10764: *)
! 10765: if test "$GXX" = yes; then
! 10766: if test "$with_gnu_ld" = no; then
! 10767: 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'
! 10768: else
! 10769: 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'
! 10770: fi
! 10771: fi
! 10772: link_all_deplibs_CXX=yes
! 10773: ;;
! 10774: esac
! 10775: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 10776: hardcode_libdir_separator_CXX=:
! 10777: ;;
! 10778: linux*)
! 10779: case $cc_basename in
! 10780: KCC)
! 10781: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 10782:
! 10783: # KCC will only create a shared library if the output file
! 10784: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 10785: # to its proper name (with version) after linking.
! 10786: 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'
! 10787: 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'
! 10788:
! 10789: # Commands to make compiler produce verbose output that lists
! 10790: # what "hidden" libraries, object files and flags are used when
! 10791: # linking a shared library.
! 10792: #
! 10793: # There doesn't appear to be a way to prevent this compiler from
! 10794: # explicitly linking system object files so we need to strip them
! 10795: # from the output so that they don't get included in the library
! 10796: # dependencies.
! 10797: 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'
! 10798:
! 10799: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
! 10800: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 10801:
! 10802: # Archives containing C++ object files must be created using
! 10803: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 10804: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 10805: ;;
! 10806: cxx)
! 10807: # Compaq C++
! 10808: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 10809: 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'
! 10810:
! 10811: runpath_var=LD_RUN_PATH
! 10812: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 10813: hardcode_libdir_separator_CXX=:
! 10814:
! 10815: # Commands to make compiler produce verbose output that lists
! 10816: # what "hidden" libraries, object files and flags are used when
! 10817: # linking a shared library.
! 10818: #
! 10819: # There doesn't appear to be a way to prevent this compiler from
! 10820: # explicitly linking system object files so we need to strip them
! 10821: # from the output so that they don't get included in the library
! 10822: # dependencies.
! 10823: 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'
! 10824: ;;
! 10825: esac
! 10826: ;;
! 10827: lynxos*)
! 10828: # FIXME: insert proper C++ library support
! 10829: ld_shlibs_CXX=no
! 10830: ;;
! 10831: m88k*)
! 10832: # FIXME: insert proper C++ library support
! 10833: ld_shlibs_CXX=no
! 10834: ;;
! 10835: mvs*)
! 10836: case $cc_basename in
! 10837: cxx)
! 10838: # FIXME: insert proper C++ library support
! 10839: ld_shlibs_CXX=no
! 10840: ;;
! 10841: *)
! 10842: # FIXME: insert proper C++ library support
! 10843: ld_shlibs_CXX=no
! 10844: ;;
! 10845: esac
! 10846: ;;
! 10847: netbsd*)
! 10848: # NetBSD uses g++ - do we need to do anything?
! 10849: ;;
! 10850: osf3*)
! 10851: case $cc_basename in
! 10852: KCC)
! 10853: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 10854:
! 10855: # KCC will only create a shared library if the output file
! 10856: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 10857: # to its proper name (with version) after linking.
! 10858: 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'
! 10859:
! 10860: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 10861: hardcode_libdir_separator_CXX=:
! 10862:
! 10863: # Archives containing C++ object files must be created using
! 10864: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 10865: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 10866:
! 10867: ;;
! 10868: RCC)
! 10869: # Rational C++ 2.4.1
! 10870: # FIXME: insert proper C++ library support
! 10871: ld_shlibs_CXX=no
! 10872: ;;
! 10873: cxx)
! 10874: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 10875: 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'
! 10876:
! 10877: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 10878: hardcode_libdir_separator_CXX=:
! 10879:
! 10880: # Commands to make compiler produce verbose output that lists
! 10881: # what "hidden" libraries, object files and flags are used when
! 10882: # linking a shared library.
! 10883: #
! 10884: # There doesn't appear to be a way to prevent this compiler from
! 10885: # explicitly linking system object files so we need to strip them
! 10886: # from the output so that they don't get included in the library
! 10887: # dependencies.
! 10888: 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'
! 10889: ;;
! 10890: *)
! 10891: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 10892: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 10893: 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'
! 10894:
! 10895: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 10896: hardcode_libdir_separator_CXX=:
! 10897:
! 10898: # Commands to make compiler produce verbose output that lists
! 10899: # what "hidden" libraries, object files and flags are used when
! 10900: # linking a shared library.
! 10901: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
! 10902:
! 10903: else
! 10904: # FIXME: insert proper C++ library support
! 10905: ld_shlibs_CXX=no
! 10906: fi
! 10907: ;;
! 10908: esac
! 10909: ;;
! 10910: osf4* | osf5*)
! 10911: case $cc_basename in
! 10912: KCC)
! 10913: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 10914:
! 10915: # KCC will only create a shared library if the output file
! 10916: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 10917: # to its proper name (with version) after linking.
! 10918: 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'
! 10919:
! 10920: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 10921: hardcode_libdir_separator_CXX=:
! 10922:
! 10923: # Archives containing C++ object files must be created using
! 10924: # the KAI C++ compiler.
! 10925: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
! 10926: ;;
! 10927: RCC)
! 10928: # Rational C++ 2.4.1
! 10929: # FIXME: insert proper C++ library support
! 10930: ld_shlibs_CXX=no
! 10931: ;;
! 10932: cxx)
! 10933: allow_undefined_flag_CXX=' -expect_unresolved \*'
! 10934: 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'
! 10935: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
! 10936: echo "-hidden">> $lib.exp~
! 10937: $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~
! 10938: $rm $lib.exp'
! 10939:
! 10940: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 10941: hardcode_libdir_separator_CXX=:
! 10942:
! 10943: # Commands to make compiler produce verbose output that lists
! 10944: # what "hidden" libraries, object files and flags are used when
! 10945: # linking a shared library.
! 10946: #
! 10947: # There doesn't appear to be a way to prevent this compiler from
! 10948: # explicitly linking system object files so we need to strip them
! 10949: # from the output so that they don't get included in the library
! 10950: # dependencies.
! 10951: 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'
! 10952: ;;
! 10953: *)
! 10954: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 10955: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 10956: 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'
! 10957:
! 10958: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 10959: hardcode_libdir_separator_CXX=:
! 10960:
! 10961: # Commands to make compiler produce verbose output that lists
! 10962: # what "hidden" libraries, object files and flags are used when
! 10963: # linking a shared library.
! 10964: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
! 10965:
! 10966: else
! 10967: # FIXME: insert proper C++ library support
! 10968: ld_shlibs_CXX=no
! 10969: fi
! 10970: ;;
! 10971: esac
! 10972: ;;
! 10973: psos*)
! 10974: # FIXME: insert proper C++ library support
! 10975: ld_shlibs_CXX=no
! 10976: ;;
! 10977: sco*)
! 10978: archive_cmds_need_lc_CXX=no
! 10979: case $cc_basename in
! 10980: CC)
! 10981: # FIXME: insert proper C++ library support
! 10982: ld_shlibs_CXX=no
! 10983: ;;
! 10984: *)
! 10985: # FIXME: insert proper C++ library support
! 10986: ld_shlibs_CXX=no
! 10987: ;;
! 10988: esac
! 10989: ;;
! 10990: sunos4*)
! 10991: case $cc_basename in
! 10992: CC)
! 10993: # Sun C++ 4.x
! 10994: # FIXME: insert proper C++ library support
! 10995: ld_shlibs_CXX=no
! 10996: ;;
! 10997: lcc)
! 10998: # Lucid
! 10999: # FIXME: insert proper C++ library support
! 11000: ld_shlibs_CXX=no
! 11001: ;;
! 11002: *)
! 11003: # FIXME: insert proper C++ library support
! 11004: ld_shlibs_CXX=no
! 11005: ;;
! 11006: esac
! 11007: ;;
! 11008: solaris*)
! 11009: case $cc_basename in
! 11010: CC)
! 11011: # Sun C++ 4.2, 5.x and Centerline C++
! 11012: no_undefined_flag_CXX=' -zdefs'
! 11013: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11014: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11015: $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'
! 11016:
! 11017: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 11018: hardcode_shlibpath_var_CXX=no
! 11019: case $host_os in
! 11020: solaris2.0-5 | solaris2.0-5.*) ;;
! 11021: *)
! 11022: # The C++ compiler is used as linker so we must use $wl
! 11023: # flag to pass the commands to the underlying system
! 11024: # linker.
! 11025: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 11026: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 11027: ;;
! 11028: esac
! 11029: link_all_deplibs_CXX=yes
! 11030:
! 11031: # Commands to make compiler produce verbose output that lists
! 11032: # what "hidden" libraries, object files and flags are used when
! 11033: # linking a shared library.
! 11034: #
! 11035: # There doesn't appear to be a way to prevent this compiler from
! 11036: # explicitly linking system object files so we need to strip them
! 11037: # from the output so that they don't get included in the library
! 11038: # dependencies.
! 11039: 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'
! 11040:
! 11041: # Archives containing C++ object files must be created using
! 11042: # "CC -xar", where "CC" is the Sun C++ compiler. This is
! 11043: # necessary to make sure instantiated templates are included
! 11044: # in the archive.
! 11045: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
! 11046: ;;
! 11047: gcx)
! 11048: # Green Hills C++ Compiler
! 11049: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11050:
! 11051: # The C++ compiler must be used to create the archive.
! 11052: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
! 11053: ;;
! 11054: *)
! 11055: # GNU C++ compiler with Solaris linker
! 11056: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11057: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
! 11058: if $CC --version | egrep -v '^2\.7' > /dev/null; then
! 11059: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
! 11060: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11061: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
! 11062:
! 11063: # Commands to make compiler produce verbose output that lists
! 11064: # what "hidden" libraries, object files and flags are used when
! 11065: # linking a shared library.
! 11066: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
! 11067: else
! 11068: # g++ 2.7 appears to require `-G' NOT `-shared' on this
! 11069: # platform.
! 11070: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
! 11071: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11072: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
! 11073:
! 11074: # Commands to make compiler produce verbose output that lists
! 11075: # what "hidden" libraries, object files and flags are used when
! 11076: # linking a shared library.
! 11077: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
! 11078: fi
! 11079:
! 11080: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
! 11081: fi
! 11082: ;;
! 11083: esac
! 11084: ;;
! 11085: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 11086: archive_cmds_need_lc_CXX=no
! 11087: ;;
! 11088: tandem*)
! 11089: case $cc_basename in
! 11090: NCC)
! 11091: # NonStop-UX NCC 3.20
! 11092: # FIXME: insert proper C++ library support
! 11093: ld_shlibs_CXX=no
! 11094: ;;
! 11095: *)
! 11096: # FIXME: insert proper C++ library support
! 11097: ld_shlibs_CXX=no
! 11098: ;;
! 11099: esac
! 11100: ;;
! 11101: vxworks*)
! 11102: # FIXME: insert proper C++ library support
! 11103: ld_shlibs_CXX=no
! 11104: ;;
! 11105: *)
! 11106: # FIXME: insert proper C++ library support
! 11107: ld_shlibs_CXX=no
! 11108: ;;
! 11109: esac
! 11110: echo "$as_me:11110: result: $ld_shlibs_CXX" >&5
! 11111: echo "${ECHO_T}$ld_shlibs_CXX" >&6
! 11112: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 11113:
! 11114: # Figure out "hidden" C++ library dependencies from verbose
! 11115: # compiler output whening linking a shared library.
! 11116: cat > conftest.$ac_ext <<EOF
! 11117: class Foo
! 11118: {
! 11119: public:
! 11120: Foo (void) { a = 0; }
! 11121: private:
! 11122: int a;
! 11123: };
! 11124: EOF
! 11125:
! 11126: if { (eval echo "$as_me:11126: \"$ac_compile\"") >&5
! 11127: (eval $ac_compile) 2>&5
! 11128: ac_status=$?
! 11129: echo "$as_me:11129: \$? = $ac_status" >&5
! 11130: (exit $ac_status); }; then
! 11131: # Parse the compiler output and extract the necessary
! 11132: # objects, libraries and library flags.
! 11133:
! 11134: # Sentinel used to keep track of whether or not we are before
! 11135: # the conftest object file.
! 11136: pre_test_object_deps_done=no
! 11137:
! 11138: # The `*' in the case matches for architectures that use `case' in
! 11139: # $output_verbose_cmd can trigger glob expansion during the loop
! 11140: # eval without this substitution.
! 11141: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
! 11142:
! 11143: for p in `eval $output_verbose_link_cmd`; do
! 11144: case $p in
! 11145:
! 11146: -L* | -R* | -l*)
! 11147: # Some compilers place space between "-{L,R}" and the path.
! 11148: # Remove the space.
! 11149: if test $p = "-L" \
! 11150: || test $p = "-R"; then
! 11151: prev=$p
! 11152: continue
! 11153: else
! 11154: prev=
! 11155: fi
! 11156:
! 11157: if test "$pre_test_object_deps_done" = no; then
! 11158: case $p in
! 11159: -L* | -R*)
! 11160: # Internal compiler library paths should come after those
! 11161: # provided the user. The postdeps already come after the
! 11162: # user supplied libs so there is no need to process them.
! 11163: if test -z "$compiler_lib_search_path_CXX"; then
! 11164: compiler_lib_search_path_CXX="${prev}${p}"
! 11165: else
! 11166: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
! 11167: fi
! 11168: ;;
! 11169: # The "-l" case would never come before the object being
! 11170: # linked, so don't bother handling this case.
! 11171: esac
! 11172: else
! 11173: if test -z "$postdeps_CXX"; then
! 11174: postdeps_CXX="${prev}${p}"
! 11175: else
! 11176: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
! 11177: fi
! 11178: fi
! 11179: ;;
! 11180:
! 11181: *.$objext)
! 11182: # This assumes that the test object file only shows up
! 11183: # once in the compiler output.
! 11184: if test "$p" = "conftest.$objext"; then
! 11185: pre_test_object_deps_done=yes
! 11186: continue
! 11187: fi
! 11188:
! 11189: if test "$pre_test_object_deps_done" = no; then
! 11190: if test -z "$predep_objects_CXX"; then
! 11191: predep_objects_CXX="$p"
! 11192: else
! 11193: predep_objects_CXX="$predep_objects_CXX $p"
! 11194: fi
! 11195: else
! 11196: if test -z "$postdep_objects_CXX"; then
! 11197: postdep_objects_CXX="$p"
! 11198: else
! 11199: postdep_objects_CXX="$postdep_objects_CXX $p"
! 11200: fi
! 11201: fi
! 11202: ;;
! 11203:
! 11204: *) ;; # Ignore the rest.
! 11205:
! 11206: esac
! 11207: done
! 11208:
! 11209: # Clean up.
! 11210: rm -f a.out
! 11211: else
! 11212: echo "libtool.m4: error: problem compiling C++ test program"
! 11213: fi
! 11214:
! 11215: $rm -f confest.$objext
! 11216:
! 11217: case " $postdeps_CXX " in
! 11218: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
! 11219: *) archive_cmds_need_lc_CXX=yes ;;
! 11220: esac
! 11221:
! 11222: GCC_CXX="$GXX"
! 11223: LD_CXX="$LD"
! 11224:
! 11225: lt_prog_compiler_wl_CXX=
! 11226: lt_prog_compiler_pic_CXX=
! 11227: lt_prog_compiler_static_CXX=
! 11228:
! 11229: echo "$as_me:11229: checking for $compiler option to produce PIC" >&5
! 11230: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 11231:
! 11232: # C++ specific cases for pic, static, wl, etc.
! 11233: if test "$GXX" = yes; then
! 11234: lt_prog_compiler_wl_CXX='-Wl,'
! 11235: lt_prog_compiler_static_CXX='-static'
! 11236:
! 11237: case $host_os in
! 11238: aix*)
! 11239: # All AIX code is PIC.
! 11240: if test "$host_cpu" = ia64; then
! 11241: # AIX 5 now supports IA64 processor
! 11242: lt_prog_compiler_static_CXX='-Bstatic'
! 11243: fi
! 11244: ;;
! 11245: amigaos*)
! 11246: # FIXME: we need at least 68020 code to build shared libraries, but
! 11247: # adding the `-m68020' flag to GCC prevents building anything better,
! 11248: # like `-m68040'.
! 11249: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
! 11250: ;;
! 11251: beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
! 11252: # PIC is the default for these OSes.
! 11253: ;;
! 11254: cygwin* | mingw* | os2*)
! 11255: # This hack is so that the source file can tell whether it is being
! 11256: # built for inclusion in a dll (and should export symbols for example).
! 11257: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
! 11258: ;;
! 11259: darwin* | rhapsody*)
! 11260: # PIC is the default on this platform
! 11261: # Common symbols not allowed in MH_DYLIB files
! 11262: lt_prog_compiler_pic_CXX='-fno-common'
! 11263: ;;
! 11264: *djgpp*)
! 11265: # DJGPP does not support shared libraries at all
! 11266: lt_prog_compiler_pic_CXX=
! 11267: ;;
! 11268: sysv4*MP*)
! 11269: if test -d /usr/nec; then
! 11270: lt_prog_compiler_pic_CXX=-Kconform_pic
! 11271: fi
! 11272: ;;
! 11273: hpux*)
! 11274: # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
! 11275: if test "$host_cpu" != ia64; then
! 11276: lt_prog_compiler_pic_CXX='-fPIC'
! 11277: fi
! 11278: ;;
! 11279: *)
! 11280: lt_prog_compiler_pic_CXX='-fPIC'
! 11281: ;;
! 11282: esac
! 11283: else
! 11284: case $host_os in
! 11285: aix4* | aix5*)
! 11286: # All AIX code is PIC.
! 11287: if test "$host_cpu" = ia64; then
! 11288: # AIX 5 now supports IA64 processor
! 11289: lt_prog_compiler_static_CXX='-Bstatic'
! 11290: else
! 11291: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
! 11292: fi
! 11293: ;;
! 11294: chorus*)
! 11295: case $cc_basename in
! 11296: cxch68)
! 11297: # Green Hills C++ Compiler
! 11298: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
! 11299: ;;
! 11300: esac
! 11301: ;;
! 11302: dgux*)
! 11303: case $cc_basename in
! 11304: ec++)
! 11305: lt_prog_compiler_pic_CXX='-KPIC'
! 11306: ;;
! 11307: ghcx)
! 11308: # Green Hills C++ Compiler
! 11309: lt_prog_compiler_pic_CXX='-pic'
! 11310: ;;
! 11311: *)
! 11312: ;;
! 11313: esac
! 11314: ;;
! 11315: freebsd*)
! 11316: # FreeBSD uses GNU C++
! 11317: ;;
! 11318: hpux9* | hpux10* | hpux11*)
! 11319: case $cc_basename in
! 11320: CC)
! 11321: lt_prog_compiler_wl_CXX='-Wl,'
! 11322: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
! 11323: if test "$host_cpu" != ia64; then
! 11324: lt_prog_compiler_pic_CXX='+Z'
! 11325: fi
! 11326: ;;
! 11327: aCC)
! 11328: lt_prog_compiler_wl_CXX='-Wl,'
! 11329: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
! 11330: if test "$host_cpu" != ia64; then
! 11331: lt_prog_compiler_pic_CXX='+Z'
! 11332: fi
! 11333: ;;
! 11334: *)
! 11335: ;;
! 11336: esac
! 11337: ;;
! 11338: irix5* | irix6*)
! 11339: case $cc_basename in
! 11340: CC)
! 11341: lt_prog_compiler_wl_CXX='-Wl,'
! 11342: lt_prog_compiler_static_CXX='-non_shared'
! 11343: # CC pic flag -KPIC is the default.
! 11344: ;;
! 11345: *)
! 11346: ;;
! 11347: esac
! 11348: ;;
! 11349: linux*)
! 11350: case $cc_basename in
! 11351: KCC)
! 11352: # KAI C++ Compiler
! 11353: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 11354: lt_prog_compiler_pic_CXX='-fPIC'
! 11355: ;;
! 11356: cxx)
! 11357: # Compaq C++
! 11358: # Make sure the PIC flag is empty. It appears that all Alpha
! 11359: # Linux and Compaq Tru64 Unix objects are PIC.
! 11360: lt_prog_compiler_pic_CXX=
! 11361: lt_prog_compiler_static_CXX='-non_shared'
! 11362: ;;
! 11363: *)
! 11364: ;;
! 11365: esac
! 11366: ;;
! 11367: lynxos*)
! 11368: ;;
! 11369: m88k*)
! 11370: ;;
! 11371: mvs*)
! 11372: case $cc_basename in
! 11373: cxx)
! 11374: lt_prog_compiler_pic_CXX='-W c,exportall'
! 11375: ;;
! 11376: *)
! 11377: ;;
! 11378: esac
! 11379: ;;
! 11380: netbsd*)
! 11381: ;;
! 11382: osf3* | osf4* | osf5*)
! 11383: case $cc_basename in
! 11384: KCC)
! 11385: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 11386: ;;
! 11387: RCC)
! 11388: # Rational C++ 2.4.1
! 11389: lt_prog_compiler_pic_CXX='-pic'
! 11390: ;;
! 11391: cxx)
! 11392: # Digital/Compaq C++
! 11393: lt_prog_compiler_wl_CXX='-Wl,'
! 11394: # Make sure the PIC flag is empty. It appears that all Alpha
! 11395: # Linux and Compaq Tru64 Unix objects are PIC.
! 11396: lt_prog_compiler_pic_CXX=
! 11397: lt_prog_compiler_static_CXX='-non_shared'
! 11398: ;;
! 11399: *)
! 11400: ;;
! 11401: esac
! 11402: ;;
! 11403: psos*)
! 11404: ;;
! 11405: sco*)
! 11406: case $cc_basename in
! 11407: CC)
! 11408: lt_prog_compiler_pic_CXX='-fPIC'
! 11409: ;;
! 11410: *)
! 11411: ;;
! 11412: esac
! 11413: ;;
! 11414: solaris*)
! 11415: case $cc_basename in
! 11416: CC)
! 11417: # Sun C++ 4.2, 5.x and Centerline C++
! 11418: lt_prog_compiler_pic_CXX='-KPIC'
! 11419: lt_prog_compiler_static_CXX='-Bstatic'
! 11420: lt_prog_compiler_wl_CXX='-Qoption ld '
! 11421: ;;
! 11422: gcx)
! 11423: # Green Hills C++ Compiler
! 11424: lt_prog_compiler_pic_CXX='-PIC'
! 11425: ;;
! 11426: *)
! 11427: ;;
! 11428: esac
! 11429: ;;
! 11430: sunos4*)
! 11431: case $cc_basename in
! 11432: CC)
! 11433: # Sun C++ 4.x
! 11434: lt_prog_compiler_pic_CXX='-pic'
! 11435: lt_prog_compiler_static_CXX='-Bstatic'
! 11436: ;;
! 11437: lcc)
! 11438: # Lucid
! 11439: lt_prog_compiler_pic_CXX='-pic'
! 11440: ;;
! 11441: *)
! 11442: ;;
! 11443: esac
! 11444: ;;
! 11445: tandem*)
! 11446: case $cc_basename in
! 11447: NCC)
! 11448: # NonStop-UX NCC 3.20
! 11449: lt_prog_compiler_pic_CXX='-KPIC'
! 11450: ;;
! 11451: *)
! 11452: ;;
! 11453: esac
! 11454: ;;
! 11455: unixware*)
! 11456: ;;
! 11457: vxworks*)
! 11458: ;;
! 11459: *)
! 11460: lt_prog_compiler_can_build_shared_CXX=no
! 11461: ;;
! 11462: esac
! 11463: fi
! 11464:
! 11465: echo "$as_me:11465: result: $lt_prog_compiler_pic_CXX" >&5
! 11466: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
! 11467:
! 11468: #
! 11469: # Check to make sure the PIC flag actually works.
! 11470: #
! 11471: if test -n "$lt_prog_compiler_pic_CXX"; then
! 11472: echo "$as_me:11472: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 11473: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
! 11474: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
! 11475: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11476: else
! 11477: lt_prog_compiler_pic_works_CXX=no
! 11478: ac_outfile=conftest.$ac_objext
! 11479: save_CFLAGS="$CFLAGS"
! 11480: CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
! 11481: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 11482: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
! 11483: # The compiler can only warn and ignore the option if not recognized
! 11484: # So say no if there are warnings mentioning the option
! 11485: cat conftest.err 1>&5
! 11486: lt_prog_compiler_pic_works_CXX=yes
! 11487: for lt_i in $lt_prog_compiler_pic_CXX -DPIC; do
! 11488: if grep -- $lt_i conftest.err >/dev/null; then
! 11489: lt_prog_compiler_pic_works_CXX=no
! 11490: fi
! 11491: done
! 11492: fi
! 11493: $rm conftest*
! 11494: CFLAGS="$save_CFLAGS"
! 11495:
! 11496: fi
! 11497: echo "$as_me:11497: result: $lt_prog_compiler_pic_works_CXX" >&5
! 11498: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
! 11499:
! 11500: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
! 11501: case $lt_prog_compiler_pic_CXX in
! 11502: "" | " "*) ;;
! 11503: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
! 11504: esac
! 11505: else
! 11506: lt_prog_compiler_pic_CXX=
! 11507: lt_prog_compiler_can_build_shared_CXX=no
! 11508: fi
! 11509:
! 11510: fi
! 11511: case "$host_os" in
! 11512: # For platforms which do not support PIC, -DPIC is meaningless:
! 11513: *djgpp*)
! 11514: lt_prog_compiler_pic_CXX=
! 11515: ;;
! 11516: *)
! 11517: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
! 11518: ;;
! 11519: esac
! 11520:
! 11521: echo "$as_me:11521: checking if $compiler supports -c -o file.$ac_objext" >&5
! 11522: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 11523: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 11524: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11525: else
! 11526: lt_cv_prog_compiler_c_o_CXX=no
! 11527: $rm -r conftest 2>/dev/null
! 11528: mkdir conftest
! 11529: cd conftest
! 11530: mkdir out
! 11531: save_CXXFLAGS="$CXXFLAGS"
! 11532: CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
! 11533: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 11534:
! 11535: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 11536: # that will create temporary files in the current directory regardless of
! 11537: # the output directory. Thus, making CWD read-only will cause this test
! 11538: # to fail, enabling locking or at least warning the user not to do parallel
! 11539: # builds.
! 11540: chmod -w .
! 11541:
! 11542: if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
! 11543: then
! 11544: # The compiler can only warn and ignore the option if not recognized
! 11545: # So say no if there are warnings
! 11546: if test -s out/conftest.err; then
! 11547: # Append any errors to the config.log.
! 11548: cat out/conftest.err 1>&5
! 11549: else
! 11550: lt_cv_prog_compiler_c_o_CXX=yes
! 11551: fi
! 11552: fi
! 11553: CXXFLAGS="$save_CXXFLAGS"
! 11554: chmod u+w .
! 11555: $rm conftest* out/*
! 11556: rmdir out
! 11557: cd ..
! 11558: rmdir conftest
! 11559: $rm conftest*
! 11560:
! 11561: fi
! 11562: echo "$as_me:11562: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 11563: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
! 11564:
! 11565: hard_links="nottested"
! 11566: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
! 11567: # do not overwrite the value of need_locks provided by the user
! 11568: echo "$as_me:11568: checking if we can lock with hard links" >&5
! 11569: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 11570: hard_links=yes
! 11571: $rm conftest*
! 11572: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 11573: touch conftest.a
! 11574: ln conftest.a conftest.b 2>&5 || hard_links=no
! 11575: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 11576: echo "$as_me:11576: result: $hard_links" >&5
! 11577: echo "${ECHO_T}$hard_links" >&6
! 11578: if test "$hard_links" = no; then
! 11579: { echo "$as_me:11579: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 11580: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 11581: need_locks=warn
! 11582: fi
! 11583: else
! 11584: need_locks=no
! 11585: fi
! 11586:
! 11587: echo "$as_me:11587: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 11588: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 11589:
! 11590: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 11591: case $host_os in
! 11592: aix4* | aix5*)
! 11593: # If we're using GNU nm, then we don't want the "-C" option.
! 11594: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 11595: if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
! 11596: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 11597: else
! 11598: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 11599: fi
! 11600: ;;
! 11601: cygwin* | mingw* | pw32*)
! 11602: export_symbols_cmds_CXX="$ltdll_cmds"
! 11603: ;;
! 11604: *)
! 11605: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 11606: ;;
! 11607: esac
! 11608:
! 11609: echo "$as_me:11609: result: $ld_shlibs_CXX" >&5
! 11610: echo "${ECHO_T}$ld_shlibs_CXX" >&6
! 11611: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 11612:
! 11613: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 11614: if test "$GCC" = yes; then
! 11615: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 11616: fi
! 11617:
! 11618: #
! 11619: # Do we need to explicitly link libc?
! 11620: #
! 11621: archive_cmds_need_lc_CXX=yes
! 11622: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 11623: case $archive_cmds_CXX in
! 11624: *'~'*)
! 11625: # FIXME: we may have to deal with multi-command sequences.
! 11626: ;;
! 11627: '$CC '*)
! 11628: # Test whether the compiler implicitly links with -lc since on some
! 11629: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 11630: # to ld, don't add -lc before -lgcc.
! 11631: echo "$as_me:11631: checking whether -lc should be explicitly linked in" >&5
! 11632: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 11633: $rm conftest*
! 11634: echo 'static int dummy;' > conftest.$ac_ext
! 11635:
! 11636: if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5
! 11637: (eval $ac_compile) 2>&5
! 11638: ac_status=$?
! 11639: echo "$as_me:11639: \$? = $ac_status" >&5
! 11640: (exit $ac_status); } 2>conftest.err; then
! 11641: soname=conftest
! 11642: lib=conftest
! 11643: libobjs=conftest.$ac_objext
! 11644: deplibs=
! 11645: wl=$lt_prog_compiler_wl_CXX
! 11646: compiler_flags=-v
! 11647: linker_flags=-v
! 11648: verstring=
! 11649: output_objdir=.
! 11650: libname=conftest
! 11651: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
! 11652: allow_undefined_flag_CXX=
! 11653: if { (eval echo "$as_me:11653: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 11654: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 11655: ac_status=$?
! 11656: echo "$as_me:11656: \$? = $ac_status" >&5
! 11657: (exit $ac_status); }
! 11658: then
! 11659: archive_cmds_need_lc_CXX=no
! 11660: else
! 11661: archive_cmds_need_lc_CXX=yes
! 11662: fi
! 11663: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
! 11664: else
! 11665: cat conftest.err 1>&5
! 11666: fi
! 11667: $rm conftest*
! 11668: echo "$as_me:11668: result: $archive_cmds_need_lc_CXX" >&5
! 11669: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
! 11670: ;;
! 11671: esac
! 11672: fi
! 11673:
! 11674: echo "$as_me:11674: checking how to hardcode library paths into programs" >&5
! 11675: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 11676: hardcode_action_CXX=
! 11677: if test -n "$hardcode_libdir_flag_spec_CXX" || \
! 11678: test -n "$runpath_var CXX"; then
! 11679:
! 11680: # We can hardcode non-existant directories.
! 11681: if test "$hardcode_direct_CXX" != no &&
! 11682: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 11683: # have to relink, otherwise we might link with an installed library
! 11684: # when we should be linking with a yet-to-be-installed one
! 11685: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
! 11686: test "$hardcode_minus_L_CXX" != no; then
! 11687: # Linking always hardcodes the temporary library directory.
! 11688: hardcode_action_CXX=relink
! 11689: else
! 11690: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 11691: hardcode_action_CXX=immediate
! 11692: fi
! 11693: else
! 11694: # We cannot hardcode anything, or else we can only hardcode existing
! 11695: # directories.
! 11696: hardcode_action_CXX=unsupported
! 11697: fi
! 11698: echo "$as_me:11698: result: $hardcode_action_CXX" >&5
! 11699: echo "${ECHO_T}$hardcode_action_CXX" >&6
! 11700:
! 11701: if test "$hardcode_action_CXX" = relink; then
! 11702: # Fast installation is not supported
! 11703: enable_fast_install=no
! 11704: elif test "$shlibpath_overrides_runpath" = yes ||
! 11705: test "$enable_shared" = no; then
! 11706: # Fast installation is not necessary
! 11707: enable_fast_install=needless
! 11708: fi
! 11709:
! 11710: striplib=
! 11711: old_striplib=
! 11712: echo "$as_me:11712: checking whether stripping libraries is possible" >&5
! 11713: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 11714: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 11715: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 11716: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 11717: echo "$as_me:11717: result: yes" >&5
! 11718: echo "${ECHO_T}yes" >&6
! 11719: else
! 11720: echo "$as_me:11720: result: no" >&5
! 11721: echo "${ECHO_T}no" >&6
! 11722: fi
! 11723:
! 11724: echo "$as_me:11724: checking dynamic linker characteristics" >&5
! 11725: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 11726: library_names_spec=
! 11727: libname_spec='lib$name'
! 11728: soname_spec=
! 11729: postinstall_cmds=
! 11730: postuninstall_cmds=
! 11731: finish_cmds=
! 11732: finish_eval=
! 11733: shlibpath_var=
! 11734: shlibpath_overrides_runpath=unknown
! 11735: version_type=none
! 11736: dynamic_linker="$host_os ld.so"
! 11737: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 11738: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 11739: need_lib_prefix=unknown
! 11740: hardcode_into_libs=no
! 11741:
! 11742: # when you set need_version to no, make sure it does not cause -set_version
! 11743: # flags to be left without arguments
! 11744: need_version=unknown
! 11745:
! 11746: case $host_os in
! 11747: aix3*)
! 11748: version_type=linux
! 11749: library_names_spec='${libname}${release}.so$versuffix $libname.a'
! 11750: shlibpath_var=LIBPATH
! 11751:
! 11752: # AIX 3 has no versioning support, so we append a major version to the name.
! 11753: soname_spec='${libname}${release}.so$major'
! 11754: ;;
! 11755:
! 11756: aix4* | aix5*)
! 11757: version_type=linux
! 11758: if test "$host_cpu" = ia64; then
! 11759: # AIX 5 supports IA64
! 11760: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
! 11761: shlibpath_var=LD_LIBRARY_PATH
! 11762: else
! 11763: # With GCC up to 2.95.x, collect2 would create an import file
! 11764: # for dependence libraries. The import file would start with
! 11765: # the line `#! .'. This would cause the generated library to
! 11766: # depend on `.', always an invalid library. This was fixed in
! 11767: # development snapshots of GCC prior to 3.0.
! 11768: case $host_os in
! 11769: aix4 | aix4.[01] | aix4.[01].*)
! 11770: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 11771: echo ' yes '
! 11772: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 11773: :
! 11774: else
! 11775: can_build_shared=no
! 11776: fi
! 11777: ;;
! 11778: esac
! 11779: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 11780: # soname into executable. Probably we can add versioning support to
! 11781: # collect2, so additional links can be useful in future.
! 11782: if test "$aix_use_runtimelinking" = yes; then
! 11783: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 11784: # instead of lib<name>.a to let people know that these are not
! 11785: # typical AIX shared libraries.
! 11786: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 11787: else
! 11788: # We preserve .a as extension for shared libraries through AIX4.2
! 11789: # and later when we are not doing run time linking.
! 11790: library_names_spec='${libname}${release}.a $libname.a'
! 11791: soname_spec='${libname}${release}.so$major'
! 11792: fi
! 11793: shlibpath_var=LIBPATH
! 11794: fi
! 11795: ;;
! 11796:
! 11797: amigaos*)
! 11798: library_names_spec='$libname.ixlibrary $libname.a'
! 11799: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 11800: 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'
! 11801: ;;
! 11802:
! 11803: beos*)
! 11804: library_names_spec='${libname}.so'
! 11805: dynamic_linker="$host_os ld.so"
! 11806: shlibpath_var=LIBRARY_PATH
! 11807: ;;
! 11808:
! 11809: bsdi4*)
! 11810: version_type=linux
! 11811: need_version=no
! 11812: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 11813: soname_spec='${libname}${release}.so$major'
! 11814: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 11815: shlibpath_var=LD_LIBRARY_PATH
! 11816: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 11817: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 11818: # the default ld.so.conf also contains /usr/contrib/lib and
! 11819: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 11820: # libtool to hard-code these into programs
! 11821: ;;
! 11822:
! 11823: cygwin* | mingw* | pw32*)
! 11824: version_type=windows
! 11825: need_version=no
! 11826: need_lib_prefix=no
! 11827: case $GCC,$host_os in
! 11828: yes,cygwin*)
! 11829: library_names_spec='$libname.dll.a'
! 11830: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 11831: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 11832: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
! 11833: dldir=$destdir/`dirname \$dlpath`~
! 11834: test -d \$dldir || mkdir -p \$dldir~
! 11835: $install_prog .libs/$dlname \$dldir/$dlname'
! 11836: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 11837: dlpath=$dir/\$dldll~
! 11838: $rm \$dlpath'
! 11839: ;;
! 11840: yes,mingw*)
! 11841: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 11842: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
! 11843: if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
! 11844: # It is most probably a Windows format PATH printed by
! 11845: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 11846: # path with ; separators, and with drive letters. We can handle the
! 11847: # drive letters (cygwin fileutils understands them), so leave them,
! 11848: # especially as we might pass files found there to a mingw objdump,
! 11849: # which wouldn't understand a cygwinified path. Ahh.
! 11850: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
! 11851: else
! 11852: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
! 11853: fi
! 11854: ;;
! 11855: yes,pw32*)
! 11856: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
! 11857: ;;
! 11858: *)
! 11859: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
! 11860: ;;
! 11861: esac
! 11862: dynamic_linker='Win32 ld.exe'
! 11863: # FIXME: first we should search . and the directory the executable is in
! 11864: shlibpath_var=PATH
! 11865: ;;
! 11866:
! 11867: darwin* | rhapsody*)
! 11868: dynamic_linker="$host_os dyld"
! 11869: version_type=darwin
! 11870: need_lib_prefix=no
! 11871: need_version=no
! 11872: # FIXME: Relying on posixy $() will cause problems for
! 11873: # cross-compilation, but unfortunately the echo tests do not
! 11874: # yet detect zsh echo's removal of \ escapes.
! 11875: 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)'
! 11876: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
! 11877: shlibpath_overrides_runpath=yes
! 11878: shlibpath_var=DYLD_LIBRARY_PATH
! 11879: ;;
! 11880:
! 11881: dgux*)
! 11882: version_type=linux
! 11883: need_lib_prefix=no
! 11884: need_version=no
! 11885: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 11886: soname_spec='${libname}${release}.so$major'
! 11887: shlibpath_var=LD_LIBRARY_PATH
! 11888: ;;
! 11889:
! 11890: freebsd1*)
! 11891: dynamic_linker=no
! 11892: ;;
! 11893:
! 11894: freebsd*)
! 11895: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 11896: version_type=freebsd-$objformat
! 11897: case $version_type in
! 11898: freebsd-elf*)
! 11899: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 11900: need_version=no
! 11901: need_lib_prefix=no
! 11902: ;;
! 11903: freebsd-*)
! 11904: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
! 11905: need_version=yes
! 11906: ;;
! 11907: esac
! 11908: shlibpath_var=LD_LIBRARY_PATH
! 11909: case $host_os in
! 11910: freebsd2*)
! 11911: shlibpath_overrides_runpath=yes
! 11912: ;;
! 11913: freebsd3.01* | freebsdelf3.01*)
! 11914: shlibpath_overrides_runpath=yes
! 11915: hardcode_into_libs=yes
! 11916: ;;
! 11917: *) # from 3.2 on
! 11918: shlibpath_overrides_runpath=no
! 11919: hardcode_into_libs=yes
! 11920: ;;
! 11921: esac
! 11922: ;;
! 11923:
! 11924: gnu*)
! 11925: version_type=linux
! 11926: need_lib_prefix=no
! 11927: need_version=no
! 11928: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
! 11929: soname_spec='${libname}${release}.so$major'
! 11930: shlibpath_var=LD_LIBRARY_PATH
! 11931: hardcode_into_libs=yes
! 11932: ;;
! 11933:
! 11934: hpux9* | hpux10* | hpux11*)
! 11935: # Give a soname corresponding to the major version so that dld.sl refuses to
! 11936: # link against other versions.
! 11937: version_type=sunos
! 11938: need_lib_prefix=no
! 11939: need_version=no
! 11940: if test "$host_cpu" = ia64; then
! 11941: hardcode_into_libs=yes
! 11942: dynamic_linker="$host_os dld.so"
! 11943: shlibpath_var=LD_LIBRARY_PATH
! 11944: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 11945: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 11946: soname_spec='${libname}${release}.so$major'
! 11947: if test "X$HPUX_IA64_MODE" = X32; then
! 11948: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 11949: else
! 11950: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 11951: fi
! 11952: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 11953: else
! 11954: dynamic_linker="$host_os dld.sl"
! 11955: shlibpath_var=SHLIB_PATH
! 11956: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 11957: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
! 11958: soname_spec='${libname}${release}.sl$major'
! 11959: fi
! 11960: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 11961: postinstall_cmds='chmod 555 $lib'
! 11962: ;;
! 11963:
! 11964: irix5* | irix6*)
! 11965: version_type=irix
! 11966: need_lib_prefix=no
! 11967: need_version=no
! 11968: soname_spec='${libname}${release}.so$major'
! 11969: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
! 11970: case $host_os in
! 11971: irix5*)
! 11972: libsuff= shlibsuff=
! 11973: ;;
! 11974: *)
! 11975: case $LD in # libtool.m4 will add one of these switches to LD
! 11976: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
! 11977: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
! 11978: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 11979: *) libsuff= shlibsuff= libmagic=never-match;;
! 11980: esac
! 11981: ;;
! 11982: esac
! 11983: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 11984: shlibpath_overrides_runpath=no
! 11985: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 11986: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 11987: ;;
! 11988:
! 11989: # No shared lib support for Linux oldld, aout, or coff.
! 11990: linux*oldld* | linux*aout* | linux*coff*)
! 11991: dynamic_linker=no
! 11992: ;;
! 11993:
! 11994: # This must be Linux ELF.
! 11995: linux*)
! 11996: version_type=linux
! 11997: need_lib_prefix=no
! 11998: need_version=no
! 11999: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12000: soname_spec='${libname}${release}.so$major'
! 12001: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 12002: shlibpath_var=LD_LIBRARY_PATH
! 12003: shlibpath_overrides_runpath=no
! 12004: # This implies no fast_install, which is unacceptable.
! 12005: # Some rework will be needed to allow for fast_install
! 12006: # before this can be enabled.
! 12007: hardcode_into_libs=yes
! 12008:
! 12009: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 12010: # powerpc, because MkLinux only supported shared libraries with the
! 12011: # GNU dynamic linker. Since this was broken with cross compilers,
! 12012: # most powerpc-linux boxes support dynamic linking these days and
! 12013: # people can always --disable-shared, the test was removed, and we
! 12014: # assume the GNU/Linux dynamic linker is in use.
! 12015: dynamic_linker='GNU/Linux ld.so'
! 12016: ;;
! 12017:
! 12018: netbsd*)
! 12019: version_type=sunos
! 12020: need_lib_prefix=no
! 12021: need_version=no
! 12022: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 12023: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 12024: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 12025: dynamic_linker='NetBSD (a.out) ld.so'
! 12026: else
! 12027: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
! 12028: soname_spec='${libname}${release}.so$major'
! 12029: dynamic_linker='NetBSD ld.elf_so'
! 12030: fi
! 12031: shlibpath_var=LD_LIBRARY_PATH
! 12032: shlibpath_overrides_runpath=yes
! 12033: hardcode_into_libs=yes
! 12034: ;;
! 12035:
! 12036: newsos6)
! 12037: version_type=linux
! 12038: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12039: shlibpath_var=LD_LIBRARY_PATH
! 12040: shlibpath_overrides_runpath=yes
! 12041: ;;
! 12042:
! 12043: nto-qnx)
! 12044: version_type=linux
! 12045: need_lib_prefix=no
! 12046: need_version=no
! 12047: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12048: soname_spec='${libname}${release}.so$major'
! 12049: shlibpath_var=LD_LIBRARY_PATH
! 12050: shlibpath_overrides_runpath=yes
! 12051: ;;
! 12052:
! 12053: openbsd*)
! 12054: version_type=sunos
! 12055: need_lib_prefix=no
! 12056: need_version=no
! 12057: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 12058: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 12059: shlibpath_var=LD_LIBRARY_PATH
! 12060: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 12061: case $host_os in
! 12062: openbsd2.[89] | openbsd2.[89].*)
! 12063: shlibpath_overrides_runpath=no
! 12064: ;;
! 12065: *)
! 12066: shlibpath_overrides_runpath=yes
! 12067: ;;
! 12068: esac
! 12069: else
! 12070: shlibpath_overrides_runpath=yes
! 12071: fi
! 12072: ;;
! 12073:
! 12074: os2*)
! 12075: libname_spec='$name'
! 12076: need_lib_prefix=no
! 12077: library_names_spec='$libname.dll $libname.a'
! 12078: dynamic_linker='OS/2 ld.exe'
! 12079: shlibpath_var=LIBPATH
! 12080: ;;
! 12081:
! 12082: osf3* | osf4* | osf5*)
! 12083: version_type=osf
! 12084: need_lib_prefix=no
! 12085: need_version=no
! 12086: soname_spec='${libname}${release}.so'
! 12087: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 12088: shlibpath_var=LD_LIBRARY_PATH
! 12089: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 12090: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 12091: ;;
! 12092:
! 12093: sco3.2v5*)
! 12094: version_type=osf
! 12095: soname_spec='${libname}${release}.so$major'
! 12096: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12097: shlibpath_var=LD_LIBRARY_PATH
! 12098: ;;
! 12099:
! 12100: solaris*)
! 12101: version_type=linux
! 12102: need_lib_prefix=no
! 12103: need_version=no
! 12104: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12105: soname_spec='${libname}${release}.so$major'
! 12106: shlibpath_var=LD_LIBRARY_PATH
! 12107: shlibpath_overrides_runpath=yes
! 12108: hardcode_into_libs=yes
! 12109: # ldd complains unless libraries are executable
! 12110: postinstall_cmds='chmod +x $lib'
! 12111: ;;
! 12112:
! 12113: sunos4*)
! 12114: version_type=sunos
! 12115: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 12116: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 12117: shlibpath_var=LD_LIBRARY_PATH
! 12118: shlibpath_overrides_runpath=yes
! 12119: if test "$with_gnu_ld" = yes; then
! 12120: need_lib_prefix=no
! 12121: fi
! 12122: need_version=yes
! 12123: ;;
! 12124:
! 12125: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 12126: version_type=linux
! 12127: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12128: soname_spec='${libname}${release}.so$major'
! 12129: shlibpath_var=LD_LIBRARY_PATH
! 12130: case $host_vendor in
! 12131: sni)
! 12132: shlibpath_overrides_runpath=no
! 12133: ;;
! 12134: motorola)
! 12135: need_lib_prefix=no
! 12136: need_version=no
! 12137: shlibpath_overrides_runpath=no
! 12138: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 12139: ;;
! 12140: esac
! 12141: ;;
! 12142:
! 12143: sysv4*MP*)
! 12144: if test -d /usr/nec ;then
! 12145: version_type=linux
! 12146: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
! 12147: soname_spec='$libname.so.$major'
! 12148: shlibpath_var=LD_LIBRARY_PATH
! 12149: fi
! 12150: ;;
! 12151:
! 12152: uts4*)
! 12153: version_type=linux
! 12154: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 12155: soname_spec='${libname}${release}.so$major'
! 12156: shlibpath_var=LD_LIBRARY_PATH
! 12157: ;;
! 12158:
! 12159: *)
! 12160: dynamic_linker=no
! 12161: ;;
! 12162: esac
! 12163: echo "$as_me:12163: result: $dynamic_linker" >&5
! 12164: echo "${ECHO_T}$dynamic_linker" >&6
! 12165: test "$dynamic_linker" = no && can_build_shared=no
! 12166:
! 12167: if test "x$enable_dlopen" != xyes; then
! 12168: enable_dlopen=unknown
! 12169: enable_dlopen_self=unknown
! 12170: enable_dlopen_self_static=unknown
! 12171: else
! 12172: lt_cv_dlopen=no
! 12173: lt_cv_dlopen_libs=
! 12174:
! 12175: case $host_os in
! 12176: beos*)
! 12177: lt_cv_dlopen="load_add_on"
! 12178: lt_cv_dlopen_libs=
! 12179: lt_cv_dlopen_self=yes
! 12180: ;;
! 12181:
! 12182: cygwin* | mingw* | pw32*)
! 12183: lt_cv_dlopen="LoadLibrary"
! 12184: lt_cv_dlopen_libs=
! 12185: ;;
! 12186:
! 12187: *)
! 12188: echo "$as_me:12188: checking for shl_load" >&5
! 12189: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 12190: if test "${ac_cv_func_shl_load+set}" = set; then
! 12191: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12192: else
! 12193: cat >conftest.$ac_ext <<_ACEOF
! 12194: #line 12194 "configure"
! 12195: #include "confdefs.h"
! 12196: /* System header to define __stub macros and hopefully few prototypes,
! 12197: which can conflict with char shl_load (); below. */
! 12198: #include <assert.h>
! 12199: /* Override any gcc2 internal prototype to avoid an error. */
! 12200: #ifdef __cplusplus
! 12201: extern "C"
! 12202: #endif
! 12203: /* We use char because int might match the return type of a gcc2
! 12204: builtin and then its argument prototype would still apply. */
! 12205: char shl_load ();
! 12206: char (*f) ();
! 12207:
! 12208: int
! 12209: main ()
! 12210: {
! 12211: /* The GNU C library defines this for functions which it implements
! 12212: to always fail with ENOSYS. Some functions are actually named
! 12213: something starting with __ and the normal name is an alias. */
! 12214: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 12215: choke me
! 12216: #else
! 12217: f = shl_load;
! 12218: #endif
! 12219:
! 12220: ;
! 12221: return 0;
! 12222: }
! 12223: _ACEOF
! 12224: rm -f conftest.$ac_objext conftest$ac_exeext
! 12225: if { (eval echo "$as_me:12225: \"$ac_link\"") >&5
! 12226: (eval $ac_link) 2>&5
! 12227: ac_status=$?
! 12228: echo "$as_me:12228: \$? = $ac_status" >&5
! 12229: (exit $ac_status); } &&
! 12230: { ac_try='test -s conftest$ac_exeext'
! 12231: { (eval echo "$as_me:12231: \"$ac_try\"") >&5
! 12232: (eval $ac_try) 2>&5
! 12233: ac_status=$?
! 12234: echo "$as_me:12234: \$? = $ac_status" >&5
! 12235: (exit $ac_status); }; }; then
! 12236: ac_cv_func_shl_load=yes
! 12237: else
! 12238: echo "$as_me: failed program was:" >&5
! 12239: cat conftest.$ac_ext >&5
! 12240: ac_cv_func_shl_load=no
! 12241: fi
! 12242: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12243: fi
! 12244: echo "$as_me:12244: result: $ac_cv_func_shl_load" >&5
! 12245: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 12246: if test $ac_cv_func_shl_load = yes; then
! 12247: lt_cv_dlopen="shl_load"
! 12248: else
! 12249: echo "$as_me:12249: checking for shl_load in -ldld" >&5
! 12250: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 12251: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 12252: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12253: else
! 12254: ac_check_lib_save_LIBS=$LIBS
! 12255: LIBS="-ldld $LIBS"
! 12256: cat >conftest.$ac_ext <<_ACEOF
! 12257: #line 12257 "configure"
! 12258: #include "confdefs.h"
! 12259:
! 12260: /* Override any gcc2 internal prototype to avoid an error. */
! 12261: #ifdef __cplusplus
! 12262: extern "C"
! 12263: #endif
! 12264: /* We use char because int might match the return type of a gcc2
! 12265: builtin and then its argument prototype would still apply. */
! 12266: char shl_load ();
! 12267: int
! 12268: main ()
! 12269: {
! 12270: shl_load ();
! 12271: ;
! 12272: return 0;
! 12273: }
! 12274: _ACEOF
! 12275: rm -f conftest.$ac_objext conftest$ac_exeext
! 12276: if { (eval echo "$as_me:12276: \"$ac_link\"") >&5
! 12277: (eval $ac_link) 2>&5
! 12278: ac_status=$?
! 12279: echo "$as_me:12279: \$? = $ac_status" >&5
! 12280: (exit $ac_status); } &&
! 12281: { ac_try='test -s conftest$ac_exeext'
! 12282: { (eval echo "$as_me:12282: \"$ac_try\"") >&5
! 12283: (eval $ac_try) 2>&5
! 12284: ac_status=$?
! 12285: echo "$as_me:12285: \$? = $ac_status" >&5
! 12286: (exit $ac_status); }; }; then
! 12287: ac_cv_lib_dld_shl_load=yes
! 12288: else
! 12289: echo "$as_me: failed program was:" >&5
! 12290: cat conftest.$ac_ext >&5
! 12291: ac_cv_lib_dld_shl_load=no
! 12292: fi
! 12293: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12294: LIBS=$ac_check_lib_save_LIBS
! 12295: fi
! 12296: echo "$as_me:12296: result: $ac_cv_lib_dld_shl_load" >&5
! 12297: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 12298: if test $ac_cv_lib_dld_shl_load = yes; then
! 12299: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 12300: else
! 12301: echo "$as_me:12301: checking for dlopen" >&5
! 12302: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 12303: if test "${ac_cv_func_dlopen+set}" = set; then
! 12304: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12305: else
! 12306: cat >conftest.$ac_ext <<_ACEOF
! 12307: #line 12307 "configure"
! 12308: #include "confdefs.h"
! 12309: /* System header to define __stub macros and hopefully few prototypes,
! 12310: which can conflict with char dlopen (); below. */
! 12311: #include <assert.h>
! 12312: /* Override any gcc2 internal prototype to avoid an error. */
! 12313: #ifdef __cplusplus
! 12314: extern "C"
! 12315: #endif
! 12316: /* We use char because int might match the return type of a gcc2
! 12317: builtin and then its argument prototype would still apply. */
! 12318: char dlopen ();
! 12319: char (*f) ();
! 12320:
! 12321: int
! 12322: main ()
! 12323: {
! 12324: /* The GNU C library defines this for functions which it implements
! 12325: to always fail with ENOSYS. Some functions are actually named
! 12326: something starting with __ and the normal name is an alias. */
! 12327: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 12328: choke me
! 12329: #else
! 12330: f = dlopen;
! 12331: #endif
! 12332:
! 12333: ;
! 12334: return 0;
! 12335: }
! 12336: _ACEOF
! 12337: rm -f conftest.$ac_objext conftest$ac_exeext
! 12338: if { (eval echo "$as_me:12338: \"$ac_link\"") >&5
! 12339: (eval $ac_link) 2>&5
! 12340: ac_status=$?
! 12341: echo "$as_me:12341: \$? = $ac_status" >&5
! 12342: (exit $ac_status); } &&
! 12343: { ac_try='test -s conftest$ac_exeext'
! 12344: { (eval echo "$as_me:12344: \"$ac_try\"") >&5
! 12345: (eval $ac_try) 2>&5
! 12346: ac_status=$?
! 12347: echo "$as_me:12347: \$? = $ac_status" >&5
! 12348: (exit $ac_status); }; }; then
! 12349: ac_cv_func_dlopen=yes
! 12350: else
! 12351: echo "$as_me: failed program was:" >&5
! 12352: cat conftest.$ac_ext >&5
! 12353: ac_cv_func_dlopen=no
! 12354: fi
! 12355: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12356: fi
! 12357: echo "$as_me:12357: result: $ac_cv_func_dlopen" >&5
! 12358: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 12359: if test $ac_cv_func_dlopen = yes; then
! 12360: lt_cv_dlopen="dlopen"
! 12361: else
! 12362: echo "$as_me:12362: checking for dlopen in -ldl" >&5
! 12363: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 12364: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 12365: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12366: else
! 12367: ac_check_lib_save_LIBS=$LIBS
! 12368: LIBS="-ldl $LIBS"
! 12369: cat >conftest.$ac_ext <<_ACEOF
! 12370: #line 12370 "configure"
! 12371: #include "confdefs.h"
! 12372:
! 12373: /* Override any gcc2 internal prototype to avoid an error. */
! 12374: #ifdef __cplusplus
! 12375: extern "C"
! 12376: #endif
! 12377: /* We use char because int might match the return type of a gcc2
! 12378: builtin and then its argument prototype would still apply. */
! 12379: char dlopen ();
! 12380: int
! 12381: main ()
! 12382: {
! 12383: dlopen ();
! 12384: ;
! 12385: return 0;
! 12386: }
! 12387: _ACEOF
! 12388: rm -f conftest.$ac_objext conftest$ac_exeext
! 12389: if { (eval echo "$as_me:12389: \"$ac_link\"") >&5
! 12390: (eval $ac_link) 2>&5
! 12391: ac_status=$?
! 12392: echo "$as_me:12392: \$? = $ac_status" >&5
! 12393: (exit $ac_status); } &&
! 12394: { ac_try='test -s conftest$ac_exeext'
! 12395: { (eval echo "$as_me:12395: \"$ac_try\"") >&5
! 12396: (eval $ac_try) 2>&5
! 12397: ac_status=$?
! 12398: echo "$as_me:12398: \$? = $ac_status" >&5
! 12399: (exit $ac_status); }; }; then
! 12400: ac_cv_lib_dl_dlopen=yes
! 12401: else
! 12402: echo "$as_me: failed program was:" >&5
! 12403: cat conftest.$ac_ext >&5
! 12404: ac_cv_lib_dl_dlopen=no
! 12405: fi
! 12406: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12407: LIBS=$ac_check_lib_save_LIBS
! 12408: fi
! 12409: echo "$as_me:12409: result: $ac_cv_lib_dl_dlopen" >&5
! 12410: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 12411: if test $ac_cv_lib_dl_dlopen = yes; then
! 12412: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 12413: else
! 12414: echo "$as_me:12414: checking for dlopen in -lsvld" >&5
! 12415: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 12416: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 12417: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12418: else
! 12419: ac_check_lib_save_LIBS=$LIBS
! 12420: LIBS="-lsvld $LIBS"
! 12421: cat >conftest.$ac_ext <<_ACEOF
! 12422: #line 12422 "configure"
! 12423: #include "confdefs.h"
! 12424:
! 12425: /* Override any gcc2 internal prototype to avoid an error. */
! 12426: #ifdef __cplusplus
! 12427: extern "C"
! 12428: #endif
! 12429: /* We use char because int might match the return type of a gcc2
! 12430: builtin and then its argument prototype would still apply. */
! 12431: char dlopen ();
! 12432: int
! 12433: main ()
! 12434: {
! 12435: dlopen ();
! 12436: ;
! 12437: return 0;
! 12438: }
! 12439: _ACEOF
! 12440: rm -f conftest.$ac_objext conftest$ac_exeext
! 12441: if { (eval echo "$as_me:12441: \"$ac_link\"") >&5
! 12442: (eval $ac_link) 2>&5
! 12443: ac_status=$?
! 12444: echo "$as_me:12444: \$? = $ac_status" >&5
! 12445: (exit $ac_status); } &&
! 12446: { ac_try='test -s conftest$ac_exeext'
! 12447: { (eval echo "$as_me:12447: \"$ac_try\"") >&5
! 12448: (eval $ac_try) 2>&5
! 12449: ac_status=$?
! 12450: echo "$as_me:12450: \$? = $ac_status" >&5
! 12451: (exit $ac_status); }; }; then
! 12452: ac_cv_lib_svld_dlopen=yes
! 12453: else
! 12454: echo "$as_me: failed program was:" >&5
! 12455: cat conftest.$ac_ext >&5
! 12456: ac_cv_lib_svld_dlopen=no
! 12457: fi
! 12458: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12459: LIBS=$ac_check_lib_save_LIBS
! 12460: fi
! 12461: echo "$as_me:12461: result: $ac_cv_lib_svld_dlopen" >&5
! 12462: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 12463: if test $ac_cv_lib_svld_dlopen = yes; then
! 12464: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 12465: else
! 12466: echo "$as_me:12466: checking for dld_link in -ldld" >&5
! 12467: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 12468: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 12469: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12470: else
! 12471: ac_check_lib_save_LIBS=$LIBS
! 12472: LIBS="-ldld $LIBS"
! 12473: cat >conftest.$ac_ext <<_ACEOF
! 12474: #line 12474 "configure"
! 12475: #include "confdefs.h"
! 12476:
! 12477: /* Override any gcc2 internal prototype to avoid an error. */
! 12478: #ifdef __cplusplus
! 12479: extern "C"
! 12480: #endif
! 12481: /* We use char because int might match the return type of a gcc2
! 12482: builtin and then its argument prototype would still apply. */
! 12483: char dld_link ();
! 12484: int
! 12485: main ()
! 12486: {
! 12487: dld_link ();
! 12488: ;
! 12489: return 0;
! 12490: }
! 12491: _ACEOF
! 12492: rm -f conftest.$ac_objext conftest$ac_exeext
! 12493: if { (eval echo "$as_me:12493: \"$ac_link\"") >&5
! 12494: (eval $ac_link) 2>&5
! 12495: ac_status=$?
! 12496: echo "$as_me:12496: \$? = $ac_status" >&5
! 12497: (exit $ac_status); } &&
! 12498: { ac_try='test -s conftest$ac_exeext'
! 12499: { (eval echo "$as_me:12499: \"$ac_try\"") >&5
! 12500: (eval $ac_try) 2>&5
! 12501: ac_status=$?
! 12502: echo "$as_me:12502: \$? = $ac_status" >&5
! 12503: (exit $ac_status); }; }; then
! 12504: ac_cv_lib_dld_dld_link=yes
! 12505: else
! 12506: echo "$as_me: failed program was:" >&5
! 12507: cat conftest.$ac_ext >&5
! 12508: ac_cv_lib_dld_dld_link=no
! 12509: fi
! 12510: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12511: LIBS=$ac_check_lib_save_LIBS
! 12512: fi
! 12513: echo "$as_me:12513: result: $ac_cv_lib_dld_dld_link" >&5
! 12514: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 12515: if test $ac_cv_lib_dld_dld_link = yes; then
! 12516: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 12517: fi
! 12518:
! 12519: fi
! 12520:
! 12521: fi
! 12522:
! 12523: fi
! 12524:
! 12525: fi
! 12526:
! 12527: fi
! 12528:
! 12529: ;;
! 12530: esac
! 12531:
! 12532: if test "x$lt_cv_dlopen" != xno; then
! 12533: enable_dlopen=yes
! 12534: else
! 12535: enable_dlopen=no
! 12536: fi
! 12537:
! 12538: case $lt_cv_dlopen in
! 12539: dlopen)
! 12540: save_CPPFLAGS="$CPPFLAGS"
! 12541: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 12542:
! 12543: save_LDFLAGS="$LDFLAGS"
! 12544: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 12545:
! 12546: save_LIBS="$LIBS"
! 12547: LIBS="$lt_cv_dlopen_libs $LIBS"
! 12548:
! 12549: echo "$as_me:12549: checking whether a program can dlopen itself" >&5
! 12550: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 12551: if test "${lt_cv_dlopen_self+set}" = set; then
! 12552: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12553: else
! 12554: if test "$cross_compiling" = yes; then :
! 12555: lt_cv_dlopen_self=cross
! 12556: else
! 12557: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 12558: lt_status=$lt_dlunknown
! 12559: cat > conftest.$ac_ext <<EOF
! 12560: #line 12560 "configure"
! 12561: #include "confdefs.h"
! 12562:
! 12563: #if HAVE_DLFCN_H
! 12564: #include <dlfcn.h>
! 12565: #endif
! 12566:
! 12567: #include <stdio.h>
! 12568:
! 12569: #ifdef RTLD_GLOBAL
! 12570: # define LT_DLGLOBAL RTLD_GLOBAL
! 12571: #else
! 12572: # ifdef DL_GLOBAL
! 12573: # define LT_DLGLOBAL DL_GLOBAL
! 12574: # else
! 12575: # define LT_DLGLOBAL 0
! 12576: # endif
! 12577: #endif
! 12578:
! 12579: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 12580: find out it does not work in some platform. */
! 12581: #ifndef LT_DLLAZY_OR_NOW
! 12582: # ifdef RTLD_LAZY
! 12583: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 12584: # else
! 12585: # ifdef DL_LAZY
! 12586: # define LT_DLLAZY_OR_NOW DL_LAZY
! 12587: # else
! 12588: # ifdef RTLD_NOW
! 12589: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 12590: # else
! 12591: # ifdef DL_NOW
! 12592: # define LT_DLLAZY_OR_NOW DL_NOW
! 12593: # else
! 12594: # define LT_DLLAZY_OR_NOW 0
! 12595: # endif
! 12596: # endif
! 12597: # endif
! 12598: # endif
! 12599: #endif
! 12600:
! 12601: #ifdef __cplusplus
! 12602: extern "C" void exit (int);
! 12603: #endif
! 12604:
! 12605: void fnord() { int i=42;}
! 12606: int main ()
! 12607: {
! 12608: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 12609: int status = $lt_dlunknown;
! 12610:
! 12611: if (self)
! 12612: {
! 12613: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 12614: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 12615: /* dlclose (self); */
! 12616: }
! 12617:
! 12618: exit (status);
! 12619: }
! 12620: EOF
! 12621: if { (eval echo "$as_me:12621: \"$ac_link\"") >&5
! 12622: (eval $ac_link) 2>&5
! 12623: ac_status=$?
! 12624: echo "$as_me:12624: \$? = $ac_status" >&5
! 12625: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 12626: (./conftest; exit; ) 2>/dev/null
! 12627: lt_status=$?
! 12628: case x$lt_status in
! 12629: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 12630: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 12631: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 12632: esac
! 12633: else :
! 12634: # compilation failed
! 12635: lt_cv_dlopen_self=no
! 12636: fi
! 12637: fi
! 12638: rm -fr conftest*
! 12639:
! 12640: fi
! 12641: echo "$as_me:12641: result: $lt_cv_dlopen_self" >&5
! 12642: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 12643:
! 12644: if test "x$lt_cv_dlopen_self" = xyes; then
! 12645: LDFLAGS="$LDFLAGS $link_static_flag"
! 12646: echo "$as_me:12646: checking whether a statically linked program can dlopen itself" >&5
! 12647: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 12648: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 12649: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12650: else
! 12651: if test "$cross_compiling" = yes; then :
! 12652: lt_cv_dlopen_self_static=cross
! 12653: else
! 12654: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 12655: lt_status=$lt_dlunknown
! 12656: cat > conftest.$ac_ext <<EOF
! 12657: #line 12657 "configure"
! 12658: #include "confdefs.h"
! 12659:
! 12660: #if HAVE_DLFCN_H
! 12661: #include <dlfcn.h>
! 12662: #endif
! 12663:
! 12664: #include <stdio.h>
! 12665:
! 12666: #ifdef RTLD_GLOBAL
! 12667: # define LT_DLGLOBAL RTLD_GLOBAL
! 12668: #else
! 12669: # ifdef DL_GLOBAL
! 12670: # define LT_DLGLOBAL DL_GLOBAL
! 12671: # else
! 12672: # define LT_DLGLOBAL 0
! 12673: # endif
! 12674: #endif
! 12675:
! 12676: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 12677: find out it does not work in some platform. */
! 12678: #ifndef LT_DLLAZY_OR_NOW
! 12679: # ifdef RTLD_LAZY
! 12680: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 12681: # else
! 12682: # ifdef DL_LAZY
! 12683: # define LT_DLLAZY_OR_NOW DL_LAZY
! 12684: # else
! 12685: # ifdef RTLD_NOW
! 12686: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 12687: # else
! 12688: # ifdef DL_NOW
! 12689: # define LT_DLLAZY_OR_NOW DL_NOW
! 12690: # else
! 12691: # define LT_DLLAZY_OR_NOW 0
! 12692: # endif
! 12693: # endif
! 12694: # endif
! 12695: # endif
! 12696: #endif
! 12697:
! 12698: #ifdef __cplusplus
! 12699: extern "C" void exit (int);
! 12700: #endif
! 12701:
! 12702: void fnord() { int i=42;}
! 12703: int main ()
! 12704: {
! 12705: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 12706: int status = $lt_dlunknown;
! 12707:
! 12708: if (self)
! 12709: {
! 12710: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 12711: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 12712: /* dlclose (self); */
! 12713: }
! 12714:
! 12715: exit (status);
! 12716: }
! 12717: EOF
! 12718: if { (eval echo "$as_me:12718: \"$ac_link\"") >&5
! 12719: (eval $ac_link) 2>&5
! 12720: ac_status=$?
! 12721: echo "$as_me:12721: \$? = $ac_status" >&5
! 12722: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 12723: (./conftest; exit; ) 2>/dev/null
! 12724: lt_status=$?
! 12725: case x$lt_status in
! 12726: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 12727: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 12728: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 12729: esac
! 12730: else :
! 12731: # compilation failed
! 12732: lt_cv_dlopen_self_static=no
! 12733: fi
! 12734: fi
! 12735: rm -fr conftest*
! 12736:
! 12737: fi
! 12738: echo "$as_me:12738: result: $lt_cv_dlopen_self_static" >&5
! 12739: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 12740: fi
! 12741:
! 12742: CPPFLAGS="$save_CPPFLAGS"
! 12743: LDFLAGS="$save_LDFLAGS"
! 12744: LIBS="$save_LIBS"
! 12745: ;;
! 12746: esac
! 12747:
! 12748: case $lt_cv_dlopen_self in
! 12749: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 12750: *) enable_dlopen_self=unknown ;;
! 12751: esac
! 12752:
! 12753: case $lt_cv_dlopen_self_static in
! 12754: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 12755: *) enable_dlopen_self_static=unknown ;;
! 12756: esac
! 12757: fi
! 12758:
! 12759: # The else clause should only fire when bootstrapping the
! 12760: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 12761: # with your package, and you will get complaints that there are
! 12762: # no rules to generate ltmain.sh.
! 12763: if test -f "$ltmain"; then
! 12764: # Now quote all the things that may contain metacharacters while being
! 12765: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 12766: # variables and quote the copies for generation of the libtool script.
! 12767: for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \
! 12768: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 12769: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 12770: deplibs_check_method reload_flag reload_cmds need_locks \
! 12771: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 12772: lt_cv_sys_global_symbol_to_c_name_address \
! 12773: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 12774: old_postinstall_cmds old_postuninstall_cmds \
! 12775: HOST_CC \
! 12776: compiler_CXX \
! 12777: CC_CXX \
! 12778: LD_CXX \
! 12779: lt_prog_compiler_wl_CXX \
! 12780: lt_prog_compiler_pic_CXX \
! 12781: lt_prog_compiler_static_CXX \
! 12782: lt_prog_compiler_no_builtin_flag_CXX \
! 12783: export_dynamic_flag_spec_CXX \
! 12784: thread_safe_flag_spec_CXX \
! 12785: whole_archive_flag_spec_CXX \
! 12786: old_archive_cmds_CXX \
! 12787: old_archive_from_new_cmds_CXX \
! 12788: predep_objects_CXX \
! 12789: postdep_objects_CXX \
! 12790: predeps_CXX \
! 12791: postdeps_CXX \
! 12792: compiler_lib_search_path_CXX \
! 12793: archive_cmds_CXX \
! 12794: archive_expsym_cmds_CXX \
! 12795: postinstall_cmds_CXX \
! 12796: postuninstall_cmds_CXX \
! 12797: old_archive_from_expsyms_cmds_CXX \
! 12798: allow_undefined_flag_CXX \
! 12799: no_undefined_flag_CXX \
! 12800: export_symbols_cmds_CXX \
! 12801: hardcode_libdir_flag_spec_CXX \
! 12802: hardcode_libdir_separator_CXX \
! 12803: lt_cv_prog_compiler_c_o_CXX \
! 12804: exclude_expsyms_CXX \
! 12805: include_expsyms_CXX; do
! 12806:
! 12807: case $var in
! 12808: old_archive_cmds_CXX | \
! 12809: old_archive_from_new_cmds_CXX | \
! 12810: archive_cmds_CXX | \
! 12811: archive_expsym_cmds_CXX | \
! 12812: old_archive_from_expsyms_cmds_CXX | \
! 12813: export_symbols_cmds_CXX | \
! 12814: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 12815: postinstall_cmds | postuninstall_cmds | \
! 12816: old_postinstall_cmds | old_postuninstall_cmds | \
! 12817: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 12818: # Double-quote double-evaled strings.
! 12819: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 12820: ;;
! 12821: *)
! 12822: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 12823: ;;
! 12824: esac
! 12825: done
! 12826:
! 12827: case $lt_echo in
! 12828: *'\$0 --fallback-echo"')
! 12829: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 12830: ;;
! 12831: esac
! 12832:
! 12833: cfgfile="$ofile"
! 12834:
! 12835: cat <<__EOF__ >> "$cfgfile"
! 12836: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 12837:
! 12838: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 12839:
! 12840: # Shell to use when invoking shell scripts.
! 12841: SHELL=$lt_SHELL
! 12842:
! 12843: # Whether or not to build shared libraries.
! 12844: build_libtool_libs=$enable_shared
! 12845:
! 12846: # Whether or not to build static libraries.
! 12847: build_old_libs=$enable_static
! 12848:
! 12849: # Whether or not to add -lc for building shared libraries.
! 12850: build_libtool_need_lc=$archive_cmds_need_lc_CXX
! 12851:
! 12852: # Whether or not to optimize for fast installation.
! 12853: fast_install=$enable_fast_install
! 12854:
! 12855: # The host system.
! 12856: host_alias=$host_alias
! 12857: host=$host
! 12858:
! 12859: # An echo program that does not interpret backslashes.
! 12860: echo=$lt_echo
! 12861:
! 12862: # The archiver.
! 12863: AR=$lt_AR
! 12864: AR_FLAGS=$lt_AR_FLAGS
! 12865:
! 12866: # A C compiler.
! 12867: LTCC=$lt_LTCC
! 12868:
! 12869: # A C compiler for the build system.
! 12870: HOST_CC=$lt_HOST_CC
! 12871:
! 12872: # A language-specific compiler.
! 12873: CC=$lt_compiler_CXX
! 12874:
! 12875: # Is the compiler the GNU C compiler?
! 12876: with_gcc=$GCC_CXX
! 12877:
! 12878: # The linker used to build libraries.
! 12879: LD=$lt_LD_CXX
! 12880:
! 12881: # Whether we need hard or soft links.
! 12882: LN_S=$lt_LN_S
! 12883:
! 12884: # A BSD-compatible nm program.
! 12885: NM=$lt_NM
! 12886:
! 12887: # A symbol stripping program
! 12888: STRIP=$STRIP
! 12889:
! 12890: # Used to examine libraries when file_magic_cmd begins "file"
! 12891: MAGIC_CMD=$MAGIC_CMD
! 12892:
! 12893: # Used on cygwin: DLL creation program.
! 12894: DLLTOOL="$DLLTOOL"
! 12895:
! 12896: # Used on cygwin: object dumper.
! 12897: OBJDUMP="$OBJDUMP"
! 12898:
! 12899: # Used on cygwin: assembler.
! 12900: AS="$AS"
! 12901:
! 12902: # The name of the directory that contains temporary libtool files.
! 12903: objdir=$objdir
! 12904:
! 12905: # How to create reloadable object files.
! 12906: reload_flag=$lt_reload_flag
! 12907: reload_cmds=$lt_reload_cmds
! 12908:
! 12909: # How to pass a linker flag through the compiler.
! 12910: wl=$lt_lt_prog_compiler_wl_CXX
! 12911:
! 12912: # Object file suffix (normally "o").
! 12913: objext="$ac_objext"
! 12914:
! 12915: # Old archive suffix (normally "a").
! 12916: libext="$libext"
! 12917:
! 12918: # Executable file suffix (normally "").
! 12919: exeext="$exeext"
! 12920:
! 12921: # Additional compiler flags for building library objects.
! 12922: pic_flag=$lt_lt_prog_compiler_pic_CXX
! 12923: pic_mode=$pic_mode
! 12924:
! 12925: # What is the maximum length of a command?
! 12926: max_cmd_len=$lt_cv_sys_max_cmd_len
! 12927:
! 12928: # Does compiler simultaneously support -c and -o options?
! 12929: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
! 12930:
! 12931: # Must we lock files when doing compilation ?
! 12932: need_locks=$lt_need_locks
! 12933:
! 12934: # Do we need the lib prefix for modules?
! 12935: need_lib_prefix=$need_lib_prefix
! 12936:
! 12937: # Do we need a version for libraries?
! 12938: need_version=$need_version
! 12939:
! 12940: # Whether dlopen is supported.
! 12941: dlopen_support=$enable_dlopen
! 12942:
! 12943: # Whether dlopen of programs is supported.
! 12944: dlopen_self=$enable_dlopen_self
! 12945:
! 12946: # Whether dlopen of statically linked programs is supported.
! 12947: dlopen_self_static=$enable_dlopen_self_static
! 12948:
! 12949: # Compiler flag to prevent dynamic linking.
! 12950: link_static_flag=$lt_lt_prog_compiler_static_CXX
! 12951:
! 12952: # Compiler flag to turn off builtin functions.
! 12953: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
! 12954:
! 12955: # Compiler flag to allow reflexive dlopens.
! 12956: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
! 12957:
! 12958: # Compiler flag to generate shared objects directly from archives.
! 12959: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
! 12960:
! 12961: # Compiler flag to generate thread-safe objects.
! 12962: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
! 12963:
! 12964: # Library versioning type.
! 12965: version_type=$version_type
! 12966:
! 12967: # Format of library name prefix.
! 12968: libname_spec=$lt_libname_spec
! 12969:
! 12970: # List of archive names. First name is the real one, the rest are links.
! 12971: # The last name is the one that the linker finds with -lNAME.
! 12972: library_names_spec=$lt_library_names_spec
! 12973:
! 12974: # The coded name of the library, if different from the real name.
! 12975: soname_spec=$lt_soname_spec
! 12976:
! 12977: # Commands used to build and install an old-style archive.
! 12978: RANLIB=$lt_RANLIB
! 12979: old_archive_cmds=$lt_old_archive_cmds_CXX
! 12980: old_postinstall_cmds=$lt_old_postinstall_cmds
! 12981: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 12982:
! 12983: # Create an old-style archive from a shared archive.
! 12984: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
! 12985:
! 12986: # Create a temporary old-style archive to link instead of a shared archive.
! 12987: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
! 12988:
! 12989: # Commands used to build and install a shared archive.
! 12990: archive_cmds=$lt_archive_cmds_CXX
! 12991: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
! 12992: postinstall_cmds=$lt_postinstall_cmds
! 12993: postuninstall_cmds=$lt_postuninstall_cmds
! 12994:
! 12995: # Commands to strip libraries.
! 12996: old_striplib=$lt_old_striplib
! 12997: striplib=$lt_striplib
! 12998:
! 12999: # Dependencies to place before the objects being linked to create a
! 13000: # shared library.
! 13001: predep_objects=$lt_predep_objects_CXX
! 13002:
! 13003: # Dependencies to place after the objects being linked to create a
! 13004: # shared library.
! 13005: postdep_objects=$lt_postdep_objects_CXX
! 13006:
! 13007: # Dependencies to place before the objects being linked to create a
! 13008: # shared library.
! 13009: predeps=$lt_predeps_CXX
! 13010:
! 13011: # Dependencies to place after the objects being linked to create a
! 13012: # shared library.
! 13013: postdeps=$lt_postdeps_CXX
! 13014:
! 13015: # The library search path used internally by the compiler when linking
! 13016: # a shared library.
! 13017: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
! 13018:
! 13019: # Method to check whether dependent libraries are shared objects.
! 13020: deplibs_check_method=$lt_deplibs_check_method
! 13021:
! 13022: # Command to use when deplibs_check_method == file_magic.
! 13023: file_magic_cmd=$lt_file_magic_cmd
! 13024:
! 13025: # Flag that allows shared libraries with undefined symbols to be built.
! 13026: allow_undefined_flag=$lt_allow_undefined_flag_CXX
! 13027:
! 13028: # Flag that forces no undefined symbols.
! 13029: no_undefined_flag=$lt_no_undefined_flag_CXX
! 13030:
! 13031: # Commands used to finish a libtool library installation in a directory.
! 13032: finish_cmds=$lt_finish_cmds
! 13033:
! 13034: # Same as above, but a single script fragment to be evaled but not shown.
! 13035: finish_eval=$lt_finish_eval
! 13036:
! 13037: # Take the output of nm and produce a listing of raw symbols and C names.
! 13038: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 13039:
! 13040: # Transform the output of nm in a proper C declaration
! 13041: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 13042:
! 13043: # Transform the output of nm in a C name address pair
! 13044: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 13045:
! 13046: # This is the shared library runtime path variable.
! 13047: runpath_var=$runpath_var
! 13048:
! 13049: # This is the shared library path variable.
! 13050: shlibpath_var=$shlibpath_var
! 13051:
! 13052: # Is shlibpath searched before the hard-coded library search path?
! 13053: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 13054:
! 13055: # How to hardcode a shared library path into an executable.
! 13056: hardcode_action=$hardcode_action_CXX
! 13057:
! 13058: # Whether we should hardcode library paths into libraries.
! 13059: hardcode_into_libs=$hardcode_into_libs
! 13060:
! 13061: # Flag to hardcode \$libdir into a binary during linking.
! 13062: # This must work even if \$libdir does not exist.
! 13063: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
! 13064:
! 13065: # Whether we need a single -rpath flag with a separated argument.
! 13066: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
! 13067:
! 13068: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 13069: # resulting binary.
! 13070: hardcode_direct=$hardcode_direct_CXX
! 13071:
! 13072: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 13073: # resulting binary.
! 13074: hardcode_minus_L=$hardcode_minus_L_CXX
! 13075:
! 13076: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 13077: # the resulting binary.
! 13078: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
! 13079:
! 13080: # Variables whose values should be saved in libtool wrapper scripts and
! 13081: # restored at relink time.
! 13082: variables_saved_for_relink="$variables_saved_for_relink"
! 13083:
! 13084: # Whether libtool must link a program against all its dependency libraries.
! 13085: link_all_deplibs=$link_all_deplibs_CXX
! 13086:
! 13087: # Compile-time system search path for libraries
! 13088: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 13089:
! 13090: # Run-time system search path for libraries
! 13091: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 13092:
! 13093: # Fix the shell variable \$srcfile for the compiler.
! 13094: fix_srcfile_path="$fix_srcfile_path_CXX"
! 13095:
! 13096: # Set to yes if exported symbols are required.
! 13097: always_export_symbols=$always_export_symbols_CXX
! 13098:
! 13099: # The commands to list exported symbols.
! 13100: export_symbols_cmds=$lt_export_symbols_cmds_CXX
! 13101:
! 13102: # The commands to extract the exported symbol list from a shared archive.
! 13103: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 13104:
! 13105: # Symbols that should not be listed in the preloaded symbols.
! 13106: exclude_expsyms=$lt_exclude_expsyms_CXX
! 13107:
! 13108: # Symbols that must always be exported.
! 13109: include_expsyms=$lt_include_expsyms_CXX
! 13110:
! 13111: # ### END LIBTOOL TAG CONFIG: $tagname
! 13112:
! 13113: __EOF__
! 13114:
! 13115: else
! 13116: # If there is no Makefile yet, we rely on a make rule to execute
! 13117: # `config.status --recheck' to rerun these tests and create the
! 13118: # libtool script then.
! 13119: test -f Makefile && make "$ltmain"
! 13120: fi
! 13121:
! 13122: ac_ext=c
! 13123: ac_cpp='$CPP $CPPFLAGS'
! 13124: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 13125: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 13126: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 13127:
! 13128: CC="$lt_save_CC"
! 13129:
! 13130: ;;
! 13131:
! 13132: GCJ)
! 13133:
! 13134: # Source file extension for C test sources.
! 13135: ac_ext=java
! 13136:
! 13137: # Object file extension for compiled C test sources.
! 13138: objext=o
! 13139: objext_GCJ=$objext
! 13140:
! 13141: # Code to be used in simple compile tests
! 13142: lt_simple_compile_test_code="class foo {}"
! 13143:
! 13144: # Code to be used in simple link tests
! 13145: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
! 13146:
! 13147: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 13148:
! 13149: # If no C compiler was specified, use CC.
! 13150: LTCC=${LTCC-"$CC"}
! 13151:
! 13152: # Allow CC to be a program name with arguments.
! 13153: set dummy $CC
! 13154: compiler="$2"
! 13155:
! 13156: # Allow CC to be a program name with arguments.
! 13157: lt_save_CC="$CC"
! 13158: CC=${GCJ-"gcj"}
! 13159: set dummy $CC
! 13160: compiler="$2"
! 13161: compiler_GCJ=$CC
! 13162:
! 13163: # GCJ did not exist at the time GCC didn't implicitly link libc in.
! 13164: archive_cmds_need_lc_GCJ=no
! 13165:
! 13166: lt_prog_compiler_no_builtin_flag_GCJ=
! 13167:
! 13168: if test "$GCC" = yes; then
! 13169: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
! 13170:
! 13171: echo "$as_me:13171: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 13172: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 13173: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 13174: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13175: else
! 13176: lt_cv_prog_compiler_rtti_exceptions=no
! 13177: ac_outfile=conftest.$ac_objext
! 13178: save_CFLAGS="$CFLAGS"
! 13179: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
! 13180: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 13181: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
! 13182: # The compiler can only warn and ignore the option if not recognized
! 13183: # So say no if there are warnings mentioning the option
! 13184: cat conftest.err 1>&5
! 13185: lt_cv_prog_compiler_rtti_exceptions=yes
! 13186: for lt_i in -fno-rtti -fno-exceptions -c conftest.$ac_ext; do
! 13187: if grep -- $lt_i conftest.err >/dev/null; then
! 13188: lt_cv_prog_compiler_rtti_exceptions=no
! 13189: fi
! 13190: done
! 13191: fi
! 13192: $rm conftest*
! 13193: CFLAGS="$save_CFLAGS"
! 13194:
! 13195: fi
! 13196: echo "$as_me:13196: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 13197: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
! 13198:
! 13199: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 13200: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
! 13201: else
! 13202: :
! 13203: fi
! 13204:
! 13205: fi
! 13206:
! 13207: lt_prog_compiler_wl_GCJ=
! 13208: lt_prog_compiler_pic_GCJ=
! 13209: lt_prog_compiler_static_GCJ=
! 13210:
! 13211: echo "$as_me:13211: checking for $compiler option to produce PIC" >&5
! 13212: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 13213:
! 13214: if test "$GCC" = yes; then
! 13215: lt_prog_compiler_wl_GCJ='-Wl,'
! 13216: lt_prog_compiler_static_GCJ='-static'
! 13217:
! 13218: case $host_os in
! 13219: aix*)
! 13220: # All AIX code is PIC.
! 13221: if test "$host_cpu" = ia64; then
! 13222: # AIX 5 now supports IA64 processor
! 13223: lt_prog_compiler_static_GCJ='-Bstatic'
! 13224: fi
! 13225: ;;
! 13226:
! 13227: amigaos*)
! 13228: # FIXME: we need at least 68020 code to build shared libraries, but
! 13229: # adding the `-m68020' flag to GCC prevents building anything better,
! 13230: # like `-m68040'.
! 13231: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
! 13232: ;;
! 13233:
! 13234: beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
! 13235: # PIC is the default for these OSes.
! 13236: ;;
! 13237:
! 13238: cygwin* | mingw* | pw32* | os2*)
! 13239: # This hack is so that the source file can tell whether it is being
! 13240: # built for inclusion in a dll (and should export symbols for example).
! 13241: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 13242: ;;
! 13243:
! 13244: darwin* | rhapsody*)
! 13245: # PIC is the default on this platform
! 13246: # Common symbols not allowed in MH_DYLIB files
! 13247: lt_prog_compiler_pic_GCJ='-fno-common'
! 13248: ;;
! 13249:
! 13250: msdosdjgpp*)
! 13251: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 13252: # on systems that don't support them.
! 13253: lt_prog_compiler_can_build_shared_GCJ=no
! 13254: enable_shared=no
! 13255: ;;
! 13256:
! 13257: sysv4*MP*)
! 13258: if test -d /usr/nec; then
! 13259: lt_prog_compiler_pic_GCJ=-Kconform_pic
! 13260: fi
! 13261: ;;
! 13262:
! 13263: hpux*)
! 13264: # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
! 13265: if test "$host_cpu" != ia64; then
! 13266: lt_prog_compiler_pic_GCJ='-fPIC'
! 13267: fi
! 13268: ;;
! 13269:
! 13270: *)
! 13271: lt_prog_compiler_pic_GCJ='-fPIC'
! 13272: ;;
! 13273: esac
! 13274: else
! 13275: # PORTME Check for flag to pass linker flags through the system compiler.
! 13276: case $host_os in
! 13277: aix*)
! 13278: lt_prog_compiler_wl_GCJ='-Wl,'
! 13279: if test "$host_cpu" = ia64; then
! 13280: # AIX 5 now supports IA64 processor
! 13281: lt_prog_compiler_static_GCJ='-Bstatic'
! 13282: else
! 13283: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
! 13284: fi
! 13285: ;;
! 13286:
! 13287: cygwin* | mingw* | pw32* | os2*)
! 13288: # This hack is so that the source file can tell whether it is being
! 13289: # built for inclusion in a dll (and should export symbols for example).
! 13290: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 13291: ;;
! 13292:
! 13293: hpux9* | hpux10* | hpux11*)
! 13294: lt_prog_compiler_wl_GCJ='-Wl,'
! 13295: if test "$host_cpu" != ia64; then
! 13296: lt_prog_compiler_pic_GCJ='+Z'
! 13297: fi
! 13298: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 13299: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
! 13300: ;;
! 13301:
! 13302: irix5* | irix6*)
! 13303: lt_prog_compiler_wl_GCJ='-Wl,'
! 13304: # PIC (with -KPIC) is the default.
! 13305: lt_prog_compiler_static_GCJ='-non_shared'
! 13306: ;;
! 13307:
! 13308: newsos6)
! 13309: lt_prog_compiler_pic_GCJ='-KPIC'
! 13310: lt_prog_compiler_static_GCJ='-Bstatic'
! 13311: ;;
! 13312:
! 13313: osf3* | osf4* | osf5*)
! 13314: lt_prog_compiler_wl_GCJ='-Wl,'
! 13315: # All OSF/1 code is PIC.
! 13316: lt_prog_compiler_static_GCJ='-non_shared'
! 13317: ;;
! 13318:
! 13319: sco3.2v5*)
! 13320: lt_prog_compiler_pic_GCJ='-Kpic'
! 13321: lt_prog_compiler_static_GCJ='-dn'
! 13322: ;;
! 13323:
! 13324: solaris*)
! 13325: lt_prog_compiler_wl_GCJ='-Wl,'
! 13326: lt_prog_compiler_pic_GCJ='-KPIC'
! 13327: lt_prog_compiler_static_GCJ='-Bstatic'
! 13328: ;;
! 13329:
! 13330: sunos4*)
! 13331: lt_prog_compiler_wl_GCJ='-Qoption ld '
! 13332: lt_prog_compiler_pic_GCJ='-PIC'
! 13333: lt_prog_compiler_static_GCJ='-Bstatic'
! 13334: ;;
! 13335:
! 13336: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 13337: if test "x$host_vendor" = xsni; then
! 13338: lt_prog_compiler_wl_GCJ='-LD'
! 13339: else
! 13340: lt_prog_compiler_wl_GCJ='-Wl,'
! 13341: fi
! 13342: lt_prog_compiler_pic_GCJ='-KPIC'
! 13343: lt_prog_compiler_static_GCJ='-Bstatic'
! 13344: ;;
! 13345:
! 13346: sysv4*MP*)
! 13347: if test -d /usr/nec ;then
! 13348: lt_prog_compiler_pic_GCJ='-Kconform_pic'
! 13349: lt_prog_compiler_static_GCJ='-Bstatic'
! 13350: fi
! 13351: ;;
! 13352:
! 13353: uts4*)
! 13354: lt_prog_compiler_pic_GCJ='-pic'
! 13355: lt_prog_compiler_static_GCJ='-Bstatic'
! 13356: ;;
! 13357:
! 13358: *)
! 13359: lt_prog_compiler_can_build_shared_GCJ=no
! 13360: ;;
! 13361: esac
! 13362: fi
! 13363:
! 13364: echo "$as_me:13364: result: $lt_prog_compiler_pic_GCJ" >&5
! 13365: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
! 13366:
! 13367: #
! 13368: # Check to make sure the PIC flag actually works.
! 13369: #
! 13370: if test -n "$lt_prog_compiler_pic_GCJ"; then
! 13371: echo "$as_me:13371: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
! 13372: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
! 13373: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
! 13374: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13375: else
! 13376: lt_prog_compiler_pic_works_GCJ=no
! 13377: ac_outfile=conftest.$ac_objext
! 13378: save_CFLAGS="$CFLAGS"
! 13379: CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
! 13380: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 13381: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
! 13382: # The compiler can only warn and ignore the option if not recognized
! 13383: # So say no if there are warnings mentioning the option
! 13384: cat conftest.err 1>&5
! 13385: lt_prog_compiler_pic_works_GCJ=yes
! 13386: for lt_i in $lt_prog_compiler_pic_GCJ -DPIC; do
! 13387: if grep -- $lt_i conftest.err >/dev/null; then
! 13388: lt_prog_compiler_pic_works_GCJ=no
! 13389: fi
! 13390: done
! 13391: fi
! 13392: $rm conftest*
! 13393: CFLAGS="$save_CFLAGS"
! 13394:
! 13395: fi
! 13396: echo "$as_me:13396: result: $lt_prog_compiler_pic_works_GCJ" >&5
! 13397: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
! 13398:
! 13399: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
! 13400: case $lt_prog_compiler_pic_GCJ in
! 13401: "" | " "*) ;;
! 13402: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
! 13403: esac
! 13404: else
! 13405: lt_prog_compiler_pic_GCJ=
! 13406: lt_prog_compiler_can_build_shared_GCJ=no
! 13407: fi
! 13408:
! 13409: fi
! 13410: case "$host_os" in
! 13411: # For platforms which do not support PIC, -DPIC is meaningless:
! 13412: *djgpp*)
! 13413: lt_prog_compiler_pic_GCJ=
! 13414: ;;
! 13415: *)
! 13416: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
! 13417: ;;
! 13418: esac
! 13419:
! 13420: echo "$as_me:13420: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13421: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 13422: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
! 13423: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13424: else
! 13425: lt_cv_prog_compiler_c_o_GCJ=no
! 13426: $rm -r conftest 2>/dev/null
! 13427: mkdir conftest
! 13428: cd conftest
! 13429: mkdir out
! 13430: save_GCJFLAGS="$GCJFLAGS"
! 13431: GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
! 13432: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 13433:
! 13434: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 13435: # that will create temporary files in the current directory regardless of
! 13436: # the output directory. Thus, making CWD read-only will cause this test
! 13437: # to fail, enabling locking or at least warning the user not to do parallel
! 13438: # builds.
! 13439: chmod -w .
! 13440:
! 13441: if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
! 13442: then
! 13443: # The compiler can only warn and ignore the option if not recognized
! 13444: # So say no if there are warnings
! 13445: if test -s out/conftest.err; then
! 13446: # Append any errors to the config.log.
! 13447: cat out/conftest.err 1>&5
! 13448: else
! 13449: lt_cv_prog_compiler_c_o_GCJ=yes
! 13450: fi
! 13451: fi
! 13452: GCJFLAGS="$save_GCJFLAGS"
! 13453: chmod u+w .
! 13454: $rm conftest* out/*
! 13455: rmdir out
! 13456: cd ..
! 13457: rmdir conftest
! 13458: $rm conftest*
! 13459:
! 13460: fi
! 13461: echo "$as_me:13461: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
! 13462: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
! 13463:
! 13464: hard_links="nottested"
! 13465: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
! 13466: # do not overwrite the value of need_locks provided by the user
! 13467: echo "$as_me:13467: checking if we can lock with hard links" >&5
! 13468: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 13469: hard_links=yes
! 13470: $rm conftest*
! 13471: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 13472: touch conftest.a
! 13473: ln conftest.a conftest.b 2>&5 || hard_links=no
! 13474: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 13475: echo "$as_me:13475: result: $hard_links" >&5
! 13476: echo "${ECHO_T}$hard_links" >&6
! 13477: if test "$hard_links" = no; then
! 13478: { echo "$as_me:13478: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 13479: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 13480: need_locks=warn
! 13481: fi
! 13482: else
! 13483: need_locks=no
! 13484: fi
! 13485:
! 13486: echo "$as_me:13486: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 13487: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 13488:
! 13489: runpath_var=
! 13490: allow_undefined_flag_GCJ=
! 13491:
! 13492: archive_cmds_GCJ=
! 13493: archive_cmds_need_lc_GCJ=
! 13494: archive_expsym_cmds_GCJ=
! 13495: old_archive_From_new_cmds_GCJ=
! 13496: old_archive_from_expsyms_cmds_GCJ=
! 13497: export_dynamic_flag_spec_GCJ=
! 13498: whole_archive_flag_spec_GCJ=
! 13499: thread_safe_flag_spec_GCJ=
! 13500: hardcode_libdir_flag_spec_GCJ=
! 13501: hardcode_libdir_separator_GCJ=
! 13502: hardcode_direct_GCJ=no
! 13503: hardcode_minus_L_GCJ=no
! 13504: hardcode_shlibpath_var_GCJ=unsupported
! 13505: link_all_deplibs_GCJ=unknown
! 13506: always_export_symbols_GCJ=no
! 13507: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 13508: # include_expsyms should be a list of space-separated symbols to be *always*
! 13509: # included in the symbol list
! 13510: include_expsyms_GCJ=
! 13511: # exclude_expsyms can be an egrep regular expression of symbols to exclude
! 13512: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 13513: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 13514: # as well as any symbol that contains `d'.
! 13515: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
! 13516: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 13517: # platforms (ab)use it in PIC code, but their linkers get confused if
! 13518: # the symbol is explicitly referenced. Since portable code cannot
! 13519: # rely on this symbol name, it's probably fine to never include it in
! 13520: # preloaded symbol tables.
! 13521: extract_expsyms_cmds=
! 13522:
! 13523: case $host_os in
! 13524: cygwin* | mingw* | pw32*)
! 13525: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 13526: # When not using gcc, we currently assume that we are using
! 13527: # Microsoft Visual C++.
! 13528: if test "$GCC" != yes; then
! 13529: with_gnu_ld=no
! 13530: fi
! 13531: ;;
! 13532: openbsd*)
! 13533: with_gnu_ld=no
! 13534: ;;
! 13535: esac
! 13536:
! 13537: ld_shlibs_GCJ=yes
! 13538: if test "$with_gnu_ld" = yes; then
! 13539: # If archive_cmds runs LD, not CC, wlarc should be empty
! 13540: wlarc='${wl}'
! 13541:
! 13542: # See if GNU ld supports shared libraries.
! 13543: case $host_os in
! 13544: aix3* | aix4* | aix5*)
! 13545: # On AIX/PPC, the GNU linker is very broken
! 13546: if test "$host_cpu" != ia64; then
! 13547: ld_shlibs_GCJ=no
! 13548: cat <<EOF 1>&2
! 13549:
! 13550: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 13551: *** to be unable to reliably create shared libraries on AIX.
! 13552: *** Therefore, libtool is disabling shared libraries support. If you
! 13553: *** really care for shared libraries, you may want to modify your PATH
! 13554: *** so that a non-GNU linker is found, and then restart.
! 13555:
! 13556: EOF
! 13557: fi
! 13558: ;;
! 13559:
! 13560: amigaos*)
! 13561: 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)'
! 13562: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 13563: hardcode_minus_L_GCJ=yes
! 13564:
! 13565: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 13566: # that the semantics of dynamic libraries on AmigaOS, at least up
! 13567: # to version 4, is to share data among multiple programs linked
! 13568: # with the same dynamic library. Since this doesn't match the
! 13569: # behavior of shared libraries on other platforms, we can't use
! 13570: # them.
! 13571: ld_shlibs_GCJ=no
! 13572: ;;
! 13573:
! 13574: beos*)
! 13575: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 13576: allow_undefined_flag_GCJ=unsupported
! 13577: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 13578: # support --undefined. This deserves some investigation. FIXME
! 13579: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 13580: else
! 13581: ld_shlibs_GCJ=no
! 13582: fi
! 13583: ;;
! 13584:
! 13585: cygwin* | mingw* | pw32*)
! 13586: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
! 13587: # no search path for DLLs.
! 13588: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 13589: allow_undefined_flag_GCJ=unsupported
! 13590: always_export_symbols_GCJ=yes
! 13591:
! 13592: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
! 13593: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
! 13594: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
! 13595: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
! 13596: else $CC -o impgen impgen.c ; fi)~
! 13597: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
! 13598:
! 13599: old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
! 13600:
! 13601: # cygwin and mingw dlls have different entry points and sets of symbols
! 13602: # to exclude.
! 13603: # FIXME: what about values for MSVC?
! 13604: dll_entry=__cygwin_dll_entry@12
! 13605: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
! 13606: case $host_os in
! 13607: mingw*)
! 13608: # mingw values
! 13609: dll_entry=_DllMainCRTStartup@12
! 13610: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
! 13611: ;;
! 13612: esac
! 13613:
! 13614: # mingw and cygwin differ, and it's simplest to just exclude the union
! 13615: # of the two symbol sets.
! 13616: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
! 13617:
! 13618: # recent cygwin and mingw systems supply a stub DllMain which the user
! 13619: # can override, but on older systems we have to supply one (in ltdll.c)
! 13620: if test "x$lt_cv_need_dllmain" = "xyes"; then
! 13621: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
! 13622: 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~
! 13623: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
! 13624: else
! 13625: ltdll_obj=
! 13626: ltdll_cmds=
! 13627: fi
! 13628:
! 13629: # Extract the symbol export list from an `--export-all' def file,
! 13630: # then regenerate the def file from the symbol export list, so that
! 13631: # the compiled dll only exports the symbol export list.
! 13632: # Be careful not to strip the DATA tag left by newer dlltools.
! 13633: export_symbols_cmds_GCJ="$ltdll_cmds"'
! 13634: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
! 13635: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
! 13636:
! 13637: # If the export-symbols file already is a .def file (1st line
! 13638: # is EXPORTS), use it as is.
! 13639: # If DATA tags from a recent dlltool are present, honour them!
! 13640: archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
! 13641: cp $export_symbols $output_objdir/$soname-def;
! 13642: else
! 13643: echo EXPORTS > $output_objdir/$soname-def;
! 13644: _lt_hint=1;
! 13645: cat $export_symbols | while read symbol; do
! 13646: set dummy \$symbol;
! 13647: case \$# in
! 13648: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
! 13649: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
! 13650: esac;
! 13651: _lt_hint=`expr 1 + \$_lt_hint`;
! 13652: done;
! 13653: fi~
! 13654: '"$ltdll_cmds"'
! 13655: $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~
! 13656: $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~
! 13657: $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~
! 13658: $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~
! 13659: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
! 13660: ;;
! 13661:
! 13662: netbsd*)
! 13663: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 13664: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 13665: wlarc=
! 13666: else
! 13667: archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 13668: archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 13669: fi
! 13670: ;;
! 13671:
! 13672: solaris* | sysv5*)
! 13673: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
! 13674: ld_shlibs_GCJ=no
! 13675: cat <<EOF 1>&2
! 13676:
! 13677: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 13678: *** create shared libraries on Solaris systems. Therefore, libtool
! 13679: *** is disabling shared libraries support. We urge you to upgrade GNU
! 13680: *** binutils to release 2.9.1 or newer. Another option is to modify
! 13681: *** your PATH or compiler configuration so that the native linker is
! 13682: *** used, and then restart.
! 13683:
! 13684: EOF
! 13685: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 13686: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 13687: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 13688: else
! 13689: ld_shlibs_GCJ=no
! 13690: fi
! 13691: ;;
! 13692:
! 13693: sunos4*)
! 13694: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 13695: wlarc=
! 13696: hardcode_direct_GCJ=yes
! 13697: hardcode_shlibpath_var_GCJ=no
! 13698: ;;
! 13699:
! 13700: *)
! 13701: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
! 13702: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 13703: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 13704: else
! 13705: ld_shlibs_GCJ=no
! 13706: fi
! 13707: ;;
! 13708: esac
! 13709:
! 13710: if test "$ld_shlibs_GCJ" = yes; then
! 13711: runpath_var=LD_RUN_PATH
! 13712: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
! 13713: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
! 13714: case $host_os in
! 13715: cygwin* | mingw* | pw32*)
! 13716: # dlltool doesn't understand --whole-archive et. al.
! 13717: whole_archive_flag_spec_GCJ=
! 13718: ;;
! 13719: *)
! 13720: # ancient GNU ld didn't support --whole-archive et. al.
! 13721: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
! 13722: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 13723: else
! 13724: whole_archive_flag_spec_GCJ=
! 13725: fi
! 13726: ;;
! 13727: esac
! 13728: fi
! 13729: else
! 13730: # PORTME fill in a description of your system's linker (not GNU ld)
! 13731: case $host_os in
! 13732: aix3*)
! 13733: allow_undefined_flag_GCJ=unsupported
! 13734: always_export_symbols_GCJ=yes
! 13735: 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'
! 13736: # Note: this linker hardcodes the directories in LIBPATH if there
! 13737: # are no directories specified by -L.
! 13738: hardcode_minus_L_GCJ=yes
! 13739: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 13740: # Neither direct hardcoding nor static linking is supported with a
! 13741: # broken collect2.
! 13742: hardcode_direct_GCJ=unsupported
! 13743: fi
! 13744: ;;
! 13745:
! 13746: aix4* | aix5*)
! 13747: if test "$host_cpu" = ia64; then
! 13748: # On IA64, the linker does run time linking by default, so we don't
! 13749: # have to do anything special.
! 13750: aix_use_runtimelinking=no
! 13751: exp_sym_flag='-Bexport'
! 13752: no_entry_flag=""
! 13753: else
! 13754: # If we're using GNU nm, then we don't want the "-C" option.
! 13755: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 13756: if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
! 13757: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 13758: else
! 13759: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 13760: fi
! 13761: aix_use_runtimelinking=no
! 13762:
! 13763: # Test if we are trying to use run time linking or normal
! 13764: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 13765: # need to do runtime linking.
! 13766: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 13767: for ld_flag in $LDFLAGS; do
! 13768: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 13769: aix_use_runtimelinking=yes
! 13770: break
! 13771: fi
! 13772: done
! 13773: esac
! 13774:
! 13775: exp_sym_flag='-bexport'
! 13776: no_entry_flag='-bnoentry'
! 13777: fi
! 13778:
! 13779: # When large executables or shared objects are built, AIX ld can
! 13780: # have problems creating the table of contents. If linking a library
! 13781: # or program results in "error TOC overflow" add -mminimal-toc to
! 13782: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 13783: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 13784:
! 13785: archive_cmds_GCJ=''
! 13786: hardcode_direct_GCJ=yes
! 13787: hardcode_libdir_separator_GCJ=':'
! 13788: link_all_deplibs_GCJ=yes
! 13789:
! 13790: if test "$GCC" = yes; then
! 13791: case $host_os in aix4.012|aix4.012.*)
! 13792: # We only want to do this on AIX 4.2 and lower, the check
! 13793: # below for broken collect2 doesn't work under 4.3+
! 13794: collect2name=`${CC} -print-prog-name=collect2`
! 13795: if test -f "$collect2name" && \
! 13796: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 13797: then
! 13798: # We have reworked collect2
! 13799: hardcode_direct_GCJ=yes
! 13800: else
! 13801: # We have old collect2
! 13802: hardcode_direct_GCJ=unsupported
! 13803: # It fails to find uninstalled libraries when the uninstalled
! 13804: # path is not listed in the libpath. Setting hardcode_minus_L
! 13805: # to unsupported forces relinking
! 13806: hardcode_minus_L_GCJ=yes
! 13807: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 13808: hardcode_libdir_separator_GCJ=
! 13809: fi
! 13810: esac
! 13811: shared_flag='-shared'
! 13812: else
! 13813: # not using gcc
! 13814: if test "$host_cpu" = ia64; then
! 13815: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 13816: # chokes on -Wl,-G. The following line is correct:
! 13817: shared_flag='-G'
! 13818: else
! 13819: if test "$aix_use_runtimelinking" = yes; then
! 13820: shared_flag='${wl}-G'
! 13821: else
! 13822: shared_flag='${wl}-bM:SRE'
! 13823: fi
! 13824: fi
! 13825: fi
! 13826:
! 13827: # It seems that -bexpall does not export symbols beginning with
! 13828: # underscore (_), so it is better to generate a list of symbols to export.
! 13829: always_export_symbols_GCJ=yes
! 13830: if test "$aix_use_runtimelinking" = yes; then
! 13831: # Warning - without using the other runtime loading flags (-brtl),
! 13832: # -berok will link without error, but may produce a broken library.
! 13833: allow_undefined_flag_GCJ='-berok'
! 13834: # Determine the default libpath from the value encoded in an empty executable.
! 13835: cat >conftest.$ac_ext <<_ACEOF
! 13836: #line 13836 "configure"
! 13837: #include "confdefs.h"
! 13838:
! 13839: int
! 13840: main ()
! 13841: {
! 13842:
! 13843: ;
! 13844: return 0;
! 13845: }
! 13846: _ACEOF
! 13847: rm -f conftest.$ac_objext conftest$ac_exeext
! 13848: if { (eval echo "$as_me:13848: \"$ac_link\"") >&5
! 13849: (eval $ac_link) 2>&5
! 13850: ac_status=$?
! 13851: echo "$as_me:13851: \$? = $ac_status" >&5
! 13852: (exit $ac_status); } &&
! 13853: { ac_try='test -s conftest$ac_exeext'
! 13854: { (eval echo "$as_me:13854: \"$ac_try\"") >&5
! 13855: (eval $ac_try) 2>&5
! 13856: ac_status=$?
! 13857: echo "$as_me:13857: \$? = $ac_status" >&5
! 13858: (exit $ac_status); }; }; then
! 13859:
! 13860: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 13861: }'`
! 13862: # Check for a 64-bit object if we didn't find anything.
! 13863: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 13864: }'`; fi
! 13865: else
! 13866: echo "$as_me: failed program was:" >&5
! 13867: cat conftest.$ac_ext >&5
! 13868: fi
! 13869: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13870: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 13871:
! 13872: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 13873: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 13874: else
! 13875: if test "$host_cpu" = ia64; then
! 13876: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
! 13877: allow_undefined_flag_GCJ="-z nodefs"
! 13878: 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"
! 13879: else
! 13880: # Determine the default libpath from the value encoded in an empty executable.
! 13881: cat >conftest.$ac_ext <<_ACEOF
! 13882: #line 13882 "configure"
! 13883: #include "confdefs.h"
! 13884:
! 13885: int
! 13886: main ()
! 13887: {
! 13888:
! 13889: ;
! 13890: return 0;
! 13891: }
! 13892: _ACEOF
! 13893: rm -f conftest.$ac_objext conftest$ac_exeext
! 13894: if { (eval echo "$as_me:13894: \"$ac_link\"") >&5
! 13895: (eval $ac_link) 2>&5
! 13896: ac_status=$?
! 13897: echo "$as_me:13897: \$? = $ac_status" >&5
! 13898: (exit $ac_status); } &&
! 13899: { ac_try='test -s conftest$ac_exeext'
! 13900: { (eval echo "$as_me:13900: \"$ac_try\"") >&5
! 13901: (eval $ac_try) 2>&5
! 13902: ac_status=$?
! 13903: echo "$as_me:13903: \$? = $ac_status" >&5
! 13904: (exit $ac_status); }; }; then
! 13905:
! 13906: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 13907: }'`
! 13908: # Check for a 64-bit object if we didn't find anything.
! 13909: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 13910: }'`; fi
! 13911: else
! 13912: echo "$as_me: failed program was:" >&5
! 13913: cat conftest.$ac_ext >&5
! 13914: fi
! 13915: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13916: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 13917:
! 13918: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 13919: # Warning - without using the other run time loading flags,
! 13920: # -berok will link without error, but may produce a broken library.
! 13921: no_undefined_flag_GCJ=' ${wl}-bernotok'
! 13922: allow_undefined_flag_GCJ=' ${wl}-berok'
! 13923: # -bexpall does not export symbols beginning with underscore (_)
! 13924: always_export_symbols_GCJ=yes
! 13925: # Exported symbols can be pulled into shared objects from archives
! 13926: whole_archive_flag_spec_GCJ=' '
! 13927: archive_cmds_need_lc_GCJ=yes
! 13928: # This is similar to how AIX traditionally builds it's shared libraries.
! 13929: 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'
! 13930: fi
! 13931: fi
! 13932: ;;
! 13933:
! 13934: amigaos*)
! 13935: 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)'
! 13936: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 13937: hardcode_minus_L_GCJ=yes
! 13938: # see comment about different semantics on the GNU ld section
! 13939: ld_shlibs_GCJ=no
! 13940: ;;
! 13941:
! 13942: bsdi4*)
! 13943: export_dynamic_flag_spec_GCJ=-rdynamic
! 13944: ;;
! 13945:
! 13946: cygwin* | mingw* | pw32*)
! 13947: # When not using gcc, we currently assume that we are using
! 13948: # Microsoft Visual C++.
! 13949: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 13950: # no search path for DLLs.
! 13951: hardcode_libdir_flag_spec_GCJ=' '
! 13952: allow_undefined_flag_GCJ=unsupported
! 13953: # Tell ltmain to make .lib files, not .a files.
! 13954: libext=lib
! 13955: # FIXME: Setting linknames here is a bad hack.
! 13956: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 13957: # The linker will automatically build a .lib file if we build a DLL.
! 13958: old_archive_From_new_cmds_GCJ='true'
! 13959: # FIXME: Should let the user specify the lib program.
! 13960: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 13961: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 13962: ;;
! 13963:
! 13964: darwin* | rhapsody*)
! 13965: case "$host_os" in
! 13966: rhapsody* | darwin1.[012])
! 13967: allow_undefined_flag_GCJ='-undefined suppress'
! 13968: ;;
! 13969: *) # Darwin 1.3 on
! 13970: allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
! 13971: ;;
! 13972: esac
! 13973:
! 13974: # FIXME: Relying on posixy $() will cause problems for
! 13975: # cross-compilation, but unfortunately the echo tests do not
! 13976: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 13977: # `"' quotes if we put them in here... so don't!
! 13978: archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
! 13979: # We need to add '_' to the symbols in $export_symbols first
! 13980: #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
! 13981: hardcode_direct_GCJ=yes
! 13982: hardcode_shlibpath_var_GCJ=no
! 13983: whole_archive_flag_spec_GCJ='-all_load $convenience'
! 13984: ;;
! 13985:
! 13986: dgux*)
! 13987: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 13988: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 13989: hardcode_shlibpath_var_GCJ=no
! 13990: ;;
! 13991:
! 13992: freebsd1*)
! 13993: ld_shlibs_GCJ=no
! 13994: ;;
! 13995:
! 13996: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 13997: # support. Future versions do this automatically, but an explicit c++rt0.o
! 13998: # does not break anything, and helps significantly (at the cost of a little
! 13999: # extra space).
! 14000: freebsd2.2*)
! 14001: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 14002: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 14003: hardcode_direct_GCJ=yes
! 14004: hardcode_shlibpath_var_GCJ=no
! 14005: ;;
! 14006:
! 14007: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 14008: freebsd2*)
! 14009: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14010: hardcode_direct_GCJ=yes
! 14011: hardcode_minus_L_GCJ=yes
! 14012: hardcode_shlibpath_var_GCJ=no
! 14013: ;;
! 14014:
! 14015: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 14016: freebsd*)
! 14017: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 14018: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 14019: hardcode_direct_GCJ=yes
! 14020: hardcode_shlibpath_var_GCJ=no
! 14021: ;;
! 14022:
! 14023: hpux9* | hpux10* | hpux11*)
! 14024: if test "$GCC" = yes; then
! 14025: case $host_os in
! 14026: hpux9*)
! 14027: 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'
! 14028: ;;
! 14029: *)
! 14030: if test "$host_cpu" = ia64; then
! 14031: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14032: else
! 14033: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 14034: fi
! 14035: ;;
! 14036: esac
! 14037: else
! 14038: case $host_os in
! 14039: hpux9*)
! 14040: 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'
! 14041: ;;
! 14042: *)
! 14043: if test "$host_cpu" = ia64; then
! 14044: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14045: else
! 14046: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 14047: fi
! 14048: ;;
! 14049: esac
! 14050: fi
! 14051: if test "$host_cpu" = ia64; then
! 14052: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 14053: hardcode_direct_GCJ=no
! 14054: hardcode_shlibpath_var_GCJ=no
! 14055: else
! 14056: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 14057: hardcode_libdir_separator_GCJ=:
! 14058: hardcode_direct_GCJ=yes
! 14059: fi
! 14060: # hardcode_minus_L: Not really in the search PATH,
! 14061: # but as the default location of the library.
! 14062: hardcode_minus_L_GCJ=yes
! 14063: export_dynamic_flag_spec_GCJ='${wl}-E'
! 14064: ;;
! 14065:
! 14066: irix5* | irix6*)
! 14067: if test "$GCC" = yes; then
! 14068: 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'
! 14069: else
! 14070: 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'
! 14071: fi
! 14072: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 14073: hardcode_libdir_separator_GCJ=:
! 14074: link_all_deplibs_GCJ=yes
! 14075: ;;
! 14076:
! 14077: netbsd*)
! 14078: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14079: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 14080: else
! 14081: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 14082: fi
! 14083: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 14084: hardcode_direct_GCJ=yes
! 14085: hardcode_shlibpath_var_GCJ=no
! 14086: ;;
! 14087:
! 14088: newsos6)
! 14089: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14090: hardcode_direct_GCJ=yes
! 14091: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 14092: hardcode_libdir_separator_GCJ=:
! 14093: hardcode_shlibpath_var_GCJ=no
! 14094: ;;
! 14095:
! 14096: openbsd*)
! 14097: hardcode_direct_GCJ=yes
! 14098: hardcode_shlibpath_var_GCJ=no
! 14099:
! 14100: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 14101: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
! 14102: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 14103: export_dynamic_flag_spec_GCJ='${wl}-E'
! 14104: else
! 14105: case $host_os in
! 14106: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 14107: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14108: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 14109: ;;
! 14110: *)
! 14111: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
! 14112: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 14113: ;;
! 14114: esac
! 14115: fi
! 14116: ;;
! 14117:
! 14118: os2*)
! 14119: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 14120: hardcode_minus_L_GCJ=yes
! 14121: allow_undefined_flag_GCJ=unsupported
! 14122: 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'
! 14123: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 14124: ;;
! 14125:
! 14126: osf3*)
! 14127: if test "$GCC" = yes; then
! 14128: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 14129: 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'
! 14130: else
! 14131: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 14132: 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'
! 14133: fi
! 14134: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 14135: hardcode_libdir_separator_GCJ=:
! 14136: ;;
! 14137:
! 14138: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 14139: if test "$GCC" = yes; then
! 14140: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 14141: 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'
! 14142: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 14143: else
! 14144: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 14145: 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'
! 14146: 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~
! 14147: $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'
! 14148:
! 14149: # Both c and cxx compiler support -rpath directly
! 14150: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
! 14151: fi
! 14152: hardcode_libdir_separator_GCJ=:
! 14153: ;;
! 14154:
! 14155: sco3.2v5*)
! 14156: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14157: hardcode_shlibpath_var_GCJ=no
! 14158: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
! 14159: runpath_var=LD_RUN_PATH
! 14160: hardcode_runpath_var=yes
! 14161: ;;
! 14162:
! 14163: solaris*)
! 14164: no_undefined_flag_GCJ=' -z text'
! 14165: if test "$GCC" = yes; then
! 14166: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14167: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 14168: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 14169: else
! 14170: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14171: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 14172: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 14173: fi
! 14174: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 14175: hardcode_shlibpath_var_GCJ=no
! 14176: case $host_os in
! 14177: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 14178: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 14179: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
! 14180: esac
! 14181: link_all_deplibs_GCJ=yes
! 14182: ;;
! 14183:
! 14184: sunos4*)
! 14185: if test "x$host_vendor" = xsequent; then
! 14186: # Use $CC to link under sequent, because it throws in some extra .o
! 14187: # files that make .init and .fini sections work.
! 14188: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 14189: else
! 14190: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 14191: fi
! 14192: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 14193: hardcode_direct_GCJ=yes
! 14194: hardcode_minus_L_GCJ=yes
! 14195: hardcode_shlibpath_var_GCJ=no
! 14196: ;;
! 14197:
! 14198: sysv4)
! 14199: if test "x$host_vendor" = xsni; then
! 14200: archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14201: hardcode_direct_GCJ=yes # is this really true???
! 14202: else
! 14203: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14204: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
! 14205: fi
! 14206: runpath_var='LD_RUN_PATH'
! 14207: hardcode_shlibpath_var_GCJ=no
! 14208: ;;
! 14209:
! 14210: sysv4.3*)
! 14211: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14212: hardcode_shlibpath_var_GCJ=no
! 14213: export_dynamic_flag_spec_GCJ='-Bexport'
! 14214: ;;
! 14215:
! 14216: sysv4*MP*)
! 14217: if test -d /usr/nec; then
! 14218: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14219: hardcode_shlibpath_var_GCJ=no
! 14220: runpath_var=LD_RUN_PATH
! 14221: hardcode_runpath_var=yes
! 14222: ld_shlibs_GCJ=yes
! 14223: fi
! 14224: ;;
! 14225:
! 14226: sysv4.2uw2*)
! 14227: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 14228: hardcode_direct_GCJ=yes
! 14229: hardcode_minus_L_GCJ=no
! 14230: hardcode_shlibpath_var_GCJ=no
! 14231: hardcode_runpath_var=yes
! 14232: runpath_var=LD_RUN_PATH
! 14233: ;;
! 14234:
! 14235: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 14236: no_undefined_flag_GCJ='${wl}-z ${wl}text'
! 14237: if test "$GCC" = yes; then
! 14238: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14239: else
! 14240: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14241: fi
! 14242: runpath_var='LD_RUN_PATH'
! 14243: hardcode_shlibpath_var_GCJ=no
! 14244: ;;
! 14245:
! 14246: sysv5*)
! 14247: no_undefined_flag_GCJ=' -z text'
! 14248: # $CC -shared without GNU ld will not create a library from C++
! 14249: # object files and a static libstdc++, better avoid it by now
! 14250: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14251: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 14252: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 14253: hardcode_libdir_flag_spec_GCJ=
! 14254: hardcode_shlibpath_var_GCJ=no
! 14255: runpath_var='LD_RUN_PATH'
! 14256: ;;
! 14257:
! 14258: uts4*)
! 14259: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14260: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 14261: hardcode_shlibpath_var_GCJ=no
! 14262: ;;
! 14263:
! 14264: *)
! 14265: ld_shlibs_GCJ=no
! 14266: ;;
! 14267: esac
! 14268: fi
! 14269:
! 14270: echo "$as_me:14270: result: $ld_shlibs_GCJ" >&5
! 14271: echo "${ECHO_T}$ld_shlibs_GCJ" >&6
! 14272: test "$ld_shlibs_GCJ" = no && can_build_shared=no
! 14273:
! 14274: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 14275: if test "$GCC" = yes; then
! 14276: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 14277: fi
! 14278:
! 14279: #
! 14280: # Do we need to explicitly link libc?
! 14281: #
! 14282: archive_cmds_need_lc_GCJ=yes
! 14283: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 14284: case $archive_cmds_GCJ in
! 14285: *'~'*)
! 14286: # FIXME: we may have to deal with multi-command sequences.
! 14287: ;;
! 14288: '$CC '*)
! 14289: # Test whether the compiler implicitly links with -lc since on some
! 14290: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 14291: # to ld, don't add -lc before -lgcc.
! 14292: echo "$as_me:14292: checking whether -lc should be explicitly linked in" >&5
! 14293: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 14294: $rm conftest*
! 14295: echo 'static int dummy;' > conftest.$ac_ext
! 14296:
! 14297: if { (eval echo "$as_me:14297: \"$ac_compile\"") >&5
! 14298: (eval $ac_compile) 2>&5
! 14299: ac_status=$?
! 14300: echo "$as_me:14300: \$? = $ac_status" >&5
! 14301: (exit $ac_status); } 2>conftest.err; then
! 14302: soname=conftest
! 14303: lib=conftest
! 14304: libobjs=conftest.$ac_objext
! 14305: deplibs=
! 14306: wl=$lt_prog_compiler_wl_GCJ
! 14307: compiler_flags=-v
! 14308: linker_flags=-v
! 14309: verstring=
! 14310: output_objdir=.
! 14311: libname=conftest
! 14312: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
! 14313: allow_undefined_flag_GCJ=
! 14314: if { (eval echo "$as_me:14314: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 14315: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 14316: ac_status=$?
! 14317: echo "$as_me:14317: \$? = $ac_status" >&5
! 14318: (exit $ac_status); }
! 14319: then
! 14320: archive_cmds_need_lc_GCJ=no
! 14321: else
! 14322: archive_cmds_need_lc_GCJ=yes
! 14323: fi
! 14324: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
! 14325: else
! 14326: cat conftest.err 1>&5
! 14327: fi
! 14328: $rm conftest*
! 14329: echo "$as_me:14329: result: $archive_cmds_need_lc_GCJ" >&5
! 14330: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
! 14331: ;;
! 14332: esac
! 14333: fi
! 14334:
! 14335: echo "$as_me:14335: checking how to hardcode library paths into programs" >&5
! 14336: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 14337: hardcode_action_GCJ=
! 14338: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
! 14339: test -n "$runpath_var GCJ"; then
! 14340:
! 14341: # We can hardcode non-existant directories.
! 14342: if test "$hardcode_direct_GCJ" != no &&
! 14343: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 14344: # have to relink, otherwise we might link with an installed library
! 14345: # when we should be linking with a yet-to-be-installed one
! 14346: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
! 14347: test "$hardcode_minus_L_GCJ" != no; then
! 14348: # Linking always hardcodes the temporary library directory.
! 14349: hardcode_action_GCJ=relink
! 14350: else
! 14351: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 14352: hardcode_action_GCJ=immediate
! 14353: fi
! 14354: else
! 14355: # We cannot hardcode anything, or else we can only hardcode existing
! 14356: # directories.
! 14357: hardcode_action_GCJ=unsupported
! 14358: fi
! 14359: echo "$as_me:14359: result: $hardcode_action_GCJ" >&5
! 14360: echo "${ECHO_T}$hardcode_action_GCJ" >&6
! 14361:
! 14362: if test "$hardcode_action_GCJ" = relink; then
! 14363: # Fast installation is not supported
! 14364: enable_fast_install=no
! 14365: elif test "$shlibpath_overrides_runpath" = yes ||
! 14366: test "$enable_shared" = no; then
! 14367: # Fast installation is not necessary
! 14368: enable_fast_install=needless
! 14369: fi
! 14370:
! 14371: striplib=
! 14372: old_striplib=
! 14373: echo "$as_me:14373: checking whether stripping libraries is possible" >&5
! 14374: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 14375: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 14376: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 14377: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 14378: echo "$as_me:14378: result: yes" >&5
! 14379: echo "${ECHO_T}yes" >&6
! 14380: else
! 14381: echo "$as_me:14381: result: no" >&5
! 14382: echo "${ECHO_T}no" >&6
! 14383: fi
! 14384:
! 14385: echo "$as_me:14385: checking dynamic linker characteristics" >&5
! 14386: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 14387: library_names_spec=
! 14388: libname_spec='lib$name'
! 14389: soname_spec=
! 14390: postinstall_cmds=
! 14391: postuninstall_cmds=
! 14392: finish_cmds=
! 14393: finish_eval=
! 14394: shlibpath_var=
! 14395: shlibpath_overrides_runpath=unknown
! 14396: version_type=none
! 14397: dynamic_linker="$host_os ld.so"
! 14398: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 14399: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 14400: need_lib_prefix=unknown
! 14401: hardcode_into_libs=no
! 14402:
! 14403: # when you set need_version to no, make sure it does not cause -set_version
! 14404: # flags to be left without arguments
! 14405: need_version=unknown
! 14406:
! 14407: case $host_os in
! 14408: aix3*)
! 14409: version_type=linux
! 14410: library_names_spec='${libname}${release}.so$versuffix $libname.a'
! 14411: shlibpath_var=LIBPATH
! 14412:
! 14413: # AIX 3 has no versioning support, so we append a major version to the name.
! 14414: soname_spec='${libname}${release}.so$major'
! 14415: ;;
! 14416:
! 14417: aix4* | aix5*)
! 14418: version_type=linux
! 14419: if test "$host_cpu" = ia64; then
! 14420: # AIX 5 supports IA64
! 14421: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
! 14422: shlibpath_var=LD_LIBRARY_PATH
! 14423: else
! 14424: # With GCC up to 2.95.x, collect2 would create an import file
! 14425: # for dependence libraries. The import file would start with
! 14426: # the line `#! .'. This would cause the generated library to
! 14427: # depend on `.', always an invalid library. This was fixed in
! 14428: # development snapshots of GCC prior to 3.0.
! 14429: case $host_os in
! 14430: aix4 | aix4.[01] | aix4.[01].*)
! 14431: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 14432: echo ' yes '
! 14433: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 14434: :
! 14435: else
! 14436: can_build_shared=no
! 14437: fi
! 14438: ;;
! 14439: esac
! 14440: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 14441: # soname into executable. Probably we can add versioning support to
! 14442: # collect2, so additional links can be useful in future.
! 14443: if test "$aix_use_runtimelinking" = yes; then
! 14444: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 14445: # instead of lib<name>.a to let people know that these are not
! 14446: # typical AIX shared libraries.
! 14447: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14448: else
! 14449: # We preserve .a as extension for shared libraries through AIX4.2
! 14450: # and later when we are not doing run time linking.
! 14451: library_names_spec='${libname}${release}.a $libname.a'
! 14452: soname_spec='${libname}${release}.so$major'
! 14453: fi
! 14454: shlibpath_var=LIBPATH
! 14455: fi
! 14456: ;;
! 14457:
! 14458: amigaos*)
! 14459: library_names_spec='$libname.ixlibrary $libname.a'
! 14460: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 14461: 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'
! 14462: ;;
! 14463:
! 14464: beos*)
! 14465: library_names_spec='${libname}.so'
! 14466: dynamic_linker="$host_os ld.so"
! 14467: shlibpath_var=LIBRARY_PATH
! 14468: ;;
! 14469:
! 14470: bsdi4*)
! 14471: version_type=linux
! 14472: need_version=no
! 14473: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14474: soname_spec='${libname}${release}.so$major'
! 14475: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 14476: shlibpath_var=LD_LIBRARY_PATH
! 14477: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 14478: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 14479: # the default ld.so.conf also contains /usr/contrib/lib and
! 14480: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 14481: # libtool to hard-code these into programs
! 14482: ;;
! 14483:
! 14484: cygwin* | mingw* | pw32*)
! 14485: version_type=windows
! 14486: need_version=no
! 14487: need_lib_prefix=no
! 14488: case $GCC,$host_os in
! 14489: yes,cygwin*)
! 14490: library_names_spec='$libname.dll.a'
! 14491: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 14492: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 14493: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
! 14494: dldir=$destdir/`dirname \$dlpath`~
! 14495: test -d \$dldir || mkdir -p \$dldir~
! 14496: $install_prog .libs/$dlname \$dldir/$dlname'
! 14497: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 14498: dlpath=$dir/\$dldll~
! 14499: $rm \$dlpath'
! 14500: ;;
! 14501: yes,mingw*)
! 14502: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
! 14503: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
! 14504: if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
! 14505: # It is most probably a Windows format PATH printed by
! 14506: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 14507: # path with ; separators, and with drive letters. We can handle the
! 14508: # drive letters (cygwin fileutils understands them), so leave them,
! 14509: # especially as we might pass files found there to a mingw objdump,
! 14510: # which wouldn't understand a cygwinified path. Ahh.
! 14511: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
! 14512: else
! 14513: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
! 14514: fi
! 14515: ;;
! 14516: yes,pw32*)
! 14517: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
! 14518: ;;
! 14519: *)
! 14520: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
! 14521: ;;
! 14522: esac
! 14523: dynamic_linker='Win32 ld.exe'
! 14524: # FIXME: first we should search . and the directory the executable is in
! 14525: shlibpath_var=PATH
! 14526: ;;
! 14527:
! 14528: darwin* | rhapsody*)
! 14529: dynamic_linker="$host_os dyld"
! 14530: version_type=darwin
! 14531: need_lib_prefix=no
! 14532: need_version=no
! 14533: # FIXME: Relying on posixy $() will cause problems for
! 14534: # cross-compilation, but unfortunately the echo tests do not
! 14535: # yet detect zsh echo's removal of \ escapes.
! 14536: 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)'
! 14537: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
! 14538: shlibpath_overrides_runpath=yes
! 14539: shlibpath_var=DYLD_LIBRARY_PATH
! 14540: ;;
! 14541:
! 14542: dgux*)
! 14543: version_type=linux
! 14544: need_lib_prefix=no
! 14545: need_version=no
! 14546: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14547: soname_spec='${libname}${release}.so$major'
! 14548: shlibpath_var=LD_LIBRARY_PATH
! 14549: ;;
! 14550:
! 14551: freebsd1*)
! 14552: dynamic_linker=no
! 14553: ;;
! 14554:
! 14555: freebsd*)
! 14556: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 14557: version_type=freebsd-$objformat
! 14558: case $version_type in
! 14559: freebsd-elf*)
! 14560: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 14561: need_version=no
! 14562: need_lib_prefix=no
! 14563: ;;
! 14564: freebsd-*)
! 14565: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
! 14566: need_version=yes
! 14567: ;;
! 14568: esac
! 14569: shlibpath_var=LD_LIBRARY_PATH
! 14570: case $host_os in
! 14571: freebsd2*)
! 14572: shlibpath_overrides_runpath=yes
! 14573: ;;
! 14574: freebsd3.01* | freebsdelf3.01*)
! 14575: shlibpath_overrides_runpath=yes
! 14576: hardcode_into_libs=yes
! 14577: ;;
! 14578: *) # from 3.2 on
! 14579: shlibpath_overrides_runpath=no
! 14580: hardcode_into_libs=yes
! 14581: ;;
! 14582: esac
! 14583: ;;
! 14584:
! 14585: gnu*)
! 14586: version_type=linux
! 14587: need_lib_prefix=no
! 14588: need_version=no
! 14589: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
! 14590: soname_spec='${libname}${release}.so$major'
! 14591: shlibpath_var=LD_LIBRARY_PATH
! 14592: hardcode_into_libs=yes
! 14593: ;;
! 14594:
! 14595: hpux9* | hpux10* | hpux11*)
! 14596: # Give a soname corresponding to the major version so that dld.sl refuses to
! 14597: # link against other versions.
! 14598: version_type=sunos
! 14599: need_lib_prefix=no
! 14600: need_version=no
! 14601: if test "$host_cpu" = ia64; then
! 14602: hardcode_into_libs=yes
! 14603: dynamic_linker="$host_os dld.so"
! 14604: shlibpath_var=LD_LIBRARY_PATH
! 14605: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 14606: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14607: soname_spec='${libname}${release}.so$major'
! 14608: if test "X$HPUX_IA64_MODE" = X32; then
! 14609: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 14610: else
! 14611: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 14612: fi
! 14613: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 14614: else
! 14615: dynamic_linker="$host_os dld.sl"
! 14616: shlibpath_var=SHLIB_PATH
! 14617: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 14618: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
! 14619: soname_spec='${libname}${release}.sl$major'
! 14620: fi
! 14621: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 14622: postinstall_cmds='chmod 555 $lib'
! 14623: ;;
! 14624:
! 14625: irix5* | irix6*)
! 14626: version_type=irix
! 14627: need_lib_prefix=no
! 14628: need_version=no
! 14629: soname_spec='${libname}${release}.so$major'
! 14630: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
! 14631: case $host_os in
! 14632: irix5*)
! 14633: libsuff= shlibsuff=
! 14634: ;;
! 14635: *)
! 14636: case $LD in # libtool.m4 will add one of these switches to LD
! 14637: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
! 14638: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
! 14639: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 14640: *) libsuff= shlibsuff= libmagic=never-match;;
! 14641: esac
! 14642: ;;
! 14643: esac
! 14644: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 14645: shlibpath_overrides_runpath=no
! 14646: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 14647: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 14648: ;;
! 14649:
! 14650: # No shared lib support for Linux oldld, aout, or coff.
! 14651: linux*oldld* | linux*aout* | linux*coff*)
! 14652: dynamic_linker=no
! 14653: ;;
! 14654:
! 14655: # This must be Linux ELF.
! 14656: linux*)
! 14657: version_type=linux
! 14658: need_lib_prefix=no
! 14659: need_version=no
! 14660: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14661: soname_spec='${libname}${release}.so$major'
! 14662: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 14663: shlibpath_var=LD_LIBRARY_PATH
! 14664: shlibpath_overrides_runpath=no
! 14665: # This implies no fast_install, which is unacceptable.
! 14666: # Some rework will be needed to allow for fast_install
! 14667: # before this can be enabled.
! 14668: hardcode_into_libs=yes
! 14669:
! 14670: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 14671: # powerpc, because MkLinux only supported shared libraries with the
! 14672: # GNU dynamic linker. Since this was broken with cross compilers,
! 14673: # most powerpc-linux boxes support dynamic linking these days and
! 14674: # people can always --disable-shared, the test was removed, and we
! 14675: # assume the GNU/Linux dynamic linker is in use.
! 14676: dynamic_linker='GNU/Linux ld.so'
! 14677: ;;
! 14678:
! 14679: netbsd*)
! 14680: version_type=sunos
! 14681: need_lib_prefix=no
! 14682: need_version=no
! 14683: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14684: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 14685: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 14686: dynamic_linker='NetBSD (a.out) ld.so'
! 14687: else
! 14688: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
! 14689: soname_spec='${libname}${release}.so$major'
! 14690: dynamic_linker='NetBSD ld.elf_so'
! 14691: fi
! 14692: shlibpath_var=LD_LIBRARY_PATH
! 14693: shlibpath_overrides_runpath=yes
! 14694: hardcode_into_libs=yes
! 14695: ;;
! 14696:
! 14697: newsos6)
! 14698: version_type=linux
! 14699: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14700: shlibpath_var=LD_LIBRARY_PATH
! 14701: shlibpath_overrides_runpath=yes
! 14702: ;;
! 14703:
! 14704: nto-qnx)
! 14705: version_type=linux
! 14706: need_lib_prefix=no
! 14707: need_version=no
! 14708: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14709: soname_spec='${libname}${release}.so$major'
! 14710: shlibpath_var=LD_LIBRARY_PATH
! 14711: shlibpath_overrides_runpath=yes
! 14712: ;;
! 14713:
! 14714: openbsd*)
! 14715: version_type=sunos
! 14716: need_lib_prefix=no
! 14717: need_version=no
! 14718: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 14719: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 14720: shlibpath_var=LD_LIBRARY_PATH
! 14721: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 14722: case $host_os in
! 14723: openbsd2.[89] | openbsd2.[89].*)
! 14724: shlibpath_overrides_runpath=no
! 14725: ;;
! 14726: *)
! 14727: shlibpath_overrides_runpath=yes
! 14728: ;;
! 14729: esac
! 14730: else
! 14731: shlibpath_overrides_runpath=yes
! 14732: fi
! 14733: ;;
! 14734:
! 14735: os2*)
! 14736: libname_spec='$name'
! 14737: need_lib_prefix=no
! 14738: library_names_spec='$libname.dll $libname.a'
! 14739: dynamic_linker='OS/2 ld.exe'
! 14740: shlibpath_var=LIBPATH
! 14741: ;;
! 14742:
! 14743: osf3* | osf4* | osf5*)
! 14744: version_type=osf
! 14745: need_lib_prefix=no
! 14746: need_version=no
! 14747: soname_spec='${libname}${release}.so'
! 14748: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
! 14749: shlibpath_var=LD_LIBRARY_PATH
! 14750: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 14751: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 14752: ;;
! 14753:
! 14754: sco3.2v5*)
! 14755: version_type=osf
! 14756: soname_spec='${libname}${release}.so$major'
! 14757: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14758: shlibpath_var=LD_LIBRARY_PATH
! 14759: ;;
! 14760:
! 14761: solaris*)
! 14762: version_type=linux
! 14763: need_lib_prefix=no
! 14764: need_version=no
! 14765: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14766: soname_spec='${libname}${release}.so$major'
! 14767: shlibpath_var=LD_LIBRARY_PATH
! 14768: shlibpath_overrides_runpath=yes
! 14769: hardcode_into_libs=yes
! 14770: # ldd complains unless libraries are executable
! 14771: postinstall_cmds='chmod +x $lib'
! 14772: ;;
! 14773:
! 14774: sunos4*)
! 14775: version_type=sunos
! 14776: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
! 14777: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 14778: shlibpath_var=LD_LIBRARY_PATH
! 14779: shlibpath_overrides_runpath=yes
! 14780: if test "$with_gnu_ld" = yes; then
! 14781: need_lib_prefix=no
! 14782: fi
! 14783: need_version=yes
! 14784: ;;
! 14785:
! 14786: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 14787: version_type=linux
! 14788: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14789: soname_spec='${libname}${release}.so$major'
! 14790: shlibpath_var=LD_LIBRARY_PATH
! 14791: case $host_vendor in
! 14792: sni)
! 14793: shlibpath_overrides_runpath=no
! 14794: ;;
! 14795: motorola)
! 14796: need_lib_prefix=no
! 14797: need_version=no
! 14798: shlibpath_overrides_runpath=no
! 14799: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 14800: ;;
! 14801: esac
! 14802: ;;
! 14803:
! 14804: sysv4*MP*)
! 14805: if test -d /usr/nec ;then
! 14806: version_type=linux
! 14807: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
! 14808: soname_spec='$libname.so.$major'
! 14809: shlibpath_var=LD_LIBRARY_PATH
! 14810: fi
! 14811: ;;
! 14812:
! 14813: uts4*)
! 14814: version_type=linux
! 14815: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
! 14816: soname_spec='${libname}${release}.so$major'
! 14817: shlibpath_var=LD_LIBRARY_PATH
! 14818: ;;
! 14819:
! 14820: *)
! 14821: dynamic_linker=no
! 14822: ;;
! 14823: esac
! 14824: echo "$as_me:14824: result: $dynamic_linker" >&5
! 14825: echo "${ECHO_T}$dynamic_linker" >&6
! 14826: test "$dynamic_linker" = no && can_build_shared=no
! 14827:
! 14828: if test "x$enable_dlopen" != xyes; then
! 14829: enable_dlopen=unknown
! 14830: enable_dlopen_self=unknown
! 14831: enable_dlopen_self_static=unknown
! 14832: else
! 14833: lt_cv_dlopen=no
! 14834: lt_cv_dlopen_libs=
! 14835:
! 14836: case $host_os in
! 14837: beos*)
! 14838: lt_cv_dlopen="load_add_on"
! 14839: lt_cv_dlopen_libs=
! 14840: lt_cv_dlopen_self=yes
! 14841: ;;
! 14842:
! 14843: cygwin* | mingw* | pw32*)
! 14844: lt_cv_dlopen="LoadLibrary"
! 14845: lt_cv_dlopen_libs=
! 14846: ;;
! 14847:
! 14848: *)
! 14849: echo "$as_me:14849: checking for shl_load" >&5
! 14850: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 14851: if test "${ac_cv_func_shl_load+set}" = set; then
! 14852: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14853: else
! 14854: cat >conftest.$ac_ext <<_ACEOF
! 14855: #line 14855 "configure"
! 14856: #include "confdefs.h"
! 14857: /* System header to define __stub macros and hopefully few prototypes,
! 14858: which can conflict with char shl_load (); below. */
! 14859: #include <assert.h>
! 14860: /* Override any gcc2 internal prototype to avoid an error. */
! 14861: #ifdef __cplusplus
! 14862: extern "C"
! 14863: #endif
! 14864: /* We use char because int might match the return type of a gcc2
! 14865: builtin and then its argument prototype would still apply. */
! 14866: char shl_load ();
! 14867: char (*f) ();
! 14868:
! 14869: int
! 14870: main ()
! 14871: {
! 14872: /* The GNU C library defines this for functions which it implements
! 14873: to always fail with ENOSYS. Some functions are actually named
! 14874: something starting with __ and the normal name is an alias. */
! 14875: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 14876: choke me
! 14877: #else
! 14878: f = shl_load;
! 14879: #endif
! 14880:
! 14881: ;
! 14882: return 0;
! 14883: }
! 14884: _ACEOF
! 14885: rm -f conftest.$ac_objext conftest$ac_exeext
! 14886: if { (eval echo "$as_me:14886: \"$ac_link\"") >&5
! 14887: (eval $ac_link) 2>&5
! 14888: ac_status=$?
! 14889: echo "$as_me:14889: \$? = $ac_status" >&5
! 14890: (exit $ac_status); } &&
! 14891: { ac_try='test -s conftest$ac_exeext'
! 14892: { (eval echo "$as_me:14892: \"$ac_try\"") >&5
! 14893: (eval $ac_try) 2>&5
! 14894: ac_status=$?
! 14895: echo "$as_me:14895: \$? = $ac_status" >&5
! 14896: (exit $ac_status); }; }; then
! 14897: ac_cv_func_shl_load=yes
! 14898: else
! 14899: echo "$as_me: failed program was:" >&5
! 14900: cat conftest.$ac_ext >&5
! 14901: ac_cv_func_shl_load=no
! 14902: fi
! 14903: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 14904: fi
! 14905: echo "$as_me:14905: result: $ac_cv_func_shl_load" >&5
! 14906: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 14907: if test $ac_cv_func_shl_load = yes; then
! 14908: lt_cv_dlopen="shl_load"
! 14909: else
! 14910: echo "$as_me:14910: checking for shl_load in -ldld" >&5
! 14911: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 14912: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 14913: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14914: else
! 14915: ac_check_lib_save_LIBS=$LIBS
! 14916: LIBS="-ldld $LIBS"
! 14917: cat >conftest.$ac_ext <<_ACEOF
! 14918: #line 14918 "configure"
! 14919: #include "confdefs.h"
! 14920:
! 14921: /* Override any gcc2 internal prototype to avoid an error. */
! 14922: #ifdef __cplusplus
! 14923: extern "C"
! 14924: #endif
! 14925: /* We use char because int might match the return type of a gcc2
! 14926: builtin and then its argument prototype would still apply. */
! 14927: char shl_load ();
! 14928: int
! 14929: main ()
! 14930: {
! 14931: shl_load ();
! 14932: ;
! 14933: return 0;
! 14934: }
! 14935: _ACEOF
! 14936: rm -f conftest.$ac_objext conftest$ac_exeext
! 14937: if { (eval echo "$as_me:14937: \"$ac_link\"") >&5
! 14938: (eval $ac_link) 2>&5
! 14939: ac_status=$?
! 14940: echo "$as_me:14940: \$? = $ac_status" >&5
! 14941: (exit $ac_status); } &&
! 14942: { ac_try='test -s conftest$ac_exeext'
! 14943: { (eval echo "$as_me:14943: \"$ac_try\"") >&5
! 14944: (eval $ac_try) 2>&5
! 14945: ac_status=$?
! 14946: echo "$as_me:14946: \$? = $ac_status" >&5
! 14947: (exit $ac_status); }; }; then
! 14948: ac_cv_lib_dld_shl_load=yes
! 14949: else
! 14950: echo "$as_me: failed program was:" >&5
! 14951: cat conftest.$ac_ext >&5
! 14952: ac_cv_lib_dld_shl_load=no
! 14953: fi
! 14954: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 14955: LIBS=$ac_check_lib_save_LIBS
! 14956: fi
! 14957: echo "$as_me:14957: result: $ac_cv_lib_dld_shl_load" >&5
! 14958: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 14959: if test $ac_cv_lib_dld_shl_load = yes; then
! 14960: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 14961: else
! 14962: echo "$as_me:14962: checking for dlopen" >&5
! 14963: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 14964: if test "${ac_cv_func_dlopen+set}" = set; then
! 14965: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14966: else
! 14967: cat >conftest.$ac_ext <<_ACEOF
! 14968: #line 14968 "configure"
! 14969: #include "confdefs.h"
! 14970: /* System header to define __stub macros and hopefully few prototypes,
! 14971: which can conflict with char dlopen (); below. */
! 14972: #include <assert.h>
! 14973: /* Override any gcc2 internal prototype to avoid an error. */
! 14974: #ifdef __cplusplus
! 14975: extern "C"
! 14976: #endif
! 14977: /* We use char because int might match the return type of a gcc2
! 14978: builtin and then its argument prototype would still apply. */
! 14979: char dlopen ();
! 14980: char (*f) ();
! 14981:
! 14982: int
! 14983: main ()
! 14984: {
! 14985: /* The GNU C library defines this for functions which it implements
! 14986: to always fail with ENOSYS. Some functions are actually named
! 14987: something starting with __ and the normal name is an alias. */
! 14988: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 14989: choke me
! 14990: #else
! 14991: f = dlopen;
! 14992: #endif
! 14993:
! 14994: ;
! 14995: return 0;
! 14996: }
! 14997: _ACEOF
! 14998: rm -f conftest.$ac_objext conftest$ac_exeext
! 14999: if { (eval echo "$as_me:14999: \"$ac_link\"") >&5
! 15000: (eval $ac_link) 2>&5
! 15001: ac_status=$?
! 15002: echo "$as_me:15002: \$? = $ac_status" >&5
! 15003: (exit $ac_status); } &&
! 15004: { ac_try='test -s conftest$ac_exeext'
! 15005: { (eval echo "$as_me:15005: \"$ac_try\"") >&5
! 15006: (eval $ac_try) 2>&5
! 15007: ac_status=$?
! 15008: echo "$as_me:15008: \$? = $ac_status" >&5
! 15009: (exit $ac_status); }; }; then
! 15010: ac_cv_func_dlopen=yes
! 15011: else
! 15012: echo "$as_me: failed program was:" >&5
! 15013: cat conftest.$ac_ext >&5
! 15014: ac_cv_func_dlopen=no
! 15015: fi
! 15016: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 15017: fi
! 15018: echo "$as_me:15018: result: $ac_cv_func_dlopen" >&5
! 15019: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 15020: if test $ac_cv_func_dlopen = yes; then
! 15021: lt_cv_dlopen="dlopen"
! 15022: else
! 15023: echo "$as_me:15023: checking for dlopen in -ldl" >&5
! 15024: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 15025: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 15026: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15027: else
! 15028: ac_check_lib_save_LIBS=$LIBS
! 15029: LIBS="-ldl $LIBS"
! 15030: cat >conftest.$ac_ext <<_ACEOF
! 15031: #line 15031 "configure"
! 15032: #include "confdefs.h"
! 15033:
! 15034: /* Override any gcc2 internal prototype to avoid an error. */
! 15035: #ifdef __cplusplus
! 15036: extern "C"
! 15037: #endif
! 15038: /* We use char because int might match the return type of a gcc2
! 15039: builtin and then its argument prototype would still apply. */
! 15040: char dlopen ();
! 15041: int
! 15042: main ()
! 15043: {
! 15044: dlopen ();
! 15045: ;
! 15046: return 0;
! 15047: }
! 15048: _ACEOF
! 15049: rm -f conftest.$ac_objext conftest$ac_exeext
! 15050: if { (eval echo "$as_me:15050: \"$ac_link\"") >&5
! 15051: (eval $ac_link) 2>&5
! 15052: ac_status=$?
! 15053: echo "$as_me:15053: \$? = $ac_status" >&5
! 15054: (exit $ac_status); } &&
! 15055: { ac_try='test -s conftest$ac_exeext'
! 15056: { (eval echo "$as_me:15056: \"$ac_try\"") >&5
! 15057: (eval $ac_try) 2>&5
! 15058: ac_status=$?
! 15059: echo "$as_me:15059: \$? = $ac_status" >&5
! 15060: (exit $ac_status); }; }; then
! 15061: ac_cv_lib_dl_dlopen=yes
! 15062: else
! 15063: echo "$as_me: failed program was:" >&5
! 15064: cat conftest.$ac_ext >&5
! 15065: ac_cv_lib_dl_dlopen=no
! 15066: fi
! 15067: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 15068: LIBS=$ac_check_lib_save_LIBS
! 15069: fi
! 15070: echo "$as_me:15070: result: $ac_cv_lib_dl_dlopen" >&5
! 15071: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 15072: if test $ac_cv_lib_dl_dlopen = yes; then
! 15073: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 15074: else
! 15075: echo "$as_me:15075: checking for dlopen in -lsvld" >&5
! 15076: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 15077: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 15078: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15079: else
! 15080: ac_check_lib_save_LIBS=$LIBS
! 15081: LIBS="-lsvld $LIBS"
! 15082: cat >conftest.$ac_ext <<_ACEOF
! 15083: #line 15083 "configure"
! 15084: #include "confdefs.h"
! 15085:
! 15086: /* Override any gcc2 internal prototype to avoid an error. */
! 15087: #ifdef __cplusplus
! 15088: extern "C"
! 15089: #endif
! 15090: /* We use char because int might match the return type of a gcc2
! 15091: builtin and then its argument prototype would still apply. */
! 15092: char dlopen ();
! 15093: int
! 15094: main ()
! 15095: {
! 15096: dlopen ();
! 15097: ;
! 15098: return 0;
! 15099: }
! 15100: _ACEOF
! 15101: rm -f conftest.$ac_objext conftest$ac_exeext
! 15102: if { (eval echo "$as_me:15102: \"$ac_link\"") >&5
! 15103: (eval $ac_link) 2>&5
! 15104: ac_status=$?
! 15105: echo "$as_me:15105: \$? = $ac_status" >&5
! 15106: (exit $ac_status); } &&
! 15107: { ac_try='test -s conftest$ac_exeext'
! 15108: { (eval echo "$as_me:15108: \"$ac_try\"") >&5
! 15109: (eval $ac_try) 2>&5
! 15110: ac_status=$?
! 15111: echo "$as_me:15111: \$? = $ac_status" >&5
! 15112: (exit $ac_status); }; }; then
! 15113: ac_cv_lib_svld_dlopen=yes
! 15114: else
! 15115: echo "$as_me: failed program was:" >&5
! 15116: cat conftest.$ac_ext >&5
! 15117: ac_cv_lib_svld_dlopen=no
! 15118: fi
! 15119: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 15120: LIBS=$ac_check_lib_save_LIBS
! 15121: fi
! 15122: echo "$as_me:15122: result: $ac_cv_lib_svld_dlopen" >&5
! 15123: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 15124: if test $ac_cv_lib_svld_dlopen = yes; then
! 15125: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 15126: else
! 15127: echo "$as_me:15127: checking for dld_link in -ldld" >&5
! 15128: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 15129: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 15130: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15131: else
! 15132: ac_check_lib_save_LIBS=$LIBS
! 15133: LIBS="-ldld $LIBS"
! 15134: cat >conftest.$ac_ext <<_ACEOF
! 15135: #line 15135 "configure"
! 15136: #include "confdefs.h"
! 15137:
! 15138: /* Override any gcc2 internal prototype to avoid an error. */
! 15139: #ifdef __cplusplus
! 15140: extern "C"
! 15141: #endif
! 15142: /* We use char because int might match the return type of a gcc2
! 15143: builtin and then its argument prototype would still apply. */
! 15144: char dld_link ();
! 15145: int
! 15146: main ()
! 15147: {
! 15148: dld_link ();
! 15149: ;
! 15150: return 0;
! 15151: }
! 15152: _ACEOF
! 15153: rm -f conftest.$ac_objext conftest$ac_exeext
! 15154: if { (eval echo "$as_me:15154: \"$ac_link\"") >&5
! 15155: (eval $ac_link) 2>&5
! 15156: ac_status=$?
! 15157: echo "$as_me:15157: \$? = $ac_status" >&5
! 15158: (exit $ac_status); } &&
! 15159: { ac_try='test -s conftest$ac_exeext'
! 15160: { (eval echo "$as_me:15160: \"$ac_try\"") >&5
! 15161: (eval $ac_try) 2>&5
! 15162: ac_status=$?
! 15163: echo "$as_me:15163: \$? = $ac_status" >&5
! 15164: (exit $ac_status); }; }; then
! 15165: ac_cv_lib_dld_dld_link=yes
! 15166: else
! 15167: echo "$as_me: failed program was:" >&5
! 15168: cat conftest.$ac_ext >&5
! 15169: ac_cv_lib_dld_dld_link=no
! 15170: fi
! 15171: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 15172: LIBS=$ac_check_lib_save_LIBS
! 15173: fi
! 15174: echo "$as_me:15174: result: $ac_cv_lib_dld_dld_link" >&5
! 15175: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 15176: if test $ac_cv_lib_dld_dld_link = yes; then
! 15177: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 15178: fi
! 15179:
! 15180: fi
! 15181:
! 15182: fi
! 15183:
! 15184: fi
! 15185:
! 15186: fi
! 15187:
! 15188: fi
! 15189:
! 15190: ;;
! 15191: esac
! 15192:
! 15193: if test "x$lt_cv_dlopen" != xno; then
! 15194: enable_dlopen=yes
! 15195: else
! 15196: enable_dlopen=no
! 15197: fi
! 15198:
! 15199: case $lt_cv_dlopen in
! 15200: dlopen)
! 15201: save_CPPFLAGS="$CPPFLAGS"
! 15202: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 15203:
! 15204: save_LDFLAGS="$LDFLAGS"
! 15205: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 15206:
! 15207: save_LIBS="$LIBS"
! 15208: LIBS="$lt_cv_dlopen_libs $LIBS"
! 15209:
! 15210: echo "$as_me:15210: checking whether a program can dlopen itself" >&5
! 15211: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 15212: if test "${lt_cv_dlopen_self+set}" = set; then
! 15213: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15214: else
! 15215: if test "$cross_compiling" = yes; then :
! 15216: lt_cv_dlopen_self=cross
! 15217: else
! 15218: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 15219: lt_status=$lt_dlunknown
! 15220: cat > conftest.$ac_ext <<EOF
! 15221: #line 15221 "configure"
! 15222: #include "confdefs.h"
! 15223:
! 15224: #if HAVE_DLFCN_H
! 15225: #include <dlfcn.h>
! 15226: #endif
! 15227:
! 15228: #include <stdio.h>
! 15229:
! 15230: #ifdef RTLD_GLOBAL
! 15231: # define LT_DLGLOBAL RTLD_GLOBAL
! 15232: #else
! 15233: # ifdef DL_GLOBAL
! 15234: # define LT_DLGLOBAL DL_GLOBAL
! 15235: # else
! 15236: # define LT_DLGLOBAL 0
! 15237: # endif
! 15238: #endif
! 15239:
! 15240: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 15241: find out it does not work in some platform. */
! 15242: #ifndef LT_DLLAZY_OR_NOW
! 15243: # ifdef RTLD_LAZY
! 15244: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 15245: # else
! 15246: # ifdef DL_LAZY
! 15247: # define LT_DLLAZY_OR_NOW DL_LAZY
! 15248: # else
! 15249: # ifdef RTLD_NOW
! 15250: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 15251: # else
! 15252: # ifdef DL_NOW
! 15253: # define LT_DLLAZY_OR_NOW DL_NOW
! 15254: # else
! 15255: # define LT_DLLAZY_OR_NOW 0
! 15256: # endif
! 15257: # endif
! 15258: # endif
! 15259: # endif
! 15260: #endif
! 15261:
! 15262: #ifdef __cplusplus
! 15263: extern "C" void exit (int);
! 15264: #endif
! 15265:
! 15266: void fnord() { int i=42;}
! 15267: int main ()
! 15268: {
! 15269: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 15270: int status = $lt_dlunknown;
! 15271:
! 15272: if (self)
! 15273: {
! 15274: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 15275: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 15276: /* dlclose (self); */
! 15277: }
! 15278:
! 15279: exit (status);
! 15280: }
! 15281: EOF
! 15282: if { (eval echo "$as_me:15282: \"$ac_link\"") >&5
! 15283: (eval $ac_link) 2>&5
! 15284: ac_status=$?
! 15285: echo "$as_me:15285: \$? = $ac_status" >&5
! 15286: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 15287: (./conftest; exit; ) 2>/dev/null
! 15288: lt_status=$?
! 15289: case x$lt_status in
! 15290: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 15291: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 15292: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 15293: esac
! 15294: else :
! 15295: # compilation failed
! 15296: lt_cv_dlopen_self=no
! 15297: fi
! 15298: fi
! 15299: rm -fr conftest*
! 15300:
! 15301: fi
! 15302: echo "$as_me:15302: result: $lt_cv_dlopen_self" >&5
! 15303: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 15304:
! 15305: if test "x$lt_cv_dlopen_self" = xyes; then
! 15306: LDFLAGS="$LDFLAGS $link_static_flag"
! 15307: echo "$as_me:15307: checking whether a statically linked program can dlopen itself" >&5
! 15308: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 15309: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 15310: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15311: else
! 15312: if test "$cross_compiling" = yes; then :
! 15313: lt_cv_dlopen_self_static=cross
! 15314: else
! 15315: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 15316: lt_status=$lt_dlunknown
! 15317: cat > conftest.$ac_ext <<EOF
! 15318: #line 15318 "configure"
! 15319: #include "confdefs.h"
! 15320:
! 15321: #if HAVE_DLFCN_H
! 15322: #include <dlfcn.h>
! 15323: #endif
! 15324:
! 15325: #include <stdio.h>
! 15326:
! 15327: #ifdef RTLD_GLOBAL
! 15328: # define LT_DLGLOBAL RTLD_GLOBAL
! 15329: #else
! 15330: # ifdef DL_GLOBAL
! 15331: # define LT_DLGLOBAL DL_GLOBAL
! 15332: # else
! 15333: # define LT_DLGLOBAL 0
! 15334: # endif
! 15335: #endif
! 15336:
! 15337: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 15338: find out it does not work in some platform. */
! 15339: #ifndef LT_DLLAZY_OR_NOW
! 15340: # ifdef RTLD_LAZY
! 15341: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 15342: # else
! 15343: # ifdef DL_LAZY
! 15344: # define LT_DLLAZY_OR_NOW DL_LAZY
! 15345: # else
! 15346: # ifdef RTLD_NOW
! 15347: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 15348: # else
! 15349: # ifdef DL_NOW
! 15350: # define LT_DLLAZY_OR_NOW DL_NOW
! 15351: # else
! 15352: # define LT_DLLAZY_OR_NOW 0
! 15353: # endif
! 15354: # endif
! 15355: # endif
! 15356: # endif
! 15357: #endif
! 15358:
! 15359: #ifdef __cplusplus
! 15360: extern "C" void exit (int);
! 15361: #endif
! 15362:
! 15363: void fnord() { int i=42;}
! 15364: int main ()
! 15365: {
! 15366: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 15367: int status = $lt_dlunknown;
! 15368:
! 15369: if (self)
! 15370: {
! 15371: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 15372: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 15373: /* dlclose (self); */
! 15374: }
! 15375:
! 15376: exit (status);
! 15377: }
! 15378: EOF
! 15379: if { (eval echo "$as_me:15379: \"$ac_link\"") >&5
! 15380: (eval $ac_link) 2>&5
! 15381: ac_status=$?
! 15382: echo "$as_me:15382: \$? = $ac_status" >&5
! 15383: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 15384: (./conftest; exit; ) 2>/dev/null
! 15385: lt_status=$?
! 15386: case x$lt_status in
! 15387: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 15388: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 15389: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 15390: esac
! 15391: else :
! 15392: # compilation failed
! 15393: lt_cv_dlopen_self_static=no
! 15394: fi
! 15395: fi
! 15396: rm -fr conftest*
! 15397:
! 15398: fi
! 15399: echo "$as_me:15399: result: $lt_cv_dlopen_self_static" >&5
! 15400: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 15401: fi
! 15402:
! 15403: CPPFLAGS="$save_CPPFLAGS"
! 15404: LDFLAGS="$save_LDFLAGS"
! 15405: LIBS="$save_LIBS"
! 15406: ;;
! 15407: esac
! 15408:
! 15409: case $lt_cv_dlopen_self in
! 15410: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 15411: *) enable_dlopen_self=unknown ;;
! 15412: esac
! 15413:
! 15414: case $lt_cv_dlopen_self_static in
! 15415: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 15416: *) enable_dlopen_self_static=unknown ;;
! 15417: esac
! 15418: fi
! 15419:
! 15420: # The else clause should only fire when bootstrapping the
! 15421: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 15422: # with your package, and you will get complaints that there are
! 15423: # no rules to generate ltmain.sh.
! 15424: if test -f "$ltmain"; then
! 15425: # Now quote all the things that may contain metacharacters while being
! 15426: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 15427: # variables and quote the copies for generation of the libtool script.
! 15428: for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \
! 15429: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 15430: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 15431: deplibs_check_method reload_flag reload_cmds need_locks \
! 15432: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 15433: lt_cv_sys_global_symbol_to_c_name_address \
! 15434: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 15435: old_postinstall_cmds old_postuninstall_cmds \
! 15436: HOST_CC \
! 15437: compiler_GCJ \
! 15438: CC_GCJ \
! 15439: LD_GCJ \
! 15440: lt_prog_compiler_wl_GCJ \
! 15441: lt_prog_compiler_pic_GCJ \
! 15442: lt_prog_compiler_static_GCJ \
! 15443: lt_prog_compiler_no_builtin_flag_GCJ \
! 15444: export_dynamic_flag_spec_GCJ \
! 15445: thread_safe_flag_spec_GCJ \
! 15446: whole_archive_flag_spec_GCJ \
! 15447: old_archive_cmds_GCJ \
! 15448: old_archive_from_new_cmds_GCJ \
! 15449: predep_objects_GCJ \
! 15450: postdep_objects_GCJ \
! 15451: predeps_GCJ \
! 15452: postdeps_GCJ \
! 15453: compiler_lib_search_path_GCJ \
! 15454: archive_cmds_GCJ \
! 15455: archive_expsym_cmds_GCJ \
! 15456: postinstall_cmds_GCJ \
! 15457: postuninstall_cmds_GCJ \
! 15458: old_archive_from_expsyms_cmds_GCJ \
! 15459: allow_undefined_flag_GCJ \
! 15460: no_undefined_flag_GCJ \
! 15461: export_symbols_cmds_GCJ \
! 15462: hardcode_libdir_flag_spec_GCJ \
! 15463: hardcode_libdir_separator_GCJ \
! 15464: lt_cv_prog_compiler_c_o_GCJ \
! 15465: exclude_expsyms_GCJ \
! 15466: include_expsyms_GCJ; do
! 15467:
! 15468: case $var in
! 15469: old_archive_cmds_GCJ | \
! 15470: old_archive_from_new_cmds_GCJ | \
! 15471: archive_cmds_GCJ | \
! 15472: archive_expsym_cmds_GCJ | \
! 15473: old_archive_from_expsyms_cmds_GCJ | \
! 15474: export_symbols_cmds_GCJ | \
! 15475: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 15476: postinstall_cmds | postuninstall_cmds | \
! 15477: old_postinstall_cmds | old_postuninstall_cmds | \
! 15478: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 15479: # Double-quote double-evaled strings.
! 15480: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 15481: ;;
! 15482: *)
! 15483: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 15484: ;;
! 15485: esac
! 15486: done
! 15487:
! 15488: case $lt_echo in
! 15489: *'\$0 --fallback-echo"')
! 15490: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 15491: ;;
! 15492: esac
! 15493:
! 15494: cfgfile="$ofile"
! 15495:
! 15496: cat <<__EOF__ >> "$cfgfile"
! 15497: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 15498:
! 15499: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 15500:
! 15501: # Shell to use when invoking shell scripts.
! 15502: SHELL=$lt_SHELL
! 15503:
! 15504: # Whether or not to build shared libraries.
! 15505: build_libtool_libs=$enable_shared
! 15506:
! 15507: # Whether or not to build static libraries.
! 15508: build_old_libs=$enable_static
! 15509:
! 15510: # Whether or not to add -lc for building shared libraries.
! 15511: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
! 15512:
! 15513: # Whether or not to optimize for fast installation.
! 15514: fast_install=$enable_fast_install
! 15515:
! 15516: # The host system.
! 15517: host_alias=$host_alias
! 15518: host=$host
! 15519:
! 15520: # An echo program that does not interpret backslashes.
! 15521: echo=$lt_echo
! 15522:
! 15523: # The archiver.
! 15524: AR=$lt_AR
! 15525: AR_FLAGS=$lt_AR_FLAGS
! 15526:
! 15527: # A C compiler.
! 15528: LTCC=$lt_LTCC
! 15529:
! 15530: # A C compiler for the build system.
! 15531: HOST_CC=$lt_HOST_CC
! 15532:
! 15533: # A language-specific compiler.
! 15534: CC=$lt_compiler_GCJ
! 15535:
! 15536: # Is the compiler the GNU C compiler?
! 15537: with_gcc=$GCC_GCJ
! 15538:
! 15539: # The linker used to build libraries.
! 15540: LD=$lt_LD_GCJ
! 15541:
! 15542: # Whether we need hard or soft links.
! 15543: LN_S=$lt_LN_S
! 15544:
! 15545: # A BSD-compatible nm program.
! 15546: NM=$lt_NM
! 15547:
! 15548: # A symbol stripping program
! 15549: STRIP=$STRIP
! 15550:
! 15551: # Used to examine libraries when file_magic_cmd begins "file"
! 15552: MAGIC_CMD=$MAGIC_CMD
! 15553:
! 15554: # Used on cygwin: DLL creation program.
! 15555: DLLTOOL="$DLLTOOL"
! 15556:
! 15557: # Used on cygwin: object dumper.
! 15558: OBJDUMP="$OBJDUMP"
! 15559:
! 15560: # Used on cygwin: assembler.
! 15561: AS="$AS"
! 15562:
! 15563: # The name of the directory that contains temporary libtool files.
! 15564: objdir=$objdir
! 15565:
! 15566: # How to create reloadable object files.
! 15567: reload_flag=$lt_reload_flag
! 15568: reload_cmds=$lt_reload_cmds
! 15569:
! 15570: # How to pass a linker flag through the compiler.
! 15571: wl=$lt_lt_prog_compiler_wl_GCJ
! 15572:
! 15573: # Object file suffix (normally "o").
! 15574: objext="$ac_objext"
! 15575:
! 15576: # Old archive suffix (normally "a").
! 15577: libext="$libext"
! 15578:
! 15579: # Executable file suffix (normally "").
! 15580: exeext="$exeext"
! 15581:
! 15582: # Additional compiler flags for building library objects.
! 15583: pic_flag=$lt_lt_prog_compiler_pic_GCJ
! 15584: pic_mode=$pic_mode
! 15585:
! 15586: # What is the maximum length of a command?
! 15587: max_cmd_len=$lt_cv_sys_max_cmd_len
! 15588:
! 15589: # Does compiler simultaneously support -c and -o options?
! 15590: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
! 15591:
! 15592: # Must we lock files when doing compilation ?
! 15593: need_locks=$lt_need_locks
! 15594:
! 15595: # Do we need the lib prefix for modules?
! 15596: need_lib_prefix=$need_lib_prefix
! 15597:
! 15598: # Do we need a version for libraries?
! 15599: need_version=$need_version
! 15600:
! 15601: # Whether dlopen is supported.
! 15602: dlopen_support=$enable_dlopen
! 15603:
! 15604: # Whether dlopen of programs is supported.
! 15605: dlopen_self=$enable_dlopen_self
! 15606:
! 15607: # Whether dlopen of statically linked programs is supported.
! 15608: dlopen_self_static=$enable_dlopen_self_static
! 15609:
! 15610: # Compiler flag to prevent dynamic linking.
! 15611: link_static_flag=$lt_lt_prog_compiler_static_GCJ
! 15612:
! 15613: # Compiler flag to turn off builtin functions.
! 15614: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
! 15615:
! 15616: # Compiler flag to allow reflexive dlopens.
! 15617: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
! 15618:
! 15619: # Compiler flag to generate shared objects directly from archives.
! 15620: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
! 15621:
! 15622: # Compiler flag to generate thread-safe objects.
! 15623: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
! 15624:
! 15625: # Library versioning type.
! 15626: version_type=$version_type
! 15627:
! 15628: # Format of library name prefix.
! 15629: libname_spec=$lt_libname_spec
! 15630:
! 15631: # List of archive names. First name is the real one, the rest are links.
! 15632: # The last name is the one that the linker finds with -lNAME.
! 15633: library_names_spec=$lt_library_names_spec
! 15634:
! 15635: # The coded name of the library, if different from the real name.
! 15636: soname_spec=$lt_soname_spec
! 15637:
! 15638: # Commands used to build and install an old-style archive.
! 15639: RANLIB=$lt_RANLIB
! 15640: old_archive_cmds=$lt_old_archive_cmds_GCJ
! 15641: old_postinstall_cmds=$lt_old_postinstall_cmds
! 15642: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 15643:
! 15644: # Create an old-style archive from a shared archive.
! 15645: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
! 15646:
! 15647: # Create a temporary old-style archive to link instead of a shared archive.
! 15648: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
! 15649:
! 15650: # Commands used to build and install a shared archive.
! 15651: archive_cmds=$lt_archive_cmds_GCJ
! 15652: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
! 15653: postinstall_cmds=$lt_postinstall_cmds
! 15654: postuninstall_cmds=$lt_postuninstall_cmds
! 15655:
! 15656: # Commands to strip libraries.
! 15657: old_striplib=$lt_old_striplib
! 15658: striplib=$lt_striplib
! 15659:
! 15660: # Dependencies to place before the objects being linked to create a
! 15661: # shared library.
! 15662: predep_objects=$lt_predep_objects_GCJ
! 15663:
! 15664: # Dependencies to place after the objects being linked to create a
! 15665: # shared library.
! 15666: postdep_objects=$lt_postdep_objects_GCJ
! 15667:
! 15668: # Dependencies to place before the objects being linked to create a
! 15669: # shared library.
! 15670: predeps=$lt_predeps_GCJ
! 15671:
! 15672: # Dependencies to place after the objects being linked to create a
! 15673: # shared library.
! 15674: postdeps=$lt_postdeps_GCJ
! 15675:
! 15676: # The library search path used internally by the compiler when linking
! 15677: # a shared library.
! 15678: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
! 15679:
! 15680: # Method to check whether dependent libraries are shared objects.
! 15681: deplibs_check_method=$lt_deplibs_check_method
! 15682:
! 15683: # Command to use when deplibs_check_method == file_magic.
! 15684: file_magic_cmd=$lt_file_magic_cmd
! 15685:
! 15686: # Flag that allows shared libraries with undefined symbols to be built.
! 15687: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
! 15688:
! 15689: # Flag that forces no undefined symbols.
! 15690: no_undefined_flag=$lt_no_undefined_flag_GCJ
! 15691:
! 15692: # Commands used to finish a libtool library installation in a directory.
! 15693: finish_cmds=$lt_finish_cmds
! 15694:
! 15695: # Same as above, but a single script fragment to be evaled but not shown.
! 15696: finish_eval=$lt_finish_eval
! 15697:
! 15698: # Take the output of nm and produce a listing of raw symbols and C names.
! 15699: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 15700:
! 15701: # Transform the output of nm in a proper C declaration
! 15702: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 15703:
! 15704: # Transform the output of nm in a C name address pair
! 15705: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 15706:
! 15707: # This is the shared library runtime path variable.
! 15708: runpath_var=$runpath_var
! 15709:
! 15710: # This is the shared library path variable.
! 15711: shlibpath_var=$shlibpath_var
! 15712:
! 15713: # Is shlibpath searched before the hard-coded library search path?
! 15714: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 15715:
! 15716: # How to hardcode a shared library path into an executable.
! 15717: hardcode_action=$hardcode_action_GCJ
! 15718:
! 15719: # Whether we should hardcode library paths into libraries.
! 15720: hardcode_into_libs=$hardcode_into_libs
! 15721:
! 15722: # Flag to hardcode \$libdir into a binary during linking.
! 15723: # This must work even if \$libdir does not exist.
! 15724: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
! 15725:
! 15726: # Whether we need a single -rpath flag with a separated argument.
! 15727: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
! 15728:
! 15729: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 15730: # resulting binary.
! 15731: hardcode_direct=$hardcode_direct_GCJ
! 15732:
! 15733: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 15734: # resulting binary.
! 15735: hardcode_minus_L=$hardcode_minus_L_GCJ
! 15736:
! 15737: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 15738: # the resulting binary.
! 15739: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
! 15740:
! 15741: # Variables whose values should be saved in libtool wrapper scripts and
! 15742: # restored at relink time.
! 15743: variables_saved_for_relink="$variables_saved_for_relink"
! 15744:
! 15745: # Whether libtool must link a program against all its dependency libraries.
! 15746: link_all_deplibs=$link_all_deplibs_GCJ
! 15747:
! 15748: # Compile-time system search path for libraries
! 15749: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 15750:
! 15751: # Run-time system search path for libraries
! 15752: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 15753:
! 15754: # Fix the shell variable \$srcfile for the compiler.
! 15755: fix_srcfile_path="$fix_srcfile_path_GCJ"
! 15756:
! 15757: # Set to yes if exported symbols are required.
! 15758: always_export_symbols=$always_export_symbols_GCJ
! 15759:
! 15760: # The commands to list exported symbols.
! 15761: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
! 15762:
! 15763: # The commands to extract the exported symbol list from a shared archive.
! 15764: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 15765:
! 15766: # Symbols that should not be listed in the preloaded symbols.
! 15767: exclude_expsyms=$lt_exclude_expsyms_GCJ
! 15768:
! 15769: # Symbols that must always be exported.
! 15770: include_expsyms=$lt_include_expsyms_GCJ
! 15771:
! 15772: # ### END LIBTOOL TAG CONFIG: $tagname
! 15773:
! 15774: __EOF__
! 15775:
! 15776: else
! 15777: # If there is no Makefile yet, we rely on a make rule to execute
! 15778: # `config.status --recheck' to rerun these tests and create the
! 15779: # libtool script then.
! 15780: test -f Makefile && make "$ltmain"
! 15781: fi
! 15782:
! 15783: ac_ext=c
! 15784: ac_cpp='$CPP $CPPFLAGS'
! 15785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 15786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 15787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 15788:
! 15789: CC="$lt_save_CC"
! 15790:
! 15791: ;;
! 15792:
! 15793: RC)
! 15794:
! 15795: # Source file extension for RC test sources.
! 15796: ac_ext=rc
! 15797:
! 15798: # Object file extension for compiled RC test sources.
! 15799: objext=o
! 15800: objext_RC=$objext
! 15801:
! 15802: # Code to be used in simple compile tests
! 15803: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
! 15804:
! 15805: # Code to be used in simple link tests
! 15806: lt_simple_link_test_code="$lt_simple_compile_test_code"
! 15807:
! 15808: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 15809:
! 15810: # If no C compiler was specified, use CC.
! 15811: LTCC=${LTCC-"$CC"}
! 15812:
! 15813: # Allow CC to be a program name with arguments.
! 15814: set dummy $CC
! 15815: compiler="$2"
! 15816:
! 15817: # Allow CC to be a program name with arguments.
! 15818: lt_save_CC="$CC"
! 15819: CC=${RC-"windres"}
! 15820: set dummy $CC
! 15821: compiler="$2"
! 15822: compiler_RC=$CC
! 15823: lt_cv_prog_compiler_c_o_RC=yes
! 15824:
! 15825: # The else clause should only fire when bootstrapping the
! 15826: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 15827: # with your package, and you will get complaints that there are
! 15828: # no rules to generate ltmain.sh.
! 15829: if test -f "$ltmain"; then
! 15830: # Now quote all the things that may contain metacharacters while being
! 15831: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 15832: # variables and quote the copies for generation of the libtool script.
! 15833: for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \
! 15834: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 15835: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 15836: deplibs_check_method reload_flag reload_cmds need_locks \
! 15837: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 15838: lt_cv_sys_global_symbol_to_c_name_address \
! 15839: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 15840: old_postinstall_cmds old_postuninstall_cmds \
! 15841: HOST_CC \
! 15842: compiler_RC \
! 15843: CC_RC \
! 15844: LD_RC \
! 15845: lt_prog_compiler_wl_RC \
! 15846: lt_prog_compiler_pic_RC \
! 15847: lt_prog_compiler_static_RC \
! 15848: lt_prog_compiler_no_builtin_flag_RC \
! 15849: export_dynamic_flag_spec_RC \
! 15850: thread_safe_flag_spec_RC \
! 15851: whole_archive_flag_spec_RC \
! 15852: old_archive_cmds_RC \
! 15853: old_archive_from_new_cmds_RC \
! 15854: predep_objects_RC \
! 15855: postdep_objects_RC \
! 15856: predeps_RC \
! 15857: postdeps_RC \
! 15858: compiler_lib_search_path_RC \
! 15859: archive_cmds_RC \
! 15860: archive_expsym_cmds_RC \
! 15861: postinstall_cmds_RC \
! 15862: postuninstall_cmds_RC \
! 15863: old_archive_from_expsyms_cmds_RC \
! 15864: allow_undefined_flag_RC \
! 15865: no_undefined_flag_RC \
! 15866: export_symbols_cmds_RC \
! 15867: hardcode_libdir_flag_spec_RC \
! 15868: hardcode_libdir_separator_RC \
! 15869: lt_cv_prog_compiler_c_o_RC \
! 15870: exclude_expsyms_RC \
! 15871: include_expsyms_RC; do
! 15872:
! 15873: case $var in
! 15874: old_archive_cmds_RC | \
! 15875: old_archive_from_new_cmds_RC | \
! 15876: archive_cmds_RC | \
! 15877: archive_expsym_cmds_RC | \
! 15878: old_archive_from_expsyms_cmds_RC | \
! 15879: export_symbols_cmds_RC | \
! 15880: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 15881: postinstall_cmds | postuninstall_cmds | \
! 15882: old_postinstall_cmds | old_postuninstall_cmds | \
! 15883: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 15884: # Double-quote double-evaled strings.
! 15885: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 15886: ;;
! 15887: *)
! 15888: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 15889: ;;
! 15890: esac
! 15891: done
! 15892:
! 15893: case $lt_echo in
! 15894: *'\$0 --fallback-echo"')
! 15895: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 15896: ;;
! 15897: esac
! 15898:
! 15899: cfgfile="$ofile"
! 15900:
! 15901: cat <<__EOF__ >> "$cfgfile"
! 15902: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 15903:
! 15904: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 15905:
! 15906: # Shell to use when invoking shell scripts.
! 15907: SHELL=$lt_SHELL
! 15908:
! 15909: # Whether or not to build shared libraries.
! 15910: build_libtool_libs=$enable_shared
! 15911:
! 15912: # Whether or not to build static libraries.
! 15913: build_old_libs=$enable_static
! 15914:
! 15915: # Whether or not to add -lc for building shared libraries.
! 15916: build_libtool_need_lc=$archive_cmds_need_lc_RC
! 15917:
! 15918: # Whether or not to optimize for fast installation.
! 15919: fast_install=$enable_fast_install
! 15920:
! 15921: # The host system.
! 15922: host_alias=$host_alias
! 15923: host=$host
! 15924:
! 15925: # An echo program that does not interpret backslashes.
! 15926: echo=$lt_echo
! 15927:
! 15928: # The archiver.
! 15929: AR=$lt_AR
! 15930: AR_FLAGS=$lt_AR_FLAGS
! 15931:
! 15932: # A C compiler.
! 15933: LTCC=$lt_LTCC
! 15934:
! 15935: # A C compiler for the build system.
! 15936: HOST_CC=$lt_HOST_CC
! 15937:
! 15938: # A language-specific compiler.
! 15939: CC=$lt_compiler_RC
! 15940:
! 15941: # Is the compiler the GNU C compiler?
! 15942: with_gcc=$GCC_RC
! 15943:
! 15944: # The linker used to build libraries.
! 15945: LD=$lt_LD_RC
! 15946:
! 15947: # Whether we need hard or soft links.
! 15948: LN_S=$lt_LN_S
! 15949:
! 15950: # A BSD-compatible nm program.
! 15951: NM=$lt_NM
! 15952:
! 15953: # A symbol stripping program
! 15954: STRIP=$STRIP
! 15955:
! 15956: # Used to examine libraries when file_magic_cmd begins "file"
! 15957: MAGIC_CMD=$MAGIC_CMD
! 15958:
! 15959: # Used on cygwin: DLL creation program.
! 15960: DLLTOOL="$DLLTOOL"
! 15961:
! 15962: # Used on cygwin: object dumper.
! 15963: OBJDUMP="$OBJDUMP"
! 15964:
! 15965: # Used on cygwin: assembler.
! 15966: AS="$AS"
! 15967:
! 15968: # The name of the directory that contains temporary libtool files.
! 15969: objdir=$objdir
! 15970:
! 15971: # How to create reloadable object files.
! 15972: reload_flag=$lt_reload_flag
! 15973: reload_cmds=$lt_reload_cmds
! 15974:
! 15975: # How to pass a linker flag through the compiler.
! 15976: wl=$lt_lt_prog_compiler_wl_RC
! 15977:
! 15978: # Object file suffix (normally "o").
! 15979: objext="$ac_objext"
! 15980:
! 15981: # Old archive suffix (normally "a").
! 15982: libext="$libext"
! 15983:
! 15984: # Executable file suffix (normally "").
! 15985: exeext="$exeext"
! 15986:
! 15987: # Additional compiler flags for building library objects.
! 15988: pic_flag=$lt_lt_prog_compiler_pic_RC
! 15989: pic_mode=$pic_mode
! 15990:
! 15991: # What is the maximum length of a command?
! 15992: max_cmd_len=$lt_cv_sys_max_cmd_len
! 15993:
! 15994: # Does compiler simultaneously support -c and -o options?
! 15995: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
! 15996:
! 15997: # Must we lock files when doing compilation ?
! 15998: need_locks=$lt_need_locks
! 15999:
! 16000: # Do we need the lib prefix for modules?
! 16001: need_lib_prefix=$need_lib_prefix
! 16002:
! 16003: # Do we need a version for libraries?
! 16004: need_version=$need_version
! 16005:
! 16006: # Whether dlopen is supported.
! 16007: dlopen_support=$enable_dlopen
! 16008:
! 16009: # Whether dlopen of programs is supported.
! 16010: dlopen_self=$enable_dlopen_self
! 16011:
! 16012: # Whether dlopen of statically linked programs is supported.
! 16013: dlopen_self_static=$enable_dlopen_self_static
! 16014:
! 16015: # Compiler flag to prevent dynamic linking.
! 16016: link_static_flag=$lt_lt_prog_compiler_static_RC
! 16017:
! 16018: # Compiler flag to turn off builtin functions.
! 16019: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
! 16020:
! 16021: # Compiler flag to allow reflexive dlopens.
! 16022: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
! 16023:
! 16024: # Compiler flag to generate shared objects directly from archives.
! 16025: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
! 16026:
! 16027: # Compiler flag to generate thread-safe objects.
! 16028: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
! 16029:
! 16030: # Library versioning type.
! 16031: version_type=$version_type
! 16032:
! 16033: # Format of library name prefix.
! 16034: libname_spec=$lt_libname_spec
! 16035:
! 16036: # List of archive names. First name is the real one, the rest are links.
! 16037: # The last name is the one that the linker finds with -lNAME.
! 16038: library_names_spec=$lt_library_names_spec
! 16039:
! 16040: # The coded name of the library, if different from the real name.
! 16041: soname_spec=$lt_soname_spec
! 16042:
! 16043: # Commands used to build and install an old-style archive.
! 16044: RANLIB=$lt_RANLIB
! 16045: old_archive_cmds=$lt_old_archive_cmds_RC
! 16046: old_postinstall_cmds=$lt_old_postinstall_cmds
! 16047: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 16048:
! 16049: # Create an old-style archive from a shared archive.
! 16050: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
! 16051:
! 16052: # Create a temporary old-style archive to link instead of a shared archive.
! 16053: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
! 16054:
! 16055: # Commands used to build and install a shared archive.
! 16056: archive_cmds=$lt_archive_cmds_RC
! 16057: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
! 16058: postinstall_cmds=$lt_postinstall_cmds
! 16059: postuninstall_cmds=$lt_postuninstall_cmds
! 16060:
! 16061: # Commands to strip libraries.
! 16062: old_striplib=$lt_old_striplib
! 16063: striplib=$lt_striplib
! 16064:
! 16065: # Dependencies to place before the objects being linked to create a
! 16066: # shared library.
! 16067: predep_objects=$lt_predep_objects_RC
! 16068:
! 16069: # Dependencies to place after the objects being linked to create a
! 16070: # shared library.
! 16071: postdep_objects=$lt_postdep_objects_RC
! 16072:
! 16073: # Dependencies to place before the objects being linked to create a
! 16074: # shared library.
! 16075: predeps=$lt_predeps_RC
! 16076:
! 16077: # Dependencies to place after the objects being linked to create a
! 16078: # shared library.
! 16079: postdeps=$lt_postdeps_RC
! 16080:
! 16081: # The library search path used internally by the compiler when linking
! 16082: # a shared library.
! 16083: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
! 16084:
! 16085: # Method to check whether dependent libraries are shared objects.
! 16086: deplibs_check_method=$lt_deplibs_check_method
! 16087:
! 16088: # Command to use when deplibs_check_method == file_magic.
! 16089: file_magic_cmd=$lt_file_magic_cmd
! 16090:
! 16091: # Flag that allows shared libraries with undefined symbols to be built.
! 16092: allow_undefined_flag=$lt_allow_undefined_flag_RC
! 16093:
! 16094: # Flag that forces no undefined symbols.
! 16095: no_undefined_flag=$lt_no_undefined_flag_RC
! 16096:
! 16097: # Commands used to finish a libtool library installation in a directory.
! 16098: finish_cmds=$lt_finish_cmds
! 16099:
! 16100: # Same as above, but a single script fragment to be evaled but not shown.
! 16101: finish_eval=$lt_finish_eval
! 16102:
! 16103: # Take the output of nm and produce a listing of raw symbols and C names.
! 16104: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 16105:
! 16106: # Transform the output of nm in a proper C declaration
! 16107: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 16108:
! 16109: # Transform the output of nm in a C name address pair
! 16110: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 16111:
! 16112: # This is the shared library runtime path variable.
! 16113: runpath_var=$runpath_var
! 16114:
! 16115: # This is the shared library path variable.
! 16116: shlibpath_var=$shlibpath_var
! 16117:
! 16118: # Is shlibpath searched before the hard-coded library search path?
! 16119: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 16120:
! 16121: # How to hardcode a shared library path into an executable.
! 16122: hardcode_action=$hardcode_action_RC
! 16123:
! 16124: # Whether we should hardcode library paths into libraries.
! 16125: hardcode_into_libs=$hardcode_into_libs
! 16126:
! 16127: # Flag to hardcode \$libdir into a binary during linking.
! 16128: # This must work even if \$libdir does not exist.
! 16129: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
! 16130:
! 16131: # Whether we need a single -rpath flag with a separated argument.
! 16132: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
! 16133:
! 16134: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
! 16135: # resulting binary.
! 16136: hardcode_direct=$hardcode_direct_RC
! 16137:
! 16138: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 16139: # resulting binary.
! 16140: hardcode_minus_L=$hardcode_minus_L_RC
! 16141:
! 16142: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 16143: # the resulting binary.
! 16144: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
! 16145:
! 16146: # Variables whose values should be saved in libtool wrapper scripts and
! 16147: # restored at relink time.
! 16148: variables_saved_for_relink="$variables_saved_for_relink"
! 16149:
! 16150: # Whether libtool must link a program against all its dependency libraries.
! 16151: link_all_deplibs=$link_all_deplibs_RC
! 16152:
! 16153: # Compile-time system search path for libraries
! 16154: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 16155:
! 16156: # Run-time system search path for libraries
! 16157: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 16158:
! 16159: # Fix the shell variable \$srcfile for the compiler.
! 16160: fix_srcfile_path="$fix_srcfile_path_RC"
! 16161:
! 16162: # Set to yes if exported symbols are required.
! 16163: always_export_symbols=$always_export_symbols_RC
! 16164:
! 16165: # The commands to list exported symbols.
! 16166: export_symbols_cmds=$lt_export_symbols_cmds_RC
! 16167:
! 16168: # The commands to extract the exported symbol list from a shared archive.
! 16169: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 16170:
! 16171: # Symbols that should not be listed in the preloaded symbols.
! 16172: exclude_expsyms=$lt_exclude_expsyms_RC
! 16173:
! 16174: # Symbols that must always be exported.
! 16175: include_expsyms=$lt_include_expsyms_RC
! 16176:
! 16177: # ### END LIBTOOL TAG CONFIG: $tagname
! 16178:
! 16179: __EOF__
! 16180:
! 16181: else
! 16182: # If there is no Makefile yet, we rely on a make rule to execute
! 16183: # `config.status --recheck' to rerun these tests and create the
! 16184: # libtool script then.
! 16185: test -f Makefile && make "$ltmain"
! 16186: fi
! 16187:
! 16188: ac_ext=c
! 16189: ac_cpp='$CPP $CPPFLAGS'
! 16190: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 16191: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 16192: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 16193:
! 16194: CC="$lt_save_CC"
! 16195:
! 16196: ;;
! 16197:
! 16198: *)
! 16199: { { echo "$as_me:16199: error: Unsupported tag name: $tagname" >&5
! 16200: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
! 16201: { (exit 1); exit 1; }; }
! 16202: ;;
! 16203: esac
! 16204:
! 16205: # Append the new tag name to the list of available tags.
! 16206: available_tags="$available_tags $tagname"
! 16207: fi
! 16208: done
! 16209: IFS="$lt_save_ifs"
! 16210:
! 16211: # Now substitute the updated list of available tags.
! 16212: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
! 16213: mv "${ofile}T" "$ofile"
! 16214: chmod +x "$ofile"
! 16215: else
! 16216: rm -f "${ofile}T"
! 16217: { { echo "$as_me:16217: error: unable to update list of available tagged configurations." >&5
! 16218: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
! 16219: { (exit 1); exit 1; }; }
! 16220: fi
! 16221: fi
! 16222:
! 16223: # This can be used to rebuild libtool when needed
! 16224: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
! 16225:
! 16226: # Always use our own libtool.
! 16227: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
! 16228:
! 16229: # Prevent multiple expansion
! 16230:
! 16231: # Generate an error here if attempting to build both shared and static when
! 16232: # $libname.a is in $library_names_spec (as mentioned above), rather than
! 16233: # wait for ar or ld to fail.
! 16234: #
! 16235: if test "$enable_shared" = yes && test "$enable_static" = yes; then
! 16236: case $library_names_spec in
! 16237: *libname.a*)
! 16238: { { echo "$as_me:16238: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
! 16239: echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
! 16240: { (exit 1); exit 1; }; }
! 16241: ;;
! 16242: esac
! 16243: fi
! 16244:
! 16245: # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
! 16246: # Using the compiler is a lot easier than figuring out how to invoke the
! 16247: # assembler directly.
! 16248: #
! 16249: test -n "$CCAS" || CCAS="$CC -c"
! 16250:
! 16251: case $host in
! 16252: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
! 16253: # If there's any sse2 or mmx in the path, check whether the assembler
! 16254: # supports it, and remove if not.
! 16255: case "$path" in
! 16256: *mmx*) echo "$as_me:16256: checking if the assembler knows about MMX instructions" >&5
! 16257: echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
! 16258: if test "${gmp_cv_asm_x86_mmx+set}" = set; then
! 16259: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16260: else
! 16261: cat >conftest.s <<EOF
! 16262: .text
! 16263: movq %mm0, %mm1
! 16264: EOF
! 16265: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 16266: if { (eval echo "$as_me:16266: \"$gmp_assemble\"") >&5
! 16267: (eval $gmp_assemble) 2>&5
! 16268: ac_status=$?
! 16269: echo "$as_me:16269: \$? = $ac_status" >&5
! 16270: (exit $ac_status); }; then
! 16271: cat conftest.out >&5
! 16272: gmp_cv_asm_x86_mmx=yes
! 16273: case $host in
! 16274: *-*-solaris*)
! 16275: if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
! 16276: if grep "0f 6f c1" conftest.out >/dev/null; then
! 16277: gmp_cv_asm_x86_mmx=movq-bug
! 16278: fi
! 16279: else
! 16280: { echo "$as_me:16280: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
! 16281: echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
! 16282: fi
! 16283: esac
! 16284: else
! 16285: cat conftest.out >&5
! 16286: echo "configure: failed program was:" >&5
! 16287: cat conftest.s >&5
! 16288: gmp_cv_asm_x86_mmx=no
! 16289: fi
! 16290: rm -f conftest*
! 16291:
! 16292: fi
! 16293: echo "$as_me:16293: result: $gmp_cv_asm_x86_mmx" >&5
! 16294: echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6
! 16295:
! 16296: case $gmp_cv_asm_x86_mmx in
! 16297: movq-bug)
! 16298: { echo "$as_me:16298: WARNING: +----------------------------------------------------------" >&5
! 16299: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16300: { echo "$as_me:16300: WARNING: | WARNING WARNING WARNING" >&5
! 16301: echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
! 16302: { echo "$as_me:16302: WARNING: | Host CPU has MMX code, but the assembler" >&5
! 16303: echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
! 16304: { echo "$as_me:16304: WARNING: | $CCAS $CFLAGS" >&5
! 16305: echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;}
! 16306: { echo "$as_me:16306: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
! 16307: echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
! 16308: { echo "$as_me:16308: WARNING: | movq operands are reversed." >&5
! 16309: echo "$as_me: WARNING: | movq operands are reversed." >&2;}
! 16310: { echo "$as_me:16310: WARNING: | Non-MMX replacements will be used." >&5
! 16311: echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
! 16312: { echo "$as_me:16312: WARNING: | This will be an inferior build." >&5
! 16313: echo "$as_me: WARNING: | This will be an inferior build." >&2;}
! 16314: { echo "$as_me:16314: WARNING: +----------------------------------------------------------" >&5
! 16315: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16316: ;;
! 16317: no)
! 16318: { echo "$as_me:16318: WARNING: +----------------------------------------------------------" >&5
! 16319: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16320: { echo "$as_me:16320: WARNING: | WARNING WARNING WARNING" >&5
! 16321: echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
! 16322: { echo "$as_me:16322: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
! 16323: echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
! 16324: { echo "$as_me:16324: WARNING: | $CCAS $CFLAGS" >&5
! 16325: echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;}
! 16326: { echo "$as_me:16326: WARNING: | Non-MMX replacements will be used." >&5
! 16327: echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
! 16328: { echo "$as_me:16328: WARNING: | This will be an inferior build." >&5
! 16329: echo "$as_me: WARNING: | This will be an inferior build." >&2;}
! 16330: { echo "$as_me:16330: WARNING: +----------------------------------------------------------" >&5
! 16331: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16332: ;;
! 16333: esac
! 16334: if test "$gmp_cv_asm_x86_mmx" = yes; then
! 16335: :
! 16336: else
! 16337: tmp_path=
! 16338: for i in $path; do
! 16339: case $i in
! 16340: */*mmx*) ;;
! 16341: *) tmp_path="$tmp_path $i" ;;
! 16342: esac
! 16343: done
! 16344: path="$tmp_path"
! 16345:
! 16346: fi
! 16347: ;;
! 16348: esac
! 16349: case "$path" in
! 16350: *sse2*) echo "$as_me:16350: checking if the assembler knows about SSE2 instructions" >&5
! 16351: echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6
! 16352: if test "${gmp_cv_asm_x86_sse2+set}" = set; then
! 16353: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16354: else
! 16355: cat >conftest.s <<EOF
! 16356: .text
! 16357: paddq %mm0, %mm1
! 16358: EOF
! 16359: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 16360: if { (eval echo "$as_me:16360: \"$gmp_assemble\"") >&5
! 16361: (eval $gmp_assemble) 2>&5
! 16362: ac_status=$?
! 16363: echo "$as_me:16363: \$? = $ac_status" >&5
! 16364: (exit $ac_status); }; then
! 16365: cat conftest.out >&5
! 16366: gmp_cv_asm_x86_sse2=yes
! 16367: else
! 16368: cat conftest.out >&5
! 16369: echo "configure: failed program was:" >&5
! 16370: cat conftest.s >&5
! 16371: gmp_cv_asm_x86_sse2=no
! 16372: fi
! 16373: rm -f conftest*
! 16374:
! 16375: fi
! 16376: echo "$as_me:16376: result: $gmp_cv_asm_x86_sse2" >&5
! 16377: echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6
! 16378: case $gmp_cv_asm_x86_sse2 in
! 16379: yes)
! 16380: :
! 16381: ;;
! 16382: *)
! 16383: { echo "$as_me:16383: WARNING: +----------------------------------------------------------" >&5
! 16384: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16385: { echo "$as_me:16385: WARNING: | WARNING WARNING WARNING" >&5
! 16386: echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
! 16387: { echo "$as_me:16387: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
! 16388: echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
! 16389: { echo "$as_me:16389: WARNING: | $CCAS $CFLAGS" >&5
! 16390: echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;}
! 16391: { echo "$as_me:16391: WARNING: | Non-SSE2 replacements will be used." >&5
! 16392: echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
! 16393: { echo "$as_me:16393: WARNING: | This will be an inferior build." >&5
! 16394: echo "$as_me: WARNING: | This will be an inferior build." >&2;}
! 16395: { echo "$as_me:16395: WARNING: +----------------------------------------------------------" >&5
! 16396: echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
! 16397: tmp_path=
! 16398: for i in $path; do
! 16399: case $i in
! 16400: */sse2) ;;
! 16401: *) tmp_path="$tmp_path $i" ;;
! 16402: esac
! 16403: done
! 16404: path="$tmp_path"
! 16405:
! 16406: ;;
! 16407: esac
! 16408: ;;
! 16409: esac
! 16410: ;;
! 16411: esac
! 16412:
! 16413: # The library and header checks are mostly for the benefit of supplementary
! 16414: # programs. libgmp doesn't use anything too weird.
! 16415:
! 16416: echo "$as_me:16416: checking for ANSI C header files" >&5
! 16417: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 16418: if test "${ac_cv_header_stdc+set}" = set; then
! 16419: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16420: else
! 16421: cat >conftest.$ac_ext <<_ACEOF
! 16422: #line 16422 "configure"
! 16423: #include "confdefs.h"
! 16424: #include <stdlib.h>
! 16425: #include <stdarg.h>
! 16426: #include <string.h>
! 16427: #include <float.h>
! 16428:
! 16429: _ACEOF
! 16430: if { (eval echo "$as_me:16430: \"$ac_cpp conftest.$ac_ext\"") >&5
! 16431: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 16432: ac_status=$?
! 16433: egrep -v '^ *\+' conftest.er1 >conftest.err
! 16434: rm -f conftest.er1
! 16435: cat conftest.err >&5
! 16436: echo "$as_me:16436: \$? = $ac_status" >&5
! 16437: (exit $ac_status); } >/dev/null; then
! 16438: if test -s conftest.err; then
! 16439: ac_cpp_err=$ac_c_preproc_warn_flag
! 16440: else
! 16441: ac_cpp_err=
! 16442: fi
! 16443: else
! 16444: ac_cpp_err=yes
! 16445: fi
! 16446: if test -z "$ac_cpp_err"; then
! 16447: ac_cv_header_stdc=yes
! 16448: else
! 16449: echo "$as_me: failed program was:" >&5
! 16450: cat conftest.$ac_ext >&5
! 16451: ac_cv_header_stdc=no
! 16452: fi
! 16453: rm -f conftest.err conftest.$ac_ext
! 16454:
! 16455: if test $ac_cv_header_stdc = yes; then
! 16456: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 16457: cat >conftest.$ac_ext <<_ACEOF
! 16458: #line 16458 "configure"
! 16459: #include "confdefs.h"
! 16460: #include <string.h>
! 16461:
! 16462: _ACEOF
! 16463: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 16464: egrep "memchr" >/dev/null 2>&1; then
! 16465: :
! 16466: else
! 16467: ac_cv_header_stdc=no
! 16468: fi
! 16469: rm -f conftest*
! 16470:
! 16471: fi
! 16472:
! 16473: if test $ac_cv_header_stdc = yes; then
! 16474: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 16475: cat >conftest.$ac_ext <<_ACEOF
! 16476: #line 16476 "configure"
! 16477: #include "confdefs.h"
! 16478: #include <stdlib.h>
! 16479:
! 16480: _ACEOF
! 16481: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 16482: egrep "free" >/dev/null 2>&1; then
! 16483: :
! 16484: else
! 16485: ac_cv_header_stdc=no
! 16486: fi
! 16487: rm -f conftest*
! 16488:
! 16489: fi
! 16490:
! 16491: if test $ac_cv_header_stdc = yes; then
! 16492: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 16493: if test "$cross_compiling" = yes; then
! 16494: :
! 16495: else
! 16496: cat >conftest.$ac_ext <<_ACEOF
! 16497: #line 16497 "configure"
! 16498: #include "confdefs.h"
! 16499: #include <ctype.h>
! 16500: #if ((' ' & 0x0FF) == 0x020)
! 16501: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 16502: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 16503: #else
! 16504: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
! 16505: || ('j' <= (c) && (c) <= 'r') \
! 16506: || ('s' <= (c) && (c) <= 'z'))
! 16507: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 16508: #endif
! 16509:
! 16510: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 16511: int
! 16512: main ()
! 16513: {
! 16514: int i;
! 16515: for (i = 0; i < 256; i++)
! 16516: if (XOR (islower (i), ISLOWER (i))
! 16517: || toupper (i) != TOUPPER (i))
! 16518: exit(2);
! 16519: exit (0);
! 16520: }
! 16521: _ACEOF
! 16522: rm -f conftest$ac_exeext
! 16523: if { (eval echo "$as_me:16523: \"$ac_link\"") >&5
! 16524: (eval $ac_link) 2>&5
! 16525: ac_status=$?
! 16526: echo "$as_me:16526: \$? = $ac_status" >&5
! 16527: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 16528: { (eval echo "$as_me:16528: \"$ac_try\"") >&5
! 16529: (eval $ac_try) 2>&5
! 16530: ac_status=$?
! 16531: echo "$as_me:16531: \$? = $ac_status" >&5
! 16532: (exit $ac_status); }; }; then
! 16533: :
! 16534: else
! 16535: echo "$as_me: program exited with status $ac_status" >&5
! 16536: echo "$as_me: failed program was:" >&5
! 16537: cat conftest.$ac_ext >&5
! 16538: ac_cv_header_stdc=no
! 16539: fi
! 16540: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 16541: fi
! 16542: fi
! 16543: fi
! 16544: echo "$as_me:16544: result: $ac_cv_header_stdc" >&5
! 16545: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 16546: if test $ac_cv_header_stdc = yes; then
! 16547:
! 16548: cat >>confdefs.h <<\EOF
! 16549: #define STDC_HEADERS 1
! 16550: EOF
! 16551:
! 16552: fi
! 16553:
! 16554: echo "$as_me:16554: checking whether time.h and sys/time.h may both be included" >&5
! 16555: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
! 16556: if test "${ac_cv_header_time+set}" = set; then
! 16557: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16558: else
! 16559: cat >conftest.$ac_ext <<_ACEOF
! 16560: #line 16560 "configure"
! 16561: #include "confdefs.h"
! 16562: #include <sys/types.h>
! 16563: #include <sys/time.h>
! 16564: #include <time.h>
! 16565:
! 16566: int
! 16567: main ()
! 16568: {
! 16569: if ((struct tm *) 0)
! 16570: return 0;
! 16571: ;
! 16572: return 0;
! 16573: }
! 16574: _ACEOF
! 16575: rm -f conftest.$ac_objext
! 16576: if { (eval echo "$as_me:16576: \"$ac_compile\"") >&5
! 16577: (eval $ac_compile) 2>&5
! 16578: ac_status=$?
! 16579: echo "$as_me:16579: \$? = $ac_status" >&5
! 16580: (exit $ac_status); } &&
! 16581: { ac_try='test -s conftest.$ac_objext'
! 16582: { (eval echo "$as_me:16582: \"$ac_try\"") >&5
! 16583: (eval $ac_try) 2>&5
! 16584: ac_status=$?
! 16585: echo "$as_me:16585: \$? = $ac_status" >&5
! 16586: (exit $ac_status); }; }; then
! 16587: ac_cv_header_time=yes
! 16588: else
! 16589: echo "$as_me: failed program was:" >&5
! 16590: cat conftest.$ac_ext >&5
! 16591: ac_cv_header_time=no
! 16592: fi
! 16593: rm -f conftest.$ac_objext conftest.$ac_ext
! 16594: fi
! 16595: echo "$as_me:16595: result: $ac_cv_header_time" >&5
! 16596: echo "${ECHO_T}$ac_cv_header_time" >&6
! 16597: if test $ac_cv_header_time = yes; then
! 16598:
! 16599: cat >>confdefs.h <<\EOF
! 16600: #define TIME_WITH_SYS_TIME 1
! 16601: EOF
! 16602:
! 16603: fi
! 16604:
! 16605: # Reasons for testing:
! 16606: # sys/param.h - not in mingw
! 16607: # sys/processor.h - solaris specific, though also present in macos
! 16608: # sys/resource.h - not in mingw
! 16609: # sys/sysctl.h - not in mingw
! 16610: # sys/syssgi.h - IRIX specific
! 16611: # sys/systemcfg.h - AIX specific
! 16612: # sys/times.h - not in mingw
! 16613: #
! 16614: # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
! 16615: # default tests
! 16616: #
! 16617:
! 16618: for ac_header in fcntl.h locale.h sys/mman.h sys/param.h sys/processor.h sys/resource.h sys/sysctl.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
! 16619: do
! 16620: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16621: echo "$as_me:16621: checking for $ac_header" >&5
! 16622: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 16623: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 16624: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16625: else
! 16626: cat >conftest.$ac_ext <<_ACEOF
! 16627: #line 16627 "configure"
! 16628: #include "confdefs.h"
! 16629: #include <$ac_header>
! 16630: _ACEOF
! 16631: if { (eval echo "$as_me:16631: \"$ac_cpp conftest.$ac_ext\"") >&5
! 16632: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 16633: ac_status=$?
! 16634: egrep -v '^ *\+' conftest.er1 >conftest.err
! 16635: rm -f conftest.er1
! 16636: cat conftest.err >&5
! 16637: echo "$as_me:16637: \$? = $ac_status" >&5
! 16638: (exit $ac_status); } >/dev/null; then
! 16639: if test -s conftest.err; then
! 16640: ac_cpp_err=$ac_c_preproc_warn_flag
! 16641: else
! 16642: ac_cpp_err=
! 16643: fi
! 16644: else
! 16645: ac_cpp_err=yes
! 16646: fi
! 16647: if test -z "$ac_cpp_err"; then
! 16648: eval "$as_ac_Header=yes"
! 16649: else
! 16650: echo "$as_me: failed program was:" >&5
! 16651: cat conftest.$ac_ext >&5
! 16652: eval "$as_ac_Header=no"
! 16653: fi
! 16654: rm -f conftest.err conftest.$ac_ext
! 16655: fi
! 16656: echo "$as_me:16656: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 16657: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 16658: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 16659: cat >>confdefs.h <<EOF
! 16660: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 16661: EOF
! 16662:
! 16663: fi
! 16664: done
! 16665:
! 16666: # optarg should be in unistd.h, which is already in the default includes
! 16667: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 16668:
! 16669: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 16670: inttypes.h stdint.h unistd.h
! 16671: do
! 16672: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16673: echo "$as_me:16673: checking for $ac_header" >&5
! 16674: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 16675: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 16676: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16677: else
! 16678: cat >conftest.$ac_ext <<_ACEOF
! 16679: #line 16679 "configure"
! 16680: #include "confdefs.h"
! 16681: $ac_includes_default
! 16682: #include <$ac_header>
! 16683: _ACEOF
! 16684: rm -f conftest.$ac_objext
! 16685: if { (eval echo "$as_me:16685: \"$ac_compile\"") >&5
! 16686: (eval $ac_compile) 2>&5
! 16687: ac_status=$?
! 16688: echo "$as_me:16688: \$? = $ac_status" >&5
! 16689: (exit $ac_status); } &&
! 16690: { ac_try='test -s conftest.$ac_objext'
! 16691: { (eval echo "$as_me:16691: \"$ac_try\"") >&5
! 16692: (eval $ac_try) 2>&5
! 16693: ac_status=$?
! 16694: echo "$as_me:16694: \$? = $ac_status" >&5
! 16695: (exit $ac_status); }; }; then
! 16696: eval "$as_ac_Header=yes"
! 16697: else
! 16698: echo "$as_me: failed program was:" >&5
! 16699: cat conftest.$ac_ext >&5
! 16700: eval "$as_ac_Header=no"
! 16701: fi
! 16702: rm -f conftest.$ac_objext conftest.$ac_ext
! 16703: fi
! 16704: echo "$as_me:16704: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 16705: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 16706: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 16707: cat >>confdefs.h <<EOF
! 16708: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 16709: EOF
! 16710:
! 16711: fi
! 16712: done
! 16713:
! 16714: echo "$as_me:16714: checking whether fgetc is declared" >&5
! 16715: echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6
! 16716: if test "${ac_cv_have_decl_fgetc+set}" = set; then
! 16717: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16718: else
! 16719: cat >conftest.$ac_ext <<_ACEOF
! 16720: #line 16720 "configure"
! 16721: #include "confdefs.h"
! 16722: $ac_includes_default
! 16723: int
! 16724: main ()
! 16725: {
! 16726: #ifndef fgetc
! 16727: char *p = (char *) fgetc;
! 16728: #endif
! 16729:
! 16730: ;
! 16731: return 0;
! 16732: }
! 16733: _ACEOF
! 16734: rm -f conftest.$ac_objext
! 16735: if { (eval echo "$as_me:16735: \"$ac_compile\"") >&5
! 16736: (eval $ac_compile) 2>&5
! 16737: ac_status=$?
! 16738: echo "$as_me:16738: \$? = $ac_status" >&5
! 16739: (exit $ac_status); } &&
! 16740: { ac_try='test -s conftest.$ac_objext'
! 16741: { (eval echo "$as_me:16741: \"$ac_try\"") >&5
! 16742: (eval $ac_try) 2>&5
! 16743: ac_status=$?
! 16744: echo "$as_me:16744: \$? = $ac_status" >&5
! 16745: (exit $ac_status); }; }; then
! 16746: ac_cv_have_decl_fgetc=yes
! 16747: else
! 16748: echo "$as_me: failed program was:" >&5
! 16749: cat conftest.$ac_ext >&5
! 16750: ac_cv_have_decl_fgetc=no
! 16751: fi
! 16752: rm -f conftest.$ac_objext conftest.$ac_ext
! 16753: fi
! 16754: echo "$as_me:16754: result: $ac_cv_have_decl_fgetc" >&5
! 16755: echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6
! 16756: if test $ac_cv_have_decl_fgetc = yes; then
! 16757:
! 16758: cat >>confdefs.h <<EOF
! 16759: #define HAVE_DECL_FGETC 1
! 16760: EOF
! 16761:
! 16762: else
! 16763: cat >>confdefs.h <<EOF
! 16764: #define HAVE_DECL_FGETC 0
! 16765: EOF
! 16766:
! 16767: fi
! 16768: echo "$as_me:16768: checking whether fscanf is declared" >&5
! 16769: echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6
! 16770: if test "${ac_cv_have_decl_fscanf+set}" = set; then
! 16771: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16772: else
! 16773: cat >conftest.$ac_ext <<_ACEOF
! 16774: #line 16774 "configure"
! 16775: #include "confdefs.h"
! 16776: $ac_includes_default
! 16777: int
! 16778: main ()
! 16779: {
! 16780: #ifndef fscanf
! 16781: char *p = (char *) fscanf;
! 16782: #endif
! 16783:
! 16784: ;
! 16785: return 0;
! 16786: }
! 16787: _ACEOF
! 16788: rm -f conftest.$ac_objext
! 16789: if { (eval echo "$as_me:16789: \"$ac_compile\"") >&5
! 16790: (eval $ac_compile) 2>&5
! 16791: ac_status=$?
! 16792: echo "$as_me:16792: \$? = $ac_status" >&5
! 16793: (exit $ac_status); } &&
! 16794: { ac_try='test -s conftest.$ac_objext'
! 16795: { (eval echo "$as_me:16795: \"$ac_try\"") >&5
! 16796: (eval $ac_try) 2>&5
! 16797: ac_status=$?
! 16798: echo "$as_me:16798: \$? = $ac_status" >&5
! 16799: (exit $ac_status); }; }; then
! 16800: ac_cv_have_decl_fscanf=yes
! 16801: else
! 16802: echo "$as_me: failed program was:" >&5
! 16803: cat conftest.$ac_ext >&5
! 16804: ac_cv_have_decl_fscanf=no
! 16805: fi
! 16806: rm -f conftest.$ac_objext conftest.$ac_ext
! 16807: fi
! 16808: echo "$as_me:16808: result: $ac_cv_have_decl_fscanf" >&5
! 16809: echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6
! 16810: if test $ac_cv_have_decl_fscanf = yes; then
! 16811:
! 16812: cat >>confdefs.h <<EOF
! 16813: #define HAVE_DECL_FSCANF 1
! 16814: EOF
! 16815:
! 16816: else
! 16817: cat >>confdefs.h <<EOF
! 16818: #define HAVE_DECL_FSCANF 0
! 16819: EOF
! 16820:
! 16821: fi
! 16822: echo "$as_me:16822: checking whether optarg is declared" >&5
! 16823: echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6
! 16824: if test "${ac_cv_have_decl_optarg+set}" = set; then
! 16825: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16826: else
! 16827: cat >conftest.$ac_ext <<_ACEOF
! 16828: #line 16828 "configure"
! 16829: #include "confdefs.h"
! 16830: $ac_includes_default
! 16831: int
! 16832: main ()
! 16833: {
! 16834: #ifndef optarg
! 16835: char *p = (char *) optarg;
! 16836: #endif
! 16837:
! 16838: ;
! 16839: return 0;
! 16840: }
! 16841: _ACEOF
! 16842: rm -f conftest.$ac_objext
! 16843: if { (eval echo "$as_me:16843: \"$ac_compile\"") >&5
! 16844: (eval $ac_compile) 2>&5
! 16845: ac_status=$?
! 16846: echo "$as_me:16846: \$? = $ac_status" >&5
! 16847: (exit $ac_status); } &&
! 16848: { ac_try='test -s conftest.$ac_objext'
! 16849: { (eval echo "$as_me:16849: \"$ac_try\"") >&5
! 16850: (eval $ac_try) 2>&5
! 16851: ac_status=$?
! 16852: echo "$as_me:16852: \$? = $ac_status" >&5
! 16853: (exit $ac_status); }; }; then
! 16854: ac_cv_have_decl_optarg=yes
! 16855: else
! 16856: echo "$as_me: failed program was:" >&5
! 16857: cat conftest.$ac_ext >&5
! 16858: ac_cv_have_decl_optarg=no
! 16859: fi
! 16860: rm -f conftest.$ac_objext conftest.$ac_ext
! 16861: fi
! 16862: echo "$as_me:16862: result: $ac_cv_have_decl_optarg" >&5
! 16863: echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6
! 16864: if test $ac_cv_have_decl_optarg = yes; then
! 16865:
! 16866: cat >>confdefs.h <<EOF
! 16867: #define HAVE_DECL_OPTARG 1
! 16868: EOF
! 16869:
! 16870: else
! 16871: cat >>confdefs.h <<EOF
! 16872: #define HAVE_DECL_OPTARG 0
! 16873: EOF
! 16874:
! 16875: fi
! 16876: echo "$as_me:16876: checking whether ungetc is declared" >&5
! 16877: echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6
! 16878: if test "${ac_cv_have_decl_ungetc+set}" = set; then
! 16879: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16880: else
! 16881: cat >conftest.$ac_ext <<_ACEOF
! 16882: #line 16882 "configure"
! 16883: #include "confdefs.h"
! 16884: $ac_includes_default
! 16885: int
! 16886: main ()
! 16887: {
! 16888: #ifndef ungetc
! 16889: char *p = (char *) ungetc;
! 16890: #endif
! 16891:
! 16892: ;
! 16893: return 0;
! 16894: }
! 16895: _ACEOF
! 16896: rm -f conftest.$ac_objext
! 16897: if { (eval echo "$as_me:16897: \"$ac_compile\"") >&5
! 16898: (eval $ac_compile) 2>&5
! 16899: ac_status=$?
! 16900: echo "$as_me:16900: \$? = $ac_status" >&5
! 16901: (exit $ac_status); } &&
! 16902: { ac_try='test -s conftest.$ac_objext'
! 16903: { (eval echo "$as_me:16903: \"$ac_try\"") >&5
! 16904: (eval $ac_try) 2>&5
! 16905: ac_status=$?
! 16906: echo "$as_me:16906: \$? = $ac_status" >&5
! 16907: (exit $ac_status); }; }; then
! 16908: ac_cv_have_decl_ungetc=yes
! 16909: else
! 16910: echo "$as_me: failed program was:" >&5
! 16911: cat conftest.$ac_ext >&5
! 16912: ac_cv_have_decl_ungetc=no
! 16913: fi
! 16914: rm -f conftest.$ac_objext conftest.$ac_ext
! 16915: fi
! 16916: echo "$as_me:16916: result: $ac_cv_have_decl_ungetc" >&5
! 16917: echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6
! 16918: if test $ac_cv_have_decl_ungetc = yes; then
! 16919:
! 16920: cat >>confdefs.h <<EOF
! 16921: #define HAVE_DECL_UNGETC 1
! 16922: EOF
! 16923:
! 16924: else
! 16925: cat >>confdefs.h <<EOF
! 16926: #define HAVE_DECL_UNGETC 0
! 16927: EOF
! 16928:
! 16929: fi
! 16930: echo "$as_me:16930: checking whether vfprintf is declared" >&5
! 16931: echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6
! 16932: if test "${ac_cv_have_decl_vfprintf+set}" = set; then
! 16933: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16934: else
! 16935: cat >conftest.$ac_ext <<_ACEOF
! 16936: #line 16936 "configure"
! 16937: #include "confdefs.h"
! 16938: $ac_includes_default
! 16939: int
! 16940: main ()
! 16941: {
! 16942: #ifndef vfprintf
! 16943: char *p = (char *) vfprintf;
! 16944: #endif
! 16945:
! 16946: ;
! 16947: return 0;
! 16948: }
! 16949: _ACEOF
! 16950: rm -f conftest.$ac_objext
! 16951: if { (eval echo "$as_me:16951: \"$ac_compile\"") >&5
! 16952: (eval $ac_compile) 2>&5
! 16953: ac_status=$?
! 16954: echo "$as_me:16954: \$? = $ac_status" >&5
! 16955: (exit $ac_status); } &&
! 16956: { ac_try='test -s conftest.$ac_objext'
! 16957: { (eval echo "$as_me:16957: \"$ac_try\"") >&5
! 16958: (eval $ac_try) 2>&5
! 16959: ac_status=$?
! 16960: echo "$as_me:16960: \$? = $ac_status" >&5
! 16961: (exit $ac_status); }; }; then
! 16962: ac_cv_have_decl_vfprintf=yes
! 16963: else
! 16964: echo "$as_me: failed program was:" >&5
! 16965: cat conftest.$ac_ext >&5
! 16966: ac_cv_have_decl_vfprintf=no
! 16967: fi
! 16968: rm -f conftest.$ac_objext conftest.$ac_ext
! 16969: fi
! 16970: echo "$as_me:16970: result: $ac_cv_have_decl_vfprintf" >&5
! 16971: echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6
! 16972: if test $ac_cv_have_decl_vfprintf = yes; then
! 16973:
! 16974: cat >>confdefs.h <<EOF
! 16975: #define HAVE_DECL_VFPRINTF 1
! 16976: EOF
! 16977:
! 16978: else
! 16979: cat >>confdefs.h <<EOF
! 16980: #define HAVE_DECL_VFPRINTF 0
! 16981: EOF
! 16982:
! 16983: fi
! 16984:
! 16985: echo "$as_me:16985: checking return type of signal handlers" >&5
! 16986: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
! 16987: if test "${ac_cv_type_signal+set}" = set; then
! 16988: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16989: else
! 16990: cat >conftest.$ac_ext <<_ACEOF
! 16991: #line 16991 "configure"
! 16992: #include "confdefs.h"
! 16993: #include <sys/types.h>
! 16994: #include <signal.h>
! 16995: #ifdef signal
! 16996: # undef signal
! 16997: #endif
! 16998: #ifdef __cplusplus
! 16999: extern "C" void (*signal (int, void (*)(int)))(int);
! 17000: #else
! 17001: void (*signal ()) ();
! 17002: #endif
! 17003:
! 17004: int
! 17005: main ()
! 17006: {
! 17007: int i;
! 17008: ;
! 17009: return 0;
! 17010: }
! 17011: _ACEOF
! 17012: rm -f conftest.$ac_objext
! 17013: if { (eval echo "$as_me:17013: \"$ac_compile\"") >&5
! 17014: (eval $ac_compile) 2>&5
! 17015: ac_status=$?
! 17016: echo "$as_me:17016: \$? = $ac_status" >&5
! 17017: (exit $ac_status); } &&
! 17018: { ac_try='test -s conftest.$ac_objext'
! 17019: { (eval echo "$as_me:17019: \"$ac_try\"") >&5
! 17020: (eval $ac_try) 2>&5
! 17021: ac_status=$?
! 17022: echo "$as_me:17022: \$? = $ac_status" >&5
! 17023: (exit $ac_status); }; }; then
! 17024: ac_cv_type_signal=void
! 17025: else
! 17026: echo "$as_me: failed program was:" >&5
! 17027: cat conftest.$ac_ext >&5
! 17028: ac_cv_type_signal=int
! 17029: fi
! 17030: rm -f conftest.$ac_objext conftest.$ac_ext
! 17031: fi
! 17032: echo "$as_me:17032: result: $ac_cv_type_signal" >&5
! 17033: echo "${ECHO_T}$ac_cv_type_signal" >&6
! 17034:
! 17035: cat >>confdefs.h <<EOF
! 17036: #define RETSIGTYPE $ac_cv_type_signal
! 17037: EOF
! 17038:
! 17039: # the default includes are sufficient for all these types
! 17040: echo "$as_me:17040: checking for intmax_t" >&5
! 17041: echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
! 17042: if test "${ac_cv_type_intmax_t+set}" = set; then
! 17043: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17044: else
! 17045: cat >conftest.$ac_ext <<_ACEOF
! 17046: #line 17046 "configure"
! 17047: #include "confdefs.h"
! 17048: $ac_includes_default
! 17049: int
! 17050: main ()
! 17051: {
! 17052: if ((intmax_t *) 0)
! 17053: return 0;
! 17054: if (sizeof (intmax_t))
! 17055: return 0;
! 17056: ;
! 17057: return 0;
! 17058: }
! 17059: _ACEOF
! 17060: rm -f conftest.$ac_objext
! 17061: if { (eval echo "$as_me:17061: \"$ac_compile\"") >&5
! 17062: (eval $ac_compile) 2>&5
! 17063: ac_status=$?
! 17064: echo "$as_me:17064: \$? = $ac_status" >&5
! 17065: (exit $ac_status); } &&
! 17066: { ac_try='test -s conftest.$ac_objext'
! 17067: { (eval echo "$as_me:17067: \"$ac_try\"") >&5
! 17068: (eval $ac_try) 2>&5
! 17069: ac_status=$?
! 17070: echo "$as_me:17070: \$? = $ac_status" >&5
! 17071: (exit $ac_status); }; }; then
! 17072: ac_cv_type_intmax_t=yes
! 17073: else
! 17074: echo "$as_me: failed program was:" >&5
! 17075: cat conftest.$ac_ext >&5
! 17076: ac_cv_type_intmax_t=no
! 17077: fi
! 17078: rm -f conftest.$ac_objext conftest.$ac_ext
! 17079: fi
! 17080: echo "$as_me:17080: result: $ac_cv_type_intmax_t" >&5
! 17081: echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
! 17082: if test $ac_cv_type_intmax_t = yes; then
! 17083:
! 17084: cat >>confdefs.h <<EOF
! 17085: #define HAVE_INTMAX_T 1
! 17086: EOF
! 17087:
! 17088: fi
! 17089: echo "$as_me:17089: checking for long double" >&5
! 17090: echo $ECHO_N "checking for long double... $ECHO_C" >&6
! 17091: if test "${ac_cv_type_long_double+set}" = set; then
! 17092: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17093: else
! 17094: cat >conftest.$ac_ext <<_ACEOF
! 17095: #line 17095 "configure"
! 17096: #include "confdefs.h"
! 17097: $ac_includes_default
! 17098: int
! 17099: main ()
! 17100: {
! 17101: if ((long double *) 0)
! 17102: return 0;
! 17103: if (sizeof (long double))
! 17104: return 0;
! 17105: ;
! 17106: return 0;
! 17107: }
! 17108: _ACEOF
! 17109: rm -f conftest.$ac_objext
! 17110: if { (eval echo "$as_me:17110: \"$ac_compile\"") >&5
! 17111: (eval $ac_compile) 2>&5
! 17112: ac_status=$?
! 17113: echo "$as_me:17113: \$? = $ac_status" >&5
! 17114: (exit $ac_status); } &&
! 17115: { ac_try='test -s conftest.$ac_objext'
! 17116: { (eval echo "$as_me:17116: \"$ac_try\"") >&5
! 17117: (eval $ac_try) 2>&5
! 17118: ac_status=$?
! 17119: echo "$as_me:17119: \$? = $ac_status" >&5
! 17120: (exit $ac_status); }; }; then
! 17121: ac_cv_type_long_double=yes
! 17122: else
! 17123: echo "$as_me: failed program was:" >&5
! 17124: cat conftest.$ac_ext >&5
! 17125: ac_cv_type_long_double=no
! 17126: fi
! 17127: rm -f conftest.$ac_objext conftest.$ac_ext
! 17128: fi
! 17129: echo "$as_me:17129: result: $ac_cv_type_long_double" >&5
! 17130: echo "${ECHO_T}$ac_cv_type_long_double" >&6
! 17131: if test $ac_cv_type_long_double = yes; then
! 17132:
! 17133: cat >>confdefs.h <<EOF
! 17134: #define HAVE_LONG_DOUBLE 1
! 17135: EOF
! 17136:
! 17137: fi
! 17138: echo "$as_me:17138: checking for long long" >&5
! 17139: echo $ECHO_N "checking for long long... $ECHO_C" >&6
! 17140: if test "${ac_cv_type_long_long+set}" = set; then
! 17141: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17142: else
! 17143: cat >conftest.$ac_ext <<_ACEOF
! 17144: #line 17144 "configure"
! 17145: #include "confdefs.h"
! 17146: $ac_includes_default
! 17147: int
! 17148: main ()
! 17149: {
! 17150: if ((long long *) 0)
! 17151: return 0;
! 17152: if (sizeof (long long))
! 17153: return 0;
! 17154: ;
! 17155: return 0;
! 17156: }
! 17157: _ACEOF
! 17158: rm -f conftest.$ac_objext
! 17159: if { (eval echo "$as_me:17159: \"$ac_compile\"") >&5
! 17160: (eval $ac_compile) 2>&5
! 17161: ac_status=$?
! 17162: echo "$as_me:17162: \$? = $ac_status" >&5
! 17163: (exit $ac_status); } &&
! 17164: { ac_try='test -s conftest.$ac_objext'
! 17165: { (eval echo "$as_me:17165: \"$ac_try\"") >&5
! 17166: (eval $ac_try) 2>&5
! 17167: ac_status=$?
! 17168: echo "$as_me:17168: \$? = $ac_status" >&5
! 17169: (exit $ac_status); }; }; then
! 17170: ac_cv_type_long_long=yes
! 17171: else
! 17172: echo "$as_me: failed program was:" >&5
! 17173: cat conftest.$ac_ext >&5
! 17174: ac_cv_type_long_long=no
! 17175: fi
! 17176: rm -f conftest.$ac_objext conftest.$ac_ext
! 17177: fi
! 17178: echo "$as_me:17178: result: $ac_cv_type_long_long" >&5
! 17179: echo "${ECHO_T}$ac_cv_type_long_long" >&6
! 17180: if test $ac_cv_type_long_long = yes; then
! 17181:
! 17182: cat >>confdefs.h <<EOF
! 17183: #define HAVE_LONG_LONG 1
! 17184: EOF
! 17185:
! 17186: fi
! 17187: echo "$as_me:17187: checking for ptrdiff_t" >&5
! 17188: echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
! 17189: if test "${ac_cv_type_ptrdiff_t+set}" = set; then
! 17190: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17191: else
! 17192: cat >conftest.$ac_ext <<_ACEOF
! 17193: #line 17193 "configure"
! 17194: #include "confdefs.h"
! 17195: $ac_includes_default
! 17196: int
! 17197: main ()
! 17198: {
! 17199: if ((ptrdiff_t *) 0)
! 17200: return 0;
! 17201: if (sizeof (ptrdiff_t))
! 17202: return 0;
! 17203: ;
! 17204: return 0;
! 17205: }
! 17206: _ACEOF
! 17207: rm -f conftest.$ac_objext
! 17208: if { (eval echo "$as_me:17208: \"$ac_compile\"") >&5
! 17209: (eval $ac_compile) 2>&5
! 17210: ac_status=$?
! 17211: echo "$as_me:17211: \$? = $ac_status" >&5
! 17212: (exit $ac_status); } &&
! 17213: { ac_try='test -s conftest.$ac_objext'
! 17214: { (eval echo "$as_me:17214: \"$ac_try\"") >&5
! 17215: (eval $ac_try) 2>&5
! 17216: ac_status=$?
! 17217: echo "$as_me:17217: \$? = $ac_status" >&5
! 17218: (exit $ac_status); }; }; then
! 17219: ac_cv_type_ptrdiff_t=yes
! 17220: else
! 17221: echo "$as_me: failed program was:" >&5
! 17222: cat conftest.$ac_ext >&5
! 17223: ac_cv_type_ptrdiff_t=no
! 17224: fi
! 17225: rm -f conftest.$ac_objext conftest.$ac_ext
! 17226: fi
! 17227: echo "$as_me:17227: result: $ac_cv_type_ptrdiff_t" >&5
! 17228: echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
! 17229: if test $ac_cv_type_ptrdiff_t = yes; then
! 17230:
! 17231: cat >>confdefs.h <<EOF
! 17232: #define HAVE_PTRDIFF_T 1
! 17233: EOF
! 17234:
! 17235: fi
! 17236: echo "$as_me:17236: checking for quad_t" >&5
! 17237: echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
! 17238: if test "${ac_cv_type_quad_t+set}" = set; then
! 17239: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17240: else
! 17241: cat >conftest.$ac_ext <<_ACEOF
! 17242: #line 17242 "configure"
! 17243: #include "confdefs.h"
! 17244: $ac_includes_default
! 17245: int
! 17246: main ()
! 17247: {
! 17248: if ((quad_t *) 0)
! 17249: return 0;
! 17250: if (sizeof (quad_t))
! 17251: return 0;
! 17252: ;
! 17253: return 0;
! 17254: }
! 17255: _ACEOF
! 17256: rm -f conftest.$ac_objext
! 17257: if { (eval echo "$as_me:17257: \"$ac_compile\"") >&5
! 17258: (eval $ac_compile) 2>&5
! 17259: ac_status=$?
! 17260: echo "$as_me:17260: \$? = $ac_status" >&5
! 17261: (exit $ac_status); } &&
! 17262: { ac_try='test -s conftest.$ac_objext'
! 17263: { (eval echo "$as_me:17263: \"$ac_try\"") >&5
! 17264: (eval $ac_try) 2>&5
! 17265: ac_status=$?
! 17266: echo "$as_me:17266: \$? = $ac_status" >&5
! 17267: (exit $ac_status); }; }; then
! 17268: ac_cv_type_quad_t=yes
! 17269: else
! 17270: echo "$as_me: failed program was:" >&5
! 17271: cat conftest.$ac_ext >&5
! 17272: ac_cv_type_quad_t=no
! 17273: fi
! 17274: rm -f conftest.$ac_objext conftest.$ac_ext
! 17275: fi
! 17276: echo "$as_me:17276: result: $ac_cv_type_quad_t" >&5
! 17277: echo "${ECHO_T}$ac_cv_type_quad_t" >&6
! 17278: if test $ac_cv_type_quad_t = yes; then
! 17279:
! 17280: cat >>confdefs.h <<EOF
! 17281: #define HAVE_QUAD_T 1
! 17282: EOF
! 17283:
! 17284: fi
! 17285:
! 17286: echo "$as_me:17286: checking for preprocessor stringizing operator" >&5
! 17287: echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
! 17288: if test "${ac_cv_c_stringize+set}" = set; then
! 17289: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17290: else
! 17291: cat >conftest.$ac_ext <<_ACEOF
! 17292: #line 17292 "configure"
! 17293: #include "confdefs.h"
! 17294: #define x(y) #y
! 17295:
! 17296: char *s = x(teststring);
! 17297: _ACEOF
! 17298: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 17299: egrep "#teststring" >/dev/null 2>&1; then
! 17300: ac_cv_c_stringize=no
! 17301: else
! 17302: ac_cv_c_stringize=yes
! 17303: fi
! 17304: rm -f conftest*
! 17305:
! 17306: fi
! 17307: echo "$as_me:17307: result: $ac_cv_c_stringize" >&5
! 17308: echo "${ECHO_T}$ac_cv_c_stringize" >&6
! 17309: if test $ac_cv_c_stringize = yes; then
! 17310:
! 17311: cat >>confdefs.h <<\EOF
! 17312: #define HAVE_STRINGIZE 1
! 17313: EOF
! 17314:
! 17315: fi
! 17316:
! 17317: echo "$as_me:17317: checking for working volatile" >&5
! 17318: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
! 17319: if test "${ac_cv_c_volatile+set}" = set; then
! 17320: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17321: else
! 17322: cat >conftest.$ac_ext <<_ACEOF
! 17323: #line 17323 "configure"
! 17324: #include "confdefs.h"
! 17325:
! 17326: int
! 17327: main ()
! 17328: {
! 17329:
! 17330: volatile int x;
! 17331: int * volatile y;
! 17332: ;
! 17333: return 0;
! 17334: }
! 17335: _ACEOF
! 17336: rm -f conftest.$ac_objext
! 17337: if { (eval echo "$as_me:17337: \"$ac_compile\"") >&5
! 17338: (eval $ac_compile) 2>&5
! 17339: ac_status=$?
! 17340: echo "$as_me:17340: \$? = $ac_status" >&5
! 17341: (exit $ac_status); } &&
! 17342: { ac_try='test -s conftest.$ac_objext'
! 17343: { (eval echo "$as_me:17343: \"$ac_try\"") >&5
! 17344: (eval $ac_try) 2>&5
! 17345: ac_status=$?
! 17346: echo "$as_me:17346: \$? = $ac_status" >&5
! 17347: (exit $ac_status); }; }; then
! 17348: ac_cv_c_volatile=yes
! 17349: else
! 17350: echo "$as_me: failed program was:" >&5
! 17351: cat conftest.$ac_ext >&5
! 17352: ac_cv_c_volatile=no
! 17353: fi
! 17354: rm -f conftest.$ac_objext conftest.$ac_ext
! 17355: fi
! 17356: echo "$as_me:17356: result: $ac_cv_c_volatile" >&5
! 17357: echo "${ECHO_T}$ac_cv_c_volatile" >&6
! 17358: if test $ac_cv_c_volatile = no; then
! 17359:
! 17360: cat >>confdefs.h <<\EOF
! 17361: #define volatile
! 17362: EOF
! 17363:
! 17364: fi
! 17365:
! 17366: echo "$as_me:17366: checking whether <stdarg.h> exists and works" >&5
! 17367: echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6
! 17368: if test "${gmp_cv_c_stdarg+set}" = set; then
! 17369: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17370: else
! 17371: cat >conftest.$ac_ext <<_ACEOF
! 17372: #line 17372 "configure"
! 17373: #include "confdefs.h"
! 17374: #include <stdarg.h>
! 17375: int foo (int x, ...)
! 17376: {
! 17377: va_list ap;
! 17378: int y;
! 17379: va_start (ap, x);
! 17380: y = va_arg (ap, int);
! 17381: va_end (ap);
! 17382: return y;
! 17383: }
! 17384: int
! 17385: main ()
! 17386: {
! 17387:
! 17388: ;
! 17389: return 0;
! 17390: }
! 17391: _ACEOF
! 17392: rm -f conftest.$ac_objext
! 17393: if { (eval echo "$as_me:17393: \"$ac_compile\"") >&5
! 17394: (eval $ac_compile) 2>&5
! 17395: ac_status=$?
! 17396: echo "$as_me:17396: \$? = $ac_status" >&5
! 17397: (exit $ac_status); } &&
! 17398: { ac_try='test -s conftest.$ac_objext'
! 17399: { (eval echo "$as_me:17399: \"$ac_try\"") >&5
! 17400: (eval $ac_try) 2>&5
! 17401: ac_status=$?
! 17402: echo "$as_me:17402: \$? = $ac_status" >&5
! 17403: (exit $ac_status); }; }; then
! 17404: gmp_cv_c_stdarg=yes
! 17405: else
! 17406: echo "$as_me: failed program was:" >&5
! 17407: cat conftest.$ac_ext >&5
! 17408: gmp_cv_c_stdarg=no
! 17409: fi
! 17410: rm -f conftest.$ac_objext conftest.$ac_ext
! 17411:
! 17412: fi
! 17413: echo "$as_me:17413: result: $gmp_cv_c_stdarg" >&5
! 17414: echo "${ECHO_T}$gmp_cv_c_stdarg" >&6
! 17415: if test $gmp_cv_c_stdarg = yes; then
! 17416:
! 17417: cat >>confdefs.h <<\EOF
! 17418: #define HAVE_STDARG 1
! 17419: EOF
! 17420:
! 17421: fi
! 17422:
! 17423: echo "$as_me:17423: checking whether gcc __attribute__ ((const)) works" >&5
! 17424: echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6
! 17425: if test "${gmp_cv_c_attribute_const+set}" = set; then
! 17426: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17427: else
! 17428: cat >conftest.$ac_ext <<_ACEOF
! 17429: #line 17429 "configure"
! 17430: #include "confdefs.h"
! 17431: int foo (int x) __attribute__ ((const));
! 17432: int
! 17433: main ()
! 17434: {
! 17435:
! 17436: ;
! 17437: return 0;
! 17438: }
! 17439: _ACEOF
! 17440: rm -f conftest.$ac_objext
! 17441: if { (eval echo "$as_me:17441: \"$ac_compile\"") >&5
! 17442: (eval $ac_compile) 2>&5
! 17443: ac_status=$?
! 17444: echo "$as_me:17444: \$? = $ac_status" >&5
! 17445: (exit $ac_status); } &&
! 17446: { ac_try='test -s conftest.$ac_objext'
! 17447: { (eval echo "$as_me:17447: \"$ac_try\"") >&5
! 17448: (eval $ac_try) 2>&5
! 17449: ac_status=$?
! 17450: echo "$as_me:17450: \$? = $ac_status" >&5
! 17451: (exit $ac_status); }; }; then
! 17452: gmp_cv_c_attribute_const=yes
! 17453: else
! 17454: echo "$as_me: failed program was:" >&5
! 17455: cat conftest.$ac_ext >&5
! 17456: gmp_cv_c_attribute_const=no
! 17457: fi
! 17458: rm -f conftest.$ac_objext conftest.$ac_ext
! 17459:
! 17460: fi
! 17461: echo "$as_me:17461: result: $gmp_cv_c_attribute_const" >&5
! 17462: echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6
! 17463: if test $gmp_cv_c_attribute_const = yes; then
! 17464:
! 17465: cat >>confdefs.h <<\EOF
! 17466: #define HAVE_ATTRIBUTE_CONST 1
! 17467: EOF
! 17468:
! 17469: fi
! 17470:
! 17471: echo "$as_me:17471: checking whether gcc __attribute__ ((malloc)) works" >&5
! 17472: echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6
! 17473: if test "${gmp_cv_c_attribute_malloc+set}" = set; then
! 17474: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17475: else
! 17476: cat >conftest.c <<EOF
! 17477: void *foo (int x) __attribute__ ((malloc));
! 17478: EOF
! 17479: gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
! 17480: if { (eval echo "$as_me:17480: \"$gmp_compile\"") >&5
! 17481: (eval $gmp_compile) 2>&5
! 17482: ac_status=$?
! 17483: echo "$as_me:17483: \$? = $ac_status" >&5
! 17484: (exit $ac_status); }; then
! 17485: if grep "attribute directive ignored" conftest.out >/dev/null; then
! 17486: gmp_cv_c_attribute_malloc=no
! 17487: else
! 17488: gmp_cv_c_attribute_malloc=yes
! 17489: fi
! 17490: else
! 17491: gmp_cv_c_attribute_malloc=no
! 17492: fi
! 17493: cat conftest.out >&5
! 17494: rm -f conftest*
! 17495:
! 17496: fi
! 17497: echo "$as_me:17497: result: $gmp_cv_c_attribute_malloc" >&5
! 17498: echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6
! 17499: if test $gmp_cv_c_attribute_malloc = yes; then
! 17500:
! 17501: cat >>confdefs.h <<\EOF
! 17502: #define HAVE_ATTRIBUTE_MALLOC 1
! 17503: EOF
! 17504:
! 17505: fi
! 17506:
! 17507: echo "$as_me:17507: checking whether gcc __attribute__ ((mode (XX))) works" >&5
! 17508: echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6
! 17509: if test "${gmp_cv_c_attribute_mode+set}" = set; then
! 17510: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17511: else
! 17512: cat >conftest.$ac_ext <<_ACEOF
! 17513: #line 17513 "configure"
! 17514: #include "confdefs.h"
! 17515: typedef int SItype __attribute__ ((mode (SI)));
! 17516: int
! 17517: main ()
! 17518: {
! 17519:
! 17520: ;
! 17521: return 0;
! 17522: }
! 17523: _ACEOF
! 17524: rm -f conftest.$ac_objext
! 17525: if { (eval echo "$as_me:17525: \"$ac_compile\"") >&5
! 17526: (eval $ac_compile) 2>&5
! 17527: ac_status=$?
! 17528: echo "$as_me:17528: \$? = $ac_status" >&5
! 17529: (exit $ac_status); } &&
! 17530: { ac_try='test -s conftest.$ac_objext'
! 17531: { (eval echo "$as_me:17531: \"$ac_try\"") >&5
! 17532: (eval $ac_try) 2>&5
! 17533: ac_status=$?
! 17534: echo "$as_me:17534: \$? = $ac_status" >&5
! 17535: (exit $ac_status); }; }; then
! 17536: gmp_cv_c_attribute_mode=yes
! 17537: else
! 17538: echo "$as_me: failed program was:" >&5
! 17539: cat conftest.$ac_ext >&5
! 17540: gmp_cv_c_attribute_mode=no
! 17541: fi
! 17542: rm -f conftest.$ac_objext conftest.$ac_ext
! 17543:
! 17544: fi
! 17545: echo "$as_me:17545: result: $gmp_cv_c_attribute_mode" >&5
! 17546: echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6
! 17547: if test $gmp_cv_c_attribute_mode = yes; then
! 17548:
! 17549: cat >>confdefs.h <<\EOF
! 17550: #define HAVE_ATTRIBUTE_MODE 1
! 17551: EOF
! 17552:
! 17553: fi
! 17554:
! 17555: echo "$as_me:17555: checking whether gcc __attribute__ ((noreturn)) works" >&5
! 17556: echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6
! 17557: if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
! 17558: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17559: else
! 17560: cat >conftest.$ac_ext <<_ACEOF
! 17561: #line 17561 "configure"
! 17562: #include "confdefs.h"
! 17563: void foo (int x) __attribute__ ((noreturn));
! 17564: int
! 17565: main ()
! 17566: {
! 17567:
! 17568: ;
! 17569: return 0;
! 17570: }
! 17571: _ACEOF
! 17572: rm -f conftest.$ac_objext
! 17573: if { (eval echo "$as_me:17573: \"$ac_compile\"") >&5
! 17574: (eval $ac_compile) 2>&5
! 17575: ac_status=$?
! 17576: echo "$as_me:17576: \$? = $ac_status" >&5
! 17577: (exit $ac_status); } &&
! 17578: { ac_try='test -s conftest.$ac_objext'
! 17579: { (eval echo "$as_me:17579: \"$ac_try\"") >&5
! 17580: (eval $ac_try) 2>&5
! 17581: ac_status=$?
! 17582: echo "$as_me:17582: \$? = $ac_status" >&5
! 17583: (exit $ac_status); }; }; then
! 17584: gmp_cv_c_attribute_noreturn=yes
! 17585: else
! 17586: echo "$as_me: failed program was:" >&5
! 17587: cat conftest.$ac_ext >&5
! 17588: gmp_cv_c_attribute_noreturn=no
! 17589: fi
! 17590: rm -f conftest.$ac_objext conftest.$ac_ext
! 17591:
! 17592: fi
! 17593: echo "$as_me:17593: result: $gmp_cv_c_attribute_noreturn" >&5
! 17594: echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6
! 17595: if test $gmp_cv_c_attribute_noreturn = yes; then
! 17596:
! 17597: cat >>confdefs.h <<\EOF
! 17598: #define HAVE_ATTRIBUTE_NORETURN 1
! 17599: EOF
! 17600:
! 17601: fi
! 17602:
! 17603: echo "$as_me:17603: checking for inline" >&5
! 17604: echo $ECHO_N "checking for inline... $ECHO_C" >&6
! 17605: if test "${gmp_cv_c_inline+set}" = set; then
! 17606: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17607: else
! 17608: gmp_cv_c_inline=no
! 17609: for i in inline __inline__ __inline; do
! 17610: cat >conftest.$ac_ext <<_ACEOF
! 17611: #line 17611 "configure"
! 17612: #include "confdefs.h"
! 17613: #ifndef __cplusplus
! 17614: typedef int foo_t;
! 17615: $i foo_t func1 () { return 0; }
! 17616: static $i foo_t func2 () { return 0; }
! 17617: #endif
! 17618: int
! 17619: main ()
! 17620: {
! 17621:
! 17622: ;
! 17623: return 0;
! 17624: }
! 17625: _ACEOF
! 17626: rm -f conftest.$ac_objext
! 17627: if { (eval echo "$as_me:17627: \"$ac_compile\"") >&5
! 17628: (eval $ac_compile) 2>&5
! 17629: ac_status=$?
! 17630: echo "$as_me:17630: \$? = $ac_status" >&5
! 17631: (exit $ac_status); } &&
! 17632: { ac_try='test -s conftest.$ac_objext'
! 17633: { (eval echo "$as_me:17633: \"$ac_try\"") >&5
! 17634: (eval $ac_try) 2>&5
! 17635: ac_status=$?
! 17636: echo "$as_me:17636: \$? = $ac_status" >&5
! 17637: (exit $ac_status); }; }; then
! 17638: gmp_cv_c_inline=$i
! 17639: break
! 17640: else
! 17641: echo "$as_me: failed program was:" >&5
! 17642: cat conftest.$ac_ext >&5
! 17643: fi
! 17644: rm -f conftest.$ac_objext conftest.$ac_ext
! 17645: done
! 17646: if test $gmp_cv_c_inline = inline; then
! 17647: gmp_cv_c_inline=yes
! 17648: fi
! 17649:
! 17650: fi
! 17651: echo "$as_me:17651: result: $gmp_cv_c_inline" >&5
! 17652: echo "${ECHO_T}$gmp_cv_c_inline" >&6
! 17653: case $gmp_cv_c_inline in
! 17654: inline | yes) ;;
! 17655: no)
! 17656: cat >>confdefs.h <<\EOF
! 17657: #define inline
! 17658: EOF
! 17659: ;;
! 17660: *) cat >>confdefs.h <<EOF
! 17661: #define inline $gmp_cv_c_inline
! 17662: EOF
! 17663: ;;
! 17664: esac
! 17665:
! 17666: case $gmp_cv_c_inline in
! 17667: no) ;;
! 17668: *)
! 17669: cat >conftest.$ac_ext <<_ACEOF
! 17670: #line 17670 "configure"
! 17671: #include "confdefs.h"
! 17672: #define __GMP_WITHIN_CONFIGURE_INLINE 1
! 17673: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 17674: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 17675: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 17676: #define GMP_LIMB_BITS 123
! 17677: $DEFN_LONG_LONG_LIMB
! 17678: #include "$srcdir/gmp-h.in"
! 17679:
! 17680: #ifndef __GMP_EXTERN_INLINE
! 17681: die die die
! 17682: #endif
! 17683:
! 17684: int
! 17685: main ()
! 17686: {
! 17687:
! 17688: ;
! 17689: return 0;
! 17690: }
! 17691: _ACEOF
! 17692: rm -f conftest.$ac_objext
! 17693: if { (eval echo "$as_me:17693: \"$ac_compile\"") >&5
! 17694: (eval $ac_compile) 2>&5
! 17695: ac_status=$?
! 17696: echo "$as_me:17696: \$? = $ac_status" >&5
! 17697: (exit $ac_status); } &&
! 17698: { ac_try='test -s conftest.$ac_objext'
! 17699: { (eval echo "$as_me:17699: \"$ac_try\"") >&5
! 17700: (eval $ac_try) 2>&5
! 17701: ac_status=$?
! 17702: echo "$as_me:17702: \$? = $ac_status" >&5
! 17703: (exit $ac_status); }; }; then
! 17704: :
! 17705: else
! 17706: echo "$as_me: failed program was:" >&5
! 17707: cat conftest.$ac_ext >&5
! 17708: case $gmp_cv_c_inline in
! 17709: yes) tmp_inline=inline ;;
! 17710: *) tmp_inline=$gmp_cv_c_inline ;;
! 17711: esac
! 17712: { echo "$as_me:17712: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
! 17713: echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
! 17714: fi
! 17715: rm -f conftest.$ac_objext conftest.$ac_ext
! 17716: ;;
! 17717: esac
! 17718:
! 17719: # from libtool
! 17720: LIBM=
! 17721: case $host in
! 17722: *-*-beos* | *-*-cygwin* | *-*-pw32*)
! 17723: # These system don't have libm
! 17724: ;;
! 17725: *-ncr-sysv4.3*)
! 17726: echo "$as_me:17726: checking for _mwvalidcheckl in -lmw" >&5
! 17727: echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
! 17728: if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
! 17729: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17730: else
! 17731: ac_check_lib_save_LIBS=$LIBS
! 17732: LIBS="-lmw $LIBS"
! 17733: cat >conftest.$ac_ext <<_ACEOF
! 17734: #line 17734 "configure"
! 17735: #include "confdefs.h"
! 17736:
! 17737: /* Override any gcc2 internal prototype to avoid an error. */
! 17738: #ifdef __cplusplus
! 17739: extern "C"
! 17740: #endif
! 17741: /* We use char because int might match the return type of a gcc2
! 17742: builtin and then its argument prototype would still apply. */
! 17743: char _mwvalidcheckl ();
! 17744: int
! 17745: main ()
! 17746: {
! 17747: _mwvalidcheckl ();
! 17748: ;
! 17749: return 0;
! 17750: }
! 17751: _ACEOF
! 17752: rm -f conftest.$ac_objext conftest$ac_exeext
! 17753: if { (eval echo "$as_me:17753: \"$ac_link\"") >&5
! 17754: (eval $ac_link) 2>&5
! 17755: ac_status=$?
! 17756: echo "$as_me:17756: \$? = $ac_status" >&5
! 17757: (exit $ac_status); } &&
! 17758: { ac_try='test -s conftest$ac_exeext'
! 17759: { (eval echo "$as_me:17759: \"$ac_try\"") >&5
! 17760: (eval $ac_try) 2>&5
! 17761: ac_status=$?
! 17762: echo "$as_me:17762: \$? = $ac_status" >&5
! 17763: (exit $ac_status); }; }; then
! 17764: ac_cv_lib_mw__mwvalidcheckl=yes
! 17765: else
! 17766: echo "$as_me: failed program was:" >&5
! 17767: cat conftest.$ac_ext >&5
! 17768: ac_cv_lib_mw__mwvalidcheckl=no
! 17769: fi
! 17770: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17771: LIBS=$ac_check_lib_save_LIBS
! 17772: fi
! 17773: echo "$as_me:17773: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
! 17774: echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
! 17775: if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
! 17776: LIBM="-lmw"
! 17777: fi
! 17778:
! 17779: echo "$as_me:17779: checking for main in -lm" >&5
! 17780: echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
! 17781: if test "${ac_cv_lib_m_main+set}" = set; then
! 17782: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17783: else
! 17784: ac_check_lib_save_LIBS=$LIBS
! 17785: LIBS="-lm $LIBS"
! 17786: cat >conftest.$ac_ext <<_ACEOF
! 17787: #line 17787 "configure"
! 17788: #include "confdefs.h"
! 17789:
! 17790: int
! 17791: main ()
! 17792: {
! 17793: main ();
! 17794: ;
! 17795: return 0;
! 17796: }
! 17797: _ACEOF
! 17798: rm -f conftest.$ac_objext conftest$ac_exeext
! 17799: if { (eval echo "$as_me:17799: \"$ac_link\"") >&5
! 17800: (eval $ac_link) 2>&5
! 17801: ac_status=$?
! 17802: echo "$as_me:17802: \$? = $ac_status" >&5
! 17803: (exit $ac_status); } &&
! 17804: { ac_try='test -s conftest$ac_exeext'
! 17805: { (eval echo "$as_me:17805: \"$ac_try\"") >&5
! 17806: (eval $ac_try) 2>&5
! 17807: ac_status=$?
! 17808: echo "$as_me:17808: \$? = $ac_status" >&5
! 17809: (exit $ac_status); }; }; then
! 17810: ac_cv_lib_m_main=yes
! 17811: else
! 17812: echo "$as_me: failed program was:" >&5
! 17813: cat conftest.$ac_ext >&5
! 17814: ac_cv_lib_m_main=no
! 17815: fi
! 17816: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17817: LIBS=$ac_check_lib_save_LIBS
! 17818: fi
! 17819: echo "$as_me:17819: result: $ac_cv_lib_m_main" >&5
! 17820: echo "${ECHO_T}$ac_cv_lib_m_main" >&6
! 17821: if test $ac_cv_lib_m_main = yes; then
! 17822: LIBM="$LIBM -lm"
! 17823: fi
! 17824:
! 17825: ;;
! 17826: *)
! 17827: echo "$as_me:17827: checking for main in -lm" >&5
! 17828: echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
! 17829: if test "${ac_cv_lib_m_main+set}" = set; then
! 17830: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17831: else
! 17832: ac_check_lib_save_LIBS=$LIBS
! 17833: LIBS="-lm $LIBS"
! 17834: cat >conftest.$ac_ext <<_ACEOF
! 17835: #line 17835 "configure"
! 17836: #include "confdefs.h"
! 17837:
! 17838: int
! 17839: main ()
! 17840: {
! 17841: main ();
! 17842: ;
! 17843: return 0;
! 17844: }
! 17845: _ACEOF
! 17846: rm -f conftest.$ac_objext conftest$ac_exeext
! 17847: if { (eval echo "$as_me:17847: \"$ac_link\"") >&5
! 17848: (eval $ac_link) 2>&5
! 17849: ac_status=$?
! 17850: echo "$as_me:17850: \$? = $ac_status" >&5
! 17851: (exit $ac_status); } &&
! 17852: { ac_try='test -s conftest$ac_exeext'
! 17853: { (eval echo "$as_me:17853: \"$ac_try\"") >&5
! 17854: (eval $ac_try) 2>&5
! 17855: ac_status=$?
! 17856: echo "$as_me:17856: \$? = $ac_status" >&5
! 17857: (exit $ac_status); }; }; then
! 17858: ac_cv_lib_m_main=yes
! 17859: else
! 17860: echo "$as_me: failed program was:" >&5
! 17861: cat conftest.$ac_ext >&5
! 17862: ac_cv_lib_m_main=no
! 17863: fi
! 17864: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17865: LIBS=$ac_check_lib_save_LIBS
! 17866: fi
! 17867: echo "$as_me:17867: result: $ac_cv_lib_m_main" >&5
! 17868: echo "${ECHO_T}$ac_cv_lib_m_main" >&6
! 17869: if test $ac_cv_lib_m_main = yes; then
! 17870: LIBM="-lm"
! 17871: fi
! 17872:
! 17873: ;;
! 17874: esac
! 17875:
! 17876: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
! 17877: # for constant arguments. Useless!
! 17878: echo "$as_me:17878: checking for working alloca.h" >&5
! 17879: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
! 17880: if test "${gmp_cv_header_alloca+set}" = set; then
! 17881: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17882: else
! 17883: cat >conftest.$ac_ext <<_ACEOF
! 17884: #line 17884 "configure"
! 17885: #include "confdefs.h"
! 17886: #include <alloca.h>
! 17887: int
! 17888: main ()
! 17889: {
! 17890: char *p = (char *) alloca (2 * sizeof (int));
! 17891: ;
! 17892: return 0;
! 17893: }
! 17894: _ACEOF
! 17895: rm -f conftest.$ac_objext conftest$ac_exeext
! 17896: if { (eval echo "$as_me:17896: \"$ac_link\"") >&5
! 17897: (eval $ac_link) 2>&5
! 17898: ac_status=$?
! 17899: echo "$as_me:17899: \$? = $ac_status" >&5
! 17900: (exit $ac_status); } &&
! 17901: { ac_try='test -s conftest$ac_exeext'
! 17902: { (eval echo "$as_me:17902: \"$ac_try\"") >&5
! 17903: (eval $ac_try) 2>&5
! 17904: ac_status=$?
! 17905: echo "$as_me:17905: \$? = $ac_status" >&5
! 17906: (exit $ac_status); }; }; then
! 17907: gmp_cv_header_alloca=yes
! 17908: else
! 17909: echo "$as_me: failed program was:" >&5
! 17910: cat conftest.$ac_ext >&5
! 17911: gmp_cv_header_alloca=no
! 17912: fi
! 17913: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17914: fi
! 17915: echo "$as_me:17915: result: $gmp_cv_header_alloca" >&5
! 17916: echo "${ECHO_T}$gmp_cv_header_alloca" >&6
! 17917: if test $gmp_cv_header_alloca = yes; then
! 17918:
! 17919: cat >>confdefs.h <<\EOF
! 17920: #define HAVE_ALLOCA_H 1
! 17921: EOF
! 17922:
! 17923: fi
! 17924:
! 17925: echo "$as_me:17925: checking for alloca (via gmp-impl.h)" >&5
! 17926: echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6
! 17927: if test "${gmp_cv_func_alloca+set}" = set; then
! 17928: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17929: else
! 17930: cat >conftest.$ac_ext <<_ACEOF
! 17931: #line 17931 "configure"
! 17932: #include "confdefs.h"
! 17933: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 17934: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 17935: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 17936: #define GMP_LIMB_BITS 123
! 17937: $DEFN_LONG_LONG_LIMB
! 17938: #include "$srcdir/gmp-h.in"
! 17939:
! 17940: #include "$srcdir/gmp-impl.h"
! 17941:
! 17942: int
! 17943: main ()
! 17944: {
! 17945: char *p = (char *) alloca (1);
! 17946: ;
! 17947: return 0;
! 17948: }
! 17949: _ACEOF
! 17950: rm -f conftest.$ac_objext conftest$ac_exeext
! 17951: if { (eval echo "$as_me:17951: \"$ac_link\"") >&5
! 17952: (eval $ac_link) 2>&5
! 17953: ac_status=$?
! 17954: echo "$as_me:17954: \$? = $ac_status" >&5
! 17955: (exit $ac_status); } &&
! 17956: { ac_try='test -s conftest$ac_exeext'
! 17957: { (eval echo "$as_me:17957: \"$ac_try\"") >&5
! 17958: (eval $ac_try) 2>&5
! 17959: ac_status=$?
! 17960: echo "$as_me:17960: \$? = $ac_status" >&5
! 17961: (exit $ac_status); }; }; then
! 17962: gmp_cv_func_alloca=yes
! 17963: else
! 17964: echo "$as_me: failed program was:" >&5
! 17965: cat conftest.$ac_ext >&5
! 17966: gmp_cv_func_alloca=no
! 17967: fi
! 17968: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17969: fi
! 17970: echo "$as_me:17970: result: $gmp_cv_func_alloca" >&5
! 17971: echo "${ECHO_T}$gmp_cv_func_alloca" >&6
! 17972: if test $gmp_cv_func_alloca = yes; then
! 17973:
! 17974: cat >>confdefs.h <<\EOF
! 17975: #define HAVE_ALLOCA 1
! 17976: EOF
! 17977:
! 17978: fi
! 17979:
! 17980: echo "$as_me:17980: checking how to allocate temporary memory" >&5
! 17981: echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6
! 17982: if test "${gmp_cv_option_alloca+set}" = set; then
! 17983: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17984: else
! 17985: case $enable_alloca in
! 17986: yes)
! 17987: gmp_cv_option_alloca=alloca
! 17988: ;;
! 17989: no)
! 17990: gmp_cv_option_alloca=malloc-reentrant
! 17991: ;;
! 17992: reentrant | notreentrant)
! 17993: case $gmp_cv_func_alloca in
! 17994: yes) gmp_cv_option_alloca=alloca ;;
! 17995: *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
! 17996: esac
! 17997: ;;
! 17998: *)
! 17999: gmp_cv_option_alloca=$enable_alloca
! 18000: ;;
! 18001: esac
! 18002:
! 18003: fi
! 18004: echo "$as_me:18004: result: $gmp_cv_option_alloca" >&5
! 18005: echo "${ECHO_T}$gmp_cv_option_alloca" >&6
! 18006: case $gmp_cv_option_alloca in
! 18007: alloca)
! 18008: if test $gmp_cv_func_alloca = no; then
! 18009: { { echo "$as_me:18009: error: --enable-alloca=alloca specified, but alloca not available" >&5
! 18010: echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
! 18011: { (exit 1); exit 1; }; }
! 18012: fi
! 18013:
! 18014: cat >>confdefs.h <<\EOF
! 18015: #define WANT_TMP_ALLOCA 1
! 18016: EOF
! 18017:
! 18018: ;;
! 18019: malloc-reentrant)
! 18020:
! 18021: cat >>confdefs.h <<\EOF
! 18022: #define WANT_TMP_REENTRANT 1
! 18023: EOF
! 18024:
! 18025: TAL_OBJECT=tal-reent$U.lo
! 18026: ;;
! 18027: malloc-notreentrant)
! 18028:
! 18029: cat >>confdefs.h <<\EOF
! 18030: #define WANT_TMP_NOTREENTRANT 1
! 18031: EOF
! 18032:
! 18033: TAL_OBJECT=tal-notreent$U.lo
! 18034: ;;
! 18035: debug)
! 18036:
! 18037: cat >>confdefs.h <<\EOF
! 18038: #define WANT_TMP_DEBUG 1
! 18039: EOF
! 18040:
! 18041: TAL_OBJECT=tal-debug$U.lo
! 18042: ;;
! 18043: *)
! 18044: # checks at the start of configure.in should protect us
! 18045: { { echo "$as_me:18045: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
! 18046: echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
! 18047: { (exit 1); exit 1; }; }
! 18048: ;;
! 18049: esac
! 18050:
! 18051: cat >conftest.$ac_ext <<_ACEOF
! 18052: #line 18052 "configure"
! 18053: #include "confdefs.h"
! 18054: #include <stdio.h>
! 18055: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 18056: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 18057: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 18058: #define GMP_LIMB_BITS 123
! 18059: $DEFN_LONG_LONG_LIMB
! 18060: #include "$srcdir/gmp-h.in"
! 18061:
! 18062: #if ! _GMP_H_HAVE_FILE
! 18063: die die die
! 18064: #endif
! 18065:
! 18066: int
! 18067: main ()
! 18068: {
! 18069:
! 18070: ;
! 18071: return 0;
! 18072: }
! 18073: _ACEOF
! 18074: rm -f conftest.$ac_objext
! 18075: if { (eval echo "$as_me:18075: \"$ac_compile\"") >&5
! 18076: (eval $ac_compile) 2>&5
! 18077: ac_status=$?
! 18078: echo "$as_me:18078: \$? = $ac_status" >&5
! 18079: (exit $ac_status); } &&
! 18080: { ac_try='test -s conftest.$ac_objext'
! 18081: { (eval echo "$as_me:18081: \"$ac_try\"") >&5
! 18082: (eval $ac_try) 2>&5
! 18083: ac_status=$?
! 18084: echo "$as_me:18084: \$? = $ac_status" >&5
! 18085: (exit $ac_status); }; }; then
! 18086: :
! 18087: else
! 18088: echo "$as_me: failed program was:" >&5
! 18089: cat conftest.$ac_ext >&5
! 18090: { echo "$as_me:18090: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
! 18091: echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
! 18092: fi
! 18093: rm -f conftest.$ac_objext conftest.$ac_ext
! 18094:
! 18095: case $host in
! 18096: vax*-*-*)
! 18097: # not IEEE (neither D nor G formats are IEEE)
! 18098: ;;
! 18099: none-*-*)
! 18100: # don't worry about this when CPU "none"
! 18101: ;;
! 18102: *)
! 18103: case $path in
! 18104: *cray/cfp*)
! 18105: # not IEEE
! 18106: ;;
! 18107: *)
! 18108: cat >conftest.$ac_ext <<_ACEOF
! 18109: #line 18109 "configure"
! 18110: #include "confdefs.h"
! 18111: #include <stdio.h>
! 18112: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 18113: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 18114: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 18115: #define GMP_LIMB_BITS 123
! 18116: $DEFN_LONG_LONG_LIMB
! 18117: #include "$srcdir/gmp-h.in"
! 18118:
! 18119: #include "$srcdir/gmp-impl.h"
! 18120: #ifndef _GMP_IEEE_FLOATS
! 18121: die die die
! 18122: #endif
! 18123:
! 18124: int
! 18125: main ()
! 18126: {
! 18127:
! 18128: ;
! 18129: return 0;
! 18130: }
! 18131: _ACEOF
! 18132: rm -f conftest.$ac_objext
! 18133: if { (eval echo "$as_me:18133: \"$ac_compile\"") >&5
! 18134: (eval $ac_compile) 2>&5
! 18135: ac_status=$?
! 18136: echo "$as_me:18136: \$? = $ac_status" >&5
! 18137: (exit $ac_status); } &&
! 18138: { ac_try='test -s conftest.$ac_objext'
! 18139: { (eval echo "$as_me:18139: \"$ac_try\"") >&5
! 18140: (eval $ac_try) 2>&5
! 18141: ac_status=$?
! 18142: echo "$as_me:18142: \$? = $ac_status" >&5
! 18143: (exit $ac_status); }; }; then
! 18144: :
! 18145: else
! 18146: echo "$as_me: failed program was:" >&5
! 18147: cat conftest.$ac_ext >&5
! 18148:
! 18149: { echo "$as_me:18149: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&5
! 18150: echo "$as_me: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&2;}
! 18151: { echo "$as_me:18151: WARNING: If your CPU floats are in fact IEEE then you" >&5
! 18152: echo "$as_me: WARNING: If your CPU floats are in fact IEEE then you" >&2;}
! 18153: { echo "$as_me:18153: WARNING: might like to augment the tests there." >&5
! 18154: echo "$as_me: WARNING: might like to augment the tests there." >&2;}
! 18155:
! 18156: fi
! 18157: rm -f conftest.$ac_objext conftest.$ac_ext
1.1.1.2 maekawa 18158: ;;
1.1.1.4 ! ohara 18159: esac
! 18160: ;;
! 18161: esac
! 18162:
! 18163: # FIXME: Autoconf 2.52 AC_C_BIGENDIAN bombs when cross compiling, but in the
! 18164: # future the probes will be better and this override can be removed.
! 18165: if test "$cross_compiling" = yes; then
! 18166: ac_cv_c_bigendian=unknown
! 18167: fi
! 18168: echo "$as_me:18168: checking whether byte ordering is bigendian" >&5
! 18169: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
! 18170: if test "${ac_cv_c_bigendian+set}" = set; then
! 18171: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18172: else
! 18173: ac_cv_c_bigendian=unknown
! 18174: # See if sys/param.h defines the BYTE_ORDER macro.
! 18175: cat >conftest.$ac_ext <<_ACEOF
! 18176: #line 18176 "configure"
! 18177: #include "confdefs.h"
! 18178: #include <sys/types.h>
! 18179: #include <sys/param.h>
! 18180:
! 18181: int
! 18182: main ()
! 18183: {
! 18184: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
! 18185: bogus endian macros
! 18186: #endif
! 18187:
! 18188: ;
! 18189: return 0;
! 18190: }
! 18191: _ACEOF
! 18192: rm -f conftest.$ac_objext
! 18193: if { (eval echo "$as_me:18193: \"$ac_compile\"") >&5
! 18194: (eval $ac_compile) 2>&5
! 18195: ac_status=$?
! 18196: echo "$as_me:18196: \$? = $ac_status" >&5
! 18197: (exit $ac_status); } &&
! 18198: { ac_try='test -s conftest.$ac_objext'
! 18199: { (eval echo "$as_me:18199: \"$ac_try\"") >&5
! 18200: (eval $ac_try) 2>&5
! 18201: ac_status=$?
! 18202: echo "$as_me:18202: \$? = $ac_status" >&5
! 18203: (exit $ac_status); }; }; then
! 18204: # It does; now see whether it defined to BIG_ENDIAN or not.
! 18205: cat >conftest.$ac_ext <<_ACEOF
! 18206: #line 18206 "configure"
! 18207: #include "confdefs.h"
! 18208: #include <sys/types.h>
! 18209: #include <sys/param.h>
! 18210:
! 18211: int
! 18212: main ()
! 18213: {
! 18214: #if BYTE_ORDER != BIG_ENDIAN
! 18215: not big endian
! 18216: #endif
! 18217:
! 18218: ;
! 18219: return 0;
! 18220: }
! 18221: _ACEOF
! 18222: rm -f conftest.$ac_objext
! 18223: if { (eval echo "$as_me:18223: \"$ac_compile\"") >&5
! 18224: (eval $ac_compile) 2>&5
! 18225: ac_status=$?
! 18226: echo "$as_me:18226: \$? = $ac_status" >&5
! 18227: (exit $ac_status); } &&
! 18228: { ac_try='test -s conftest.$ac_objext'
! 18229: { (eval echo "$as_me:18229: \"$ac_try\"") >&5
! 18230: (eval $ac_try) 2>&5
! 18231: ac_status=$?
! 18232: echo "$as_me:18232: \$? = $ac_status" >&5
! 18233: (exit $ac_status); }; }; then
! 18234: ac_cv_c_bigendian=yes
! 18235: else
! 18236: echo "$as_me: failed program was:" >&5
! 18237: cat conftest.$ac_ext >&5
! 18238: ac_cv_c_bigendian=no
! 18239: fi
! 18240: rm -f conftest.$ac_objext conftest.$ac_ext
! 18241: else
! 18242: echo "$as_me: failed program was:" >&5
! 18243: cat conftest.$ac_ext >&5
! 18244: fi
! 18245: rm -f conftest.$ac_objext conftest.$ac_ext
! 18246: if test $ac_cv_c_bigendian = unknown; then
! 18247: if test "$cross_compiling" = yes; then
! 18248: { { echo "$as_me:18248: error: cannot run test program while cross compiling" >&5
! 18249: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
! 18250: { (exit 1); exit 1; }; }
! 18251: else
! 18252: cat >conftest.$ac_ext <<_ACEOF
! 18253: #line 18253 "configure"
! 18254: #include "confdefs.h"
! 18255: int
! 18256: main ()
! 18257: {
! 18258: /* Are we little or big endian? From Harbison&Steele. */
! 18259: union
! 18260: {
! 18261: long l;
! 18262: char c[sizeof (long)];
! 18263: } u;
! 18264: u.l = 1;
! 18265: exit (u.c[sizeof (long) - 1] == 1);
! 18266: }
! 18267: _ACEOF
! 18268: rm -f conftest$ac_exeext
! 18269: if { (eval echo "$as_me:18269: \"$ac_link\"") >&5
! 18270: (eval $ac_link) 2>&5
! 18271: ac_status=$?
! 18272: echo "$as_me:18272: \$? = $ac_status" >&5
! 18273: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 18274: { (eval echo "$as_me:18274: \"$ac_try\"") >&5
! 18275: (eval $ac_try) 2>&5
! 18276: ac_status=$?
! 18277: echo "$as_me:18277: \$? = $ac_status" >&5
! 18278: (exit $ac_status); }; }; then
! 18279: ac_cv_c_bigendian=no
! 18280: else
! 18281: echo "$as_me: program exited with status $ac_status" >&5
! 18282: echo "$as_me: failed program was:" >&5
! 18283: cat conftest.$ac_ext >&5
! 18284: ac_cv_c_bigendian=yes
! 18285: fi
! 18286: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 18287: fi
! 18288: fi
! 18289: fi
! 18290: echo "$as_me:18290: result: $ac_cv_c_bigendian" >&5
! 18291: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
! 18292: if test $ac_cv_c_bigendian = yes; then
! 18293:
! 18294: cat >>confdefs.h <<\EOF
! 18295: #define WORDS_BIGENDIAN 1
! 18296: EOF
! 18297:
! 18298: fi
! 18299:
! 18300: # Enhancement: In the future AC_C_BIGENDIAN will accept these actions as
! 18301: # parameters.
! 18302: case $ac_cv_c_bigendian in
! 18303: yes) cat >>confdefs.h <<\EOF
! 18304: #define HAVE_LIMB_BIG_ENDIAN 1
! 18305: EOF
! 18306: ;;
! 18307: no) cat >>confdefs.h <<\EOF
! 18308: #define HAVE_LIMB_LITTLE_ENDIAN 1
! 18309: EOF
! 18310: ;;
! 18311: unknown) ;;
! 18312: *) { { echo "$as_me:18312: error: Oops, unrecognised ac_cv_c_bigendian" >&5
! 18313: echo "$as_me: error: Oops, unrecognised ac_cv_c_bigendian" >&2;}
! 18314: { (exit 1); exit 1; }; } ;;
! 18315: esac
! 18316:
! 18317: echo "$as_me:18317: checking format of \`double' floating point" >&5
! 18318: echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6
! 18319: if test "${gmp_cv_c_double_format+set}" = set; then
! 18320: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18321: else
! 18322: gmp_cv_c_double_format=unknown
! 18323: cat >conftest.c <<\EOF
! 18324: struct {
! 18325: char before[8];
! 18326: double x;
! 18327: char after[8];
! 18328: } foo = {
! 18329: { 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF },
! 18330: -123456789.0,
! 18331: { 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 },
! 18332: };
! 18333: EOF
! 18334: gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
! 18335: if { (eval echo "$as_me:18335: \"$gmp_compile\"") >&5
! 18336: (eval $gmp_compile) 2>&5
! 18337: ac_status=$?
! 18338: echo "$as_me:18338: \$? = $ac_status" >&5
! 18339: (exit $ac_status); }; then
! 18340: cat >conftest.awk <<\EOF
! 18341:
! 18342: BEGIN {
! 18343: found = 0
! 18344: }
! 18345:
! 18346: {
! 18347: for (f = 2; f <= NF; f++)
! 18348: {
! 18349: for (i = 0; i < 23; i++)
! 18350: got[i] = got[i+1];
! 18351: got[23] = $f;
! 18352:
! 18353: # match the special begin and end sequences
! 18354: if (got[0] != "001") continue
! 18355: if (got[1] != "043") continue
! 18356: if (got[2] != "105") continue
! 18357: if (got[3] != "147") continue
! 18358: if (got[4] != "211") continue
! 18359: if (got[5] != "253") continue
! 18360: if (got[6] != "315") continue
! 18361: if (got[7] != "357") continue
! 18362: if (got[16] != "376") continue
! 18363: if (got[17] != "334") continue
! 18364: if (got[18] != "272") continue
! 18365: if (got[19] != "230") continue
! 18366: if (got[20] != "166") continue
! 18367: if (got[21] != "124") continue
! 18368: if (got[22] != "062") continue
! 18369: if (got[23] != "020") continue
! 18370:
! 18371: saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
! 18372:
! 18373: if (got[8] == "000" && \
! 18374: got[9] == "000" && \
! 18375: got[10] == "000" && \
! 18376: got[11] == "124" && \
! 18377: got[12] == "064" && \
! 18378: got[13] == "157" && \
! 18379: got[14] == "235" && \
! 18380: got[15] == "301")
! 18381: {
! 18382: print "IEEE little endian"
! 18383: found = 1
! 18384: exit
! 18385: }
! 18386:
! 18387: # ARM style little endian but with the two 4-byte halves swapped
! 18388: if (got[8] == "064" && \
! 18389: got[9] == "157" && \
! 18390: got[10] == "235" && \
! 18391: got[11] == "301" && \
! 18392: got[12] == "000" && \
! 18393: got[13] == "000" && \
! 18394: got[14] == "000" && \
! 18395: got[15] == "124")
! 18396: {
! 18397: print "IEEE little endian, swapped halves"
! 18398: found = 1
! 18399: exit
! 18400: }
! 18401:
! 18402: if (got[8] == "301" && \
! 18403: got[9] == "235" && \
! 18404: got[10] == "157" && \
! 18405: got[11] == "064" && \
! 18406: got[12] == "124" && \
! 18407: got[13] == "000" && \
! 18408: got[14] == "000" && \
! 18409: got[15] == "000")
! 18410: {
! 18411: print "IEEE big endian"
! 18412: found = 1
! 18413: exit
! 18414: }
! 18415:
! 18416: if (got[8] == "353" && \
! 18417: got[9] == "315" && \
! 18418: got[10] == "242" && \
! 18419: got[11] == "171" && \
! 18420: got[12] == "000" && \
! 18421: got[13] == "240" && \
! 18422: got[14] == "000" && \
! 18423: got[15] == "000")
! 18424: {
! 18425: print "VAX D"
! 18426: found = 1
! 18427: exit
! 18428: }
! 18429:
! 18430: if (got[8] == "275" && \
! 18431: got[9] == "301" && \
! 18432: got[10] == "064" && \
! 18433: got[11] == "157" && \
! 18434: got[12] == "000" && \
! 18435: got[13] == "124" && \
! 18436: got[14] == "000" && \
! 18437: got[15] == "000")
! 18438: {
! 18439: print "VAX G"
! 18440: found = 1
! 18441: exit
! 18442: }
! 18443:
! 18444: if (got[8] == "300" && \
! 18445: got[9] == "033" && \
! 18446: got[10] == "353" && \
! 18447: got[11] == "171" && \
! 18448: got[12] == "242" && \
! 18449: got[13] == "240" && \
! 18450: got[14] == "000" && \
! 18451: got[15] == "000")
! 18452: {
! 18453: print "Cray CFP"
! 18454: found = 1
! 18455: exit
! 18456: }
! 18457: }
! 18458: }
! 18459:
! 18460: END {
! 18461: if (! found)
! 18462: print "unknown", saw
! 18463: }
! 18464:
! 18465: EOF
! 18466: gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
! 18467: case $gmp_cv_c_double_format in
! 18468: unknown*)
! 18469: echo "cannot match anything, conftest.$OBJEXT contains" >&5
! 18470: od -b conftest.$OBJEXT >&5
! 18471: ;;
! 18472: esac
! 18473: else
! 18474: { echo "$as_me:18474: WARNING: oops, cannot compile test program" >&5
! 18475: echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
! 18476: fi
! 18477:
! 18478: fi
! 18479: echo "$as_me:18479: result: $gmp_cv_c_double_format" >&5
! 18480: echo "${ECHO_T}$gmp_cv_c_double_format" >&6
! 18481:
! 18482: case $gmp_cv_c_double_format in
! 18483: "IEEE big endian")
! 18484: cat >>confdefs.h <<\EOF
! 18485: #define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
! 18486: EOF
! 18487: ;;
! 18488: "IEEE little endian")
! 18489: cat >>confdefs.h <<\EOF
! 18490: #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
! 18491: EOF
! 18492: ;;
! 18493: "IEEE little endian, swapped halves")
! 18494: cat >>confdefs.h <<\EOF
! 18495: #define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
! 18496: EOF
! 18497: ;;
! 18498: "VAX D")
! 18499: cat >>confdefs.h <<\EOF
! 18500: #define HAVE_DOUBLE_VAX_D 1
! 18501: EOF
! 18502: ;;
! 18503: "VAX G")
! 18504: cat >>confdefs.h <<\EOF
! 18505: #define HAVE_DOUBLE_VAX_G 1
! 18506: EOF
! 18507: ;;
! 18508: "Cray CFP")
! 18509: cat >>confdefs.h <<\EOF
! 18510: #define HAVE_DOUBLE_CRAY_CFP 1
! 18511: EOF
! 18512: ;;
! 18513: unknown*)
! 18514: ;;
! 18515: *)
! 18516: { echo "$as_me:18516: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
! 18517: echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
! 18518: ;;
! 18519: esac
! 18520:
! 18521: # On m68k NetBSD 1.4.1 getrusage() is doubtful. ru_utime looks microsecond
! 18522: # accurate but has been seen remaining unchanged after many microseconds
! 18523: # have elapsed. This upsets the tune and speed programs, so pretend it
! 18524: # doesn't exist.
! 18525: #
! 18526: # FIXME: Would prefer tune/time.c to do a run-time test for this rather than
! 18527: # driving it from the system name.
! 18528: #
! 18529: case $host in
! 18530: m68*-*-netbsd1.4*) ac_cv_func_getrusage=no ;;
! 18531: esac
! 18532:
! 18533: # Reasons for testing:
! 18534: # alarm - not in mingw
! 18535: # clock_gettime - not in glibc 2.2.4, only very recent systems
! 18536: # cputime - not in glibc
! 18537: # gettimeofday - not in mingw
! 18538: # mmap - not in mingw, djgpp
! 18539: # obstack_vprintf - glibc specific
! 18540: # processor_info - solaris specific
! 18541: # read_real_time - AIX specific
! 18542: # sigaction - not in mingw
! 18543: # sigaltstack - not in mingw, old AIX (reputedly)
! 18544: # sigstack - not in mingw
! 18545: # strnlen - glibc extension
! 18546: # syssgi - IRIX specific
! 18547: # times - not in mingw
! 18548: #
! 18549: # clock_gettime is in librt on *-*-osf5.1. We could look for it
! 18550: # there, but that's not worth bothering with unless it has a decent
! 18551: # resolution (in a quick test clock_getres said only 1 millisecond).
! 18552: #
! 18553:
! 18554: for ac_func in alarm clock clock_gettime cputime getpagesize getrusage gettimeofday localeconv memset mmap mprotect obstack_vprintf popen processor_info read_real_time sigaction sigaltstack sigstack syssgi strchr strnlen strtoul sysconf sysctl sysctlbyname times
! 18555: do
! 18556: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18557: echo "$as_me:18557: checking for $ac_func" >&5
! 18558: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 18559: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 18560: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18561: else
! 18562: cat >conftest.$ac_ext <<_ACEOF
! 18563: #line 18563 "configure"
! 18564: #include "confdefs.h"
! 18565: /* System header to define __stub macros and hopefully few prototypes,
! 18566: which can conflict with char $ac_func (); below. */
! 18567: #include <assert.h>
! 18568: /* Override any gcc2 internal prototype to avoid an error. */
! 18569: #ifdef __cplusplus
! 18570: extern "C"
! 18571: #endif
! 18572: /* We use char because int might match the return type of a gcc2
! 18573: builtin and then its argument prototype would still apply. */
! 18574: char $ac_func ();
! 18575: char (*f) ();
! 18576:
! 18577: int
! 18578: main ()
! 18579: {
! 18580: /* The GNU C library defines this for functions which it implements
! 18581: to always fail with ENOSYS. Some functions are actually named
! 18582: something starting with __ and the normal name is an alias. */
! 18583: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 18584: choke me
! 18585: #else
! 18586: f = $ac_func;
! 18587: #endif
! 18588:
! 18589: ;
! 18590: return 0;
! 18591: }
! 18592: _ACEOF
! 18593: rm -f conftest.$ac_objext conftest$ac_exeext
! 18594: if { (eval echo "$as_me:18594: \"$ac_link\"") >&5
! 18595: (eval $ac_link) 2>&5
! 18596: ac_status=$?
! 18597: echo "$as_me:18597: \$? = $ac_status" >&5
! 18598: (exit $ac_status); } &&
! 18599: { ac_try='test -s conftest$ac_exeext'
! 18600: { (eval echo "$as_me:18600: \"$ac_try\"") >&5
! 18601: (eval $ac_try) 2>&5
! 18602: ac_status=$?
! 18603: echo "$as_me:18603: \$? = $ac_status" >&5
! 18604: (exit $ac_status); }; }; then
! 18605: eval "$as_ac_var=yes"
! 18606: else
! 18607: echo "$as_me: failed program was:" >&5
! 18608: cat conftest.$ac_ext >&5
! 18609: eval "$as_ac_var=no"
! 18610: fi
! 18611: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18612: fi
! 18613: echo "$as_me:18613: result: `eval echo '${'$as_ac_var'}'`" >&5
! 18614: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 18615: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 18616: cat >>confdefs.h <<EOF
! 18617: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18618: EOF
! 18619:
! 18620: fi
! 18621: done
! 18622:
! 18623: # FIXME: Would have done this with an AM_CONDITIONAL, but automake 1.5
! 18624: # doesn't like that under libgmp_la_DEPENDENCIES.
! 18625:
! 18626: echo "$as_me:18626: checking for vsnprintf" >&5
! 18627: echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
! 18628: if test "${ac_cv_func_vsnprintf+set}" = set; then
! 18629: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18630: else
! 18631: cat >conftest.$ac_ext <<_ACEOF
! 18632: #line 18632 "configure"
! 18633: #include "confdefs.h"
! 18634: /* System header to define __stub macros and hopefully few prototypes,
! 18635: which can conflict with char vsnprintf (); below. */
! 18636: #include <assert.h>
! 18637: /* Override any gcc2 internal prototype to avoid an error. */
! 18638: #ifdef __cplusplus
! 18639: extern "C"
! 18640: #endif
! 18641: /* We use char because int might match the return type of a gcc2
! 18642: builtin and then its argument prototype would still apply. */
! 18643: char vsnprintf ();
! 18644: char (*f) ();
! 18645:
! 18646: int
! 18647: main ()
! 18648: {
! 18649: /* The GNU C library defines this for functions which it implements
! 18650: to always fail with ENOSYS. Some functions are actually named
! 18651: something starting with __ and the normal name is an alias. */
! 18652: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
! 18653: choke me
! 18654: #else
! 18655: f = vsnprintf;
! 18656: #endif
! 18657:
! 18658: ;
! 18659: return 0;
! 18660: }
! 18661: _ACEOF
! 18662: rm -f conftest.$ac_objext conftest$ac_exeext
! 18663: if { (eval echo "$as_me:18663: \"$ac_link\"") >&5
! 18664: (eval $ac_link) 2>&5
! 18665: ac_status=$?
! 18666: echo "$as_me:18666: \$? = $ac_status" >&5
! 18667: (exit $ac_status); } &&
! 18668: { ac_try='test -s conftest$ac_exeext'
! 18669: { (eval echo "$as_me:18669: \"$ac_try\"") >&5
! 18670: (eval $ac_try) 2>&5
! 18671: ac_status=$?
! 18672: echo "$as_me:18672: \$? = $ac_status" >&5
! 18673: (exit $ac_status); }; }; then
! 18674: ac_cv_func_vsnprintf=yes
! 18675: else
! 18676: echo "$as_me: failed program was:" >&5
! 18677: cat conftest.$ac_ext >&5
! 18678: ac_cv_func_vsnprintf=no
! 18679: fi
! 18680: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18681: fi
! 18682: echo "$as_me:18682: result: $ac_cv_func_vsnprintf" >&5
! 18683: echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
! 18684: if test $ac_cv_func_vsnprintf = yes; then
! 18685: gmp_vsnprintf_exists=yes
! 18686: else
! 18687: gmp_vsnprintf_exists=no
! 18688: fi
! 18689:
! 18690: if test "$gmp_vsnprintf_exists" = no; then
! 18691: gmp_cv_func_vsnprintf=no
! 18692: else
! 18693: echo "$as_me:18693: checking whether vsnprintf works" >&5
! 18694: echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6
! 18695: if test "${gmp_cv_func_vsnprintf+set}" = set; then
! 18696: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18697: else
! 18698: gmp_cv_func_vsnprintf=yes
! 18699: for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
! 18700: if test "$cross_compiling" = yes; then
! 18701: gmp_cv_func_vsnprintf=probably; break
! 18702: else
! 18703: cat >conftest.$ac_ext <<_ACEOF
! 18704: #line 18704 "configure"
! 18705: #include "confdefs.h"
! 18706:
! 18707: #include <string.h> /* for strcmp */
! 18708: #include <stdio.h> /* for vsnprintf */
! 18709:
! 18710: #if HAVE_STDARG
! 18711: #include <stdarg.h>
! 18712: #else
! 18713: #include <varargs.h>
! 18714: #endif
! 18715:
! 18716: int
! 18717: #if HAVE_STDARG
! 18718: check (const char *fmt, ...)
! 18719: #else
! 18720: check (va_alist)
! 18721: va_dcl
! 18722: #endif
! 18723: {
! 18724: static char buf[128];
! 18725: va_list ap;
! 18726: int ret;
! 18727:
! 18728: #if HAVE_STDARG
! 18729: va_start (ap, fmt);
! 18730: #else
! 18731: char *fmt;
! 18732: va_start (ap);
! 18733: fmt = va_arg (ap, char *);
! 18734: #endif
! 18735:
! 18736: ret = vsnprintf (buf, 4, fmt, ap);
! 18737:
! 18738: if (strcmp (buf, "hel") != 0)
! 18739: exit (1);
! 18740:
! 18741: /* allowed return values */
! 18742: if (ret != -1 && ret != 3 && ret != 11)
! 18743: exit (2);
! 18744:
! 18745: return 0;
! 18746: }
! 18747:
! 18748: int
! 18749: main ()
! 18750: {
! 18751: $i
! 18752: exit (0);
! 18753: }
! 18754:
! 18755: _ACEOF
! 18756: rm -f conftest$ac_exeext
! 18757: if { (eval echo "$as_me:18757: \"$ac_link\"") >&5
! 18758: (eval $ac_link) 2>&5
! 18759: ac_status=$?
! 18760: echo "$as_me:18760: \$? = $ac_status" >&5
! 18761: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 18762: { (eval echo "$as_me:18762: \"$ac_try\"") >&5
! 18763: (eval $ac_try) 2>&5
! 18764: ac_status=$?
! 18765: echo "$as_me:18765: \$? = $ac_status" >&5
! 18766: (exit $ac_status); }; }; then
! 18767: :
! 18768: else
! 18769: echo "$as_me: program exited with status $ac_status" >&5
! 18770: echo "$as_me: failed program was:" >&5
! 18771: cat conftest.$ac_ext >&5
! 18772: gmp_cv_func_vsnprintf=no; break
! 18773: fi
! 18774: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 18775: fi
! 18776: done
! 18777:
! 18778: fi
! 18779: echo "$as_me:18779: result: $gmp_cv_func_vsnprintf" >&5
! 18780: echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6
! 18781: if test "$gmp_cv_func_vsnprintf" = probably; then
! 18782: { echo "$as_me:18782: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
! 18783: echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
! 18784: fi
! 18785: if test "$gmp_cv_func_vsnprintf" != no; then
! 18786:
! 18787: cat >>confdefs.h <<\EOF
! 18788: #define HAVE_VSNPRINTF 1
! 18789: EOF
! 18790:
! 18791: fi
! 18792: fi
! 18793:
! 18794: if test "$gmp_cv_func_vsnprintf" = no; then
! 18795: REPL_VSNPRINTF_PRINTF_OBJ='printf/repl-vsnprintf$U.lo'
! 18796:
! 18797: REPL_VSNPRINTF_OBJ='repl-vsnprintf$U.lo'
! 18798:
! 18799: fi
! 18800:
! 18801: echo "$as_me:18801: checking whether sscanf needs writable input" >&5
! 18802: echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6
! 18803: if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
! 18804: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18805: else
! 18806: case $host in
! 18807: *-*-hpux9 | *-*-hpux9.*)
! 18808: gmp_cv_func_sscanf_writable_input=yes ;;
! 18809: *) gmp_cv_func_sscanf_writable_input=no ;;
! 18810: esac
! 18811:
! 18812: fi
! 18813: echo "$as_me:18813: result: $gmp_cv_func_sscanf_writable_input" >&5
! 18814: echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6
! 18815: case $gmp_cv_func_sscanf_writable_input in
! 18816: yes)
! 18817: cat >>confdefs.h <<\EOF
! 18818: #define SSCANF_WRITABLE_INPUT 1
! 18819: EOF
! 18820: ;;
! 18821: no) ;;
! 18822: *) { { echo "$as_me:18822: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
! 18823: echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
! 18824: { (exit 1); exit 1; }; } ;;
! 18825: esac
! 18826:
! 18827: # Pick the correct source files in $path and link them to mpn/.
! 18828: # $gmp_mpn_functions lists all functions we need.
! 18829: #
! 18830: # The rule is to find a file with the function name and a .asm, .S,
! 18831: # .s, or .c extension. Certain multi-function files with special names
! 18832: # can provide some functions too. (mpn/Makefile.am passes
! 18833: # -DOPERATION_<func> to get them to generate the right code.)
! 18834:
! 18835: # FIXME: udiv and umul aren't in $gmp_mpn_functions_optional yet since
! 18836: # there's some versions of those files which should be checked for bit
! 18837: # rot first. Put them in $extra_functions for each host for now,
! 18838: # change to standard optionals when all are ready.
! 18839:
! 18840: # Note: The following lines defining $gmp_mpn_functions_optional
! 18841: # and $gmp_mpn_functions are parsed by the "macos/configure"
! 18842: # Perl script. So if you change the lines in a major way
! 18843: # make sure to run and examine the output from
! 18844: #
! 18845: # % (cd macos; perl configure)
! 18846: #
! 18847: # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
! 18848: # can optionally provide the latter as an extra entrypoint. Likewise
! 18849: # divrem_1 and pre_divrem_1.
! 18850:
! 18851: gmp_mpn_functions_optional="copyi copyd com_n
! 18852: and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
! 18853: gcd_finda invert_limb sqr_diagonal \
! 18854: mul_2 mul_3 mul_4 addmul_2 addmul_3 addmul_4"
! 18855:
! 18856: gmp_mpn_functions="$extra_functions \
! 18857: add add_1 add_n sub sub_1 sub_n mul_1 addmul_1 \
! 18858: submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
! 18859: fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
! 18860: mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1 \
! 18861: rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
! 18862: bdivmod gcd_1 gcd gcdext tdiv_qr dc_divrem_n sb_divrem_mn jacbase \
! 18863: $gmp_mpn_functions_optional"
! 18864:
! 18865: # the list of all object files used by mpn/Makefile.in and the
! 18866: # top-level Makefile.in, respectively
! 18867: mpn_objects=
! 18868: mpn_objs_in_libgmp="mpn/mp_bases.lo"
! 18869:
! 18870: # links from the sources, to be removed by "make distclean"
! 18871: gmp_srclinks=
! 18872:
! 18873: for tmp_ext in asm S s c; do
! 18874: eval found_$tmp_ext=no
! 18875: done
! 18876:
! 18877: for tmp_fn in $gmp_mpn_functions; do
! 18878: for tmp_ext in asm S s c; do
! 18879: test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
! 18880: done
! 18881:
! 18882: # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
! 18883: # mpn_preinv_mod_1 by mod_1.asm.
! 18884: case $tmp_fn in
! 18885: pre_divrem_1)
! 18886: if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
! 18887: pre_mod_1)
! 18888: if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
1.1.1.2 maekawa 18889: esac
18890:
1.1.1.4 ! ohara 18891: # functions that can be provided by multi-function files
! 18892: tmp_mulfunc=
! 18893: case $tmp_fn in
! 18894: add_n|sub_n) tmp_mulfunc="aors_n" ;;
! 18895: addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
! 18896: popcount|hamdist) tmp_mulfunc="popham" ;;
! 18897: and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
! 18898: tmp_mulfunc="logops_n" ;;
! 18899: lshift|rshift) tmp_mulfunc="lorrshift";;
! 18900: esac
! 18901:
! 18902: found=no
! 18903: for tmp_dir in $path; do
! 18904: for tmp_base in $tmp_fn $tmp_mulfunc; do
! 18905: for tmp_ext in asm S s c; do
! 18906: tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
! 18907: if test -f $tmp_file; then
! 18908:
! 18909: # For a nails build, check if the file supports our nail bits.
! 18910: # Generic code always supports all nails.
! 18911: #
! 18912: # FIXME: When a multi-function file is selected to provide one of
! 18913: # the nails-neutral routines, like logops_n for and_n, the
! 18914: # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
! 18915: # all functions in that file, even if they haven't all been
! 18916: # nailified. Not sure what to do about this, it's only really a
! 18917: # problem for logops_n, and it's not too terrible to insist those
! 18918: # get nailified alwasy.
! 18919: #
! 18920: if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
! 18921: case $tmp_fn in
! 18922: and_n | ior_n | xor_n | \
! 18923: copyi | copyd | \
! 18924: popcount | hamdist | \
! 18925: udiv | udiv_qrnnd | udiv_w_sdiv | udiv_fp | udiv_nfp | \
! 18926: umul | umul_ppmm | \
! 18927: cntlz | invert_limb)
! 18928: # these operations are either unaffected by nails or defined
! 18929: # to operate on full limbs
! 18930: ;;
! 18931: *)
! 18932: nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
! 18933: for n in $nails; do
! 18934: case $n in
! 18935: *-*)
! 18936: n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
! 18937: n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
! 18938: ;;
! 18939: *)
! 18940: n_start=$n
! 18941: n_end=$n
! 18942: ;;
! 18943: esac
! 18944: if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
! 18945: found=yes
! 18946: break
! 18947: fi
! 18948: done
! 18949: if test $found != yes; then
! 18950: continue
! 18951: fi
! 18952: ;;
! 18953: esac
! 18954: fi
! 18955:
! 18956: found=yes
! 18957: eval found_$tmp_ext=yes
! 18958:
! 18959: if test $tmp_ext = c; then
! 18960: tmp_u='$U'
! 18961: else
! 18962: tmp_u=
! 18963: fi
! 18964:
! 18965: mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
! 18966: mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
! 18967: ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
! 18968:
! 18969: gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
! 18970:
! 18971: # Duplicate AC_DEFINEs are harmless, so it doesn't matter
! 18972: # that multi-function files get grepped here repeatedly.
! 18973: # The PROLOGUE pattern excludes the optional second parameter.
! 18974: gmp_ep=`
! 18975: sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
! 18976: sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
! 18977: `
! 18978: for gmp_tmp in $gmp_ep; do
! 18979: cat >>confdefs.h <<EOF
! 18980: #define HAVE_NATIVE_$gmp_tmp 1
! 18981: EOF
! 18982:
! 18983: eval HAVE_NATIVE_$gmp_tmp=yes
! 18984: done
! 18985:
! 18986: case $tmp_fn in
! 18987: sqr_basecase) sqr_basecase_source=$tmp_file ;;
! 18988: esac
! 18989:
! 18990: break
! 18991: fi
! 18992: done
! 18993: if test $found = yes; then break ; fi
! 18994: done
! 18995: if test $found = yes; then break ; fi
! 18996: done
! 18997:
! 18998: if test $found = no; then
! 18999: for tmp_optional in $gmp_mpn_functions_optional; do
! 19000: if test $tmp_optional = $tmp_fn; then
! 19001: found=yes
! 19002: fi
! 19003: done
! 19004: if test $found = no; then
! 19005: { { echo "$as_me:19005: error: no version of $tmp_fn found in path: $path" >&5
! 19006: echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
! 19007: { (exit 1); exit 1; }; }
! 19008: fi
! 19009: fi
! 19010: done
! 19011:
! 19012: # All cycle counters are .asm files currently
! 19013: if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
! 19014: found_asm=yes
! 19015: fi
! 19016:
! 19017: # Don't demand an m4 unless it's actually needed.
! 19018: if test $found_asm = yes; then
! 19019:
! 19020: echo "$as_me:19020: checking for suitable m4" >&5
! 19021: echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6
! 19022: if test "${gmp_cv_prog_m4+set}" = set; then
! 19023: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19024: else
! 19025: if test -n "$M4"; then
! 19026: gmp_cv_prog_m4="$M4"
! 19027: else
! 19028: cat >conftest.m4 <<\EOF
! 19029: define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
! 19030: ``bad: $# not supported (SunOS /usr/bin/m4)
! 19031: '')ifelse(eval(89),89,`define(t2,Y)',
! 19032: `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
! 19033: ')ifelse(t1`'t2,YY,`good
! 19034: ')
! 19035: EOF
! 19036: echo "trying m4" >&5
! 19037: gmp_tmp_val=`(m4 conftest.m4) 2>&5`
! 19038: echo "$gmp_tmp_val" >&5
! 19039: if test "$gmp_tmp_val" = good; then
! 19040: gmp_cv_prog_m4="m4"
! 19041: else
! 19042: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 19043: ac_dummy="$PATH:/usr/5bin"
! 19044: for ac_dir in $ac_dummy; do
! 19045: test -z "$ac_dir" && ac_dir=.
! 19046: echo "trying $ac_dir/m4" >&5
! 19047: gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
! 19048: echo "$gmp_tmp_val" >&5
! 19049: if test "$gmp_tmp_val" = good; then
! 19050: gmp_cv_prog_m4="$ac_dir/m4"
! 19051: break
! 19052: fi
! 19053: done
! 19054: IFS="$ac_save_ifs"
! 19055: if test -z "$gmp_cv_prog_m4"; then
! 19056: { { echo "$as_me:19056: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
! 19057: echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
! 19058: { (exit 1); exit 1; }; }
! 19059: fi
! 19060: fi
! 19061: rm -f conftest.m4
! 19062: fi
! 19063: fi
! 19064: echo "$as_me:19064: result: $gmp_cv_prog_m4" >&5
! 19065: echo "${ECHO_T}$gmp_cv_prog_m4" >&6
! 19066: M4="$gmp_cv_prog_m4"
! 19067:
! 19068: echo "$as_me:19068: checking if m4wrap produces spurious output" >&5
! 19069: echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6
! 19070: if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
! 19071: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19072: else
! 19073: # hide the d-n-l from autoconf's error checking
! 19074: tmp_d_n_l=d""nl
! 19075: cat >conftest.m4 <<EOF
! 19076: changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
! 19077: EOF
! 19078: echo test input is >&5
! 19079: cat conftest.m4 >&5
! 19080: tmp_chars=`$M4 conftest.m4 | wc -c`
! 19081: echo produces $tmp_chars chars output >&5
! 19082: rm -f conftest.m4
! 19083: if test $tmp_chars = 0; then
! 19084: gmp_cv_m4_m4wrap_spurious=no
! 19085: else
! 19086: gmp_cv_m4_m4wrap_spurious=yes
! 19087: fi
! 19088:
! 19089: fi
! 19090: echo "$as_me:19090: result: $gmp_cv_m4_m4wrap_spurious" >&5
! 19091: echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6
! 19092:
! 19093: echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
1.1.1.2 maekawa 19094:
1.1.1.4 ! ohara 19095: else
! 19096: M4=m4-not-needed
! 19097: fi
1.1.1.2 maekawa 19098:
1.1.1.4 ! ohara 19099: # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
! 19100: if test $found_asm = no && test $found_S = no; then
! 19101: gmp_asm_syntax_testing=no
! 19102: fi
1.1.1.2 maekawa 19103:
1.1.1.4 ! ohara 19104: if test "$gmp_asm_syntax_testing" != no; then
! 19105: echo "$as_me:19105: checking how to switch to text section" >&5
! 19106: echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6
! 19107: if test "${gmp_cv_asm_text+set}" = set; then
! 19108: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19109: else
! 19110: case $host in
! 19111: *-*-aix*) gmp_cv_asm_text=".csect .text[PR]" ;;
! 19112: *-*-hpux*) gmp_cv_asm_text=".code" ;;
! 19113: *) gmp_cv_asm_text=".text" ;;
! 19114: esac
1.1.1.2 maekawa 19115:
1.1.1.4 ! ohara 19116: fi
! 19117: echo "$as_me:19117: result: $gmp_cv_asm_text" >&5
! 19118: echo "${ECHO_T}$gmp_cv_asm_text" >&6
! 19119: echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
! 19120:
! 19121: echo "$as_me:19121: checking how to switch to data section" >&5
! 19122: echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6
! 19123: if test "${gmp_cv_asm_data+set}" = set; then
! 19124: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19125: else
! 19126: case $host in
! 19127: *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
! 19128: *) gmp_cv_asm_data=".data" ;;
! 19129: esac
! 19130:
! 19131: fi
! 19132: echo "$as_me:19132: result: $gmp_cv_asm_data" >&5
! 19133: echo "${ECHO_T}$gmp_cv_asm_data" >&6
! 19134: echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
! 19135:
! 19136: echo "$as_me:19136: checking what assembly label suffix to use" >&5
! 19137: echo $ECHO_N "checking what assembly label suffix to use... $ECHO_C" >&6
! 19138: if test "${gmp_cv_asm_label_suffix+set}" = set; then
! 19139: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19140: else
! 19141: case $host in
! 19142: # Empty is only for the HP-UX hppa assembler; hppa gas requires a colon.
! 19143: *-*-hpux*) gmp_cv_asm_label_suffix= ;;
! 19144: *) gmp_cv_asm_label_suffix=: ;;
! 19145: esac
! 19146:
! 19147: fi
! 19148: echo "$as_me:19148: result: $gmp_cv_asm_label_suffix" >&5
! 19149: echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6
! 19150: echo "define(<LABEL_SUFFIX>, <\$1$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
! 19151:
! 19152: echo "$as_me:19152: checking how to export a symbol" >&5
! 19153: echo $ECHO_N "checking how to export a symbol... $ECHO_C" >&6
! 19154: if test "${gmp_cv_asm_globl+set}" = set; then
! 19155: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19156: else
! 19157: case $host in
! 19158: *-*-hpux*) gmp_cv_asm_globl=".export" ;;
! 19159: *) gmp_cv_asm_globl=".globl" ;;
! 19160: esac
! 19161:
! 19162: fi
! 19163: echo "$as_me:19163: result: $gmp_cv_asm_globl" >&5
! 19164: echo "${ECHO_T}$gmp_cv_asm_globl" >&6
! 19165: echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
! 19166:
! 19167: echo "$as_me:19167: checking if globals are prefixed by underscore" >&5
! 19168: echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6
! 19169: if test "${gmp_cv_asm_underscore+set}" = set; then
! 19170: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19171: else
! 19172: cat >conftes1.c <<EOF
! 19173: #ifdef __cplusplus
! 19174: extern "C" { void underscore_test(); }
! 19175: #endif
! 19176: main () { underscore_test(); }
! 19177: EOF
! 19178: for tmp_underscore in "" "_"; do
! 19179: cat >conftes2.s <<EOF
! 19180: $gmp_cv_asm_text
! 19181: $gmp_cv_asm_globl ${tmp_underscore}underscore_test
! 19182: ${tmp_underscore}underscore_test$gmp_cv_asm_label_suffix
! 19183: EOF
! 19184: case $host in
! 19185: *-*-aix*)
! 19186: cat >>conftes2.s <<EOF
! 19187: $gmp_cv_asm_globl .${tmp_underscore}underscore_test
! 19188: .${tmp_underscore}underscore_test$gmp_cv_asm_label_suffix
! 19189: EOF
1.1.1.2 maekawa 19190: ;;
19191: esac
1.1.1.4 ! ohara 19192: gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftes1.c >&5 && $CCAS $CFLAGS conftes2.s >&5 && $CC $CFLAGS conftes1.$OBJEXT conftes2.$OBJEXT >&5"
! 19193: if { (eval echo "$as_me:19193: \"$gmp_compile\"") >&5
! 19194: (eval $gmp_compile) 2>&5
! 19195: ac_status=$?
! 19196: echo "$as_me:19196: \$? = $ac_status" >&5
! 19197: (exit $ac_status); }; then
! 19198: eval tmp_result$tmp_underscore=yes
! 19199: else
! 19200: eval tmp_result$tmp_underscore=no
! 19201: fi
! 19202: done
1.1.1.2 maekawa 19203:
1.1.1.4 ! ohara 19204: if test $tmp_result_ = yes; then
! 19205: if test $tmp_result = yes; then
! 19206: { { echo "$as_me:19206: error: Test program unexpectedly links both with and without underscore." >&5
! 19207: echo "$as_me: error: Test program unexpectedly links both with and without underscore." >&2;}
! 19208: { (exit 1); exit 1; }; }
! 19209: else
! 19210: gmp_cv_asm_underscore=yes
! 19211: fi
! 19212: else
! 19213: if test $tmp_result = yes; then
! 19214: gmp_cv_asm_underscore=no
! 19215: else
! 19216: { { echo "$as_me:19216: error: Test program links neither with nor without underscore." >&5
! 19217: echo "$as_me: error: Test program links neither with nor without underscore." >&2;}
! 19218: { (exit 1); exit 1; }; }
! 19219: fi
1.1.1.2 maekawa 19220: fi
1.1.1.4 ! ohara 19221: rm -f conftes1* conftes2* a.out
! 19222:
! 19223: fi
! 19224: echo "$as_me:19224: result: $gmp_cv_asm_underscore" >&5
! 19225: echo "${ECHO_T}$gmp_cv_asm_underscore" >&6
! 19226: if test "$gmp_cv_asm_underscore" = "yes"; then
! 19227:
! 19228: echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
1.1.1.2 maekawa 19229:
19230: else
1.1.1.4 ! ohara 19231:
! 19232: echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
! 19233:
1.1.1.2 maekawa 19234: fi
19235:
1.1.1.4 ! ohara 19236: echo "$as_me:19236: checking how to switch to read-only data section" >&5
! 19237: echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6
! 19238: if test "${gmp_cv_asm_rodata+set}" = set; then
! 19239: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19240: else
1.1.1.2 maekawa 19241:
1.1.1.4 ! ohara 19242: case $host in
! 19243: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
! 19244: *) gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
! 19245: esac
1.1.1.2 maekawa 19246:
1.1.1.4 ! ohara 19247: cat >conftest.c <<EOF
! 19248: const int foo = 123;
! 19249: EOF
! 19250: echo "Test program:" >&5
! 19251: cat conftest.c >&5
! 19252: gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
! 19253: if { (eval echo "$as_me:19253: \"$gmp_compile\"") >&5
! 19254: (eval $gmp_compile) 2>&5
! 19255: ac_status=$?
! 19256: echo "$as_me:19256: \$? = $ac_status" >&5
! 19257: (exit $ac_status); }; then
! 19258: echo "Compiler output:" >&5
! 19259: cat conftest.s >&5
! 19260: if test $gmp_cv_asm_underscore = yes; then
! 19261: tmp_gsym_prefix=_
! 19262: else
! 19263: tmp_gsym_prefix=
! 19264: fi
! 19265: # must see our label
! 19266: if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
! 19267: # take the last directive before our label (hence skipping segments
! 19268: # getting debugging info etc)
! 19269: tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
! 19270: /^[. ]*data/p
! 19271: /^[. ]*rdata/p
! 19272: /^[. ]*text/p
! 19273: /^[. ]*section/p
! 19274: /^[. ]*csect/p
! 19275: /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
! 19276: echo "Match: $tmp_match" >&5
! 19277: if test -n "$tmp_match"; then
! 19278: gmp_cv_asm_rodata=$tmp_match
! 19279: fi
! 19280: else
! 19281: echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
! 19282: fi
! 19283: fi
! 19284:
! 19285: fi
! 19286: echo "$as_me:19286: result: $gmp_cv_asm_rodata" >&5
! 19287: echo "${ECHO_T}$gmp_cv_asm_rodata" >&6
! 19288: echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
! 19289:
! 19290: echo "$as_me:19290: checking if the export directive needs an attribute" >&5
! 19291: echo $ECHO_N "checking if the export directive needs an attribute... $ECHO_C" >&6
! 19292: if test "${gmp_cv_asm_globl_attr+set}" = set; then
! 19293: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19294: else
! 19295: case $host in
! 19296: *-*-hpux*) gmp_cv_asm_globl_attr=",entry" ;;
! 19297: *) gmp_cv_asm_globl_attr="" ;;
! 19298: esac
1.1.1.2 maekawa 19299:
1.1.1.4 ! ohara 19300: fi
! 19301: echo "$as_me:19301: result: $gmp_cv_asm_globl_attr" >&5
! 19302: echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6
! 19303: echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
! 19304:
! 19305: echo "$as_me:19305: checking for assembler .type directive" >&5
! 19306: echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6
! 19307: if test "${gmp_cv_asm_type+set}" = set; then
! 19308: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19309: else
! 19310: gmp_cv_asm_type=
! 19311: for gmp_tmp_prefix in @ \# %; do
! 19312: cat >conftest.s <<EOF
! 19313: .type sym,${gmp_tmp_prefix}function
1.1.1.2 maekawa 19314: EOF
1.1.1.4 ! ohara 19315: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19316: if { (eval echo "$as_me:19316: \"$gmp_assemble\"") >&5
! 19317: (eval $gmp_assemble) 2>&5
! 19318: ac_status=$?
! 19319: echo "$as_me:19319: \$? = $ac_status" >&5
! 19320: (exit $ac_status); }; then
! 19321: cat conftest.out >&5
! 19322: if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
! 19323: else
! 19324: gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
1.1.1.2 maekawa 19325: break
19326: fi
1.1.1.4 ! ohara 19327: else
! 19328: cat conftest.out >&5
! 19329: echo "configure: failed program was:" >&5
! 19330: cat conftest.s >&5
! 19331: :
1.1.1.2 maekawa 19332: fi
1.1.1.4 ! ohara 19333: rm -f conftest*
! 19334:
! 19335: done
! 19336: rm -f conftest*
1.1.1.2 maekawa 19337:
1.1.1.4 ! ohara 19338: fi
! 19339: echo "$as_me:19339: result: $gmp_cv_asm_type" >&5
! 19340: echo "${ECHO_T}$gmp_cv_asm_type" >&6
! 19341: echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
! 19342:
! 19343: echo "$as_me:19343: checking for assembler .size directive" >&5
! 19344: echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6
! 19345: if test "${gmp_cv_asm_size+set}" = set; then
! 19346: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19347: else
! 19348: gmp_cv_asm_size=
! 19349: cat >conftest.s <<EOF
! 19350: .size sym,1
! 19351: EOF
! 19352: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19353: if { (eval echo "$as_me:19353: \"$gmp_assemble\"") >&5
! 19354: (eval $gmp_assemble) 2>&5
! 19355: ac_status=$?
! 19356: echo "$as_me:19356: \$? = $ac_status" >&5
! 19357: (exit $ac_status); }; then
! 19358: cat conftest.out >&5
! 19359: if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
! 19360: else
! 19361: gmp_cv_asm_size=".size \$1,\$2"
! 19362: fi
1.1.1.2 maekawa 19363: else
1.1.1.4 ! ohara 19364: cat conftest.out >&5
! 19365: echo "configure: failed program was:" >&5
! 19366: cat conftest.s >&5
! 19367: :
1.1.1.2 maekawa 19368: fi
1.1.1.4 ! ohara 19369: rm -f conftest*
1.1.1.2 maekawa 19370:
1.1.1.4 ! ohara 19371: fi
! 19372: echo "$as_me:19372: result: $gmp_cv_asm_size" >&5
! 19373: echo "${ECHO_T}$gmp_cv_asm_size" >&6
! 19374: echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
! 19375:
! 19376: echo "$as_me:19376: checking what prefix to use for a local label" >&5
! 19377: echo $ECHO_N "checking what prefix to use for a local label... $ECHO_C" >&6
! 19378: if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
! 19379: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19380: else
! 19381: for gmp_tmp_pre in L .L $ L$; do
! 19382: echo "Trying $gmp_tmp_pre" >&5
! 19383: cat >conftest.s <<EOF
! 19384: dummy${gmp_cv_asm_label_suffix}
! 19385: ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
! 19386: EOF
! 19387: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19388: if { (eval echo "$as_me:19388: \"$gmp_assemble\"") >&5
! 19389: (eval $gmp_assemble) 2>&5
! 19390: ac_status=$?
! 19391: echo "$as_me:19391: \$? = $ac_status" >&5
! 19392: (exit $ac_status); }; then
! 19393: cat conftest.out >&5
! 19394: if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
! 19395: cat conftest.nm >&5
! 19396: { echo "$as_me:19396: WARNING: \"$NM\" failure" >&5
! 19397: echo "$as_me: WARNING: \"$NM\" failure" >&2;}
! 19398: break
! 19399: fi
! 19400: cat conftest.nm >&5
! 19401: if grep gurkmacka conftest.nm >/dev/null; then : ; else
! 19402: # no mention of the symbol, this is good
! 19403: gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
! 19404: break
! 19405: fi
! 19406: if grep ' [Nt] .*gurkmacka' conftest.nm >/dev/null; then
! 19407: # symbol mentioned as a local, use this if nothing better
! 19408: if test -z "$gmp_cv_asm_lsym_prefix"; then
! 19409: gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
! 19410: fi
! 19411: fi
1.1.1.2 maekawa 19412:
1.1.1.4 ! ohara 19413: else
! 19414: cat conftest.out >&5
! 19415: echo "configure: failed program was:" >&5
! 19416: cat conftest.s >&5
! 19417: :
! 19418: fi
! 19419: rm -f conftest*
! 19420:
! 19421: done
! 19422: rm -f conftest*
! 19423: if test -z "$gmp_cv_asm_lsym_prefix"; then
! 19424: gmp_cv_asm_lsym_prefix=L
! 19425: { echo "$as_me:19425: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
! 19426: echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
! 19427: fi
! 19428:
! 19429: fi
! 19430: echo "$as_me:19430: result: $gmp_cv_asm_lsym_prefix" >&5
! 19431: echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6
! 19432: echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
1.1.1.2 maekawa 19433:
1.1.1.4 ! ohara 19434: cat >>confdefs.h <<EOF
! 19435: #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
1.1.1.2 maekawa 19436: EOF
1.1.1.4 ! ohara 19437:
! 19438: echo "$as_me:19438: checking how to define a 32-bit word" >&5
! 19439: echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6
! 19440: if test "${gmp_cv_asm_w32+set}" = set; then
! 19441: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19442: else
! 19443: case $host in
! 19444: *-*-hpux*)
! 19445: # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
! 19446: # that it's at 0x0. We'll have to declare another symbol before the
! 19447: # .long/.word and look at the distance between the two symbols. The
! 19448: # only problem is that the sed expression(s) barfs (on Solaris, for
! 19449: # example) for the symbol with value 0. For now, HPUX uses .word.
! 19450: gmp_cv_asm_w32=".word"
! 19451: ;;
! 19452: *-*-*)
! 19453: gmp_tmp_val=
! 19454: for gmp_tmp_op in .long .word; do
! 19455: cat >conftest.s <<EOF
! 19456: $gmp_cv_asm_data
! 19457: $gmp_cv_asm_globl foo
! 19458: $gmp_tmp_op 0
! 19459: foo$gmp_cv_asm_label_suffix
! 19460: .byte 0
! 19461: EOF
! 19462: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19463: if { (eval echo "$as_me:19463: \"$gmp_assemble\"") >&5
! 19464: (eval $gmp_assemble) 2>&5
! 19465: ac_status=$?
! 19466: echo "$as_me:19466: \$? = $ac_status" >&5
! 19467: (exit $ac_status); }; then
! 19468: cat conftest.out >&5
! 19469: gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
! 19470: sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
! 19471: if test "$gmp_tmp_val" = 4; then
! 19472: gmp_cv_asm_w32="$gmp_tmp_op"
! 19473: break
! 19474: fi
! 19475: else
! 19476: cat conftest.out >&5
! 19477: echo "configure: failed program was:" >&5
! 19478: cat conftest.s >&5
! 19479: :
! 19480: fi
! 19481: rm -f conftest*
! 19482:
! 19483: done
! 19484: rm -f conftest*
! 19485: ;;
! 19486: esac
! 19487: if test -z "$gmp_cv_asm_w32"; then
! 19488: { { echo "$as_me:19488: error: cannot determine how to define a 32-bit word" >&5
! 19489: echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
! 19490: { (exit 1); exit 1; }; }
! 19491: fi
! 19492:
! 19493: fi
! 19494: echo "$as_me:19494: result: $gmp_cv_asm_w32" >&5
! 19495: echo "${ECHO_T}$gmp_cv_asm_w32" >&6
! 19496: echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
! 19497:
! 19498: echo "$as_me:19498: checking if .align assembly directive is logarithmic" >&5
! 19499: echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6
! 19500: if test "${gmp_cv_asm_align_log+set}" = set; then
! 19501: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19502: else
! 19503: cat >conftest.s <<EOF
! 19504: $gmp_cv_asm_data
! 19505: .align 4
! 19506: $gmp_cv_asm_globl foo
! 19507: .byte 1
! 19508: .align 4
! 19509: foo$gmp_cv_asm_label_suffix
! 19510: .byte 2
! 19511: EOF
! 19512: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19513: if { (eval echo "$as_me:19513: \"$gmp_assemble\"") >&5
! 19514: (eval $gmp_assemble) 2>&5
! 19515: ac_status=$?
! 19516: echo "$as_me:19516: \$? = $ac_status" >&5
! 19517: (exit $ac_status); }; then
! 19518: cat conftest.out >&5
! 19519: gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
! 19520: sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
! 19521: if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
! 19522: gmp_cv_asm_align_log=yes
! 19523: else
! 19524: gmp_cv_asm_align_log=no
! 19525: fi
! 19526: else
! 19527: cat conftest.out >&5
! 19528: echo "configure: failed program was:" >&5
! 19529: cat conftest.s >&5
! 19530: { { echo "$as_me:19530: error: cannot assemble alignment test" >&5
! 19531: echo "$as_me: error: cannot assemble alignment test" >&2;}
! 19532: { (exit 1); exit 1; }; }
! 19533: fi
! 19534: rm -f conftest*
! 19535:
! 19536: fi
! 19537: echo "$as_me:19537: result: $gmp_cv_asm_align_log" >&5
! 19538: echo "${ECHO_T}$gmp_cv_asm_align_log" >&6
! 19539:
! 19540: echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
! 19541:
! 19542: case $host in
! 19543: m68*-*-*)
! 19544:
! 19545: echo "$as_me:19545: checking assembler instruction and register style" >&5
! 19546: echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6
! 19547: if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
! 19548: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19549: else
! 19550: gmp_cv_asm_m68k_instruction=unknown
! 19551: for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
! 19552: cat >conftest.s <<EOF
! 19553: $gmp_cv_asm_text
! 19554: $i
! 19555: EOF
! 19556: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19557: if { (eval echo "$as_me:19557: \"$gmp_assemble\"") >&5
! 19558: (eval $gmp_assemble) 2>&5
! 19559: ac_status=$?
! 19560: echo "$as_me:19560: \$? = $ac_status" >&5
! 19561: (exit $ac_status); }; then
! 19562: cat conftest.out >&5
! 19563: gmp_cv_asm_m68k_instruction=$i
! 19564: rm -f conftest*
! 19565: break
! 19566: else
! 19567: cat conftest.out >&5
! 19568: echo "configure: failed program was:" >&5
! 19569: cat conftest.s >&5
! 19570: :
! 19571: fi
! 19572: rm -f conftest*
! 19573:
! 19574: done
! 19575:
! 19576: fi
! 19577: echo "$as_me:19577: result: $gmp_cv_asm_m68k_instruction" >&5
! 19578: echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6
! 19579: case $gmp_cv_asm_m68k_instruction in
! 19580: "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
! 19581: "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
! 19582: "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
! 19583: "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
! 19584: *) { { echo "$as_me:19584: error: cannot determine assembler instruction and register style" >&5
! 19585: echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
! 19586: { (exit 1); exit 1; }; } ;;
! 19587: esac
! 19588:
! 19589: echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
! 19590:
! 19591: echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
! 19592:
! 19593: echo "$as_me:19593: checking assembler addressing style" >&5
! 19594: echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6
! 19595: if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
! 19596: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19597: else
! 19598: case $gmp_cv_asm_m68k_instruction in
! 19599: addl*) movel=movel ;;
! 19600: add.l*) movel=move.l ;;
! 19601: *) { { echo "$as_me:19601: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
! 19602: echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
! 19603: { (exit 1); exit 1; }; } ;;
! 19604: esac
! 19605: case $gmp_cv_asm_m68k_instruction in
! 19606: *"%d0,%d1") dreg=%d0; areg=%a0 ;;
! 19607: *"d0,d1") dreg=d0; areg=a0 ;;
! 19608: *) { { echo "$as_me:19608: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
! 19609: echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
! 19610: { (exit 1); exit 1; }; } ;;
1.1.1.2 maekawa 19611: esac
1.1.1.4 ! ohara 19612: cat >conftest.s <<EOF
! 19613: $gmp_cv_asm_text
! 19614: $movel $dreg, $areg@-
! 19615: EOF
! 19616: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19617: if { (eval echo "$as_me:19617: \"$gmp_assemble\"") >&5
! 19618: (eval $gmp_assemble) 2>&5
! 19619: ac_status=$?
! 19620: echo "$as_me:19620: \$? = $ac_status" >&5
! 19621: (exit $ac_status); }; then
! 19622: cat conftest.out >&5
! 19623: gmp_cv_asm_m68k_addressing=mit
! 19624: else
! 19625: cat conftest.out >&5
! 19626: echo "configure: failed program was:" >&5
! 19627: cat conftest.s >&5
! 19628: cat >conftest.s <<EOF
! 19629: $gmp_cv_asm_text
! 19630: $movel $dreg, -($areg)
! 19631: EOF
! 19632: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19633: if { (eval echo "$as_me:19633: \"$gmp_assemble\"") >&5
! 19634: (eval $gmp_assemble) 2>&5
! 19635: ac_status=$?
! 19636: echo "$as_me:19636: \$? = $ac_status" >&5
! 19637: (exit $ac_status); }; then
! 19638: cat conftest.out >&5
! 19639: gmp_cv_asm_m68k_addressing=motorola
! 19640: else
! 19641: cat conftest.out >&5
! 19642: echo "configure: failed program was:" >&5
! 19643: cat conftest.s >&5
! 19644: { { echo "$as_me:19644: error: cannot determine assembler addressing style" >&5
! 19645: echo "$as_me: error: cannot determine assembler addressing style" >&2;}
! 19646: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 19647: fi
1.1.1.4 ! ohara 19648: rm -f conftest*
! 19649:
! 19650: fi
! 19651: rm -f conftest*
! 19652:
! 19653: fi
! 19654: echo "$as_me:19654: result: $gmp_cv_asm_m68k_addressing" >&5
! 19655: echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6
! 19656:
! 19657: echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
! 19658:
! 19659: echo "$as_me:19659: checking assembler shortest branches" >&5
! 19660: echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6
! 19661: if test "${gmp_cv_asm_m68k_branches+set}" = set; then
! 19662: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19663: else
! 19664: gmp_cv_asm_m68k_branches=unknown
! 19665: for i in jra jbra bra; do
! 19666: cat >conftest.s <<EOF
! 19667: $gmp_cv_asm_text
! 19668: foo$gmp_cv_asm_label_suffix
! 19669: $i foo
! 19670: EOF
! 19671: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19672: if { (eval echo "$as_me:19672: \"$gmp_assemble\"") >&5
! 19673: (eval $gmp_assemble) 2>&5
! 19674: ac_status=$?
! 19675: echo "$as_me:19675: \$? = $ac_status" >&5
! 19676: (exit $ac_status); }; then
! 19677: cat conftest.out >&5
! 19678: gmp_cv_asm_m68k_branches=$i
! 19679: rm -f conftest*
! 19680: break
! 19681: else
! 19682: cat conftest.out >&5
! 19683: echo "configure: failed program was:" >&5
! 19684: cat conftest.s >&5
! 19685: :
! 19686: fi
! 19687: rm -f conftest*
! 19688:
! 19689: done
1.1.1.2 maekawa 19690:
19691: fi
1.1.1.4 ! ohara 19692: echo "$as_me:19692: result: $gmp_cv_asm_m68k_branches" >&5
! 19693: echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6
! 19694: if test "$gmp_cv_asm_m68k_branches" = unknown; then
! 19695: { { echo "$as_me:19695: error: cannot determine assembler branching style" >&5
! 19696: echo "$as_me: error: cannot determine assembler branching style" >&2;}
! 19697: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 19698: fi
19699:
1.1.1.4 ! ohara 19700: echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
1.1.1.2 maekawa 19701:
1.1.1.4 ! ohara 19702: ;;
! 19703: powerpc*-*-*)
1.1.1.2 maekawa 19704:
1.1.1.4 ! ohara 19705: echo "$as_me:19705: checking if the assembler needs r on registers" >&5
! 19706: echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6
! 19707: if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
! 19708: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19709: else
! 19710: cat >conftest.s <<EOF
! 19711: $gmp_cv_asm_text
! 19712: mtctr 6
! 19713: EOF
! 19714: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19715: if { (eval echo "$as_me:19715: \"$gmp_assemble\"") >&5
! 19716: (eval $gmp_assemble) 2>&5
! 19717: ac_status=$?
! 19718: echo "$as_me:19718: \$? = $ac_status" >&5
! 19719: (exit $ac_status); }; then
! 19720: cat conftest.out >&5
! 19721: gmp_cv_asm_powerpc_r_registers=no
1.1.1.2 maekawa 19722: else
1.1.1.4 ! ohara 19723: cat conftest.out >&5
! 19724: echo "configure: failed program was:" >&5
! 19725: cat conftest.s >&5
! 19726: cat >conftest.s <<EOF
! 19727: $gmp_cv_asm_text
! 19728: mtctr r6
! 19729: EOF
! 19730: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19731: if { (eval echo "$as_me:19731: \"$gmp_assemble\"") >&5
! 19732: (eval $gmp_assemble) 2>&5
! 19733: ac_status=$?
! 19734: echo "$as_me:19734: \$? = $ac_status" >&5
! 19735: (exit $ac_status); }; then
! 19736: cat conftest.out >&5
! 19737: gmp_cv_asm_powerpc_r_registers=yes
1.1.1.2 maekawa 19738: else
1.1.1.4 ! ohara 19739: cat conftest.out >&5
! 19740: echo "configure: failed program was:" >&5
! 19741: cat conftest.s >&5
! 19742: { { echo "$as_me:19742: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
! 19743: echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
! 19744: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 19745: fi
1.1.1.4 ! ohara 19746: rm -f conftest*
! 19747:
1.1.1.2 maekawa 19748: fi
1.1.1.4 ! ohara 19749: rm -f conftest*
! 19750:
! 19751: fi
! 19752: echo "$as_me:19752: result: $gmp_cv_asm_powerpc_r_registers" >&5
! 19753: echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6
! 19754:
! 19755: echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
! 19756:
! 19757: echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
! 19758:
! 19759: case $host in
! 19760: powerpc*-*-aix*)
! 19761: case $ABI in
! 19762: 64 | aix64)
! 19763: echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
! 19764: ;;
! 19765: *)
! 19766: echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
! 19767: ;;
! 19768: esac
! 19769: ;;
! 19770: esac
! 19771: ;;
! 19772: power*-*-aix*)
! 19773:
! 19774: echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
! 19775:
! 19776: ;;
! 19777: sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
! 19778: case $ABI in
! 19779: 64)
! 19780:
! 19781: echo "$as_me:19781: checking if the assembler accepts \".register\"" >&5
! 19782: echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6
! 19783: if test "${gmp_cv_asm_sparc_register+set}" = set; then
! 19784: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19785: else
! 19786: cat >conftest.s <<EOF
! 19787: $gmp_cv_asm_text
! 19788: .register %g2,#scratch
! 19789:
! 19790: EOF
! 19791: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19792: if { (eval echo "$as_me:19792: \"$gmp_assemble\"") >&5
! 19793: (eval $gmp_assemble) 2>&5
! 19794: ac_status=$?
! 19795: echo "$as_me:19795: \$? = $ac_status" >&5
! 19796: (exit $ac_status); }; then
! 19797: cat conftest.out >&5
! 19798: gmp_cv_asm_sparc_register=yes
1.1.1.2 maekawa 19799: else
1.1.1.4 ! ohara 19800: cat conftest.out >&5
! 19801: echo "configure: failed program was:" >&5
! 19802: cat conftest.s >&5
! 19803: gmp_cv_asm_sparc_register=no
1.1.1.2 maekawa 19804: fi
1.1.1.4 ! ohara 19805: rm -f conftest*
1.1.1.2 maekawa 19806:
1.1.1.4 ! ohara 19807: fi
! 19808: echo "$as_me:19808: result: $gmp_cv_asm_sparc_register" >&5
! 19809: echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6
! 19810:
! 19811: echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
! 19812:
! 19813: ;;
! 19814: esac
! 19815: ;;
! 19816: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
! 19817:
! 19818: echo "$as_me:19818: checking if the .align directive accepts an 0x90 fill in .text" >&5
! 19819: echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6
! 19820: if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
! 19821: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 19822: else
1.1.1.4 ! ohara 19823: cat >conftest.s <<EOF
! 19824: $gmp_cv_asm_text
! 19825: .align 4, 0x90
! 19826: .byte 0
! 19827: .align 4, 0x90
! 19828: EOF
! 19829: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19830: if { (eval echo "$as_me:19830: \"$gmp_assemble\"") >&5
! 19831: (eval $gmp_assemble) 2>&5
! 19832: ac_status=$?
! 19833: echo "$as_me:19833: \$? = $ac_status" >&5
! 19834: (exit $ac_status); }; then
! 19835: cat conftest.out >&5
! 19836: if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
! 19837: echo "Supressing this warning by omitting 0x90" 1>&5
! 19838: gmp_cv_asm_align_fill_0x90=no
1.1.1.2 maekawa 19839: else
1.1.1.4 ! ohara 19840: gmp_cv_asm_align_fill_0x90=yes
1.1.1.2 maekawa 19841: fi
19842: else
1.1.1.4 ! ohara 19843: cat conftest.out >&5
! 19844: echo "configure: failed program was:" >&5
! 19845: cat conftest.s >&5
! 19846: gmp_cv_asm_align_fill_0x90=no
1.1.1.2 maekawa 19847: fi
1.1.1.4 ! ohara 19848: rm -f conftest*
1.1.1.2 maekawa 19849:
19850: fi
1.1.1.4 ! ohara 19851: echo "$as_me:19851: result: $gmp_cv_asm_align_fill_0x90" >&5
! 19852: echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6
1.1.1.2 maekawa 19853:
1.1.1.4 ! ohara 19854: echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
! 19855:
! 19856: echo "$as_me:19856: checking if the assembler takes cl with shldl" >&5
! 19857: echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6
! 19858: if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
! 19859: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 19860: else
1.1.1.4 ! ohara 19861: cat >conftest.s <<EOF
! 19862: $gmp_cv_asm_text
! 19863: shldl %cl, %eax, %ebx
! 19864: EOF
! 19865: gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1"
! 19866: if { (eval echo "$as_me:19866: \"$gmp_assemble\"") >&5
! 19867: (eval $gmp_assemble) 2>&5
! 19868: ac_status=$?
! 19869: echo "$as_me:19869: \$? = $ac_status" >&5
! 19870: (exit $ac_status); }; then
! 19871: cat conftest.out >&5
! 19872: gmp_cv_asm_x86_shldl_cl=yes
1.1.1.2 maekawa 19873: else
1.1.1.4 ! ohara 19874: cat conftest.out >&5
! 19875: echo "configure: failed program was:" >&5
! 19876: cat conftest.s >&5
! 19877: gmp_cv_asm_x86_shldl_cl=no
1.1.1.2 maekawa 19878: fi
1.1.1.4 ! ohara 19879: rm -f conftest*
! 19880:
1.1.1.2 maekawa 19881: fi
1.1.1.4 ! ohara 19882: echo "$as_me:19882: result: $gmp_cv_asm_x86_shldl_cl" >&5
! 19883: echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6
! 19884: if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
! 19885:
! 19886: echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
! 19887:
1.1.1.2 maekawa 19888: else
1.1.1.4 ! ohara 19889:
! 19890: echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
! 19891:
1.1.1.2 maekawa 19892: fi
19893:
1.1.1.4 ! ohara 19894: if test "$enable_profiling" != no; then
! 19895:
! 19896: echo "$as_me:19896: checking how to call x86 mcount" >&5
! 19897: echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6
! 19898: cat >conftest.c <<EOF
! 19899: foo(){bar();}
! 19900: EOF
! 19901:
! 19902: if test "$enable_static" = yes; then
! 19903: gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
! 19904: if { (eval echo "$as_me:19904: \"$gmp_asmout_compile\"") >&5
! 19905: (eval $gmp_asmout_compile) 2>&5
! 19906: ac_status=$?
! 19907: echo "$as_me:19907: \$? = $ac_status" >&5
! 19908: (exit $ac_status); }; then
! 19909: if grep '\.data' conftest.s >/dev/null; then
! 19910: mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
! 19911: else
! 19912: mcount_nonpic_reg=
! 19913: fi
! 19914: mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
! 19915: if test -z "$mcount_nonpic_call"; then
! 19916: { { echo "$as_me:19916: error: Cannot find mcount call for non-PIC" >&5
! 19917: echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
! 19918: { (exit 1); exit 1; }; }
! 19919: fi
! 19920: else
! 19921: { { echo "$as_me:19921: error: Cannot compile test program for non-PIC" >&5
! 19922: echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
! 19923: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 19924: fi
19925: fi
19926:
1.1.1.4 ! ohara 19927: if test "$enable_shared" = yes; then
! 19928: gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
! 19929: if { (eval echo "$as_me:19929: \"$gmp_asmout_compile\"") >&5
! 19930: (eval $gmp_asmout_compile) 2>&5
! 19931: ac_status=$?
! 19932: echo "$as_me:19932: \$? = $ac_status" >&5
! 19933: (exit $ac_status); }; then
! 19934: if grep '\.data' conftest.s >/dev/null; then
! 19935: case $lt_prog_compiler_pic in
! 19936: *-DDLL_EXPORT*)
! 19937: # Windows DLLs have non-PIC style mcount
! 19938: mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
! 19939: ;;
! 19940: *)
! 19941: mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
! 19942: ;;
! 19943: esac
! 19944: else
! 19945: mcount_pic_reg=
! 19946: fi
! 19947: mcount_pic_call=`grep 'call.*mcount' conftest.s`
! 19948: if test -z "$mcount_pic_call"; then
! 19949: { { echo "$as_me:19949: error: Cannot find mcount call for PIC" >&5
! 19950: echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
! 19951: { (exit 1); exit 1; }; }
! 19952: fi
1.1.1.2 maekawa 19953: else
1.1.1.4 ! ohara 19954: { { echo "$as_me:19954: error: Cannot compile test program for PIC" >&5
! 19955: echo "$as_me: error: Cannot compile test program for PIC" >&2;}
! 19956: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 19957: fi
19958: fi
19959:
1.1.1.4 ! ohara 19960: echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
1.1.1.2 maekawa 19961:
1.1.1.4 ! ohara 19962: echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
! 19963:
! 19964: echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
! 19965:
! 19966: echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
! 19967:
! 19968: rm -f conftest.*
! 19969: echo "$as_me:19969: result: determined" >&5
! 19970: echo "${ECHO_T}determined" >&6
! 19971:
! 19972: fi
! 19973: case $host in
! 19974: *-*-openbsd*)
! 19975:
! 19976: echo 'define(<_GLOBAL_OFFSET_TABLE_>, <__GLOBAL_OFFSET_TABLE_>)' >>$gmp_tmpconfigm4
1.1.1.2 maekawa 19977:
1.1.1.4 ! ohara 19978: ;;
! 19979: esac
! 19980: ;;
! 19981: esac
1.1.1.2 maekawa 19982: fi
19983:
1.1.1.4 ! ohara 19984: # Create link for gmp-mparam.h.
! 19985: gmp_mparam_source=
! 19986: for gmp_mparam_dir in $path; do
! 19987: test "$no_create" = yes || rm -f gmp-mparam.h
! 19988: tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
! 19989: if test -f $tmp_file; then
! 19990: ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
! 19991:
! 19992: gmp_srclinks="$gmp_srclinks gmp-mparam.h"
! 19993: gmp_mparam_source=$tmp_file
! 19994: break
! 19995: fi
! 19996: done
! 19997: if test -z "$gmp_mparam_source"; then
! 19998: { { echo "$as_me:19998: error: no version of gmp-mparam.h found in path: $path" >&5
! 19999: echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
! 20000: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 20001: fi
20002:
1.1.1.4 ! ohara 20003: # For a helpful message from tune/tuneup.c
! 20004: gmp_mparam_suggest=$gmp_mparam_source
! 20005: if test "$gmp_mparam_dir" = generic; then
! 20006: for i in $path; do break; done
! 20007: if test "$i" != generic; then
! 20008: gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
1.1.1.2 maekawa 20009: fi
1.1.1.4 ! ohara 20010: fi
1.1.1.2 maekawa 20011:
1.1.1.4 ! ohara 20012: cat >>confdefs.h <<EOF
! 20013: #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
! 20014: EOF
1.1.1.2 maekawa 20015:
1.1.1.4 ! ohara 20016: # Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4.
! 20017: # Some versions of sqr_basecase.asm use this.
! 20018: tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
! 20019: if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
! 20020:
! 20021: echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
! 20022:
! 20023: fi
1.1.1.2 maekawa 20024:
1.1.1.4 ! ohara 20025: # This must come after gmp-mparam.h has been chosen.
! 20026: BITS_PER_MP_LIMB=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
! 20027: if test -n "$BITS_PER_MP_LIMB" \
! 20028: && grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ;
! 20029: else
! 20030: echo "$as_me:20030: checking for mp_limb_t" >&5
! 20031: echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6
! 20032: if test "${ac_cv_type_mp_limb_t+set}" = set; then
! 20033: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20034: else
! 20035: cat >conftest.$ac_ext <<_ACEOF
! 20036: #line 20036 "configure"
1.1.1.2 maekawa 20037: #include "confdefs.h"
1.1.1.4 ! ohara 20038: #include <stdio.h>
! 20039: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20040: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20041: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20042: #define GMP_LIMB_BITS 123
! 20043: $DEFN_LONG_LONG_LIMB
! 20044: #include "$srcdir/gmp-h.in"
1.1.1.2 maekawa 20045:
20046: int
1.1.1.4 ! ohara 20047: main ()
1.1.1.2 maekawa 20048: {
1.1.1.4 ! ohara 20049: if ((mp_limb_t *) 0)
! 20050: return 0;
! 20051: if (sizeof (mp_limb_t))
! 20052: return 0;
1.1.1.2 maekawa 20053: ;
20054: return 0;
20055: }
1.1.1.4 ! ohara 20056: _ACEOF
! 20057: rm -f conftest.$ac_objext
! 20058: if { (eval echo "$as_me:20058: \"$ac_compile\"") >&5
! 20059: (eval $ac_compile) 2>&5
! 20060: ac_status=$?
! 20061: echo "$as_me:20061: \$? = $ac_status" >&5
! 20062: (exit $ac_status); } &&
! 20063: { ac_try='test -s conftest.$ac_objext'
! 20064: { (eval echo "$as_me:20064: \"$ac_try\"") >&5
! 20065: (eval $ac_try) 2>&5
! 20066: ac_status=$?
! 20067: echo "$as_me:20067: \$? = $ac_status" >&5
! 20068: (exit $ac_status); }; }; then
! 20069: ac_cv_type_mp_limb_t=yes
! 20070: else
! 20071: echo "$as_me: failed program was:" >&5
! 20072: cat conftest.$ac_ext >&5
! 20073: ac_cv_type_mp_limb_t=no
! 20074: fi
! 20075: rm -f conftest.$ac_objext conftest.$ac_ext
! 20076: fi
! 20077: echo "$as_me:20077: result: $ac_cv_type_mp_limb_t" >&5
! 20078: echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6
! 20079:
! 20080: echo "$as_me:20080: checking size of mp_limb_t" >&5
! 20081: echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6
! 20082: if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
! 20083: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20084: else
! 20085: if test "$ac_cv_type_mp_limb_t" = yes; then
! 20086: if test "$cross_compiling" = yes; then
! 20087: # Depending upon the size, compute the lo and hi bounds.
! 20088: cat >conftest.$ac_ext <<_ACEOF
! 20089: #line 20089 "configure"
! 20090: #include "confdefs.h"
! 20091: #include <stdio.h>
! 20092: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20093: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20094: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20095: #define GMP_LIMB_BITS 123
! 20096: $DEFN_LONG_LONG_LIMB
! 20097: #include "$srcdir/gmp-h.in"
1.1.1.2 maekawa 20098:
1.1.1.4 ! ohara 20099: int
! 20100: main ()
! 20101: {
! 20102: int _array_ [1 - 2 * !((sizeof (mp_limb_t)) >= 0)]
! 20103: ;
! 20104: return 0;
! 20105: }
! 20106: _ACEOF
! 20107: rm -f conftest.$ac_objext
! 20108: if { (eval echo "$as_me:20108: \"$ac_compile\"") >&5
! 20109: (eval $ac_compile) 2>&5
! 20110: ac_status=$?
! 20111: echo "$as_me:20111: \$? = $ac_status" >&5
! 20112: (exit $ac_status); } &&
! 20113: { ac_try='test -s conftest.$ac_objext'
! 20114: { (eval echo "$as_me:20114: \"$ac_try\"") >&5
! 20115: (eval $ac_try) 2>&5
! 20116: ac_status=$?
! 20117: echo "$as_me:20117: \$? = $ac_status" >&5
! 20118: (exit $ac_status); }; }; then
! 20119: ac_lo=0 ac_mid=0
! 20120: while :; do
! 20121: cat >conftest.$ac_ext <<_ACEOF
! 20122: #line 20122 "configure"
! 20123: #include "confdefs.h"
! 20124: #include <stdio.h>
! 20125: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20126: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20127: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20128: #define GMP_LIMB_BITS 123
! 20129: $DEFN_LONG_LONG_LIMB
! 20130: #include "$srcdir/gmp-h.in"
1.1.1.2 maekawa 20131:
1.1.1.4 ! ohara 20132: int
! 20133: main ()
! 20134: {
! 20135: int _array_ [1 - 2 * !((sizeof (mp_limb_t)) <= $ac_mid)]
! 20136: ;
! 20137: return 0;
! 20138: }
! 20139: _ACEOF
! 20140: rm -f conftest.$ac_objext
! 20141: if { (eval echo "$as_me:20141: \"$ac_compile\"") >&5
! 20142: (eval $ac_compile) 2>&5
! 20143: ac_status=$?
! 20144: echo "$as_me:20144: \$? = $ac_status" >&5
! 20145: (exit $ac_status); } &&
! 20146: { ac_try='test -s conftest.$ac_objext'
! 20147: { (eval echo "$as_me:20147: \"$ac_try\"") >&5
! 20148: (eval $ac_try) 2>&5
! 20149: ac_status=$?
! 20150: echo "$as_me:20150: \$? = $ac_status" >&5
! 20151: (exit $ac_status); }; }; then
! 20152: ac_hi=$ac_mid; break
! 20153: else
! 20154: echo "$as_me: failed program was:" >&5
! 20155: cat conftest.$ac_ext >&5
! 20156: ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.2 maekawa 20157: fi
1.1.1.4 ! ohara 20158: rm -f conftest.$ac_objext conftest.$ac_ext
! 20159: done
! 20160: else
! 20161: echo "$as_me: failed program was:" >&5
! 20162: cat conftest.$ac_ext >&5
! 20163: ac_hi=-1 ac_mid=-1
! 20164: while :; do
! 20165: cat >conftest.$ac_ext <<_ACEOF
! 20166: #line 20166 "configure"
! 20167: #include "confdefs.h"
! 20168: #include <stdio.h>
! 20169: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20170: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20171: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20172: #define GMP_LIMB_BITS 123
! 20173: $DEFN_LONG_LONG_LIMB
! 20174: #include "$srcdir/gmp-h.in"
1.1.1.2 maekawa 20175:
1.1.1.4 ! ohara 20176: int
! 20177: main ()
! 20178: {
! 20179: int _array_ [1 - 2 * !((sizeof (mp_limb_t)) >= $ac_mid)]
! 20180: ;
! 20181: return 0;
! 20182: }
! 20183: _ACEOF
! 20184: rm -f conftest.$ac_objext
! 20185: if { (eval echo "$as_me:20185: \"$ac_compile\"") >&5
! 20186: (eval $ac_compile) 2>&5
! 20187: ac_status=$?
! 20188: echo "$as_me:20188: \$? = $ac_status" >&5
! 20189: (exit $ac_status); } &&
! 20190: { ac_try='test -s conftest.$ac_objext'
! 20191: { (eval echo "$as_me:20191: \"$ac_try\"") >&5
! 20192: (eval $ac_try) 2>&5
! 20193: ac_status=$?
! 20194: echo "$as_me:20194: \$? = $ac_status" >&5
! 20195: (exit $ac_status); }; }; then
! 20196: ac_lo=$ac_mid; break
! 20197: else
! 20198: echo "$as_me: failed program was:" >&5
! 20199: cat conftest.$ac_ext >&5
! 20200: ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
1.1.1.2 maekawa 20201: fi
1.1.1.4 ! ohara 20202: rm -f conftest.$ac_objext conftest.$ac_ext
! 20203: done
1.1.1.2 maekawa 20204: fi
1.1.1.4 ! ohara 20205: rm -f conftest.$ac_objext conftest.$ac_ext
! 20206: # Binary search between lo and hi bounds.
! 20207: while test "x$ac_lo" != "x$ac_hi"; do
! 20208: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 20209: cat >conftest.$ac_ext <<_ACEOF
! 20210: #line 20210 "configure"
! 20211: #include "confdefs.h"
! 20212: #include <stdio.h>
! 20213: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20214: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20215: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20216: #define GMP_LIMB_BITS 123
! 20217: $DEFN_LONG_LONG_LIMB
! 20218: #include "$srcdir/gmp-h.in"
1.1.1.2 maekawa 20219:
1.1.1.4 ! ohara 20220: int
! 20221: main ()
! 20222: {
! 20223: int _array_ [1 - 2 * !((sizeof (mp_limb_t)) <= $ac_mid)]
! 20224: ;
! 20225: return 0;
! 20226: }
! 20227: _ACEOF
! 20228: rm -f conftest.$ac_objext
! 20229: if { (eval echo "$as_me:20229: \"$ac_compile\"") >&5
! 20230: (eval $ac_compile) 2>&5
! 20231: ac_status=$?
! 20232: echo "$as_me:20232: \$? = $ac_status" >&5
! 20233: (exit $ac_status); } &&
! 20234: { ac_try='test -s conftest.$ac_objext'
! 20235: { (eval echo "$as_me:20235: \"$ac_try\"") >&5
! 20236: (eval $ac_try) 2>&5
! 20237: ac_status=$?
! 20238: echo "$as_me:20238: \$? = $ac_status" >&5
! 20239: (exit $ac_status); }; }; then
! 20240: ac_hi=$ac_mid
! 20241: else
! 20242: echo "$as_me: failed program was:" >&5
! 20243: cat conftest.$ac_ext >&5
! 20244: ac_lo=`expr $ac_mid + 1`
! 20245: fi
! 20246: rm -f conftest.$ac_objext conftest.$ac_ext
! 20247: done
! 20248: ac_cv_sizeof_mp_limb_t=$ac_lo
1.1.1.2 maekawa 20249: else
1.1.1.4 ! ohara 20250: if test "$cross_compiling" = yes; then
! 20251: { { echo "$as_me:20251: error: cannot run test program while cross compiling" >&5
! 20252: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
! 20253: { (exit 1); exit 1; }; }
! 20254: else
! 20255: cat >conftest.$ac_ext <<_ACEOF
! 20256: #line 20256 "configure"
1.1.1.2 maekawa 20257: #include "confdefs.h"
1.1.1.4 ! ohara 20258: #include <stdio.h>
! 20259: #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
! 20260: #define GMP_NAIL_BITS $GMP_NAIL_BITS
! 20261: #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
! 20262: #define GMP_LIMB_BITS 123
! 20263: $DEFN_LONG_LONG_LIMB
! 20264: #include "$srcdir/gmp-h.in"
! 20265:
1.1.1.2 maekawa 20266: int
20267: main ()
20268: {
1.1.1.4 ! ohara 20269: FILE *f = fopen ("conftest.val", "w");
! 20270: if (!f)
! 20271: exit (1);
! 20272: fprintf (f, "%d", (sizeof (mp_limb_t)));
! 20273: fclose (f);
1.1.1.2 maekawa 20274: ;
20275: return 0;
20276: }
1.1.1.4 ! ohara 20277: _ACEOF
! 20278: rm -f conftest$ac_exeext
! 20279: if { (eval echo "$as_me:20279: \"$ac_link\"") >&5
! 20280: (eval $ac_link) 2>&5
! 20281: ac_status=$?
! 20282: echo "$as_me:20282: \$? = $ac_status" >&5
! 20283: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 20284: { (eval echo "$as_me:20284: \"$ac_try\"") >&5
! 20285: (eval $ac_try) 2>&5
! 20286: ac_status=$?
! 20287: echo "$as_me:20287: \$? = $ac_status" >&5
! 20288: (exit $ac_status); }; }; then
! 20289: ac_cv_sizeof_mp_limb_t=`cat conftest.val`
! 20290: else
! 20291: echo "$as_me: program exited with status $ac_status" >&5
! 20292: echo "$as_me: failed program was:" >&5
! 20293: cat conftest.$ac_ext >&5
! 20294: fi
! 20295: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 20296: fi
! 20297: fi
! 20298: rm -f conftest.val
1.1.1.2 maekawa 20299: else
1.1.1.4 ! ohara 20300: ac_cv_sizeof_mp_limb_t=0
1.1.1.2 maekawa 20301: fi
20302: fi
1.1.1.4 ! ohara 20303: echo "$as_me:20303: result: $ac_cv_sizeof_mp_limb_t" >&5
! 20304: echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6
! 20305: cat >>confdefs.h <<EOF
! 20306: #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
1.1.1.2 maekawa 20307: EOF
20308:
1.1.1.4 ! ohara 20309: if test "$ac_cv_sizeof_mp_limb_t" = 0; then
! 20310: { { echo "$as_me:20310: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&5
! 20311: echo "$as_me: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&2;}
! 20312: { (exit 1); exit 1; }; }
! 20313: fi
! 20314: if test -z "$BITS_PER_MP_LIMB"; then
! 20315: BITS_PER_MP_LIMB="(8*$ac_cv_sizeof_mp_limb_t)"
! 20316: fi
! 20317: if grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ;
! 20318: else
! 20319:
! 20320: cat >>confdefs.h <<EOF
! 20321: #define BYTES_PER_MP_LIMB $ac_cv_sizeof_mp_limb_t
1.1.1.2 maekawa 20322: EOF
20323:
1.1.1.4 ! ohara 20324: fi
1.1.1.2 maekawa 20325: fi
20326:
1.1.1.4 ! ohara 20327: if grep "^#define BITS_PER_ULONG" $gmp_mparam_source >/dev/null; then : ;
1.1.1.2 maekawa 20328: else
1.1.1.4 ! ohara 20329: case $limb_chosen in
! 20330: longlong)
! 20331: echo "$as_me:20331: checking for unsigned long" >&5
! 20332: echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
! 20333: if test "${ac_cv_type_unsigned_long+set}" = set; then
! 20334: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20335: else
1.1.1.4 ! ohara 20336: cat >conftest.$ac_ext <<_ACEOF
! 20337: #line 20337 "configure"
1.1.1.2 maekawa 20338: #include "confdefs.h"
1.1.1.4 ! ohara 20339: $ac_includes_default
! 20340: int
! 20341: main ()
! 20342: {
! 20343: if ((unsigned long *) 0)
! 20344: return 0;
! 20345: if (sizeof (unsigned long))
! 20346: return 0;
! 20347: ;
! 20348: return 0;
! 20349: }
! 20350: _ACEOF
! 20351: rm -f conftest.$ac_objext
! 20352: if { (eval echo "$as_me:20352: \"$ac_compile\"") >&5
! 20353: (eval $ac_compile) 2>&5
! 20354: ac_status=$?
! 20355: echo "$as_me:20355: \$? = $ac_status" >&5
! 20356: (exit $ac_status); } &&
! 20357: { ac_try='test -s conftest.$ac_objext'
! 20358: { (eval echo "$as_me:20358: \"$ac_try\"") >&5
! 20359: (eval $ac_try) 2>&5
! 20360: ac_status=$?
! 20361: echo "$as_me:20361: \$? = $ac_status" >&5
! 20362: (exit $ac_status); }; }; then
! 20363: ac_cv_type_unsigned_long=yes
! 20364: else
! 20365: echo "$as_me: failed program was:" >&5
! 20366: cat conftest.$ac_ext >&5
! 20367: ac_cv_type_unsigned_long=no
! 20368: fi
! 20369: rm -f conftest.$ac_objext conftest.$ac_ext
! 20370: fi
! 20371: echo "$as_me:20371: result: $ac_cv_type_unsigned_long" >&5
! 20372: echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
! 20373:
! 20374: echo "$as_me:20374: checking size of unsigned long" >&5
! 20375: echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
! 20376: if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
! 20377: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20378: else
! 20379: if test "$ac_cv_type_unsigned_long" = yes; then
! 20380: if test "$cross_compiling" = yes; then
! 20381: # Depending upon the size, compute the lo and hi bounds.
! 20382: cat >conftest.$ac_ext <<_ACEOF
! 20383: #line 20383 "configure"
! 20384: #include "confdefs.h"
! 20385: $ac_includes_default
! 20386: int
! 20387: main ()
! 20388: {
! 20389: int _array_ [1 - 2 * !((sizeof (unsigned long)) >= 0)]
! 20390: ;
! 20391: return 0;
! 20392: }
! 20393: _ACEOF
! 20394: rm -f conftest.$ac_objext
! 20395: if { (eval echo "$as_me:20395: \"$ac_compile\"") >&5
! 20396: (eval $ac_compile) 2>&5
! 20397: ac_status=$?
! 20398: echo "$as_me:20398: \$? = $ac_status" >&5
! 20399: (exit $ac_status); } &&
! 20400: { ac_try='test -s conftest.$ac_objext'
! 20401: { (eval echo "$as_me:20401: \"$ac_try\"") >&5
! 20402: (eval $ac_try) 2>&5
! 20403: ac_status=$?
! 20404: echo "$as_me:20404: \$? = $ac_status" >&5
! 20405: (exit $ac_status); }; }; then
! 20406: ac_lo=0 ac_mid=0
! 20407: while :; do
! 20408: cat >conftest.$ac_ext <<_ACEOF
! 20409: #line 20409 "configure"
! 20410: #include "confdefs.h"
! 20411: $ac_includes_default
! 20412: int
! 20413: main ()
! 20414: {
! 20415: int _array_ [1 - 2 * !((sizeof (unsigned long)) <= $ac_mid)]
! 20416: ;
! 20417: return 0;
! 20418: }
! 20419: _ACEOF
! 20420: rm -f conftest.$ac_objext
! 20421: if { (eval echo "$as_me:20421: \"$ac_compile\"") >&5
! 20422: (eval $ac_compile) 2>&5
! 20423: ac_status=$?
! 20424: echo "$as_me:20424: \$? = $ac_status" >&5
! 20425: (exit $ac_status); } &&
! 20426: { ac_try='test -s conftest.$ac_objext'
! 20427: { (eval echo "$as_me:20427: \"$ac_try\"") >&5
! 20428: (eval $ac_try) 2>&5
! 20429: ac_status=$?
! 20430: echo "$as_me:20430: \$? = $ac_status" >&5
! 20431: (exit $ac_status); }; }; then
! 20432: ac_hi=$ac_mid; break
! 20433: else
! 20434: echo "$as_me: failed program was:" >&5
! 20435: cat conftest.$ac_ext >&5
! 20436: ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
! 20437: fi
! 20438: rm -f conftest.$ac_objext conftest.$ac_ext
! 20439: done
1.1.1.2 maekawa 20440: else
1.1.1.4 ! ohara 20441: echo "$as_me: failed program was:" >&5
! 20442: cat conftest.$ac_ext >&5
! 20443: ac_hi=-1 ac_mid=-1
! 20444: while :; do
! 20445: cat >conftest.$ac_ext <<_ACEOF
! 20446: #line 20446 "configure"
! 20447: #include "confdefs.h"
! 20448: $ac_includes_default
! 20449: int
! 20450: main ()
! 20451: {
! 20452: int _array_ [1 - 2 * !((sizeof (unsigned long)) >= $ac_mid)]
! 20453: ;
! 20454: return 0;
! 20455: }
! 20456: _ACEOF
! 20457: rm -f conftest.$ac_objext
! 20458: if { (eval echo "$as_me:20458: \"$ac_compile\"") >&5
! 20459: (eval $ac_compile) 2>&5
! 20460: ac_status=$?
! 20461: echo "$as_me:20461: \$? = $ac_status" >&5
! 20462: (exit $ac_status); } &&
! 20463: { ac_try='test -s conftest.$ac_objext'
! 20464: { (eval echo "$as_me:20464: \"$ac_try\"") >&5
! 20465: (eval $ac_try) 2>&5
! 20466: ac_status=$?
! 20467: echo "$as_me:20467: \$? = $ac_status" >&5
! 20468: (exit $ac_status); }; }; then
! 20469: ac_lo=$ac_mid; break
! 20470: else
! 20471: echo "$as_me: failed program was:" >&5
! 20472: cat conftest.$ac_ext >&5
! 20473: ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
1.1.1.2 maekawa 20474: fi
1.1.1.4 ! ohara 20475: rm -f conftest.$ac_objext conftest.$ac_ext
! 20476: done
1.1.1.2 maekawa 20477: fi
1.1.1.4 ! ohara 20478: rm -f conftest.$ac_objext conftest.$ac_ext
! 20479: # Binary search between lo and hi bounds.
! 20480: while test "x$ac_lo" != "x$ac_hi"; do
! 20481: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 20482: cat >conftest.$ac_ext <<_ACEOF
! 20483: #line 20483 "configure"
1.1.1.2 maekawa 20484: #include "confdefs.h"
1.1.1.4 ! ohara 20485: $ac_includes_default
! 20486: int
! 20487: main ()
! 20488: {
! 20489: int _array_ [1 - 2 * !((sizeof (unsigned long)) <= $ac_mid)]
! 20490: ;
! 20491: return 0;
! 20492: }
! 20493: _ACEOF
! 20494: rm -f conftest.$ac_objext
! 20495: if { (eval echo "$as_me:20495: \"$ac_compile\"") >&5
! 20496: (eval $ac_compile) 2>&5
! 20497: ac_status=$?
! 20498: echo "$as_me:20498: \$? = $ac_status" >&5
! 20499: (exit $ac_status); } &&
! 20500: { ac_try='test -s conftest.$ac_objext'
! 20501: { (eval echo "$as_me:20501: \"$ac_try\"") >&5
! 20502: (eval $ac_try) 2>&5
! 20503: ac_status=$?
! 20504: echo "$as_me:20504: \$? = $ac_status" >&5
! 20505: (exit $ac_status); }; }; then
! 20506: ac_hi=$ac_mid
! 20507: else
! 20508: echo "$as_me: failed program was:" >&5
! 20509: cat conftest.$ac_ext >&5
! 20510: ac_lo=`expr $ac_mid + 1`
1.1.1.2 maekawa 20511: fi
1.1.1.4 ! ohara 20512: rm -f conftest.$ac_objext conftest.$ac_ext
! 20513: done
! 20514: ac_cv_sizeof_unsigned_long=$ac_lo
1.1.1.2 maekawa 20515: else
1.1.1.4 ! ohara 20516: if test "$cross_compiling" = yes; then
! 20517: { { echo "$as_me:20517: error: cannot run test program while cross compiling" >&5
! 20518: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
! 20519: { (exit 1); exit 1; }; }
! 20520: else
! 20521: cat >conftest.$ac_ext <<_ACEOF
! 20522: #line 20522 "configure"
1.1.1.2 maekawa 20523: #include "confdefs.h"
1.1.1.4 ! ohara 20524: $ac_includes_default
1.1.1.2 maekawa 20525: int
20526: main ()
20527: {
1.1.1.4 ! ohara 20528: FILE *f = fopen ("conftest.val", "w");
! 20529: if (!f)
! 20530: exit (1);
! 20531: fprintf (f, "%d", (sizeof (unsigned long)));
! 20532: fclose (f);
! 20533: ;
! 20534: return 0;
1.1.1.2 maekawa 20535: }
1.1.1.4 ! ohara 20536: _ACEOF
! 20537: rm -f conftest$ac_exeext
! 20538: if { (eval echo "$as_me:20538: \"$ac_link\"") >&5
! 20539: (eval $ac_link) 2>&5
! 20540: ac_status=$?
! 20541: echo "$as_me:20541: \$? = $ac_status" >&5
! 20542: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 20543: { (eval echo "$as_me:20543: \"$ac_try\"") >&5
! 20544: (eval $ac_try) 2>&5
! 20545: ac_status=$?
! 20546: echo "$as_me:20546: \$? = $ac_status" >&5
! 20547: (exit $ac_status); }; }; then
! 20548: ac_cv_sizeof_unsigned_long=`cat conftest.val`
! 20549: else
! 20550: echo "$as_me: program exited with status $ac_status" >&5
! 20551: echo "$as_me: failed program was:" >&5
! 20552: cat conftest.$ac_ext >&5
! 20553: fi
! 20554: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 maekawa 20555: fi
20556: fi
1.1.1.4 ! ohara 20557: rm -f conftest.val
! 20558: else
! 20559: ac_cv_sizeof_unsigned_long=0
1.1.1.2 maekawa 20560: fi
20561: fi
1.1.1.4 ! ohara 20562: echo "$as_me:20562: result: $ac_cv_sizeof_unsigned_long" >&5
! 20563: echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
! 20564: cat >>confdefs.h <<EOF
! 20565: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
! 20566: EOF
! 20567:
! 20568: cat >>confdefs.h <<EOF
! 20569: #define BITS_PER_ULONG (8 * $ac_cv_sizeof_unsigned_long)
! 20570: EOF
! 20571:
! 20572: ;;
! 20573: *)
! 20574: # Copy the limb size when a limb is a ulong
! 20575: cat >>confdefs.h <<\EOF
! 20576: #define BITS_PER_ULONG BITS_PER_MP_LIMB
1.1.1.2 maekawa 20577: EOF
1.1 maekawa 20578:
1.1.1.4 ! ohara 20579: ;;
! 20580: esac
1.1.1.2 maekawa 20581: fi
1.1 maekawa 20582:
1.1.1.4 ! ohara 20583: echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
! 20584:
! 20585: echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
! 20586:
! 20587: echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
! 20588:
! 20589: # Exclude the mpn random functions from mpbsd since that would drag in the
! 20590: # top-level rand things, all of which are unnecessary for libmp. There's
! 20591: # other unnecessary objects too actually, if we could be bothered figuring
! 20592: # out exactly which they are.
! 20593: #
! 20594: mpn_objs_in_libmp=
! 20595: for i in $mpn_objs_in_libgmp; do
! 20596: case $i in
! 20597: *random*) ;;
! 20598: *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
! 20599: esac
! 20600: done
! 20601:
! 20602: # Configs for mpfr.
! 20603: #
! 20604: if test $enable_mpfr = yes; then
! 20605: gmp_CFLAGS=$CFLAGS
! 20606: gmp_LIBS=$LIBS
! 20607: LIBS="$LIBS $LIBM"
! 20608:
! 20609: case $host in
! 20610: *-*-solaris*)
! 20611: LM9X="-lm9x"
! 20612: ;;
! 20613: esac
! 20614:
! 20615: for ac_func in strcasecmp
1.1.1.2 maekawa 20616: do
1.1.1.4 ! ohara 20617: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20618: echo "$as_me:20618: checking for $ac_func" >&5
! 20619: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20620: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 20621: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20622: else
1.1.1.4 ! ohara 20623: cat >conftest.$ac_ext <<_ACEOF
! 20624: #line 20624 "configure"
1.1.1.2 maekawa 20625: #include "confdefs.h"
1.1.1.4 ! ohara 20626: /* System header to define __stub macros and hopefully few prototypes,
! 20627: which can conflict with char $ac_func (); below. */
! 20628: #include <assert.h>
! 20629: /* Override any gcc2 internal prototype to avoid an error. */
! 20630: #ifdef __cplusplus
! 20631: extern "C"
! 20632: #endif
! 20633: /* We use char because int might match the return type of a gcc2
! 20634: builtin and then its argument prototype would still apply. */
! 20635: char $ac_func ();
! 20636: char (*f) ();
1.1 maekawa 20637:
1.1.1.4 ! ohara 20638: int
! 20639: main ()
! 20640: {
! 20641: /* The GNU C library defines this for functions which it implements
! 20642: to always fail with ENOSYS. Some functions are actually named
! 20643: something starting with __ and the normal name is an alias. */
! 20644: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 20645: choke me
! 20646: #else
! 20647: f = $ac_func;
! 20648: #endif
! 20649:
! 20650: ;
! 20651: return 0;
! 20652: }
! 20653: _ACEOF
! 20654: rm -f conftest.$ac_objext conftest$ac_exeext
! 20655: if { (eval echo "$as_me:20655: \"$ac_link\"") >&5
! 20656: (eval $ac_link) 2>&5
! 20657: ac_status=$?
! 20658: echo "$as_me:20658: \$? = $ac_status" >&5
! 20659: (exit $ac_status); } &&
! 20660: { ac_try='test -s conftest$ac_exeext'
! 20661: { (eval echo "$as_me:20661: \"$ac_try\"") >&5
! 20662: (eval $ac_try) 2>&5
! 20663: ac_status=$?
! 20664: echo "$as_me:20664: \$? = $ac_status" >&5
! 20665: (exit $ac_status); }; }; then
! 20666: eval "$as_ac_var=yes"
! 20667: else
! 20668: echo "$as_me: failed program was:" >&5
! 20669: cat conftest.$ac_ext >&5
! 20670: eval "$as_ac_var=no"
! 20671: fi
! 20672: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 20673: fi
! 20674: echo "$as_me:20674: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20675: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20676: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1.1.2 maekawa 20677: cat >>confdefs.h <<EOF
1.1.1.4 ! ohara 20678: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.2 maekawa 20679: EOF
1.1 maekawa 20680:
1.1.1.4 ! ohara 20681: else
! 20682: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1.1.2 maekawa 20683: fi
20684: done
1.1 maekawa 20685:
1.1.1.4 ! ohara 20686: case $host in
! 20687: alpha*-*-*)
! 20688: saved_CFLAGS="$CFLAGS"
! 20689: echo "$as_me:20689: checking for IEEE-754 switches" >&5
! 20690: echo $ECHO_N "checking for IEEE-754 switches... $ECHO_C" >&6
! 20691: if test "${mpfr_cv_ieee_switches+set}" = set; then
! 20692: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20693: else
1.1.1.4 ! ohara 20694:
! 20695: if test -n "$GCC"; then
! 20696: mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
! 20697: else
! 20698: mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
! 20699: fi
! 20700: CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
! 20701: cat >conftest.$ac_ext <<_ACEOF
! 20702: #line 20702 "configure"
1.1.1.2 maekawa 20703: #include "confdefs.h"
1.1.1.4 ! ohara 20704:
1.1.1.2 maekawa 20705: int
20706: main ()
20707: {
1.1.1.4 ! ohara 20708:
1.1.1.2 maekawa 20709: ;
20710: return 0;
20711: }
1.1.1.4 ! ohara 20712: _ACEOF
! 20713: rm -f conftest.$ac_objext
! 20714: if { (eval echo "$as_me:20714: \"$ac_compile\"") >&5
! 20715: (eval $ac_compile) 2>&5
! 20716: ac_status=$?
! 20717: echo "$as_me:20717: \$? = $ac_status" >&5
! 20718: (exit $ac_status); } &&
! 20719: { ac_try='test -s conftest.$ac_objext'
! 20720: { (eval echo "$as_me:20720: \"$ac_try\"") >&5
! 20721: (eval $ac_try) 2>&5
! 20722: ac_status=$?
! 20723: echo "$as_me:20723: \$? = $ac_status" >&5
! 20724: (exit $ac_status); }; }; then
! 20725: :
! 20726: else
! 20727: echo "$as_me: failed program was:" >&5
! 20728: cat conftest.$ac_ext >&5
! 20729: mpfr_cv_ieee_switches="none"
! 20730: fi
! 20731: rm -f conftest.$ac_objext conftest.$ac_ext
! 20732:
! 20733: fi
! 20734: echo "$as_me:20734: result: $mpfr_cv_ieee_switches" >&5
! 20735: echo "${ECHO_T}$mpfr_cv_ieee_switches" >&6
! 20736: if test "$mpfr_cv_ieee_switches" = "none"; then
! 20737: CFLAGS="$saved_CFLAGS"
! 20738: else
! 20739: CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
! 20740: fi
! 20741: esac
! 20742:
! 20743: for ac_header in fpu_control.h
! 20744: do
! 20745: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 20746: echo "$as_me:20746: checking for $ac_header" >&5
! 20747: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 20748: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 20749: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20750: else
! 20751: cat >conftest.$ac_ext <<_ACEOF
! 20752: #line 20752 "configure"
! 20753: #include "confdefs.h"
! 20754: #include <$ac_header>
! 20755: _ACEOF
! 20756: if { (eval echo "$as_me:20756: \"$ac_cpp conftest.$ac_ext\"") >&5
! 20757: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 20758: ac_status=$?
! 20759: egrep -v '^ *\+' conftest.er1 >conftest.err
! 20760: rm -f conftest.er1
! 20761: cat conftest.err >&5
! 20762: echo "$as_me:20762: \$? = $ac_status" >&5
! 20763: (exit $ac_status); } >/dev/null; then
! 20764: if test -s conftest.err; then
! 20765: ac_cpp_err=$ac_c_preproc_warn_flag
! 20766: else
! 20767: ac_cpp_err=
! 20768: fi
1.1.1.2 maekawa 20769: else
1.1.1.4 ! ohara 20770: ac_cpp_err=yes
! 20771: fi
! 20772: if test -z "$ac_cpp_err"; then
! 20773: eval "$as_ac_Header=yes"
! 20774: else
! 20775: echo "$as_me: failed program was:" >&5
1.1.1.2 maekawa 20776: cat conftest.$ac_ext >&5
1.1.1.4 ! ohara 20777: eval "$as_ac_Header=no"
1.1.1.2 maekawa 20778: fi
1.1.1.4 ! ohara 20779: rm -f conftest.err conftest.$ac_ext
1.1.1.2 maekawa 20780: fi
1.1.1.4 ! ohara 20781: echo "$as_me:20781: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 20782: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 20783: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.1.1.2 maekawa 20784: cat >>confdefs.h <<EOF
1.1.1.4 ! ohara 20785: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.2 maekawa 20786: EOF
1.1 maekawa 20787:
1.1.1.2 maekawa 20788: fi
1.1.1.4 ! ohara 20789: done
1.1 maekawa 20790:
1.1.1.4 ! ohara 20791: echo "$as_me:20791: checking for fesetround" >&5
! 20792: echo $ECHO_N "checking for fesetround... $ECHO_C" >&6
! 20793: if test "${mpfr_cv_have_fesetround+set}" = set; then
! 20794: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20795: else
1.1 maekawa 20796:
1.1.1.4 ! ohara 20797: saved_LIBS="$LIBS"
! 20798: LIBS="$LIBS $LM9X"
! 20799: cat >conftest.$ac_ext <<_ACEOF
! 20800: #line 20800 "configure"
1.1.1.2 maekawa 20801: #include "confdefs.h"
1.1.1.4 ! ohara 20802: #include <fenv.h>
! 20803: int
! 20804: main ()
! 20805: {
! 20806: fesetround(FE_TONEAREST);
! 20807: ;
! 20808: return 0;
! 20809: }
! 20810: _ACEOF
! 20811: rm -f conftest.$ac_objext conftest$ac_exeext
! 20812: if { (eval echo "$as_me:20812: \"$ac_link\"") >&5
! 20813: (eval $ac_link) 2>&5
! 20814: ac_status=$?
! 20815: echo "$as_me:20815: \$? = $ac_status" >&5
! 20816: (exit $ac_status); } &&
! 20817: { ac_try='test -s conftest$ac_exeext'
! 20818: { (eval echo "$as_me:20818: \"$ac_try\"") >&5
! 20819: (eval $ac_try) 2>&5
! 20820: ac_status=$?
! 20821: echo "$as_me:20821: \$? = $ac_status" >&5
! 20822: (exit $ac_status); }; }; then
! 20823: mpfr_cv_have_fesetround=yes
1.1.1.2 maekawa 20824: else
1.1.1.4 ! ohara 20825: echo "$as_me: failed program was:" >&5
! 20826: cat conftest.$ac_ext >&5
! 20827: mpfr_cv_have_fesetround=no
1.1.1.2 maekawa 20828: fi
1.1.1.4 ! ohara 20829: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 20830: LIBS="$saved_LIBS"
1.1 maekawa 20831:
1.1.1.2 maekawa 20832: fi
1.1.1.4 ! ohara 20833: echo "$as_me:20833: result: $mpfr_cv_have_fesetround" >&5
! 20834: echo "${ECHO_T}$mpfr_cv_have_fesetround" >&6
! 20835: if test "$mpfr_cv_have_fesetround" = "yes"; then
! 20836: LIBS="$LIBS $LM9X"
1.1 maekawa 20837:
1.1.1.4 ! ohara 20838: cat >>confdefs.h <<\EOF
! 20839: #define MPFR_HAVE_FESETROUND 1
1.1.1.2 maekawa 20840: EOF
1.1 maekawa 20841:
1.1.1.2 maekawa 20842: fi
20843:
1.1.1.4 ! ohara 20844: for ac_func in lrand48
1.1.1.2 maekawa 20845: do
1.1.1.4 ! ohara 20846: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20847: echo "$as_me:20847: checking for $ac_func" >&5
! 20848: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20849: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 20850: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20851: else
1.1.1.4 ! ohara 20852: cat >conftest.$ac_ext <<_ACEOF
! 20853: #line 20853 "configure"
1.1.1.2 maekawa 20854: #include "confdefs.h"
20855: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.4 ! ohara 20856: which can conflict with char $ac_func (); below. */
1.1.1.2 maekawa 20857: #include <assert.h>
20858: /* Override any gcc2 internal prototype to avoid an error. */
1.1.1.4 ! ohara 20859: #ifdef __cplusplus
! 20860: extern "C"
! 20861: #endif
1.1.1.2 maekawa 20862: /* We use char because int might match the return type of a gcc2
1.1.1.4 ! ohara 20863: builtin and then its argument prototype would still apply. */
! 20864: char $ac_func ();
! 20865: char (*f) ();
1.1.1.2 maekawa 20866:
20867: int
1.1.1.4 ! ohara 20868: main ()
1.1.1.2 maekawa 20869: {
20870: /* The GNU C library defines this for functions which it implements
20871: to always fail with ENOSYS. Some functions are actually named
20872: something starting with __ and the normal name is an alias. */
20873: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20874: choke me
20875: #else
20876: f = $ac_func;
20877: #endif
20878:
20879: ;
20880: return 0;
20881: }
1.1.1.4 ! ohara 20882: _ACEOF
! 20883: rm -f conftest.$ac_objext conftest$ac_exeext
! 20884: if { (eval echo "$as_me:20884: \"$ac_link\"") >&5
! 20885: (eval $ac_link) 2>&5
! 20886: ac_status=$?
! 20887: echo "$as_me:20887: \$? = $ac_status" >&5
! 20888: (exit $ac_status); } &&
! 20889: { ac_try='test -s conftest$ac_exeext'
! 20890: { (eval echo "$as_me:20890: \"$ac_try\"") >&5
! 20891: (eval $ac_try) 2>&5
! 20892: ac_status=$?
! 20893: echo "$as_me:20893: \$? = $ac_status" >&5
! 20894: (exit $ac_status); }; }; then
! 20895: eval "$as_ac_var=yes"
! 20896: else
! 20897: echo "$as_me: failed program was:" >&5
! 20898: cat conftest.$ac_ext >&5
! 20899: eval "$as_ac_var=no"
! 20900: fi
! 20901: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 20902: fi
! 20903: echo "$as_me:20903: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20904: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20905: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1.1.2 maekawa 20906: cat >>confdefs.h <<EOF
1.1.1.4 ! ohara 20907: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.2 maekawa 20908: EOF
1.1 maekawa 20909:
1.1.1.2 maekawa 20910: fi
20911: done
1.1 maekawa 20912:
1.1.1.4 ! ohara 20913: echo "$as_me:20913: checking for valid NaN" >&5
! 20914: echo $ECHO_N "checking for valid NaN... $ECHO_C" >&6
! 20915: if test "${mpfr_cv_valid_nan+set}" = set; then
! 20916: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 maekawa 20917: else
1.1 maekawa 20918:
1.1.1.4 ! ohara 20919: if test "$cross_compiling" = yes; then
! 20920: mpfr_cv_valid_nan=no
1.1 maekawa 20921: else
1.1.1.4 ! ohara 20922: cat >conftest.$ac_ext <<_ACEOF
! 20923: #line 20923 "configure"
1.1.1.2 maekawa 20924: #include "confdefs.h"
20925:
1.1.1.4 ! ohara 20926: #include <math.h>
! 20927: int main()
! 20928: {
! 20929: double x = (0.0/0.0) + sqrt(-1.0);
! 20930: return x == 1.0/0.0;
! 20931: }
! 20932:
! 20933: _ACEOF
! 20934: rm -f conftest$ac_exeext
! 20935: if { (eval echo "$as_me:20935: \"$ac_link\"") >&5
! 20936: (eval $ac_link) 2>&5
! 20937: ac_status=$?
! 20938: echo "$as_me:20938: \$? = $ac_status" >&5
! 20939: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 20940: { (eval echo "$as_me:20940: \"$ac_try\"") >&5
! 20941: (eval $ac_try) 2>&5
! 20942: ac_status=$?
! 20943: echo "$as_me:20943: \$? = $ac_status" >&5
! 20944: (exit $ac_status); }; }; then
! 20945: mpfr_cv_valid_nan=yes
1.1.1.2 maekawa 20946: else
1.1.1.4 ! ohara 20947: echo "$as_me: program exited with status $ac_status" >&5
! 20948: echo "$as_me: failed program was:" >&5
! 20949: cat conftest.$ac_ext >&5
! 20950: mpfr_cv_valid_nan=no
! 20951: fi
! 20952: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 maekawa 20953: fi
20954:
1.1.1.4 ! ohara 20955: fi
! 20956: echo "$as_me:20956: result: $mpfr_cv_valid_nan" >&5
! 20957: echo "${ECHO_T}$mpfr_cv_valid_nan" >&6
! 20958: if test "$mpfr_cv_valid_nan" = "yes"; then
1.1 maekawa 20959:
1.1.1.4 ! ohara 20960: cat >>confdefs.h <<\EOF
! 20961: #define HAVE_INFS 1
1.1.1.2 maekawa 20962: EOF
1.1 maekawa 20963:
1.1.1.2 maekawa 20964: fi
1.1 maekawa 20965:
1.1.1.4 ! ohara 20966: if test -n "$GCC"; then
! 20967: echo "$as_me:20967: checking for gcc float-conversion bug" >&5
! 20968: echo $ECHO_N "checking for gcc float-conversion bug... $ECHO_C" >&6
! 20969: if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then
! 20970: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20971: else
1.1 maekawa 20972:
1.1.1.4 ! ohara 20973: if test "$cross_compiling" = yes; then
! 20974: mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
! 20975: else
! 20976: cat >conftest.$ac_ext <<_ACEOF
! 20977: #line 20977 "configure"
1.1.1.2 maekawa 20978: #include "confdefs.h"
20979:
1.1.1.4 ! ohara 20980: #include <float.h>
! 20981: #ifdef MPFR_HAVE_FESETROUND
! 20982: #include <fenv.h>
! 20983: #endif
! 20984: int main()
! 20985: {
! 20986: double x = 0.5;
! 20987: int i;
! 20988: for (i = 1; i <= 11; i++)
! 20989: x *= x;
! 20990: if (x != 0)
! 20991: return 1;
! 20992: #ifdef MPFR_HAVE_FESETROUND
! 20993: /* Useful test for the G4 PowerPC */
! 20994: fesetround(FE_TOWARDZERO);
! 20995: x = DBL_MAX;
! 20996: x *= 2.0;
! 20997: if (x != DBL_MAX)
! 20998: return 1;
! 20999: #endif
! 21000: return 0;
! 21001: }
! 21002:
! 21003: _ACEOF
! 21004: rm -f conftest$ac_exeext
! 21005: if { (eval echo "$as_me:21005: \"$ac_link\"") >&5
! 21006: (eval $ac_link) 2>&5
! 21007: ac_status=$?
! 21008: echo "$as_me:21008: \$? = $ac_status" >&5
! 21009: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 21010: { (eval echo "$as_me:21010: \"$ac_try\"") >&5
! 21011: (eval $ac_try) 2>&5
! 21012: ac_status=$?
! 21013: echo "$as_me:21013: \$? = $ac_status" >&5
! 21014: (exit $ac_status); }; }; then
! 21015: mpfr_cv_gcc_floatconv_bug="no"
! 21016: else
! 21017: echo "$as_me: program exited with status $ac_status" >&5
! 21018: echo "$as_me: failed program was:" >&5
! 21019: cat conftest.$ac_ext >&5
! 21020: mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
! 21021: fi
! 21022: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 maekawa 21023: fi
1.1 maekawa 21024:
1.1.1.2 maekawa 21025: fi
1.1.1.4 ! ohara 21026: echo "$as_me:21026: result: $mpfr_cv_gcc_floatconv_bug" >&5
! 21027: echo "${ECHO_T}$mpfr_cv_gcc_floatconv_bug" >&6
! 21028: if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
! 21029: CFLAGS="$CFLAGS -ffloat-store"
! 21030: fi
! 21031: fi
! 21032:
! 21033: echo "$as_me:21033: checking for denormalized numbers" >&5
! 21034: echo $ECHO_N "checking for denormalized numbers... $ECHO_C" >&6
! 21035: if test "${mpfr_cv_have_denorms+set}" = set; then
! 21036: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21037: else
1.1 maekawa 21038:
1.1.1.2 maekawa 21039: if test "$cross_compiling" = yes; then
1.1.1.4 ! ohara 21040: mpfr_cv_have_denorms=no
1.1.1.2 maekawa 21041: else
1.1.1.4 ! ohara 21042: cat >conftest.$ac_ext <<_ACEOF
! 21043: #line 21043 "configure"
1.1.1.2 maekawa 21044: #include "confdefs.h"
21045:
1.1.1.4 ! ohara 21046: #include <math.h>
! 21047: #include <stdio.h>
! 21048: int main()
1.1.1.2 maekawa 21049: {
1.1.1.4 ! ohara 21050: double x = 2.22507385850720138309e-308;
! 21051: fprintf (stderr, "%e\n", x / 2.0);
! 21052: return 2.0 * (x / 2.0) != x;
1.1.1.2 maekawa 21053: }
1.1.1.4 ! ohara 21054:
! 21055: _ACEOF
! 21056: rm -f conftest$ac_exeext
! 21057: if { (eval echo "$as_me:21057: \"$ac_link\"") >&5
! 21058: (eval $ac_link) 2>&5
! 21059: ac_status=$?
! 21060: echo "$as_me:21060: \$? = $ac_status" >&5
! 21061: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 21062: { (eval echo "$as_me:21062: \"$ac_try\"") >&5
! 21063: (eval $ac_try) 2>&5
! 21064: ac_status=$?
! 21065: echo "$as_me:21065: \$? = $ac_status" >&5
! 21066: (exit $ac_status); }; }; then
! 21067: mpfr_cv_have_denorms=yes
1.1 maekawa 21068: else
1.1.1.4 ! ohara 21069: echo "$as_me: program exited with status $ac_status" >&5
! 21070: echo "$as_me: failed program was:" >&5
! 21071: cat conftest.$ac_ext >&5
! 21072: mpfr_cv_have_denorms=no
1.1 maekawa 21073: fi
1.1.1.4 ! ohara 21074: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.2 maekawa 21075: fi
1.1 maekawa 21076:
1.1.1.2 maekawa 21077: fi
1.1.1.4 ! ohara 21078: echo "$as_me:21078: result: $mpfr_cv_have_denorms" >&5
! 21079: echo "${ECHO_T}$mpfr_cv_have_denorms" >&6
! 21080: if test "$mpfr_cv_have_denorms" = "yes"; then
! 21081:
! 21082: cat >>confdefs.h <<\EOF
! 21083: #define HAVE_DENORMS 1
1.1.1.2 maekawa 21084: EOF
1.1 maekawa 21085:
1.1.1.2 maekawa 21086: fi
1.1 maekawa 21087:
1.1.1.4 ! ohara 21088: MPFR_CFLAGS=$CFLAGS
1.1 maekawa 21089:
1.1.1.4 ! ohara 21090: MPFR_LIBS=$LIBS
1.1.1.2 maekawa 21091:
1.1.1.4 ! ohara 21092: CFLAGS=$gmp_CFLAGS
! 21093: LIBS=$gmp_LIBS
1.1 maekawa 21094: fi
21095:
1.1.1.4 ! ohara 21096: # A recompiled sqr_basecase for use in the tune program, if necessary.
! 21097: TUNE_SQR_OBJ=
! 21098: test -d tune || mkdir tune
! 21099: case $sqr_basecase_source in
! 21100: *.asm)
! 21101: sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
! 21102: if test -n "$sqr_max"; then
! 21103: TUNE_SQR_OBJ=sqr_asm.o
1.1 maekawa 21104:
1.1.1.4 ! ohara 21105: cat >>confdefs.h <<EOF
! 21106: #define TUNE_SQR_KARATSUBA_MAX $sqr_max
! 21107: EOF
1.1 maekawa 21108:
1.1.1.4 ! ohara 21109: fi
! 21110: cat >tune/sqr_basecase.c <<EOF
! 21111: /* not sure that an empty file can compile, so put in a dummy */
! 21112: int sqr_basecase_dummy;
! 21113: EOF
1.1.1.2 maekawa 21114: ;;
1.1.1.4 ! ohara 21115: *.c)
! 21116: TUNE_SQR_OBJ=
! 21117: cat >>confdefs.h <<\EOF
! 21118: #define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
! 21119: EOF
! 21120:
! 21121: cat >tune/sqr_basecase.c <<EOF
! 21122: #define TUNE_PROGRAM_BUILD 1
! 21123: #define TUNE_PROGRAM_BUILD_SQR 1
! 21124: #include "mpn/sqr_basecase.c"
! 21125: EOF
1.1.1.2 maekawa 21126: ;;
21127: esac
1.1 maekawa 21128:
1.1.1.4 ! ohara 21129: # Configs for demos/pexpr.c.
! 21130: #
! 21131: ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
! 21132:
! 21133: case $ac_cv_func_clock in
! 21134: yes) HAVE_CLOCK_01=1
! 21135: ;;
! 21136: no) HAVE_CLOCK_01=0 ;;
1.1.1.2 maekawa 21137: esac
21138:
1.1.1.4 ! ohara 21139: case $ac_cv_func_cputime in
! 21140: yes) HAVE_CPUTIME_01=1
! 21141: ;;
! 21142: no) HAVE_CPUTIME_01=0 ;;
! 21143: esac
1.1.1.2 maekawa 21144:
1.1.1.4 ! ohara 21145: case $ac_cv_func_getrusage in
! 21146: yes) HAVE_GETRUSAGE_01=1
! 21147: ;;
! 21148: no) HAVE_GETRUSAGE_01=0 ;;
! 21149: esac
1.1.1.2 maekawa 21150:
1.1.1.4 ! ohara 21151: case $ac_cv_func_gettimeofday in
! 21152: yes) HAVE_GETTIMEOFDAY_01=1
! 21153: ;;
! 21154: no) HAVE_GETTIMEOFDAY_01=0 ;;
! 21155: esac
1.1.1.2 maekawa 21156:
1.1.1.4 ! ohara 21157: case $ac_cv_func_sigaction in
! 21158: yes) HAVE_SIGACTION_01=1
! 21159: ;;
! 21160: no) HAVE_SIGACTION_01=0 ;;
! 21161: esac
! 21162:
! 21163: case $ac_cv_func_sigaltstack in
! 21164: yes) HAVE_SIGALTSTACK_01=1
! 21165: ;;
! 21166: no) HAVE_SIGALTSTACK_01=0 ;;
! 21167: esac
! 21168:
! 21169: case $ac_cv_func_sigstack in
! 21170: yes) HAVE_SIGSTACK_01=1
! 21171: ;;
! 21172: no) HAVE_SIGSTACK_01=0 ;;
! 21173: esac
1.1.1.2 maekawa 21174:
1.1.1.4 ! ohara 21175: case $ac_cv_header_sys_resource_h in
! 21176: yes) HAVE_SYS_RESOURCE_H_01=1
1.1.1.2 maekawa 21177: ;;
1.1.1.4 ! ohara 21178: no) HAVE_SYS_RESOURCE_H_01=0 ;;
1.1.1.2 maekawa 21179: esac
21180:
1.1.1.4 ! ohara 21181: echo "$as_me:21181: checking for stack_t" >&5
! 21182: echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
! 21183: if test "${ac_cv_type_stack_t+set}" = set; then
! 21184: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21185: else
! 21186: cat >conftest.$ac_ext <<_ACEOF
! 21187: #line 21187 "configure"
! 21188: #include "confdefs.h"
! 21189: #include <signal.h>
1.1.1.2 maekawa 21190:
1.1.1.4 ! ohara 21191: int
! 21192: main ()
! 21193: {
! 21194: if ((stack_t *) 0)
! 21195: return 0;
! 21196: if (sizeof (stack_t))
! 21197: return 0;
! 21198: ;
! 21199: return 0;
! 21200: }
! 21201: _ACEOF
! 21202: rm -f conftest.$ac_objext
! 21203: if { (eval echo "$as_me:21203: \"$ac_compile\"") >&5
! 21204: (eval $ac_compile) 2>&5
! 21205: ac_status=$?
! 21206: echo "$as_me:21206: \$? = $ac_status" >&5
! 21207: (exit $ac_status); } &&
! 21208: { ac_try='test -s conftest.$ac_objext'
! 21209: { (eval echo "$as_me:21209: \"$ac_try\"") >&5
! 21210: (eval $ac_try) 2>&5
! 21211: ac_status=$?
! 21212: echo "$as_me:21212: \$? = $ac_status" >&5
! 21213: (exit $ac_status); }; }; then
! 21214: ac_cv_type_stack_t=yes
! 21215: else
! 21216: echo "$as_me: failed program was:" >&5
! 21217: cat conftest.$ac_ext >&5
! 21218: ac_cv_type_stack_t=no
! 21219: fi
! 21220: rm -f conftest.$ac_objext conftest.$ac_ext
! 21221: fi
! 21222: echo "$as_me:21222: result: $ac_cv_type_stack_t" >&5
! 21223: echo "${ECHO_T}$ac_cv_type_stack_t" >&6
! 21224: if test $ac_cv_type_stack_t = yes; then
1.1.1.2 maekawa 21225:
1.1.1.4 ! ohara 21226: cat >>confdefs.h <<EOF
! 21227: #define HAVE_STACK_T 1
! 21228: EOF
1.1.1.2 maekawa 21229:
1.1.1.4 ! ohara 21230: HAVE_STACK_T_01=1
! 21231: else
! 21232: HAVE_STACK_T_01=0
! 21233: fi
! 21234:
! 21235: # Configs for demos/calc directory
! 21236: #
! 21237: # AC_SUBST is used here since with AM_CONFIG_HEADER automake would put
! 21238: # demos/calc in the default $(DEFAULT_INCLUDES) for every directory,
! 21239: # which would look very strange. Likewise demos/expr below.
! 21240: #
! 21241: ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
! 21242:
! 21243: use_readline=$with_readline
! 21244: if test $with_readline = detect; then
! 21245: echo "$as_me:21245: checking for readline in -lreadline" >&5
! 21246: echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
! 21247: if test "${ac_cv_lib_readline_readline+set}" = set; then
! 21248: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21249: else
! 21250: ac_check_lib_save_LIBS=$LIBS
! 21251: LIBS="-lreadline $LIBS"
! 21252: cat >conftest.$ac_ext <<_ACEOF
! 21253: #line 21253 "configure"
! 21254: #include "confdefs.h"
! 21255:
! 21256: /* Override any gcc2 internal prototype to avoid an error. */
! 21257: #ifdef __cplusplus
! 21258: extern "C"
! 21259: #endif
! 21260: /* We use char because int might match the return type of a gcc2
! 21261: builtin and then its argument prototype would still apply. */
! 21262: char readline ();
! 21263: int
! 21264: main ()
! 21265: {
! 21266: readline ();
! 21267: ;
! 21268: return 0;
! 21269: }
! 21270: _ACEOF
! 21271: rm -f conftest.$ac_objext conftest$ac_exeext
! 21272: if { (eval echo "$as_me:21272: \"$ac_link\"") >&5
! 21273: (eval $ac_link) 2>&5
! 21274: ac_status=$?
! 21275: echo "$as_me:21275: \$? = $ac_status" >&5
! 21276: (exit $ac_status); } &&
! 21277: { ac_try='test -s conftest$ac_exeext'
! 21278: { (eval echo "$as_me:21278: \"$ac_try\"") >&5
! 21279: (eval $ac_try) 2>&5
! 21280: ac_status=$?
! 21281: echo "$as_me:21281: \$? = $ac_status" >&5
! 21282: (exit $ac_status); }; }; then
! 21283: ac_cv_lib_readline_readline=yes
! 21284: else
! 21285: echo "$as_me: failed program was:" >&5
! 21286: cat conftest.$ac_ext >&5
! 21287: ac_cv_lib_readline_readline=no
! 21288: fi
! 21289: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 21290: LIBS=$ac_check_lib_save_LIBS
! 21291: fi
! 21292: echo "$as_me:21292: result: $ac_cv_lib_readline_readline" >&5
! 21293: echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
! 21294: if test $ac_cv_lib_readline_readline = yes; then
! 21295: use_readline=yes
! 21296: fi
! 21297:
! 21298: fi
! 21299: if test $use_readline = yes; then
! 21300: WITH_READLINE_01=1
! 21301:
! 21302: LIBREADLINE=-lreadline
! 21303:
! 21304: else
! 21305: WITH_READLINE_01=0
! 21306: fi
! 21307: for ac_prog in 'bison -y' byacc
! 21308: do
! 21309: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 21310: set dummy $ac_prog; ac_word=$2
! 21311: echo "$as_me:21311: checking for $ac_word" >&5
! 21312: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 21313: if test "${ac_cv_prog_YACC+set}" = set; then
! 21314: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21315: else
! 21316: if test -n "$YACC"; then
! 21317: ac_cv_prog_YACC="$YACC" # Let the user override the test.
! 21318: else
! 21319: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 21320: ac_dummy="$PATH"
! 21321: for ac_dir in $ac_dummy; do
! 21322: IFS=$ac_save_IFS
! 21323: test -z "$ac_dir" && ac_dir=.
! 21324: $as_executable_p "$ac_dir/$ac_word" || continue
! 21325: ac_cv_prog_YACC="$ac_prog"
! 21326: echo "$as_me:21326: found $ac_dir/$ac_word" >&5
! 21327: break
! 21328: done
1.1 maekawa 21329:
1.1.1.4 ! ohara 21330: fi
! 21331: fi
! 21332: YACC=$ac_cv_prog_YACC
! 21333: if test -n "$YACC"; then
! 21334: echo "$as_me:21334: result: $YACC" >&5
! 21335: echo "${ECHO_T}$YACC" >&6
! 21336: else
! 21337: echo "$as_me:21337: result: no" >&5
! 21338: echo "${ECHO_T}no" >&6
! 21339: fi
1.1 maekawa 21340:
1.1.1.4 ! ohara 21341: test -n "$YACC" && break
! 21342: done
! 21343: test -n "$YACC" || YACC="yacc"
1.1 maekawa 21344:
1.1.1.4 ! ohara 21345: for ac_prog in flex lex
! 21346: do
! 21347: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 21348: set dummy $ac_prog; ac_word=$2
! 21349: echo "$as_me:21349: checking for $ac_word" >&5
! 21350: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 21351: if test "${ac_cv_prog_LEX+set}" = set; then
! 21352: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21353: else
! 21354: if test -n "$LEX"; then
! 21355: ac_cv_prog_LEX="$LEX" # Let the user override the test.
! 21356: else
! 21357: ac_save_IFS=$IFS; IFS=$ac_path_separator
! 21358: ac_dummy="$PATH"
! 21359: for ac_dir in $ac_dummy; do
! 21360: IFS=$ac_save_IFS
! 21361: test -z "$ac_dir" && ac_dir=.
! 21362: $as_executable_p "$ac_dir/$ac_word" || continue
! 21363: ac_cv_prog_LEX="$ac_prog"
! 21364: echo "$as_me:21364: found $ac_dir/$ac_word" >&5
! 21365: break
1.1.1.2 maekawa 21366: done
1.1 maekawa 21367:
1.1.1.4 ! ohara 21368: fi
! 21369: fi
! 21370: LEX=$ac_cv_prog_LEX
! 21371: if test -n "$LEX"; then
! 21372: echo "$as_me:21372: result: $LEX" >&5
! 21373: echo "${ECHO_T}$LEX" >&6
1.1.1.2 maekawa 21374: else
1.1.1.4 ! ohara 21375: echo "$as_me:21375: result: no" >&5
! 21376: echo "${ECHO_T}no" >&6
1.1 maekawa 21377: fi
21378:
1.1.1.4 ! ohara 21379: test -n "$LEX" && break
! 21380: done
! 21381: test -n "$LEX" || LEX=":"
1.1.1.2 maekawa 21382:
1.1.1.4 ! ohara 21383: if test -z "$LEXLIB"
! 21384: then
! 21385: echo "$as_me:21385: checking for yywrap in -lfl" >&5
! 21386: echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
! 21387: if test "${ac_cv_lib_fl_yywrap+set}" = set; then
! 21388: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21389: else
! 21390: ac_check_lib_save_LIBS=$LIBS
! 21391: LIBS="-lfl $LIBS"
! 21392: cat >conftest.$ac_ext <<_ACEOF
! 21393: #line 21393 "configure"
! 21394: #include "confdefs.h"
1.1.1.2 maekawa 21395:
1.1.1.4 ! ohara 21396: /* Override any gcc2 internal prototype to avoid an error. */
! 21397: #ifdef __cplusplus
! 21398: extern "C"
! 21399: #endif
! 21400: /* We use char because int might match the return type of a gcc2
! 21401: builtin and then its argument prototype would still apply. */
! 21402: char yywrap ();
! 21403: int
! 21404: main ()
! 21405: {
! 21406: yywrap ();
! 21407: ;
! 21408: return 0;
! 21409: }
! 21410: _ACEOF
! 21411: rm -f conftest.$ac_objext conftest$ac_exeext
! 21412: if { (eval echo "$as_me:21412: \"$ac_link\"") >&5
! 21413: (eval $ac_link) 2>&5
! 21414: ac_status=$?
! 21415: echo "$as_me:21415: \$? = $ac_status" >&5
! 21416: (exit $ac_status); } &&
! 21417: { ac_try='test -s conftest$ac_exeext'
! 21418: { (eval echo "$as_me:21418: \"$ac_try\"") >&5
! 21419: (eval $ac_try) 2>&5
! 21420: ac_status=$?
! 21421: echo "$as_me:21421: \$? = $ac_status" >&5
! 21422: (exit $ac_status); }; }; then
! 21423: ac_cv_lib_fl_yywrap=yes
! 21424: else
! 21425: echo "$as_me: failed program was:" >&5
! 21426: cat conftest.$ac_ext >&5
! 21427: ac_cv_lib_fl_yywrap=no
! 21428: fi
! 21429: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 21430: LIBS=$ac_check_lib_save_LIBS
! 21431: fi
! 21432: echo "$as_me:21432: result: $ac_cv_lib_fl_yywrap" >&5
! 21433: echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
! 21434: if test $ac_cv_lib_fl_yywrap = yes; then
! 21435: LEXLIB="-lfl"
! 21436: else
! 21437: echo "$as_me:21437: checking for yywrap in -ll" >&5
! 21438: echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
! 21439: if test "${ac_cv_lib_l_yywrap+set}" = set; then
! 21440: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21441: else
! 21442: ac_check_lib_save_LIBS=$LIBS
! 21443: LIBS="-ll $LIBS"
! 21444: cat >conftest.$ac_ext <<_ACEOF
! 21445: #line 21445 "configure"
! 21446: #include "confdefs.h"
1.1.1.2 maekawa 21447:
1.1.1.4 ! ohara 21448: /* Override any gcc2 internal prototype to avoid an error. */
! 21449: #ifdef __cplusplus
! 21450: extern "C"
! 21451: #endif
! 21452: /* We use char because int might match the return type of a gcc2
! 21453: builtin and then its argument prototype would still apply. */
! 21454: char yywrap ();
! 21455: int
! 21456: main ()
! 21457: {
! 21458: yywrap ();
! 21459: ;
! 21460: return 0;
! 21461: }
! 21462: _ACEOF
! 21463: rm -f conftest.$ac_objext conftest$ac_exeext
! 21464: if { (eval echo "$as_me:21464: \"$ac_link\"") >&5
! 21465: (eval $ac_link) 2>&5
! 21466: ac_status=$?
! 21467: echo "$as_me:21467: \$? = $ac_status" >&5
! 21468: (exit $ac_status); } &&
! 21469: { ac_try='test -s conftest$ac_exeext'
! 21470: { (eval echo "$as_me:21470: \"$ac_try\"") >&5
! 21471: (eval $ac_try) 2>&5
! 21472: ac_status=$?
! 21473: echo "$as_me:21473: \$? = $ac_status" >&5
! 21474: (exit $ac_status); }; }; then
! 21475: ac_cv_lib_l_yywrap=yes
! 21476: else
! 21477: echo "$as_me: failed program was:" >&5
! 21478: cat conftest.$ac_ext >&5
! 21479: ac_cv_lib_l_yywrap=no
! 21480: fi
! 21481: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 21482: LIBS=$ac_check_lib_save_LIBS
! 21483: fi
! 21484: echo "$as_me:21484: result: $ac_cv_lib_l_yywrap" >&5
! 21485: echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
! 21486: if test $ac_cv_lib_l_yywrap = yes; then
! 21487: LEXLIB="-ll"
! 21488: fi
1.1.1.2 maekawa 21489:
1.1.1.4 ! ohara 21490: fi
1.1.1.2 maekawa 21491:
1.1.1.4 ! ohara 21492: fi
1.1.1.2 maekawa 21493:
1.1.1.4 ! ohara 21494: if test "x$LEX" != "x:"; then
! 21495: echo "$as_me:21495: checking lex output file root" >&5
! 21496: echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
! 21497: if test "${ac_cv_prog_lex_root+set}" = set; then
! 21498: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21499: else
! 21500: # The minimal lex program is just a single line: %%. But some broken lexes
! 21501: # (Solaris, I think it was) want two %% lines, so accommodate them.
! 21502: echo '%%
! 21503: %%' | $LEX
! 21504: if test -f lex.yy.c; then
! 21505: ac_cv_prog_lex_root=lex.yy
! 21506: elif test -f lexyy.c; then
! 21507: ac_cv_prog_lex_root=lexyy
! 21508: else
! 21509: { { echo "$as_me:21509: error: cannot find output from $LEX; giving up" >&5
! 21510: echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
! 21511: { (exit 1); exit 1; }; }
! 21512: fi
! 21513: fi
! 21514: echo "$as_me:21514: result: $ac_cv_prog_lex_root" >&5
! 21515: echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
! 21516: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1.1.1.2 maekawa 21517:
1.1.1.4 ! ohara 21518: echo "$as_me:21518: checking whether yytext is a pointer" >&5
! 21519: echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
! 21520: if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
! 21521: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21522: else
! 21523: # POSIX says lex can declare yytext either as a pointer or an array; the
! 21524: # default is implementation-dependent. Figure out which it is, since
! 21525: # not all implementations provide the %pointer and %array declarations.
! 21526: ac_cv_prog_lex_yytext_pointer=no
! 21527: echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
! 21528: ac_save_LIBS=$LIBS
! 21529: LIBS="$LIBS $LEXLIB"
! 21530: cat >conftest.$ac_ext <<_ACEOF
! 21531: `cat $LEX_OUTPUT_ROOT.c`
! 21532: _ACEOF
! 21533: rm -f conftest.$ac_objext conftest$ac_exeext
! 21534: if { (eval echo "$as_me:21534: \"$ac_link\"") >&5
! 21535: (eval $ac_link) 2>&5
! 21536: ac_status=$?
! 21537: echo "$as_me:21537: \$? = $ac_status" >&5
! 21538: (exit $ac_status); } &&
! 21539: { ac_try='test -s conftest$ac_exeext'
! 21540: { (eval echo "$as_me:21540: \"$ac_try\"") >&5
! 21541: (eval $ac_try) 2>&5
! 21542: ac_status=$?
! 21543: echo "$as_me:21543: \$? = $ac_status" >&5
! 21544: (exit $ac_status); }; }; then
! 21545: ac_cv_prog_lex_yytext_pointer=yes
! 21546: else
! 21547: echo "$as_me: failed program was:" >&5
! 21548: cat conftest.$ac_ext >&5
! 21549: fi
! 21550: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 21551: LIBS=$ac_save_LIBS
! 21552: rm -f "${LEX_OUTPUT_ROOT}.c"
1.1.1.2 maekawa 21553:
1.1.1.4 ! ohara 21554: fi
! 21555: echo "$as_me:21555: result: $ac_cv_prog_lex_yytext_pointer" >&5
! 21556: echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
! 21557: if test $ac_cv_prog_lex_yytext_pointer = yes; then
1.1.1.2 maekawa 21558:
1.1.1.4 ! ohara 21559: cat >>confdefs.h <<\EOF
! 21560: #define YYTEXT_POINTER 1
1.1.1.2 maekawa 21561: EOF
21562:
1.1.1.4 ! ohara 21563: fi
1.1.1.2 maekawa 21564:
1.1.1.4 ! ohara 21565: fi
1.1 maekawa 21566:
1.1.1.4 ! ohara 21567: if test "$LEX" = :; then
! 21568: LEX=${am_missing_run}flex
! 21569: fi
1.1 maekawa 21570:
1.1.1.4 ! ohara 21571: # Configs for demos/expr directory
! 21572: ac_config_files="$ac_config_files demos/expr/expr-config.h:demos/expr/expr-config-h.in"
1.1.1.2 maekawa 21573:
1.1.1.4 ! ohara 21574: if test $enable_mpfr = yes; then
! 21575: HAVE_MPFR_01=1
1.1.1.2 maekawa 21576:
1.1.1.4 ! ohara 21577: else
! 21578: HAVE_MPFR_01=0
! 21579: fi
! 21580: if test $ac_cv_have_decl_optarg = yes; then
! 21581: HAVE_DECL_OPTARG=1
1.1.1.2 maekawa 21582:
1.1.1.4 ! ohara 21583: else
! 21584: HAVE_DECL_OPTARG=0
! 21585: fi
1.1 maekawa 21586:
1.1.1.4 ! ohara 21587: # Create config.m4.
1.1.1.2 maekawa 21588:
21589: echo "creating $gmp_configm4"
1.1.1.4 ! ohara 21590: echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
1.1.1.2 maekawa 21591: if test -f $gmp_tmpconfigm4; then
1.1.1.4 ! ohara 21592: echo "changequote(<,>)" >> $gmp_configm4
1.1.1.2 maekawa 21593: echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
21594: cat $gmp_tmpconfigm4 >> $gmp_configm4
21595: echo ">)" >> $gmp_configm4
1.1.1.4 ! ohara 21596: echo "changequote(\`,')" >> $gmp_configm4
1.1.1.2 maekawa 21597: rm $gmp_tmpconfigm4
21598: fi
21599: echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
21600: if test -f $gmp_tmpconfigm4i; then
21601: cat $gmp_tmpconfigm4i >> $gmp_configm4
21602: rm $gmp_tmpconfigm4i
21603: fi
21604: if test -f $gmp_tmpconfigm4p; then
21605: cat $gmp_tmpconfigm4p >> $gmp_configm4
21606: rm $gmp_tmpconfigm4p
21607: fi
21608: echo "')" >> $gmp_configm4
21609: echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
21610:
1.1.1.4 ! ohara 21611: # Create Makefiles
! 21612: # FIXME: Upcoming version of autoconf/automake may not like broken lines.
! 21613: # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
! 21614:
! 21615: ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile mpfr/Makefile mpfr/tests/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
! 21616: cat >confcache <<\_ACEOF
1.1.1.2 maekawa 21617: # This file is a shell script that caches the results of configure
21618: # tests run on this system so they can be shared between configure
1.1.1.4 ! ohara 21619: # scripts and configure runs, see configure's option --config-cache.
! 21620: # It is not useful on other systems. If it contains results you don't
! 21621: # want to keep, you may remove or edit it.
1.1.1.2 maekawa 21622: #
1.1.1.4 ! ohara 21623: # config.status only pays attention to the cache file if you give it
! 21624: # the --recheck option to rerun configure.
1.1.1.2 maekawa 21625: #
1.1.1.4 ! ohara 21626: # `ac_cv_env_foo' variables (set or unset) will be overriden when
! 21627: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 21628: # following values.
! 21629:
! 21630: _ACEOF
! 21631:
1.1.1.2 maekawa 21632: # The following way of writing the cache mishandles newlines in values,
21633: # but we know of no workaround that is simple, portable, and efficient.
21634: # So, don't put newlines in cache variables' values.
21635: # Ultrix sh set writes to stderr and can't be redirected directly,
21636: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.4 ! ohara 21637: {
! 21638: (set) 2>&1 |
! 21639: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 21640: *ac_space=\ *)
! 21641: # `set' does not quote correctly, so add quotes (double-quote
! 21642: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 21643: sed -n \
! 21644: "s/'/'\\\\''/g;
! 21645: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 21646: ;;
! 21647: *)
! 21648: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 21649: sed -n \
! 21650: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 21651: ;;
! 21652: esac;
! 21653: } |
! 21654: sed '
! 21655: t clear
! 21656: : clear
! 21657: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 21658: t end
! 21659: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 21660: : end' >>confcache
1.1.1.2 maekawa 21661: if cmp -s $cache_file confcache; then :; else
21662: if test -w $cache_file; then
1.1.1.4 ! ohara 21663: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.1.1.2 maekawa 21664: cat confcache >$cache_file
21665: else
21666: echo "not updating unwritable cache $cache_file"
1.1 maekawa 21667: fi
1.1.1.2 maekawa 21668: fi
21669: rm -f confcache
21670:
21671: test "x$prefix" = xNONE && prefix=$ac_default_prefix
21672: # Let make expand exec_prefix.
21673: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21674:
1.1.1.4 ! ohara 21675: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 21676: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 21677: # trailing colons and then remove the whole line if VPATH becomes empty
! 21678: # (actually we leave an empty line to preserve line numbers).
1.1.1.2 maekawa 21679: if test "x$srcdir" = x.; then
1.1.1.4 ! ohara 21680: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 21681: s/:*\$(srcdir):*/:/;
! 21682: s/:*\${srcdir}:*/:/;
! 21683: s/:*@srcdir@:*/:/;
! 21684: s/^\([^=]*=[ ]*\):*/\1/;
! 21685: s/:*$//;
! 21686: s/^[^=]*=[ ]*$//;
! 21687: }'
1.1 maekawa 21688: fi
21689:
1.1.1.2 maekawa 21690: DEFS=-DHAVE_CONFIG_H
1.1 maekawa 21691:
1.1.1.2 maekawa 21692: : ${CONFIG_STATUS=./config.status}
1.1.1.4 ! ohara 21693: ac_clean_files_save=$ac_clean_files
! 21694: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 21695: { echo "$as_me:21695: creating $CONFIG_STATUS" >&5
! 21696: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 21697: cat >$CONFIG_STATUS <<_ACEOF
! 21698: #! $SHELL
1.1.1.2 maekawa 21699: # Generated automatically by configure.
21700: # Run this file to recreate the current configuration.
21701: # Compiler output produced by configure, useful for debugging
1.1.1.4 ! ohara 21702: # configure, is in config.log if it exists.
! 21703:
! 21704: debug=false
! 21705: SHELL=\${CONFIG_SHELL-$SHELL}
! 21706: ac_cs_invocation="\$0 \$@"
! 21707:
! 21708: _ACEOF
! 21709:
! 21710: cat >>$CONFIG_STATUS <<\_ACEOF
! 21711: # Be Bourne compatible
! 21712: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 21713: emulate sh
! 21714: NULLCMD=:
! 21715: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 21716: set -o posix
! 21717: fi
! 21718:
! 21719: # Name of the executable.
! 21720: as_me=`echo "$0" |sed 's,.*[\\/],,'`
! 21721:
! 21722: if expr a : '\(a\)' >/dev/null 2>&1; then
! 21723: as_expr=expr
! 21724: else
! 21725: as_expr=false
! 21726: fi
! 21727:
! 21728: rm -f conf$$ conf$$.exe conf$$.file
! 21729: echo >conf$$.file
! 21730: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 21731: # We could just check for DJGPP; but this test a) works b) is more generic
! 21732: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 21733: if test -f conf$$.exe; then
! 21734: # Don't use ln at all; we don't have any links
! 21735: as_ln_s='cp -p'
! 21736: else
! 21737: as_ln_s='ln -s'
! 21738: fi
! 21739: elif ln conf$$.file conf$$ 2>/dev/null; then
! 21740: as_ln_s=ln
! 21741: else
! 21742: as_ln_s='cp -p'
! 21743: fi
! 21744: rm -f conf$$ conf$$.exe conf$$.file
! 21745:
! 21746: as_executable_p="test -f"
! 21747:
! 21748: # Support unset when possible.
! 21749: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 21750: as_unset=unset
! 21751: else
! 21752: as_unset=false
! 21753: fi
! 21754:
! 21755: # NLS nuisances.
! 21756: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
! 21757: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
! 21758: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
! 21759: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
! 21760: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
! 21761: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
! 21762: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
! 21763: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
! 21764:
! 21765: # IFS
! 21766: # We need space, tab and new line, in precisely that order.
! 21767: as_nl='
! 21768: '
! 21769: IFS=" $as_nl"
! 21770:
! 21771: # CDPATH.
! 21772: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
! 21773:
! 21774: exec 6>&1
! 21775:
! 21776: _ACEOF
1.1 maekawa 21777:
1.1.1.2 maekawa 21778: # Files that config.status was made for.
1.1.1.4 ! ohara 21779: if test -n "$ac_config_files"; then
! 21780: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 21781: fi
! 21782:
! 21783: if test -n "$ac_config_headers"; then
! 21784: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 21785: fi
! 21786:
! 21787: if test -n "$ac_config_links"; then
! 21788: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 21789: fi
! 21790:
! 21791: if test -n "$ac_config_commands"; then
! 21792: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 21793: fi
! 21794:
! 21795: cat >>$CONFIG_STATUS <<\EOF
1.1.1.2 maekawa 21796:
1.1.1.4 ! ohara 21797: ac_cs_usage="\
! 21798: \`$as_me' instantiates files from templates according to the
1.1.1.2 maekawa 21799: current configuration.
21800:
1.1.1.4 ! ohara 21801: Usage: $0 [OPTIONS] [FILE]...
1.1.1.2 maekawa 21802:
1.1.1.4 ! ohara 21803: -h, --help print this help, then exit
! 21804: -V, --version print version number, then exit
! 21805: -d, --debug don't remove temporary files
! 21806: --recheck update $as_me by reconfiguring in the same conditions
1.1.1.2 maekawa 21807: --file=FILE[:TEMPLATE]
1.1.1.4 ! ohara 21808: instantiate the configuration file FILE
1.1.1.2 maekawa 21809: --header=FILE[:TEMPLATE]
1.1.1.4 ! ohara 21810: instantiate the configuration header FILE
1.1.1.2 maekawa 21811:
21812: Configuration files:
1.1.1.4 ! ohara 21813: $config_files
1.1.1.2 maekawa 21814:
21815: Configuration headers:
1.1.1.4 ! ohara 21816: $config_headers
1.1.1.2 maekawa 21817:
21818: Configuration links:
1.1.1.4 ! ohara 21819: $config_links
1.1.1.2 maekawa 21820:
21821: Configuration commands:
1.1.1.4 ! ohara 21822: $config_commands
1.1.1.2 maekawa 21823:
21824: Report bugs to <bug-autoconf@gnu.org>."
1.1.1.4 ! ohara 21825: EOF
1.1.1.2 maekawa 21826:
1.1.1.4 ! ohara 21827: cat >>$CONFIG_STATUS <<EOF
1.1.1.2 maekawa 21828: ac_cs_version="\\
1.1.1.4 ! ohara 21829: config.status
! 21830: configured by $0, generated by GNU Autoconf 2.52,
! 21831: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
! 21832:
! 21833: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 21834: Free Software Foundation, Inc.
! 21835: This config.status script is free software; the Free Software Foundation
! 21836: gives unlimited permission to copy, distribute and modify it."
! 21837: srcdir=$srcdir
! 21838: INSTALL="$INSTALL"
! 21839: EOF
1.1.1.2 maekawa 21840:
1.1.1.4 ! ohara 21841: cat >>$CONFIG_STATUS <<\EOF
1.1.1.2 maekawa 21842: # If no file are specified by the user, then we need to provide default
21843: # value. By we need to know if files were specified by the user.
21844: ac_need_defaults=:
1.1.1.4 ! ohara 21845: while test $# != 0
1.1.1.2 maekawa 21846: do
1.1.1.4 ! ohara 21847: case $1 in
1.1.1.2 maekawa 21848: --*=*)
1.1.1.4 ! ohara 21849: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 21850: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.1.1.2 maekawa 21851: shift
1.1.1.4 ! ohara 21852: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1.1.1.2 maekawa 21853: shift
21854: ;;
21855: -*);;
21856: *) # This is not an option, so the user has probably given explicit
21857: # arguments.
21858: ac_need_defaults=false;;
21859: esac
21860:
1.1.1.4 ! ohara 21861: case $1 in
1.1.1.2 maekawa 21862: # Handling of the options.
1.1.1.4 ! ohara 21863: EOF
! 21864: cat >>$CONFIG_STATUS <<EOF
1.1.1.2 maekawa 21865: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.1.1.4 ! ohara 21866: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
! 21867: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
! 21868: EOF
! 21869: cat >>$CONFIG_STATUS <<\EOF
! 21870: --version | --vers* | -V )
! 21871: echo "$ac_cs_version"; exit 0 ;;
1.1.1.2 maekawa 21872: --he | --h)
21873: # Conflict between --help and --header
1.1.1.4 ! ohara 21874: { { echo "$as_me:21874: error: ambiguous option: $1
! 21875: Try \`$0 --help' for more information." >&5
! 21876: echo "$as_me: error: ambiguous option: $1
! 21877: Try \`$0 --help' for more information." >&2;}
! 21878: { (exit 1); exit 1; }; };;
! 21879: --help | --hel | -h )
! 21880: echo "$ac_cs_usage"; exit 0 ;;
! 21881: --debug | --d* | -d )
! 21882: debug=: ;;
1.1.1.2 maekawa 21883: --file | --fil | --fi | --f )
21884: shift
1.1.1.4 ! ohara 21885: CONFIG_FILES="$CONFIG_FILES $1"
1.1.1.2 maekawa 21886: ac_need_defaults=false;;
21887: --header | --heade | --head | --hea )
21888: shift
1.1.1.4 ! ohara 21889: CONFIG_HEADERS="$CONFIG_HEADERS $1"
1.1.1.2 maekawa 21890: ac_need_defaults=false;;
21891:
21892: # This is an error.
1.1.1.4 ! ohara 21893: -*) { { echo "$as_me:21893: error: unrecognized option: $1
! 21894: Try \`$0 --help' for more information." >&5
! 21895: echo "$as_me: error: unrecognized option: $1
! 21896: Try \`$0 --help' for more information." >&2;}
! 21897: { (exit 1); exit 1; }; } ;;
! 21898:
! 21899: *) ac_config_targets="$ac_config_targets $1" ;;
! 21900:
1.1.1.2 maekawa 21901: esac
21902: shift
21903: done
21904:
1.1.1.4 ! ohara 21905: exec 5>>config.log
! 21906: cat >&5 << _ACEOF
! 21907:
! 21908: ## ----------------------- ##
! 21909: ## Running config.status. ##
! 21910: ## ----------------------- ##
! 21911:
! 21912: This file was extended by $as_me 2.52, executed with
! 21913: CONFIG_FILES = $CONFIG_FILES
! 21914: CONFIG_HEADERS = $CONFIG_HEADERS
! 21915: CONFIG_LINKS = $CONFIG_LINKS
! 21916: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 21917: > $ac_cs_invocation
! 21918: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 21919:
! 21920: _ACEOF
! 21921: EOF
! 21922:
! 21923: cat >>$CONFIG_STATUS <<EOF
! 21924: #
! 21925: # INIT-COMMANDS section.
! 21926: #
! 21927:
! 21928: AMDEP_TRUE="$AMDEP_TRUE"
! 21929: ac_aux_dir="$ac_aux_dir"
! 21930:
1.1.1.2 maekawa 21931: EOF
21932:
21933: cat >>$CONFIG_STATUS <<\EOF
1.1.1.4 ! ohara 21934: for ac_config_target in $ac_config_targets
! 21935: do
! 21936: case "$ac_config_target" in
! 21937: # Handling of arguments.
! 21938: "demos/pexpr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
! 21939: "demos/calc/calc-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
! 21940: "demos/expr/expr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/expr/expr-config.h:demos/expr/expr-config-h.in" ;;
! 21941: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 21942: "mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
! 21943: "mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
! 21944: "mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
! 21945: "mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
! 21946: "mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
! 21947: "printf/Makefile" ) CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
! 21948: "scanf/Makefile" ) CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
! 21949: "cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
! 21950: "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
! 21951: "tests/devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
! 21952: "tests/mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
! 21953: "tests/mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
! 21954: "tests/mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
! 21955: "tests/mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
! 21956: "tests/mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
! 21957: "tests/rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
! 21958: "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
! 21959: "tests/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
! 21960: "mpfr/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpfr/Makefile" ;;
! 21961: "mpfr/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpfr/tests/Makefile" ;;
! 21962: "tune/Makefile" ) CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
! 21963: "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
! 21964: "demos/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
! 21965: "demos/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
! 21966: "gmp.h" ) CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
! 21967: "mp.h" ) CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
! 21968: "mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
! 21969: "gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
! 21970: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
! 21971: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
! 21972: *) { { echo "$as_me:21972: error: invalid argument: $ac_config_target" >&5
! 21973: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 21974: { (exit 1); exit 1; }; };;
! 21975: esac
! 21976: done
! 21977:
1.1.1.2 maekawa 21978: # If the user did not use the arguments to specify the items to instantiate,
21979: # then the envvar interface is used. Set only those that are not.
1.1.1.4 ! ohara 21980: # We use the long form for the default assignment because of an extremely
! 21981: # bizarre bug on SunOS 4.1.3.
1.1.1.2 maekawa 21982: if $ac_need_defaults; then
1.1.1.4 ! ohara 21983: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 21984: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 21985: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
! 21986: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.1 maekawa 21987: fi
21988:
1.1.1.4 ! ohara 21989: # Create a temporary directory, and hook for its removal unless debugging.
! 21990: $debug ||
! 21991: {
! 21992: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 21993: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 21994: }
1.1 maekawa 21995:
1.1.1.4 ! ohara 21996: # Create a (secure) tmp directory for tmp files.
! 21997: : ${TMPDIR=/tmp}
! 21998: {
! 21999: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
! 22000: test -n "$tmp" && test -d "$tmp"
! 22001: } ||
! 22002: {
! 22003: tmp=$TMPDIR/cs$$-$RANDOM
! 22004: (umask 077 && mkdir $tmp)
! 22005: } ||
! 22006: {
! 22007: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
! 22008: { (exit 1); exit 1; }
! 22009: }
1.1 maekawa 22010:
1.1.1.2 maekawa 22011: EOF
1.1 maekawa 22012:
1.1.1.2 maekawa 22013: cat >>$CONFIG_STATUS <<EOF
22014:
22015: #
22016: # CONFIG_FILES section.
22017: #
22018:
22019: # No need to generate the scripts if there are no CONFIG_FILES.
22020: # This happens for instance when ./config.status config.h
22021: if test -n "\$CONFIG_FILES"; then
22022: # Protect against being on the right side of a sed subst in config.status.
1.1.1.4 ! ohara 22023: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 22024: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 22025: s,@SHELL@,$SHELL,;t t
! 22026: s,@exec_prefix@,$exec_prefix,;t t
! 22027: s,@prefix@,$prefix,;t t
! 22028: s,@program_transform_name@,$program_transform_name,;t t
! 22029: s,@bindir@,$bindir,;t t
! 22030: s,@sbindir@,$sbindir,;t t
! 22031: s,@libexecdir@,$libexecdir,;t t
! 22032: s,@datadir@,$datadir,;t t
! 22033: s,@sysconfdir@,$sysconfdir,;t t
! 22034: s,@sharedstatedir@,$sharedstatedir,;t t
! 22035: s,@localstatedir@,$localstatedir,;t t
! 22036: s,@libdir@,$libdir,;t t
! 22037: s,@includedir@,$includedir,;t t
! 22038: s,@oldincludedir@,$oldincludedir,;t t
! 22039: s,@infodir@,$infodir,;t t
! 22040: s,@mandir@,$mandir,;t t
! 22041: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 22042: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 22043: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 22044: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 22045: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 22046: s,@build_alias@,$build_alias,;t t
! 22047: s,@host_alias@,$host_alias,;t t
! 22048: s,@target_alias@,$target_alias,;t t
! 22049: s,@ECHO_C@,$ECHO_C,;t t
! 22050: s,@ECHO_N@,$ECHO_N,;t t
! 22051: s,@ECHO_T@,$ECHO_T,;t t
! 22052: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 22053: s,@DEFS@,$DEFS,;t t
! 22054: s,@LIBS@,$LIBS,;t t
! 22055: s,@build@,$build,;t t
! 22056: s,@build_cpu@,$build_cpu,;t t
! 22057: s,@build_vendor@,$build_vendor,;t t
! 22058: s,@build_os@,$build_os,;t t
! 22059: s,@host@,$host,;t t
! 22060: s,@host_cpu@,$host_cpu,;t t
! 22061: s,@host_vendor@,$host_vendor,;t t
! 22062: s,@host_os@,$host_os,;t t
! 22063: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! 22064: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! 22065: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
! 22066: s,@PACKAGE@,$PACKAGE,;t t
! 22067: s,@VERSION@,$VERSION,;t t
! 22068: s,@EXEEXT@,$EXEEXT,;t t
! 22069: s,@OBJEXT@,$OBJEXT,;t t
! 22070: s,@ACLOCAL@,$ACLOCAL,;t t
! 22071: s,@AUTOCONF@,$AUTOCONF,;t t
! 22072: s,@AUTOMAKE@,$AUTOMAKE,;t t
! 22073: s,@AUTOHEADER@,$AUTOHEADER,;t t
! 22074: s,@MAKEINFO@,$MAKEINFO,;t t
! 22075: s,@AMTAR@,$AMTAR,;t t
! 22076: s,@install_sh@,$install_sh,;t t
! 22077: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
! 22078: s,@AWK@,$AWK,;t t
! 22079: s,@SET_MAKE@,$SET_MAKE,;t t
! 22080: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
! 22081: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
! 22082: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
! 22083: s,@DEPDIR@,$DEPDIR,;t t
! 22084: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
! 22085: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
! 22086: s,@MAINT@,$MAINT,;t t
! 22087: s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
! 22088: s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
! 22089: s,@WANT_MPFR_TRUE@,$WANT_MPFR_TRUE,;t t
! 22090: s,@WANT_MPFR_FALSE@,$WANT_MPFR_FALSE,;t t
! 22091: s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
! 22092: s,@ABI@,$ABI,;t t
! 22093: s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
! 22094: s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
! 22095: s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
! 22096: s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t
! 22097: s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t
! 22098: s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t
! 22099: s,@CC@,$CC,;t t
! 22100: s,@CFLAGS@,$CFLAGS,;t t
! 22101: s,@LDFLAGS@,$LDFLAGS,;t t
! 22102: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 22103: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 22104: s,@am__include@,$am__include,;t t
! 22105: s,@am__quote@,$am__quote,;t t
! 22106: s,@CCDEPMODE@,$CCDEPMODE,;t t
! 22107: s,@CPP@,$CPP,;t t
! 22108: s,@CXX@,$CXX,;t t
! 22109: s,@CXXFLAGS@,$CXXFLAGS,;t t
! 22110: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
! 22111: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
! 22112: s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t
! 22113: s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t
! 22114: s,@CXXCPP@,$CXXCPP,;t t
! 22115: s,@U@,$U,;t t
! 22116: s,@ANSI2KNR@,$ANSI2KNR,;t t
! 22117: s,@AR@,$AR,;t t
! 22118: s,@ac_ct_AR@,$ac_ct_AR,;t t
! 22119: s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t
! 22120: s,@LN_S@,$LN_S,;t t
! 22121: s,@ECHO@,$ECHO,;t t
! 22122: s,@RANLIB@,$RANLIB,;t t
! 22123: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 22124: s,@STRIP@,$STRIP,;t t
! 22125: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 22126: s,@DLLTOOL@,$DLLTOOL,;t t
! 22127: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
! 22128: s,@AS@,$AS,;t t
! 22129: s,@ac_ct_AS@,$ac_ct_AS,;t t
! 22130: s,@OBJDUMP@,$OBJDUMP,;t t
! 22131: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
! 22132: s,@LIBTOOL@,$LIBTOOL,;t t
! 22133: s,@CCAS@,$CCAS,;t t
! 22134: s,@LIBM@,$LIBM,;t t
! 22135: s,@TAL_OBJECT@,$TAL_OBJECT,;t t
! 22136: s,@REPL_VSNPRINTF_PRINTF_OBJ@,$REPL_VSNPRINTF_PRINTF_OBJ,;t t
! 22137: s,@REPL_VSNPRINTF_OBJ@,$REPL_VSNPRINTF_OBJ,;t t
! 22138: s,@M4@,$M4,;t t
! 22139: s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t
! 22140: s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t
! 22141: s,@mpn_objects@,$mpn_objects,;t t
! 22142: s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t
! 22143: s,@gmp_srclinks@,$gmp_srclinks,;t t
! 22144: s,@LIBOBJS@,$LIBOBJS,;t t
! 22145: s,@MPFR_CFLAGS@,$MPFR_CFLAGS,;t t
! 22146: s,@MPFR_LIBS@,$MPFR_LIBS,;t t
! 22147: s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t
! 22148: s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t
! 22149: s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t
! 22150: s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t
! 22151: s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t
! 22152: s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t
! 22153: s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t
! 22154: s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t
! 22155: s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t
! 22156: s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t
! 22157: s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t
! 22158: s,@LIBREADLINE@,$LIBREADLINE,;t t
! 22159: s,@YACC@,$YACC,;t t
! 22160: s,@LEX@,$LEX,;t t
! 22161: s,@LEXLIB@,$LEXLIB,;t t
! 22162: s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
! 22163: s,@HAVE_MPFR_01@,$HAVE_MPFR_01,;t t
! 22164: s,@HAVE_DECL_OPTARG@,$HAVE_DECL_OPTARG,;t t
1.1.1.2 maekawa 22165: CEOF
22166:
22167: EOF
22168:
22169: cat >>$CONFIG_STATUS <<\EOF
22170: # Split the substitutions into bite-sized pieces for seds with
22171: # small command number limits, like on Digital OSF/1 and HP-UX.
22172: ac_max_sed_lines=48
22173: ac_sed_frag=1 # Number of current file.
22174: ac_beg=1 # First line for current file.
22175: ac_end=$ac_max_sed_lines # Line after last line for current file.
22176: ac_more_lines=:
1.1.1.4 ! ohara 22177: ac_sed_cmds=
1.1.1.2 maekawa 22178: while $ac_more_lines; do
22179: if test $ac_beg -gt 1; then
1.1.1.4 ! ohara 22180: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.1.1.2 maekawa 22181: else
1.1.1.4 ! ohara 22182: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.1.1.2 maekawa 22183: fi
1.1.1.4 ! ohara 22184: if test ! -s $tmp/subs.frag; then
1.1.1.2 maekawa 22185: ac_more_lines=false
22186: else
22187: # The purpose of the label and of the branching condition is to
22188: # speed up the sed processing (if there are no `@' at all, there
22189: # is no need to browse any of the substitutions).
22190: # These are the two extra sed commands mentioned above.
22191: (echo ':t
1.1.1.4 ! ohara 22192: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1.1.1.2 maekawa 22193: if test -z "$ac_sed_cmds"; then
1.1.1.4 ! ohara 22194: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.1.1.2 maekawa 22195: else
1.1.1.4 ! ohara 22196: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.1.1.2 maekawa 22197: fi
22198: ac_sed_frag=`expr $ac_sed_frag + 1`
22199: ac_beg=$ac_end
22200: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 maekawa 22201: fi
1.1.1.2 maekawa 22202: done
22203: if test -z "$ac_sed_cmds"; then
22204: ac_sed_cmds=cat
22205: fi
22206: fi # test -n "$CONFIG_FILES"
1.1 maekawa 22207:
22208: EOF
1.1.1.2 maekawa 22209: cat >>$CONFIG_STATUS <<\EOF
1.1.1.4 ! ohara 22210: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1.1.2 maekawa 22211: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1.1.4 ! ohara 22212: case $ac_file in
! 22213: - | *:- | *:-:* ) # input from stdin
! 22214: cat >$tmp/stdin
! 22215: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 22216: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 22217: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 22218: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 22219: * ) ac_file_in=$ac_file.in ;;
1.1.1.2 maekawa 22220: esac
22221:
1.1.1.4 ! ohara 22222: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 22223: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22224: X"$ac_file" : 'X\(//\)[^/]' \| \
! 22225: X"$ac_file" : 'X\(//\)$' \| \
! 22226: X"$ac_file" : 'X\(/\)' \| \
! 22227: . : '\(.\)' 2>/dev/null ||
! 22228: echo X"$ac_file" |
! 22229: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 22230: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 22231: /^X\(\/\/\)$/{ s//\1/; q; }
! 22232: /^X\(\/\).*/{ s//\1/; q; }
! 22233: s/.*/./; q'`
1.1.1.2 maekawa 22234: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.1.1.4 ! ohara 22235: { case "$ac_dir" in
! 22236: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
! 22237: *) as_incr_dir=.;;
! 22238: esac
! 22239: as_dummy="$ac_dir"
! 22240: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
! 22241: case $as_mkdir_dir in
! 22242: # Skip DOS drivespec
! 22243: ?:) as_incr_dir=$as_mkdir_dir ;;
! 22244: *)
! 22245: as_incr_dir=$as_incr_dir/$as_mkdir_dir
! 22246: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
! 22247: ;;
! 22248: esac
! 22249: done; }
! 22250:
! 22251: ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1.1.1.2 maekawa 22252: # A "../" for each directory in $ac_dir_suffix.
1.1.1.4 ! ohara 22253: ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1.1.1.2 maekawa 22254: else
22255: ac_dir_suffix= ac_dots=
22256: fi
1.1 maekawa 22257:
1.1.1.4 ! ohara 22258: case $srcdir in
! 22259: .) ac_srcdir=.
! 22260: if test -z "$ac_dots"; then
! 22261: ac_top_srcdir=.
! 22262: else
! 22263: ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
! 22264: fi ;;
1.1.1.2 maekawa 22265: [\\/]* | ?:[\\/]* )
1.1.1.4 ! ohara 22266: ac_srcdir=$srcdir$ac_dir_suffix;
! 22267: ac_top_srcdir=$srcdir ;;
1.1.1.2 maekawa 22268: *) # Relative path.
1.1.1.4 ! ohara 22269: ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
! 22270: ac_top_srcdir=$ac_dots$srcdir ;;
1.1.1.2 maekawa 22271: esac
22272:
1.1.1.4 ! ohara 22273: case $INSTALL in
! 22274: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
! 22275: *) ac_INSTALL=$ac_dots$INSTALL ;;
1.1.1.2 maekawa 22276: esac
22277:
1.1.1.4 ! ohara 22278: if test x"$ac_file" != x-; then
! 22279: { echo "$as_me:22279: creating $ac_file" >&5
! 22280: echo "$as_me: creating $ac_file" >&6;}
! 22281: rm -f "$ac_file"
! 22282: fi
! 22283: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 22284: # use $as_me), people would be surprised to read:
! 22285: # /* config.h. Generated automatically by config.status. */
1.1.1.2 maekawa 22286: configure_input="Generated automatically from `echo $ac_file_in |
1.1.1.4 ! ohara 22287: sed 's,.*/,,'` by configure."
1.1.1.2 maekawa 22288:
1.1.1.4 ! ohara 22289: # First look for the input files in the build tree, otherwise in the
! 22290: # src tree.
! 22291: ac_file_inputs=`IFS=:
! 22292: for f in $ac_file_in; do
! 22293: case $f in
! 22294: -) echo $tmp/stdin ;;
! 22295: [\\/$]*)
! 22296: # Absolute (can't be DOS-style, as IFS=:)
! 22297: test -f "$f" || { { echo "$as_me:22297: error: cannot find input file: $f" >&5
! 22298: echo "$as_me: error: cannot find input file: $f" >&2;}
! 22299: { (exit 1); exit 1; }; }
! 22300: echo $f;;
! 22301: *) # Relative
! 22302: if test -f "$f"; then
! 22303: # Build tree
! 22304: echo $f
! 22305: elif test -f "$srcdir/$f"; then
! 22306: # Source tree
! 22307: echo $srcdir/$f
! 22308: else
! 22309: # /dev/null tree
! 22310: { { echo "$as_me:22310: error: cannot find input file: $f" >&5
! 22311: echo "$as_me: error: cannot find input file: $f" >&2;}
! 22312: { (exit 1); exit 1; }; }
! 22313: fi;;
! 22314: esac
! 22315: done` || { (exit 1); exit 1; }
1.1.1.2 maekawa 22316: EOF
22317: cat >>$CONFIG_STATUS <<EOF
1.1.1.4 ! ohara 22318: sed "$ac_vpsub
1.1.1.2 maekawa 22319: $extrasub
22320: EOF
22321: cat >>$CONFIG_STATUS <<\EOF
22322: :t
22323: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.4 ! ohara 22324: s,@configure_input@,$configure_input,;t t
! 22325: s,@srcdir@,$ac_srcdir,;t t
! 22326: s,@top_srcdir@,$ac_top_srcdir,;t t
! 22327: s,@INSTALL@,$ac_INSTALL,;t t
! 22328: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 22329: rm -f $tmp/stdin
! 22330: if test x"$ac_file" != x-; then
! 22331: mv $tmp/out $ac_file
! 22332: else
! 22333: cat $tmp/out
! 22334: rm -f $tmp/out
! 22335: fi
1.1.1.2 maekawa 22336:
1.1.1.4 ! ohara 22337: done
1.1.1.2 maekawa 22338: EOF
22339: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 22340:
1.1.1.2 maekawa 22341: #
22342: # CONFIG_HEADER section.
22343: #
1.1 maekawa 22344:
1.1.1.2 maekawa 22345: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22346: # NAME is the cpp macro being defined and VALUE is the value it is being given.
22347: #
22348: # ac_d sets the value in "#define NAME VALUE" lines.
1.1.1.4 ! ohara 22349: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 22350: ac_dB='[ ].*$,\1#\2'
1.1.1.2 maekawa 22351: ac_dC=' '
1.1.1.4 ! ohara 22352: ac_dD=',;t'
1.1.1.2 maekawa 22353: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.1.1.4 ! ohara 22354: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 22355: ac_uB='$,\1#\2define\3'
1.1.1.2 maekawa 22356: ac_uC=' '
1.1.1.4 ! ohara 22357: ac_uD=',;t'
1.1.1.2 maekawa 22358:
1.1.1.4 ! ohara 22359: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1.1.2 maekawa 22360: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1.1.4 ! ohara 22361: case $ac_file in
! 22362: - | *:- | *:-:* ) # input from stdin
! 22363: cat >$tmp/stdin
! 22364: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 22365: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 22366: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 22367: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 22368: * ) ac_file_in=$ac_file.in ;;
1.1.1.2 maekawa 22369: esac
22370:
1.1.1.4 ! ohara 22371: test x"$ac_file" != x- && { echo "$as_me:22371: creating $ac_file" >&5
! 22372: echo "$as_me: creating $ac_file" >&6;}
! 22373:
! 22374: # First look for the input files in the build tree, otherwise in the
! 22375: # src tree.
! 22376: ac_file_inputs=`IFS=:
! 22377: for f in $ac_file_in; do
! 22378: case $f in
! 22379: -) echo $tmp/stdin ;;
! 22380: [\\/$]*)
! 22381: # Absolute (can't be DOS-style, as IFS=:)
! 22382: test -f "$f" || { { echo "$as_me:22382: error: cannot find input file: $f" >&5
! 22383: echo "$as_me: error: cannot find input file: $f" >&2;}
! 22384: { (exit 1); exit 1; }; }
! 22385: echo $f;;
! 22386: *) # Relative
! 22387: if test -f "$f"; then
! 22388: # Build tree
! 22389: echo $f
! 22390: elif test -f "$srcdir/$f"; then
! 22391: # Source tree
! 22392: echo $srcdir/$f
! 22393: else
! 22394: # /dev/null tree
! 22395: { { echo "$as_me:22395: error: cannot find input file: $f" >&5
! 22396: echo "$as_me: error: cannot find input file: $f" >&2;}
! 22397: { (exit 1); exit 1; }; }
! 22398: fi;;
! 22399: esac
! 22400: done` || { (exit 1); exit 1; }
1.1.1.2 maekawa 22401: # Remove the trailing spaces.
1.1.1.4 ! ohara 22402: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 maekawa 22403:
1.1.1.2 maekawa 22404: EOF
1.1 maekawa 22405:
1.1.1.2 maekawa 22406: # Transform confdefs.h into two sed scripts, `conftest.defines' and
22407: # `conftest.undefs', that substitutes the proper values into
22408: # config.h.in to produce config.h. The first handles `#define'
22409: # templates, and the second `#undef' templates.
22410: # And first: Protect against being on the right side of a sed subst in
22411: # config.status. Protect against being in an unquoted here document
22412: # in config.status.
22413: rm -f conftest.defines conftest.undefs
1.1.1.4 ! ohara 22414: # Using a here document instead of a string reduces the quoting nightmare.
! 22415: # Putting comments in sed scripts is not portable.
! 22416: #
! 22417: # `end' is used to avoid that the second main sed command (meant for
! 22418: # 0-ary CPP macros) applies to n-ary macro definitions.
! 22419: # See the Autoconf documentation for `clear'.
! 22420: cat >confdef2sed.sed <<\EOF
! 22421: s/[\\&,]/\\&/g
! 22422: s,[\\$`],\\&,g
1.1.1.2 maekawa 22423: t clear
22424: : clear
1.1.1.4 ! ohara 22425: s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
! 22426: t end
! 22427: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 22428: : end
1.1.1.2 maekawa 22429: EOF
22430: # If some macros were called several times there might be several times
22431: # the same #defines, which is useless. Nevertheless, we may not want to
1.1.1.4 ! ohara 22432: # sort them, since we want the *last* AC-DEFINE to be honored.
! 22433: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 22434: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 22435: rm -f confdef2sed.sed
1.1.1.2 maekawa 22436:
22437: # This sed command replaces #undef with comments. This is necessary, for
22438: # example, in the case of _POSIX_SOURCE, which is predefined and required
22439: # on some systems where configure will not decide to define it.
22440: cat >>conftest.undefs <<\EOF
1.1.1.4 ! ohara 22441: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.1.1.2 maekawa 22442: EOF
1.1 maekawa 22443:
1.1.1.2 maekawa 22444: # Break up conftest.defines because some shells have a limit on the size
22445: # of here documents, and old seds have small limits too (100 cmds).
22446: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.1.1.4 ! ohara 22447: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.1.1.2 maekawa 22448: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22449: echo ' :' >>$CONFIG_STATUS
22450: rm -f conftest.tail
22451: while grep . conftest.defines >/dev/null
22452: do
1.1.1.4 ! ohara 22453: # Write a limited-size here document to $tmp/defines.sed.
! 22454: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 22455: # Speed up: don't consider the non `#define' lines.
1.1.1.2 maekawa 22456: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.1.1.4 ! ohara 22457: # Work around the forget-to-reset-the-flag bug.
! 22458: echo 't clr' >>$CONFIG_STATUS
! 22459: echo ': clr' >>$CONFIG_STATUS
1.1.1.2 maekawa 22460: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22461: echo 'CEOF
1.1.1.4 ! ohara 22462: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 22463: rm -f $tmp/in
! 22464: mv $tmp/out $tmp/in
1.1.1.2 maekawa 22465: ' >>$CONFIG_STATUS
22466: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22467: rm -f conftest.defines
22468: mv conftest.tail conftest.defines
22469: done
22470: rm -f conftest.defines
22471: echo ' fi # egrep' >>$CONFIG_STATUS
22472: echo >>$CONFIG_STATUS
22473:
22474: # Break up conftest.undefs because some shells have a limit on the size
22475: # of here documents, and old seds have small limits too (100 cmds).
22476: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22477: rm -f conftest.tail
22478: while grep . conftest.undefs >/dev/null
22479: do
1.1.1.4 ! ohara 22480: # Write a limited-size here document to $tmp/undefs.sed.
! 22481: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 22482: # Speed up: don't consider the non `#undef'
1.1.1.2 maekawa 22483: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.1.1.4 ! ohara 22484: # Work around the forget-to-reset-the-flag bug.
! 22485: echo 't clr' >>$CONFIG_STATUS
! 22486: echo ': clr' >>$CONFIG_STATUS
1.1.1.2 maekawa 22487: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22488: echo 'CEOF
1.1.1.4 ! ohara 22489: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 22490: rm -f $tmp/in
! 22491: mv $tmp/out $tmp/in
1.1.1.2 maekawa 22492: ' >>$CONFIG_STATUS
22493: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22494: rm -f conftest.undefs
22495: mv conftest.tail conftest.undefs
1.1 maekawa 22496: done
1.1.1.2 maekawa 22497: rm -f conftest.undefs
1.1 maekawa 22498:
1.1.1.2 maekawa 22499: cat >>$CONFIG_STATUS <<\EOF
1.1.1.4 ! ohara 22500: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 22501: # use $as_me), people would be surprised to read:
! 22502: # /* config.h. Generated automatically by config.status. */
! 22503: if test x"$ac_file" = x-; then
! 22504: echo "/* Generated automatically by configure. */" >$tmp/config.h
! 22505: else
! 22506: echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
! 22507: fi
! 22508: cat $tmp/in >>$tmp/config.h
! 22509: rm -f $tmp/in
! 22510: if test x"$ac_file" != x-; then
! 22511: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
! 22512: { echo "$as_me:22512: $ac_file is unchanged" >&5
! 22513: echo "$as_me: $ac_file is unchanged" >&6;}
! 22514: else
! 22515: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22516: X"$ac_file" : 'X\(//\)[^/]' \| \
! 22517: X"$ac_file" : 'X\(//\)$' \| \
! 22518: X"$ac_file" : 'X\(/\)' \| \
! 22519: . : '\(.\)' 2>/dev/null ||
! 22520: echo X"$ac_file" |
! 22521: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 22522: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 22523: /^X\(\/\/\)$/{ s//\1/; q; }
! 22524: /^X\(\/\).*/{ s//\1/; q; }
! 22525: s/.*/./; q'`
! 22526: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 22527: { case "$ac_dir" in
! 22528: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
! 22529: *) as_incr_dir=.;;
! 22530: esac
! 22531: as_dummy="$ac_dir"
! 22532: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
! 22533: case $as_mkdir_dir in
! 22534: # Skip DOS drivespec
! 22535: ?:) as_incr_dir=$as_mkdir_dir ;;
! 22536: *)
! 22537: as_incr_dir=$as_incr_dir/$as_mkdir_dir
! 22538: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
! 22539: ;;
! 22540: esac
! 22541: done; }
! 22542:
! 22543: fi
! 22544: rm -f $ac_file
! 22545: mv $tmp/config.h $ac_file
1.1.1.2 maekawa 22546: fi
1.1.1.4 ! ohara 22547: else
! 22548: cat $tmp/config.h
! 22549: rm -f $tmp/config.h
1.1.1.2 maekawa 22550: fi
1.1.1.4 ! ohara 22551: # Run the commands associated with the file.
! 22552: case $ac_file in
! 22553: config.h ) # update the timestamp
! 22554: echo timestamp >"./stamp-h1"
! 22555: ;;
! 22556: esac
! 22557: done
1.1.1.2 maekawa 22558: EOF
22559: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 22560:
1.1.1.2 maekawa 22561: #
22562: # CONFIG_LINKS section.
22563: #
22564:
1.1.1.4 ! ohara 22565: for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
! 22566: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 22567: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.1.1.2 maekawa 22568:
1.1.1.4 ! ohara 22569: { echo "$as_me:22569: linking $srcdir/$ac_source to $ac_dest" >&5
! 22570: echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1.1.1.2 maekawa 22571:
22572: if test ! -r $srcdir/$ac_source; then
1.1.1.4 ! ohara 22573: { { echo "$as_me:22573: error: $srcdir/$ac_source: File not found" >&5
! 22574: echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
! 22575: { (exit 1); exit 1; }; }
1.1.1.2 maekawa 22576: fi
22577: rm -f $ac_dest
22578:
22579: # Make relative symlinks.
1.1.1.4 ! ohara 22580: ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22581: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 22582: X"$ac_dest" : 'X\(//\)$' \| \
! 22583: X"$ac_dest" : 'X\(/\)' \| \
! 22584: . : '\(.\)' 2>/dev/null ||
! 22585: echo X"$ac_dest" |
! 22586: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 22587: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 22588: /^X\(\/\/\)$/{ s//\1/; q; }
! 22589: /^X\(\/\).*/{ s//\1/; q; }
! 22590: s/.*/./; q'`
1.1.1.2 maekawa 22591: if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1.1.1.4 ! ohara 22592: { case "$ac_dest_dir" in
! 22593: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
! 22594: *) as_incr_dir=.;;
! 22595: esac
! 22596: as_dummy="$ac_dest_dir"
! 22597: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
! 22598: case $as_mkdir_dir in
! 22599: # Skip DOS drivespec
! 22600: ?:) as_incr_dir=$as_mkdir_dir ;;
! 22601: *)
! 22602: as_incr_dir=$as_incr_dir/$as_mkdir_dir
! 22603: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
! 22604: ;;
! 22605: esac
! 22606: done; }
! 22607:
! 22608: ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`"
1.1.1.2 maekawa 22609: # A "../" for each directory in $ac_dest_dir_suffix.
1.1.1.4 ! ohara 22610: ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
1.1.1.2 maekawa 22611: else
22612: ac_dest_dir_suffix= ac_dots=
22613: fi
22614:
1.1.1.4 ! ohara 22615: case $srcdir in
! 22616: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
! 22617: *) ac_rel_source=$ac_dots$srcdir/$ac_source ;;
1.1.1.2 maekawa 22618: esac
22619:
22620: # Make a symlink if possible; otherwise try a hard link.
1.1.1.4 ! ohara 22621: ln -s $ac_rel_source $ac_dest 2>/dev/null ||
! 22622: ln $srcdir/$ac_source $ac_dest ||
! 22623: { { echo "$as_me:22623: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
! 22624: echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
! 22625: { (exit 1); exit 1; }; }
! 22626: done
1.1.1.2 maekawa 22627: EOF
22628: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 22629:
22630: #
1.1.1.2 maekawa 22631: # CONFIG_COMMANDS section.
1.1 maekawa 22632: #
1.1.1.4 ! ohara 22633: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 22634: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 22635: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 22636:
! 22637: case $ac_dest in
! 22638: default-1 )
! 22639: test x"$AMDEP_TRUE" != x"" ||
! 22640: for mf in $CONFIG_FILES; do
! 22641: case "$mf" in
! 22642: Makefile) dirpart=.;;
! 22643: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
! 22644: *) continue;;
! 22645: esac
! 22646: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
! 22647: # Extract the definition of DEP_FILES from the Makefile without
! 22648: # running `make'.
! 22649: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
! 22650: test -z "$DEPDIR" && continue
! 22651: # When using ansi2knr, U may be empty or an underscore; expand it
! 22652: U=`sed -n -e '/^U = / s///p' < "$mf"`
! 22653: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
! 22654: # We invoke sed twice because it is the simplest approach to
! 22655: # changing $(DEPDIR) to its actual value in the expansion.
! 22656: for file in `sed -n -e '
! 22657: /^DEP_FILES = .*\\\\$/ {
! 22658: s/^DEP_FILES = //
! 22659: :loop
! 22660: s/\\\\$//
! 22661: p
! 22662: n
! 22663: /\\\\$/ b loop
! 22664: p
! 22665: }
! 22666: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
! 22667: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 22668: # Make sure the directory exists.
! 22669: test -f "$dirpart/$file" && continue
! 22670: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
! 22671: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
! 22672: # echo "creating $dirpart/$file"
! 22673: echo '# dummy' > "$dirpart/$file"
! 22674: done
! 22675: done
! 22676: ;;
1.1.1.2 maekawa 22677: esac
1.1.1.4 ! ohara 22678: done
1.1.1.2 maekawa 22679: EOF
22680:
22681: cat >>$CONFIG_STATUS <<\EOF
22682:
1.1.1.4 ! ohara 22683: { (exit 0); exit 0; }
1.1.1.2 maekawa 22684: EOF
22685: chmod +x $CONFIG_STATUS
1.1.1.4 ! ohara 22686: ac_clean_files=$ac_clean_files_save
! 22687:
! 22688: # configure is writing to config.log, and then calls config.status.
! 22689: # config.status does its own redirection, appending to config.log.
! 22690: # Unfortunately, on DOS this fails, as config.log is still kept open
! 22691: # by configure, so config.status won't be able to write to it; its
! 22692: # output is simply discarded. So we exec the FD to /dev/null,
! 22693: # effectively closing config.log, so it can be properly (re)opened and
! 22694: # appended to by config.status. When coming back to configure, we
! 22695: # need to make the FD available again.
! 22696: if test "$no_create" != yes; then
! 22697: ac_cs_success=:
! 22698: exec 5>/dev/null
! 22699: $SHELL $CONFIG_STATUS || ac_cs_success=false
! 22700: exec 5>>config.log
! 22701: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
! 22702: # would make configure fail if this is the last instruction.
! 22703: $ac_cs_success || { (exit 1); exit 1; }
! 22704: fi
1.1 maekawa 22705:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>