| version 1.1.1.1, 2000/01/10 15:35:21 |
version 1.1.1.4, 2003/08/25 16:05:58 |
|
|
| #!/bin/sh |
#! /bin/sh |
| |
# From configure.in Revision: 1.425.2.17 . |
| |
# |
| |
# |
| |
# |
| |
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software |
| |
# Foundation, Inc. |
| |
# |
| |
# This file is part of the GNU MP Library. |
| |
# |
| |
# The GNU MP Library is free software; you can redistribute it and/or modify |
| |
# it under the terms of the GNU Lesser General Public License as published |
| |
# by the Free Software Foundation; either version 2.1 of the License, or (at |
| |
# your option) any later version. |
| |
# |
| |
# The GNU MP Library is distributed in the hope that it will be useful, but |
| |
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| |
# License for more details. |
| |
# |
| |
# You should have received a copy of the GNU Lesser General Public License |
| |
# along with the GNU MP Library; see the file COPYING.LIB. If not, write to |
| |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| |
# MA 02111-1307, USA. |
| |
# |
| |
# Guess values for system-dependent variables and create Makefiles. |
| |
# Generated by Autoconf 2.52. |
| |
# |
| |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| |
# Free Software Foundation, Inc. |
| |
# This configure script is free software; the Free Software Foundation |
| |
# gives unlimited permission to copy, distribute and modify it. |
| |
|
| ### WARNING: this file contains embedded tabs. Do not run untabify on this file. |
# Check that we are running under the correct shell. |
| |
SHELL=${CONFIG_SHELL-/bin/sh} |
| |
|
| # Configuration script |
case X$ECHO in |
| # Copyright (C) 1988, 90, 91, 92, 93, 94 Free Software Foundation, Inc. |
X*--fallback-echo) |
| |
# Remove one level of quotation (which was required for Make). |
| |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| |
;; |
| |
esac |
| |
|
| # This program is free software; you can redistribute it and/or modify |
echo=${ECHO-echo} |
| # it under the terms of the GNU General Public License as published by |
if test "X$1" = X--no-reexec; then |
| # the Free Software Foundation; either version 2 of the License, or |
# Discard the --no-reexec flag, and continue. |
| # (at your option) any later version. |
shift |
| # |
elif test "X$1" = X--fallback-echo; then |
| # This program is distributed in the hope that it will be useful, |
# Avoid inline document here, it may be left over |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
: |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| # GNU General Public License for more details. |
# Yippee, $echo works! |
| # |
: |
| # You should have received a copy of the GNU General Public License |
else |
| # along with this program; if not, write to the Free Software |
# Restart under the correct shell. |
| # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
| |
fi |
| |
|
| # This file was originally written by K. Richard Pixley. |
if test "X$1" = X--fallback-echo; then |
| |
# used as fallback echo |
| |
shift |
| |
cat <<EOF |
| |
$* |
| |
EOF |
| |
exit 0 |
| |
fi |
| |
|
| |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| |
# if CDPATH is set. |
| |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| |
|
| |
if test -z "$ECHO"; then |
| |
if test "X${echo_test_string+set}" != Xset; then |
| |
# find a string as large as possible, as long as the shell can cope with it |
| |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| |
echo_test_string="`eval $cmd`" && |
| |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| |
then |
| |
break |
| |
fi |
| |
done |
| |
fi |
| |
|
| |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
: |
| |
else |
| |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| |
# backslashes. This makes it impossible to quote backslashes using |
| |
# echo "$something" | sed 's/\\/\\\\/g' |
| |
# |
| |
# So, first we look for a working echo in the user's PATH. |
| |
|
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
for dir in $PATH /usr/ucb; do |
| |
IFS="$lt_save_ifs" |
| |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
echo="$dir/echo" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
|
| |
if test "X$echo" = Xecho; then |
| |
# We didn't find a better echo, so look for alternatives. |
| |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
# This shell has a builtin print -r that does the trick. |
| |
echo='print -r' |
| |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| |
# If we have ksh, try running configure again with it. |
| |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| |
export ORIGINAL_CONFIG_SHELL |
| |
CONFIG_SHELL=/bin/ksh |
| |
export CONFIG_SHELL |
| |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| |
else |
| |
# Try using printf. |
| |
echo='printf %s\n' |
| |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
# Cool, printf works |
| |
: |
| |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| |
test "X$echo_testing_string" = 'X\t' && |
| |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| |
export CONFIG_SHELL |
| |
SHELL="$CONFIG_SHELL" |
| |
export SHELL |
| |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| |
test "X$echo_testing_string" = 'X\t' && |
| |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| |
else |
| |
# maybe with a smaller string... |
| |
prev=: |
| |
|
| |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| |
then |
| |
break |
| |
fi |
| |
prev="$cmd" |
| |
done |
| |
|
| |
if test "$prev" != 'sed 50q "$0"'; then |
| |
echo_test_string=`eval $prev` |
| |
export echo_test_string |
| |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| |
else |
| |
# Oops. We lost completely, so just stick with echo. |
| |
echo=echo |
| |
fi |
| |
fi |
| |
fi |
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
# Copy echo and quote the copy suitably for passing to libtool from |
| |
# the Makefile, instead of quoting the original, which is used later. |
| |
ECHO=$echo |
| |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| |
fi |
| |
|
| |
# Avoid depending upon Character Ranges. |
| |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| |
as_cr_digits='0123456789' |
| |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| |
|
| |
# Sed expression to map a string onto a valid variable name. |
| |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| |
|
| |
# Sed expression to map a string onto a valid CPP name. |
| |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| |
|
| |
# Be Bourne compatible |
| |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| |
emulate sh |
| |
NULLCMD=: |
| |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| |
set -o posix |
| |
fi |
| |
|
| |
# Name of the executable. |
| |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| |
|
| |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| |
as_expr=expr |
| |
else |
| |
as_expr=false |
| |
fi |
| |
|
| |
rm -f conf$$ conf$$.exe conf$$.file |
| |
echo >conf$$.file |
| |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| |
# We could just check for DJGPP; but this test a) works b) is more generic |
| |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| |
if test -f conf$$.exe; then |
| |
# Don't use ln at all; we don't have any links |
| |
as_ln_s='cp -p' |
| |
else |
| |
as_ln_s='ln -s' |
| |
fi |
| |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| |
as_ln_s=ln |
| |
else |
| |
as_ln_s='cp -p' |
| |
fi |
| |
rm -f conf$$ conf$$.exe conf$$.file |
| |
|
| |
as_executable_p="test -f" |
| |
|
| |
# Support unset when possible. |
| |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| |
as_unset=unset |
| |
else |
| |
as_unset=false |
| |
fi |
| |
|
| |
# NLS nuisances. |
| |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| |
|
| |
# IFS |
| |
# We need space, tab and new line, in precisely that order. |
| |
as_nl=' |
| |
' |
| |
IFS=" $as_nl" |
| |
|
| |
# CDPATH. |
| |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| |
|
| |
# Name of the host. |
| |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| |
# so uname gets run too. |
| |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| |
|
| |
exec 6>&1 |
| |
|
| # |
# |
| # Shell script to create proper links to machine-dependent files in |
# Initializations. |
| # preparation for compilation. |
|
| # |
# |
| # If configure succeeds, it leaves its status in config.status. |
ac_default_prefix=/usr/local |
| # If configure fails after disturbing the status quo, |
cross_compiling=no |
| # config.status is removed. |
subdirs= |
| |
MFLAGS= MAKEFLAGS= |
| |
SHELL=${CONFIG_SHELL-/bin/sh} |
| |
|
| |
# Maximum number of lines to put in a shell here document. |
| |
# This variable seems obsolete. It should probably be removed, and |
| |
# only ac_max_sed_lines should be used. |
| |
: ${ac_max_here_lines=38} |
| |
|
| |
ac_unique_file="gmp-impl.h" |
| |
# Factoring default headers for most tests. |
| |
ac_includes_default="\ |
| |
#include <stdio.h> |
| |
#if HAVE_SYS_TYPES_H |
| |
# include <sys/types.h> |
| |
#endif |
| |
#if HAVE_SYS_STAT_H |
| |
# include <sys/stat.h> |
| |
#endif |
| |
#if STDC_HEADERS |
| |
# include <stdlib.h> |
| |
# include <stddef.h> |
| |
#else |
| |
# if HAVE_STDLIB_H |
| |
# include <stdlib.h> |
| |
# endif |
| |
#endif |
| |
#if HAVE_STRING_H |
| |
# if !STDC_HEADERS && HAVE_MEMORY_H |
| |
# include <memory.h> |
| |
# endif |
| |
# include <string.h> |
| |
#endif |
| |
#if HAVE_STRINGS_H |
| |
# include <strings.h> |
| |
#endif |
| |
#if HAVE_INTTYPES_H |
| |
# include <inttypes.h> |
| |
#else |
| |
# if HAVE_STDINT_H |
| |
# include <stdint.h> |
| |
# endif |
| |
#endif |
| |
#if HAVE_UNISTD_H |
| |
# include <unistd.h> |
| |
#endif" |
| |
|
| |
# Initialize some variables set by options. |
| |
ac_init_help= |
| |
ac_init_version=false |
| |
# The variables have the same names as the options, with |
| |
# dashes changed to underlines. |
| |
cache_file=/dev/null |
| |
exec_prefix=NONE |
| |
no_create= |
| |
no_recursion= |
| |
prefix=NONE |
| |
program_prefix=NONE |
| |
program_suffix=NONE |
| |
program_transform_name=s,x,x, |
| |
silent= |
| |
site= |
| |
srcdir= |
| |
verbose= |
| |
x_includes=NONE |
| |
x_libraries=NONE |
| |
|
| |
# Installation directory options. |
| |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| |
# and all the variables that are supposed to be based on exec_prefix |
| |
# by default will actually change. |
| |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| |
bindir='${exec_prefix}/bin' |
| |
sbindir='${exec_prefix}/sbin' |
| |
libexecdir='${exec_prefix}/libexec' |
| |
datadir='${prefix}/share' |
| |
sysconfdir='${prefix}/etc' |
| |
sharedstatedir='${prefix}/com' |
| |
localstatedir='${prefix}/var' |
| |
libdir='${exec_prefix}/lib' |
| |
includedir='${prefix}/include' |
| |
oldincludedir='/usr/include' |
| |
infodir='${prefix}/info' |
| |
mandir='${prefix}/man' |
| |
|
| |
# Identity of this package. |
| |
PACKAGE_NAME= |
| |
PACKAGE_TARNAME= |
| |
PACKAGE_VERSION= |
| |
PACKAGE_STRING= |
| |
PACKAGE_BUGREPORT= |
| |
|
| |
ac_prev= |
| |
for ac_option |
| |
do |
| |
# If the previous option needs an argument, assign it. |
| |
if test -n "$ac_prev"; then |
| |
eval "$ac_prev=\$ac_option" |
| |
ac_prev= |
| |
continue |
| |
fi |
| |
|
| |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| |
|
| |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| |
|
| |
case $ac_option in |
| |
|
| |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| |
ac_prev=bindir ;; |
| |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| |
bindir=$ac_optarg ;; |
| |
|
| |
-build | --build | --buil | --bui | --bu) |
| |
ac_prev=build_alias ;; |
| |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| |
build_alias=$ac_optarg ;; |
| |
|
| |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| |
ac_prev=cache_file ;; |
| |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| |
cache_file=$ac_optarg ;; |
| |
|
| |
--config-cache | -C) |
| |
cache_file=config.cache ;; |
| |
|
| |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| |
ac_prev=datadir ;; |
| |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| |
| --da=*) |
| |
datadir=$ac_optarg ;; |
| |
|
| |
-disable-* | --disable-*) |
| |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| |
# Reject names that are not valid shell variable names. |
| |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| |
eval "enable_$ac_feature=no" ;; |
| |
|
| |
-enable-* | --enable-*) |
| |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| |
# Reject names that are not valid shell variable names. |
| |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| |
case $ac_option in |
| |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| |
*) ac_optarg=yes ;; |
| |
esac |
| |
eval "enable_$ac_feature='$ac_optarg'" ;; |
| |
|
| |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| |
| --exec | --exe | --ex) |
| |
ac_prev=exec_prefix ;; |
| |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| |
| --exec=* | --exe=* | --ex=*) |
| |
exec_prefix=$ac_optarg ;; |
| |
|
| |
-gas | --gas | --ga | --g) |
| |
# Obsolete; use --with-gas. |
| |
with_gas=yes ;; |
| |
|
| |
-help | --help | --hel | --he | -h) |
| |
ac_init_help=long ;; |
| |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| |
ac_init_help=recursive ;; |
| |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| |
ac_init_help=short ;; |
| |
|
| |
-host | --host | --hos | --ho) |
| |
ac_prev=host_alias ;; |
| |
-host=* | --host=* | --hos=* | --ho=*) |
| |
host_alias=$ac_optarg ;; |
| |
|
| |
-includedir | --includedir | --includedi | --included | --include \ |
| |
| --includ | --inclu | --incl | --inc) |
| |
ac_prev=includedir ;; |
| |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| |
includedir=$ac_optarg ;; |
| |
|
| |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| |
ac_prev=infodir ;; |
| |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| |
infodir=$ac_optarg ;; |
| |
|
| |
-libdir | --libdir | --libdi | --libd) |
| |
ac_prev=libdir ;; |
| |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| |
libdir=$ac_optarg ;; |
| |
|
| |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| |
| --libexe | --libex | --libe) |
| |
ac_prev=libexecdir ;; |
| |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| |
| --libexe=* | --libex=* | --libe=*) |
| |
libexecdir=$ac_optarg ;; |
| |
|
| |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| |
| --localstate | --localstat | --localsta | --localst \ |
| |
| --locals | --local | --loca | --loc | --lo) |
| |
ac_prev=localstatedir ;; |
| |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| |
localstatedir=$ac_optarg ;; |
| |
|
| |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| |
ac_prev=mandir ;; |
| |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| |
mandir=$ac_optarg ;; |
| |
|
| |
-nfp | --nfp | --nf) |
| |
# Obsolete; use --without-fp. |
| |
with_fp=no ;; |
| |
|
| |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| |
| --no-cr | --no-c) |
| |
no_create=yes ;; |
| |
|
| |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| |
no_recursion=yes ;; |
| |
|
| |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| |
| --oldin | --oldi | --old | --ol | --o) |
| |
ac_prev=oldincludedir ;; |
| |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| |
oldincludedir=$ac_optarg ;; |
| |
|
| |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| |
ac_prev=prefix ;; |
| |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| |
prefix=$ac_optarg ;; |
| |
|
| |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| |
| --program-pre | --program-pr | --program-p) |
| |
ac_prev=program_prefix ;; |
| |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| |
program_prefix=$ac_optarg ;; |
| |
|
| |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| |
| --program-suf | --program-su | --program-s) |
| |
ac_prev=program_suffix ;; |
| |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| |
program_suffix=$ac_optarg ;; |
| |
|
| |
-program-transform-name | --program-transform-name \ |
| |
| --program-transform-nam | --program-transform-na \ |
| |
| --program-transform-n | --program-transform- \ |
| |
| --program-transform | --program-transfor \ |
| |
| --program-transfo | --program-transf \ |
| |
| --program-trans | --program-tran \ |
| |
| --progr-tra | --program-tr | --program-t) |
| |
ac_prev=program_transform_name ;; |
| |
-program-transform-name=* | --program-transform-name=* \ |
| |
| --program-transform-nam=* | --program-transform-na=* \ |
| |
| --program-transform-n=* | --program-transform-=* \ |
| |
| --program-transform=* | --program-transfor=* \ |
| |
| --program-transfo=* | --program-transf=* \ |
| |
| --program-trans=* | --program-tran=* \ |
| |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| |
program_transform_name=$ac_optarg ;; |
| |
|
| |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| |
| -silent | --silent | --silen | --sile | --sil) |
| |
silent=yes ;; |
| |
|
| |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| |
ac_prev=sbindir ;; |
| |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| |
| --sbi=* | --sb=*) |
| |
sbindir=$ac_optarg ;; |
| |
|
| |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| |
| --sharedst | --shareds | --shared | --share | --shar \ |
| |
| --sha | --sh) |
| |
ac_prev=sharedstatedir ;; |
| |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| |
| --sha=* | --sh=*) |
| |
sharedstatedir=$ac_optarg ;; |
| |
|
| |
-site | --site | --sit) |
| |
ac_prev=site ;; |
| |
-site=* | --site=* | --sit=*) |
| |
site=$ac_optarg ;; |
| |
|
| |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| |
ac_prev=srcdir ;; |
| |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| |
srcdir=$ac_optarg ;; |
| |
|
| |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| |
| --syscon | --sysco | --sysc | --sys | --sy) |
| |
ac_prev=sysconfdir ;; |
| |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| |
sysconfdir=$ac_optarg ;; |
| |
|
| |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| |
ac_prev=target_alias ;; |
| |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| |
target_alias=$ac_optarg ;; |
| |
|
| |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| |
verbose=yes ;; |
| |
|
| |
-version | --version | --versio | --versi | --vers | -V) |
| |
ac_init_version=: ;; |
| |
|
| |
-with-* | --with-*) |
| |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| |
# Reject names that are not valid shell variable names. |
| |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| |
case $ac_option in |
| |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| |
*) ac_optarg=yes ;; |
| |
esac |
| |
eval "with_$ac_package='$ac_optarg'" ;; |
| |
|
| |
-without-* | --without-*) |
| |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| |
# Reject names that are not valid shell variable names. |
| |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
| |
eval "with_$ac_package=no" ;; |
| |
|
| |
--x) |
| |
# Obsolete; use --with-x. |
| |
with_x=yes ;; |
| |
|
| |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| |
| --x-incl | --x-inc | --x-in | --x-i) |
| |
ac_prev=x_includes ;; |
| |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| |
x_includes=$ac_optarg ;; |
| |
|
| |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| |
ac_prev=x_libraries ;; |
| |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| |
x_libraries=$ac_optarg ;; |
| |
|
| |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
| |
Try \`$0 --help' for more information." >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
;; |
| |
|
| |
*=*) |
| |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| |
# Reject names that are not valid shell variable names. |
| |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| |
eval "$ac_envvar='$ac_optarg'" |
| |
export $ac_envvar ;; |
| |
|
| |
*) |
| |
# FIXME: should be removed in autoconf 3.0. |
| |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| |
;; |
| |
|
| |
esac |
| |
done |
| |
|
| |
if test -n "$ac_prev"; then |
| |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
# Be sure to have absolute paths. |
| |
for ac_var in exec_prefix prefix |
| |
do |
| |
eval ac_val=$`echo $ac_var` |
| |
case $ac_val in |
| |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| |
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| |
{ (exit 1); exit 1; }; };; |
| |
esac |
| |
done |
| |
|
| |
# Be sure to have absolute paths. |
| |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| |
localstatedir libdir includedir oldincludedir infodir mandir |
| |
do |
| |
eval ac_val=$`echo $ac_var` |
| |
case $ac_val in |
| |
[\\/$]* | ?:[\\/]* ) ;; |
| |
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| |
{ (exit 1); exit 1; }; };; |
| |
esac |
| |
done |
| |
|
| |
# There might be people who depend on the old broken behavior: `$host' |
| |
# used to hold the argument of --host etc. |
| |
build=$build_alias |
| |
host=$host_alias |
| |
target=$target_alias |
| |
|
| |
# FIXME: should be removed in autoconf 3.0. |
| |
if test "x$host_alias" != x; then |
| |
if test "x$build_alias" = x; then |
| |
cross_compiling=maybe |
| |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| |
elif test "x$build_alias" != "x$host_alias"; then |
| |
cross_compiling=yes |
| |
fi |
| |
fi |
| |
|
| |
ac_tool_prefix= |
| |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| |
|
| |
test "$silent" = yes && exec 6>/dev/null |
| |
|
| |
# Find the source files, if location was not specified. |
| |
if test -z "$srcdir"; then |
| |
ac_srcdir_defaulted=yes |
| |
# Try the directory containing this script, then its parent. |
| |
ac_prog=$0 |
| |
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
| |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| |
srcdir=$ac_confdir |
| |
if test ! -r $srcdir/$ac_unique_file; then |
| |
srcdir=.. |
| |
fi |
| |
else |
| |
ac_srcdir_defaulted=no |
| |
fi |
| |
if test ! -r $srcdir/$ac_unique_file; then |
| |
if test "$ac_srcdir_defaulted" = yes; then |
| |
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
else |
| |
{ echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| |
ac_env_build_alias_set=${build_alias+set} |
| |
ac_env_build_alias_value=$build_alias |
| |
ac_cv_env_build_alias_set=${build_alias+set} |
| |
ac_cv_env_build_alias_value=$build_alias |
| |
ac_env_host_alias_set=${host_alias+set} |
| |
ac_env_host_alias_value=$host_alias |
| |
ac_cv_env_host_alias_set=${host_alias+set} |
| |
ac_cv_env_host_alias_value=$host_alias |
| |
ac_env_target_alias_set=${target_alias+set} |
| |
ac_env_target_alias_value=$target_alias |
| |
ac_cv_env_target_alias_set=${target_alias+set} |
| |
ac_cv_env_target_alias_value=$target_alias |
| |
ac_env_ABI_set=${ABI+set} |
| |
ac_env_ABI_value=$ABI |
| |
ac_cv_env_ABI_set=${ABI+set} |
| |
ac_cv_env_ABI_value=$ABI |
| |
ac_env_CC_set=${CC+set} |
| |
ac_env_CC_value=$CC |
| |
ac_cv_env_CC_set=${CC+set} |
| |
ac_cv_env_CC_value=$CC |
| |
ac_env_CFLAGS_set=${CFLAGS+set} |
| |
ac_env_CFLAGS_value=$CFLAGS |
| |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| |
ac_cv_env_CFLAGS_value=$CFLAGS |
| |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
| |
ac_env_LDFLAGS_value=$LDFLAGS |
| |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
| |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| |
ac_env_CPPFLAGS_value=$CPPFLAGS |
| |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| |
ac_env_CPP_set=${CPP+set} |
| |
ac_env_CPP_value=$CPP |
| |
ac_cv_env_CPP_set=${CPP+set} |
| |
ac_cv_env_CPP_value=$CPP |
| |
ac_env_CXX_set=${CXX+set} |
| |
ac_env_CXX_value=$CXX |
| |
ac_cv_env_CXX_set=${CXX+set} |
| |
ac_cv_env_CXX_value=$CXX |
| |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| |
ac_env_CXXFLAGS_value=$CXXFLAGS |
| |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| |
ac_env_CXXCPP_set=${CXXCPP+set} |
| |
ac_env_CXXCPP_value=$CXXCPP |
| |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| |
ac_cv_env_CXXCPP_value=$CXXCPP |
| |
ac_env_M4_set=${M4+set} |
| |
ac_env_M4_value=$M4 |
| |
ac_cv_env_M4_set=${M4+set} |
| |
ac_cv_env_M4_value=$M4 |
| |
|
| # |
# |
| |
# Report the --help message. |
| |
# |
| |
if test "$ac_init_help" = "long"; then |
| |
# Omit some internal or obsolete options to make the list less imposing. |
| |
# This message is too long to be a string in the A/UX 3.1 sh. |
| |
cat <<EOF |
| |
\`configure' configures this package to adapt to many kinds of systems. |
| |
|
| export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0 $argv; kill $$) |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| |
|
| remove=rm |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| hard_link=ln |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| symbolic_link='ln -s' |
|
| |
|
| #for Test |
Defaults for the options are specified in brackets. |
| #remove="echo rm" |
|
| #hard_link="echo ln" |
|
| #symbolic_link="echo ln -s" |
|
| |
|
| # clear some things potentially inherited from environment. |
Configuration: |
| |
-h, --help display this help and exit |
| |
--help=short display options specific to this package |
| |
--help=recursive display the short help of all the included packages |
| |
-V, --version display version information and exit |
| |
-q, --quiet, --silent do not print \`checking...' messages |
| |
--cache-file=FILE cache test results in FILE [disabled] |
| |
-C, --config-cache alias for \`--cache-file=config.cache' |
| |
-n, --no-create do not create output files |
| |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| |
|
| Makefile=Makefile |
EOF |
| Makefile_in=Makefile.in |
|
| arguments= |
|
| build_alias= |
|
| cache_file= |
|
| cache_file_option= |
|
| configdirs= |
|
| exec_prefix= |
|
| exec_prefixoption= |
|
| fatal= |
|
| floating_point=default |
|
| gas=default |
|
| host_alias=NOHOST |
|
| host_makefile_frag= |
|
| moveifchange= |
|
| norecursion= |
|
| other_options= |
|
| package_makefile_frag= |
|
| prefix=/usr/local |
|
| progname= |
|
| program_prefix= |
|
| program_prefixoption= |
|
| program_suffix= |
|
| program_suffixoption= |
|
| program_transform_name= |
|
| program_transform_nameoption= |
|
| redirect=">/dev/null" |
|
| removing= |
|
| site= |
|
| site_makefile_frag= |
|
| site_option= |
|
| srcdir= |
|
| srctrigger= |
|
| subdirs= |
|
| target_alias=NOTARGET |
|
| target_makefile_frag= |
|
| undefs=NOUNDEFS |
|
| version="$Revision$" |
|
| x11=default |
|
| |
|
| ### we might need to use some other shell than /bin/sh for running subshells |
cat <<EOF |
| |
Installation directories: |
| |
--prefix=PREFIX install architecture-independent files in PREFIX |
| |
[$ac_default_prefix] |
| |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| |
[PREFIX] |
| |
|
| |
By default, \`make install' will install all the files in |
| |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| |
for instance \`--prefix=\$HOME'. |
| |
|
| |
For better control, use the options below. |
| |
|
| |
Fine tuning of the installation directories: |
| |
--bindir=DIR user executables [EPREFIX/bin] |
| |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
| |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| |
--libdir=DIR object code libraries [EPREFIX/lib] |
| |
--includedir=DIR C header files [PREFIX/include] |
| |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| |
--infodir=DIR info documentation [PREFIX/info] |
| |
--mandir=DIR man documentation [PREFIX/man] |
| |
EOF |
| |
|
| |
cat <<\EOF |
| |
|
| |
Program names: |
| |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| |
|
| |
System types: |
| |
--build=BUILD configure for building on BUILD [guessed] |
| |
--host=HOST build programs to run on HOST [BUILD] |
| |
EOF |
| |
fi |
| |
|
| |
if test -n "$ac_init_help"; then |
| |
|
| |
cat <<\EOF |
| |
|
| |
Optional Features: |
| |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| |
--disable-dependency-tracking Speeds up one-time builds |
| |
--enable-dependency-tracking Do not reject slow dependency extractors |
| |
--enable-maintainer-mode enable make rules and dependencies not useful |
| |
(and sometimes confusing) to the casual installer |
| |
--enable-assert enable ASSERT checking [default=no] |
| |
--enable-alloca how to get temp memory [default=reentrant] |
| |
--enable-cxx enable C++ support [default=no] |
| |
--enable-fft enable FFTs for multiplication [default=yes] |
| |
--enable-mpbsd build Berkley MP compatibility library |
| |
[default=no] |
| |
--enable-mpfr build MPFR [default=no] |
| |
--enable-nails use nails on limbs [default=no] |
| |
--enable-profiling build with profiler support [default=no] |
| |
--enable-shared[=PKGS] |
| |
build shared libraries [default=yes] |
| |
--enable-static[=PKGS] |
| |
build static libraries [default=yes] |
| |
--enable-fast-install[=PKGS] |
| |
optimize for fast installation [default=yes] |
| |
--disable-libtool-lock avoid locking (might break parallel builds) |
| |
|
| |
Optional Packages: |
| |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| |
--with-readline readline support in calc demo program |
| |
[default=detect] |
| |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| |
--with-pic try to use only PIC/non-PIC objects [default=use |
| |
both] |
| |
--with-tags=TAGS include additional configurations [CXX,GCJ] |
| |
|
| |
Some influential environment variables: |
| |
ABI desired ABI (for processors supporting more than one ABI) |
| |
CC C compiler command |
| |
CFLAGS C compiler flags |
| |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| |
nonstandard directory <lib dir> |
| |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| |
headers in a nonstandard directory <include dir> |
| |
CPP C preprocessor |
| |
CXX C++ compiler command |
| |
CXXFLAGS C++ compiler flags |
| |
CXXCPP C++ preprocessor |
| |
M4 m4 macro processor |
| |
|
| |
Use these variables to override the choices made by `configure' or to help |
| |
it to find libraries and programs with nonstandard names/locations. |
| |
|
| |
EOF |
| |
fi |
| |
|
| |
if test "$ac_init_help" = "recursive"; then |
| |
# If there are subdirs, report their specific --help. |
| |
ac_popdir=`pwd` |
| |
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
| |
cd $ac_subdir |
| |
# A "../" for each directory in /$ac_subdir. |
| |
ac_dots=`echo $ac_subdir | |
| |
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
| |
|
| |
case $srcdir in |
| |
.) # No --srcdir option. We are building in place. |
| |
ac_sub_srcdir=$srcdir ;; |
| |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| |
ac_sub_srcdir=$srcdir/$ac_subdir ;; |
| |
*) # Relative path. |
| |
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
| |
esac |
| |
|
| |
# Check for guested configure; otherwise get Cygnus style configure. |
| |
if test -f $ac_sub_srcdir/configure.gnu; then |
| |
echo |
| |
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
| |
elif test -f $ac_sub_srcdir/configure; then |
| |
echo |
| |
$SHELL $ac_sub_srcdir/configure --help=recursive |
| |
elif test -f $ac_sub_srcdir/configure.ac || |
| |
test -f $ac_sub_srcdir/configure.in; then |
| |
echo |
| |
$ac_configure --help |
| |
else |
| |
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
| |
fi |
| |
cd $ac_popdir |
| |
done |
| |
fi |
| |
|
| |
test -n "$ac_init_help" && exit 0 |
| |
if $ac_init_version; then |
| |
cat <<\EOF |
| |
|
| |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| |
Free Software Foundation, Inc. |
| |
This configure script is free software; the Free Software Foundation |
| |
gives unlimited permission to copy, distribute and modify it. |
| |
|
| |
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software |
| |
Foundation, Inc. |
| |
|
| |
This file is part of the GNU MP Library. |
| |
|
| |
The GNU MP Library is free software; you can redistribute it and/or modify |
| |
it under the terms of the GNU Lesser General Public License as published |
| |
by the Free Software Foundation; either version 2.1 of the License, or (at |
| |
your option) any later version. |
| |
|
| |
The GNU MP Library is distributed in the hope that it will be useful, but |
| |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| |
License for more details. |
| |
|
| |
You should have received a copy of the GNU Lesser General Public License |
| |
along with the GNU MP Library; see the file COPYING.LIB. If not, write to |
| |
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| |
MA 02111-1307, USA. |
| |
|
| |
EOF |
| |
exit 0 |
| |
fi |
| |
exec 5>config.log |
| |
cat >&5 <<EOF |
| |
This file contains any messages produced by compilers while |
| |
running configure, to aid debugging if configure makes a mistake. |
| |
|
| |
It was created by $as_me, which was |
| |
generated by GNU Autoconf 2.52. Invocation command line was |
| |
|
| |
$ $0 $@ |
| |
|
| |
EOF |
| |
{ |
| |
cat <<_ASUNAME |
| |
## ---------- ## |
| |
## Platform. ## |
| |
## ---------- ## |
| |
|
| |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| |
|
| |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| |
|
| |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| |
|
| |
PATH = $PATH |
| |
|
| |
_ASUNAME |
| |
} >&5 |
| |
|
| |
cat >&5 <<EOF |
| |
## ------------ ## |
| |
## Core tests. ## |
| |
## ------------ ## |
| |
|
| |
EOF |
| |
|
| |
# Keep a trace of the command line. |
| |
# Strip out --no-create and --no-recursion so they do not pile up. |
| |
# Also quote any args containing shell meta-characters. |
| |
ac_configure_args= |
| |
ac_sep= |
| |
for ac_arg |
| |
do |
| |
case $ac_arg in |
| |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| |
| --no-cr | --no-c) ;; |
| |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| |
ac_sep=" " ;; |
| |
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| |
ac_sep=" " ;; |
| |
esac |
| |
# Get rid of the leading space. |
| |
done |
| |
|
| |
# When interrupted or exit'd, cleanup temporary files, and complete |
| |
# config.log. We remove comments because anyway the quotes in there |
| |
# would cause problems or look ugly. |
| |
trap 'exit_status=$? |
| |
# Save into config.log some information that might help in debugging. |
| |
echo >&5 |
| |
echo "## ----------------- ##" >&5 |
| |
echo "## Cache variables. ##" >&5 |
| |
echo "## ----------------- ##" >&5 |
| |
echo >&5 |
| |
# The following way of writing the cache mishandles newlines in values, |
| |
{ |
| |
(set) 2>&1 | |
| |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| |
*ac_space=\ *) |
| |
sed -n \ |
| |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| |
;; |
| |
*) |
| |
sed -n \ |
| |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| |
;; |
| |
esac; |
| |
} >&5 |
| |
sed "/^$/d" confdefs.h >conftest.log |
| |
if test -s conftest.log; then |
| |
echo >&5 |
| |
echo "## ------------ ##" >&5 |
| |
echo "## confdefs.h. ##" >&5 |
| |
echo "## ------------ ##" >&5 |
| |
echo >&5 |
| |
cat conftest.log >&5 |
| |
fi |
| |
(echo; echo) >&5 |
| |
test "$ac_signal" != 0 && |
| |
echo "$as_me: caught signal $ac_signal" >&5 |
| |
echo "$as_me: exit $exit_status" >&5 |
| |
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
| |
exit $exit_status |
| |
' 0 |
| |
for ac_signal in 1 2 13 15; do |
| |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| |
done |
| |
ac_signal=0 |
| |
|
| |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| |
rm -rf conftest* confdefs.h |
| |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| |
echo >confdefs.h |
| |
|
| |
# Let the site file select an alternate cache file if it wants to. |
| |
# Prefer explicitly selected file to automatically selected ones. |
| |
if test -z "$CONFIG_SITE"; then |
| |
if test "x$prefix" != xNONE; then |
| |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| |
else |
| |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| |
fi |
| |
fi |
| |
for ac_site_file in $CONFIG_SITE; do |
| |
if test -r "$ac_site_file"; then |
| |
{ echo "$as_me:1114: loading site script $ac_site_file" >&5 |
| |
echo "$as_me: loading site script $ac_site_file" >&6;} |
| |
cat "$ac_site_file" >&5 |
| |
. "$ac_site_file" |
| |
fi |
| |
done |
| |
|
| |
if test -r "$cache_file"; then |
| |
# Some versions of bash will fail to source /dev/null (special |
| |
# files actually), so we avoid doing that. |
| |
if test -f "$cache_file"; then |
| |
{ echo "$as_me:1125: loading cache $cache_file" >&5 |
| |
echo "$as_me: loading cache $cache_file" >&6;} |
| |
case $cache_file in |
| |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
| |
*) . ./$cache_file;; |
| |
esac |
| |
fi |
| |
else |
| |
{ echo "$as_me:1133: creating cache $cache_file" >&5 |
| |
echo "$as_me: creating cache $cache_file" >&6;} |
| |
>$cache_file |
| |
fi |
| |
|
| |
# Check that the precious variables saved in the cache have kept the same |
| |
# value. |
| |
ac_cache_corrupted=false |
| |
for ac_var in `(set) 2>&1 | |
| |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| |
eval ac_new_set=\$ac_env_${ac_var}_set |
| |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| |
eval ac_new_val="\$ac_env_${ac_var}_value" |
| |
case $ac_old_set,$ac_new_set in |
| |
set,) |
| |
{ echo "$as_me:1149: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| |
ac_cache_corrupted=: ;; |
| |
,set) |
| |
{ echo "$as_me:1153: error: \`$ac_var' was not set in the previous run" >&5 |
| |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| |
ac_cache_corrupted=: ;; |
| |
,);; |
| |
*) |
| |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| |
{ echo "$as_me:1159: error: \`$ac_var' has changed since the previous run:" >&5 |
| |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| |
{ echo "$as_me:1161: former value: $ac_old_val" >&5 |
| |
echo "$as_me: former value: $ac_old_val" >&2;} |
| |
{ echo "$as_me:1163: current value: $ac_new_val" >&5 |
| |
echo "$as_me: current value: $ac_new_val" >&2;} |
| |
ac_cache_corrupted=: |
| |
fi;; |
| |
esac |
| |
# Pass precious variables to config.status. It doesn't matter if |
| |
# we pass some twice (in addition to the command line arguments). |
| |
if test "$ac_new_set" = set; then |
| |
case $ac_new_val in |
| |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| |
ac_configure_args="$ac_configure_args '$ac_arg'" |
| |
;; |
| |
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| |
;; |
| |
esac |
| |
fi |
| |
done |
| |
if $ac_cache_corrupted; then |
| |
{ echo "$as_me:1182: error: changes in the environment can compromise the build" >&5 |
| |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| |
{ { echo "$as_me:1184: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| |
*c*,-n*) ECHO_N= ECHO_C=' |
| |
' ECHO_T=' ' ;; |
| |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| |
esac |
| |
echo "#! $SHELL" >conftest.sh |
| |
echo "exit 0" >>conftest.sh |
| |
chmod +x conftest.sh |
| |
if { (echo "$as_me:1204: PATH=\".;.\"; conftest.sh") >&5 |
| |
(PATH=".;."; conftest.sh) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:1207: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
ac_path_separator=';' |
| |
else |
| |
ac_path_separator=: |
| |
fi |
| |
PATH_SEPARATOR="$ac_path_separator" |
| |
rm -f conftest.sh |
| |
|
| |
# If --target is not used then $target_alias is empty, but if say |
| |
# "./configure athlon-pc-freebsd3.5" is used, then all three of |
| |
# $build_alias, $host_alias and $target_alias are set to |
| |
# "athlon-pc-freebsd3.5". |
| # |
# |
| config_shell=${CONFIG_SHELL-/bin/sh} |
if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then |
| |
{ { echo "$as_me:1222: error: --target is not appropriate for GMP |
| |
Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system |
| |
explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the |
| |
manual for more on this)." >&5 |
| |
echo "$as_me: error: --target is not appropriate for GMP |
| |
Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system |
| |
explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the |
| |
manual for more on this)." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| NO_EDIT="This file was generated automatically by configure. Do not edit." |
gmp_configm4="config.m4" |
| |
gmp_tmpconfigm4=cnfm4.tmp |
| |
gmp_tmpconfigm4i=cnfm4i.tmp |
| |
gmp_tmpconfigm4p=cnfm4p.tmp |
| |
rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p |
| |
|
| ## this is a little touchy and won't always work, but... |
# CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir. |
| ## |
# The pattern here tests for an absolute path the same way as |
| ## if the argv[0] starts with a slash then it is an absolute name that can (and |
# _AC_OUTPUT_FILES in autoconf acgeneral.m4. |
| ## must) be used as is. |
case $srcdir in |
| ## |
[\\/]* | ?:[\\/]* ) tmp="$srcdir" ;; |
| ## otherwise, if argv[0] has no slash in it, we can assume that it is on the |
*) tmp="../$srcdir" ;; |
| ## path. Since PATH might include "." we also add `pwd` to the end of PATH. |
esac |
| ## |
echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4 |
| |
|
| progname=$0 |
# All CPUs use asm-defs.m4 |
| # if PWD already has a value, it is probably wrong. |
echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i |
| if [ -n "$PWD" ]; then PWD=`pwd`; fi |
|
| |
|
| case "${progname}" in |
ac_aux_dir= |
| /*) ;; |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| */*) ;; |
if test -f $ac_dir/install-sh; then |
| |
ac_aux_dir=$ac_dir |
| |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| |
break |
| |
elif test -f $ac_dir/install.sh; then |
| |
ac_aux_dir=$ac_dir |
| |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| |
break |
| |
elif test -f $ac_dir/shtool; then |
| |
ac_aux_dir=$ac_dir |
| |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| |
break |
| |
fi |
| |
done |
| |
if test -z "$ac_aux_dir"; then |
| |
{ { echo "$as_me:1268: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| |
|
| |
# Make sure we can run config.sub. |
| |
$ac_config_sub sun4 >/dev/null 2>&1 || |
| |
{ { echo "$as_me:1278: error: cannot run $ac_config_sub" >&5 |
| |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
|
| |
echo "$as_me:1282: checking build system type" >&5 |
| |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| |
if test "${ac_cv_build+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_cv_build_alias=$build_alias |
| |
test -z "$ac_cv_build_alias" && |
| |
ac_cv_build_alias=`$ac_config_guess` |
| |
test -z "$ac_cv_build_alias" && |
| |
{ { echo "$as_me:1291: error: cannot guess build type; you must specify one" >&5 |
| |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| |
{ { echo "$as_me:1295: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
|
| |
fi |
| |
echo "$as_me:1300: result: $ac_cv_build" >&5 |
| |
echo "${ECHO_T}$ac_cv_build" >&6 |
| |
build=$ac_cv_build |
| |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| |
|
| |
echo "$as_me:1307: checking host system type" >&5 |
| |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| |
if test "${ac_cv_host+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_cv_host_alias=$host_alias |
| |
test -z "$ac_cv_host_alias" && |
| |
ac_cv_host_alias=$ac_cv_build_alias |
| |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| |
{ { echo "$as_me:1316: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
|
| |
fi |
| |
echo "$as_me:1321: result: $ac_cv_host" >&5 |
| |
echo "${ECHO_T}$ac_cv_host" >&6 |
| |
host=$ac_cv_host |
| |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| |
|
| |
tmp_host=`echo $host_cpu | sed 's/\./_/'` |
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_HOST_CPU_$tmp_host 1 |
| |
EOF |
| |
|
| |
echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p |
| |
|
| |
# Find a good install program. We prefer a C program (faster), |
| |
# so one script is as good as another. But avoid the broken or |
| |
# incompatible versions: |
| |
# SysV /etc/install, /usr/sbin/install |
| |
# SunOS /usr/etc/install |
| |
# IRIX /sbin/install |
| |
# AIX /bin/install |
| |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| |
# ./install, which can be erroneously created by make from ./install.sh. |
| |
echo "$as_me:1347: checking for a BSD compatible install" >&5 |
| |
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
| |
if test -z "$INSTALL"; then |
| |
if test "${ac_cv_path_install+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
for ac_dir in $PATH; do |
| |
IFS=$ac_save_IFS |
| |
# Account for people who put trailing slashes in PATH elements. |
| |
case $ac_dir/ in |
| |
/ | ./ | .// | /cC/* \ |
| |
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| |
| /usr/ucb/* ) ;; |
| |
*) |
| |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| |
# Don't use installbsd from OSF since it installs stuff as root |
| |
# by default. |
| |
for ac_prog in ginstall scoinst install; do |
| |
if $as_executable_p "$ac_dir/$ac_prog"; then |
| |
if test $ac_prog = install && |
| |
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| |
# AIX install. It has an incompatible calling convention. |
| |
: |
| |
elif test $ac_prog = install && |
| |
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| |
# program-specific install script used by HP pwplus--don't use. |
| |
: |
| |
else |
| |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
| |
break 2 |
| |
fi |
| |
fi |
| |
done |
| |
;; |
| |
esac |
| |
done |
| |
|
| |
fi |
| |
if test "${ac_cv_path_install+set}" = set; then |
| |
INSTALL=$ac_cv_path_install |
| |
else |
| |
# As a last resort, use the slow shell script. We don't cache a |
| |
# path for INSTALL within a source directory, because that will |
| |
# break other packages using the cache if that directory is |
| |
# removed, or if the path is relative. |
| |
INSTALL=$ac_install_sh |
| |
fi |
| |
fi |
| |
echo "$as_me:1396: result: $INSTALL" >&5 |
| |
echo "${ECHO_T}$INSTALL" >&6 |
| |
|
| |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| |
# It thinks the first close brace ends the variable substitution. |
| |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| |
|
| |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| |
|
| |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| |
|
| |
echo "$as_me:1407: checking whether build environment is sane" >&5 |
| |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| |
# Just in case |
| |
sleep 1 |
| |
echo timestamp > conftest.file |
| |
# Do `set' in a subshell so we don't clobber the current shell's |
| |
# arguments. Must try -L first in case configure is actually a |
| |
# symlink; some systems play weird games with the mod time of symlinks |
| |
# (eg FreeBSD returns the mod time of the symlink's containing |
| |
# directory). |
| |
if ( |
| |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| |
if test "$*" = "X"; then |
| |
# -L didn't work. |
| |
set X `ls -t $srcdir/configure conftest.file` |
| |
fi |
| |
rm -f conftest.file |
| |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| |
|
| |
# If neither matched, then we have a broken ls. This can happen |
| |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| |
# broken ls alias from the environment. This has actually |
| |
# happened. Such a system could not be considered "sane". |
| |
{ { echo "$as_me:1431: error: ls -t appears to fail. Make sure there is not a broken |
| |
alias in your environment" >&5 |
| |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| |
alias in your environment" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
test "$2" = conftest.file |
| |
) |
| |
then |
| |
# Ok. |
| |
: |
| |
else |
| |
{ { echo "$as_me:1444: error: newly created file is older than distributed files! |
| |
Check your system clock" >&5 |
| |
echo "$as_me: error: newly created file is older than distributed files! |
| |
Check your system clock" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
echo "$as_me:1450: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
test "$program_prefix" != NONE && |
| |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| |
# Use a double $ so make ignores it. |
| |
test "$program_suffix" != NONE && |
| |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| |
# Double any \ or $. echo might interpret backslashes. |
| |
# By default was `s,x,x', remove it if useless. |
| |
cat <<\_ACEOF >conftest.sed |
| |
s/[\\$]/&&/g;s/;s,x,x,$// |
| |
_ACEOF |
| |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| |
rm conftest.sed |
| |
|
| |
# expand $ac_aux_dir to an absolute path |
| |
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` |
| |
|
| |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| |
# Use eval to expand $SHELL |
| |
if eval "$MISSING --run true"; then |
| |
am_missing_run="$MISSING --run " |
| |
else |
| |
am_missing_run= |
| |
am_backtick='`' |
| |
{ echo "$as_me:1475: WARNING: ${am_backtick}missing' script is too old or missing" >&5 |
| |
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} |
| |
fi |
| |
|
| |
for ac_prog in mawk gawk nawk awk |
| |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo "$as_me:1483: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_AWK+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$AWK"; then |
| |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_AWK="$ac_prog" |
| |
echo "$as_me:1498: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
AWK=$ac_cv_prog_AWK |
| |
if test -n "$AWK"; then |
| |
echo "$as_me:1506: result: $AWK" >&5 |
| |
echo "${ECHO_T}$AWK" >&6 |
| |
else |
| |
echo "$as_me:1509: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$AWK" && break |
| |
done |
| |
|
| |
echo "$as_me:1516: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| |
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.make <<\EOF |
| |
all: |
| |
@echo 'ac_maketemp="${MAKE}"' |
| |
EOF |
| |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| |
if test -n "$ac_maketemp"; then |
| |
eval ac_cv_prog_make_${ac_make}_set=yes |
| |
else |
| |
eval ac_cv_prog_make_${ac_make}_set=no |
| |
fi |
| |
rm -f conftest.make |
| |
fi |
| |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| |
echo "$as_me:1536: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
SET_MAKE= |
| |
else |
| |
echo "$as_me:1540: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
SET_MAKE="MAKE=${MAKE-make}" |
| |
fi |
| |
|
| |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| |
if test "${enable_dependency_tracking+set}" = set; then |
| |
enableval="$enable_dependency_tracking" |
| |
|
| |
fi; |
| |
if test "x$enable_dependency_tracking" != xno; then |
| |
am_depcomp="$ac_aux_dir/depcomp" |
| |
AMDEPBACKSLASH='\' |
| |
fi |
| |
|
| |
if test "x$enable_dependency_tracking" != xno; then |
| |
AMDEP_TRUE= |
| |
AMDEP_FALSE='#' |
| |
else |
| |
AMDEP_TRUE='#' |
| |
AMDEP_FALSE= |
| |
fi |
| |
|
| |
rm -f .deps 2>/dev/null |
| |
mkdir .deps 2>/dev/null |
| |
if test -d .deps; then |
| |
DEPDIR=.deps |
| |
else |
| |
# MS-DOS does not allow filenames that begin with a dot. |
| |
DEPDIR=_deps |
| |
fi |
| |
rmdir .deps 2>/dev/null |
| |
|
| |
# test to see if srcdir already configured |
| |
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && |
| |
test -f $srcdir/config.status; then |
| |
{ { echo "$as_me:1576: error: source directory already configured; run \"make distclean\" there first" >&5 |
| |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
# Define the identity of the package. |
| |
PACKAGE=gmp |
| |
VERSION=4.1.2 |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define PACKAGE "$PACKAGE" |
| |
EOF |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define VERSION "$VERSION" |
| |
EOF |
| |
|
| |
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
| |
# the ones we care about. |
| |
|
| |
# Autoconf 2.50 always computes EXEEXT. However we need to be |
| |
# compatible with 2.13, for now. So we always define EXEEXT, but we |
| |
# don't compute it. |
| |
|
| |
# Similar for OBJEXT -- only we only use OBJEXT if the user actually |
| |
# requests that it be used. This is a bit dumb. |
| |
: ${OBJEXT=o} |
| |
|
| |
# Some tools Automake needs. |
| |
|
| |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| |
|
| |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| |
|
| |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| |
|
| |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| |
|
| |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| |
|
| |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
| |
|
| |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| |
|
| |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| |
|
| |
# We need awk for the "check" target. The system "awk" is bad on |
| |
# some platforms. |
| |
|
| |
ac_config_headers="$ac_config_headers config.h:config.in" |
| |
|
| |
echo "$as_me:1627: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| |
if test "${enable_maintainer_mode+set}" = set; then |
| |
enableval="$enable_maintainer_mode" |
| |
USE_MAINTAINER_MODE=$enableval |
| |
else |
| |
USE_MAINTAINER_MODE=no |
| |
fi; |
| |
echo "$as_me:1636: result: $USE_MAINTAINER_MODE" >&5 |
| |
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| |
|
| |
if test $USE_MAINTAINER_MODE = yes; then |
| |
MAINTAINER_MODE_TRUE= |
| |
MAINTAINER_MODE_FALSE='#' |
| |
else |
| |
MAINTAINER_MODE_TRUE='#' |
| |
MAINTAINER_MODE_FALSE= |
| |
fi |
| |
MAINT=$MAINTAINER_MODE_TRUE |
| |
|
| |
# Check whether --enable-assert or --disable-assert was given. |
| |
if test "${enable_assert+set}" = set; then |
| |
enableval="$enable_assert" |
| |
case $enableval in |
| |
yes|no) ;; |
| |
*) { { echo "$as_me:1653: error: bad value $enableval for --enable-assert, need yes or no" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_assert=no |
| |
fi; |
| |
|
| |
if test "$enable_assert" = "yes"; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_ASSERT 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
# Check whether --enable-alloca or --disable-alloca was given. |
| |
if test "${enable_alloca+set}" = set; then |
| |
enableval="$enable_alloca" |
| |
case $enableval in |
| |
alloca|malloc-reentrant|malloc-notreentrant) ;; |
| |
yes|no|reentrant|notreentrant) ;; |
| |
debug) ;; |
| *) |
*) |
| PATH=$PATH:${PWD=`pwd`} ; export PATH |
{ { echo "$as_me:1677: error: bad value $enableval for --enable-alloca, need one of: |
| |
yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-alloca, need one of: |
| |
yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_alloca=reentrant |
| |
fi; |
| |
|
| |
# IMPROVE ME: The default for C++ is disabled. The tests currently |
| |
# performed below for a working C++ compiler are not particularly strong, |
| |
# and in general can't be expected to get the right setup on their own. The |
| |
# most significant problem is getting the ABI the same. Defaulting CXXFLAGS |
| |
# to CFLAGS takes only a small step towards this. It's also probably worth |
| |
# worrying whether the C and C++ runtimes from say gcc and a vendor C++ can |
| |
# work together. Some rather broken C++ installations were encountered |
| |
# during testing, and though such things clearly aren't GMP's problem, if |
| |
# --enable-cxx=detect were to be the default then some careful checks of |
| |
# which, if any, C++ compiler on the system is up to scratch would be |
| |
# wanted. |
| |
# |
| |
# Check whether --enable-cxx or --disable-cxx was given. |
| |
if test "${enable_cxx+set}" = set; then |
| |
enableval="$enable_cxx" |
| |
case $enableval in |
| |
yes|no|detect) ;; |
| |
*) { { echo "$as_me:1704: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_cxx=no |
| |
fi; |
| |
|
| |
# Check whether --enable-fft or --disable-fft was given. |
| |
if test "${enable_fft+set}" = set; then |
| |
enableval="$enable_fft" |
| |
case $enableval in |
| |
yes|no) ;; |
| |
*) { { echo "$as_me:1717: error: bad value $enableval for --enable-fft, need yes or no" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_fft=yes |
| |
fi; |
| |
|
| |
if test "$enable_fft" = "yes"; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_FFT 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
# Check whether --enable-mpbsd or --disable-mpbsd was given. |
| |
if test "${enable_mpbsd+set}" = set; then |
| |
enableval="$enable_mpbsd" |
| |
case $enableval in |
| |
yes|no) ;; |
| |
*) { { echo "$as_me:1738: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_mpbsd=no |
| |
fi; |
| |
|
| |
if test "$enable_mpbsd" = "yes"; then |
| |
WANT_MPBSD_TRUE= |
| |
WANT_MPBSD_FALSE='#' |
| |
else |
| |
WANT_MPBSD_TRUE='#' |
| |
WANT_MPBSD_FALSE= |
| |
fi |
| |
|
| |
# Check whether --enable-mpfr or --disable-mpfr was given. |
| |
if test "${enable_mpfr+set}" = set; then |
| |
enableval="$enable_mpfr" |
| |
case $enableval in |
| |
yes|no) ;; |
| |
*) { { echo "$as_me:1759: error: bad value $enableval for --enable-mpfr, need yes or no" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-mpfr, need yes or no" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_mpfr=no |
| |
fi; |
| |
|
| |
if test "$enable_mpfr" = "yes"; then |
| |
WANT_MPFR_TRUE= |
| |
WANT_MPFR_FALSE='#' |
| |
else |
| |
WANT_MPFR_TRUE='#' |
| |
WANT_MPFR_FALSE= |
| |
fi |
| |
|
| |
# Check whether --enable-nails or --disable-nails was given. |
| |
if test "${enable_nails+set}" = set; then |
| |
enableval="$enable_nails" |
| |
case $enableval in |
| |
yes|no|[0-9]|[0-9][0-9]) ;; |
| |
*) { { echo "$as_me:1780: error: bad value $enableval for --enable-nails, need yes/no/number" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_nails=no |
| |
fi; |
| |
|
| |
case $enable_nails in |
| |
yes) GMP_NAIL_BITS=2 ;; |
| |
no) GMP_NAIL_BITS=0 ;; |
| |
*) GMP_NAIL_BITS=$enable_nails ;; |
| |
esac |
| |
|
| |
# Check whether --enable-profiling or --disable-profiling was given. |
| |
if test "${enable_profiling+set}" = set; then |
| |
enableval="$enable_profiling" |
| |
case $enableval in |
| |
no|prof|gprof) ;; |
| |
*) { { echo "$as_me:1799: error: bad value $enableval for --enable-profiling, need no/prof/gprof" >&5 |
| |
echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
enable_profiling=no |
| |
fi; |
| |
|
| |
echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
# -fomit-frame-pointer is incompatible with -pg, on x86s at least |
| |
if test "$enable_profiling" = gprof; then |
| |
fomit_frame_pointer= |
| |
else |
| |
fomit_frame_pointer="-fomit-frame-pointer" |
| |
fi |
| |
|
| |
# Check whether --with-readline or --without-readline was given. |
| |
if test "${with_readline+set}" = set; then |
| |
withval="$with_readline" |
| |
case $withval in |
| |
yes|no|detect) ;; |
| |
*) { { echo "$as_me:1821: error: bad value $withval for --with-readline, need yes/no/detect" >&5 |
| |
echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
else |
| |
with_readline=detect |
| |
fi; |
| |
|
| |
# Table of compilers, options, and mpn paths. This code has various related |
| |
# purposes |
| |
# |
| |
# - better default CC/CFLAGS selections than autoconf otherwise gives |
| |
# - default CC/CFLAGS selections for extra CPU types specific to GMP |
| |
# - a few tests for known bad compilers |
| |
# - choice of ABIs on suitable systems |
| |
# - selection of corresponding mpn search path |
| |
# |
| |
# After GMP specific searches and tests, the standard autoconf AC_PROG_CC is |
| |
# called. User selections of CC etc are respected. |
| |
# |
| |
# Care is taken not to use macros like AC_TRY_COMPILE during the GMP |
| |
# pre-testing, since they of course depend on AC_PROG_CC, and also some of |
| |
# them cache their results, which is not wanted. |
| |
# |
| |
# The ABI selection mechanism is unique to GMP. All that reaches autoconf |
| |
# is a different selection of CC/CFLAGS according to the best ABI the system |
| |
# supports, and/or what the user selects. Naturally the mpn assembler code |
| |
# selected is very dependent on the ABI. |
| |
# |
| |
# The closest the standard tools come to a notion of ABI is something like |
| |
# "sparc64" which encodes a CPU and an ABI together. This doesn't seem to |
| |
# scale well for GMP, where exact CPU types like "ultrasparc2" are wanted, |
| |
# separate from the ABI used on them. |
| |
# |
| |
# |
| |
# The variables set here are |
| |
# |
| |
# cclist the compiler choices |
| |
# xx_cflags flags for compiler xx |
| |
# xx_cppflags cpp flags for compiler xx |
| |
# xx_cflags_optlist list of sets of optional flags |
| |
# xx_cflags_yyy set yyy of optional flags for compiler xx |
| |
# xx_ldflags -Wc,-foo flags for libtool linking with compiler xx |
| |
# ar_flags extra flags for $AR |
| |
# nm_flags extra flags for $NM |
| |
# limb limb size, can be "longlong" |
| |
# path mpn search path |
| |
# extra_functions extra mpn functions |
| |
# |
| |
# Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are |
| |
# tried, and the first flag that works will be used. An optlist like "arch |
| |
# cpu optimize" can be used to get multiple independent sets of flags tried. |
| |
# The first that works from each will be used. If no flag in a set works |
| |
# then nothing from that set is added. |
| |
# |
| |
# For multiple ABIs, the scheme extends as follows. |
| |
# |
| |
# abilist set of ABI choices |
| |
# cclist_aa compiler choices in ABI aa |
| |
# xx_aa_cflags flags for xx in ABI aa |
| |
# xx_aa_cppflags cpp flags for xx in ABI aa |
| |
# xx_aa_cflags_optlist list of sets of optional flags in ABI aa |
| |
# xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa |
| |
# xx_aa_ldflags -Wc,-foo flags for libtool linking |
| |
# ar_aa_flags extra flags for $AR in ABI aa |
| |
# nm_aa_flags extra flags for $NM in ABI aa |
| |
# limb_aa limb size in ABI aa, can be "longlong" |
| |
# path_aa mpn search path in ABI aa |
| |
# extra_functions_aa extra mpn functions in ABI aa |
| |
# |
| |
# As a convenience, the unadorned xx_cflags (etc) are used for the last ABI |
| |
# in ablist, if an xx_aa_cflags for that ABI isn't given. For example if |
| |
# abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but |
| |
# for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is |
| |
# defined. This makes it easy to add some 64-bit compilers and flags to an |
| |
# unadorned 32-bit set. |
| |
# |
| |
# limb=longlong (or limb_aa=longlong) applies to all compilers within that |
| |
# ABI. It won't work to have some needing long long and some not, since a |
| |
# single instantiated gmp.h will be used by both. |
| |
# |
| |
# SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are |
| |
# also set here, with an ABI suffix. |
| |
# |
| |
# |
| |
# |
| |
# A table-driven approach like this to mapping cpu type to good compiler |
| |
# options is a bit of a maintenance burden, but there's not much uniformity |
| |
# between options specifications on different compilers. Some sort of |
| |
# separately updatable tool might be cute. |
| |
# |
| |
# The use of lots of variables like this, direct and indirect, tends to |
| |
# obscure when and how various things are done, but unfortunately it's |
| |
# pretty much the only way. If shell subroutines were portable then actual |
| |
# code like "if this .. do that" could be written, but attempting the same |
| |
# with full copies of GMP_PROG_CC_WORKS etc expanded at every point would |
| |
# hugely bloat the output. |
| |
|
| |
# abilist needs to be non-empty, "standard" is just a generic name here |
| |
abilist="standard" |
| |
|
| |
# FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring |
| |
# c89 over cc here. But note that on HP-UX c89 provides a castrated |
| |
# environment, and would want to be excluded somehow. Maybe |
| |
# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and |
| |
# we don't need to worry. |
| |
# |
| |
cclist="gcc cc" |
| |
|
| |
gcc_cflags="-g -O2" |
| |
gcc_64_cflags="-g -O2" |
| |
cc_cflags="-O" |
| |
cc_64_cflags="-O" |
| |
|
| |
SPEED_CYCLECOUNTER_OBJ= |
| |
cyclecounter_size=2 |
| |
|
| |
HAVE_HOST_CPU_FAMILY_power=0 |
| |
|
| |
HAVE_HOST_CPU_FAMILY_powerpc=0 |
| |
|
| |
case $host in |
| |
|
| |
a29k*-*-*) |
| |
path="a29k" |
| |
;; |
| |
|
| |
alpha*-*-*) |
| |
case $host_cpu in |
| |
alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;; |
| |
alphaev6*) path="alpha/ev6 alpha/ev5 alpha" ;; |
| |
*) path="alpha" ;; |
| |
esac |
| |
extra_functions="cntlz" |
| |
gcc_cflags_optlist="cpu asm" |
| |
|
| |
# gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently. |
| |
# gcc 2.95 and 3.0 know ev4, ev5, ev56, pca56, ev6. |
| |
# gcc 3.1 pre-releases add ev67. |
| |
# |
| |
case $host_cpu in |
| |
alpha) gcc_cflags_cpu="-mcpu=ev4" ;; |
| |
alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;; |
| |
alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;; |
| |
alphapca56 | alphapca57) |
| |
gcc_cflags_cpu="-mcpu=pca56" ;; |
| |
alphaev6) gcc_cflags_cpu="-mcpu=ev6" ;; |
| |
alphaev67 | alphaev68) |
| |
gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6" ;; |
| |
esac |
| |
|
| |
# On old versions of gcc, which don't know -mcpu=, we believe an |
| |
# explicit -Wa,-mev5 etc will be necessary to put the assembler in |
| |
# the right mode for our .asm files and longlong.h asm blocks. |
| |
# |
| |
# On newer versions of gcc, when -mcpu= is known, we must give a |
| |
# -Wa which is at least as high as the code gcc will generate, |
| |
# since the options ordering seems to make our setting override |
| |
# that passed by gcc. |
| |
# |
| |
# gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for |
| |
# ctlz and cttz (in 2.10.0 at least). |
| |
# |
| |
# OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems |
| |
# to affect insns like ldbu which are expanded as macros when necessary. |
| |
# Insns like ctlz which were never available as macros are always |
| |
# accepted and always generate their plain code. |
| |
# |
| |
case $host_cpu in |
| |
alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;; |
| |
alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;; |
| |
alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;; |
| |
alphapca56 | alphapca57) |
| |
gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;; |
| |
alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;; |
| |
alphaev67 | alphaev68) |
| |
gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;; |
| |
esac |
| |
|
| |
# It might be better to ask "cc" whether it's Cray C or DEC C, |
| |
# instead of relying on the OS part of $host. But it's hard to |
| |
# imagine either of those compilers anywhere except their native |
| |
# systems. |
| |
# |
| |
case $host in |
| |
*-cray-unicos*) |
| |
cc_cflags="-O" # no -g, it silently disables all optimizations |
| |
|
| |
echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
# Don't perform any assembly syntax tests on this beast. |
| |
gmp_asm_syntax_testing=no |
| ;; |
;; |
| |
*-*-osf*) |
| |
|
| |
echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
cc_cflags="" |
| |
cc_cflags_optlist="opt cpu" |
| |
|
| |
# not sure if -fast works on old versions, so make it optional |
| |
cc_cflags_opt="-fast -O2" |
| |
|
| |
# DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6. |
| |
# Compaq C V6.3-029 adds ev67. |
| |
# |
| |
case $host_cpu in |
| |
alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;; |
| |
alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;; |
| |
alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;; |
| |
alphapca56 | alphapca57) |
| |
cc_cflags_cpu="-arch~pca56~-tune~pca56" ;; |
| |
alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;; |
| |
alphaev67 | alphaev68) |
| |
cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;; |
| |
esac |
| |
;; |
| |
*) |
| |
|
| |
echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
;; |
| |
esac |
| |
|
| |
case $host in |
| |
*-*-unicos*) |
| |
# tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes |
| |
;; |
| |
*) |
| |
SPEED_CYCLECOUNTER_OBJ=alpha.lo |
| |
cyclecounter_size=1 ;; |
| |
esac |
| |
;; |
| |
|
| |
# Cray vector machines. |
| |
# This must come after alpha* so that we can recognize present and future |
| |
# vector processors with a wildcard. |
| |
*-cray-unicos*) |
| |
gmp_asm_syntax_testing=no |
| |
cclist="cc" |
| |
# We used to have -hscalar0 here as a workaround for miscompilation of |
| |
# mpz/import.c, but let's hope Cray fixes their bugs instead, since |
| |
# -hscalar0 causes disastrously poor code to be generated. |
| |
cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B" |
| |
path="cray" |
| |
;; |
| |
|
| |
arm*-*-*) |
| |
path="arm" |
| |
gcc_cflags="$gcc_cflags $fomit_frame_pointer" |
| |
gcc_testlist="gcc-arm-umodsi" |
| |
extra_functions="udiv" |
| |
|
| |
echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
;; |
| |
|
| |
clipper*-*-*) |
| |
path="clipper" |
| |
;; |
| |
|
| |
# Fujitsu |
| |
f30[01]-fujitsu-sysv*) |
| |
cclist="gcc vcc" |
| |
# FIXME: flags for vcc? |
| |
vcc_cflags="-g" |
| |
path="fujitsu" |
| |
;; |
| |
|
| |
hppa*-*-*) |
| |
# HP cc is K&R by default, but AM_C_PROTOTYPES will add "-Ae", or "-Aa |
| |
# -D_HPUX_SOURCE", to put it into ansi mode, if possible. |
| |
|
| |
# default to pa7100 |
| |
gcc_cflags="-g -O2" |
| |
gcc_cflags_optlist="arch" |
| |
gcc_cflags_arch="-mpa-risc-1-1" |
| |
cc_cflags="+DA1.1 +O2" |
| |
path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" |
| |
extra_functions="udiv_qrnnd" |
| |
|
| |
SPEED_CYCLECOUNTER_OBJ=hppa.lo |
| |
cyclecounter_size=1 |
| |
|
| |
case $host in |
| |
hppa1.0*-*-*) |
| |
# override back to plain 1.0 |
| |
gcc_cflags_optlist= |
| |
cc_cflags="+O2" |
| |
path="pa32" |
| |
;; |
| |
hppa7000*-*-*) |
| |
path="pa32/hppa1_1 pa32" |
| |
;; |
| |
|
| |
hppa2.0*-*-*) |
| |
abilist="2.0n 1.0" |
| |
|
| |
# FIXME: It's suspected that an assembler feature test might be |
| |
# necessary before -mpa-risc-2-0 can be enabled, since it's not |
| |
# clear (as of gcc 2.95.2) whether that option always gives an |
| |
# explicit ".level 2.0" or whatever to the assembler. In any case, |
| |
# under gcc 2.95.2 it only enables a few extra floating point insns, |
| |
# so it's not very important. |
| |
# |
| |
# gmp_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1" |
| |
|
| |
# FIXME: path should be "pa32/hppa2_0 pa32/hppa1_1 pa32" |
| |
path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" |
| |
|
| |
# no gcc support for long long in 2.0n |
| |
cclist_20n="cc" |
| |
# +O3 causes problems with fp rounding in mpfr/tests/tdiv. |
| |
cc_20n_cflags="+DA2.0 +e +O2" |
| |
cc_20n_testlist="hpc-hppa-2-0" |
| |
path_20n="pa64" |
| |
limb_20n=longlong |
| |
extra_functions_20n="umul_ppmm udiv_qrnnd" |
| |
SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo |
| |
cyclecounter_size_20n=2 |
| |
|
| |
# ABI=2.0w is available for hppa2.0w and hppa2.0, but not for hppa2.0n. |
| |
case $host in |
| |
hppa2.0n-*-*) ;; |
| |
*) |
| |
# HPUX 11 or up is required to run 2.0w. Not sure about other |
| |
# systems (GNU/Linux for instance), but lets assume they're ok. |
| |
case $host in |
| |
*-*-hpux1[1-9]*) abilist="2.0w $abilist" ;; |
| |
*-*-hpux*) ;; |
| |
*) abilist="2.0w $abilist" ;; |
| |
esac |
| |
|
| |
# gcc support for 2.0w is in progress |
| |
cclist_20w="cc" |
| |
cc_20w_cflags="+DD64 +O2" # +O3 causes problems with fp rounding in mpfr/tests/tdiv. |
| |
cc_20w_testlist="hpc-hppa-2-0" |
| |
path_20w="pa64" |
| |
extra_functions_20w="umul_ppmm udiv_qrnnd" |
| |
SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo |
| |
cyclecounter_size_20w=2 |
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
i960*-*-*) |
| |
path="i960" |
| |
;; |
| |
|
| |
ia64*-*-*) |
| |
path="ia64" |
| |
|
| |
echo "include_mpn(\`ia64/default.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
SPEED_CYCLECOUNTER_OBJ=ia64.lo |
| |
;; |
| |
|
| |
# Motorola 68k |
| |
# |
| |
m68*-*-*) |
| |
|
| |
echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
gcc_cflags="-g $fomit_frame_pointer" |
| |
gcc_cflags_optlist="optimize arch" |
| |
gcc_cflags_optimize="-O2" # munged below on gcc 2.95.x |
| |
|
| |
# gcc 2.7.2 doesn't know -m68060 or -mcpu32, so let them fall back |
| |
# appropriately. |
| |
# FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2. |
| |
# |
| |
case $host in |
| |
m68020-*-*) gcc_cflags_arch="-m68020" ;; |
| |
m68030-*-*) gcc_cflags_arch="-m68030" ;; |
| |
m68040-*-*) gcc_cflags_arch="-m68040" ;; |
| |
m68060-*-*) gcc_cflags_arch="-m68060 -m68040" ;; |
| |
m68360-*-*) gcc_cflags_arch="-mcpu32 -m68000" ;; |
| |
*) gcc_cflags_arch="-m68000" ;; |
| |
esac |
| |
|
| |
# FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be |
| |
# tested. Will need to introduce an m68k/cpu32 if m68k/mc62020 ever uses |
| |
# the bitfield instructions. |
| |
case $host in |
| |
m680[2346]0-*-* | m68360-*-*) path="m68k/mc68020 m68k" |
| |
extra_functions="udiv umul" ;; |
| |
*) path="m68k" ;; |
| |
esac |
| |
;; |
| |
|
| |
# Motorola 88k |
| |
m88k*-*-*) |
| |
path="m88k" |
| |
;; |
| |
m88110*-*-*) |
| |
# FIXME: Use `-O2'? |
| |
gcc_cflags="-g -O -m88110" |
| |
path="m88k/mc88110 m88k" |
| |
;; |
| |
|
| |
# National Semiconductor 32k |
| |
ns32k*-*-*) |
| |
path="ns32k" |
| |
;; |
| |
|
| |
# IRIX 5 and earlier can only run 32-bit o32. |
| |
# |
| |
# IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is |
| |
# preferred over 64, but only because that's been the default in past |
| |
# versions of GMP. The two are equally efficient. |
| |
# |
| |
# Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not |
| |
# supporting n32 or 64. |
| |
# |
| |
# FIXME: It's necessary to pass -mabi or -n32 to the compiler when |
| |
# linking. Libtool used to strip them, hence the ldflags here. It |
| |
# looks like it has something equivalent itself now, so perhaps |
| |
# these can be removed. |
| |
# |
| |
mips*-*-*) |
| |
abilist="o32" |
| |
gcc_cflags_optlist="abi" |
| |
gcc_cflags_abi="-mabi=32" |
| |
gcc_testlist="gcc-mips-o32" |
| |
path="mips32" |
| |
cc_cflags="-O2 -o32" # no -g, it disables all optimizations |
| |
extra_functions="umul" |
| |
# this suits both mips32 and mips64 |
| |
|
| |
echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
case $host in |
| |
mips64*-*-* | mips*-*-irix6789*) |
| |
abilist="n32 64 o32" |
| |
|
| |
cclist_n32="gcc cc" |
| |
gcc_n32_cflags="-g -O2 -mabi=n32" |
| |
gcc_n32_ldflags="-Wc,-mabi=n32" |
| |
# Pass just -O1, MIPSpro 7.2.1 miscompiles mpn/generic/divrem_1.c |
| |
# cvs version 1.20, for -O2 and -O3 |
| |
cc_n32_cflags="-O1 -n32" # no -g, it disables all optimizations |
| |
cc_n32_ldflags="-Wc,-n32" |
| |
limb_n32=longlong |
| |
path_n32="mips64" |
| |
extra_functions_n32="umul" |
| |
|
| |
cclist_64="gcc cc" |
| |
gcc_64_cflags="-g -O2 -mabi=64" |
| |
gcc_64_ldflags="-Wc,-mabi=64" |
| |
cc_64_cflags="-O2 -64" # no -g, it disables all optimizations |
| |
cc_64_ldflags="-Wc,-64" |
| |
path_64="mips64" |
| |
extra_functions_64="umul" |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
# Darwin (powerpc-apple-darwin1.3) has gcc installed as cc. |
| |
# |
| |
# The darwin assembler doesn't accept "-mppc", so gcc_cflags_asm is |
| |
# optional. The right flag would be "-arch ppc" or some such, but that's |
| |
# already the default. |
| |
# |
| |
# The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp |
| |
# since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h, |
| |
# and so always ends up running the plain preprocessor anyway. This could |
| |
# be done in CPPFLAGS rather than CFLAGS, but there's not many places |
| |
# preprocessing is done separately, and this is only a speedup, the normal |
| |
# preprocessor gets run if there's any problems. |
| |
# |
| |
powerpc*-*-*) |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_HOST_CPU_FAMILY_powerpc 1 |
| |
EOF |
| |
|
| |
HAVE_HOST_CPU_FAMILY_powerpc=1 |
| |
cclist="gcc cc" |
| |
cc_cflags="-g -O2" |
| |
gcc_cflags="-g -O2 -mpowerpc" |
| |
gcc_cflags_optlist="asm precomp cpu" |
| |
gcc_cflags_asm="-Wa,-mppc" |
| |
gcc_cflags_precomp="-no-cpp-precomp" |
| |
extra_functions="umul" |
| |
|
| |
case $host_cpu in |
| |
powerpc740 | powerpc750 | powerpc7400) |
| |
path="powerpc32/750 powerpc32" ;; |
| |
*) |
| |
path="powerpc32" ;; |
| |
esac |
| |
|
| |
# gcc 2.7.2 knows -mcpu=403, 603, 604. |
| |
# gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750, |
| |
# 801, 821, 823, 860. |
| |
# gcc 3.0 adds 630, rs64a. |
| |
# gcc 3.1 pre-releases add 405, 7400, 7450. |
| |
# |
| |
# FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be |
| |
# done for all the others too. But what would be the correct |
| |
# arrangements? |
| |
# |
| |
case $host_cpu in |
| |
powerpc401) gcc_cflags_cpu="-mcpu=401" ;; |
| |
powerpc403) gcc_cflags_cpu="-mcpu=403" ;; |
| |
powerpc405) gcc_cflags_cpu="-mcpu=405" ;; |
| |
powerpc505) gcc_cflags_cpu="-mcpu=505" ;; |
| |
powerpc602) gcc_cflags_cpu="-mcpu=602" ;; |
| |
powerpc603) gcc_cflags_cpu="-mcpu=603" ;; |
| |
powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;; |
| |
powerpc604) gcc_cflags_cpu="-mcpu=604" ;; |
| |
powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;; |
| |
powerpc620) gcc_cflags_cpu="-mcpu=620" ;; |
| |
powerpc630) gcc_cflags_cpu="-mcpu=630" ;; |
| |
powerpc740) gcc_cflags_cpu="-mcpu=740" ;; |
| |
powerpc7400) gcc_cflags_cpu="-mcpu=7400" ;; |
| |
powerpc7450) gcc_cflags_cpu="-mcpu=7450" ;; |
| |
powerpc750) gcc_cflags_cpu="-mcpu=750" ;; |
| |
powerpc801) gcc_cflags_cpu="-mcpu=801" ;; |
| |
powerpc821) gcc_cflags_cpu="-mcpu=821" ;; |
| |
powerpc823) gcc_cflags_cpu="-mcpu=823" ;; |
| |
powerpc860) gcc_cflags_cpu="-mcpu=860" ;; |
| |
esac |
| |
|
| |
case $host in |
| |
*-*-aix*) |
| |
cclist="gcc xlc cc" |
| |
xlc_cflags="-g -O2 -qmaxmem=20000" |
| |
xlc_cflags_optlist="arch" |
| |
|
| |
# xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604, |
| |
# 403, rs64a |
| |
# -qarch=ppc is needed, so ensure everything falls back to that. |
| |
# FIXME: Perhaps newer versions know more flavours. |
| |
# |
| |
case $host_cpu in |
| |
powerpc403) xlc_cflags_arch="-qarch=403 -qarch=ppc" ;; |
| |
powerpc602) xlc_cflags_arch="-qarch=602 -qarch=ppc" ;; |
| |
powerpc603) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; |
| |
powerpc603e) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; |
| |
powerpc604) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; |
| |
powerpc604e) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; |
| |
*) xlc_cflags_arch="-qarch=ppc" ;; |
| |
esac |
| |
;; |
| |
esac |
| |
|
| |
case $host in |
| |
powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-*) |
| |
# On AIX a true 64-bit ABI is available. |
| |
case $host in |
| |
*-*-aix*) |
| |
# Need -Wc to pass object type flags through to the linker. |
| |
abilist="aix64 32" |
| |
cclist_aix64="gcc xlc" |
| |
gcc_aix64_cflags="-g -O2 -maix64 -mpowerpc64" |
| |
gcc_aix64_cflags_optlist="cpu" |
| |
gcc_aix64_ldflags="-Wc,-maix64" |
| |
xlc_aix64_cflags="-g -O2 -q64 -qtune=pwr3 -qmaxmem=20000" |
| |
xlc_aix64_ldflags="-Wc,-q64" |
| |
# Must indicate object type to ar and nm |
| |
ar_aix64_flags="-X64" |
| |
nm_aix64_flags="-X64" |
| |
path_aix64="powerpc64" |
| |
extra_functions_aix64="umul" |
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
# POWER |
| |
power-*-* | power[12]-*-* | power2sc-*-*) |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_HOST_CPU_FAMILY_power 1 |
| |
EOF |
| |
|
| |
HAVE_HOST_CPU_FAMILY_power=1 |
| |
cclist="gcc" |
| |
extra_functions="udiv_w_sdiv" |
| |
path="power" |
| |
|
| |
gcc_cflags_optlist="cpu" |
| |
case $host in |
| |
power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;; |
| |
power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;; |
| |
power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;; |
| |
power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;; |
| |
esac |
| |
case $host in |
| |
*-*-aix*) |
| |
cclist="gcc xlc" |
| |
xlc_cflags="-g -O2 -qarch=pwr -qmaxmem=20000" |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
# FIXME: ppc601 isn't accepted by config.sub. |
| |
ppc601-*-*) |
| |
path="power powerpc32" |
| |
;; |
| |
|
| |
pyramid-*-*) |
| |
path="pyr" |
| |
;; |
| |
|
| |
# IBM s/370 and similar |
| |
s3[6-9]0*-*-*) |
| |
gcc_cflags="-g -O2 $fomit_frame_pointer" |
| |
path="s390" |
| |
extra_functions="udiv_w_sdiv" |
| |
;; |
| |
|
| |
sh-*-*) path="sh" ;; |
| |
sh2-*-*) path="sh/sh2 sh" ;; |
| |
|
| |
*sparc*-*-*) |
| |
# For cc and acc, -g disables -O, so it's not used |
| |
cclist="gcc acc cc" |
| |
path="sparc32" |
| |
gcc_cflags="-g -O2" |
| |
gcc_cflags_optlist="cpu" |
| |
gcc_cflags_cpu= |
| |
acc_cflags="-O2" |
| |
cc_cflags="-O2" |
| |
|
| |
echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
# FIXME: This should be selected according to the CPU |
| |
if test x${floating_point} = xno |
| |
then extra_functions="udiv_nfp" |
| |
else extra_functions="udiv_fp" |
| |
fi |
| |
|
| |
case $host in |
| |
sparcv8*-*-* | supersparc*-*-* | microsparc*-*-*) |
| |
gcc_cflags_cpu="-mcpu=v8 -mv8" |
| |
acc_cflags="-O2 -cg92" |
| |
path="sparc32/v8 sparc32" |
| |
extra_functions="udiv" |
| |
|
| |
case $host in |
| |
*-*-solaris2.*) cc_cflags="-xtarget=native -xarch=v8 -xO4" ;; |
| |
esac |
| |
case $host in |
| |
supersparc*-*-*) path="sparc32/v8/supersparc sparc32/v8 sparc32" ;; |
| |
esac |
| |
;; |
| |
|
| |
# sparc64-*-linux-gnu is a misnomer, since there's no support for any |
| |
# 64-bit operations in user mode. We assume that a future release |
| |
# will have some 64-bit support and that the gcc options will be the |
| |
# same as on solaris. |
| |
# |
| |
# cc -xarch actually controls the ABI, hence it must be v8 for 32-bit, |
| |
# even though the chip is v9. |
| |
# |
| |
sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*) |
| |
path="sparc32/v9 sparc32/v8 sparc32" |
| |
extra_functions="udiv_fp" |
| |
|
| |
SPEED_CYCLECOUNTER_OBJ=sparcv9.lo |
| |
|
| |
gcc_cflags="-g -O2 -Wa,-xarch=v8plus" |
| |
gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9 -mcpu=v8 -mv8" |
| |
|
| |
cc_cflags="-xtarget=native -xarch=v8 -xO4" |
| |
|
| |
case $host in |
| |
*-*-solaris2.[7-9]) |
| |
# solaris prior to 2.6 doesn't save registers properly, so the |
| |
# 64-bit ABI is only available for 2.7 up |
| |
abilist="64 32" |
| |
path_64="sparc64" |
| |
cclist_64="gcc cc" |
| |
gcc_64_cflags="-g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9" |
| |
gcc_64_ldflags="-Wc,-m64" |
| |
# -fast enables different optimizations depending compiler version |
| |
# -fns=no and -fsimple=1 disables some transformations that |
| |
# conflict with IEEE 754, which some compiler versions perform. |
| |
cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9" |
| |
SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo |
| |
cyclecounter_size_64=2 |
| |
;; |
| |
*-*-*bsd*) |
| |
# NetBSD and OpenBSD sparc64 |
| |
abilist="64" |
| |
extra_functions= |
| |
path="sparc64" |
| |
gcc_cflags="-g -O2" |
| |
cyclecounter_size=2 |
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
# VAX |
| |
vax*-*-*) |
| |
# Currently (version 3.0) gcc on vax always uses a frame pointer |
| |
# (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer |
| |
# will be ignored. |
| |
# |
| |
gcc_cflags="-g -O2 $fomit_frame_pointer" |
| |
path="vax" |
| |
extra_functions="udiv_w_sdiv" |
| |
;; |
| |
|
| |
# AMD and Intel x86 configurations |
| |
i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_HOST_CPU_FAMILY_x86 1 |
| |
EOF |
| |
|
| |
# Rumour has it gcc -O2 used to give worse register allocation than just |
| |
# -O, but lets assume that's no longer true. |
| |
gcc_cflags="-g -O2 $fomit_frame_pointer" |
| |
|
| |
echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
extra_functions="udiv umul" |
| |
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo' |
| |
|
| |
# Availability of rdtsc is checked at run-time. |
| |
SPEED_CYCLECOUNTER_OBJ=pentium.lo |
| |
|
| |
# gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These |
| |
# represent -mcpu= since -m486 doesn't generate 486 specific insns. The |
| |
# -mcpu= and -march= options will fail, leaving just -m486. |
| |
# |
| |
# gcc 2.95.2 adds k6, pentium and pentiumpro, and allows -march= and |
| |
# -mcpu=. |
| |
# |
| |
# gcc 3.0 adds athlon. |
| |
# |
| |
# gcc 3.1 adds pentium4. |
| |
|
| |
# Defaults for anything not otherwise mentioned. |
| |
path="x86" |
| |
gcc_cflags_optlist="cpu arch" |
| |
gcc_cflags_cpu="-mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=i486" |
| |
|
| |
case $host in |
| |
i386*-*-*) |
| |
# Because i386 means generic x86, -mcpu=i486 is used since that |
| |
# should better suit newer processors. |
| |
# FIXME: How would a user ask for an actual 80386? Currently only by |
| |
# using CFLAGS="-mcpu=386" or whatever. |
| |
gcc_cflags_cpu="-mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=i386" |
| |
;; |
| |
i586*-*-* | pentium-*-* | pentiummmx-*-*) |
| |
gcc_cflags_cpu="-mcpu=pentium -m486" |
| |
gcc_cflags_arch="-march=pentium" |
| |
;; |
| |
i686*-*-* | pentiumpro-*-* | pentium[23]-*-*) |
| |
gcc_cflags_cpu="-mcpu=pentiumpro -mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=pentiumpro -march=pentium -march=i486" |
| |
;; |
| |
k6*-*-*) |
| |
gcc_cflags_cpu="-mcpu=k6 -mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=k6 -march=i486" |
| |
;; |
| |
athlon-*-*) |
| |
# Athlon instruction costs are close to P6 (3 cycle load latency, |
| |
# 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't |
| |
# know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro. |
| |
gcc_cflags_cpu="-mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium -march=i486" |
| |
;; |
| |
pentium4-*-*) |
| |
# pentium4 is known to gcc 3.1 and up, not sure what cpu choice |
| |
# would best suit previous versions, pentiumpro will get us cmov |
| |
# from gcc 2.95.4 up, otherwise let's just try i486. |
| |
gcc_cflags_cpu="-mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486" |
| |
gcc_cflags_arch="-march=pentium4 -march=pentiumpro -march=pentium -march=i486" |
| |
;; |
| |
esac |
| |
|
| |
case $host in |
| |
i486*-*-*) path="x86/i486 x86" ;; |
| |
i586*-*-* | pentium-*-*) path="x86/pentium x86" ;; |
| |
pentiummmx-*-*) path="x86/pentium/mmx x86/pentium x86" ;; |
| |
i686*-*-* | pentiumpro-*-*) path="x86/p6 x86" ;; |
| |
pentium2-*-*) path="x86/p6/mmx x86/p6 x86" ;; |
| |
pentium3-*-*) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";; |
| |
k6[23]*-*-*) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;; |
| |
k6*-*-*) path="x86/k6/mmx x86/k6 x86" ;; |
| |
athlon-*-*) path="x86/k7/mmx x86/k7 x86" ;; |
| |
pentium4-*-*) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;; |
| |
esac |
| |
;; |
| |
|
| |
# FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit |
| |
# limb an ABI option perhaps. |
| |
z8kx*-*-*) |
| |
path="z8000x" |
| |
extra_functions="udiv_w_sdiv" |
| |
;; |
| |
z8k*-*-*) |
| |
path="z8000" |
| |
extra_functions="udiv_w_sdiv" |
| |
;; |
| |
|
| |
# Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc |
| |
# asm blocks in longlong.h (since they're driven by cpp pre-defined |
| |
# symbols like __alpha rather than the configured $host_cpu). |
| |
# |
| |
none-*-*) |
| |
abilist="long longlong" |
| |
cclist_long=$cclist |
| |
gcc_long_cflags=$gcc_cflags |
| |
gcc_long_cppflags="-DNO_ASM" |
| |
cc_long_cflags=$cc_cflags |
| |
cclist_longlong=$cclist |
| |
gcc_longlong_cflags=$gcc_cflags |
| |
gcc_longlong_cppflags="-DNO_ASM" |
| |
cc_longlong_cflags=$cc_cflags |
| |
limb_longlong=longlong |
| |
;; |
| |
|
| esac |
esac |
| |
|
| # Loop over all args |
CFLAGS_or_unset=${CFLAGS-'(unset)'} |
| |
CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} |
| |
|
| while : |
cat >&5 <<EOF |
| |
configure:1014: User: |
| |
ABI=$ABI |
| |
CC=$CC |
| |
CFLAGS=$CFLAGS_or_unset |
| |
CPPFLAGS=$CPPFLAGS_or_unset |
| |
MPN_PATH=$MPN_PATH |
| |
configure:1020: GMP: |
| |
abilist=$abilist |
| |
cclist=$cclist |
| |
EOF |
| |
|
| |
test_CFLAGS=${CFLAGS+set} |
| |
test_CPPFLAGS=${CPPFLAGS+set} |
| |
|
| |
for abi in $abilist; do |
| |
abi_last="$abi" |
| |
done |
| |
|
| |
# If the user specifies an ABI then it must be in $abilist, after that |
| |
# $abilist is restricted to just that choice. |
| |
# |
| |
if test -n "$ABI"; then |
| |
found=no |
| |
for abi in $abilist; do |
| |
if test $abi = "$ABI"; then found=yes; break; fi |
| |
done |
| |
if test $found = no; then |
| |
{ { echo "$as_me:2677: error: ABI=$ABI is not among the following valid choices: $abilist" >&5 |
| |
echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
abilist="$ABI" |
| |
fi |
| |
|
| |
found_compiler=no |
| |
|
| |
for abi in $abilist; do |
| |
|
| |
# Suppose abilist="64 32", then for abi=64, will have abi1="_64" and |
| |
# abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how |
| |
# $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the |
| |
# abilist), but there's no fallback for $gcc_64_cflags. |
| |
# |
| |
abi1=`echo _$abi | sed 's/[.]//g'` |
| |
if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi |
| |
|
| |
# Compiler choices under this ABI |
| |
eval cclist_chosen=\"\$cclist$abi1\" |
| |
test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\" |
| |
|
| |
# If there's a user specified $CC then don't use a list for |
| |
# $cclist_chosen, just a single value for $ccbase. |
| |
# |
| |
if test -n "$CC"; then |
| |
|
| |
# The first word of $CC, stripped of any directory. For instance |
| |
# CC="/usr/local/bin/gcc -pipe" will give "gcc". |
| |
# |
| |
for ccbase in $CC; do break; done |
| |
ccbase=`echo $ccbase | sed 's:.*/::'` |
| |
|
| |
# If this $ccbase is in $cclist_chosen then it's a compiler we know and |
| |
# we can do flags defaulting with it. If not, then $cclist_chosen is |
| |
# set to "unrecognised" so no default flags are used. |
| |
# |
| |
# "unrecognised" is used to avoid bad effects with eval if $ccbase has |
| |
# non-symbol characters. For instance ccbase=my+cc would end up with |
| |
# something like cflags="$my+cc_cflags" which would give |
| |
# cflags="+cc_cflags" rather than the intended empty string for an |
| |
# unknown compiler. |
| |
# |
| |
found=unrecognised |
| |
for i in $cclist_chosen; do |
| |
if test "$ccbase" = $i; then |
| |
found=$ccbase |
| |
break |
| |
fi |
| |
done |
| |
cclist_chosen=$found |
| |
fi |
| |
|
| |
for ccbase in $cclist_chosen; do |
| |
|
| |
# When cross compiling, look for a compiler with the $host_alias as a |
| |
# prefix, the same way that AC_CHECK_TOOL does. But don't do this to a |
| |
# user-selected $CC. |
| |
# |
| |
# $cross_compiling will be yes/no/maybe at this point. Do the host |
| |
# prefixing for "maybe" as well as "yes". |
| |
# |
| |
if test "$cross_compiling" != no && test -z "$CC"; then |
| |
cross_compiling_prefix="${host_alias}-" |
| |
fi |
| |
|
| |
for ccprefix in $cross_compiling_prefix ""; do |
| |
|
| |
cc="$CC" |
| |
test -n "$cc" || cc="$ccprefix$ccbase" |
| |
|
| |
# If the compiler is gcc but installed under another name, then change |
| |
# $ccbase so as to use the flags we know for gcc. This helps for |
| |
# instance when specifying CC=gcc272 on Debian GNU/Linux, or the |
| |
# native cc which is really gcc on NeXT or MacOS-X. |
| |
# |
| |
# FIXME: There's a slight misfeature here. If cc is actually gcc but |
| |
# gcc is not a known compiler under this $abi then we'll end up |
| |
# testing it with no flags and it'll work, but chances are it won't be |
| |
# in the right mode for the ABI we desire. Let's quietly hope this |
| |
# doesn't happen. |
| |
# |
| |
if test $ccbase != gcc; then |
| |
cat >conftest.c <<EOF |
| |
#ifndef __GNUC__ |
| |
choke me |
| |
#endif |
| |
EOF |
| |
gmp_compile="$cc -c conftest.c >&5" |
| |
if { (eval echo "$as_me:2767: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:2770: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
rm -f conftest* |
| |
echo "$as_me:2773: checking whether $cc is gcc" >&5 |
| |
echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6 |
| |
echo "$as_me:2775: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
ccbase=gcc |
| |
else |
| |
rm -f conftest* |
| |
: |
| |
fi |
| |
|
| |
fi |
| |
|
| |
# Similarly if the compiler is IBM xlc but invoked as cc or whatever |
| |
# then change $ccbase and make the default xlc flags available. |
| |
if test $ccbase != xlc; then |
| |
gmp_command="$cc 2>&1 | grep xlc >/dev/null" |
| |
if { (eval echo "$as_me:2789: \"$gmp_command\"") >&5 |
| |
(eval $gmp_command) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:2792: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
echo "$as_me:2794: checking whether $cc is xlc" >&5 |
| |
echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6 |
| |
echo "$as_me:2796: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
ccbase=xlc |
| |
else |
| |
: |
| |
fi |
| |
|
| |
fi |
| |
|
| |
# Any user CFLAGS, even an empty string, takes precendence |
| |
eval cflags=\"\$${ccbase}${abi1}_cflags\" |
| |
test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\" |
| |
if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi |
| |
|
| |
# Any user CPPFLAGS, even an empty string, takes precendence |
| |
eval cppflags=\"\$${ccbase}${abi1}_cppflags\" |
| |
test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\" |
| |
if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi |
| |
|
| |
# --enable-profiling adds -p/-pg even to user-specified CFLAGS. |
| |
# This is convenient, but it's perhaps a bit naughty to modify user |
| |
# CFLAGS. |
| |
case "$enable_profiling" in |
| |
prof) cflags="$cflags -p" ;; |
| |
gprof) cflags="$cflags -pg" ;; |
| |
esac |
| |
|
| |
echo "$as_me:2823: checking compiler $cc $cflags $cppflags" >&5 |
| |
echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6 |
| |
cat >conftest.c <<EOF |
| |
|
| |
/* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 |
| |
(without -maix64), hence detecting an unusable compiler */ |
| |
void *g() { return (void *) 0; } |
| |
void *f() { return g(); } |
| |
|
| |
/* The following provokes an invalid instruction syntax from i386 gcc |
| |
-march=pentiumpro on Solaris 2.8. The native sun assembler |
| |
requires a non-standard syntax for cmov which gcc (as of 2.95.2 at |
| |
least) doesn't know. */ |
| |
int n; |
| |
int cmov () { return (n >= 0 ? n : 0); } |
| |
|
| |
/* The following provokes a linker invocation problem with gcc 3.0.3 |
| |
on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 |
| |
option causes gcc to incorrectly select the 32-bit libgcc.a, not |
| |
the 64-bit one, and consequently it misses out on the __fixunsdfdi |
| |
helper (double -> uint64 conversion). */ |
| |
double d; |
| |
unsigned long gcc303 () { return (unsigned long) d; } |
| |
|
| |
int main () { return 0; } |
| |
EOF |
| |
gmp_prog_cc_works=no |
| |
gmp_compile="$cc $cflags $cppflags conftest.c >&5" |
| |
if { (eval echo "$as_me:2851: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:2854: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if test "$cross_compiling" = no; then |
| |
if { ac_try='./a.out || ./a.exe || ./conftest' |
| |
{ (eval echo "$as_me:2858: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:2861: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_prog_cc_works=yes |
| |
fi |
| |
else |
| |
gmp_prog_cc_works=yes |
| |
fi |
| |
fi |
| |
rm -f conftest* a.out a.exe |
| |
echo "$as_me:2870: result: $gmp_prog_cc_works" >&5 |
| |
echo "${ECHO_T}$gmp_prog_cc_works" >&6 |
| |
if test $gmp_prog_cc_works = yes; then |
| |
: |
| |
else |
| |
continue |
| |
fi |
| |
|
| |
# The tests to perform on this $cc, if any |
| |
eval testlist=\"\$${ccbase}${abi1}_testlist\" |
| |
test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\" |
| |
|
| |
testlist_pass=yes |
| |
for tst in $testlist; do |
| |
case $tst in |
| |
hpc-hppa-2-0) echo "$as_me:2885: checking whether HP compiler $cc is good for 64-bits" >&5 |
| |
echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6 |
| |
# Bad compiler output: |
| |
# ccom: HP92453-01 G.10.32.05 HP C Compiler |
| |
# Good compiler output: |
| |
# ccom: HP92453-01 A.10.32.30 HP C Compiler |
| |
# Let A.10.32.30 or higher be ok. |
| |
echo >conftest.c |
| |
gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"` |
| |
echo "Version string: $gmp_tmp_vs" >&5 |
| |
rm conftest* |
| |
gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\(.*\)\..*\..* HP C.*/\1/'` |
| |
gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'` |
| |
gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'` |
| |
echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5 |
| |
if test -z "$gmp_tmp_v1"; then |
| |
gmp_hpc_64bit=not-applicable |
| |
else |
| |
gmp_compare_ge=no |
| |
if test -n "$gmp_tmp_v1"; then |
| |
if test "$gmp_tmp_v1" -gt 10; then |
| |
gmp_compare_ge=yes |
| |
else |
| |
if test "$gmp_tmp_v1" -eq 10; then |
| |
if test -n "$gmp_tmp_v2"; then |
| |
if test "$gmp_tmp_v2" -gt 32; then |
| |
gmp_compare_ge=yes |
| |
else |
| |
if test "$gmp_tmp_v2" -eq 32; then |
| |
if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then |
| |
gmp_compare_ge=yes |
| |
fi |
| |
|
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
gmp_hpc_64bit=$gmp_compare_ge |
| |
fi |
| |
echo "$as_me:2928: result: $gmp_hpc_64bit" >&5 |
| |
echo "${ECHO_T}$gmp_hpc_64bit" >&6 |
| |
if test $gmp_hpc_64bit = yes; then |
| |
: |
| |
else |
| |
testlist_pass=no |
| |
fi |
| |
;; |
| |
gcc-arm-umodsi) echo "$as_me:2936: checking whether ARM gcc unsigned division works" >&5 |
| |
echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6 |
| |
tmp_version=`$cc --version` |
| |
echo "$tmp_version" >&5 |
| |
case $tmp_version in |
| |
2.95 | 2.95.[123]) |
| |
testlist_pass=no |
| |
gmp_gcc_arm_umodsi_result="no, gcc 2.95.0123" ;; |
| |
*) |
| |
: |
| |
gmp_gcc_arm_umodsi_result=yes ;; |
| |
esac |
| |
echo "$as_me:2948: result: $gmp_gcc_arm_umodsi_result" >&5 |
| |
echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6 |
| |
;; |
| |
gcc-mips-o32) echo "$as_me:2951: checking whether gcc supports o32" >&5 |
| |
echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6 |
| |
echo 'int x;' >conftest.c |
| |
echo "$cc -mabi=32 -c conftest.c" >&5 |
| |
if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then |
| |
result=yes |
| |
else |
| |
cat conftest.out >&5 |
| |
if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then |
| |
result=yes |
| |
else |
| |
result=no |
| |
fi |
| |
fi |
| |
rm -f conftest.* |
| |
echo "$as_me:2966: result: $result" >&5 |
| |
echo "${ECHO_T}$result" >&6 |
| |
if test $result = yes; then |
| |
: |
| |
else |
| |
testlist_pass=no |
| |
fi |
| |
;; |
| |
esac |
| |
if test $testlist_pass = no; then break; fi |
| |
done |
| |
|
| |
if test $testlist_pass = yes; then |
| |
found_compiler=yes |
| |
break |
| |
fi |
| |
done |
| |
|
| |
if test $found_compiler = yes; then break; fi |
| |
done |
| |
|
| |
if test $found_compiler = yes; then break; fi |
| |
done |
| |
|
| |
# If we recognised the CPU, as indicated by $path being set, then insist |
| |
# that we have a working compiler, either from our $cclist choices or from |
| |
# $CC. We can't let AC_PROG_CC look around for a compiler because it might |
| |
# find one that we've rejected (for not supporting the modes our asm code |
| |
# demands, etc). |
| |
# |
| |
# If we didn't recognise the CPU (and this includes host_cpu=none), then |
| |
# fall through and let AC_PROG_CC look around for a compiler too. This is |
| |
# mostly in the interests of following a standard autoconf setup, after all |
| |
# we've already tested cc and gcc adequately (hopefully). As of autoconf |
| |
# 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft |
| |
# C on MS-DOS systems). |
| |
# |
| |
if test $found_compiler = no && test -n "$path"; then |
| |
{ { echo "$as_me:3004: error: could not find a working compiler" >&5 |
| |
echo "$as_me: error: could not find a working compiler" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
if test $found_compiler = yes; then |
| |
|
| |
# If we're creating CFLAGS, then look for optional additions. If the user |
| |
# set CFLAGS then leave it alone. |
| |
# |
| |
if test "$test_CFLAGS" != set; then |
| |
eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\" |
| |
test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\" |
| |
|
| |
for opt in $optlist; do |
| |
eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\" |
| |
test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\" |
| |
test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\" |
| |
|
| |
for flag in $optflags; do |
| |
|
| |
# ~ respresents a space in an option spec |
| |
flag=`echo "$flag" | tr '~' ' '` |
| |
|
| |
case $flag in |
| |
-O*) |
| |
# ease back to just -O on m68k gcc 2.95.x |
| |
case $host in |
| |
m68*-*-*) |
| |
if test $ccbase = gcc; then |
| |
case `$cc --version` in |
| |
2.95*) flag=-O ;; |
| |
esac |
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
;; |
| |
-no-cpp-precomp) |
| |
# special check, avoiding a warning |
| |
if test "$ccbase" = gcc; then |
| |
echo "$as_me:3045: checking compiler $cc $cflags -no-cpp-precomp" >&5 |
| |
echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6 |
| |
result=no |
| |
cat >conftest.c <<EOF |
| |
int main () { return 0; } |
| |
EOF |
| |
gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:3052: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3055: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ; |
| |
else |
| |
result=yes |
| |
fi |
| |
fi |
| |
cat conftest.out >&5 |
| |
rm -f conftest* a.out |
| |
echo "$as_me:3064: result: $result" >&5 |
| |
echo "${ECHO_T}$result" >&6 |
| |
if test "$result" = yes; then |
| |
cflags="$cflags $flag" |
| |
break |
| |
else |
| |
continue |
| |
fi |
| |
fi |
| |
|
| |
;; |
| |
-Wa,-m*) |
| |
case $host in |
| |
alpha*-*-*) |
| |
echo "$as_me:3078: checking assembler $cc $cflags $flag" >&5 |
| |
echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6 |
| |
result=no |
| |
cat >conftest.c <<EOF |
| |
int main () {} |
| |
EOF |
| |
gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:3085: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3088: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ; |
| |
else |
| |
result=yes |
| |
fi |
| |
fi |
| |
cat conftest.out >&5 |
| |
rm -f conftest* |
| |
echo "$as_me:3097: result: $result" >&5 |
| |
echo "${ECHO_T}$result" >&6 |
| |
if test "$result" = yes; then |
| |
: |
| |
else |
| |
continue |
| |
fi |
| |
|
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
|
| |
echo "$as_me:3110: checking compiler $cc $cflags $cppflags $flag" >&5 |
| |
echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6 |
| |
cat >conftest.c <<EOF |
| |
|
| |
/* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 |
| |
(without -maix64), hence detecting an unusable compiler */ |
| |
void *g() { return (void *) 0; } |
| |
void *f() { return g(); } |
| |
|
| |
/* The following provokes an invalid instruction syntax from i386 gcc |
| |
-march=pentiumpro on Solaris 2.8. The native sun assembler |
| |
requires a non-standard syntax for cmov which gcc (as of 2.95.2 at |
| |
least) doesn't know. */ |
| |
int n; |
| |
int cmov () { return (n >= 0 ? n : 0); } |
| |
|
| |
/* The following provokes a linker invocation problem with gcc 3.0.3 |
| |
on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 |
| |
option causes gcc to incorrectly select the 32-bit libgcc.a, not |
| |
the 64-bit one, and consequently it misses out on the __fixunsdfdi |
| |
helper (double -> uint64 conversion). */ |
| |
double d; |
| |
unsigned long gcc303 () { return (unsigned long) d; } |
| |
|
| |
int main () { return 0; } |
| |
EOF |
| |
gmp_prog_cc_works=no |
| |
gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" |
| |
if { (eval echo "$as_me:3138: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3141: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if test "$cross_compiling" = no; then |
| |
if { ac_try='./a.out || ./a.exe || ./conftest' |
| |
{ (eval echo "$as_me:3145: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3148: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_prog_cc_works=yes |
| |
fi |
| |
else |
| |
gmp_prog_cc_works=yes |
| |
fi |
| |
fi |
| |
rm -f conftest* a.out a.exe |
| |
echo "$as_me:3157: result: $gmp_prog_cc_works" >&5 |
| |
echo "${ECHO_T}$gmp_prog_cc_works" >&6 |
| |
if test $gmp_prog_cc_works = yes; then |
| |
cflags="$cflags $flag" |
| |
break |
| |
else |
| |
: |
| |
fi |
| |
|
| |
done |
| |
done |
| |
fi |
| |
|
| |
ABI="$abi" |
| |
CC="$cc" |
| |
CFLAGS="$cflags" |
| |
CPPFLAGS="$cppflags" |
| |
|
| |
# Could easily have this in config.h too, if desired. |
| |
ABI_nodots=`echo $ABI | sed 's/\./_/'` |
| |
|
| |
echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p |
| |
|
| |
# GMP_LDFLAGS substitution, selected according to ABI. |
| |
# These are needed on libgmp.la and libmp.la, but currently not on |
| |
# convenience libraries like tune/libspeed.la or mpz/libmpz.la. |
| |
# |
| |
eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" |
| |
test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" |
| |
|
| |
# extra_functions, selected according to ABI |
| |
eval tmp=\"\$extra_functions$abi1\" |
| |
test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\" |
| |
extra_functions="$tmp" |
| |
|
| |
# Cycle counter, selected according to ABI. |
| |
# |
| |
eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\" |
| |
test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\" |
| |
SPEED_CYCLECOUNTER_OBJ="$tmp" |
| |
eval tmp=\"\$cyclecounter_size$abi1\" |
| |
test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\" |
| |
cyclecounter_size="$tmp" |
| |
|
| |
if test -n "$SPEED_CYCLECOUNTER_OBJ"; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
# Calling conventions checking, selected according to ABI. |
| |
# |
| |
eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\" |
| |
test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\" |
| |
CALLING_CONVENTIONS_OBJS="$tmp" |
| |
|
| |
if test -n "$CALLING_CONVENTIONS_OBJS"; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_CALLING_CONVENTIONS 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
# If the user gave an MPN_PATH, use that verbatim, otherwise choose |
| |
# according to the ABI and add "generic". |
| |
# |
| |
if test -n "$MPN_PATH"; then |
| |
path="$MPN_PATH" |
| |
else |
| |
eval tmp=\"\$path$abi1\" |
| |
test -n "$tmp" || eval tmp=\"\$path$abi2\" |
| |
path="$tmp generic" |
| |
fi |
| |
|
| |
# Whether using a long long limb in this ABI. |
| |
eval limb_chosen=\"\$limb$abi1\" |
| |
test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\" |
| |
case $limb_chosen in |
| |
longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;; |
| |
*) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;; |
| |
esac |
| |
|
| |
# The C compiler and preprocessor, put into ANSI mode if possible. |
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| |
echo "$as_me:3253: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$CC"; then |
| |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| |
echo "$as_me:3268: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
CC=$ac_cv_prog_CC |
| |
if test -n "$CC"; then |
| |
echo "$as_me:3276: result: $CC" >&5 |
| |
echo "${ECHO_T}$CC" >&6 |
| |
else |
| |
echo "$as_me:3279: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_CC"; then |
| |
ac_ct_CC=$CC |
| |
# Extract the first word of "gcc", so it can be a program name with args. |
| |
set dummy gcc; ac_word=$2 |
| |
echo "$as_me:3288: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_CC"; then |
| |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_CC="gcc" |
| |
echo "$as_me:3303: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| |
if test -n "$ac_ct_CC"; then |
| |
echo "$as_me:3311: result: $ac_ct_CC" >&5 |
| |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| |
else |
| |
echo "$as_me:3314: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
CC=$ac_ct_CC |
| |
else |
| |
CC="$ac_cv_prog_CC" |
| |
fi |
| |
|
| |
if test -z "$CC"; then |
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| |
echo "$as_me:3327: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$CC"; then |
| |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| |
echo "$as_me:3342: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
CC=$ac_cv_prog_CC |
| |
if test -n "$CC"; then |
| |
echo "$as_me:3350: result: $CC" >&5 |
| |
echo "${ECHO_T}$CC" >&6 |
| |
else |
| |
echo "$as_me:3353: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_CC"; then |
| |
ac_ct_CC=$CC |
| |
# Extract the first word of "cc", so it can be a program name with args. |
| |
set dummy cc; ac_word=$2 |
| |
echo "$as_me:3362: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_CC"; then |
| |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_CC="cc" |
| |
echo "$as_me:3377: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| |
if test -n "$ac_ct_CC"; then |
| |
echo "$as_me:3385: result: $ac_ct_CC" >&5 |
| |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| |
else |
| |
echo "$as_me:3388: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
CC=$ac_ct_CC |
| |
else |
| |
CC="$ac_cv_prog_CC" |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$CC"; then |
| |
# Extract the first word of "cc", so it can be a program name with args. |
| |
set dummy cc; ac_word=$2 |
| |
echo "$as_me:3401: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$CC"; then |
| |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| |
else |
| |
ac_prog_rejected=no |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| |
ac_prog_rejected=yes |
| |
continue |
| |
fi |
| |
ac_cv_prog_CC="cc" |
| |
echo "$as_me:3421: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
if test $ac_prog_rejected = yes; then |
| |
# We found a bogon in the path, so make sure we never use it. |
| |
set dummy $ac_cv_prog_CC |
| |
shift |
| |
if test $# != 0; then |
| |
# We chose a different compiler from the bogus one. |
| |
# However, it has the same basename, so the bogon will be chosen |
| |
# first if we set CC to just the basename; use the full file name. |
| |
shift |
| |
set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| |
shift |
| |
ac_cv_prog_CC="$@" |
| |
fi |
| |
fi |
| |
fi |
| |
fi |
| |
CC=$ac_cv_prog_CC |
| |
if test -n "$CC"; then |
| |
echo "$as_me:3443: result: $CC" >&5 |
| |
echo "${ECHO_T}$CC" >&6 |
| |
else |
| |
echo "$as_me:3446: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$CC"; then |
| |
if test -n "$ac_tool_prefix"; then |
| |
for ac_prog in cl |
| |
do |
| |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| |
echo "$as_me:3457: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$CC"; then |
| |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| |
echo "$as_me:3472: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
CC=$ac_cv_prog_CC |
| |
if test -n "$CC"; then |
| |
echo "$as_me:3480: result: $CC" >&5 |
| |
echo "${ECHO_T}$CC" >&6 |
| |
else |
| |
echo "$as_me:3483: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$CC" && break |
| |
done |
| |
fi |
| |
if test -z "$CC"; then |
| |
ac_ct_CC=$CC |
| |
for ac_prog in cl |
| do |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo "$as_me:3496: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_CC"; then |
| |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| |
echo "$as_me:3511: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| # Break out if there are no more args |
fi |
| case $# in |
fi |
| 0) |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| break |
if test -n "$ac_ct_CC"; then |
| ;; |
echo "$as_me:3519: result: $ac_ct_CC" >&5 |
| esac |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| |
else |
| |
echo "$as_me:3522: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| # Get the first arg, and shuffle |
test -n "$ac_ct_CC" && break |
| option=$1 |
done |
| shift |
|
| |
|
| # Make all options have two hyphens |
CC=$ac_ct_CC |
| orig_option=$option # Save original for error messages |
fi |
| case $option in |
|
| --*) ;; |
|
| -*) option=-$option ;; |
|
| esac |
|
| |
|
| # Split out the argument for options that take them |
|
| case $option in |
|
| --*=*) |
|
| optarg=`echo $option | sed -e 's/^[^=]*=//'` |
|
| arguments="$arguments $option" |
|
| ;; |
|
| # These options have mandatory values. Since we didn't find an = sign, |
|
| # the value must be in the next argument |
|
| --bu* | --cache* | --ex* | --ho* | --pre* | --program-p* | --program-s* | --program-t* | --si* | --sr* | --ta* | --tm* | --x-* | --bi* | --sb* | --li* | --da* | --sy* | --sh* | --lo* | --in* | --ol* | --ma*) |
|
| optarg=$1 |
|
| shift |
|
| arguments="$arguments $option=$optarg" |
|
| ;; |
|
| --v) |
|
| arguments="$arguments -v" |
|
| ;; |
|
| --*) |
|
| arguments="$arguments $option" |
|
| ;; |
|
| esac |
|
| |
|
| # Now, process the options |
fi |
| case $option in |
|
| |
|
| --build* | --bu*) |
test -z "$CC" && { { echo "$as_me:3534: error: no acceptable cc found in \$PATH" >&5 |
| case "$build_alias" in |
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| "") build_alias=$optarg ;; |
{ (exit 1); exit 1; }; } |
| *) echo '***' Can only configure for one build machine at a time. 1>&2 |
|
| fatal=yes |
|
| ;; |
|
| esac |
|
| ;; |
|
| --cache*) |
|
| cache_file=$optarg |
|
| ;; |
|
| --disable-*) |
|
| enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'` |
|
| eval $enableopt=no |
|
| disableoptions="$disableoptions $option" |
|
| ;; |
|
| --enable-*) |
|
| case "$option" in |
|
| *=*) ;; |
|
| *) optarg=yes ;; |
|
| esac |
|
| |
|
| enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` |
# Provide some information about the compiler. |
| eval $enableopt="$optarg" |
echo "$as_me:3539:" \ |
| enableoptions="$enableoptions $option" |
"checking for C compiler version" >&5 |
| ;; |
ac_compiler=`set X $ac_compile; echo $2` |
| --exec-prefix* | --ex*) |
{ (eval echo "$as_me:3542: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| exec_prefix=$optarg |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| exec_prefixoption="--exec-prefix=$optarg" |
ac_status=$? |
| ;; |
echo "$as_me:3545: \$? = $ac_status" >&5 |
| --gas | --g*) |
(exit $ac_status); } |
| gas=yes |
{ (eval echo "$as_me:3547: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| ;; |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| --help | --he*) |
ac_status=$? |
| fatal=yes |
echo "$as_me:3550: \$? = $ac_status" >&5 |
| ;; |
(exit $ac_status); } |
| --host* | --ho*) |
{ (eval echo "$as_me:3552: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| case $host_alias in |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| NOHOST) host_alias=$optarg ;; |
ac_status=$? |
| *) echo '***' Can only configure for one host at a time. 1>&2 |
echo "$as_me:3555: \$? = $ac_status" >&5 |
| fatal=yes |
(exit $ac_status); } |
| ;; |
|
| esac |
|
| ;; |
|
| --nfp | --nf*) |
|
| floating_point=no |
|
| floating_pointoption="--nfp" |
|
| ;; |
|
| --norecursion | --no*) |
|
| norecursion=yes |
|
| ;; |
|
| --prefix* | --pre*) |
|
| prefix=$optarg |
|
| prefixoption="--prefix=$optarg" |
|
| ;; |
|
| --program-prefix* | --program-p*) |
|
| program_prefix=$optarg |
|
| program_prefixoption="--program-prefix=$optarg" |
|
| ;; |
|
| --program-suffix* | --program-s*) |
|
| program_suffix=$optarg |
|
| program_suffixoption="--program-suffix=$optarg" |
|
| ;; |
|
| --program-transform-name* | --program-t*) |
|
| # Double any backslashes or dollar signs in the argument |
|
| program_transform_name="${program_transform_name} -e `echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`" |
|
| program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'" |
|
| ;; |
|
| --rm) |
|
| removing=--rm |
|
| ;; |
|
| --silent | --sil* | --quiet | --q*) |
|
| redirect=">/dev/null" |
|
| verbose=--silent |
|
| ;; |
|
| --site* | --sit*) |
|
| site=$optarg |
|
| site_option="--site=$optarg" |
|
| ;; |
|
| --srcdir*/ | --sr*/) |
|
| # Remove trailing slashes. Otherwise, when the file name gets |
|
| # bolted into an object file as debug info, it has two slashes |
|
| # in it. Ordinarily this is ok, but emacs takes double slash |
|
| # to mean "forget the first part". |
|
| srcdir=`echo $optarg | sed -e 's:/$::'` |
|
| ;; |
|
| --srcdir* | --sr*) |
|
| srcdir=$optarg |
|
| ;; |
|
| --target* | --ta*) |
|
| case $target_alias in |
|
| NOTARGET) target_alias=$optarg ;; |
|
| *) echo '***' Can only configure for one target at a time. 1>&2 |
|
| fatal=yes |
|
| ;; |
|
| esac |
|
| ;; |
|
| --tmpdir* | --tm*) |
|
| TMPDIR=$optarg |
|
| tmpdiroption="--tmpdir=$optarg" |
|
| ;; |
|
| --verbose | --v | --verb*) |
|
| redirect= |
|
| verbose=--verbose |
|
| ;; |
|
| --version | --V | --vers*) |
|
| echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'` |
|
| exit 0 |
|
| ;; |
|
| --with-*) |
|
| case "$option" in |
|
| *=*) ;; |
|
| *) optarg=yes ;; |
|
| esac |
|
| |
|
| withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` |
cat >conftest.$ac_ext <<_ACEOF |
| eval $withopt="$optarg" |
#line 3559 "configure" |
| withoptions="$withoptions $option" |
#include "confdefs.h" |
| ;; |
|
| --without-*) |
int |
| withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'` |
main () |
| eval $withopt=no |
{ |
| withoutoptions="$withoutoptions $option" |
|
| ;; |
; |
| --x) with_x=yes |
return 0; |
| withoptions="$withoptions --with-x" |
} |
| ;; |
_ACEOF |
| --x-i* | --x-l*) other_options="$other_options $orig_option" |
ac_clean_files_save=$ac_clean_files |
| ;; |
ac_clean_files="$ac_clean_files a.out a.exe" |
| --bi* | --sb* | --li* | --da* | --sy* | --sh* | --lo* | --in* | --ol* | --ma*) |
# Try to create an executable without -o first, disregard a.out. |
| # These options were added to autoconf for emacs. |
# It will help us diagnose broken compilers, and finding out an intuition |
| ;; |
# of exeext. |
| --*) |
echo "$as_me:3575: checking for C compiler default output" >&5 |
| echo "configure: Unrecognized option: \"$orig_option\"; use --help for usage." >&2 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| exit 1 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| ;; |
if { (eval echo "$as_me:3578: \"$ac_link_default\"") >&5 |
| *) |
(eval $ac_link_default) 2>&5 |
| case $undefs in |
ac_status=$? |
| NOUNDEFS) undefs=$option ;; |
echo "$as_me:3581: \$? = $ac_status" >&5 |
| *) echo '***' Can only configure for one host and one target at a time. 1>&2 |
(exit $ac_status); }; then |
| fatal=yes |
# Find the output, starting from the most likely. This scheme is |
| ;; |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| esac |
# resort. |
| ;; |
for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| esac |
ls a.out conftest 2>/dev/null; |
| |
ls a.* conftest.* 2>/dev/null`; do |
| |
case $ac_file in |
| |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| |
a.out ) # We found the default executable, but exeext='' is most |
| |
# certainly right. |
| |
break;; |
| |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| |
# FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| |
export ac_cv_exeext |
| |
break;; |
| |
* ) break;; |
| |
esac |
| done |
done |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
{ { echo "$as_me:3604: error: C compiler cannot create executables" >&5 |
| |
echo "$as_me: error: C compiler cannot create executables" >&2;} |
| |
{ (exit 77); exit 77; }; } |
| |
fi |
| |
|
| # process host and target |
ac_exeext=$ac_cv_exeext |
| |
echo "$as_me:3610: result: $ac_file" >&5 |
| |
echo "${ECHO_T}$ac_file" >&6 |
| |
|
| # Do some error checking and defaulting for the host and target type. |
# Check the compiler produces executables we can run. If not, either |
| # The inputs are: |
# the compiler is broken, or we cross compile. |
| # configure --host=HOST --target=TARGET UNDEFS |
echo "$as_me:3615: checking whether the C compiler works" >&5 |
| |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| |
# If not cross compiling, check that we can run a simple program. |
| |
if test "$cross_compiling" != yes; then |
| |
if { ac_try='./$ac_file' |
| |
{ (eval echo "$as_me:3621: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3624: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
cross_compiling=no |
| |
else |
| |
if test "$cross_compiling" = maybe; then |
| |
cross_compiling=yes |
| |
else |
| |
{ { echo "$as_me:3631: error: cannot run C compiled programs. |
| |
If you meant to cross compile, use \`--host'." >&5 |
| |
echo "$as_me: error: cannot run C compiled programs. |
| |
If you meant to cross compile, use \`--host'." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
fi |
| |
echo "$as_me:3639: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
|
| |
rm -f a.out a.exe conftest$ac_cv_exeext |
| |
ac_clean_files=$ac_clean_files_save |
| |
# Check the compiler produces executables we can run. If not, either |
| |
# the compiler is broken, or we cross compile. |
| |
echo "$as_me:3646: checking whether we are cross compiling" >&5 |
| |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| |
echo "$as_me:3648: result: $cross_compiling" >&5 |
| |
echo "${ECHO_T}$cross_compiling" >&6 |
| |
|
| |
echo "$as_me:3651: checking for executable suffix" >&5 |
| |
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| |
if { (eval echo "$as_me:3653: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3656: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| |
# `rm'. |
| |
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| |
case $ac_file in |
| |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| |
export ac_cv_exeext |
| |
break;; |
| |
* ) break;; |
| |
esac |
| |
done |
| |
else |
| |
{ { echo "$as_me:3672: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| |
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
rm -f conftest$ac_cv_exeext |
| |
echo "$as_me:3678: result: $ac_cv_exeext" >&5 |
| |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
| |
|
| |
rm -f conftest.$ac_ext |
| |
EXEEXT=$ac_cv_exeext |
| |
ac_exeext=$EXEEXT |
| |
echo "$as_me:3684: checking for object suffix" >&5 |
| |
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| |
if test "${ac_cv_objext+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 3690 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.o conftest.obj |
| |
if { (eval echo "$as_me:3702: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3705: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| |
case $ac_file in |
| |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| |
break;; |
| |
esac |
| |
done |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
{ { echo "$as_me:3717: error: cannot compute OBJEXT: cannot compile" >&5 |
| |
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:3724: result: $ac_cv_objext" >&5 |
| |
echo "${ECHO_T}$ac_cv_objext" >&6 |
| |
OBJEXT=$ac_cv_objext |
| |
ac_objext=$OBJEXT |
| |
echo "$as_me:3728: checking whether we are using the GNU C compiler" >&5 |
| |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 3734 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
#ifndef __GNUC__ |
| |
choke me |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:3749: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3752: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:3755: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3758: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_compiler_gnu=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_compiler_gnu=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| |
|
| |
fi |
| |
echo "$as_me:3770: result: $ac_cv_c_compiler_gnu" >&5 |
| |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| |
ac_test_CFLAGS=${CFLAGS+set} |
| |
ac_save_CFLAGS=$CFLAGS |
| |
CFLAGS="-g" |
| |
echo "$as_me:3776: checking whether $CC accepts -g" >&5 |
| |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 3782 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:3794: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3797: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:3800: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3803: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_prog_cc_g=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_prog_cc_g=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:3813: result: $ac_cv_prog_cc_g" >&5 |
| |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| |
if test "$ac_test_CFLAGS" = set; then |
| |
CFLAGS=$ac_save_CFLAGS |
| |
elif test $ac_cv_prog_cc_g = yes; then |
| |
if test "$GCC" = yes; then |
| |
CFLAGS="-g -O2" |
| |
else |
| |
CFLAGS="-g" |
| |
fi |
| |
else |
| |
if test "$GCC" = yes; then |
| |
CFLAGS="-O2" |
| |
else |
| |
CFLAGS= |
| |
fi |
| |
fi |
| |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| |
# in C++ we need to declare it. In case someone uses the same compiler |
| |
# for both compiling C and C++ we need to have the C++ compiler decide |
| |
# the declaration of exit, since it's the most demanding environment. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#ifndef __cplusplus |
| |
choke me |
| |
#endif |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:3840: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3843: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:3846: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3849: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
for ac_declaration in \ |
| |
''\ |
| |
'#include <stdlib.h>' \ |
| |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| |
'extern "C" void std::exit (int); using std::exit;' \ |
| |
'extern "C" void exit (int) throw ();' \ |
| |
'extern "C" void exit (int);' \ |
| |
'void exit (int);' |
| |
do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 3861 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
$ac_declaration |
| |
int |
| |
main () |
| |
{ |
| |
exit (42); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:3874: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3877: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:3880: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3883: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
continue |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 3893 "configure" |
| |
#include "confdefs.h" |
| |
$ac_declaration |
| |
int |
| |
main () |
| |
{ |
| |
exit (42); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:3905: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3908: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:3911: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:3914: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
rm -f conftest* |
| |
if test -n "$ac_declaration"; then |
| |
echo '#ifdef __cplusplus' >>confdefs.h |
| |
echo $ac_declaration >>confdefs.h |
| |
echo '#endif' >>confdefs.h |
| |
fi |
| |
|
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
ac_config_commands="$ac_config_commands default-1" |
| |
|
| |
am_make=${MAKE-make} |
| |
cat > confinc << 'END' |
| |
doit: |
| |
@echo done |
| |
END |
| |
# If we don't find an include directive, just comment out the code. |
| |
echo "$as_me:3949: checking for style of include used by $am_make" >&5 |
| |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| |
am__include='#' |
| |
am__quote= |
| |
_am_result=none |
| |
# First try GNU make style include. |
| |
echo "include confinc" > confmf |
| |
# We grep out `Entering directory' and `Leaving directory' |
| |
# messages which can occur if `w' ends up in MAKEFLAGS. |
| |
# In particular we don't look at `^make:' because GNU make might |
| |
# be invoked under some other name (usually "gmake"), in which |
| |
# case it prints its new name instead of `make'. |
| |
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| |
am__include=include |
| |
am__quote= |
| |
_am_result=GNU |
| |
fi |
| |
# Now try BSD make style include. |
| |
if test "$am__include" = "#"; then |
| |
echo '.include "confinc"' > confmf |
| |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| |
am__include=.include |
| |
am__quote='"' |
| |
_am_result=BSD |
| |
fi |
| |
fi |
| |
|
| |
echo "$as_me:3976: result: $_am_result" >&5 |
| |
echo "${ECHO_T}$_am_result" >&6 |
| |
rm -f confinc confmf |
| |
|
| |
depcc="$CC" am_compiler_list= |
| |
|
| |
echo "$as_me:3982: checking dependency style of $depcc" >&5 |
| |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| |
# We make a subdir and do the tests there. Otherwise we can end up |
| |
# making bogus files that we don't know about and never remove. For |
| |
# instance it was reported that on HP-UX the gcc test will end up |
| |
# making a dummy file named `D' -- because `-MD' means `put the output |
| |
# in D'. |
| |
mkdir conftest.dir |
| |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| |
# using a relative directory. |
| |
cp "$am_depcomp" conftest.dir |
| |
cd conftest.dir |
| |
|
| |
am_cv_CC_dependencies_compiler_type=none |
| |
if test "$am_compiler_list" = ""; then |
| |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| |
fi |
| |
for depmode in $am_compiler_list; do |
| |
# We need to recreate these files for each test, as the compiler may |
| |
# overwrite some of them when testing with obscure command lines. |
| |
# This happens at least with the AIX C compiler. |
| |
echo '#include "conftest.h"' > conftest.c |
| |
echo 'int i;' > conftest.h |
| |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| |
|
| |
case $depmode in |
| |
nosideeffect) |
| |
# after this tag, mechanisms are not by side-effect, so they'll |
| |
# only be used when explicitly requested |
| |
if test "x$enable_dependency_tracking" = xyes; then |
| |
continue |
| |
else |
| |
break |
| |
fi |
| |
;; |
| |
none) break ;; |
| |
esac |
| |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| |
# mode. It turns out that the SunPro C++ compiler does not properly |
| |
# handle `-M -o', and we need to detect this. |
| |
if depmode=$depmode \ |
| |
source=conftest.c object=conftest.o \ |
| |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
| |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| |
am_cv_CC_dependencies_compiler_type=$depmode |
| |
break |
| |
fi |
| |
done |
| |
|
| |
cd .. |
| |
rm -rf conftest.dir |
| |
else |
| |
am_cv_CC_dependencies_compiler_type=none |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:4044: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| |
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" |
| |
|
| |
echo "$as_me:4048: checking for $CC option to accept ANSI C" >&5 |
| |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_cv_prog_cc_stdc=no |
| |
ac_save_CC=$CC |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4056 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdarg.h> |
| |
#include <stdio.h> |
| |
#include <sys/types.h> |
| |
#include <sys/stat.h> |
| |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| |
struct buf { int x; }; |
| |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| |
static char *e (p, i) |
| |
char **p; |
| |
int i; |
| |
{ |
| |
return p[i]; |
| |
} |
| |
static char *f (char * (*g) (char **, int), char **p, ...) |
| |
{ |
| |
char *s; |
| |
va_list v; |
| |
va_start (v,p); |
| |
s = g (p, va_arg (v,int)); |
| |
va_end (v); |
| |
return s; |
| |
} |
| |
int test (int i, double x); |
| |
struct s1 {int (*f) (int a);}; |
| |
struct s2 {int (*f) (double a);}; |
| |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| |
int argc; |
| |
char **argv; |
| |
int |
| |
main () |
| |
{ |
| |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
# Don't try gcc -ansi; that turns off useful extensions and |
| |
# breaks some systems' header files. |
| |
# AIX -qlanglvl=ansi |
| |
# Ultrix and OSF/1 -std1 |
| |
# HP-UX 10.20 and later -Ae |
| |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| |
# SVR4 -Xc -D__EXTENSIONS__ |
| |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| |
do |
| |
CC="$ac_save_CC $ac_arg" |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4105: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4108: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4111: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4114: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_prog_cc_stdc=$ac_arg |
| |
break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext |
| |
done |
| |
rm -f conftest.$ac_ext conftest.$ac_objext |
| |
CC=$ac_save_CC |
| |
|
| |
fi |
| |
|
| |
case "x$ac_cv_prog_cc_stdc" in |
| |
x|xno) |
| |
echo "$as_me:4131: result: none needed" >&5 |
| |
echo "${ECHO_T}none needed" >&6 ;; |
| |
*) |
| |
echo "$as_me:4134: result: $ac_cv_prog_cc_stdc" >&5 |
| |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| |
esac |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
echo "$as_me:4144: checking how to run the C preprocessor" >&5 |
| |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| |
# On Suns, sometimes $CPP names a directory. |
| |
if test -n "$CPP" && test -d "$CPP"; then |
| |
CPP= |
| |
fi |
| |
if test -z "$CPP"; then |
| |
if test "${ac_cv_prog_CPP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# Double quotes because CPP needs to be expanded |
| |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| |
do |
| |
ac_preproc_ok=false |
| |
for ac_c_preproc_warn_flag in '' yes |
| |
do |
| |
# Use a header file that comes with gcc, so configuring glibc |
| |
# with a fresh cross-compiler works. |
| |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| |
# not just through cpp. "Syntax error" is here to catch this case. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4165 "configure" |
| |
#include "confdefs.h" |
| |
#include <assert.h> |
| |
Syntax error |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4170: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4176: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Broken: fails on valid input. |
| |
continue |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
# OK, works on sane cases. Now check whether non-existent headers |
| |
# can be detected and how. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4199 "configure" |
| |
#include "confdefs.h" |
| |
#include <ac_nonexistent.h> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4203: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4209: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
# Broken: success on invalid input. |
| |
continue |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Passes both tests. |
| |
ac_preproc_ok=: |
| |
break |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
done |
| |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| |
rm -f conftest.err conftest.$ac_ext |
| |
if $ac_preproc_ok; then |
| |
break |
| |
fi |
| |
|
| |
done |
| |
ac_cv_prog_CPP=$CPP |
| |
|
| |
fi |
| |
CPP=$ac_cv_prog_CPP |
| |
else |
| |
ac_cv_prog_CPP=$CPP |
| |
fi |
| |
echo "$as_me:4246: result: $CPP" >&5 |
| |
echo "${ECHO_T}$CPP" >&6 |
| |
ac_preproc_ok=false |
| |
for ac_c_preproc_warn_flag in '' yes |
| |
do |
| |
# Use a header file that comes with gcc, so configuring glibc |
| |
# with a fresh cross-compiler works. |
| |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| |
# not just through cpp. "Syntax error" is here to catch this case. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4256 "configure" |
| |
#include "confdefs.h" |
| |
#include <assert.h> |
| |
Syntax error |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4261: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4267: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Broken: fails on valid input. |
| |
continue |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
# OK, works on sane cases. Now check whether non-existent headers |
| |
# can be detected and how. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4290 "configure" |
| |
#include "confdefs.h" |
| |
#include <ac_nonexistent.h> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4294: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4300: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
# Broken: success on invalid input. |
| |
continue |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Passes both tests. |
| |
ac_preproc_ok=: |
| |
break |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
done |
| |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| |
rm -f conftest.err conftest.$ac_ext |
| |
if $ac_preproc_ok; then |
| |
: |
| |
else |
| |
{ { echo "$as_me:4328: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
case $ac_cv_prog_cc_stdc in |
| |
no) |
| |
;; |
| |
*) |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4344 "configure" |
| |
#include "confdefs.h" |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
#if ! __GMP_HAVE_PROTOTYPES |
| |
die die die |
| |
#endif |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4369: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4372: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4375: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
{ echo "$as_me:4381: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5 |
| |
echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;} |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
;; |
| |
esac |
| |
|
| |
# The C++ compiler, if desired. |
| |
want_cxx=no |
| |
if test $enable_cxx != no; then |
| |
test_CXXFLAGS=${CXXFLAGS+set} |
| |
ac_ext=cc |
| |
ac_cpp='$CXXCPP $CPPFLAGS' |
| |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| |
if test -n "$ac_tool_prefix"; then |
| |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| |
do |
| |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| |
echo "$as_me:4402: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_CXX+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$CXX"; then |
| |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| |
echo "$as_me:4417: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
CXX=$ac_cv_prog_CXX |
| |
if test -n "$CXX"; then |
| |
echo "$as_me:4425: result: $CXX" >&5 |
| |
echo "${ECHO_T}$CXX" >&6 |
| |
else |
| |
echo "$as_me:4428: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$CXX" && break |
| |
done |
| |
fi |
| |
if test -z "$CXX"; then |
| |
ac_ct_CXX=$CXX |
| |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo "$as_me:4441: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_CXX"; then |
| |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| |
echo "$as_me:4456: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| |
if test -n "$ac_ct_CXX"; then |
| |
echo "$as_me:4464: result: $ac_ct_CXX" >&5 |
| |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
| |
else |
| |
echo "$as_me:4467: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$ac_ct_CXX" && break |
| |
done |
| |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| |
|
| |
CXX=$ac_ct_CXX |
| |
fi |
| |
|
| |
# Provide some information about the compiler. |
| |
echo "$as_me:4479:" \ |
| |
"checking for C++ compiler version" >&5 |
| |
ac_compiler=`set X $ac_compile; echo $2` |
| |
{ (eval echo "$as_me:4482: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4485: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
{ (eval echo "$as_me:4487: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4490: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
{ (eval echo "$as_me:4492: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4495: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
|
| |
echo "$as_me:4498: checking whether we are using the GNU C++ compiler" >&5 |
| |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4504 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
#ifndef __GNUC__ |
| |
choke me |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4519: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4522: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4525: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4528: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_compiler_gnu=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_compiler_gnu=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| |
|
| |
fi |
| |
echo "$as_me:4540: result: $ac_cv_cxx_compiler_gnu" >&5 |
| |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
| |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| |
ac_save_CXXFLAGS=$CXXFLAGS |
| |
CXXFLAGS="-g" |
| |
echo "$as_me:4546: checking whether $CXX accepts -g" >&5 |
| |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4552 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4564: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4567: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4570: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4573: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_prog_cxx_g=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_prog_cxx_g=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:4583: result: $ac_cv_prog_cxx_g" >&5 |
| |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| |
if test "$ac_test_CXXFLAGS" = set; then |
| |
CXXFLAGS=$ac_save_CXXFLAGS |
| |
elif test $ac_cv_prog_cxx_g = yes; then |
| |
if test "$GXX" = yes; then |
| |
CXXFLAGS="-g -O2" |
| |
else |
| |
CXXFLAGS="-g" |
| |
fi |
| |
else |
| |
if test "$GXX" = yes; then |
| |
CXXFLAGS="-O2" |
| |
else |
| |
CXXFLAGS= |
| |
fi |
| |
fi |
| |
for ac_declaration in \ |
| |
''\ |
| |
'#include <stdlib.h>' \ |
| |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| |
'extern "C" void std::exit (int); using std::exit;' \ |
| |
'extern "C" void exit (int) throw ();' \ |
| |
'extern "C" void exit (int);' \ |
| |
'void exit (int);' |
| |
do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4610 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
$ac_declaration |
| |
int |
| |
main () |
| |
{ |
| |
exit (42); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4623: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4626: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4629: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4632: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
continue |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4642 "configure" |
| |
#include "confdefs.h" |
| |
$ac_declaration |
| |
int |
| |
main () |
| |
{ |
| |
exit (42); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4657: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:4660: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4663: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
rm -f conftest* |
| |
if test -n "$ac_declaration"; then |
| |
echo '#ifdef __cplusplus' >>confdefs.h |
| |
echo $ac_declaration >>confdefs.h |
| |
echo '#endif' >>confdefs.h |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
depcc="$CXX" am_compiler_list= |
| |
|
| |
echo "$as_me:4687: checking dependency style of $depcc" >&5 |
| |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| |
# We make a subdir and do the tests there. Otherwise we can end up |
| |
# making bogus files that we don't know about and never remove. For |
| |
# instance it was reported that on HP-UX the gcc test will end up |
| |
# making a dummy file named `D' -- because `-MD' means `put the output |
| |
# in D'. |
| |
mkdir conftest.dir |
| |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| |
# using a relative directory. |
| |
cp "$am_depcomp" conftest.dir |
| |
cd conftest.dir |
| |
|
| |
am_cv_CXX_dependencies_compiler_type=none |
| |
if test "$am_compiler_list" = ""; then |
| |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| |
fi |
| |
for depmode in $am_compiler_list; do |
| |
# We need to recreate these files for each test, as the compiler may |
| |
# overwrite some of them when testing with obscure command lines. |
| |
# This happens at least with the AIX C compiler. |
| |
echo '#include "conftest.h"' > conftest.c |
| |
echo 'int i;' > conftest.h |
| |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| |
|
| |
case $depmode in |
| |
nosideeffect) |
| |
# after this tag, mechanisms are not by side-effect, so they'll |
| |
# only be used when explicitly requested |
| |
if test "x$enable_dependency_tracking" = xyes; then |
| |
continue |
| |
else |
| |
break |
| |
fi |
| |
;; |
| |
none) break ;; |
| |
esac |
| |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| |
# mode. It turns out that the SunPro C++ compiler does not properly |
| |
# handle `-M -o', and we need to detect this. |
| |
if depmode=$depmode \ |
| |
source=conftest.c object=conftest.o \ |
| |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
| |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| |
am_cv_CXX_dependencies_compiler_type=$depmode |
| |
break |
| |
fi |
| |
done |
| |
|
| |
cd .. |
| |
rm -rf conftest.dir |
| |
else |
| |
am_cv_CXX_dependencies_compiler_type=none |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:4749: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| |
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" |
| |
|
| |
echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5 |
| |
cxxflags_ac_prog_cxx=$CXXFLAGS |
| |
cxxflags_list=ac_prog_cxx |
| |
|
| |
# If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed |
| |
# if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance |
| |
# of working, eg. on a GNU system where CC=gcc and CXX=g++. |
| |
# |
| |
if test "$test_CXXFLAGS" != set; then |
| |
cxxflags_cflags=$CFLAGS |
| |
cxxflags_list="cflags $cxxflags_list" |
| |
if test "$ac_prog_cxx_g" = no; then |
| |
cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'` |
| |
fi |
| |
fi |
| |
|
| |
# See if the C++ compiler works. If the user specified CXXFLAGS then all |
| |
# we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't |
| |
# give a fatal error, just leaves CXX set to a default g++. If on the |
| |
# other hand the user didn't specify CXXFLAGS then we get to try here our |
| |
# $cxxflags_list alternatives. |
| |
# |
| |
for cxxflags_choice in $cxxflags_list; do |
| |
eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" |
| |
echo "$as_me:4777: checking C++ compiler $CXX $CXXFLAGS" >&5 |
| |
echo $ECHO_N "checking C++ compiler $CXX $CXXFLAGS... $ECHO_C" >&6 |
| |
cat >conftest.cc <<EOF |
| |
#include <iostream> |
| |
using namespace std; |
| |
int |
| |
main (void) |
| |
{ |
| |
cout.setf (ios::hex); |
| |
cout << 123; |
| |
return 0; |
| |
} |
| |
EOF |
| |
|
| |
gmp_cxxcompile="$CXX $CXXFLAGS conftest.cc -o conftest >&5" |
| |
if { (eval echo "$as_me:4792: \"$gmp_cxxcompile\"") >&5 |
| |
(eval $gmp_cxxcompile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:4795: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
rm -f conftest* |
| |
echo "$as_me:4798: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
want_cxx=yes |
| |
break |
| |
else |
| |
rm -f conftest* |
| |
echo "$as_me:4804: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
: |
| |
fi |
| |
|
| |
done |
| |
|
| |
# If --enable-cxx=yes but a C++ compiler can't be found, then abort. |
| |
if test $want_cxx = no && test $enable_cxx = yes; then |
| |
{ { echo "$as_me:4813: error: C++ compiler not available" >&5 |
| |
echo "$as_me: error: C++ compiler not available" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
|
| |
if test $want_cxx = yes; then |
| |
WANT_CXX_TRUE= |
| |
WANT_CXX_FALSE='#' |
| |
else |
| |
WANT_CXX_TRUE='#' |
| |
WANT_CXX_FALSE= |
| |
fi |
| |
|
| |
# FIXME: We're not interested in CXXCPP for ourselves, but if we don't call |
| |
# it here then AC_PROG_LIBTOOL (via _LT_AC_TAGCONFIG) will do so |
| |
# unconditionally, and that will fail if there's no C++ compiler (and no |
| |
# generic /lib/cpp). |
| # |
# |
| # The rules are: |
if test $want_cxx = yes; then |
| # 1. You aren't allowed to specify --host, --target, and undefs at the |
ac_ext=cc |
| # same time. |
ac_cpp='$CXXCPP $CPPFLAGS' |
| # 2. Host defaults to undefs. |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| # 3. If undefs is not specified, then host defaults to the current host, |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| # as determined by config.guess. |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| # 4. Target defaults to undefs. |
echo "$as_me:4838: checking how to run the C++ preprocessor" >&5 |
| # 5. If undefs is not specified, then target defaults to host. |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| |
if test -z "$CXXCPP"; then |
| |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# Double quotes because CXXCPP needs to be expanded |
| |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| |
do |
| |
ac_preproc_ok=false |
| |
for ac_cxx_preproc_warn_flag in '' yes |
| |
do |
| |
# Use a header file that comes with gcc, so configuring glibc |
| |
# with a fresh cross-compiler works. |
| |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| |
# not just through cpp. "Syntax error" is here to catch this case. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4855 "configure" |
| |
#include "confdefs.h" |
| |
#include <assert.h> |
| |
Syntax error |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4860: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4866: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Broken: fails on valid input. |
| |
continue |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| case "${fatal}" in |
# OK, works on sane cases. Now check whether non-existent headers |
| "") |
# can be detected and how. |
| # Make sure that host, target & undefs aren't all specified at the |
cat >conftest.$ac_ext <<_ACEOF |
| # same time. |
#line 4889 "configure" |
| case $host_alias---$target_alias---$undefs in |
#include "confdefs.h" |
| NOHOST---*---* | *---NOTARGET---* | *---*---NOUNDEFS) |
#include <ac_nonexistent.h> |
| ;; |
_ACEOF |
| *) echo '***' Can only configure for one host and one target at a time. 1>&2 |
if { (eval echo "$as_me:4893: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| fatal=yes |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| break 2 |
ac_status=$? |
| ;; |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| esac |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4899: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
# Broken: success on invalid input. |
| |
continue |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Passes both tests. |
| |
ac_preproc_ok=: |
| |
break |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| # Now, do defaulting for host. |
done |
| case $host_alias in |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| NOHOST) |
rm -f conftest.err conftest.$ac_ext |
| case $undefs in |
if $ac_preproc_ok; then |
| NOUNDEFS) |
break |
| # Neither --host option nor undefs were present. |
fi |
| # Call config.guess. |
|
| guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` |
|
| if host_alias=`${guesssys}` |
|
| then |
|
| # If the string we are going to use for |
|
| # the target is a prefix of the string |
|
| # we just guessed for the host, then |
|
| # assume we are running native, and force |
|
| # the same string for both target and host. |
|
| case $target_alias in |
|
| NOTARGET) ;; |
|
| *) |
|
| if expr $host_alias : $target_alias >/dev/null |
|
| then |
|
| host_alias=$target_alias |
|
| fi |
|
| ;; |
|
| esac |
|
| echo "Configuring for a ${host_alias} host." 1>&2 |
|
| arguments="--host=$host_alias $arguments" |
|
| else |
|
| echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2 |
|
| fatal=yes |
|
| fi |
|
| ;; |
|
| *) |
|
| host_alias=$undefs |
|
| arguments="--host=$host_alias $arguments" |
|
| undefs=NOUNDEFS |
|
| ;; |
|
| esac |
|
| esac |
|
| |
|
| # Do defaulting for target. If --target option isn't present, default |
done |
| # to undefs. If undefs isn't present, default to host. |
ac_cv_prog_CXXCPP=$CXXCPP |
| case $target_alias in |
|
| NOTARGET) |
fi |
| case $undefs in |
CXXCPP=$ac_cv_prog_CXXCPP |
| NOUNDEFS) |
else |
| target_alias=$host_alias |
ac_cv_prog_CXXCPP=$CXXCPP |
| ;; |
fi |
| *) |
echo "$as_me:4936: result: $CXXCPP" >&5 |
| target_alias=$undefs |
echo "${ECHO_T}$CXXCPP" >&6 |
| arguments="--target=$target_alias $arguments" |
ac_preproc_ok=false |
| ;; |
for ac_cxx_preproc_warn_flag in '' yes |
| esac |
do |
| esac |
# Use a header file that comes with gcc, so configuring glibc |
| ;; |
# with a fresh cross-compiler works. |
| *) ;; |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| |
# not just through cpp. "Syntax error" is here to catch this case. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4946 "configure" |
| |
#include "confdefs.h" |
| |
#include <assert.h> |
| |
Syntax error |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4951: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4957: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Broken: fails on valid input. |
| |
continue |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
# OK, works on sane cases. Now check whether non-existent headers |
| |
# can be detected and how. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 4980 "configure" |
| |
#include "confdefs.h" |
| |
#include <ac_nonexistent.h> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:4984: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:4990: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
# Broken: success on invalid input. |
| |
continue |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
# Passes both tests. |
| |
ac_preproc_ok=: |
| |
break |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
done |
| |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| |
rm -f conftest.err conftest.$ac_ext |
| |
if $ac_preproc_ok; then |
| |
: |
| |
else |
| |
{ { echo "$as_me:5018: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 |
| |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
fi |
| |
|
| |
case $host_cpu in |
| |
c90 | t90) |
| |
|
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5035 "configure" |
| |
#include "confdefs.h" |
| |
#ifdef _CRAYIEEE |
| |
yes |
| |
#endif |
| |
_ACEOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "yes" >/dev/null 2>&1; then |
| |
add_path="cray/ieee" |
| |
else |
| |
add_path="cray/cfp"; extra_functions="mulwwc90" |
| |
fi |
| |
rm -f conftest* |
| |
;; |
| |
j90 | sv1) |
| |
extra_functions="mulwwj90" |
| |
add_path="cray/cfp" ;; |
| esac |
esac |
| |
|
| if [ -n "${fatal}" -o "${host_alias}" = "help" ] ; then |
if test -z "$MPN_PATH"; then |
| exec 1>&2 |
path="$add_path $path" |
| echo Usage: configure [OPTIONS] [HOST] |
fi |
| echo |
|
| echo Options: [defaults in brackets] |
|
| echo ' --prefix=MYDIR install into MYDIR [/usr/local]' |
|
| echo ' --exec-prefix=MYDIR install host-dependent files into MYDIR [/usr/local]' |
|
| echo ' --help print this message [normal config]' |
|
| echo ' --build=BUILD configure for building on BUILD [BUILD=HOST]' |
|
| echo ' --host=HOST configure for HOST [determined via config.guess]' |
|
| echo ' --norecursion configure this directory only [recurse]' |
|
| echo ' --program-prefix=FOO prepend FOO to installed program names [""]' |
|
| echo ' --program-suffix=FOO append FOO to installed program names [""]' |
|
| echo ' --program-transform-name=P transform installed names by sed pattern P [""]' |
|
| echo ' --site=SITE configure with site-specific makefile for SITE' |
|
| echo ' --srcdir=DIR find the sources in DIR [. or ..]' |
|
| echo ' --target=TARGET configure for TARGET [TARGET=HOST]' |
|
| echo ' --tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]' |
|
| echo ' --nfp configure for software floating point [hard float]' |
|
| echo ' --with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)' |
|
| echo ' --without-FOO package FOO is NOT available' |
|
| echo ' --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)' |
|
| echo ' --disable-FOO do not include feature FOO' |
|
| echo |
|
| echo 'Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.' |
|
| echo |
|
| if [ -r config.status ] ; then |
|
| cat config.status |
|
| fi |
|
| |
|
| exit 1 |
# for a nail build, also look in "nails" subdirectories |
| |
if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then |
| |
new_path= |
| |
for i in $path; do |
| |
case $i in |
| |
generic) new_path="$new_path $i" ;; |
| |
*) new_path="$new_path $i/nails $i" ;; |
| |
esac |
| |
done |
| |
path=$new_path |
| fi |
fi |
| |
|
| configsub=`echo ${progname} | sed 's/configure$/config.sub/'` |
cat >&5 <<EOF |
| moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'` |
configure:1413: Decided: |
| |
ABI=$ABI |
| |
CC=$CC |
| |
CFLAGS=$CFLAGS |
| |
CPPFLAGS=$CPPFLAGS |
| |
GMP_LDFLAGS=$GMP_LDFLAGS |
| |
CXX=$CXX |
| |
CXXFLAGS=$CXXFLAGS |
| |
path=$path |
| |
EOF |
| |
echo "using ABI=\"$ABI\"" |
| |
echo " CC=\"$CC\"" |
| |
echo " CFLAGS=\"$CFLAGS\"" |
| |
echo " CPPFLAGS=\"$CPPFLAGS\"" |
| |
if test $want_cxx = yes; then |
| |
echo " CXX=\"$CXX\"" |
| |
echo " CXXFLAGS=\"$CXXFLAGS\"" |
| |
fi |
| |
echo " MPN_PATH=\"$path\"" |
| |
|
| # this is a hack. sun4 must always be a valid host alias or this will fail. |
# Automake ansi2knr support. |
| if ${configsub} sun4 >/dev/null 2>&1 ; then |
|
| true |
echo "$as_me:5093: checking for ${CC-cc} option to accept ANSI C" >&5 |
| |
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
| |
if test "${am_cv_prog_cc_stdc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
else |
| echo '***' cannot find config.sub. 1>&2 |
am_cv_prog_cc_stdc=no |
| exit 1 |
ac_save_CC="$CC" |
| |
# Don't try gcc -ansi; that turns off useful extensions and |
| |
# breaks some systems' header files. |
| |
# AIX -qlanglvl=ansi |
| |
# Ultrix and OSF/1 -std1 |
| |
# HP-UX 10.20 and later -Ae |
| |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| |
# SVR4 -Xc -D__EXTENSIONS__ |
| |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| |
do |
| |
CC="$ac_save_CC $ac_arg" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5111 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdarg.h> |
| |
#include <stdio.h> |
| |
#include <sys/types.h> |
| |
#include <sys/stat.h> |
| |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| |
struct buf { int x; }; |
| |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| |
static char *e (p, i) |
| |
char **p; |
| |
int i; |
| |
{ |
| |
return p[i]; |
| |
} |
| |
static char *f (char * (*g) (char **, int), char **p, ...) |
| |
{ |
| |
char *s; |
| |
va_list v; |
| |
va_start (v,p); |
| |
s = g (p, va_arg (v,int)); |
| |
va_end (v); |
| |
return s; |
| |
} |
| |
int test (int i, double x); |
| |
struct s1 {int (*f) (int a);}; |
| |
struct s2 {int (*f) (double a);}; |
| |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| |
int argc; |
| |
char **argv; |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:5153: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:5156: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:5159: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:5162: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
am_cv_prog_cc_stdc="$ac_arg"; break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| fi |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
CC="$ac_save_CC" |
| |
|
| touch config.junk |
fi |
| if ${moveifchange} config.junk config.trash ; then |
|
| true |
if test -z "$am_cv_prog_cc_stdc"; then |
| |
echo "$as_me:5176: result: none needed" >&5 |
| |
echo "${ECHO_T}none needed" >&6 |
| else |
else |
| echo '***' cannot find move-if-change. 1>&2 |
echo "$as_me:5179: result: $am_cv_prog_cc_stdc" >&5 |
| exit 1 |
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
| fi |
fi |
| rm -f config.junk config.trash |
case "x$am_cv_prog_cc_stdc" in |
| |
x|xno) ;; |
| |
*) CC="$CC $am_cv_prog_cc_stdc" ;; |
| |
esac |
| |
|
| case "${srcdir}" in |
echo "$as_me:5187: checking for function prototypes" >&5 |
| "") |
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
| if [ -r configure.in ] ; then |
if test "$am_cv_prog_cc_stdc" != no; then |
| srcdir=. |
echo "$as_me:5190: result: yes" >&5 |
| else |
echo "${ECHO_T}yes" >&6 |
| if [ -r ${progname}.in ] ; then |
|
| srcdir=`echo ${progname} | sed 's:/configure$::'` |
cat >>confdefs.h <<\EOF |
| else |
#define PROTOTYPES 1 |
| echo '***' "Can't find configure.in. Try using --srcdir=some_dir" 1>&2 |
EOF |
| exit 1 |
|
| fi |
U= ANSI2KNR= |
| |
else |
| |
echo "$as_me:5199: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
U=_ ANSI2KNR=./ansi2knr |
| |
fi |
| |
# Ensure some checks needed by ansi2knr itself. |
| |
echo "$as_me:5204: checking for ANSI C header files" >&5 |
| |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| |
if test "${ac_cv_header_stdc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5210 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
#include <stdarg.h> |
| |
#include <string.h> |
| |
#include <float.h> |
| |
|
| |
_ACEOF |
| |
if { (eval echo "$as_me:5218: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:5224: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
ac_cv_header_stdc=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5246 "configure" |
| |
#include "confdefs.h" |
| |
#include <string.h> |
| |
|
| |
_ACEOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "memchr" >/dev/null 2>&1; then |
| |
: |
| |
else |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5264 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
|
| |
_ACEOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "free" >/dev/null 2>&1; then |
| |
: |
| |
else |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| |
if test "$cross_compiling" = yes; then |
| |
: |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5285 "configure" |
| |
#include "confdefs.h" |
| |
#include <ctype.h> |
| |
#if ((' ' & 0x0FF) == 0x020) |
| |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| |
#else |
| |
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| |
|| ('j' <= (c) && (c) <= 'r') \ |
| |
|| ('s' <= (c) && (c) <= 'z')) |
| |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| |
#endif |
| |
|
| |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| |
int |
| |
main () |
| |
{ |
| |
int i; |
| |
for (i = 0; i < 256; i++) |
| |
if (XOR (islower (i), ISLOWER (i)) |
| |
|| toupper (i) != TOUPPER (i)) |
| |
exit(2); |
| |
exit (0); |
| |
} |
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:5311: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:5314: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:5316: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:5319: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
fi |
| |
fi |
| |
echo "$as_me:5332: result: $ac_cv_header_stdc" >&5 |
| |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| |
if test $ac_cv_header_stdc = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define STDC_HEADERS 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
for ac_header in string.h |
| |
do |
| |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| |
echo "$as_me:5345: checking for $ac_header" >&5 |
| |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 5351 "configure" |
| |
#include "confdefs.h" |
| |
#include <$ac_header> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:5355: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:5361: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
eval "$as_ac_Header=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_Header=no" |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:5380: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
fi |
| |
done |
| |
|
| |
gmp_user_AR=$AR |
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| |
echo "$as_me:5394: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_AR+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$AR"; then |
| |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
| |
echo "$as_me:5409: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
AR=$ac_cv_prog_AR |
| |
if test -n "$AR"; then |
| |
echo "$as_me:5417: result: $AR" >&5 |
| |
echo "${ECHO_T}$AR" >&6 |
| |
else |
| |
echo "$as_me:5420: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_AR"; then |
| |
ac_ct_AR=$AR |
| |
# Extract the first word of "ar", so it can be a program name with args. |
| |
set dummy ar; ac_word=$2 |
| |
echo "$as_me:5429: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_AR"; then |
| |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_AR="ar" |
| |
echo "$as_me:5444: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| |
fi |
| |
fi |
| |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| |
if test -n "$ac_ct_AR"; then |
| |
echo "$as_me:5453: result: $ac_ct_AR" >&5 |
| |
echo "${ECHO_T}$ac_ct_AR" >&6 |
| |
else |
| |
echo "$as_me:5456: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
AR=$ac_ct_AR |
| |
else |
| |
AR="$ac_cv_prog_AR" |
| |
fi |
| |
|
| |
if test -z "$gmp_user_AR"; then |
| |
eval arflags=\"\$ar${abi1}_flags\" |
| |
test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\" |
| |
if test -n "$arflags"; then |
| |
echo "$as_me:5469: checking for extra ar flags" >&5 |
| |
echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6 |
| |
AR="$AR $arflags" |
| |
echo "$as_me:5472: result: $arflags" >&5 |
| |
echo "${ECHO_T}$arflags" >&6 |
| |
fi |
| |
fi |
| |
if test -z "$AR_FLAGS"; then |
| |
AR_FLAGS=cq |
| |
fi |
| |
|
| |
gmp_user_NM=$NM |
| |
echo "$as_me:5481: checking for BSD-compatible nm" >&5 |
| |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| |
if test "${lt_cv_path_NM+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$NM"; then |
| |
# Let the user override the test. |
| |
lt_cv_path_NM="$NM" |
| |
else |
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| |
IFS="$lt_save_ifs" |
| |
test -z "$ac_dir" && ac_dir=. |
| |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| |
# Check to see if the nm accepts a BSD-compat flag. |
| |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| |
# nm: unknown option "B" ignored |
| |
# Tru64's nm complains that /dev/null is an invalid object file |
| |
if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| |
lt_cv_path_NM="$tmp_nm -B" |
| |
break |
| |
elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| |
lt_cv_path_NM="$tmp_nm -p" |
| |
break |
| |
else |
| |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| |
continue # so that we can try to find one that supports BSD flags |
| |
fi |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| |
fi |
| |
fi |
| |
echo "$as_me:5516: result: $lt_cv_path_NM" >&5 |
| |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| |
NM="$lt_cv_path_NM" |
| |
|
| |
# FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool |
| |
# defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this |
| |
# case run it again to try the native "nm", firstly so that likely locations |
| |
# are searched, secondly so that -B or -p are added if necessary for BSD |
| |
# format. This is necessary for instance on OSF with "./configure |
| |
# --build=alphaev5-dec-osf --host=alphaev6-dec-osf". |
| |
# |
| |
if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then |
| |
$as_unset lt_cv_path_NM |
| |
gmp_save_ac_tool_prefix=$ac_tool_prefix |
| |
ac_tool_prefix= |
| |
NM= |
| |
echo "$as_me:5532: checking for BSD-compatible nm" >&5 |
| |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| |
if test "${lt_cv_path_NM+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$NM"; then |
| |
# Let the user override the test. |
| |
lt_cv_path_NM="$NM" |
| |
else |
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| |
IFS="$lt_save_ifs" |
| |
test -z "$ac_dir" && ac_dir=. |
| |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| |
# Check to see if the nm accepts a BSD-compat flag. |
| |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| |
# nm: unknown option "B" ignored |
| |
# Tru64's nm complains that /dev/null is an invalid object file |
| |
if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| |
lt_cv_path_NM="$tmp_nm -B" |
| |
break |
| |
elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| |
lt_cv_path_NM="$tmp_nm -p" |
| |
break |
| |
else |
| |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| |
continue # so that we can try to find one that supports BSD flags |
| |
fi |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| |
fi |
| |
fi |
| |
echo "$as_me:5567: result: $lt_cv_path_NM" >&5 |
| |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| |
NM="$lt_cv_path_NM" |
| |
|
| |
ac_tool_prefix=$gmp_save_ac_tool_prefix |
| |
fi |
| |
|
| |
if test -z "$gmp_user_NM"; then |
| |
eval nmflags=\"\$nm${abi1}_flags\" |
| |
test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\" |
| |
if test -n "$nmflags"; then |
| |
echo "$as_me:5578: checking for extra nm flags" >&5 |
| |
echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6 |
| |
NM="$NM $nmflags" |
| |
echo "$as_me:5581: result: $nmflags" >&5 |
| |
echo "${ECHO_T}$nmflags" >&6 |
| |
fi |
| |
fi |
| |
|
| |
case $host in |
| |
# FIXME: On AIX 3 and 4, $libname.a is included in libtool |
| |
# $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making |
| |
# it impossible to build shared and static libraries simultaneously. |
| |
# Disable shared libraries by default, but let the user override with |
| |
# --enable-shared --disable-static. |
| |
# |
| |
# FIXME: This $libname.a problem looks like it might apply to *-*-amigaos* |
| |
# and *-*-os2* too, but wait for someone to test this before worrying |
| |
# about it. If there is a problem then of course libtool is the right |
| |
# place to fix it. |
| |
# |
| |
*-*-aix[34]*) |
| |
if test -z "$enable_shared"; then enable_shared=no; fi ;; |
| |
|
| |
# FIXME: Libtool recognises djgpp can't build shared libraries, but still |
| |
# makes tests/.libs/libtests.al out of PIC objects, which then fail to |
| |
# link into the test programs. Forcibly disable shared stuff until |
| |
# libtool gets it right, |
| |
# |
| |
*-*-msdosdjgpp*) |
| |
enable_shared=no ;; |
| |
|
| |
# FIXME: On SCO 5, an explicit -lc is not wanted when making shared |
| |
# libraries. Giving it makes strange things happen, like ctype.h macros |
| |
# not working and profiler mcount calls segfaulting. Libtool ought to |
| |
# know about this, but as of Dec 2000 it doesn't, so forcibly disable -lc |
| |
# on relevant systems. |
| |
# |
| |
*-*-sco3.2v5*) |
| |
lt_cv_archive_cmds_need_lc=no ;; |
| |
|
| |
# FIXME: Shared libraries aren't supported on unicos, but as of Dec 2000 |
| |
# libtool doesn't seem to detect this correctly, so forcibly disable them. |
| |
# |
| |
*-*-unicos*) |
| |
enable_shared=no ;; |
| |
|
| |
# It seems there are no shared libs on ultrix, and it is not very important |
| |
# to work on this. Just disable for now. |
| |
*-*-ultrix*) |
| |
enable_shared=no ;; |
| |
esac |
| |
|
| |
# FIXME: AC_LIBTOOL_SYS_MAX_CMD_LEN has been reported to blow up in some |
| |
# fashion on windows 9x (but not 2k), taking a very long time and |
| |
# temporarily locking the whole PC. Clearly this is a libtool problem, but |
| |
# for now force a sensible value to avoid the test. |
| |
# |
| |
case $build in |
| |
*-*-cygwin*) |
| |
if test -z "$lt_cv_sys_max_cmd_len"; then |
| |
lt_cv_sys_max_cmd_len=20000 |
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
# Configs for Windows DLLs. |
| |
|
| |
LIBGMP_DLL=0 |
| |
|
| |
case $host in |
| |
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) |
| |
# By default, build only static. |
| |
if test -z "$enable_shared"; then |
| |
enable_shared=no |
| |
fi |
| |
# Don't allow both static and DLL. |
| |
if test "$enable_shared" != no && test "$enable_static" != no; then |
| |
{ { echo "$as_me:5655: error: cannot build both static and DLL, since gmp.h is different for each. |
| |
Use \"--disable-static --enable-shared\" to build just a DLL." >&5 |
| |
echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each. |
| |
Use \"--disable-static --enable-shared\" to build just a DLL." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
if test "$enable_shared" = yes; then |
| |
# libtool requires "-no-undefined", see AC_LIBTOOL_WIN32_DLL doco. |
| |
GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined" |
| |
LIBGMP_DLL=1 |
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
# When cross compiling a DLL, libtool requires $HOST_CC, to compile impgen.c |
| |
# on the build system. It's a well-known misfeature that libtool doesn't |
| |
# hunt around for a useful HOST_CC on its own. |
| |
# FIXME: Newer libtool looks like it'll need this only for "*-*-mingw* | |
| |
# *-*-pw32*", not *-*-cygwin*. |
| |
# |
| |
case $host in |
| |
*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| |
if test "$cross_compiling" != no && test "$enable_shared" != no; then |
| |
|
| |
echo "$as_me:5679: checking for HOST_CC build system compiler" >&5 |
| |
echo $ECHO_N "checking for HOST_CC build system compiler... $ECHO_C" >&6 |
| |
if test "${gmp_cv_prog_host_cc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$HOST_CC"; then |
| |
gmp_cv_prog_host_cc=$HOST_CC |
| |
else |
| |
if test -n "$CC_FOR_BUILD"; then |
| |
gmp_cv_prog_host_cc=$CC_FOR_BUILD |
| |
else |
| |
cat >conftest.c <<EOF |
| |
int main () { exit(0); } |
| |
EOF |
| |
for c in "$CC" cc gcc c89; do |
| |
echo "trying $c" >&5 |
| |
if ($c conftest.c -o conftest) >&5 2>&1; then |
| |
if (./conftest) >&5 2>&1; then |
| |
gmp_cv_prog_host_cc=$c |
| |
break |
| fi |
fi |
| ;; |
fi |
| *) |
done |
| # Set srcdir to "." if that's what it is. |
rm -f conftest* |
| # This is important for multilib support. |
if test -z "$gmp_cv_prog_host_cc"; then |
| if [ ! -d ${srcdir} ] ; then |
{ { echo "$as_me:5704: error: cannot find a build system compiler" >&5 |
| echo "Invalid source directory ${srcdir}" >&2 |
echo "$as_me: error: cannot find a build system compiler" >&2;} |
| exit 1 |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:5712: result: $gmp_cv_prog_host_cc" >&5 |
| |
echo "${ECHO_T}$gmp_cv_prog_host_cc" >&6 |
| |
HOST_CC=$gmp_cv_prog_host_cc |
| |
|
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
# Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN. |
| |
# It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or |
| |
# _AS_LINENO_PREPARE, but not always. |
| |
# |
| |
# The symptom of CONFIG_SHELL unset is some "expr" errors during the test, |
| |
# and an empty result. This only happens when invoked as "sh configure", |
| |
# ie. no path, and can be seen for instance on ia64-*-hpux*. |
| |
# |
| |
# FIXME: Newer libtool should have it's own fix for this. |
| |
# |
| |
if test -z "$CONFIG_SHELL"; then |
| |
CONFIG_SHELL=$SHELL |
| |
fi |
| |
|
| |
# Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on |
| |
# mingw and cygwin. Under --disable-cxx this avoids some error messages |
| |
# from libtool arising from the fact we didn't actually run AC_PROG_CXX. |
| |
# Notice that any user-supplied --with-tags setting takes precedence. |
| |
# |
| |
# FIXME: Is this the right way to get this effect? Very possibly not, but |
| |
# the current _LT_AC_TAGCONFIG doesn't really suggest an alternative. |
| |
# |
| |
if test "${with_tags+set}" != set; then |
| |
if test $want_cxx = yes; then |
| |
with_tags=CXX |
| |
else |
| |
with_tags= |
| |
fi |
| |
fi |
| |
|
| |
# Check whether --enable-shared or --disable-shared was given. |
| |
if test "${enable_shared+set}" = set; then |
| |
enableval="$enable_shared" |
| |
p=${PACKAGE-default} |
| |
case $enableval in |
| |
yes) enable_shared=yes ;; |
| |
no) enable_shared=no ;; |
| |
*) |
| |
enable_shared=no |
| |
# Look at the argument we got. We use all the common list separators. |
| |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| |
for pkg in $enableval; do |
| |
IFS="$lt_save_ifs" |
| |
if test "X$pkg" = "X$p"; then |
| |
enable_shared=yes |
| fi |
fi |
| pwd=`pwd` |
done |
| srcpwd=`cd ${srcdir} ; pwd` |
IFS="$lt_save_ifs" |
| if [ "${pwd}" = "${srcpwd}" ] ; then |
;; |
| srcdir=. |
esac |
| |
else |
| |
enable_shared=yes |
| |
fi; |
| |
|
| |
# Check whether --enable-static or --disable-static was given. |
| |
if test "${enable_static+set}" = set; then |
| |
enableval="$enable_static" |
| |
p=${PACKAGE-default} |
| |
case $enableval in |
| |
yes) enable_static=yes ;; |
| |
no) enable_static=no ;; |
| |
*) |
| |
enable_static=no |
| |
# Look at the argument we got. We use all the common list separators. |
| |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| |
for pkg in $enableval; do |
| |
IFS="$lt_save_ifs" |
| |
if test "X$pkg" = "X$p"; then |
| |
enable_static=yes |
| fi |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
;; |
| |
esac |
| |
else |
| |
enable_static=yes |
| |
fi; |
| |
|
| |
# Check whether --enable-fast-install or --disable-fast-install was given. |
| |
if test "${enable_fast_install+set}" = set; then |
| |
enableval="$enable_fast_install" |
| |
p=${PACKAGE-default} |
| |
case $enableval in |
| |
yes) enable_fast_install=yes ;; |
| |
no) enable_fast_install=no ;; |
| |
*) |
| |
enable_fast_install=no |
| |
# Look at the argument we got. We use all the common list separators. |
| |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| |
for pkg in $enableval; do |
| |
IFS="$lt_save_ifs" |
| |
if test "X$pkg" = "X$p"; then |
| |
enable_fast_install=yes |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
;; |
| |
esac |
| |
else |
| |
enable_fast_install=yes |
| |
fi; |
| |
|
| |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| |
if test "${with_gnu_ld+set}" = set; then |
| |
withval="$with_gnu_ld" |
| |
test "$withval" = no || with_gnu_ld=yes |
| |
else |
| |
with_gnu_ld=no |
| |
fi; |
| |
ac_prog=ld |
| |
if test "$GCC" = yes; then |
| |
# Check if gcc -print-prog-name=ld gives a path. |
| |
echo "$as_me:5832: checking for ld used by GCC" >&5 |
| |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| |
case $host in |
| |
*-*-mingw*) |
| |
# gcc leaves a trailing carriage return which upsets mingw |
| |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| |
*) |
| |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| |
esac |
| |
case $ac_prog in |
| |
# Accept absolute paths. |
| |
[\\/]* | ?:[\\/]*) |
| |
re_direlt='/[^/][^/]*/\.\./' |
| |
# Canonicalize the path of ld |
| |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| |
done |
| |
test -z "$LD" && LD="$ac_prog" |
| |
;; |
| |
"") |
| |
# If it fails, then pretend we aren't using GCC. |
| |
ac_prog=ld |
| |
;; |
| |
*) |
| |
# If it is relative, then search for the first ld in PATH. |
| |
with_gnu_ld=unknown |
| |
;; |
| |
esac |
| |
elif test "$with_gnu_ld" = yes; then |
| |
echo "$as_me:5862: checking for GNU ld" >&5 |
| |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| |
else |
| |
echo "$as_me:5865: checking for non-GNU ld" >&5 |
| |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| |
fi |
| |
if test "${lt_cv_path_LD+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -z "$LD"; then |
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
for ac_dir in $PATH; do |
| |
IFS="$lt_save_ifs" |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| |
# Check to see if the program is GNU ld. I'd rather use --version, |
| |
# but apparently some GNU ld's only accept -v. |
| |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| |
test "$with_gnu_ld" != no && break |
| |
else |
| |
test "$with_gnu_ld" != yes && break |
| |
fi |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
else |
| |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| |
fi |
| |
fi |
| |
|
| |
LD="$lt_cv_path_LD" |
| |
if test -n "$LD"; then |
| |
echo "$as_me:5896: result: $LD" >&5 |
| |
echo "${ECHO_T}$LD" >&6 |
| |
else |
| |
echo "$as_me:5899: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
test -z "$LD" && { { echo "$as_me:5902: error: no acceptable ld found in \$PATH" >&5 |
| |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
echo "$as_me:5905: checking if the linker ($LD) is GNU ld" >&5 |
| |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| |
lt_cv_prog_gnu_ld=yes |
| |
else |
| |
lt_cv_prog_gnu_ld=no |
| |
fi |
| |
fi |
| |
echo "$as_me:5917: result: $lt_cv_prog_gnu_ld" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| |
|
| |
echo "$as_me:5921: checking for $LD option to reload object files" >&5 |
| |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_cv_ld_reload_flag='-r' |
| |
fi |
| |
echo "$as_me:5928: result: $lt_cv_ld_reload_flag" >&5 |
| |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| |
reload_flag=$lt_cv_ld_reload_flag |
| |
case $reload_flag in |
| |
"" | " "*) ;; |
| |
*) reload_flag=" $reload_flag" ;; |
| esac |
esac |
| |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| |
|
| ### warn about some conflicting configurations. |
echo "$as_me:5937: checking whether ln -s works" >&5 |
| |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| |
LN_S=$as_ln_s |
| |
if test "$LN_S" = "ln -s"; then |
| |
echo "$as_me:5941: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
else |
| |
echo "$as_me:5944: result: no, using $LN_S" >&5 |
| |
echo "${ECHO_T}no, using $LN_S" >&6 |
| |
fi |
| |
|
| case "${srcdir}" in |
echo "$as_me:5948: checking how to recognise dependant libraries" >&5 |
| ".") ;; |
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
| *) |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
| if [ -f ${srcdir}/config.status ] ; then |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| echo '***' Cannot configure here in \"${PWD=`pwd`}\" when \"${srcdir}\" is currently configured. 1>&2 |
else |
| exit 1 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| fi |
lt_cv_file_magic_test_file= |
| |
lt_cv_deplibs_check_method='unknown' |
| |
# Need to set the preceding variable on all platforms that support |
| |
# interlibrary dependencies. |
| |
# 'none' -- dependencies not supported. |
| |
# `unknown' -- same as none, but documents that we really don't know. |
| |
# 'pass_all' -- all dependencies passed with no checks. |
| |
# 'test_compile' -- check by making test program. |
| |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| |
# which responds to the $file_magic_cmd with a given egrep regex. |
| |
# If you have `file' or equivalent on your system and you're not sure |
| |
# whether `pass_all' will *always* work, you probably want this one. |
| |
|
| |
case $host_os in |
| |
aix4* | aix5*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
beos*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
bsdi4*) |
| |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| |
lt_cv_file_magic_test_file=/shlib/libc.so |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| |
case "$host_os" in |
| |
rhapsody* | darwin1.[012]) |
| |
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| |
;; |
| |
*) # Darwin 1.3 on |
| |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
freebsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| |
case $host_cpu in |
| |
i*86 ) |
| |
# Not sure whether the presence of OpenBSD here was a mistake. |
| |
# Let's accept both of them until this is cleared up. |
| |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| |
lt_cv_file_magic_cmd=/usr/bin/file |
| |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| |
;; |
| |
esac |
| |
else |
| |
lt_cv_deplibs_check_method=pass_all |
| |
fi |
| |
;; |
| |
|
| |
gnu*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
hpux10.20* | hpux11*) |
| |
lt_cv_file_magic_cmd=/usr/bin/file |
| |
if test "$host_cpu" = ia64; then |
| |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| |
else |
| |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| |
fi |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
case $host_os in |
| |
irix5*) |
| |
# this will be overridden with pass_all, but let us keep it just in case |
| |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| |
;; |
| |
*) |
| |
case $LD in |
| |
*-32|*"-32 ") libmagic=32-bit;; |
| |
*-n32|*"-n32 ") libmagic=N32;; |
| |
*-64|*"-64 ") libmagic=64-bit;; |
| |
*) libmagic=never-match;; |
| |
esac |
| |
# this will be overridden with pass_all, but let us keep it just in case |
| |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| |
;; |
| |
esac |
| |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
# This must be Linux ELF. |
| |
linux*) |
| |
case $host_cpu in |
| |
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
| |
lt_cv_deplibs_check_method=pass_all ;; |
| |
*) |
| |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| |
esac |
| |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| |
;; |
| |
|
| |
netbsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| |
else |
| |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| |
fi |
| |
;; |
| |
|
| |
newos6*) |
| |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| |
lt_cv_file_magic_cmd=/usr/bin/file |
| |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| |
;; |
| |
|
| |
nto-qnx) |
| |
lt_cv_deplibs_check_method=unknown |
| |
;; |
| |
|
| |
openbsd*) |
| |
lt_cv_file_magic_cmd=/usr/bin/file |
| |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| |
else |
| |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| |
fi |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
# this will be overridden with pass_all, but let us keep it just in case |
| |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| |
lt_cv_file_magic_test_file=/shlib/libc.so |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
|
| |
solaris*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
lt_cv_file_magic_test_file=/lib/libc.so |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
case $host_vendor in |
| |
motorola) |
| |
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]' |
| |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| |
;; |
| |
ncr) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| |
sequent) |
| |
lt_cv_file_magic_cmd='/bin/file' |
| |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| |
;; |
| |
sni) |
| |
lt_cv_file_magic_cmd='/bin/file' |
| |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| |
lt_cv_file_magic_test_file=/lib/libc.so |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| |
lt_cv_deplibs_check_method=pass_all |
| |
;; |
| esac |
esac |
| |
|
| # default exec_prefix |
fi |
| case "${exec_prefixoption}" in |
echo "$as_me:6135: result: $lt_cv_deplibs_check_method" >&5 |
| "") exec_prefix="\$(prefix)" ;; |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| *) ;; |
file_magic_cmd=$lt_cv_file_magic_cmd |
| |
deplibs_check_method=$lt_cv_deplibs_check_method |
| |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| |
|
| |
# If no C compiler was specified, use CC. |
| |
LTCC=${LTCC-"$CC"} |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
set dummy $CC |
| |
compiler="$2" |
| |
|
| |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| |
if test "${enable_libtool_lock+set}" = set; then |
| |
enableval="$enable_libtool_lock" |
| |
|
| |
fi; |
| |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| |
|
| |
# Some flags need to be propagated to the compiler or linker for good |
| |
# libtool support. |
| |
case $host in |
| |
ia64-*-hpux*) |
| |
# Find out which ABI we are using. |
| |
echo 'int i;' > conftest.$ac_ext |
| |
if { (eval echo "$as_me:6161: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6164: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
case `/usr/bin/file conftest.$ac_objext` in |
| |
*ELF-32*) |
| |
HPUX_IA64_MODE="32" |
| |
;; |
| |
*ELF-64*) |
| |
HPUX_IA64_MODE="64" |
| |
;; |
| |
esac |
| |
fi |
| |
rm -rf conftest* |
| |
;; |
| |
*-*-irix6*) |
| |
# Find out which ABI we are using. |
| |
echo '#line 6179 "configure"' > conftest.$ac_ext |
| |
if { (eval echo "$as_me:6180: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6183: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
case `/usr/bin/file conftest.$ac_objext` in |
| |
*32-bit*) |
| |
LD="${LD-ld} -32" |
| |
;; |
| |
*N32*) |
| |
LD="${LD-ld} -n32" |
| |
;; |
| |
*64-bit*) |
| |
LD="${LD-ld} -64" |
| |
;; |
| |
esac |
| |
fi |
| |
rm -rf conftest* |
| |
;; |
| |
|
| |
*-*-sco3.2v5*) |
| |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| |
SAVE_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS -belf" |
| |
echo "$as_me:6204: checking whether the C compiler needs -belf" >&5 |
| |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 6216 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:6228: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6231: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:6234: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6237: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
lt_cv_cc_needs_belf=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
lt_cv_cc_needs_belf=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
fi |
| |
echo "$as_me:6253: result: $lt_cv_cc_needs_belf" >&5 |
| |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| |
CFLAGS="$SAVE_CFLAGS" |
| |
fi |
| |
;; |
| |
*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| |
echo "$as_me:6264: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$DLLTOOL"; then |
| |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| |
echo "$as_me:6279: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| |
if test -n "$DLLTOOL"; then |
| |
echo "$as_me:6287: result: $DLLTOOL" >&5 |
| |
echo "${ECHO_T}$DLLTOOL" >&6 |
| |
else |
| |
echo "$as_me:6290: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| |
ac_ct_DLLTOOL=$DLLTOOL |
| |
# Extract the first word of "dlltool", so it can be a program name with args. |
| |
set dummy dlltool; ac_word=$2 |
| |
echo "$as_me:6299: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_DLLTOOL"; then |
| |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| |
echo "$as_me:6314: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| |
fi |
| |
fi |
| |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| |
if test -n "$ac_ct_DLLTOOL"; then |
| |
echo "$as_me:6323: result: $ac_ct_DLLTOOL" >&5 |
| |
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| |
else |
| |
echo "$as_me:6326: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
DLLTOOL=$ac_ct_DLLTOOL |
| |
else |
| |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| |
fi |
| |
|
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}as; ac_word=$2 |
| |
echo "$as_me:6338: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_AS+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$AS"; then |
| |
ac_cv_prog_AS="$AS" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_AS="${ac_tool_prefix}as" |
| |
echo "$as_me:6353: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
AS=$ac_cv_prog_AS |
| |
if test -n "$AS"; then |
| |
echo "$as_me:6361: result: $AS" >&5 |
| |
echo "${ECHO_T}$AS" >&6 |
| |
else |
| |
echo "$as_me:6364: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_AS"; then |
| |
ac_ct_AS=$AS |
| |
# Extract the first word of "as", so it can be a program name with args. |
| |
set dummy as; ac_word=$2 |
| |
echo "$as_me:6373: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_AS"; then |
| |
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_AS="as" |
| |
echo "$as_me:6388: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" |
| |
fi |
| |
fi |
| |
ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| |
if test -n "$ac_ct_AS"; then |
| |
echo "$as_me:6397: result: $ac_ct_AS" >&5 |
| |
echo "${ECHO_T}$ac_ct_AS" >&6 |
| |
else |
| |
echo "$as_me:6400: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
AS=$ac_ct_AS |
| |
else |
| |
AS="$ac_cv_prog_AS" |
| |
fi |
| |
|
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| |
echo "$as_me:6412: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$OBJDUMP"; then |
| |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| |
echo "$as_me:6427: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| |
if test -n "$OBJDUMP"; then |
| |
echo "$as_me:6435: result: $OBJDUMP" >&5 |
| |
echo "${ECHO_T}$OBJDUMP" >&6 |
| |
else |
| |
echo "$as_me:6438: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| |
ac_ct_OBJDUMP=$OBJDUMP |
| |
# Extract the first word of "objdump", so it can be a program name with args. |
| |
set dummy objdump; ac_word=$2 |
| |
echo "$as_me:6447: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_OBJDUMP"; then |
| |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| |
echo "$as_me:6462: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" |
| |
fi |
| |
fi |
| |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| |
if test -n "$ac_ct_OBJDUMP"; then |
| |
echo "$as_me:6471: result: $ac_ct_OBJDUMP" >&5 |
| |
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 |
| |
else |
| |
echo "$as_me:6474: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
OBJDUMP=$ac_ct_OBJDUMP |
| |
else |
| |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| |
fi |
| |
|
| |
# recent cygwin and mingw systems supply a stub DllMain which the user |
| |
# can override, but on older systems we have to supply one |
| |
echo "$as_me:6485: checking if libtool should supply DllMain function" >&5 |
| |
echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6 |
| |
if test "${lt_cv_need_dllmain+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 6491 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); |
| |
DllMain (0, 0, 0); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:6504: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6507: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:6510: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6513: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
lt_cv_need_dllmain=no |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
lt_cv_need_dllmain=yes |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:6523: result: $lt_cv_need_dllmain" >&5 |
| |
echo "${ECHO_T}$lt_cv_need_dllmain" >&6 |
| |
|
| |
case $host/$CC in |
| |
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) |
| |
# old mingw systems require "-dll" to link a DLL, while more recent ones |
| |
# require "-mdll" |
| |
SAVE_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS -mdll" |
| |
echo "$as_me:6532: checking how to link DLLs" >&5 |
| |
echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6 |
| |
if test "${lt_cv_cc_dll_switch+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 6538 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:6550: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6553: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:6556: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6559: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
lt_cv_cc_dll_switch=-mdll |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
lt_cv_cc_dll_switch=-dll |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:6569: result: $lt_cv_cc_dll_switch" >&5 |
| |
echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6 |
| |
CFLAGS="$SAVE_CFLAGS" ;; |
| |
*-*-cygwin* | *-*-pw32*) |
| |
# cygwin systems need to pass --dll to the linker, and not link |
| |
# crt.o which will require a WinMain@16 definition. |
| |
lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; |
| |
esac |
| |
;; |
| |
|
| esac |
esac |
| |
|
| ### break up ${srcdir}/configure.in. |
need_locks="$enable_libtool_lock" |
| case "`grep '^# per\-host:' ${srcdir}/configure.in`" in |
|
| "") |
for ac_header in dlfcn.h |
| echo '***' ${srcdir}/configure.in has no \"per-host:\" line. 1>&2 |
do |
| # Check for a directory that's been converted to use autoconf since |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| # it was last configured. |
echo "$as_me:6586: checking for $ac_header" >&5 |
| if grep AC_OUTPUT ${srcdir}/configure.in >/dev/null ; then |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| echo '***' Hmm, looks like this directory has been autoconfiscated. 1>&2 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| if [ -r ${srcdir}/configure ] ; then |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| echo '***' Running the local configure script. 1>&2 |
else |
| case "${cache_file}" in |
cat >conftest.$ac_ext <<_ACEOF |
| "") cache_file_option= ;; |
#line 6592 "configure" |
| *) cache_file_option="--cache-file=${cache_file}" ;; |
#include "confdefs.h" |
| esac |
#include <$ac_header> |
| srcdiroption="--srcdir=${srcdir}" |
_ACEOF |
| case "${build_alias}" in |
if { (eval echo "$as_me:6596: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| "") buildopt= ;; |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| *) buildopt="--build=${build_alias}" ;; |
ac_status=$? |
| esac |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| eval exec ${config_shell} ${srcdir}/configure ${verbose} \ |
rm -f conftest.er1 |
| ${buildopt} --host=${host_alias} --target=${target_alias} \ |
cat conftest.err >&5 |
| ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \ |
echo "$as_me:6602: \$? = $ac_status" >&5 |
| ${srcdiroption} \ |
(exit $ac_status); } >/dev/null; then |
| ${program_prefixoption} ${program_suffixoption} \ |
if test -s conftest.err; then |
| ${program_transform_nameoption} ${site_option} \ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| ${withoptions} ${withoutoptions} \ |
else |
| ${enableoptions} ${disableoptions} ${floating_pointoption} \ |
ac_cpp_err= |
| ${cache_file_option} ${removing} ${other_options} ${redirect} |
fi |
| else |
else |
| echo '***' There is no configure script present though. 1>&2 |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
eval "$as_ac_Header=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_Header=no" |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:6621: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
fi |
| |
done |
| |
|
| |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| |
|
| |
# find the maximum length of command line arguments |
| |
echo "$as_me:6634: checking the maximum length of command line arguments" >&5 |
| |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
i=0 |
| |
testring="ABCD" |
| |
|
| |
case $host_os in |
| |
msdosdjgpp*) |
| |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| |
# during glob expansion). Even if it were fixed, the result of this |
| |
# check would be larger than it should be. |
| |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| |
;; |
| |
|
| |
gnu*) |
| |
# Under GNU Hurd, this test is not required because there is |
| |
# no limit to the length of command line arguments. |
| |
# Libtool will interpret -1 as no limit whatsoever |
| |
lt_cv_sys_max_cmd_len=-1; |
| |
;; |
| |
|
| |
*) |
| |
# If test is not a shell built-in, we'll probably end up computing a |
| |
# maximum length that is only half of the actual maximum length, but |
| |
# we can't tell. |
| |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| |
= "XX$testring") >/dev/null 2>&1 && |
| |
new_result=`expr "X$testring" : ".*" 2>&1` && |
| |
lt_cv_sys_max_cmd_len=$new_result && |
| |
test $i != 17 # 1/2 MB should be enough |
| |
do |
| |
i=`expr $i + 1` |
| |
testring=$testring$testring |
| |
done |
| |
testring= |
| |
# add a significant safety factor because C++ compilers can tack on massive |
| |
# amounts of additional arguments before passing them to the linker. 1/4 |
| |
# should be good. |
| |
len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len` |
| |
;; |
| |
esac |
| |
|
| |
fi |
| |
|
| |
if test -n $lt_cv_sys_max_cmd_len ; then |
| |
echo "$as_me:6683: result: $lt_cv_sys_max_cmd_len" >&5 |
| |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| |
else |
| |
echo "$as_me:6686: result: none" >&5 |
| |
echo "${ECHO_T}none" >&6 |
| |
fi |
| |
|
| |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| |
echo "$as_me:6691: checking command to parse $NM output from $compiler object" >&5 |
| |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
# These are sane defaults that work on at least a few old systems. |
| |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| |
|
| |
# Character class describing NM global symbol codes. |
| |
symcode='[BCDEGRST]' |
| |
|
| |
# Regexp to match symbols that can be accessed directly from C. |
| |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| |
|
| |
# Transform the above into a raw symbol and a C symbol. |
| |
symxfrm='\1 \2\3 \3' |
| |
|
| |
# Transform an extracted symbol line into a proper C declaration |
| |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| |
|
| |
# Transform an extracted symbol line into symbol name and symbol address |
| |
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'" |
| |
|
| |
# Define system-specific variables. |
| |
case $host_os in |
| |
aix*) |
| |
symcode='[BCDT]' |
| |
;; |
| |
cygwin* | mingw* | pw32*) |
| |
symcode='[ABCDGISTW]' |
| |
;; |
| |
hpux*) # Its linker distinguishes data from code symbols |
| |
if test "$host_cpu" = ia64; then |
| |
symcode='[ABCDEGRST]' |
| |
fi |
| |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| |
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'" |
| |
;; |
| |
irix*) |
| |
symcode='[BCDEGRST]' |
| |
;; |
| |
solaris* | sysv5*) |
| |
symcode='[BDT]' |
| |
;; |
| |
sysv4) |
| |
symcode='[DFNSTU]' |
| |
;; |
| |
esac |
| |
|
| |
# Handle CRLF in mingw tool chain |
| |
opt_cr= |
| |
case $host_os in |
| |
mingw*) |
| |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| |
;; |
| |
esac |
| |
|
| |
# If we're using GNU nm, then use its standard symbol codes. |
| |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| |
symcode='[ABCDGISTW]' |
| |
fi |
| |
|
| |
# Try without a prefix undercore, then with it. |
| |
for ac_symprfx in "" "_"; do |
| |
|
| |
# Write the raw and C identifiers. |
| |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| |
|
| |
# Check to see that the pipe works correctly. |
| |
pipe_works=no |
| |
|
| |
rm -f conftest* |
| |
cat > conftest.$ac_ext <<EOF |
| |
#ifdef __cplusplus |
| |
extern "C" { |
| |
#endif |
| |
char nm_test_var; |
| |
void nm_test_func(){} |
| |
#ifdef __cplusplus |
| |
} |
| |
#endif |
| |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| |
EOF |
| |
|
| |
if { (eval echo "$as_me:6776: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6779: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
# Now try to grab the symbols. |
| |
nlist=conftest.nm |
| |
if { (eval echo "$as_me:6783: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6786: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s "$nlist"; then |
| |
# Try sorting and uniquifying the output. |
| |
if sort "$nlist" | uniq > "$nlist"T; then |
| |
mv -f "$nlist"T "$nlist" |
| |
else |
| |
rm -f "$nlist"T |
| |
fi |
| |
|
| |
# Make sure that we snagged all the symbols we need. |
| |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| |
cat <<EOF > conftest.$ac_ext |
| |
#ifdef __cplusplus |
| |
extern "C" { |
| |
#endif |
| |
|
| |
EOF |
| |
# Now generate the symbol file. |
| |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| |
|
| |
cat <<EOF >> conftest.$ac_ext |
| |
#if defined (__STDC__) && __STDC__ |
| |
# define lt_ptr_t void * |
| |
#else |
| |
# define lt_ptr_t char * |
| |
# define const |
| |
#endif |
| |
|
| |
/* The mapping between symbol names and symbols. */ |
| |
const struct { |
| |
const char *name; |
| |
lt_ptr_t address; |
| |
} |
| |
lt_preloaded_symbols[] = |
| |
{ |
| |
EOF |
| |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| |
cat <<\EOF >> conftest.$ac_ext |
| |
{0, (lt_ptr_t) 0} |
| |
}; |
| |
|
| |
#ifdef __cplusplus |
| |
} |
| |
#endif |
| |
EOF |
| |
# Now try linking the two files. |
| |
mv conftest.$ac_objext conftstm.$ac_objext |
| |
lt_save_LIBS="$LIBS" |
| |
lt_save_CFLAGS="$CFLAGS" |
| |
LIBS="conftstm.$ac_objext" |
| |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| |
if { (eval echo "$as_me:6838: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:6841: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
| |
pipe_works=yes |
| fi |
fi |
| |
LIBS="$lt_save_LIBS" |
| |
CFLAGS="$lt_save_CFLAGS" |
| |
else |
| |
echo "cannot find nm_test_func in $nlist" >&5 |
| fi |
fi |
| exit 1 |
else |
| ;; |
echo "cannot find nm_test_var in $nlist" >&5 |
| *) ;; |
fi |
| |
else |
| |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| |
fi |
| |
else |
| |
echo "$progname: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest* conftst* |
| |
|
| |
# Do not use the global_symbol_pipe unless it works. |
| |
if test "$pipe_works" = yes; then |
| |
break |
| |
else |
| |
lt_cv_sys_global_symbol_pipe= |
| |
fi |
| |
done |
| |
|
| |
fi |
| |
|
| |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| |
lt_cv_sys_global_symbol_to_cdecl= |
| |
fi |
| |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| |
echo "$as_me:6876: result: failed" >&5 |
| |
echo "${ECHO_T}failed" >&6 |
| |
else |
| |
echo "$as_me:6879: result: ok" >&5 |
| |
echo "${ECHO_T}ok" >&6 |
| |
fi |
| |
|
| |
echo "$as_me:6883: checking for objdir" >&5 |
| |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| |
if test "${lt_cv_objdir+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
rm -f .libs 2>/dev/null |
| |
mkdir .libs 2>/dev/null |
| |
if test -d .libs; then |
| |
lt_cv_objdir=.libs |
| |
else |
| |
# MS-DOS does not allow filenames that begin with a dot. |
| |
lt_cv_objdir=_libs |
| |
fi |
| |
rmdir .libs 2>/dev/null |
| |
fi |
| |
echo "$as_me:6898: result: $lt_cv_objdir" >&5 |
| |
echo "${ECHO_T}$lt_cv_objdir" >&6 |
| |
objdir=$lt_cv_objdir |
| |
|
| |
case $host_os in |
| |
aix3*) |
| |
# AIX sometimes has problems with the GCC collect2 program. For some |
| |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| |
# vanish in a puff of smoke. |
| |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| |
COLLECT_NAMES= |
| |
export COLLECT_NAMES |
| |
fi |
| |
;; |
| esac |
esac |
| |
|
| case "`grep '^# per\-target:' ${srcdir}/configure.in`" in |
# Sed substitution that helps us do robust quoting. It backslashifies |
| "") |
# metacharacters that are still active within double-quoted strings. |
| echo '***' ${srcdir}/configure.in has no \"per-target:\" line. 1>&2 |
Xsed='sed -e s/^X//' |
| exit 1 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| ;; |
|
| *) ;; |
# Same as above, but do not quote variable references. |
| |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| |
|
| |
# Sed substitution to delay expansion of an escaped shell variable in a |
| |
# double_quote_subst'ed string. |
| |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| |
|
| |
# Sed substitution to avoid accidental globbing in evaled expressions |
| |
no_glob_subst='s/\*/\\\*/g' |
| |
|
| |
# Constants: |
| |
rm="rm -f" |
| |
|
| |
# Global variables: |
| |
default_ofile=libtool |
| |
can_build_shared=yes |
| |
|
| |
# All known linkers require a `.a' archive for static linking (except M$VC, |
| |
# which needs '.lib'). |
| |
libext=a |
| |
ltmain="$ac_aux_dir/ltmain.sh" |
| |
ofile="$default_ofile" |
| |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| |
|
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| |
echo "$as_me:6946: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$RANLIB"; then |
| |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| |
echo "$as_me:6961: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
RANLIB=$ac_cv_prog_RANLIB |
| |
if test -n "$RANLIB"; then |
| |
echo "$as_me:6969: result: $RANLIB" >&5 |
| |
echo "${ECHO_T}$RANLIB" >&6 |
| |
else |
| |
echo "$as_me:6972: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_RANLIB"; then |
| |
ac_ct_RANLIB=$RANLIB |
| |
# Extract the first word of "ranlib", so it can be a program name with args. |
| |
set dummy ranlib; ac_word=$2 |
| |
echo "$as_me:6981: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_RANLIB"; then |
| |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| |
echo "$as_me:6996: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| |
fi |
| |
fi |
| |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| |
if test -n "$ac_ct_RANLIB"; then |
| |
echo "$as_me:7005: result: $ac_ct_RANLIB" >&5 |
| |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| |
else |
| |
echo "$as_me:7008: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
RANLIB=$ac_ct_RANLIB |
| |
else |
| |
RANLIB="$ac_cv_prog_RANLIB" |
| |
fi |
| |
|
| |
if test -n "$ac_tool_prefix"; then |
| |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| |
echo "$as_me:7020: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_STRIP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$STRIP"; then |
| |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| |
echo "$as_me:7035: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
STRIP=$ac_cv_prog_STRIP |
| |
if test -n "$STRIP"; then |
| |
echo "$as_me:7043: result: $STRIP" >&5 |
| |
echo "${ECHO_T}$STRIP" >&6 |
| |
else |
| |
echo "$as_me:7046: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
fi |
| |
if test -z "$ac_cv_prog_STRIP"; then |
| |
ac_ct_STRIP=$STRIP |
| |
# Extract the first word of "strip", so it can be a program name with args. |
| |
set dummy strip; ac_word=$2 |
| |
echo "$as_me:7055: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$ac_ct_STRIP"; then |
| |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_ac_ct_STRIP="strip" |
| |
echo "$as_me:7070: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| |
fi |
| |
fi |
| |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| |
if test -n "$ac_ct_STRIP"; then |
| |
echo "$as_me:7079: result: $ac_ct_STRIP" >&5 |
| |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| |
else |
| |
echo "$as_me:7082: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
STRIP=$ac_ct_STRIP |
| |
else |
| |
STRIP="$ac_cv_prog_STRIP" |
| |
fi |
| |
|
| |
old_CC="$CC" |
| |
old_CFLAGS="$CFLAGS" |
| |
|
| |
# Set sane defaults for various variables |
| |
test -z "$AR" && AR=ar |
| |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| |
test -z "$AS" && AS=as |
| |
test -z "$CC" && CC=cc |
| |
test -z "$LTCC" && LTCC=$CC |
| |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| |
test -z "$LD" && LD=ld |
| |
test -z "$LN_S" && LN_S="ln -s" |
| |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| |
test -z "$NM" && NM=nm |
| |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| |
test -z "$RANLIB" && RANLIB=: |
| |
test -z "$STRIP" && STRIP=: |
| |
test -z "$ac_objext" && ac_objext=o |
| |
|
| |
# Determine commands to create old-style static archives. |
| |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| |
old_postinstall_cmds='chmod 644 $oldlib' |
| |
old_postuninstall_cmds= |
| |
|
| |
if test -n "$RANLIB"; then |
| |
case $host_os in |
| |
openbsd*) |
| |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| |
;; |
| |
*) |
| |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| |
;; |
| |
esac |
| |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| |
fi |
| |
|
| |
# Only perform the check for file, if the check method requires it |
| |
case $deplibs_check_method in |
| |
file_magic*) |
| |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| |
echo "$as_me:7131: checking for ${ac_tool_prefix}file" >&5 |
| |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $MAGIC_CMD in |
| |
[\\/*] | ?:[\\/]*) |
| |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| |
;; |
| |
*) |
| |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS="$lt_save_ifs" |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| |
if test -n "$file_magic_test_file"; then |
| |
case $deplibs_check_method in |
| |
"file_magic "*) |
| |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| |
egrep "$file_magic_regex" > /dev/null; then |
| |
: |
| |
else |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: the command libtool uses to detect shared libraries, |
| |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| |
*** The result is that libtool may fail to recognize shared libraries |
| |
*** as such. This will affect the creation of libtool libraries that |
| |
*** depend on shared libraries, but programs linked with such libtool |
| |
*** libraries will work regardless of this problem. Nevertheless, you |
| |
*** may want to report the problem to your system manager and/or to |
| |
*** bug-libtool@gnu.org |
| |
|
| |
EOF |
| |
fi ;; |
| |
esac |
| |
fi |
| |
break |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| |
;; |
| esac |
esac |
| |
fi |
| |
|
| case "${TMPDIR}" in |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| "") TMPDIR=/tmp ; export TMPDIR ;; |
if test -n "$MAGIC_CMD"; then |
| *) ;; |
echo "$as_me:7184: result: $MAGIC_CMD" >&5 |
| |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| |
else |
| |
echo "$as_me:7187: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| |
if test -n "$ac_tool_prefix"; then |
| |
echo "$as_me:7193: checking for file" >&5 |
| |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $MAGIC_CMD in |
| |
[\\/*] | ?:[\\/]*) |
| |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| |
;; |
| |
*) |
| |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS="$lt_save_ifs" |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/file; then |
| |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| |
if test -n "$file_magic_test_file"; then |
| |
case $deplibs_check_method in |
| |
"file_magic "*) |
| |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| |
egrep "$file_magic_regex" > /dev/null; then |
| |
: |
| |
else |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: the command libtool uses to detect shared libraries, |
| |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| |
*** The result is that libtool may fail to recognize shared libraries |
| |
*** as such. This will affect the creation of libtool libraries that |
| |
*** depend on shared libraries, but programs linked with such libtool |
| |
*** libraries will work regardless of this problem. Nevertheless, you |
| |
*** may want to report the problem to your system manager and/or to |
| |
*** bug-libtool@gnu.org |
| |
|
| |
EOF |
| |
fi ;; |
| |
esac |
| |
fi |
| |
break |
| |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| |
;; |
| esac |
esac |
| |
fi |
| |
|
| # keep this filename short for &%*%$*# 14 char file names |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| tmpfile=${TMPDIR}/cONf$$ |
if test -n "$MAGIC_CMD"; then |
| # Note that under many versions of sh a trap handler for 0 will *override* any |
echo "$as_me:7246: result: $MAGIC_CMD" >&5 |
| # exit status you explicitly specify! At this point, the only non-error exit |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| # is at the end of the script; these actions are duplicated there, minus |
else |
| # the "exit 1". Don't use "exit 0" anywhere after this without resetting the |
echo "$as_me:7249: result: no" >&5 |
| # trap handler, or you'll lose. |
echo "${ECHO_T}no" >&6 |
| trap "rm -f Makefile.tem ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos; exit 1" 0 1 2 15 |
fi |
| |
|
| # split ${srcdir}/configure.in into common, per-host, per-target, |
else |
| # and post-target parts. Post-target is optional. |
MAGIC_CMD=: |
| sed -e '/^# per\-host:/,$d' ${srcdir}/configure.in > ${tmpfile}.com |
fi |
| sed -e '1,/^# per\-host:/d' -e '/^# per\-target:/,$d' ${srcdir}/configure.in > ${tmpfile}.hst |
fi |
| if grep '^# post-target:' ${srcdir}/configure.in >/dev/null ; then |
|
| sed -e '1,/^# per\-target:/d' -e '/^# post\-target:/,$d' ${srcdir}/configure.in > ${tmpfile}.tgt |
fi |
| sed -e '1,/^# post\-target:/d' ${srcdir}/configure.in > ${tmpfile}.pos |
;; |
| |
esac |
| |
|
| |
enable_dlopen=no |
| |
enable_win32_dll=yes |
| |
|
| |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| |
if test "${enable_libtool_lock+set}" = set; then |
| |
enableval="$enable_libtool_lock" |
| |
|
| |
fi; |
| |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| |
|
| |
# Check whether --with-pic or --without-pic was given. |
| |
if test "${with_pic+set}" = set; then |
| |
withval="$with_pic" |
| |
pic_mode="$withval" |
| else |
else |
| sed -e '1,/^# per\-target:/d' ${srcdir}/configure.in > ${tmpfile}.tgt |
pic_mode=default |
| echo >${tmpfile}.pos |
fi; |
| |
test -z "$pic_mode" && pic_mode=default |
| |
|
| |
# Use C for the default configuration in the libtool script |
| |
tagname= |
| |
lt_save_CC="$CC" |
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
# Source file extension for C test sources. |
| |
ac_ext=c |
| |
|
| |
# Object file extension for compiled C test sources. |
| |
objext=o |
| |
objext=$objext |
| |
|
| |
# Code to be used in simple compile tests |
| |
lt_simple_compile_test_code="int some_variable = 0;" |
| |
|
| |
# Code to be used in simple link tests |
| |
lt_simple_link_test_code='main(){return(0);}' |
| |
|
| |
# If no C compiler was specified, use CC. |
| |
LTCC=${LTCC-"$CC"} |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
set dummy $CC |
| |
compiler="$2" |
| |
|
| |
# |
| |
# Check for any special shared library compilation flags. |
| |
# |
| |
lt_prog_cc_shlib= |
| |
if test "$GCC" = no; then |
| |
case $host_os in |
| |
sco3.2v5*) |
| |
lt_prog_cc_shlib='-belf' |
| |
;; |
| |
esac |
| fi |
fi |
| |
if test -n "$lt_prog_cc_shlib"; then |
| |
{ echo "$as_me:7322: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| |
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| |
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| |
else |
| |
{ echo "$as_me:7326: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| |
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| |
lt_cv_prog_cc_can_build_shared=no |
| |
fi |
| |
fi |
| |
|
| ### do common part of configure.in |
# |
| |
# Check to make sure the static flag actually works. |
| |
# |
| |
echo "$as_me:7335: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| |
if test "${lt_prog_compiler_static_works+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_prog_compiler_static_works=no |
| |
save_LDFLAGS="$LDFLAGS" |
| |
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings |
| |
if test -s conftest.err; then |
| |
# Append any errors to the config.log. |
| |
cat conftest.err 1>&5 |
| |
else |
| |
lt_prog_compiler_static_works=yes |
| |
fi |
| |
fi |
| |
$rm conftest* |
| |
LDFLAGS="$save_LDFLAGS" |
| |
|
| . ${tmpfile}.com |
fi |
| |
echo "$as_me:7358: result: $lt_prog_compiler_static_works" >&5 |
| |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| |
|
| # some sanity checks on configure.in |
if test x"$lt_prog_compiler_static_works" = xyes; then |
| case "${srctrigger}" in |
: |
| "") |
else |
| echo '***' srctrigger not set in ${PWD=`pwd`}/configure.in. 1>&2 |
lt_prog_compiler_static= |
| exit 1 |
fi |
| ;; |
|
| *) ;; |
lt_prog_compiler_no_builtin_flag= |
| |
|
| |
if test "$GCC" = yes; then |
| |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| |
|
| |
echo "$as_me:7372: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_cv_prog_compiler_rtti_exceptions=no |
| |
ac_outfile=conftest.$ac_objext |
| |
save_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings mentioning the option |
| |
cat conftest.err 1>&5 |
| |
lt_cv_prog_compiler_rtti_exceptions=yes |
| |
for lt_i in -fno-rtti -fno-exceptions -c conftest.$ac_ext; do |
| |
if grep -- $lt_i conftest.err >/dev/null; then |
| |
lt_cv_prog_compiler_rtti_exceptions=no |
| |
fi |
| |
done |
| |
fi |
| |
$rm conftest* |
| |
CFLAGS="$save_CFLAGS" |
| |
|
| |
fi |
| |
echo "$as_me:7397: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| |
|
| |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| |
else |
| |
: |
| |
fi |
| |
|
| |
fi |
| |
|
| |
lt_prog_compiler_wl= |
| |
lt_prog_compiler_pic= |
| |
lt_prog_compiler_static= |
| |
|
| |
echo "$as_me:7412: checking for $compiler option to produce PIC" >&5 |
| |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| |
|
| |
if test "$GCC" = yes; then |
| |
lt_prog_compiler_wl='-Wl,' |
| |
lt_prog_compiler_static='-static' |
| |
|
| |
case $host_os in |
| |
aix*) |
| |
# All AIX code is PIC. |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static='-Bstatic' |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
# FIXME: we need at least 68020 code to build shared libraries, but |
| |
# adding the `-m68020' flag to GCC prevents building anything better, |
| |
# like `-m68040'. |
| |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| |
;; |
| |
|
| |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| |
# PIC is the default for these OSes. |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32* | os2*) |
| |
# This hack is so that the source file can tell whether it is being |
| |
# built for inclusion in a dll (and should export symbols for example). |
| |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
# PIC is the default on this platform |
| |
# Common symbols not allowed in MH_DYLIB files |
| |
lt_prog_compiler_pic='-fno-common' |
| |
;; |
| |
|
| |
msdosdjgpp*) |
| |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| |
# on systems that don't support them. |
| |
lt_prog_compiler_can_build_shared=no |
| |
enable_shared=no |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec; then |
| |
lt_prog_compiler_pic=-Kconform_pic |
| |
fi |
| |
;; |
| |
|
| |
hpux*) |
| |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic='-fPIC' |
| |
fi |
| |
;; |
| |
|
| |
*) |
| |
lt_prog_compiler_pic='-fPIC' |
| |
;; |
| |
esac |
| |
else |
| |
# PORTME Check for flag to pass linker flags through the system compiler. |
| |
case $host_os in |
| |
aix*) |
| |
lt_prog_compiler_wl='-Wl,' |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static='-Bstatic' |
| |
else |
| |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| |
fi |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32* | os2*) |
| |
# This hack is so that the source file can tell whether it is being |
| |
# built for inclusion in a dll (and should export symbols for example). |
| |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
lt_prog_compiler_wl='-Wl,' |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic='+Z' |
| |
fi |
| |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
lt_prog_compiler_wl='-Wl,' |
| |
# PIC (with -KPIC) is the default. |
| |
lt_prog_compiler_static='-non_shared' |
| |
;; |
| |
|
| |
newsos6) |
| |
lt_prog_compiler_pic='-KPIC' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
lt_prog_compiler_wl='-Wl,' |
| |
# All OSF/1 code is PIC. |
| |
lt_prog_compiler_static='-non_shared' |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
lt_prog_compiler_pic='-Kpic' |
| |
lt_prog_compiler_static='-dn' |
| |
;; |
| |
|
| |
solaris*) |
| |
lt_prog_compiler_wl='-Wl,' |
| |
lt_prog_compiler_pic='-KPIC' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
;; |
| |
|
| |
sunos4*) |
| |
lt_prog_compiler_wl='-Qoption ld ' |
| |
lt_prog_compiler_pic='-PIC' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
if test "x$host_vendor" = xsni; then |
| |
lt_prog_compiler_wl='-LD' |
| |
else |
| |
lt_prog_compiler_wl='-Wl,' |
| |
fi |
| |
lt_prog_compiler_pic='-KPIC' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec ;then |
| |
lt_prog_compiler_pic='-Kconform_pic' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
fi |
| |
;; |
| |
|
| |
uts4*) |
| |
lt_prog_compiler_pic='-pic' |
| |
lt_prog_compiler_static='-Bstatic' |
| |
;; |
| |
|
| |
*) |
| |
lt_prog_compiler_can_build_shared=no |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "$as_me:7565: result: $lt_prog_compiler_pic" >&5 |
| |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| |
|
| |
# |
| |
# Check to make sure the PIC flag actually works. |
| |
# |
| |
if test -n "$lt_prog_compiler_pic"; then |
| |
echo "$as_me:7572: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_prog_compiler_pic_works=no |
| |
ac_outfile=conftest.$ac_objext |
| |
save_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings mentioning the option |
| |
cat conftest.err 1>&5 |
| |
lt_prog_compiler_pic_works=yes |
| |
for lt_i in $lt_prog_compiler_pic -DPIC; do |
| |
if grep -- $lt_i conftest.err >/dev/null; then |
| |
lt_prog_compiler_pic_works=no |
| |
fi |
| |
done |
| |
fi |
| |
$rm conftest* |
| |
CFLAGS="$save_CFLAGS" |
| |
|
| |
fi |
| |
echo "$as_me:7597: result: $lt_prog_compiler_pic_works" >&5 |
| |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| |
|
| |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
| |
case $lt_prog_compiler_pic in |
| |
"" | " "*) ;; |
| |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| |
esac |
| |
else |
| |
lt_prog_compiler_pic= |
| |
lt_prog_compiler_can_build_shared=no |
| |
fi |
| |
|
| |
fi |
| |
case "$host_os" in |
| |
# For platforms which do not support PIC, -DPIC is meaningless: |
| |
*djgpp*) |
| |
lt_prog_compiler_pic= |
| |
;; |
| |
*) |
| |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| |
;; |
| esac |
esac |
| |
|
| case "${build_alias}" in |
echo "$as_me:7621: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| "") |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| if result=`${config_shell} ${configsub} ${host_alias}` ; then |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| build_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| build_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
else |
| build_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
lt_cv_prog_compiler_c_o=no |
| build=${build_cpu}-${build_vendor}-${build_os} |
$rm -r conftest 2>/dev/null |
| build_alias=${host_alias} |
mkdir conftest |
| |
cd conftest |
| |
mkdir out |
| |
save_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
|
| |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| |
# that will create temporary files in the current directory regardless of |
| |
# the output directory. Thus, making CWD read-only will cause this test |
| |
# to fail, enabling locking or at least warning the user not to do parallel |
| |
# builds. |
| |
chmod -w . |
| |
|
| |
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| |
then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings |
| |
if test -s out/conftest.err; then |
| |
# Append any errors to the config.log. |
| |
cat out/conftest.err 1>&5 |
| |
else |
| |
lt_cv_prog_compiler_c_o=yes |
| |
fi |
| |
fi |
| |
CFLAGS="$save_CFLAGS" |
| |
chmod u+w . |
| |
$rm conftest* out/* |
| |
rmdir out |
| |
cd .. |
| |
rmdir conftest |
| |
$rm conftest* |
| |
|
| |
fi |
| |
echo "$as_me:7662: result: $lt_cv_prog_compiler_c_o" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| |
|
| |
hard_links="nottested" |
| |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| |
# do not overwrite the value of need_locks provided by the user |
| |
echo "$as_me:7668: checking if we can lock with hard links" >&5 |
| |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| |
hard_links=yes |
| |
$rm conftest* |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
touch conftest.a |
| |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
echo "$as_me:7676: result: $hard_links" >&5 |
| |
echo "${ECHO_T}$hard_links" >&6 |
| |
if test "$hard_links" = no; then |
| |
{ echo "$as_me:7679: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| |
need_locks=warn |
| |
fi |
| |
else |
| |
need_locks=no |
| |
fi |
| |
|
| |
echo "$as_me:7687: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| |
|
| |
runpath_var= |
| |
allow_undefined_flag= |
| |
|
| |
archive_cmds= |
| |
archive_cmds_need_lc= |
| |
archive_expsym_cmds= |
| |
old_archive_From_new_cmds= |
| |
old_archive_from_expsyms_cmds= |
| |
export_dynamic_flag_spec= |
| |
whole_archive_flag_spec= |
| |
thread_safe_flag_spec= |
| |
hardcode_libdir_flag_spec= |
| |
hardcode_libdir_separator= |
| |
hardcode_direct=no |
| |
hardcode_minus_L=no |
| |
hardcode_shlibpath_var=unsupported |
| |
link_all_deplibs=unknown |
| |
always_export_symbols=no |
| |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| |
# include_expsyms should be a list of space-separated symbols to be *always* |
| |
# included in the symbol list |
| |
include_expsyms= |
| |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
| |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| |
# as well as any symbol that contains `d'. |
| |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| |
# the symbol is explicitly referenced. Since portable code cannot |
| |
# rely on this symbol name, it's probably fine to never include it in |
| |
# preloaded symbol tables. |
| |
extract_expsyms_cmds= |
| |
|
| |
case $host_os in |
| |
cygwin* | mingw* | pw32*) |
| |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| |
# When not using gcc, we currently assume that we are using |
| |
# Microsoft Visual C++. |
| |
if test "$GCC" != yes; then |
| |
with_gnu_ld=no |
| |
fi |
| |
;; |
| |
openbsd*) |
| |
with_gnu_ld=no |
| |
;; |
| |
esac |
| |
|
| |
ld_shlibs=yes |
| |
if test "$with_gnu_ld" = yes; then |
| |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| |
wlarc='${wl}' |
| |
|
| |
# See if GNU ld supports shared libraries. |
| |
case $host_os in |
| |
aix3* | aix4* | aix5*) |
| |
# On AIX/PPC, the GNU linker is very broken |
| |
if test "$host_cpu" != ia64; then |
| |
ld_shlibs=no |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| |
*** to be unable to reliably create shared libraries on AIX. |
| |
*** Therefore, libtool is disabling shared libraries support. If you |
| |
*** really care for shared libraries, you may want to modify your PATH |
| |
*** so that a non-GNU linker is found, and then restart. |
| |
|
| |
EOF |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
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)' |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_minus_L=yes |
| |
|
| |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| |
# to version 4, is to share data among multiple programs linked |
| |
# with the same dynamic library. Since this doesn't match the |
| |
# behavior of shared libraries on other platforms, we can't use |
| |
# them. |
| |
ld_shlibs=no |
| |
;; |
| |
|
| |
beos*) |
| |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
allow_undefined_flag=unsupported |
| |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| |
# support --undefined. This deserves some investigation. FIXME |
| |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
else |
| |
ld_shlibs=no |
| |
fi |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is |
| |
# no search path for DLLs. |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
allow_undefined_flag=unsupported |
| |
always_export_symbols=yes |
| |
|
| |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| |
else $CC -o impgen impgen.c ; fi)~ |
| |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| |
|
| |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| |
|
| |
# cygwin and mingw dlls have different entry points and sets of symbols |
| |
# to exclude. |
| |
# FIXME: what about values for MSVC? |
| |
dll_entry=__cygwin_dll_entry@12 |
| |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| |
case $host_os in |
| |
mingw*) |
| |
# mingw values |
| |
dll_entry=_DllMainCRTStartup@12 |
| |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| |
;; |
| |
esac |
| |
|
| |
# mingw and cygwin differ, and it's simplest to just exclude the union |
| |
# of the two symbol sets. |
| |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| |
|
| |
# recent cygwin and mingw systems supply a stub DllMain which the user |
| |
# can override, but on older systems we have to supply one (in ltdll.c) |
| |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
| |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| |
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~ |
| |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| |
else |
| |
ltdll_obj= |
| |
ltdll_cmds= |
| |
fi |
| |
|
| |
# Extract the symbol export list from an `--export-all' def file, |
| |
# then regenerate the def file from the symbol export list, so that |
| |
# the compiled dll only exports the symbol export list. |
| |
# Be careful not to strip the DATA tag left by newer dlltools. |
| |
export_symbols_cmds="$ltdll_cmds"' |
| |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| |
|
| |
# If the export-symbols file already is a .def file (1st line |
| |
# is EXPORTS), use it as is. |
| |
# If DATA tags from a recent dlltool are present, honour them! |
| |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| |
cp $export_symbols $output_objdir/$soname-def; |
| |
else |
| |
echo EXPORTS > $output_objdir/$soname-def; |
| |
_lt_hint=1; |
| |
cat $export_symbols | while read symbol; do |
| |
set dummy \$symbol; |
| |
case \$# in |
| |
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| |
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| |
esac; |
| |
_lt_hint=`expr 1 + \$_lt_hint`; |
| |
done; |
| |
fi~ |
| |
'"$ltdll_cmds"' |
| |
$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~ |
| |
$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~ |
| |
$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~ |
| |
$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~ |
| |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| |
;; |
| |
|
| |
netbsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| |
wlarc= |
| |
else |
| |
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
fi |
| |
;; |
| |
|
| |
solaris* | sysv5*) |
| |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| |
ld_shlibs=no |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| |
*** create shared libraries on Solaris systems. Therefore, libtool |
| |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| |
*** your PATH or compiler configuration so that the native linker is |
| |
*** used, and then restart. |
| |
|
| |
EOF |
| |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
else |
| |
ld_shlibs=no |
| |
fi |
| |
;; |
| |
|
| |
sunos4*) |
| |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
wlarc= |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
*) |
| |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
else |
| |
ld_shlibs=no |
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
if test "$ld_shlibs" = yes; then |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| |
case $host_os in |
| |
cygwin* | mingw* | pw32*) |
| |
# dlltool doesn't understand --whole-archive et. al. |
| |
whole_archive_flag_spec= |
| |
;; |
| |
*) |
| |
# ancient GNU ld didn't support --whole-archive et. al. |
| |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| |
else |
| |
whole_archive_flag_spec= |
| fi |
fi |
| ;; |
;; |
| |
esac |
| |
fi |
| |
else |
| |
# PORTME fill in a description of your system's linker (not GNU ld) |
| |
case $host_os in |
| |
aix3*) |
| |
allow_undefined_flag=unsupported |
| |
always_export_symbols=yes |
| |
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' |
| |
# Note: this linker hardcodes the directories in LIBPATH if there |
| |
# are no directories specified by -L. |
| |
hardcode_minus_L=yes |
| |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| |
# Neither direct hardcoding nor static linking is supported with a |
| |
# broken collect2. |
| |
hardcode_direct=unsupported |
| |
fi |
| |
;; |
| |
|
| |
aix4* | aix5*) |
| |
if test "$host_cpu" = ia64; then |
| |
# On IA64, the linker does run time linking by default, so we don't |
| |
# have to do anything special. |
| |
aix_use_runtimelinking=no |
| |
exp_sym_flag='-Bexport' |
| |
no_entry_flag="" |
| |
else |
| |
# If we're using GNU nm, then we don't want the "-C" option. |
| |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| |
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then |
| |
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' |
| |
else |
| |
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' |
| |
fi |
| |
aix_use_runtimelinking=no |
| |
|
| |
# Test if we are trying to use run time linking or normal |
| |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| |
# need to do runtime linking. |
| |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| |
for ld_flag in $LDFLAGS; do |
| |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| |
aix_use_runtimelinking=yes |
| |
break |
| |
fi |
| |
done |
| |
esac |
| |
|
| |
exp_sym_flag='-bexport' |
| |
no_entry_flag='-bnoentry' |
| |
fi |
| |
|
| |
# When large executables or shared objects are built, AIX ld can |
| |
# have problems creating the table of contents. If linking a library |
| |
# or program results in "error TOC overflow" add -mminimal-toc to |
| |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| |
|
| |
archive_cmds='' |
| |
hardcode_direct=yes |
| |
hardcode_libdir_separator=':' |
| |
link_all_deplibs=yes |
| |
|
| |
if test "$GCC" = yes; then |
| |
case $host_os in aix4.012|aix4.012.*) |
| |
# We only want to do this on AIX 4.2 and lower, the check |
| |
# below for broken collect2 doesn't work under 4.3+ |
| |
collect2name=`${CC} -print-prog-name=collect2` |
| |
if test -f "$collect2name" && \ |
| |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| |
then |
| |
# We have reworked collect2 |
| |
hardcode_direct=yes |
| |
else |
| |
# We have old collect2 |
| |
hardcode_direct=unsupported |
| |
# It fails to find uninstalled libraries when the uninstalled |
| |
# path is not listed in the libpath. Setting hardcode_minus_L |
| |
# to unsupported forces relinking |
| |
hardcode_minus_L=yes |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_libdir_separator= |
| |
fi |
| |
esac |
| |
shared_flag='-shared' |
| |
else |
| |
# not using gcc |
| |
if test "$host_cpu" = ia64; then |
| |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| |
# chokes on -Wl,-G. The following line is correct: |
| |
shared_flag='-G' |
| |
else |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
shared_flag='${wl}-G' |
| |
else |
| |
shared_flag='${wl}-bM:SRE' |
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
# It seems that -bexpall does not export symbols beginning with |
| |
# underscore (_), so it is better to generate a list of symbols to export. |
| |
always_export_symbols=yes |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# Warning - without using the other runtime loading flags (-brtl), |
| |
# -berok will link without error, but may produce a broken library. |
| |
allow_undefined_flag='-berok' |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 8037 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:8049: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8052: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:8055: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8058: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
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" |
| |
else |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| |
allow_undefined_flag="-z nodefs" |
| |
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" |
| |
else |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 8083 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:8095: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8098: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:8101: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8104: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
# Warning - without using the other run time loading flags, |
| |
# -berok will link without error, but may produce a broken library. |
| |
no_undefined_flag=' ${wl}-bernotok' |
| |
allow_undefined_flag=' ${wl}-berok' |
| |
# -bexpall does not export symbols beginning with underscore (_) |
| |
always_export_symbols=yes |
| |
# Exported symbols can be pulled into shared objects from archives |
| |
whole_archive_flag_spec=' ' |
| |
archive_cmds_need_lc=yes |
| |
# This is similar to how AIX traditionally builds it's shared libraries. |
| |
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' |
| |
fi |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
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)' |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_minus_L=yes |
| |
# see comment about different semantics on the GNU ld section |
| |
ld_shlibs=no |
| |
;; |
| |
|
| |
bsdi4*) |
| |
export_dynamic_flag_spec=-rdynamic |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
# When not using gcc, we currently assume that we are using |
| |
# Microsoft Visual C++. |
| |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| |
# no search path for DLLs. |
| |
hardcode_libdir_flag_spec=' ' |
| |
allow_undefined_flag=unsupported |
| |
# Tell ltmain to make .lib files, not .a files. |
| |
libext=lib |
| |
# FIXME: Setting linknames here is a bad hack. |
| |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| |
# The linker will automatically build a .lib file if we build a DLL. |
| |
old_archive_From_new_cmds='true' |
| |
# FIXME: Should let the user specify the lib program. |
| |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
case "$host_os" in |
| |
rhapsody* | darwin1.[012]) |
| |
allow_undefined_flag='-undefined suppress' |
| |
;; |
| |
*) # Darwin 1.3 on |
| |
allow_undefined_flag='-flat_namespace -undefined suppress' |
| |
;; |
| |
esac |
| |
|
| |
# FIXME: Relying on posixy $() will cause problems for |
| |
# cross-compilation, but unfortunately the echo tests do not |
| |
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| |
# `"' quotes if we put them in here... so don't! |
| |
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
| |
# We need to add '_' to the symbols in $export_symbols first |
| |
#_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
whole_archive_flag_spec='-all_load $convenience' |
| |
;; |
| |
|
| |
dgux*) |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
freebsd1*) |
| |
ld_shlibs=no |
| |
;; |
| |
|
| |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| |
# does not break anything, and helps significantly (at the cost of a little |
| |
# extra space). |
| |
freebsd2.2*) |
| |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| |
hardcode_libdir_flag_spec='-R$libdir' |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| |
freebsd2*) |
| |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct=yes |
| |
hardcode_minus_L=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| |
freebsd*) |
| |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| |
hardcode_libdir_flag_spec='-R$libdir' |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
if test "$GCC" = yes; then |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| |
fi |
| |
;; |
| |
esac |
| |
else |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
else |
| |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| |
fi |
| |
;; |
| |
esac |
| |
fi |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_direct=no |
| |
hardcode_shlibpath_var=no |
| |
else |
| |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| |
hardcode_libdir_separator=: |
| |
hardcode_direct=yes |
| |
fi |
| |
# hardcode_minus_L: Not really in the search PATH, |
| |
# but as the default location of the library. |
| |
hardcode_minus_L=yes |
| |
export_dynamic_flag_spec='${wl}-E' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
if test "$GCC" = yes; then |
| |
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' |
| |
else |
| |
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' |
| |
fi |
| |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator=: |
| |
link_all_deplibs=yes |
| |
;; |
| |
|
| |
netbsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| |
else |
| |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| |
fi |
| |
hardcode_libdir_flag_spec='-R$libdir' |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
newsos6) |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct=yes |
| |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator=: |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
openbsd*) |
| |
hardcode_direct=yes |
| |
hardcode_shlibpath_var=no |
| |
|
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| |
export_dynamic_flag_spec='${wl}-E' |
| |
else |
| |
case $host_os in |
| |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec='-R$libdir' |
| |
;; |
| |
*) |
| |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| |
;; |
| |
esac |
| |
fi |
| |
;; |
| |
|
| |
os2*) |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_minus_L=yes |
| |
allow_undefined_flag=unsupported |
| |
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' |
| |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| |
;; |
| |
|
| |
osf3*) |
| |
if test "$GCC" = yes; then |
| |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
else |
| |
allow_undefined_flag=' -expect_unresolved \*' |
| |
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' |
| |
fi |
| |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator=: |
| |
;; |
| |
|
| |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| |
if test "$GCC" = yes; then |
| |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| |
else |
| |
allow_undefined_flag=' -expect_unresolved \*' |
| |
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' |
| |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| |
$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' |
| |
|
| |
# Both c and cxx compiler support -rpath directly |
| |
hardcode_libdir_flag_spec='-rpath $libdir' |
| |
fi |
| |
hardcode_libdir_separator=: |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var=no |
| |
export_dynamic_flag_spec='${wl}-Bexport' |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_runpath_var=yes |
| |
;; |
| |
|
| |
solaris*) |
| |
no_undefined_flag=' -z text' |
| |
if test "$GCC" = yes; then |
| |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| |
else |
| |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| |
fi |
| |
hardcode_libdir_flag_spec='-R$libdir' |
| |
hardcode_shlibpath_var=no |
| |
case $host_os in |
| |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| |
esac |
| |
link_all_deplibs=yes |
| |
;; |
| |
|
| |
sunos4*) |
| |
if test "x$host_vendor" = xsequent; then |
| |
# Use $CC to link under sequent, because it throws in some extra .o |
| |
# files that make .init and .fini sections work. |
| |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| |
fi |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_direct=yes |
| |
hardcode_minus_L=yes |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
sysv4) |
| |
if test "x$host_vendor" = xsni; then |
| |
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct=yes # is this really true??? |
| |
else |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| |
fi |
| |
runpath_var='LD_RUN_PATH' |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
sysv4.3*) |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var=no |
| |
export_dynamic_flag_spec='-Bexport' |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec; then |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var=no |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_runpath_var=yes |
| |
ld_shlibs=yes |
| |
fi |
| |
;; |
| |
|
| |
sysv4.2uw2*) |
| |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct=yes |
| |
hardcode_minus_L=no |
| |
hardcode_shlibpath_var=no |
| |
hardcode_runpath_var=yes |
| |
runpath_var=LD_RUN_PATH |
| |
;; |
| |
|
| |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| |
no_undefined_flag='${wl}-z ${wl}text' |
| |
if test "$GCC" = yes; then |
| |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
fi |
| |
runpath_var='LD_RUN_PATH' |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
sysv5*) |
| |
no_undefined_flag=' -z text' |
| |
# $CC -shared without GNU ld will not create a library from C++ |
| |
# object files and a static libstdc++, better avoid it by now |
| |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| |
hardcode_libdir_flag_spec= |
| |
hardcode_shlibpath_var=no |
| |
runpath_var='LD_RUN_PATH' |
| |
;; |
| |
|
| |
uts4*) |
| |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec='-L$libdir' |
| |
hardcode_shlibpath_var=no |
| |
;; |
| |
|
| |
*) |
| |
ld_shlibs=no |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "$as_me:8471: result: $ld_shlibs" >&5 |
| |
echo "${ECHO_T}$ld_shlibs" >&6 |
| |
test "$ld_shlibs" = no && can_build_shared=no |
| |
|
| |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| |
if test "$GCC" = yes; then |
| |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| |
fi |
| |
|
| |
# |
| |
# Do we need to explicitly link libc? |
| |
# |
| |
archive_cmds_need_lc=yes |
| |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| |
case $archive_cmds in |
| |
*'~'*) |
| |
# FIXME: we may have to deal with multi-command sequences. |
| |
;; |
| |
'$CC '*) |
| |
# Test whether the compiler implicitly links with -lc since on some |
| |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| |
# to ld, don't add -lc before -lgcc. |
| |
echo "$as_me:8493: checking whether -lc should be explicitly linked in" >&5 |
| |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| |
$rm conftest* |
| |
echo 'static int dummy;' > conftest.$ac_ext |
| |
|
| |
if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8501: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } 2>conftest.err; then |
| |
soname=conftest |
| |
lib=conftest |
| |
libobjs=conftest.$ac_objext |
| |
deplibs= |
| |
wl=$lt_prog_compiler_wl |
| |
compiler_flags=-v |
| |
linker_flags=-v |
| |
verstring= |
| |
output_objdir=. |
| |
libname=conftest |
| |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| |
allow_undefined_flag= |
| |
if { (eval echo "$as_me:8515: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:8518: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
then |
| |
archive_cmds_need_lc=no |
| |
else |
| |
archive_cmds_need_lc=yes |
| |
fi |
| |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| |
else |
| |
cat conftest.err 1>&5 |
| |
fi |
| |
$rm conftest* |
| |
echo "$as_me:8530: result: $archive_cmds_need_lc" >&5 |
| |
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "$as_me:8536: checking how to hardcode library paths into programs" >&5 |
| |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| |
hardcode_action= |
| |
if test -n "$hardcode_libdir_flag_spec" || \ |
| |
test -n "$runpath_var "; then |
| |
|
| |
# We can hardcode non-existant directories. |
| |
if test "$hardcode_direct" != no && |
| |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| |
# have to relink, otherwise we might link with an installed library |
| |
# when we should be linking with a yet-to-be-installed one |
| |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| |
test "$hardcode_minus_L" != no; then |
| |
# Linking always hardcodes the temporary library directory. |
| |
hardcode_action=relink |
| |
else |
| |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| |
hardcode_action=immediate |
| |
fi |
| |
else |
| |
# We cannot hardcode anything, or else we can only hardcode existing |
| |
# directories. |
| |
hardcode_action=unsupported |
| |
fi |
| |
echo "$as_me:8560: result: $hardcode_action" >&5 |
| |
echo "${ECHO_T}$hardcode_action" >&6 |
| |
|
| |
if test "$hardcode_action" = relink; then |
| |
# Fast installation is not supported |
| |
enable_fast_install=no |
| |
elif test "$shlibpath_overrides_runpath" = yes || |
| |
test "$enable_shared" = no; then |
| |
# Fast installation is not necessary |
| |
enable_fast_install=needless |
| |
fi |
| |
|
| |
striplib= |
| |
old_striplib= |
| |
echo "$as_me:8574: checking whether stripping libraries is possible" >&5 |
| |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| |
echo "$as_me:8579: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
else |
| |
echo "$as_me:8582: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
echo "$as_me:8586: checking dynamic linker characteristics" >&5 |
| |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| |
library_names_spec= |
| |
libname_spec='lib$name' |
| |
soname_spec= |
| |
postinstall_cmds= |
| |
postuninstall_cmds= |
| |
finish_cmds= |
| |
finish_eval= |
| |
shlibpath_var= |
| |
shlibpath_overrides_runpath=unknown |
| |
version_type=none |
| |
dynamic_linker="$host_os ld.so" |
| |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| |
need_lib_prefix=unknown |
| |
hardcode_into_libs=no |
| |
|
| |
# when you set need_version to no, make sure it does not cause -set_version |
| |
# flags to be left without arguments |
| |
need_version=unknown |
| |
|
| |
case $host_os in |
| |
aix3*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| |
shlibpath_var=LIBPATH |
| |
|
| |
# AIX 3 has no versioning support, so we append a major version to the name. |
| |
soname_spec='${libname}${release}.so$major' |
| |
;; |
| |
|
| |
aix4* | aix5*) |
| |
version_type=linux |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 supports IA64 |
| |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
else |
| |
# With GCC up to 2.95.x, collect2 would create an import file |
| |
# for dependence libraries. The import file would start with |
| |
# the line `#! .'. This would cause the generated library to |
| |
# depend on `.', always an invalid library. This was fixed in |
| |
# development snapshots of GCC prior to 3.0. |
| |
case $host_os in |
| |
aix4 | aix4.[01] | aix4.[01].*) |
| |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| |
echo ' yes ' |
| |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| |
: |
| |
else |
| |
can_build_shared=no |
| |
fi |
| |
;; |
| |
esac |
| |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| |
# soname into executable. Probably we can add versioning support to |
| |
# collect2, so additional links can be useful in future. |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| |
# instead of lib<name>.a to let people know that these are not |
| |
# typical AIX shared libraries. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
else |
| |
# We preserve .a as extension for shared libraries through AIX4.2 |
| |
# and later when we are not doing run time linking. |
| |
library_names_spec='${libname}${release}.a $libname.a' |
| |
soname_spec='${libname}${release}.so$major' |
| |
fi |
| |
shlibpath_var=LIBPATH |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
library_names_spec='$libname.ixlibrary $libname.a' |
| |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| |
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' |
| |
;; |
| |
|
| |
beos*) |
| |
library_names_spec='${libname}.so' |
| |
dynamic_linker="$host_os ld.so" |
| |
shlibpath_var=LIBRARY_PATH |
| |
;; |
| |
|
| |
bsdi4*) |
| |
version_type=linux |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| |
# the default ld.so.conf also contains /usr/contrib/lib and |
| |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| |
# libtool to hard-code these into programs |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
version_type=windows |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
case $GCC,$host_os in |
| |
yes,cygwin*) |
| |
library_names_spec='$libname.dll.a' |
| |
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| |
dldir=$destdir/`dirname \$dlpath`~ |
| |
test -d \$dldir || mkdir -p \$dldir~ |
| |
$install_prog .libs/$dlname \$dldir/$dlname' |
| |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| |
dlpath=$dir/\$dldll~ |
| |
$rm \$dlpath' |
| |
;; |
| |
yes,mingw*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` |
| |
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then |
| |
# It is most probably a Windows format PATH printed by |
| |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| |
# path with ; separators, and with drive letters. We can handle the |
| |
# drive letters (cygwin fileutils understands them), so leave them, |
| |
# especially as we might pass files found there to a mingw objdump, |
| |
# which wouldn't understand a cygwinified path. Ahh. |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
| |
else |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
| |
fi |
| |
;; |
| |
yes,pw32*) |
| |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| |
;; |
| |
*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| |
;; |
| |
esac |
| |
dynamic_linker='Win32 ld.exe' |
| |
# FIXME: first we should search . and the directory the executable is in |
| |
shlibpath_var=PATH |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
dynamic_linker="$host_os dyld" |
| |
version_type=darwin |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
# FIXME: Relying on posixy $() will cause problems for |
| |
# cross-compilation, but unfortunately the echo tests do not |
| |
# yet detect zsh echo's removal of \ escapes. |
| |
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)' |
| |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| |
shlibpath_overrides_runpath=yes |
| |
shlibpath_var=DYLD_LIBRARY_PATH |
| |
;; |
| |
|
| |
dgux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
freebsd1*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
freebsd*) |
| |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| |
version_type=freebsd-$objformat |
| |
case $version_type in |
| |
freebsd-elf*) |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
;; |
| |
freebsd-*) |
| |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| |
need_version=yes |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_os in |
| |
freebsd2*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
freebsd3.01* | freebsdelf3.01*) |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
*) # from 3.2 on |
| |
shlibpath_overrides_runpath=no |
| |
hardcode_into_libs=yes |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
gnu*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| |
# link against other versions. |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_into_libs=yes |
| |
dynamic_linker="$host_os dld.so" |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
if test "X$HPUX_IA64_MODE" = X32; then |
| |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| |
else |
| |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| |
fi |
| |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| |
else |
| |
dynamic_linker="$host_os dld.sl" |
| |
shlibpath_var=SHLIB_PATH |
| |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| |
soname_spec='${libname}${release}.sl$major' |
| |
fi |
| |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| |
postinstall_cmds='chmod 555 $lib' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
version_type=irix |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| |
case $host_os in |
| |
irix5*) |
| |
libsuff= shlibsuff= |
| |
;; |
| |
*) |
| |
case $LD in # libtool.m4 will add one of these switches to LD |
| |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| |
*) libsuff= shlibsuff= libmagic=never-match;; |
| |
esac |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| |
;; |
| |
|
| |
# No shared lib support for Linux oldld, aout, or coff. |
| |
linux*oldld* | linux*aout* | linux*coff*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
# This must be Linux ELF. |
| |
linux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=no |
| |
# This implies no fast_install, which is unacceptable. |
| |
# Some rework will be needed to allow for fast_install |
| |
# before this can be enabled. |
| |
hardcode_into_libs=yes |
| |
|
| |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| |
# powerpc, because MkLinux only supported shared libraries with the |
| |
# GNU dynamic linker. Since this was broken with cross compilers, |
| |
# most powerpc-linux boxes support dynamic linking these days and |
| |
# people can always --disable-shared, the test was removed, and we |
| |
# assume the GNU/Linux dynamic linker is in use. |
| |
dynamic_linker='GNU/Linux ld.so' |
| |
;; |
| |
|
| |
netbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
dynamic_linker='NetBSD (a.out) ld.so' |
| |
else |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
dynamic_linker='NetBSD ld.elf_so' |
| |
fi |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
newsos6) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
nto-qnx) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
openbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
case $host_os in |
| |
openbsd2.[89] | openbsd2.[89].*) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
esac |
| |
else |
| |
shlibpath_overrides_runpath=yes |
| |
fi |
| |
;; |
| |
|
| |
os2*) |
| |
libname_spec='$name' |
| |
need_lib_prefix=no |
| |
library_names_spec='$libname.dll $libname.a' |
| |
dynamic_linker='OS/2 ld.exe' |
| |
shlibpath_var=LIBPATH |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
version_type=osf |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
version_type=osf |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
solaris*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
# ldd complains unless libraries are executable |
| |
postinstall_cmds='chmod +x $lib' |
| |
;; |
| |
|
| |
sunos4*) |
| |
version_type=sunos |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
if test "$with_gnu_ld" = yes; then |
| |
need_lib_prefix=no |
| |
fi |
| |
need_version=yes |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_vendor in |
| |
sni) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
motorola) |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec ;then |
| |
version_type=linux |
| |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| |
soname_spec='$libname.so.$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
fi |
| |
;; |
| |
|
| |
uts4*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| *) |
*) |
| if result=`${config_shell} ${configsub} ${build_alias}` ; then |
dynamic_linker=no |
| buildopt="--build=${build_alias}" |
;; |
| build_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
esac |
| build_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
echo "$as_me:9025: result: $dynamic_linker" >&5 |
| build_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
echo "${ECHO_T}$dynamic_linker" >&6 |
| build=${build_cpu}-${build_vendor}-${build_os} |
test "$dynamic_linker" = no && can_build_shared=no |
| |
|
| |
if test "x$enable_dlopen" != xyes; then |
| |
enable_dlopen=unknown |
| |
enable_dlopen_self=unknown |
| |
enable_dlopen_self_static=unknown |
| |
else |
| |
lt_cv_dlopen=no |
| |
lt_cv_dlopen_libs= |
| |
|
| |
case $host_os in |
| |
beos*) |
| |
lt_cv_dlopen="load_add_on" |
| |
lt_cv_dlopen_libs= |
| |
lt_cv_dlopen_self=yes |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
lt_cv_dlopen="LoadLibrary" |
| |
lt_cv_dlopen_libs= |
| |
;; |
| |
|
| |
*) |
| |
echo "$as_me:9050: checking for shl_load" >&5 |
| |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9056 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char shl_load (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| |
choke me |
| |
#else |
| |
f = shl_load; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9087: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9090: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9093: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9096: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_shl_load=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:9106: result: $ac_cv_func_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| |
if test $ac_cv_func_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" |
| |
else |
| |
echo "$as_me:9111: checking for shl_load in -ldld" >&5 |
| |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9119 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
int |
| |
main () |
| |
{ |
| |
shl_load (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9138: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9141: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9144: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9147: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_shl_load=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:9158: result: $ac_cv_lib_dld_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| |
if test $ac_cv_lib_dld_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| |
else |
| |
echo "$as_me:9163: checking for dlopen" >&5 |
| |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9169 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char dlopen (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| |
choke me |
| |
#else |
| |
f = dlopen; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9200: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9203: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9206: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9209: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:9219: result: $ac_cv_func_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| |
if test $ac_cv_func_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" |
| |
else |
| |
echo "$as_me:9224: checking for dlopen in -ldl" >&5 |
| |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldl $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9232 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9251: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9254: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9257: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9260: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dl_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dl_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:9271: result: $ac_cv_lib_dl_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| |
if test $ac_cv_lib_dl_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| |
else |
| |
echo "$as_me:9276: checking for dlopen in -lsvld" >&5 |
| |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lsvld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9284 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9303: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9306: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9309: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9312: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_svld_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_svld_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:9323: result: $ac_cv_lib_svld_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| |
if test $ac_cv_lib_svld_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| |
else |
| |
echo "$as_me:9328: checking for dld_link in -ldld" >&5 |
| |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 9336 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dld_link (); |
| |
int |
| |
main () |
| |
{ |
| |
dld_link (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:9355: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9358: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:9361: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9364: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_dld_link=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_dld_link=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:9375: result: $ac_cv_lib_dld_dld_link" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| |
if test $ac_cv_lib_dld_dld_link = yes; then |
| |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
;; |
| |
esac |
| |
|
| |
if test "x$lt_cv_dlopen" != xno; then |
| |
enable_dlopen=yes |
| |
else |
| |
enable_dlopen=no |
| |
fi |
| |
|
| |
case $lt_cv_dlopen in |
| |
dlopen) |
| |
save_CPPFLAGS="$CPPFLAGS" |
| |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| |
|
| |
save_LDFLAGS="$LDFLAGS" |
| |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| |
|
| |
save_LIBS="$LIBS" |
| |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| |
|
| |
echo "$as_me:9411: checking whether a program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 9422 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:9483: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9486: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| |
fi |
| |
echo "$as_me:9503: result: $lt_cv_dlopen_self" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| |
|
| |
if test "x$lt_cv_dlopen_self" = xyes; then |
| |
LDFLAGS="$LDFLAGS $link_static_flag" |
| |
echo "$as_me:9508: checking whether a statically linked program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self_static=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 9519 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:9580: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:9583: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self_static=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| |
fi |
| |
echo "$as_me:9600: result: $lt_cv_dlopen_self_static" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| |
fi |
| |
|
| |
CPPFLAGS="$save_CPPFLAGS" |
| |
LDFLAGS="$save_LDFLAGS" |
| |
LIBS="$save_LIBS" |
| |
;; |
| |
esac |
| |
|
| |
case $lt_cv_dlopen_self in |
| |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| |
*) enable_dlopen_self=unknown ;; |
| |
esac |
| |
|
| |
case $lt_cv_dlopen_self_static in |
| |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| |
*) enable_dlopen_self_static=unknown ;; |
| |
esac |
| |
fi |
| |
|
| |
# Report which librarie types wil actually be built |
| |
echo "$as_me:9622: checking if libtool supports shared libraries" >&5 |
| |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| |
echo "$as_me:9624: result: $can_build_shared" >&5 |
| |
echo "${ECHO_T}$can_build_shared" >&6 |
| |
|
| |
echo "$as_me:9627: checking whether to build shared libraries" >&5 |
| |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| |
test "$can_build_shared" = "no" && enable_shared=no |
| |
|
| |
# On AIX, shared libraries and static libraries use the same namespace, and |
| |
# are all built from PIC. |
| |
case "$host_os" in |
| |
aix3*) |
| |
test "$enable_shared" = yes && enable_static=no |
| |
if test -n "$RANLIB"; then |
| |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| |
postinstall_cmds='$RANLIB $lib' |
| |
fi |
| |
;; |
| |
|
| |
aix4*) |
| |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| |
test "$enable_shared" = yes && enable_static=no |
| |
fi |
| |
;; |
| |
esac |
| |
echo "$as_me:9648: result: $enable_shared" >&5 |
| |
echo "${ECHO_T}$enable_shared" >&6 |
| |
|
| |
echo "$as_me:9651: checking whether to build static libraries" >&5 |
| |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| |
# Make sure either enable_shared or enable_static is yes. |
| |
test "$enable_shared" = yes || enable_static=yes |
| |
echo "$as_me:9655: result: $enable_static" >&5 |
| |
echo "${ECHO_T}$enable_static" >&6 |
| |
|
| |
# The else clause should only fire when bootstrapping the |
| |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| |
# with your package, and you will get complaints that there are |
| |
# no rules to generate ltmain.sh. |
| |
if test -f "$ltmain"; then |
| |
# Now quote all the things that may contain metacharacters while being |
| |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| |
# variables and quote the copies for generation of the libtool script. |
| |
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \ |
| |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| |
lt_cv_sys_global_symbol_to_c_name_address \ |
| |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| |
old_postinstall_cmds old_postuninstall_cmds \ |
| |
HOST_CC \ |
| |
compiler \ |
| |
CC \ |
| |
LD \ |
| |
lt_prog_compiler_wl \ |
| |
lt_prog_compiler_pic \ |
| |
lt_prog_compiler_static \ |
| |
lt_prog_compiler_no_builtin_flag \ |
| |
export_dynamic_flag_spec \ |
| |
thread_safe_flag_spec \ |
| |
whole_archive_flag_spec \ |
| |
old_archive_cmds \ |
| |
old_archive_from_new_cmds \ |
| |
predep_objects \ |
| |
postdep_objects \ |
| |
predeps \ |
| |
postdeps \ |
| |
compiler_lib_search_path \ |
| |
archive_cmds \ |
| |
archive_expsym_cmds \ |
| |
postinstall_cmds \ |
| |
postuninstall_cmds \ |
| |
old_archive_from_expsyms_cmds \ |
| |
allow_undefined_flag \ |
| |
no_undefined_flag \ |
| |
export_symbols_cmds \ |
| |
hardcode_libdir_flag_spec \ |
| |
hardcode_libdir_separator \ |
| |
lt_cv_prog_compiler_c_o \ |
| |
exclude_expsyms \ |
| |
include_expsyms; do |
| |
|
| |
case $var in |
| |
old_archive_cmds | \ |
| |
old_archive_from_new_cmds | \ |
| |
archive_cmds | \ |
| |
archive_expsym_cmds | \ |
| |
old_archive_from_expsyms_cmds | \ |
| |
export_symbols_cmds | \ |
| |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| |
postinstall_cmds | postuninstall_cmds | \ |
| |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| |
# Double-quote double-evaled strings. |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| |
;; |
| |
*) |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| |
;; |
| |
esac |
| |
done |
| |
|
| |
case $lt_echo in |
| |
*'\$0 --fallback-echo"') |
| |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| |
;; |
| |
esac |
| |
|
| |
cfgfile="${ofile}T" |
| |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| |
$rm -f "$cfgfile" |
| |
{ echo "$as_me:9735: creating $ofile" >&5 |
| |
echo "$as_me: creating $ofile" >&6;} |
| |
|
| |
cat <<__EOF__ >> "$cfgfile" |
| |
#! $SHELL |
| |
|
| |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| |
# |
| |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| |
# Free Software Foundation, Inc. |
| |
# |
| |
# This file is part of GNU Libtool: |
| |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| |
# |
| |
# This program is free software; you can redistribute it and/or modify |
| |
# it under the terms of the GNU General Public License as published by |
| |
# the Free Software Foundation; either version 2 of the License, or |
| |
# (at your option) any later version. |
| |
# |
| |
# This program is distributed in the hope that it will be useful, but |
| |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| |
# General Public License for more details. |
| |
# |
| |
# You should have received a copy of the GNU General Public License |
| |
# along with this program; if not, write to the Free Software |
| |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| |
# |
| |
# As a special exception to the GNU General Public License, if you |
| |
# distribute this file as part of a program that contains a |
| |
# configuration script generated by Autoconf, you may include it under |
| |
# the same distribution terms that you use for the rest of that program. |
| |
|
| |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| |
Xsed="sed -e s/^X//" |
| |
|
| |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| |
# if CDPATH is set. |
| |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| |
|
| |
# The names of the tagged configurations supported by this script. |
| |
available_tags= |
| |
|
| |
# ### BEGIN LIBTOOL CONFIG |
| |
|
| |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| |
|
| |
# Shell to use when invoking shell scripts. |
| |
SHELL=$lt_SHELL |
| |
|
| |
# Whether or not to build shared libraries. |
| |
build_libtool_libs=$enable_shared |
| |
|
| |
# Whether or not to build static libraries. |
| |
build_old_libs=$enable_static |
| |
|
| |
# Whether or not to add -lc for building shared libraries. |
| |
build_libtool_need_lc=$archive_cmds_need_lc |
| |
|
| |
# Whether or not to optimize for fast installation. |
| |
fast_install=$enable_fast_install |
| |
|
| |
# The host system. |
| |
host_alias=$host_alias |
| |
host=$host |
| |
|
| |
# An echo program that does not interpret backslashes. |
| |
echo=$lt_echo |
| |
|
| |
# The archiver. |
| |
AR=$lt_AR |
| |
AR_FLAGS=$lt_AR_FLAGS |
| |
|
| |
# A C compiler. |
| |
LTCC=$lt_LTCC |
| |
|
| |
# A C compiler for the build system. |
| |
HOST_CC=$lt_HOST_CC |
| |
|
| |
# A language-specific compiler. |
| |
CC=$lt_compiler |
| |
|
| |
# Is the compiler the GNU C compiler? |
| |
with_gcc=$GCC |
| |
|
| |
# The linker used to build libraries. |
| |
LD=$lt_LD |
| |
|
| |
# Whether we need hard or soft links. |
| |
LN_S=$lt_LN_S |
| |
|
| |
# A BSD-compatible nm program. |
| |
NM=$lt_NM |
| |
|
| |
# A symbol stripping program |
| |
STRIP=$STRIP |
| |
|
| |
# Used to examine libraries when file_magic_cmd begins "file" |
| |
MAGIC_CMD=$MAGIC_CMD |
| |
|
| |
# Used on cygwin: DLL creation program. |
| |
DLLTOOL="$DLLTOOL" |
| |
|
| |
# Used on cygwin: object dumper. |
| |
OBJDUMP="$OBJDUMP" |
| |
|
| |
# Used on cygwin: assembler. |
| |
AS="$AS" |
| |
|
| |
# The name of the directory that contains temporary libtool files. |
| |
objdir=$objdir |
| |
|
| |
# How to create reloadable object files. |
| |
reload_flag=$lt_reload_flag |
| |
reload_cmds=$lt_reload_cmds |
| |
|
| |
# How to pass a linker flag through the compiler. |
| |
wl=$lt_lt_prog_compiler_wl |
| |
|
| |
# Object file suffix (normally "o"). |
| |
objext="$ac_objext" |
| |
|
| |
# Old archive suffix (normally "a"). |
| |
libext="$libext" |
| |
|
| |
# Executable file suffix (normally ""). |
| |
exeext="$exeext" |
| |
|
| |
# Additional compiler flags for building library objects. |
| |
pic_flag=$lt_lt_prog_compiler_pic |
| |
pic_mode=$pic_mode |
| |
|
| |
# What is the maximum length of a command? |
| |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| |
|
| |
# Does compiler simultaneously support -c and -o options? |
| |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| |
|
| |
# Must we lock files when doing compilation ? |
| |
need_locks=$lt_need_locks |
| |
|
| |
# Do we need the lib prefix for modules? |
| |
need_lib_prefix=$need_lib_prefix |
| |
|
| |
# Do we need a version for libraries? |
| |
need_version=$need_version |
| |
|
| |
# Whether dlopen is supported. |
| |
dlopen_support=$enable_dlopen |
| |
|
| |
# Whether dlopen of programs is supported. |
| |
dlopen_self=$enable_dlopen_self |
| |
|
| |
# Whether dlopen of statically linked programs is supported. |
| |
dlopen_self_static=$enable_dlopen_self_static |
| |
|
| |
# Compiler flag to prevent dynamic linking. |
| |
link_static_flag=$lt_lt_prog_compiler_static |
| |
|
| |
# Compiler flag to turn off builtin functions. |
| |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| |
|
| |
# Compiler flag to allow reflexive dlopens. |
| |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| |
|
| |
# Compiler flag to generate shared objects directly from archives. |
| |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| |
|
| |
# Compiler flag to generate thread-safe objects. |
| |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| |
|
| |
# Library versioning type. |
| |
version_type=$version_type |
| |
|
| |
# Format of library name prefix. |
| |
libname_spec=$lt_libname_spec |
| |
|
| |
# List of archive names. First name is the real one, the rest are links. |
| |
# The last name is the one that the linker finds with -lNAME. |
| |
library_names_spec=$lt_library_names_spec |
| |
|
| |
# The coded name of the library, if different from the real name. |
| |
soname_spec=$lt_soname_spec |
| |
|
| |
# Commands used to build and install an old-style archive. |
| |
RANLIB=$lt_RANLIB |
| |
old_archive_cmds=$lt_old_archive_cmds |
| |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| |
|
| |
# Create an old-style archive from a shared archive. |
| |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| |
|
| |
# Create a temporary old-style archive to link instead of a shared archive. |
| |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| |
|
| |
# Commands used to build and install a shared archive. |
| |
archive_cmds=$lt_archive_cmds |
| |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| |
postinstall_cmds=$lt_postinstall_cmds |
| |
postuninstall_cmds=$lt_postuninstall_cmds |
| |
|
| |
# Commands to strip libraries. |
| |
old_striplib=$lt_old_striplib |
| |
striplib=$lt_striplib |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predep_objects=$lt_predep_objects |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdep_objects=$lt_postdep_objects |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predeps=$lt_predeps |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdeps=$lt_postdeps |
| |
|
| |
# The library search path used internally by the compiler when linking |
| |
# a shared library. |
| |
compiler_lib_search_path=$lt_compiler_lib_search_path |
| |
|
| |
# Method to check whether dependent libraries are shared objects. |
| |
deplibs_check_method=$lt_deplibs_check_method |
| |
|
| |
# Command to use when deplibs_check_method == file_magic. |
| |
file_magic_cmd=$lt_file_magic_cmd |
| |
|
| |
# Flag that allows shared libraries with undefined symbols to be built. |
| |
allow_undefined_flag=$lt_allow_undefined_flag |
| |
|
| |
# Flag that forces no undefined symbols. |
| |
no_undefined_flag=$lt_no_undefined_flag |
| |
|
| |
# Commands used to finish a libtool library installation in a directory. |
| |
finish_cmds=$lt_finish_cmds |
| |
|
| |
# Same as above, but a single script fragment to be evaled but not shown. |
| |
finish_eval=$lt_finish_eval |
| |
|
| |
# Take the output of nm and produce a listing of raw symbols and C names. |
| |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| |
|
| |
# Transform the output of nm in a proper C declaration |
| |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| |
|
| |
# Transform the output of nm in a C name address pair |
| |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| |
|
| |
# This is the shared library runtime path variable. |
| |
runpath_var=$runpath_var |
| |
|
| |
# This is the shared library path variable. |
| |
shlibpath_var=$shlibpath_var |
| |
|
| |
# Is shlibpath searched before the hard-coded library search path? |
| |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| |
|
| |
# How to hardcode a shared library path into an executable. |
| |
hardcode_action=$hardcode_action |
| |
|
| |
# Whether we should hardcode library paths into libraries. |
| |
hardcode_into_libs=$hardcode_into_libs |
| |
|
| |
# Flag to hardcode \$libdir into a binary during linking. |
| |
# This must work even if \$libdir does not exist. |
| |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| |
|
| |
# Whether we need a single -rpath flag with a separated argument. |
| |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| |
|
| |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_direct=$hardcode_direct |
| |
|
| |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_minus_L=$hardcode_minus_L |
| |
|
| |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| |
# the resulting binary. |
| |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| |
|
| |
# Variables whose values should be saved in libtool wrapper scripts and |
| |
# restored at relink time. |
| |
variables_saved_for_relink="$variables_saved_for_relink" |
| |
|
| |
# Whether libtool must link a program against all its dependency libraries. |
| |
link_all_deplibs=$link_all_deplibs |
| |
|
| |
# Compile-time system search path for libraries |
| |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| |
|
| |
# Run-time system search path for libraries |
| |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| |
|
| |
# Fix the shell variable \$srcfile for the compiler. |
| |
fix_srcfile_path="$fix_srcfile_path" |
| |
|
| |
# Set to yes if exported symbols are required. |
| |
always_export_symbols=$always_export_symbols |
| |
|
| |
# The commands to list exported symbols. |
| |
export_symbols_cmds=$lt_export_symbols_cmds |
| |
|
| |
# The commands to extract the exported symbol list from a shared archive. |
| |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| |
|
| |
# Symbols that should not be listed in the preloaded symbols. |
| |
exclude_expsyms=$lt_exclude_expsyms |
| |
|
| |
# Symbols that must always be exported. |
| |
include_expsyms=$lt_include_expsyms |
| |
|
| |
# ### END LIBTOOL CONFIG |
| |
|
| |
__EOF__ |
| |
|
| |
case $host_os in |
| |
aix3*) |
| |
cat <<\EOF >> "$cfgfile" |
| |
|
| |
# AIX sometimes has problems with the GCC collect2 program. For some |
| |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| |
# vanish in a puff of smoke. |
| |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| |
COLLECT_NAMES= |
| |
export COLLECT_NAMES |
| |
fi |
| |
EOF |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32* | os2*) |
| |
cat <<'EOF' >> "$cfgfile" |
| |
# This is a source program that is used to create dlls on Windows |
| |
# Don't remove nor modify the starting and closing comments |
| |
|
| |
# /* ltdll.c starts here */ |
| |
# #define WIN32_LEAN_AND_MEAN |
| |
# #include <windows.h> |
| |
# #undef WIN32_LEAN_AND_MEAN |
| |
# #include <stdio.h> |
| |
# |
| |
# #ifndef __CYGWIN__ |
| |
# # ifdef __CYGWIN32__ |
| |
# # define __CYGWIN__ __CYGWIN32__ |
| |
# # endif |
| |
# #endif |
| |
# |
| |
# #ifdef __cplusplus |
| |
# extern "C" { |
| |
# #endif |
| |
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| |
# #ifdef __cplusplus |
| |
# } |
| |
# #endif |
| |
# |
| |
# #ifdef __CYGWIN__ |
| |
# #include <cygwin/cygwin_dll.h> |
| |
# DECLARE_CYGWIN_DLL( DllMain ); |
| |
# #endif |
| |
# HINSTANCE __hDllInstance_base; |
| |
# |
| |
# BOOL APIENTRY |
| |
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| |
# { |
| |
# __hDllInstance_base = hInst; |
| |
# return TRUE; |
| |
# } |
| |
# /* ltdll.c ends here */ |
| |
|
| |
# This is a source program that is used to create import libraries |
| |
# on Windows for dlls which lack them. Don't remove nor modify the |
| |
# starting and closing comments |
| |
|
| |
# /* impgen.c starts here */ |
| |
# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
| |
# |
| |
# This file is part of GNU libtool. |
| |
# |
| |
# This program is free software; you can redistribute it and/or modify |
| |
# it under the terms of the GNU General Public License as published by |
| |
# the Free Software Foundation; either version 2 of the License, or |
| |
# (at your option) any later version. |
| |
# |
| |
# This program is distributed in the hope that it will be useful, |
| |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
# GNU General Public License for more details. |
| |
# |
| |
# You should have received a copy of the GNU General Public License |
| |
# along with this program; if not, write to the Free Software |
| |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| |
# */ |
| |
# |
| |
# #include <stdio.h> /* for printf() */ |
| |
# #include <unistd.h> /* for open(), lseek(), read() */ |
| |
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| |
# #include <string.h> /* for strdup() */ |
| |
# |
| |
# /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| |
# #ifndef O_BINARY |
| |
# #define O_BINARY 0 |
| |
# #endif |
| |
# |
| |
# static unsigned int |
| |
# pe_get16 (fd, offset) |
| |
# int fd; |
| |
# int offset; |
| |
# { |
| |
# unsigned char b[2]; |
| |
# lseek (fd, offset, SEEK_SET); |
| |
# read (fd, b, 2); |
| |
# return b[0] + (b[1]<<8); |
| |
# } |
| |
# |
| |
# static unsigned int |
| |
# pe_get32 (fd, offset) |
| |
# int fd; |
| |
# int offset; |
| |
# { |
| |
# unsigned char b[4]; |
| |
# lseek (fd, offset, SEEK_SET); |
| |
# read (fd, b, 4); |
| |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| |
# } |
| |
# |
| |
# static unsigned int |
| |
# pe_as32 (ptr) |
| |
# void *ptr; |
| |
# { |
| |
# unsigned char *b = ptr; |
| |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| |
# } |
| |
# |
| |
# int |
| |
# main (argc, argv) |
| |
# int argc; |
| |
# char *argv[]; |
| |
# { |
| |
# int dll; |
| |
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| |
# unsigned long export_rva, export_size, nsections, secptr, expptr; |
| |
# unsigned long name_rvas, nexp; |
| |
# unsigned char *expdata, *erva; |
| |
# char *filename, *dll_name; |
| |
# |
| |
# filename = argv[1]; |
| |
# |
| |
# dll = open(filename, O_RDONLY|O_BINARY); |
| |
# if (dll < 1) |
| |
# return 1; |
| |
# |
| |
# dll_name = filename; |
| |
# |
| |
# for (i=0; filename[i]; i++) |
| |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| |
# dll_name = filename + i +1; |
| |
# |
| |
# pe_header_offset = pe_get32 (dll, 0x3c); |
| |
# opthdr_ofs = pe_header_offset + 4 + 20; |
| |
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| |
# |
| |
# if (num_entries < 1) /* no exports */ |
| |
# return 1; |
| |
# |
| |
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| |
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
| |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| |
# secptr = (pe_header_offset + 4 + 20 + |
| |
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
| |
# |
| |
# expptr = 0; |
| |
# for (i = 0; i < nsections; i++) |
| |
# { |
| |
# char sname[8]; |
| |
# unsigned long secptr1 = secptr + 40 * i; |
| |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| |
# lseek(dll, secptr1, SEEK_SET); |
| |
# read(dll, sname, 8); |
| |
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| |
# { |
| |
# expptr = fptr + (export_rva - vaddr); |
| |
# if (export_rva + export_size > vaddr + vsize) |
| |
# export_size = vsize - (export_rva - vaddr); |
| |
# break; |
| |
# } |
| |
# } |
| |
# |
| |
# expdata = (unsigned char*)malloc(export_size); |
| |
# lseek (dll, expptr, SEEK_SET); |
| |
# read (dll, expdata, export_size); |
| |
# erva = expdata - export_rva; |
| |
# |
| |
# nexp = pe_as32 (expdata+24); |
| |
# name_rvas = pe_as32 (expdata+32); |
| |
# |
| |
# printf ("EXPORTS\n"); |
| |
# for (i = 0; i<nexp; i++) |
| |
# { |
| |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| |
# } |
| |
# |
| |
# return 0; |
| |
# } |
| |
# /* impgen.c ends here */ |
| |
|
| |
EOF |
| |
;; |
| |
esac |
| |
|
| |
# We use sed instead of cat because bash on DJGPP gets confused if |
| |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| |
# text mode, it properly converts lines to CR/LF. This bash problem |
| |
# is reportedly fixed, but why not run on old versions too? |
| |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| |
|
| |
mv -f "$cfgfile" "$ofile" || \ |
| |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| |
chmod +x "$ofile" |
| |
|
| |
else |
| |
# If there is no Makefile yet, we rely on a make rule to execute |
| |
# `config.status --recheck' to rerun these tests and create the |
| |
# libtool script then. |
| |
test -f Makefile && make "$ltmain" |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
CC="$lt_save_CC" |
| |
|
| |
# Check whether --with-tags or --without-tags was given. |
| |
if test "${with_tags+set}" = set; then |
| |
withval="$with_tags" |
| |
tagnames="$withval" |
| |
else |
| |
tagnames="CXX,GCJ" |
| |
case $host_os in |
| |
mingw*|cygwin*) tagnames="$tagnames,RC" ;; |
| |
esac |
| |
fi; |
| |
|
| |
if test -f "$ltmain" && test -n "$tagnames"; then |
| |
if test ! -f "${ofile}"; then |
| |
{ echo "$as_me:10293: WARNING: output file \`$ofile' does not exist" >&5 |
| |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| |
fi |
| |
|
| |
if test -z "$LTCC"; then |
| |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| |
if test -z "$LTCC"; then |
| |
{ echo "$as_me:10300: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| |
else |
| |
{ echo "$as_me:10303: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| |
fi |
| |
fi |
| |
|
| |
# Extract list of available tagged configurations in $ofile. |
| |
# Note that this assumes the entire list is on one line. |
| |
available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| |
|
| |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| |
for tagname in $tagnames; do |
| |
IFS="$lt_save_ifs" |
| |
# Check whether tagname contains only valid characters |
| |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| |
"") ;; |
| |
*) { { echo "$as_me:10318: error: invalid tag name: $tagname" >&5 |
| |
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
;; |
| |
esac |
| |
|
| |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| |
then |
| |
{ { echo "$as_me:10326: error: tag name \"$tagname\" already exists" >&5 |
| |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
# Update the list of available tags. |
| |
if test -n "$tagname"; then |
| |
echo appending configuration tag \"$tagname\" to $ofile |
| |
|
| |
case $tagname in |
| |
CXX) |
| |
ac_ext=cc |
| |
ac_cpp='$CXXCPP $CPPFLAGS' |
| |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| |
|
| |
archive_cmds_need_lc_CXX=no |
| |
allow_undefined_flag_CXX= |
| |
always_export_symbols_CXX=no |
| |
archive_expsym_cmds_CXX= |
| |
export_dynamic_flag_spec_CXX= |
| |
hardcode_direct_CXX=no |
| |
hardcode_libdir_flag_spec_CXX= |
| |
hardcode_libdir_separator_CXX= |
| |
hardcode_minus_L_CXX=no |
| |
link_all_deplibs_CXX=unknown |
| |
old_archive_cmds_CXX=$old_archive_cmds |
| |
no_undefined_flag_CXX= |
| |
whole_archive_flag_spec_CXX= |
| |
|
| |
# Dependencies to place before and after the object being linked: |
| |
predep_objects_CXX= |
| |
postdep_objects_CXX= |
| |
predeps_CXX= |
| |
postdeps_CXX= |
| |
compiler_lib_search_path_CXX= |
| |
|
| |
# Source file extension for C test sources. |
| |
ac_ext=cc |
| |
|
| |
# Object file extension for compiled C test sources. |
| |
objext=o |
| |
objext_CXX=$objext |
| |
|
| |
# Code to be used in simple compile tests |
| |
lt_simple_compile_test_code="int some_variable = 0;" |
| |
|
| |
# Code to be used in simple link tests |
| |
lt_simple_link_test_code='int main(int char *) { return(0); }' |
| |
|
| |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| |
|
| |
# If no C compiler was specified, use CC. |
| |
LTCC=${LTCC-"$CC"} |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
set dummy $CC |
| |
compiler="$2" |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
lt_save_CC="$CC" |
| |
CC=${CXX-"c++"} |
| |
set dummy $CC |
| |
compiler="$2" |
| |
compiler_CXX=$CC |
| |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| |
|
| |
# We don't want -fno-exception wen compiling C++ code, so set the |
| |
# no_builtin_flag separately |
| |
if test "$GXX" = yes; then |
| |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| |
else |
| |
lt_prog_compiler_no_builtin_flag_CXX= |
| |
fi |
| |
|
| |
if test "$GXX" = yes; then |
| |
# Set up default GNU C++ configuration |
| |
|
| |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| |
# archiving commands below assume that GNU ld is being used. |
| |
if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ |
| |
egrep 'GNU ld' > /dev/null; then |
| |
with_gnu_ld=yes |
| |
|
| |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| |
|
| |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| |
# investigate it a little bit more. (MM) |
| |
wlarc='${wl}' |
| |
|
| |
# ancient GNU ld didn't support --whole-archive et. al. |
| |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| |
egrep 'no-whole-archive' > /dev/null; then |
| |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| |
else |
| |
whole_archive_flag_spec_CXX= |
| |
fi |
| |
else |
| |
with_gnu_ld=no |
| |
wlarc= |
| |
|
| |
# A generic and very simple default shared library creation |
| |
# command for GNU C++ for the case where it uses the native |
| |
# linker, instead of GNU ld. If possible, this setting should |
| |
# overridden to take advantage of the native linker features on |
| |
# the platform it is being used on. |
| |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| |
fi |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| |
|
| |
else |
| |
GXX=no |
| |
with_gnu_ld=no |
| |
wlarc= |
| |
fi |
| |
|
| |
# PORTME: fill in a description of your system's C++ link characteristics |
| |
echo "$as_me:10453: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| |
ld_shlibs_CXX=yes |
| |
case $host_os in |
| |
aix3*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
aix4* | aix5*) |
| |
if test "$host_cpu" = ia64; then |
| |
# On IA64, the linker does run time linking by default, so we don't |
| |
# have to do anything special. |
| |
aix_use_runtimelinking=no |
| |
exp_sym_flag='-Bexport' |
| |
no_entry_flag="" |
| |
else |
| |
aix_use_runtimelinking=no |
| |
|
| |
# Test if we are trying to use run time linking or normal |
| |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| |
# need to do runtime linking. |
| |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| |
for ld_flag in $LDFLAGS; do |
| |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| |
aix_use_runtimelinking=yes |
| |
break |
| |
fi |
| |
done |
| |
esac |
| |
|
| |
exp_sym_flag='-bexport' |
| |
no_entry_flag='-bnoentry' |
| |
fi |
| |
|
| |
# When large executables or shared objects are built, AIX ld can |
| |
# have problems creating the table of contents. If linking a library |
| |
# or program results in "error TOC overflow" add -mminimal-toc to |
| |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| |
|
| |
archive_cmds_CXX='' |
| |
hardcode_direct_CXX=yes |
| |
hardcode_libdir_separator_CXX=':' |
| |
link_all_deplibs_CXX=yes |
| |
|
| |
if test "$GXX" = yes; then |
| |
case $host_os in aix4.012|aix4.012.*) |
| |
# We only want to do this on AIX 4.2 and lower, the check |
| |
# below for broken collect2 doesn't work under 4.3+ |
| |
collect2name=`${CC} -print-prog-name=collect2` |
| |
if test -f "$collect2name" && \ |
| |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| |
then |
| |
# We have reworked collect2 |
| |
hardcode_direct_CXX=yes |
| else |
else |
| echo "Unrecognized build system name ${build_alias}." 1>&2 |
# We have old collect2 |
| exit 1 |
hardcode_direct_CXX=unsupported |
| |
# It fails to find uninstalled libraries when the uninstalled |
| |
# path is not listed in the libpath. Setting hardcode_minus_L |
| |
# to unsupported forces relinking |
| |
hardcode_minus_L_CXX=yes |
| |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| |
hardcode_libdir_separator_CXX= |
| fi |
fi |
| |
esac |
| |
shared_flag='-shared' |
| |
else |
| |
# not using gcc |
| |
if test "$host_cpu" = ia64; then |
| |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| |
# chokes on -Wl,-G. The following line is correct: |
| |
shared_flag='-G' |
| |
else |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
shared_flag='${wl}-G' |
| |
else |
| |
shared_flag='${wl}-bM:SRE' |
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
# It seems that -bexpall does not export symbols beginning with |
| |
# underscore (_), so it is better to generate a list of symbols to export. |
| |
always_export_symbols_CXX=yes |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# Warning - without using the other runtime loading flags (-brtl), |
| |
# -berok will link without error, but may produce a broken library. |
| |
allow_undefined_flag_CXX='-berok' |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 10544 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:10556: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:10559: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:10562: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:10565: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
|
| |
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" |
| |
else |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| |
allow_undefined_flag_CXX="-z nodefs" |
| |
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" |
| |
else |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 10591 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:10603: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:10606: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:10609: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:10612: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
# Warning - without using the other run time loading flags, |
| |
# -berok will link without error, but may produce a broken library. |
| |
no_undefined_flag_CXX=' ${wl}-bernotok' |
| |
allow_undefined_flag_CXX=' ${wl}-berok' |
| |
# -bexpall does not export symbols beginning with underscore (_) |
| |
always_export_symbols_CXX=yes |
| |
# Exported symbols can be pulled into shared objects from archives |
| |
whole_archive_flag_spec_CXX=' ' |
| |
archive_cmds_need_lc_CXX=yes |
| |
# This is similar to how AIX traditionally builds it's shared libraries. |
| |
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' |
| |
fi |
| |
fi |
| |
;; |
| |
chorus*) |
| |
case $cc_basename in |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| ;; |
;; |
| |
esac |
| |
;; |
| |
dgux*) |
| |
case $cc_basename in |
| |
ec++) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
ghcx) |
| |
# Green Hills C++ Compiler |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
esac |
| |
;; |
| |
freebsd12*) |
| |
# C++ shared libraries reported to be fairly broken before switch to ELF |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
freebsd-elf*) |
| |
archive_cmds_need_lc_CXX=no |
| |
;; |
| |
freebsd*) |
| |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| |
# conventions |
| |
ld_shlibs_CXX=yes |
| |
;; |
| |
gnu*) |
| |
;; |
| |
hpux*) |
| |
if test $with_gnu_ld = no; then |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| |
else |
| |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
export_dynamic_flag_spec_CXX='${wl}-E' |
| |
fi |
| |
fi |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_direct_CXX=no |
| |
hardcode_shlibpath_var_CXX=no |
| |
else |
| |
hardcode_direct_CXX=yes |
| |
fi |
| |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
| |
# but as the default |
| |
# location of the library. |
| |
|
| |
case $cc_basename in |
| |
CC) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
aCC) |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| |
else |
| |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| |
fi |
| |
;; |
| |
esac |
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
;; |
| |
*) |
| |
if test "$GXX" = yes; then |
| |
if test $with_gnu_ld = no; then |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| |
else |
| |
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' |
| |
fi |
| |
;; |
| |
esac |
| |
fi |
| |
else |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
fi |
| |
;; |
| |
esac |
| |
;; |
| |
irix5* | irix6*) |
| |
case $cc_basename in |
| |
CC) |
| |
# SGI C++ |
| |
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' |
| |
|
| |
# Archives containing C++ object files must be created using |
| |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| |
# necessary to make sure instantiated templates are included |
| |
# in the archive. |
| |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| |
;; |
| |
*) |
| |
if test "$GXX" = yes; then |
| |
if test "$with_gnu_ld" = no; then |
| |
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' |
| |
else |
| |
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' |
| |
fi |
| |
fi |
| |
link_all_deplibs_CXX=yes |
| |
;; |
| |
esac |
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
;; |
| |
linux*) |
| |
case $cc_basename in |
| |
KCC) |
| |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| |
|
| |
# KCC will only create a shared library if the output file |
| |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| |
# to its proper name (with version) after linking. |
| |
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' |
| |
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' |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| |
|
| |
# Archives containing C++ object files must be created using |
| |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| |
;; |
| |
cxx) |
| |
# Compaq C++ |
| |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
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' |
| |
|
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
;; |
| |
esac |
| |
;; |
| |
lynxos*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
m88k*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
mvs*) |
| |
case $cc_basename in |
| |
cxx) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
esac |
| |
;; |
| |
netbsd*) |
| |
# NetBSD uses g++ - do we need to do anything? |
| |
;; |
| |
osf3*) |
| |
case $cc_basename in |
| |
KCC) |
| |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| |
|
| |
# KCC will only create a shared library if the output file |
| |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| |
# to its proper name (with version) after linking. |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Archives containing C++ object files must be created using |
| |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| |
|
| |
;; |
| |
RCC) |
| |
# Rational C++ 2.4.1 |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
cxx) |
| |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
;; |
| |
*) |
| |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| |
|
| |
else |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
fi |
| |
;; |
| |
esac |
| |
;; |
| |
osf4* | osf5*) |
| |
case $cc_basename in |
| |
KCC) |
| |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| |
|
| |
# KCC will only create a shared library if the output file |
| |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| |
# to its proper name (with version) after linking. |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Archives containing C++ object files must be created using |
| |
# the KAI C++ compiler. |
| |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| |
;; |
| |
RCC) |
| |
# Rational C++ 2.4.1 |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
cxx) |
| |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
| |
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' |
| |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ |
| |
echo "-hidden">> $lib.exp~ |
| |
$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~ |
| |
$rm $lib.exp' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
;; |
| |
*) |
| |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_CXX=: |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| |
|
| |
else |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
fi |
| |
;; |
| |
esac |
| |
;; |
| |
psos*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
sco*) |
| |
archive_cmds_need_lc_CXX=no |
| |
case $cc_basename in |
| |
CC) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
esac |
| |
;; |
| |
sunos4*) |
| |
case $cc_basename in |
| |
CC) |
| |
# Sun C++ 4.x |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
lcc) |
| |
# Lucid |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
esac |
| |
;; |
| |
solaris*) |
| |
case $cc_basename in |
| |
CC) |
| |
# Sun C++ 4.2, 5.x and Centerline C++ |
| |
no_undefined_flag_CXX=' -zdefs' |
| |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$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' |
| |
|
| |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| |
hardcode_shlibpath_var_CXX=no |
| |
case $host_os in |
| |
solaris2.0-5 | solaris2.0-5.*) ;; |
| |
*) |
| |
# The C++ compiler is used as linker so we must use $wl |
| |
# flag to pass the commands to the underlying system |
| |
# linker. |
| |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| |
;; |
| |
esac |
| |
link_all_deplibs_CXX=yes |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
# |
| |
# There doesn't appear to be a way to prevent this compiler from |
| |
# explicitly linking system object files so we need to strip them |
| |
# from the output so that they don't get included in the library |
| |
# dependencies. |
| |
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' |
| |
|
| |
# Archives containing C++ object files must be created using |
| |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| |
# necessary to make sure instantiated templates are included |
| |
# in the archive. |
| |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| |
;; |
| |
gcx) |
| |
# Green Hills C++ Compiler |
| |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| |
|
| |
# The C++ compiler must be used to create the archive. |
| |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| |
;; |
| |
*) |
| |
# GNU C++ compiler with Solaris linker |
| |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| |
if $CC --version | egrep -v '^2\.7' > /dev/null; then |
| |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
| |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
| |
else |
| |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
| |
# platform. |
| |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
| |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
| |
|
| |
# Commands to make compiler produce verbose output that lists |
| |
# what "hidden" libraries, object files and flags are used when |
| |
# linking a shared library. |
| |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
| |
fi |
| |
|
| |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| |
fi |
| |
;; |
| |
esac |
| |
;; |
| |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| |
archive_cmds_need_lc_CXX=no |
| |
;; |
| |
tandem*) |
| |
case $cc_basename in |
| |
NCC) |
| |
# NonStop-UX NCC 3.20 |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
esac |
| |
;; |
| |
vxworks*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| |
*) |
| |
# FIXME: insert proper C++ library support |
| |
ld_shlibs_CXX=no |
| |
;; |
| esac |
esac |
| |
echo "$as_me:11110: result: $ld_shlibs_CXX" >&5 |
| |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
| |
|
| if result=`${config_shell} ${configsub} ${host_alias}` ; then |
# Figure out "hidden" C++ library dependencies from verbose |
| true |
# compiler output whening linking a shared library. |
| |
cat > conftest.$ac_ext <<EOF |
| |
class Foo |
| |
{ |
| |
public: |
| |
Foo (void) { a = 0; } |
| |
private: |
| |
int a; |
| |
}; |
| |
EOF |
| |
|
| |
if { (eval echo "$as_me:11126: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:11129: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
# Parse the compiler output and extract the necessary |
| |
# objects, libraries and library flags. |
| |
|
| |
# Sentinel used to keep track of whether or not we are before |
| |
# the conftest object file. |
| |
pre_test_object_deps_done=no |
| |
|
| |
# The `*' in the case matches for architectures that use `case' in |
| |
# $output_verbose_cmd can trigger glob expansion during the loop |
| |
# eval without this substitution. |
| |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| |
|
| |
for p in `eval $output_verbose_link_cmd`; do |
| |
case $p in |
| |
|
| |
-L* | -R* | -l*) |
| |
# Some compilers place space between "-{L,R}" and the path. |
| |
# Remove the space. |
| |
if test $p = "-L" \ |
| |
|| test $p = "-R"; then |
| |
prev=$p |
| |
continue |
| |
else |
| |
prev= |
| |
fi |
| |
|
| |
if test "$pre_test_object_deps_done" = no; then |
| |
case $p in |
| |
-L* | -R*) |
| |
# Internal compiler library paths should come after those |
| |
# provided the user. The postdeps already come after the |
| |
# user supplied libs so there is no need to process them. |
| |
if test -z "$compiler_lib_search_path_CXX"; then |
| |
compiler_lib_search_path_CXX="${prev}${p}" |
| |
else |
| |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| |
fi |
| |
;; |
| |
# The "-l" case would never come before the object being |
| |
# linked, so don't bother handling this case. |
| |
esac |
| |
else |
| |
if test -z "$postdeps_CXX"; then |
| |
postdeps_CXX="${prev}${p}" |
| |
else |
| |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| |
fi |
| |
fi |
| |
;; |
| |
|
| |
*.$objext) |
| |
# This assumes that the test object file only shows up |
| |
# once in the compiler output. |
| |
if test "$p" = "conftest.$objext"; then |
| |
pre_test_object_deps_done=yes |
| |
continue |
| |
fi |
| |
|
| |
if test "$pre_test_object_deps_done" = no; then |
| |
if test -z "$predep_objects_CXX"; then |
| |
predep_objects_CXX="$p" |
| |
else |
| |
predep_objects_CXX="$predep_objects_CXX $p" |
| |
fi |
| |
else |
| |
if test -z "$postdep_objects_CXX"; then |
| |
postdep_objects_CXX="$p" |
| |
else |
| |
postdep_objects_CXX="$postdep_objects_CXX $p" |
| |
fi |
| |
fi |
| |
;; |
| |
|
| |
*) ;; # Ignore the rest. |
| |
|
| |
esac |
| |
done |
| |
|
| |
# Clean up. |
| |
rm -f a.out |
| else |
else |
| echo "Unrecognized host system name ${host_alias}." 1>&2 |
echo "libtool.m4: error: problem compiling C++ test program" |
| exit 1 |
|
| fi |
fi |
| host_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
|
| host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
|
| host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
|
| host=${host_cpu}-${host_vendor}-${host_os} |
|
| |
|
| . ${tmpfile}.hst |
$rm -f confest.$objext |
| |
|
| if result=`${config_shell} ${configsub} ${target_alias}` ; then |
case " $postdeps_CXX " in |
| true |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| |
*) archive_cmds_need_lc_CXX=yes ;; |
| |
esac |
| |
|
| |
GCC_CXX="$GXX" |
| |
LD_CXX="$LD" |
| |
|
| |
lt_prog_compiler_wl_CXX= |
| |
lt_prog_compiler_pic_CXX= |
| |
lt_prog_compiler_static_CXX= |
| |
|
| |
echo "$as_me:11229: checking for $compiler option to produce PIC" >&5 |
| |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| |
|
| |
# C++ specific cases for pic, static, wl, etc. |
| |
if test "$GXX" = yes; then |
| |
lt_prog_compiler_wl_CXX='-Wl,' |
| |
lt_prog_compiler_static_CXX='-static' |
| |
|
| |
case $host_os in |
| |
aix*) |
| |
# All AIX code is PIC. |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static_CXX='-Bstatic' |
| |
fi |
| |
;; |
| |
amigaos*) |
| |
# FIXME: we need at least 68020 code to build shared libraries, but |
| |
# adding the `-m68020' flag to GCC prevents building anything better, |
| |
# like `-m68040'. |
| |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| |
;; |
| |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| |
# PIC is the default for these OSes. |
| |
;; |
| |
cygwin* | mingw* | os2*) |
| |
# This hack is so that the source file can tell whether it is being |
| |
# built for inclusion in a dll (and should export symbols for example). |
| |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| |
;; |
| |
darwin* | rhapsody*) |
| |
# PIC is the default on this platform |
| |
# Common symbols not allowed in MH_DYLIB files |
| |
lt_prog_compiler_pic_CXX='-fno-common' |
| |
;; |
| |
*djgpp*) |
| |
# DJGPP does not support shared libraries at all |
| |
lt_prog_compiler_pic_CXX= |
| |
;; |
| |
sysv4*MP*) |
| |
if test -d /usr/nec; then |
| |
lt_prog_compiler_pic_CXX=-Kconform_pic |
| |
fi |
| |
;; |
| |
hpux*) |
| |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic_CXX='-fPIC' |
| |
fi |
| |
;; |
| |
*) |
| |
lt_prog_compiler_pic_CXX='-fPIC' |
| |
;; |
| |
esac |
| |
else |
| |
case $host_os in |
| |
aix4* | aix5*) |
| |
# All AIX code is PIC. |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static_CXX='-Bstatic' |
| |
else |
| |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| |
fi |
| |
;; |
| |
chorus*) |
| |
case $cc_basename in |
| |
cxch68) |
| |
# Green Hills C++ Compiler |
| |
# _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" |
| |
;; |
| |
esac |
| |
;; |
| |
dgux*) |
| |
case $cc_basename in |
| |
ec++) |
| |
lt_prog_compiler_pic_CXX='-KPIC' |
| |
;; |
| |
ghcx) |
| |
# Green Hills C++ Compiler |
| |
lt_prog_compiler_pic_CXX='-pic' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
freebsd*) |
| |
# FreeBSD uses GNU C++ |
| |
;; |
| |
hpux9* | hpux10* | hpux11*) |
| |
case $cc_basename in |
| |
CC) |
| |
lt_prog_compiler_wl_CXX='-Wl,' |
| |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic_CXX='+Z' |
| |
fi |
| |
;; |
| |
aCC) |
| |
lt_prog_compiler_wl_CXX='-Wl,' |
| |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic_CXX='+Z' |
| |
fi |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
irix5* | irix6*) |
| |
case $cc_basename in |
| |
CC) |
| |
lt_prog_compiler_wl_CXX='-Wl,' |
| |
lt_prog_compiler_static_CXX='-non_shared' |
| |
# CC pic flag -KPIC is the default. |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
linux*) |
| |
case $cc_basename in |
| |
KCC) |
| |
# KAI C++ Compiler |
| |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| |
lt_prog_compiler_pic_CXX='-fPIC' |
| |
;; |
| |
cxx) |
| |
# Compaq C++ |
| |
# Make sure the PIC flag is empty. It appears that all Alpha |
| |
# Linux and Compaq Tru64 Unix objects are PIC. |
| |
lt_prog_compiler_pic_CXX= |
| |
lt_prog_compiler_static_CXX='-non_shared' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
lynxos*) |
| |
;; |
| |
m88k*) |
| |
;; |
| |
mvs*) |
| |
case $cc_basename in |
| |
cxx) |
| |
lt_prog_compiler_pic_CXX='-W c,exportall' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
netbsd*) |
| |
;; |
| |
osf3* | osf4* | osf5*) |
| |
case $cc_basename in |
| |
KCC) |
| |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| |
;; |
| |
RCC) |
| |
# Rational C++ 2.4.1 |
| |
lt_prog_compiler_pic_CXX='-pic' |
| |
;; |
| |
cxx) |
| |
# Digital/Compaq C++ |
| |
lt_prog_compiler_wl_CXX='-Wl,' |
| |
# Make sure the PIC flag is empty. It appears that all Alpha |
| |
# Linux and Compaq Tru64 Unix objects are PIC. |
| |
lt_prog_compiler_pic_CXX= |
| |
lt_prog_compiler_static_CXX='-non_shared' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
psos*) |
| |
;; |
| |
sco*) |
| |
case $cc_basename in |
| |
CC) |
| |
lt_prog_compiler_pic_CXX='-fPIC' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
solaris*) |
| |
case $cc_basename in |
| |
CC) |
| |
# Sun C++ 4.2, 5.x and Centerline C++ |
| |
lt_prog_compiler_pic_CXX='-KPIC' |
| |
lt_prog_compiler_static_CXX='-Bstatic' |
| |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
| |
;; |
| |
gcx) |
| |
# Green Hills C++ Compiler |
| |
lt_prog_compiler_pic_CXX='-PIC' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
sunos4*) |
| |
case $cc_basename in |
| |
CC) |
| |
# Sun C++ 4.x |
| |
lt_prog_compiler_pic_CXX='-pic' |
| |
lt_prog_compiler_static_CXX='-Bstatic' |
| |
;; |
| |
lcc) |
| |
# Lucid |
| |
lt_prog_compiler_pic_CXX='-pic' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
tandem*) |
| |
case $cc_basename in |
| |
NCC) |
| |
# NonStop-UX NCC 3.20 |
| |
lt_prog_compiler_pic_CXX='-KPIC' |
| |
;; |
| |
*) |
| |
;; |
| |
esac |
| |
;; |
| |
unixware*) |
| |
;; |
| |
vxworks*) |
| |
;; |
| |
*) |
| |
lt_prog_compiler_can_build_shared_CXX=no |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "$as_me:11465: result: $lt_prog_compiler_pic_CXX" >&5 |
| |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| |
|
| |
# |
| |
# Check to make sure the PIC flag actually works. |
| |
# |
| |
if test -n "$lt_prog_compiler_pic_CXX"; then |
| |
echo "$as_me:11472: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
else |
| echo "Unrecognized target system name ${target_alias}." 1>&2 |
lt_prog_compiler_pic_works_CXX=no |
| exit 1 |
ac_outfile=conftest.$ac_objext |
| |
save_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings mentioning the option |
| |
cat conftest.err 1>&5 |
| |
lt_prog_compiler_pic_works_CXX=yes |
| |
for lt_i in $lt_prog_compiler_pic_CXX -DPIC; do |
| |
if grep -- $lt_i conftest.err >/dev/null; then |
| |
lt_prog_compiler_pic_works_CXX=no |
| |
fi |
| |
done |
| |
fi |
| |
$rm conftest* |
| |
CFLAGS="$save_CFLAGS" |
| |
|
| fi |
fi |
| target_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
echo "$as_me:11497: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
|
| target=${target_cpu}-${target_vendor}-${target_os} |
|
| |
|
| . ${tmpfile}.tgt |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| |
case $lt_prog_compiler_pic_CXX in |
| |
"" | " "*) ;; |
| |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| |
esac |
| |
else |
| |
lt_prog_compiler_pic_CXX= |
| |
lt_prog_compiler_can_build_shared_CXX=no |
| |
fi |
| |
|
| # Find the source files, if location was not specified. |
fi |
| case "${srcdir}" in |
case "$host_os" in |
| "") |
# For platforms which do not support PIC, -DPIC is meaningless: |
| srcdirdefaulted=1 |
*djgpp*) |
| srcdir=. |
lt_prog_compiler_pic_CXX= |
| if [ ! -r ${srctrigger} ] ; then |
;; |
| srcdir=.. |
*) |
| fi |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| ;; |
;; |
| *) ;; |
|
| esac |
esac |
| |
|
| if [ ! -r ${srcdir}/${srctrigger} ] ; then |
echo "$as_me:11521: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| case "${srcdirdefaulted}" in |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| "") echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`pwd`}/${srcdir}" 1>&2 ;; |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| *) echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`pwd`}/. or ${PWD=`pwd`}/.." 1>&2 ;; |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| esac |
else |
| |
lt_cv_prog_compiler_c_o_CXX=no |
| |
$rm -r conftest 2>/dev/null |
| |
mkdir conftest |
| |
cd conftest |
| |
mkdir out |
| |
save_CXXFLAGS="$CXXFLAGS" |
| |
CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
|
| echo '***' \(At least ${srctrigger} is missing.\) 1>&2 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| exit 1 |
# that will create temporary files in the current directory regardless of |
| |
# the output directory. Thus, making CWD read-only will cause this test |
| |
# to fail, enabling locking or at least warning the user not to do parallel |
| |
# builds. |
| |
chmod -w . |
| |
|
| |
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| |
then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings |
| |
if test -s out/conftest.err; then |
| |
# Append any errors to the config.log. |
| |
cat out/conftest.err 1>&5 |
| |
else |
| |
lt_cv_prog_compiler_c_o_CXX=yes |
| |
fi |
| |
fi |
| |
CXXFLAGS="$save_CXXFLAGS" |
| |
chmod u+w . |
| |
$rm conftest* out/* |
| |
rmdir out |
| |
cd .. |
| |
rmdir conftest |
| |
$rm conftest* |
| |
|
| fi |
fi |
| |
echo "$as_me:11562: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| |
|
| # Some systems (e.g., one of the i386-aix systems the gas testers are |
hard_links="nottested" |
| # using) don't handle "\$" correctly, so don't use it here. |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| tooldir='$(exec_prefix)'/${target_alias} |
# do not overwrite the value of need_locks provided by the user |
| |
echo "$as_me:11568: checking if we can lock with hard links" >&5 |
| |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| |
hard_links=yes |
| |
$rm conftest* |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
touch conftest.a |
| |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
echo "$as_me:11576: result: $hard_links" >&5 |
| |
echo "${ECHO_T}$hard_links" >&6 |
| |
if test "$hard_links" = no; then |
| |
{ echo "$as_me:11579: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| |
need_locks=warn |
| |
fi |
| |
else |
| |
need_locks=no |
| |
fi |
| |
|
| if [ "${host_alias}" != "${target_alias}" ] ; then |
echo "$as_me:11587: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| if [ "${program_prefixoption}" = "" ] ; then |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| if [ "${program_suffixoption}" = "" ] ; then |
|
| if [ "${program_transform_nameoption}" = "" ] ; then |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| program_prefix=${target_alias}- ; |
case $host_os in |
| fi |
aix4* | aix5*) |
| fi |
# If we're using GNU nm, then we don't want the "-C" option. |
| |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| |
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then |
| |
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' |
| |
else |
| |
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' |
| fi |
fi |
| |
;; |
| |
cygwin* | mingw* | pw32*) |
| |
export_symbols_cmds_CXX="$ltdll_cmds" |
| |
;; |
| |
*) |
| |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| |
;; |
| |
esac |
| |
|
| |
echo "$as_me:11609: result: $ld_shlibs_CXX" >&5 |
| |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
| |
|
| |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| |
if test "$GCC" = yes; then |
| |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| fi |
fi |
| |
|
| # Merge program_prefix and program_suffix onto program_transform_name. |
# |
| # (program_suffix used to use $, but it's hard to preserve $ through both |
# Do we need to explicitly link libc? |
| # make and sh.) |
# |
| if [ "${program_suffix}" != "" ] ; then |
archive_cmds_need_lc_CXX=yes |
| program_transform_name="-e s,\\\\(.*\\\\),\\\\1${program_suffix}, ${program_transform_name}" |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| |
case $archive_cmds_CXX in |
| |
*'~'*) |
| |
# FIXME: we may have to deal with multi-command sequences. |
| |
;; |
| |
'$CC '*) |
| |
# Test whether the compiler implicitly links with -lc since on some |
| |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| |
# to ld, don't add -lc before -lgcc. |
| |
echo "$as_me:11631: checking whether -lc should be explicitly linked in" >&5 |
| |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| |
$rm conftest* |
| |
echo 'static int dummy;' > conftest.$ac_ext |
| |
|
| |
if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:11639: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } 2>conftest.err; then |
| |
soname=conftest |
| |
lib=conftest |
| |
libobjs=conftest.$ac_objext |
| |
deplibs= |
| |
wl=$lt_prog_compiler_wl_CXX |
| |
compiler_flags=-v |
| |
linker_flags=-v |
| |
verstring= |
| |
output_objdir=. |
| |
libname=conftest |
| |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| |
allow_undefined_flag_CXX= |
| |
if { (eval echo "$as_me:11653: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:11656: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
then |
| |
archive_cmds_need_lc_CXX=no |
| |
else |
| |
archive_cmds_need_lc_CXX=yes |
| |
fi |
| |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| |
else |
| |
cat conftest.err 1>&5 |
| |
fi |
| |
$rm conftest* |
| |
echo "$as_me:11668: result: $archive_cmds_need_lc_CXX" >&5 |
| |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| |
;; |
| |
esac |
| fi |
fi |
| |
|
| if [ "${program_prefix}" != "" ] ; then |
echo "$as_me:11674: checking how to hardcode library paths into programs" >&5 |
| program_transform_name="-e s,^,${program_prefix}, ${program_transform_name}" |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| |
hardcode_action_CXX= |
| |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| |
test -n "$runpath_var CXX"; then |
| |
|
| |
# We can hardcode non-existant directories. |
| |
if test "$hardcode_direct_CXX" != no && |
| |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| |
# have to relink, otherwise we might link with an installed library |
| |
# when we should be linking with a yet-to-be-installed one |
| |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| |
test "$hardcode_minus_L_CXX" != no; then |
| |
# Linking always hardcodes the temporary library directory. |
| |
hardcode_action_CXX=relink |
| |
else |
| |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| |
hardcode_action_CXX=immediate |
| |
fi |
| |
else |
| |
# We cannot hardcode anything, or else we can only hardcode existing |
| |
# directories. |
| |
hardcode_action_CXX=unsupported |
| fi |
fi |
| |
echo "$as_me:11698: result: $hardcode_action_CXX" >&5 |
| |
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| |
|
| # If CC and CXX are not set in the environment, and the Makefile |
if test "$hardcode_action_CXX" = relink; then |
| # exists, try to extract them from it. This is to handle running |
# Fast installation is not supported |
| # ./config.status by hand. |
enable_fast_install=no |
| if [ -z "${CC}" -a -r Makefile ]; then |
elif test "$shlibpath_overrides_runpath" = yes || |
| sed -n -e ':loop |
test "$enable_shared" = no; then |
| /\\$/ N |
# Fast installation is not necessary |
| /\\$/ b loop |
enable_fast_install=needless |
| s/\\\n//g |
|
| /^CC[ ]*=/ s/CC[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc |
|
| CC=`tail -1 Makefile.cc` |
|
| rm -f Makefile.cc |
|
| fi |
fi |
| |
|
| if [ -z "${CXX}" -a -r Makefile ]; then |
striplib= |
| sed -n -e ':loop |
old_striplib= |
| /\\$/ N |
echo "$as_me:11712: checking whether stripping libraries is possible" >&5 |
| /\\$/ b loop |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| s/\\\n//g |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| /^CXX[ ]*=/ s/CXX[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| CXX=`tail -1 Makefile.cc` |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| rm -f Makefile.cc |
echo "$as_me:11717: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
else |
| |
echo "$as_me:11720: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| fi |
fi |
| |
|
| if [ "${build}" != "${host}" ]; then |
echo "$as_me:11724: checking dynamic linker characteristics" >&5 |
| # If we are doing a Canadian Cross, in which the host and build systems |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| # are not the same, we set reasonable default values for the tools. |
library_names_spec= |
| |
libname_spec='lib$name' |
| |
soname_spec= |
| |
postinstall_cmds= |
| |
postuninstall_cmds= |
| |
finish_cmds= |
| |
finish_eval= |
| |
shlibpath_var= |
| |
shlibpath_overrides_runpath=unknown |
| |
version_type=none |
| |
dynamic_linker="$host_os ld.so" |
| |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| |
need_lib_prefix=unknown |
| |
hardcode_into_libs=no |
| |
|
| tools="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD" |
# when you set need_version to no, make sure it does not cause -set_version |
| tools="${tools} CC_FOR_TARGET CXX_FOR_TARGET" |
# flags to be left without arguments |
| tools="${tools} DLLTOOL DLLTOOL_FOR_TARGET HOST_PREFIX" |
need_version=unknown |
| tools="${tools} HOST_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM" |
|
| tools="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET" |
|
| |
|
| for var in ${tools}; do |
case $host_os in |
| if [ -z "`eval 'echo $'"${var}"`" -a -r Makefile ]; then |
aix3*) |
| sed -n -e ':loop |
version_type=linux |
| /\\$/ N |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| /\\$/ b loop |
shlibpath_var=LIBPATH |
| s/\\\n//g |
|
| /^'"${var}"'[ ]*=/ s/'"${var}"'[ ]*=[ ]*\(.*\)/\1/p' \ |
# AIX 3 has no versioning support, so we append a major version to the name. |
| < Makefile > Makefile.v |
soname_spec='${libname}${release}.so$major' |
| t=`tail -1 Makefile.v` |
;; |
| if [ -n "${t}" ]; then |
|
| eval "${var}='${t}'" |
aix4* | aix5*) |
| |
version_type=linux |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 supports IA64 |
| |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
else |
| |
# With GCC up to 2.95.x, collect2 would create an import file |
| |
# for dependence libraries. The import file would start with |
| |
# the line `#! .'. This would cause the generated library to |
| |
# depend on `.', always an invalid library. This was fixed in |
| |
# development snapshots of GCC prior to 3.0. |
| |
case $host_os in |
| |
aix4 | aix4.[01] | aix4.[01].*) |
| |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| |
echo ' yes ' |
| |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| |
: |
| |
else |
| |
can_build_shared=no |
| fi |
fi |
| rm -f Makefile.v |
;; |
| |
esac |
| |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| |
# soname into executable. Probably we can add versioning support to |
| |
# collect2, so additional links can be useful in future. |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| |
# instead of lib<name>.a to let people know that these are not |
| |
# typical AIX shared libraries. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
else |
| |
# We preserve .a as extension for shared libraries through AIX4.2 |
| |
# and later when we are not doing run time linking. |
| |
library_names_spec='${libname}${release}.a $libname.a' |
| |
soname_spec='${libname}${release}.so$major' |
| fi |
fi |
| |
shlibpath_var=LIBPATH |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
library_names_spec='$libname.ixlibrary $libname.a' |
| |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| |
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' |
| |
;; |
| |
|
| |
beos*) |
| |
library_names_spec='${libname}.so' |
| |
dynamic_linker="$host_os ld.so" |
| |
shlibpath_var=LIBRARY_PATH |
| |
;; |
| |
|
| |
bsdi4*) |
| |
version_type=linux |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| |
# the default ld.so.conf also contains /usr/contrib/lib and |
| |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| |
# libtool to hard-code these into programs |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
version_type=windows |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
case $GCC,$host_os in |
| |
yes,cygwin*) |
| |
library_names_spec='$libname.dll.a' |
| |
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| |
dldir=$destdir/`dirname \$dlpath`~ |
| |
test -d \$dldir || mkdir -p \$dldir~ |
| |
$install_prog .libs/$dlname \$dldir/$dlname' |
| |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| |
dlpath=$dir/\$dldll~ |
| |
$rm \$dlpath' |
| |
;; |
| |
yes,mingw*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` |
| |
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then |
| |
# It is most probably a Windows format PATH printed by |
| |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| |
# path with ; separators, and with drive letters. We can handle the |
| |
# drive letters (cygwin fileutils understands them), so leave them, |
| |
# especially as we might pass files found there to a mingw objdump, |
| |
# which wouldn't understand a cygwinified path. Ahh. |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
| |
else |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
| |
fi |
| |
;; |
| |
yes,pw32*) |
| |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| |
;; |
| |
*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| |
;; |
| |
esac |
| |
dynamic_linker='Win32 ld.exe' |
| |
# FIXME: first we should search . and the directory the executable is in |
| |
shlibpath_var=PATH |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
dynamic_linker="$host_os dyld" |
| |
version_type=darwin |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
# FIXME: Relying on posixy $() will cause problems for |
| |
# cross-compilation, but unfortunately the echo tests do not |
| |
# yet detect zsh echo's removal of \ escapes. |
| |
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)' |
| |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| |
shlibpath_overrides_runpath=yes |
| |
shlibpath_var=DYLD_LIBRARY_PATH |
| |
;; |
| |
|
| |
dgux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
freebsd1*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
freebsd*) |
| |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| |
version_type=freebsd-$objformat |
| |
case $version_type in |
| |
freebsd-elf*) |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
;; |
| |
freebsd-*) |
| |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| |
need_version=yes |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_os in |
| |
freebsd2*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
freebsd3.01* | freebsdelf3.01*) |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
*) # from 3.2 on |
| |
shlibpath_overrides_runpath=no |
| |
hardcode_into_libs=yes |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
gnu*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| |
# link against other versions. |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_into_libs=yes |
| |
dynamic_linker="$host_os dld.so" |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
if test "X$HPUX_IA64_MODE" = X32; then |
| |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| |
else |
| |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| |
fi |
| |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| |
else |
| |
dynamic_linker="$host_os dld.sl" |
| |
shlibpath_var=SHLIB_PATH |
| |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| |
soname_spec='${libname}${release}.sl$major' |
| |
fi |
| |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| |
postinstall_cmds='chmod 555 $lib' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
version_type=irix |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| |
case $host_os in |
| |
irix5*) |
| |
libsuff= shlibsuff= |
| |
;; |
| |
*) |
| |
case $LD in # libtool.m4 will add one of these switches to LD |
| |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| |
*) libsuff= shlibsuff= libmagic=never-match;; |
| |
esac |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| |
;; |
| |
|
| |
# No shared lib support for Linux oldld, aout, or coff. |
| |
linux*oldld* | linux*aout* | linux*coff*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
# This must be Linux ELF. |
| |
linux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=no |
| |
# This implies no fast_install, which is unacceptable. |
| |
# Some rework will be needed to allow for fast_install |
| |
# before this can be enabled. |
| |
hardcode_into_libs=yes |
| |
|
| |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| |
# powerpc, because MkLinux only supported shared libraries with the |
| |
# GNU dynamic linker. Since this was broken with cross compilers, |
| |
# most powerpc-linux boxes support dynamic linking these days and |
| |
# people can always --disable-shared, the test was removed, and we |
| |
# assume the GNU/Linux dynamic linker is in use. |
| |
dynamic_linker='GNU/Linux ld.so' |
| |
;; |
| |
|
| |
netbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
dynamic_linker='NetBSD (a.out) ld.so' |
| |
else |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
dynamic_linker='NetBSD ld.elf_so' |
| |
fi |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
newsos6) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
nto-qnx) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
openbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
case $host_os in |
| |
openbsd2.[89] | openbsd2.[89].*) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
esac |
| |
else |
| |
shlibpath_overrides_runpath=yes |
| |
fi |
| |
;; |
| |
|
| |
os2*) |
| |
libname_spec='$name' |
| |
need_lib_prefix=no |
| |
library_names_spec='$libname.dll $libname.a' |
| |
dynamic_linker='OS/2 ld.exe' |
| |
shlibpath_var=LIBPATH |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
version_type=osf |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
version_type=osf |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
solaris*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
# ldd complains unless libraries are executable |
| |
postinstall_cmds='chmod +x $lib' |
| |
;; |
| |
|
| |
sunos4*) |
| |
version_type=sunos |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
if test "$with_gnu_ld" = yes; then |
| |
need_lib_prefix=no |
| |
fi |
| |
need_version=yes |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_vendor in |
| |
sni) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
motorola) |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec ;then |
| |
version_type=linux |
| |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| |
soname_spec='$libname.so.$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
fi |
| |
;; |
| |
|
| |
uts4*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
*) |
| |
dynamic_linker=no |
| |
;; |
| |
esac |
| |
echo "$as_me:12163: result: $dynamic_linker" >&5 |
| |
echo "${ECHO_T}$dynamic_linker" >&6 |
| |
test "$dynamic_linker" = no && can_build_shared=no |
| |
|
| |
if test "x$enable_dlopen" != xyes; then |
| |
enable_dlopen=unknown |
| |
enable_dlopen_self=unknown |
| |
enable_dlopen_self_static=unknown |
| |
else |
| |
lt_cv_dlopen=no |
| |
lt_cv_dlopen_libs= |
| |
|
| |
case $host_os in |
| |
beos*) |
| |
lt_cv_dlopen="load_add_on" |
| |
lt_cv_dlopen_libs= |
| |
lt_cv_dlopen_self=yes |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
lt_cv_dlopen="LoadLibrary" |
| |
lt_cv_dlopen_libs= |
| |
;; |
| |
|
| |
*) |
| |
echo "$as_me:12188: checking for shl_load" >&5 |
| |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12194 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char shl_load (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| |
choke me |
| |
#else |
| |
f = shl_load; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12225: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12228: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12231: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12234: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_shl_load=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:12244: result: $ac_cv_func_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| |
if test $ac_cv_func_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" |
| |
else |
| |
echo "$as_me:12249: checking for shl_load in -ldld" >&5 |
| |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12257 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
int |
| |
main () |
| |
{ |
| |
shl_load (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12276: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12279: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12282: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12285: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_shl_load=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:12296: result: $ac_cv_lib_dld_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| |
if test $ac_cv_lib_dld_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| |
else |
| |
echo "$as_me:12301: checking for dlopen" >&5 |
| |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12307 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char dlopen (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| |
choke me |
| |
#else |
| |
f = dlopen; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12338: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12341: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12344: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12347: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:12357: result: $ac_cv_func_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| |
if test $ac_cv_func_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" |
| |
else |
| |
echo "$as_me:12362: checking for dlopen in -ldl" >&5 |
| |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldl $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12370 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12389: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12392: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12395: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12398: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dl_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dl_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:12409: result: $ac_cv_lib_dl_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| |
if test $ac_cv_lib_dl_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| |
else |
| |
echo "$as_me:12414: checking for dlopen in -lsvld" >&5 |
| |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lsvld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12422 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12441: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12444: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12447: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12450: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_svld_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_svld_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:12461: result: $ac_cv_lib_svld_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| |
if test $ac_cv_lib_svld_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| |
else |
| |
echo "$as_me:12466: checking for dld_link in -ldld" >&5 |
| |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 12474 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dld_link (); |
| |
int |
| |
main () |
| |
{ |
| |
dld_link (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:12493: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12496: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:12499: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12502: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_dld_link=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_dld_link=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:12513: result: $ac_cv_lib_dld_dld_link" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| |
if test $ac_cv_lib_dld_dld_link = yes; then |
| |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
;; |
| |
esac |
| |
|
| |
if test "x$lt_cv_dlopen" != xno; then |
| |
enable_dlopen=yes |
| |
else |
| |
enable_dlopen=no |
| |
fi |
| |
|
| |
case $lt_cv_dlopen in |
| |
dlopen) |
| |
save_CPPFLAGS="$CPPFLAGS" |
| |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| |
|
| |
save_LDFLAGS="$LDFLAGS" |
| |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| |
|
| |
save_LIBS="$LIBS" |
| |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| |
|
| |
echo "$as_me:12549: checking whether a program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 12560 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:12621: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12624: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| |
fi |
| |
echo "$as_me:12641: result: $lt_cv_dlopen_self" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| |
|
| |
if test "x$lt_cv_dlopen_self" = xyes; then |
| |
LDFLAGS="$LDFLAGS $link_static_flag" |
| |
echo "$as_me:12646: checking whether a statically linked program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self_static=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 12657 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:12718: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:12721: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self_static=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| |
fi |
| |
echo "$as_me:12738: result: $lt_cv_dlopen_self_static" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| |
fi |
| |
|
| |
CPPFLAGS="$save_CPPFLAGS" |
| |
LDFLAGS="$save_LDFLAGS" |
| |
LIBS="$save_LIBS" |
| |
;; |
| |
esac |
| |
|
| |
case $lt_cv_dlopen_self in |
| |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| |
*) enable_dlopen_self=unknown ;; |
| |
esac |
| |
|
| |
case $lt_cv_dlopen_self_static in |
| |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| |
*) enable_dlopen_self_static=unknown ;; |
| |
esac |
| |
fi |
| |
|
| |
# The else clause should only fire when bootstrapping the |
| |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| |
# with your package, and you will get complaints that there are |
| |
# no rules to generate ltmain.sh. |
| |
if test -f "$ltmain"; then |
| |
# Now quote all the things that may contain metacharacters while being |
| |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| |
# variables and quote the copies for generation of the libtool script. |
| |
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \ |
| |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| |
lt_cv_sys_global_symbol_to_c_name_address \ |
| |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| |
old_postinstall_cmds old_postuninstall_cmds \ |
| |
HOST_CC \ |
| |
compiler_CXX \ |
| |
CC_CXX \ |
| |
LD_CXX \ |
| |
lt_prog_compiler_wl_CXX \ |
| |
lt_prog_compiler_pic_CXX \ |
| |
lt_prog_compiler_static_CXX \ |
| |
lt_prog_compiler_no_builtin_flag_CXX \ |
| |
export_dynamic_flag_spec_CXX \ |
| |
thread_safe_flag_spec_CXX \ |
| |
whole_archive_flag_spec_CXX \ |
| |
old_archive_cmds_CXX \ |
| |
old_archive_from_new_cmds_CXX \ |
| |
predep_objects_CXX \ |
| |
postdep_objects_CXX \ |
| |
predeps_CXX \ |
| |
postdeps_CXX \ |
| |
compiler_lib_search_path_CXX \ |
| |
archive_cmds_CXX \ |
| |
archive_expsym_cmds_CXX \ |
| |
postinstall_cmds_CXX \ |
| |
postuninstall_cmds_CXX \ |
| |
old_archive_from_expsyms_cmds_CXX \ |
| |
allow_undefined_flag_CXX \ |
| |
no_undefined_flag_CXX \ |
| |
export_symbols_cmds_CXX \ |
| |
hardcode_libdir_flag_spec_CXX \ |
| |
hardcode_libdir_separator_CXX \ |
| |
lt_cv_prog_compiler_c_o_CXX \ |
| |
exclude_expsyms_CXX \ |
| |
include_expsyms_CXX; do |
| |
|
| |
case $var in |
| |
old_archive_cmds_CXX | \ |
| |
old_archive_from_new_cmds_CXX | \ |
| |
archive_cmds_CXX | \ |
| |
archive_expsym_cmds_CXX | \ |
| |
old_archive_from_expsyms_cmds_CXX | \ |
| |
export_symbols_cmds_CXX | \ |
| |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| |
postinstall_cmds | postuninstall_cmds | \ |
| |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| |
# Double-quote double-evaled strings. |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| |
;; |
| |
*) |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| |
;; |
| |
esac |
| done |
done |
| |
|
| AR=${AR-${host_alias}-ar} |
case $lt_echo in |
| AR_FOR_TARGET=${AR_FOR_TARGET-${target_alias}-ar} |
*'\$0 --fallback-echo"') |
| AS=${AS-${host_alias}-as} |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| AS_FOR_TARGET=${AS_FOR_TARGET-${target_alias}-as} |
;; |
| CC=${CC-${host_alias}-gcc} |
esac |
| CXX=${CXX-${host_alias}-gcc} |
|
| CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
|
| CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc} |
|
| CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-gcc} |
|
| DLLTOOL=${DLLTOOL-${host_alias}-dlltool} |
|
| DLLTOOL_FOR_TARGET=${DLLTOOL_FOR_TARGET-${target_alias}-dlltool} |
|
| HOST_PREFIX=${build_alias}- |
|
| HOST_PREFIX_1=${build_alias}- |
|
| LD=${LD-${host_alias}-ld} |
|
| LD_FOR_TARGET=${LD_FOR_TARGET-${target_alias}-ld} |
|
| MAKEINFO=${MAKEINFO-makeinfo} |
|
| NM=${NM-${host_alias}-nm} |
|
| NM_FOR_TARGET=${NM_FOR_TARGET-${target_alias}-nm} |
|
| RANLIB=${RANLIB-${host_alias}-ranlib} |
|
| RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET-${target_alias}-ranlib} |
|
| |
|
| if [ -z "${BISON}" ]; then |
cfgfile="$ofile" |
| IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" |
|
| for dir in $PATH; do |
cat <<__EOF__ >> "$cfgfile" |
| test -z "$dir" && dir=. |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| if test -f $dir/byacc; then |
|
| BISON=byacc |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| break |
|
| |
# Shell to use when invoking shell scripts. |
| |
SHELL=$lt_SHELL |
| |
|
| |
# Whether or not to build shared libraries. |
| |
build_libtool_libs=$enable_shared |
| |
|
| |
# Whether or not to build static libraries. |
| |
build_old_libs=$enable_static |
| |
|
| |
# Whether or not to add -lc for building shared libraries. |
| |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| |
|
| |
# Whether or not to optimize for fast installation. |
| |
fast_install=$enable_fast_install |
| |
|
| |
# The host system. |
| |
host_alias=$host_alias |
| |
host=$host |
| |
|
| |
# An echo program that does not interpret backslashes. |
| |
echo=$lt_echo |
| |
|
| |
# The archiver. |
| |
AR=$lt_AR |
| |
AR_FLAGS=$lt_AR_FLAGS |
| |
|
| |
# A C compiler. |
| |
LTCC=$lt_LTCC |
| |
|
| |
# A C compiler for the build system. |
| |
HOST_CC=$lt_HOST_CC |
| |
|
| |
# A language-specific compiler. |
| |
CC=$lt_compiler_CXX |
| |
|
| |
# Is the compiler the GNU C compiler? |
| |
with_gcc=$GCC_CXX |
| |
|
| |
# The linker used to build libraries. |
| |
LD=$lt_LD_CXX |
| |
|
| |
# Whether we need hard or soft links. |
| |
LN_S=$lt_LN_S |
| |
|
| |
# A BSD-compatible nm program. |
| |
NM=$lt_NM |
| |
|
| |
# A symbol stripping program |
| |
STRIP=$STRIP |
| |
|
| |
# Used to examine libraries when file_magic_cmd begins "file" |
| |
MAGIC_CMD=$MAGIC_CMD |
| |
|
| |
# Used on cygwin: DLL creation program. |
| |
DLLTOOL="$DLLTOOL" |
| |
|
| |
# Used on cygwin: object dumper. |
| |
OBJDUMP="$OBJDUMP" |
| |
|
| |
# Used on cygwin: assembler. |
| |
AS="$AS" |
| |
|
| |
# The name of the directory that contains temporary libtool files. |
| |
objdir=$objdir |
| |
|
| |
# How to create reloadable object files. |
| |
reload_flag=$lt_reload_flag |
| |
reload_cmds=$lt_reload_cmds |
| |
|
| |
# How to pass a linker flag through the compiler. |
| |
wl=$lt_lt_prog_compiler_wl_CXX |
| |
|
| |
# Object file suffix (normally "o"). |
| |
objext="$ac_objext" |
| |
|
| |
# Old archive suffix (normally "a"). |
| |
libext="$libext" |
| |
|
| |
# Executable file suffix (normally ""). |
| |
exeext="$exeext" |
| |
|
| |
# Additional compiler flags for building library objects. |
| |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
| |
pic_mode=$pic_mode |
| |
|
| |
# What is the maximum length of a command? |
| |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| |
|
| |
# Does compiler simultaneously support -c and -o options? |
| |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| |
|
| |
# Must we lock files when doing compilation ? |
| |
need_locks=$lt_need_locks |
| |
|
| |
# Do we need the lib prefix for modules? |
| |
need_lib_prefix=$need_lib_prefix |
| |
|
| |
# Do we need a version for libraries? |
| |
need_version=$need_version |
| |
|
| |
# Whether dlopen is supported. |
| |
dlopen_support=$enable_dlopen |
| |
|
| |
# Whether dlopen of programs is supported. |
| |
dlopen_self=$enable_dlopen_self |
| |
|
| |
# Whether dlopen of statically linked programs is supported. |
| |
dlopen_self_static=$enable_dlopen_self_static |
| |
|
| |
# Compiler flag to prevent dynamic linking. |
| |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
| |
|
| |
# Compiler flag to turn off builtin functions. |
| |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| |
|
| |
# Compiler flag to allow reflexive dlopens. |
| |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| |
|
| |
# Compiler flag to generate shared objects directly from archives. |
| |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| |
|
| |
# Compiler flag to generate thread-safe objects. |
| |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| |
|
| |
# Library versioning type. |
| |
version_type=$version_type |
| |
|
| |
# Format of library name prefix. |
| |
libname_spec=$lt_libname_spec |
| |
|
| |
# List of archive names. First name is the real one, the rest are links. |
| |
# The last name is the one that the linker finds with -lNAME. |
| |
library_names_spec=$lt_library_names_spec |
| |
|
| |
# The coded name of the library, if different from the real name. |
| |
soname_spec=$lt_soname_spec |
| |
|
| |
# Commands used to build and install an old-style archive. |
| |
RANLIB=$lt_RANLIB |
| |
old_archive_cmds=$lt_old_archive_cmds_CXX |
| |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| |
|
| |
# Create an old-style archive from a shared archive. |
| |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| |
|
| |
# Create a temporary old-style archive to link instead of a shared archive. |
| |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| |
|
| |
# Commands used to build and install a shared archive. |
| |
archive_cmds=$lt_archive_cmds_CXX |
| |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| |
postinstall_cmds=$lt_postinstall_cmds |
| |
postuninstall_cmds=$lt_postuninstall_cmds |
| |
|
| |
# Commands to strip libraries. |
| |
old_striplib=$lt_old_striplib |
| |
striplib=$lt_striplib |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predep_objects=$lt_predep_objects_CXX |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdep_objects=$lt_postdep_objects_CXX |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predeps=$lt_predeps_CXX |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdeps=$lt_postdeps_CXX |
| |
|
| |
# The library search path used internally by the compiler when linking |
| |
# a shared library. |
| |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| |
|
| |
# Method to check whether dependent libraries are shared objects. |
| |
deplibs_check_method=$lt_deplibs_check_method |
| |
|
| |
# Command to use when deplibs_check_method == file_magic. |
| |
file_magic_cmd=$lt_file_magic_cmd |
| |
|
| |
# Flag that allows shared libraries with undefined symbols to be built. |
| |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| |
|
| |
# Flag that forces no undefined symbols. |
| |
no_undefined_flag=$lt_no_undefined_flag_CXX |
| |
|
| |
# Commands used to finish a libtool library installation in a directory. |
| |
finish_cmds=$lt_finish_cmds |
| |
|
| |
# Same as above, but a single script fragment to be evaled but not shown. |
| |
finish_eval=$lt_finish_eval |
| |
|
| |
# Take the output of nm and produce a listing of raw symbols and C names. |
| |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| |
|
| |
# Transform the output of nm in a proper C declaration |
| |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| |
|
| |
# Transform the output of nm in a C name address pair |
| |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| |
|
| |
# This is the shared library runtime path variable. |
| |
runpath_var=$runpath_var |
| |
|
| |
# This is the shared library path variable. |
| |
shlibpath_var=$shlibpath_var |
| |
|
| |
# Is shlibpath searched before the hard-coded library search path? |
| |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| |
|
| |
# How to hardcode a shared library path into an executable. |
| |
hardcode_action=$hardcode_action_CXX |
| |
|
| |
# Whether we should hardcode library paths into libraries. |
| |
hardcode_into_libs=$hardcode_into_libs |
| |
|
| |
# Flag to hardcode \$libdir into a binary during linking. |
| |
# This must work even if \$libdir does not exist. |
| |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| |
|
| |
# Whether we need a single -rpath flag with a separated argument. |
| |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| |
|
| |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_direct=$hardcode_direct_CXX |
| |
|
| |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_minus_L=$hardcode_minus_L_CXX |
| |
|
| |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| |
# the resulting binary. |
| |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| |
|
| |
# Variables whose values should be saved in libtool wrapper scripts and |
| |
# restored at relink time. |
| |
variables_saved_for_relink="$variables_saved_for_relink" |
| |
|
| |
# Whether libtool must link a program against all its dependency libraries. |
| |
link_all_deplibs=$link_all_deplibs_CXX |
| |
|
| |
# Compile-time system search path for libraries |
| |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| |
|
| |
# Run-time system search path for libraries |
| |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| |
|
| |
# Fix the shell variable \$srcfile for the compiler. |
| |
fix_srcfile_path="$fix_srcfile_path_CXX" |
| |
|
| |
# Set to yes if exported symbols are required. |
| |
always_export_symbols=$always_export_symbols_CXX |
| |
|
| |
# The commands to list exported symbols. |
| |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| |
|
| |
# The commands to extract the exported symbol list from a shared archive. |
| |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| |
|
| |
# Symbols that should not be listed in the preloaded symbols. |
| |
exclude_expsyms=$lt_exclude_expsyms_CXX |
| |
|
| |
# Symbols that must always be exported. |
| |
include_expsyms=$lt_include_expsyms_CXX |
| |
|
| |
# ### END LIBTOOL TAG CONFIG: $tagname |
| |
|
| |
__EOF__ |
| |
|
| |
else |
| |
# If there is no Makefile yet, we rely on a make rule to execute |
| |
# `config.status --recheck' to rerun these tests and create the |
| |
# libtool script then. |
| |
test -f Makefile && make "$ltmain" |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
CC="$lt_save_CC" |
| |
|
| |
;; |
| |
|
| |
GCJ) |
| |
|
| |
# Source file extension for C test sources. |
| |
ac_ext=java |
| |
|
| |
# Object file extension for compiled C test sources. |
| |
objext=o |
| |
objext_GCJ=$objext |
| |
|
| |
# Code to be used in simple compile tests |
| |
lt_simple_compile_test_code="class foo {}" |
| |
|
| |
# Code to be used in simple link tests |
| |
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' |
| |
|
| |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| |
|
| |
# If no C compiler was specified, use CC. |
| |
LTCC=${LTCC-"$CC"} |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
set dummy $CC |
| |
compiler="$2" |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
lt_save_CC="$CC" |
| |
CC=${GCJ-"gcj"} |
| |
set dummy $CC |
| |
compiler="$2" |
| |
compiler_GCJ=$CC |
| |
|
| |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| |
archive_cmds_need_lc_GCJ=no |
| |
|
| |
lt_prog_compiler_no_builtin_flag_GCJ= |
| |
|
| |
if test "$GCC" = yes; then |
| |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| |
|
| |
echo "$as_me:13171: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_cv_prog_compiler_rtti_exceptions=no |
| |
ac_outfile=conftest.$ac_objext |
| |
save_CFLAGS="$CFLAGS" |
| |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings mentioning the option |
| |
cat conftest.err 1>&5 |
| |
lt_cv_prog_compiler_rtti_exceptions=yes |
| |
for lt_i in -fno-rtti -fno-exceptions -c conftest.$ac_ext; do |
| |
if grep -- $lt_i conftest.err >/dev/null; then |
| |
lt_cv_prog_compiler_rtti_exceptions=no |
| |
fi |
| |
done |
| |
fi |
| |
$rm conftest* |
| |
CFLAGS="$save_CFLAGS" |
| |
|
| |
fi |
| |
echo "$as_me:13196: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| |
|
| |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| |
else |
| |
: |
| |
fi |
| |
|
| |
fi |
| |
|
| |
lt_prog_compiler_wl_GCJ= |
| |
lt_prog_compiler_pic_GCJ= |
| |
lt_prog_compiler_static_GCJ= |
| |
|
| |
echo "$as_me:13211: checking for $compiler option to produce PIC" >&5 |
| |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| |
|
| |
if test "$GCC" = yes; then |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
lt_prog_compiler_static_GCJ='-static' |
| |
|
| |
case $host_os in |
| |
aix*) |
| |
# All AIX code is PIC. |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| fi |
fi |
| if test -f $dir/bison; then |
;; |
| BISON=bison |
|
| break |
amigaos*) |
| |
# FIXME: we need at least 68020 code to build shared libraries, but |
| |
# adding the `-m68020' flag to GCC prevents building anything better, |
| |
# like `-m68040'. |
| |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| |
;; |
| |
|
| |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| |
# PIC is the default for these OSes. |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32* | os2*) |
| |
# This hack is so that the source file can tell whether it is being |
| |
# built for inclusion in a dll (and should export symbols for example). |
| |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
# PIC is the default on this platform |
| |
# Common symbols not allowed in MH_DYLIB files |
| |
lt_prog_compiler_pic_GCJ='-fno-common' |
| |
;; |
| |
|
| |
msdosdjgpp*) |
| |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| |
# on systems that don't support them. |
| |
lt_prog_compiler_can_build_shared_GCJ=no |
| |
enable_shared=no |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec; then |
| |
lt_prog_compiler_pic_GCJ=-Kconform_pic |
| fi |
fi |
| if test -f $dir/yacc; then |
;; |
| BISON=yacc |
|
| break |
hpux*) |
| |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic_GCJ='-fPIC' |
| fi |
fi |
| done |
;; |
| IFS="$save_ifs" |
|
| BISON=${BISON-bison} |
|
| fi |
|
| |
|
| if [ -z "${LEX}" ]; then |
*) |
| IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" |
lt_prog_compiler_pic_GCJ='-fPIC' |
| for dir in $PATH; do |
;; |
| test -z "$dir" && dir=. |
esac |
| if test -f $dir/flex; then |
else |
| LEX=flex |
# PORTME Check for flag to pass linker flags through the system compiler. |
| break |
case $host_os in |
| |
aix*) |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 now supports IA64 processor |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
else |
| |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| fi |
fi |
| if test -f $dir/lex; then |
;; |
| LEX=lex |
|
| break |
cygwin* | mingw* | pw32* | os2*) |
| |
# This hack is so that the source file can tell whether it is being |
| |
# built for inclusion in a dll (and should export symbols for example). |
| |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
if test "$host_cpu" != ia64; then |
| |
lt_prog_compiler_pic_GCJ='+Z' |
| fi |
fi |
| done |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| IFS="$save_ifs" |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| LEX=${LEX-flex} |
;; |
| |
|
| |
irix5* | irix6*) |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
# PIC (with -KPIC) is the default. |
| |
lt_prog_compiler_static_GCJ='-non_shared' |
| |
;; |
| |
|
| |
newsos6) |
| |
lt_prog_compiler_pic_GCJ='-KPIC' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
# All OSF/1 code is PIC. |
| |
lt_prog_compiler_static_GCJ='-non_shared' |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
lt_prog_compiler_pic_GCJ='-Kpic' |
| |
lt_prog_compiler_static_GCJ='-dn' |
| |
;; |
| |
|
| |
solaris*) |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
lt_prog_compiler_pic_GCJ='-KPIC' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
;; |
| |
|
| |
sunos4*) |
| |
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| |
lt_prog_compiler_pic_GCJ='-PIC' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
if test "x$host_vendor" = xsni; then |
| |
lt_prog_compiler_wl_GCJ='-LD' |
| |
else |
| |
lt_prog_compiler_wl_GCJ='-Wl,' |
| |
fi |
| |
lt_prog_compiler_pic_GCJ='-KPIC' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec ;then |
| |
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
fi |
| |
;; |
| |
|
| |
uts4*) |
| |
lt_prog_compiler_pic_GCJ='-pic' |
| |
lt_prog_compiler_static_GCJ='-Bstatic' |
| |
;; |
| |
|
| |
*) |
| |
lt_prog_compiler_can_build_shared_GCJ=no |
| |
;; |
| |
esac |
| fi |
fi |
| |
|
| # Export variables which autoconf might try to set. |
echo "$as_me:13364: result: $lt_prog_compiler_pic_GCJ" >&5 |
| export AS |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| export AR |
|
| export CC_FOR_BUILD |
# |
| export DLLTOOL |
# Check to make sure the PIC flag actually works. |
| export LD |
# |
| export NM |
if test -n "$lt_prog_compiler_pic_GCJ"; then |
| export RANLIB |
echo "$as_me:13371: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| else |
else |
| # If CC is still not set, try to get gcc. |
lt_prog_compiler_pic_works_GCJ=no |
| if [ x$with_gcc != xno -a -z "${CC}" ]; then |
ac_outfile=conftest.$ac_objext |
| IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" |
save_CFLAGS="$CFLAGS" |
| for dir in $PATH; do |
CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" |
| test -z "$dir" && dir=. |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| if test -f $dir/gcc; then |
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| CC="gcc -O2" |
# The compiler can only warn and ignore the option if not recognized |
| break |
# So say no if there are warnings mentioning the option |
| |
cat conftest.err 1>&5 |
| |
lt_prog_compiler_pic_works_GCJ=yes |
| |
for lt_i in $lt_prog_compiler_pic_GCJ -DPIC; do |
| |
if grep -- $lt_i conftest.err >/dev/null; then |
| |
lt_prog_compiler_pic_works_GCJ=no |
| |
fi |
| |
done |
| |
fi |
| |
$rm conftest* |
| |
CFLAGS="$save_CFLAGS" |
| |
|
| |
fi |
| |
echo "$as_me:13396: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| |
|
| |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| |
case $lt_prog_compiler_pic_GCJ in |
| |
"" | " "*) ;; |
| |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| |
esac |
| |
else |
| |
lt_prog_compiler_pic_GCJ= |
| |
lt_prog_compiler_can_build_shared_GCJ=no |
| |
fi |
| |
|
| |
fi |
| |
case "$host_os" in |
| |
# For platforms which do not support PIC, -DPIC is meaningless: |
| |
*djgpp*) |
| |
lt_prog_compiler_pic_GCJ= |
| |
;; |
| |
*) |
| |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" |
| |
;; |
| |
esac |
| |
|
| |
echo "$as_me:13420: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
lt_cv_prog_compiler_c_o_GCJ=no |
| |
$rm -r conftest 2>/dev/null |
| |
mkdir conftest |
| |
cd conftest |
| |
mkdir out |
| |
save_GCJFLAGS="$GCJFLAGS" |
| |
GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" |
| |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
|
| |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| |
# that will create temporary files in the current directory regardless of |
| |
# the output directory. Thus, making CWD read-only will cause this test |
| |
# to fail, enabling locking or at least warning the user not to do parallel |
| |
# builds. |
| |
chmod -w . |
| |
|
| |
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| |
then |
| |
# The compiler can only warn and ignore the option if not recognized |
| |
# So say no if there are warnings |
| |
if test -s out/conftest.err; then |
| |
# Append any errors to the config.log. |
| |
cat out/conftest.err 1>&5 |
| |
else |
| |
lt_cv_prog_compiler_c_o_GCJ=yes |
| |
fi |
| |
fi |
| |
GCJFLAGS="$save_GCJFLAGS" |
| |
chmod u+w . |
| |
$rm conftest* out/* |
| |
rmdir out |
| |
cd .. |
| |
rmdir conftest |
| |
$rm conftest* |
| |
|
| |
fi |
| |
echo "$as_me:13461: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| |
|
| |
hard_links="nottested" |
| |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| |
# do not overwrite the value of need_locks provided by the user |
| |
echo "$as_me:13467: checking if we can lock with hard links" >&5 |
| |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| |
hard_links=yes |
| |
$rm conftest* |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
touch conftest.a |
| |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| |
echo "$as_me:13475: result: $hard_links" >&5 |
| |
echo "${ECHO_T}$hard_links" >&6 |
| |
if test "$hard_links" = no; then |
| |
{ echo "$as_me:13478: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| |
need_locks=warn |
| |
fi |
| |
else |
| |
need_locks=no |
| |
fi |
| |
|
| |
echo "$as_me:13486: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| |
|
| |
runpath_var= |
| |
allow_undefined_flag_GCJ= |
| |
|
| |
archive_cmds_GCJ= |
| |
archive_cmds_need_lc_GCJ= |
| |
archive_expsym_cmds_GCJ= |
| |
old_archive_From_new_cmds_GCJ= |
| |
old_archive_from_expsyms_cmds_GCJ= |
| |
export_dynamic_flag_spec_GCJ= |
| |
whole_archive_flag_spec_GCJ= |
| |
thread_safe_flag_spec_GCJ= |
| |
hardcode_libdir_flag_spec_GCJ= |
| |
hardcode_libdir_separator_GCJ= |
| |
hardcode_direct_GCJ=no |
| |
hardcode_minus_L_GCJ=no |
| |
hardcode_shlibpath_var_GCJ=unsupported |
| |
link_all_deplibs_GCJ=unknown |
| |
always_export_symbols_GCJ=no |
| |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| |
# include_expsyms should be a list of space-separated symbols to be *always* |
| |
# included in the symbol list |
| |
include_expsyms_GCJ= |
| |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
| |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| |
# as well as any symbol that contains `d'. |
| |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| |
# the symbol is explicitly referenced. Since portable code cannot |
| |
# rely on this symbol name, it's probably fine to never include it in |
| |
# preloaded symbol tables. |
| |
extract_expsyms_cmds= |
| |
|
| |
case $host_os in |
| |
cygwin* | mingw* | pw32*) |
| |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| |
# When not using gcc, we currently assume that we are using |
| |
# Microsoft Visual C++. |
| |
if test "$GCC" != yes; then |
| |
with_gnu_ld=no |
| |
fi |
| |
;; |
| |
openbsd*) |
| |
with_gnu_ld=no |
| |
;; |
| |
esac |
| |
|
| |
ld_shlibs_GCJ=yes |
| |
if test "$with_gnu_ld" = yes; then |
| |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| |
wlarc='${wl}' |
| |
|
| |
# See if GNU ld supports shared libraries. |
| |
case $host_os in |
| |
aix3* | aix4* | aix5*) |
| |
# On AIX/PPC, the GNU linker is very broken |
| |
if test "$host_cpu" != ia64; then |
| |
ld_shlibs_GCJ=no |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| |
*** to be unable to reliably create shared libraries on AIX. |
| |
*** Therefore, libtool is disabling shared libraries support. If you |
| |
*** really care for shared libraries, you may want to modify your PATH |
| |
*** so that a non-GNU linker is found, and then restart. |
| |
|
| |
EOF |
| fi |
fi |
| done |
;; |
| IFS="$save_ifs" |
|
| CC=${CC-cc} |
amigaos*) |
| |
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)' |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_minus_L_GCJ=yes |
| |
|
| |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| |
# to version 4, is to share data among multiple programs linked |
| |
# with the same dynamic library. Since this doesn't match the |
| |
# behavior of shared libraries on other platforms, we can't use |
| |
# them. |
| |
ld_shlibs_GCJ=no |
| |
;; |
| |
|
| |
beos*) |
| |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
allow_undefined_flag_GCJ=unsupported |
| |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| |
# support --undefined. This deserves some investigation. FIXME |
| |
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
else |
| |
ld_shlibs_GCJ=no |
| |
fi |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is |
| |
# no search path for DLLs. |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
allow_undefined_flag_GCJ=unsupported |
| |
always_export_symbols_GCJ=yes |
| |
|
| |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| |
else $CC -o impgen impgen.c ; fi)~ |
| |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| |
|
| |
old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| |
|
| |
# cygwin and mingw dlls have different entry points and sets of symbols |
| |
# to exclude. |
| |
# FIXME: what about values for MSVC? |
| |
dll_entry=__cygwin_dll_entry@12 |
| |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| |
case $host_os in |
| |
mingw*) |
| |
# mingw values |
| |
dll_entry=_DllMainCRTStartup@12 |
| |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| |
;; |
| |
esac |
| |
|
| |
# mingw and cygwin differ, and it's simplest to just exclude the union |
| |
# of the two symbol sets. |
| |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| |
|
| |
# recent cygwin and mingw systems supply a stub DllMain which the user |
| |
# can override, but on older systems we have to supply one (in ltdll.c) |
| |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
| |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| |
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~ |
| |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| |
else |
| |
ltdll_obj= |
| |
ltdll_cmds= |
| |
fi |
| |
|
| |
# Extract the symbol export list from an `--export-all' def file, |
| |
# then regenerate the def file from the symbol export list, so that |
| |
# the compiled dll only exports the symbol export list. |
| |
# Be careful not to strip the DATA tag left by newer dlltools. |
| |
export_symbols_cmds_GCJ="$ltdll_cmds"' |
| |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| |
|
| |
# If the export-symbols file already is a .def file (1st line |
| |
# is EXPORTS), use it as is. |
| |
# If DATA tags from a recent dlltool are present, honour them! |
| |
archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| |
cp $export_symbols $output_objdir/$soname-def; |
| |
else |
| |
echo EXPORTS > $output_objdir/$soname-def; |
| |
_lt_hint=1; |
| |
cat $export_symbols | while read symbol; do |
| |
set dummy \$symbol; |
| |
case \$# in |
| |
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| |
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| |
esac; |
| |
_lt_hint=`expr 1 + \$_lt_hint`; |
| |
done; |
| |
fi~ |
| |
'"$ltdll_cmds"' |
| |
$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~ |
| |
$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~ |
| |
$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~ |
| |
$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~ |
| |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| |
;; |
| |
|
| |
netbsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| |
wlarc= |
| |
else |
| |
archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
fi |
| |
;; |
| |
|
| |
solaris* | sysv5*) |
| |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| |
ld_shlibs_GCJ=no |
| |
cat <<EOF 1>&2 |
| |
|
| |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| |
*** create shared libraries on Solaris systems. Therefore, libtool |
| |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| |
*** your PATH or compiler configuration so that the native linker is |
| |
*** used, and then restart. |
| |
|
| |
EOF |
| |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
else |
| |
ld_shlibs_GCJ=no |
| |
fi |
| |
;; |
| |
|
| |
sunos4*) |
| |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
wlarc= |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
*) |
| |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| |
else |
| |
ld_shlibs_GCJ=no |
| |
fi |
| |
;; |
| |
esac |
| |
|
| |
if test "$ld_shlibs_GCJ" = yes; then |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| |
case $host_os in |
| |
cygwin* | mingw* | pw32*) |
| |
# dlltool doesn't understand --whole-archive et. al. |
| |
whole_archive_flag_spec_GCJ= |
| |
;; |
| |
*) |
| |
# ancient GNU ld didn't support --whole-archive et. al. |
| |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| |
else |
| |
whole_archive_flag_spec_GCJ= |
| |
fi |
| |
;; |
| |
esac |
| |
fi |
| |
else |
| |
# PORTME fill in a description of your system's linker (not GNU ld) |
| |
case $host_os in |
| |
aix3*) |
| |
allow_undefined_flag_GCJ=unsupported |
| |
always_export_symbols_GCJ=yes |
| |
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' |
| |
# Note: this linker hardcodes the directories in LIBPATH if there |
| |
# are no directories specified by -L. |
| |
hardcode_minus_L_GCJ=yes |
| |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| |
# Neither direct hardcoding nor static linking is supported with a |
| |
# broken collect2. |
| |
hardcode_direct_GCJ=unsupported |
| |
fi |
| |
;; |
| |
|
| |
aix4* | aix5*) |
| |
if test "$host_cpu" = ia64; then |
| |
# On IA64, the linker does run time linking by default, so we don't |
| |
# have to do anything special. |
| |
aix_use_runtimelinking=no |
| |
exp_sym_flag='-Bexport' |
| |
no_entry_flag="" |
| |
else |
| |
# If we're using GNU nm, then we don't want the "-C" option. |
| |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| |
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then |
| |
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' |
| |
else |
| |
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' |
| |
fi |
| |
aix_use_runtimelinking=no |
| |
|
| |
# Test if we are trying to use run time linking or normal |
| |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| |
# need to do runtime linking. |
| |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| |
for ld_flag in $LDFLAGS; do |
| |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| |
aix_use_runtimelinking=yes |
| |
break |
| |
fi |
| |
done |
| |
esac |
| |
|
| |
exp_sym_flag='-bexport' |
| |
no_entry_flag='-bnoentry' |
| |
fi |
| |
|
| |
# When large executables or shared objects are built, AIX ld can |
| |
# have problems creating the table of contents. If linking a library |
| |
# or program results in "error TOC overflow" add -mminimal-toc to |
| |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| |
|
| |
archive_cmds_GCJ='' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_libdir_separator_GCJ=':' |
| |
link_all_deplibs_GCJ=yes |
| |
|
| |
if test "$GCC" = yes; then |
| |
case $host_os in aix4.012|aix4.012.*) |
| |
# We only want to do this on AIX 4.2 and lower, the check |
| |
# below for broken collect2 doesn't work under 4.3+ |
| |
collect2name=`${CC} -print-prog-name=collect2` |
| |
if test -f "$collect2name" && \ |
| |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| |
then |
| |
# We have reworked collect2 |
| |
hardcode_direct_GCJ=yes |
| |
else |
| |
# We have old collect2 |
| |
hardcode_direct_GCJ=unsupported |
| |
# It fails to find uninstalled libraries when the uninstalled |
| |
# path is not listed in the libpath. Setting hardcode_minus_L |
| |
# to unsupported forces relinking |
| |
hardcode_minus_L_GCJ=yes |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_libdir_separator_GCJ= |
| |
fi |
| |
esac |
| |
shared_flag='-shared' |
| |
else |
| |
# not using gcc |
| |
if test "$host_cpu" = ia64; then |
| |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| |
# chokes on -Wl,-G. The following line is correct: |
| |
shared_flag='-G' |
| |
else |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
shared_flag='${wl}-G' |
| |
else |
| |
shared_flag='${wl}-bM:SRE' |
| |
fi |
| |
fi |
| |
fi |
| |
|
| |
# It seems that -bexpall does not export symbols beginning with |
| |
# underscore (_), so it is better to generate a list of symbols to export. |
| |
always_export_symbols_GCJ=yes |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# Warning - without using the other runtime loading flags (-brtl), |
| |
# -berok will link without error, but may produce a broken library. |
| |
allow_undefined_flag_GCJ='-berok' |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 13836 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:13848: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:13851: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:13854: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:13857: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
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" |
| |
else |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| |
allow_undefined_flag_GCJ="-z nodefs" |
| |
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" |
| |
else |
| |
# Determine the default libpath from the value encoded in an empty executable. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 13882 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:13894: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:13897: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:13900: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:13903: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
|
| |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| |
}'` |
| |
# Check for a 64-bit object if we didn't find anything. |
| |
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; } |
| |
}'`; fi |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| |
|
| |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| |
# Warning - without using the other run time loading flags, |
| |
# -berok will link without error, but may produce a broken library. |
| |
no_undefined_flag_GCJ=' ${wl}-bernotok' |
| |
allow_undefined_flag_GCJ=' ${wl}-berok' |
| |
# -bexpall does not export symbols beginning with underscore (_) |
| |
always_export_symbols_GCJ=yes |
| |
# Exported symbols can be pulled into shared objects from archives |
| |
whole_archive_flag_spec_GCJ=' ' |
| |
archive_cmds_need_lc_GCJ=yes |
| |
# This is similar to how AIX traditionally builds it's shared libraries. |
| |
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' |
| |
fi |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
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)' |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_minus_L_GCJ=yes |
| |
# see comment about different semantics on the GNU ld section |
| |
ld_shlibs_GCJ=no |
| |
;; |
| |
|
| |
bsdi4*) |
| |
export_dynamic_flag_spec_GCJ=-rdynamic |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
# When not using gcc, we currently assume that we are using |
| |
# Microsoft Visual C++. |
| |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| |
# no search path for DLLs. |
| |
hardcode_libdir_flag_spec_GCJ=' ' |
| |
allow_undefined_flag_GCJ=unsupported |
| |
# Tell ltmain to make .lib files, not .a files. |
| |
libext=lib |
| |
# FIXME: Setting linknames here is a bad hack. |
| |
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| |
# The linker will automatically build a .lib file if we build a DLL. |
| |
old_archive_From_new_cmds_GCJ='true' |
| |
# FIXME: Should let the user specify the lib program. |
| |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
case "$host_os" in |
| |
rhapsody* | darwin1.[012]) |
| |
allow_undefined_flag_GCJ='-undefined suppress' |
| |
;; |
| |
*) # Darwin 1.3 on |
| |
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| |
;; |
| |
esac |
| |
|
| |
# FIXME: Relying on posixy $() will cause problems for |
| |
# cross-compilation, but unfortunately the echo tests do not |
| |
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| |
# `"' quotes if we put them in here... so don't! |
| |
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' |
| |
# We need to add '_' to the symbols in $export_symbols first |
| |
#_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
whole_archive_flag_spec_GCJ='-all_load $convenience' |
| |
;; |
| |
|
| |
dgux*) |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
freebsd1*) |
| |
ld_shlibs_GCJ=no |
| |
;; |
| |
|
| |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| |
# does not break anything, and helps significantly (at the cost of a little |
| |
# extra space). |
| |
freebsd2.2*) |
| |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| |
freebsd2*) |
| |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_minus_L_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| |
freebsd*) |
| |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
if test "$GCC" = yes; then |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| |
fi |
| |
;; |
| |
esac |
| |
else |
| |
case $host_os in |
| |
hpux9*) |
| |
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| |
;; |
| |
*) |
| |
if test "$host_cpu" = ia64; then |
| |
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
else |
| |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| |
fi |
| |
;; |
| |
esac |
| |
fi |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_direct_GCJ=no |
| |
hardcode_shlibpath_var_GCJ=no |
| |
else |
| |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| |
hardcode_libdir_separator_GCJ=: |
| |
hardcode_direct_GCJ=yes |
| |
fi |
| |
# hardcode_minus_L: Not really in the search PATH, |
| |
# but as the default location of the library. |
| |
hardcode_minus_L_GCJ=yes |
| |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
if test "$GCC" = yes; then |
| |
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' |
| |
else |
| |
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' |
| |
fi |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_GCJ=: |
| |
link_all_deplibs_GCJ=yes |
| |
;; |
| |
|
| |
netbsd*) |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| |
else |
| |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| |
fi |
| |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
newsos6) |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_GCJ=: |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
openbsd*) |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
|
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| |
else |
| |
case $host_os in |
| |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| |
;; |
| |
*) |
| |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| |
;; |
| |
esac |
| |
fi |
| |
;; |
| |
|
| |
os2*) |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_minus_L_GCJ=yes |
| |
allow_undefined_flag_GCJ=unsupported |
| |
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' |
| |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| |
;; |
| |
|
| |
osf3*) |
| |
if test "$GCC" = yes; then |
| |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
else |
| |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| |
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' |
| |
fi |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| |
hardcode_libdir_separator_GCJ=: |
| |
;; |
| |
|
| |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| |
if test "$GCC" = yes; then |
| |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| |
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' |
| |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| |
else |
| |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| |
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' |
| |
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~ |
| |
$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' |
| |
|
| |
# Both c and cxx compiler support -rpath directly |
| |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| |
fi |
| |
hardcode_libdir_separator_GCJ=: |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_runpath_var=yes |
| |
;; |
| |
|
| |
solaris*) |
| |
no_undefined_flag_GCJ=' -z text' |
| |
if test "$GCC" = yes; then |
| |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| |
else |
| |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| |
fi |
| |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
case $host_os in |
| |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| |
esac |
| |
link_all_deplibs_GCJ=yes |
| |
;; |
| |
|
| |
sunos4*) |
| |
if test "x$host_vendor" = xsequent; then |
| |
# Use $CC to link under sequent, because it throws in some extra .o |
| |
# files that make .init and .fini sections work. |
| |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| |
fi |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_minus_L_GCJ=yes |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
sysv4) |
| |
if test "x$host_vendor" = xsni; then |
| |
archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct_GCJ=yes # is this really true??? |
| |
else |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| |
fi |
| |
runpath_var='LD_RUN_PATH' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
sysv4.3*) |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
export_dynamic_flag_spec_GCJ='-Bexport' |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec; then |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
runpath_var=LD_RUN_PATH |
| |
hardcode_runpath_var=yes |
| |
ld_shlibs_GCJ=yes |
| |
fi |
| |
;; |
| |
|
| |
sysv4.2uw2*) |
| |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_direct_GCJ=yes |
| |
hardcode_minus_L_GCJ=no |
| |
hardcode_shlibpath_var_GCJ=no |
| |
hardcode_runpath_var=yes |
| |
runpath_var=LD_RUN_PATH |
| |
;; |
| |
|
| |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| |
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| |
if test "$GCC" = yes; then |
| |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
else |
| |
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| |
fi |
| |
runpath_var='LD_RUN_PATH' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
sysv5*) |
| |
no_undefined_flag_GCJ=' -z text' |
| |
# $CC -shared without GNU ld will not create a library from C++ |
| |
# object files and a static libstdc++, better avoid it by now |
| |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| |
hardcode_libdir_flag_spec_GCJ= |
| |
hardcode_shlibpath_var_GCJ=no |
| |
runpath_var='LD_RUN_PATH' |
| |
;; |
| |
|
| |
uts4*) |
| |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| |
hardcode_shlibpath_var_GCJ=no |
| |
;; |
| |
|
| |
*) |
| |
ld_shlibs_GCJ=no |
| |
;; |
| |
esac |
| fi |
fi |
| |
|
| CXX=${CXX-"gcc"} |
echo "$as_me:14270: result: $ld_shlibs_GCJ" >&5 |
| |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| |
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| |
|
| |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| |
if test "$GCC" = yes; then |
| |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| fi |
fi |
| |
|
| export CC |
# |
| export CXX |
# Do we need to explicitly link libc? |
| |
# |
| |
archive_cmds_need_lc_GCJ=yes |
| |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| |
case $archive_cmds_GCJ in |
| |
*'~'*) |
| |
# FIXME: we may have to deal with multi-command sequences. |
| |
;; |
| |
'$CC '*) |
| |
# Test whether the compiler implicitly links with -lc since on some |
| |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| |
# to ld, don't add -lc before -lgcc. |
| |
echo "$as_me:14292: checking whether -lc should be explicitly linked in" >&5 |
| |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| |
$rm conftest* |
| |
echo 'static int dummy;' > conftest.$ac_ext |
| |
|
| case "$host" in |
if { (eval echo "$as_me:14297: \"$ac_compile\"") >&5 |
| *go32*) |
(eval $ac_compile) 2>&5 |
| enable_gdbtk=no ;; |
ac_status=$? |
| |
echo "$as_me:14300: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } 2>conftest.err; then |
| |
soname=conftest |
| |
lib=conftest |
| |
libobjs=conftest.$ac_objext |
| |
deplibs= |
| |
wl=$lt_prog_compiler_wl_GCJ |
| |
compiler_flags=-v |
| |
linker_flags=-v |
| |
verstring= |
| |
output_objdir=. |
| |
libname=conftest |
| |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| |
allow_undefined_flag_GCJ= |
| |
if { (eval echo "$as_me:14314: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:14317: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } |
| |
then |
| |
archive_cmds_need_lc_GCJ=no |
| |
else |
| |
archive_cmds_need_lc_GCJ=yes |
| |
fi |
| |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| |
else |
| |
cat conftest.err 1>&5 |
| |
fi |
| |
$rm conftest* |
| |
echo "$as_me:14329: result: $archive_cmds_need_lc_GCJ" >&5 |
| |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "$as_me:14335: checking how to hardcode library paths into programs" >&5 |
| |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| |
hardcode_action_GCJ= |
| |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| |
test -n "$runpath_var GCJ"; then |
| |
|
| |
# We can hardcode non-existant directories. |
| |
if test "$hardcode_direct_GCJ" != no && |
| |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| |
# have to relink, otherwise we might link with an installed library |
| |
# when we should be linking with a yet-to-be-installed one |
| |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| |
test "$hardcode_minus_L_GCJ" != no; then |
| |
# Linking always hardcodes the temporary library directory. |
| |
hardcode_action_GCJ=relink |
| |
else |
| |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| |
hardcode_action_GCJ=immediate |
| |
fi |
| |
else |
| |
# We cannot hardcode anything, or else we can only hardcode existing |
| |
# directories. |
| |
hardcode_action_GCJ=unsupported |
| |
fi |
| |
echo "$as_me:14359: result: $hardcode_action_GCJ" >&5 |
| |
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| |
|
| |
if test "$hardcode_action_GCJ" = relink; then |
| |
# Fast installation is not supported |
| |
enable_fast_install=no |
| |
elif test "$shlibpath_overrides_runpath" = yes || |
| |
test "$enable_shared" = no; then |
| |
# Fast installation is not necessary |
| |
enable_fast_install=needless |
| |
fi |
| |
|
| |
striplib= |
| |
old_striplib= |
| |
echo "$as_me:14373: checking whether stripping libraries is possible" >&5 |
| |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| |
echo "$as_me:14378: result: yes" >&5 |
| |
echo "${ECHO_T}yes" >&6 |
| |
else |
| |
echo "$as_me:14381: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
echo "$as_me:14385: checking dynamic linker characteristics" >&5 |
| |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| |
library_names_spec= |
| |
libname_spec='lib$name' |
| |
soname_spec= |
| |
postinstall_cmds= |
| |
postuninstall_cmds= |
| |
finish_cmds= |
| |
finish_eval= |
| |
shlibpath_var= |
| |
shlibpath_overrides_runpath=unknown |
| |
version_type=none |
| |
dynamic_linker="$host_os ld.so" |
| |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| |
need_lib_prefix=unknown |
| |
hardcode_into_libs=no |
| |
|
| |
# when you set need_version to no, make sure it does not cause -set_version |
| |
# flags to be left without arguments |
| |
need_version=unknown |
| |
|
| |
case $host_os in |
| |
aix3*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| |
shlibpath_var=LIBPATH |
| |
|
| |
# AIX 3 has no versioning support, so we append a major version to the name. |
| |
soname_spec='${libname}${release}.so$major' |
| |
;; |
| |
|
| |
aix4* | aix5*) |
| |
version_type=linux |
| |
if test "$host_cpu" = ia64; then |
| |
# AIX 5 supports IA64 |
| |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
else |
| |
# With GCC up to 2.95.x, collect2 would create an import file |
| |
# for dependence libraries. The import file would start with |
| |
# the line `#! .'. This would cause the generated library to |
| |
# depend on `.', always an invalid library. This was fixed in |
| |
# development snapshots of GCC prior to 3.0. |
| |
case $host_os in |
| |
aix4 | aix4.[01] | aix4.[01].*) |
| |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| |
echo ' yes ' |
| |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| |
: |
| |
else |
| |
can_build_shared=no |
| |
fi |
| |
;; |
| |
esac |
| |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| |
# soname into executable. Probably we can add versioning support to |
| |
# collect2, so additional links can be useful in future. |
| |
if test "$aix_use_runtimelinking" = yes; then |
| |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| |
# instead of lib<name>.a to let people know that these are not |
| |
# typical AIX shared libraries. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
else |
| |
# We preserve .a as extension for shared libraries through AIX4.2 |
| |
# and later when we are not doing run time linking. |
| |
library_names_spec='${libname}${release}.a $libname.a' |
| |
soname_spec='${libname}${release}.so$major' |
| |
fi |
| |
shlibpath_var=LIBPATH |
| |
fi |
| |
;; |
| |
|
| |
amigaos*) |
| |
library_names_spec='$libname.ixlibrary $libname.a' |
| |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| |
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' |
| |
;; |
| |
|
| |
beos*) |
| |
library_names_spec='${libname}.so' |
| |
dynamic_linker="$host_os ld.so" |
| |
shlibpath_var=LIBRARY_PATH |
| |
;; |
| |
|
| |
bsdi4*) |
| |
version_type=linux |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| |
# the default ld.so.conf also contains /usr/contrib/lib and |
| |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| |
# libtool to hard-code these into programs |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
version_type=windows |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
case $GCC,$host_os in |
| |
yes,cygwin*) |
| |
library_names_spec='$libname.dll.a' |
| |
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| |
dldir=$destdir/`dirname \$dlpath`~ |
| |
test -d \$dldir || mkdir -p \$dldir~ |
| |
$install_prog .libs/$dlname \$dldir/$dlname' |
| |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| |
dlpath=$dir/\$dldll~ |
| |
$rm \$dlpath' |
| |
;; |
| |
yes,mingw*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` |
| |
if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then |
| |
# It is most probably a Windows format PATH printed by |
| |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| |
# path with ; separators, and with drive letters. We can handle the |
| |
# drive letters (cygwin fileutils understands them), so leave them, |
| |
# especially as we might pass files found there to a mingw objdump, |
| |
# which wouldn't understand a cygwinified path. Ahh. |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
| |
else |
| |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
| |
fi |
| |
;; |
| |
yes,pw32*) |
| |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| |
;; |
| |
*) |
| |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| |
;; |
| |
esac |
| |
dynamic_linker='Win32 ld.exe' |
| |
# FIXME: first we should search . and the directory the executable is in |
| |
shlibpath_var=PATH |
| |
;; |
| |
|
| |
darwin* | rhapsody*) |
| |
dynamic_linker="$host_os dyld" |
| |
version_type=darwin |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
# FIXME: Relying on posixy $() will cause problems for |
| |
# cross-compilation, but unfortunately the echo tests do not |
| |
# yet detect zsh echo's removal of \ escapes. |
| |
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)' |
| |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| |
shlibpath_overrides_runpath=yes |
| |
shlibpath_var=DYLD_LIBRARY_PATH |
| |
;; |
| |
|
| |
dgux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
freebsd1*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
freebsd*) |
| |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| |
version_type=freebsd-$objformat |
| |
case $version_type in |
| |
freebsd-elf*) |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
need_version=no |
| |
need_lib_prefix=no |
| |
;; |
| |
freebsd-*) |
| |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| |
need_version=yes |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_os in |
| |
freebsd2*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
freebsd3.01* | freebsdelf3.01*) |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
*) # from 3.2 on |
| |
shlibpath_overrides_runpath=no |
| |
hardcode_into_libs=yes |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
gnu*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
hpux9* | hpux10* | hpux11*) |
| |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| |
# link against other versions. |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if test "$host_cpu" = ia64; then |
| |
hardcode_into_libs=yes |
| |
dynamic_linker="$host_os dld.so" |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
if test "X$HPUX_IA64_MODE" = X32; then |
| |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| |
else |
| |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| |
fi |
| |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| |
else |
| |
dynamic_linker="$host_os dld.sl" |
| |
shlibpath_var=SHLIB_PATH |
| |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| |
soname_spec='${libname}${release}.sl$major' |
| |
fi |
| |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| |
postinstall_cmds='chmod 555 $lib' |
| |
;; |
| |
|
| |
irix5* | irix6*) |
| |
version_type=irix |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| |
case $host_os in |
| |
irix5*) |
| |
libsuff= shlibsuff= |
| |
;; |
| |
*) |
| |
case $LD in # libtool.m4 will add one of these switches to LD |
| |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| |
*) libsuff= shlibsuff= libmagic=never-match;; |
| |
esac |
| |
;; |
| |
esac |
| |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| |
;; |
| |
|
| |
# No shared lib support for Linux oldld, aout, or coff. |
| |
linux*oldld* | linux*aout* | linux*coff*) |
| |
dynamic_linker=no |
| |
;; |
| |
|
| |
# This must be Linux ELF. |
| |
linux*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=no |
| |
# This implies no fast_install, which is unacceptable. |
| |
# Some rework will be needed to allow for fast_install |
| |
# before this can be enabled. |
| |
hardcode_into_libs=yes |
| |
|
| |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| |
# powerpc, because MkLinux only supported shared libraries with the |
| |
# GNU dynamic linker. Since this was broken with cross compilers, |
| |
# most powerpc-linux boxes support dynamic linking these days and |
| |
# people can always --disable-shared, the test was removed, and we |
| |
# assume the GNU/Linux dynamic linker is in use. |
| |
dynamic_linker='GNU/Linux ld.so' |
| |
;; |
| |
|
| |
netbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
dynamic_linker='NetBSD (a.out) ld.so' |
| |
else |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
dynamic_linker='NetBSD ld.elf_so' |
| |
fi |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
;; |
| |
|
| |
newsos6) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
nto-qnx) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
|
| |
openbsd*) |
| |
version_type=sunos |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| |
case $host_os in |
| |
openbsd2.[89] | openbsd2.[89].*) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
*) |
| |
shlibpath_overrides_runpath=yes |
| |
;; |
| |
esac |
| |
else |
| |
shlibpath_overrides_runpath=yes |
| |
fi |
| |
;; |
| |
|
| |
os2*) |
| |
libname_spec='$name' |
| |
need_lib_prefix=no |
| |
library_names_spec='$libname.dll $libname.a' |
| |
dynamic_linker='OS/2 ld.exe' |
| |
shlibpath_var=LIBPATH |
| |
;; |
| |
|
| |
osf3* | osf4* | osf5*) |
| |
version_type=osf |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
soname_spec='${libname}${release}.so' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| |
;; |
| |
|
| |
sco3.2v5*) |
| |
version_type=osf |
| |
soname_spec='${libname}${release}.so$major' |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
solaris*) |
| |
version_type=linux |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
hardcode_into_libs=yes |
| |
# ldd complains unless libraries are executable |
| |
postinstall_cmds='chmod +x $lib' |
| |
;; |
| |
|
| |
sunos4*) |
| |
version_type=sunos |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
shlibpath_overrides_runpath=yes |
| |
if test "$with_gnu_ld" = yes; then |
| |
need_lib_prefix=no |
| |
fi |
| |
need_version=yes |
| |
;; |
| |
|
| |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
case $host_vendor in |
| |
sni) |
| |
shlibpath_overrides_runpath=no |
| |
;; |
| |
motorola) |
| |
need_lib_prefix=no |
| |
need_version=no |
| |
shlibpath_overrides_runpath=no |
| |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| |
;; |
| |
esac |
| |
;; |
| |
|
| |
sysv4*MP*) |
| |
if test -d /usr/nec ;then |
| |
version_type=linux |
| |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| |
soname_spec='$libname.so.$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
fi |
| |
;; |
| |
|
| |
uts4*) |
| |
version_type=linux |
| |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| |
soname_spec='${libname}${release}.so$major' |
| |
shlibpath_var=LD_LIBRARY_PATH |
| |
;; |
| |
|
| |
*) |
| |
dynamic_linker=no |
| |
;; |
| esac |
esac |
| |
echo "$as_me:14824: result: $dynamic_linker" >&5 |
| |
echo "${ECHO_T}$dynamic_linker" >&6 |
| |
test "$dynamic_linker" = no && can_build_shared=no |
| |
|
| # Determine whether gdb needs tk/tcl or not. |
if test "x$enable_dlopen" != xyes; then |
| if [ "$enable_gdbtk" != "no" ]; then |
enable_dlopen=unknown |
| GDB_TK="all-tcl all-tk" |
enable_dlopen_self=unknown |
| |
enable_dlopen_self_static=unknown |
| else |
else |
| GDB_TK="" |
lt_cv_dlopen=no |
| |
lt_cv_dlopen_libs= |
| |
|
| |
case $host_os in |
| |
beos*) |
| |
lt_cv_dlopen="load_add_on" |
| |
lt_cv_dlopen_libs= |
| |
lt_cv_dlopen_self=yes |
| |
;; |
| |
|
| |
cygwin* | mingw* | pw32*) |
| |
lt_cv_dlopen="LoadLibrary" |
| |
lt_cv_dlopen_libs= |
| |
;; |
| |
|
| |
*) |
| |
echo "$as_me:14849: checking for shl_load" >&5 |
| |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 14855 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char shl_load (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| |
choke me |
| |
#else |
| |
f = shl_load; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:14886: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:14889: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:14892: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:14895: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_shl_load=no |
| fi |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:14905: result: $ac_cv_func_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| |
if test $ac_cv_func_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" |
| |
else |
| |
echo "$as_me:14910: checking for shl_load in -ldld" >&5 |
| |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 14918 "configure" |
| |
#include "confdefs.h" |
| |
|
| for subdir in . ${subdirs} ; do |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char shl_load (); |
| |
int |
| |
main () |
| |
{ |
| |
shl_load (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:14937: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:14940: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:14943: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:14946: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_shl_load=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_shl_load=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:14957: result: $ac_cv_lib_dld_shl_load" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| |
if test $ac_cv_lib_dld_shl_load = yes; then |
| |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| |
else |
| |
echo "$as_me:14962: checking for dlopen" >&5 |
| |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| |
if test "${ac_cv_func_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 14968 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char dlopen (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
char (*f) (); |
| |
|
| # ${subdir} is relative path from . to the directory we're currently |
int |
| # configuring. |
main () |
| # ${invsubdir} is inverse of ${subdir), *with* trailing /, if needed. |
{ |
| invsubdir=`echo ${subdir}/ | sed -e 's|\./||g' -e 's|[^/]*/|../|g'` |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| |
choke me |
| |
#else |
| |
f = dlopen; |
| |
#endif |
| |
|
| ### figure out what to do with srcdir |
; |
| case "${srcdir}" in |
return 0; |
| ".") # no -srcdir option. We're building in place. |
} |
| makesrcdir=. ;; |
_ACEOF |
| /*) # absolute path |
rm -f conftest.$ac_objext conftest$ac_exeext |
| makesrcdir=`echo ${srcdir}/${subdir} | sed -e 's|/\.$||'` |
if { (eval echo "$as_me:14999: \"$ac_link\"") >&5 |
| ;; |
(eval $ac_link) 2>&5 |
| *) # otherwise relative |
ac_status=$? |
| case "${subdir}" in |
echo "$as_me:15002: \$? = $ac_status" >&5 |
| .) makesrcdir=${srcdir} ;; |
(exit $ac_status); } && |
| *) makesrcdir=${invsubdir}${srcdir}/${subdir} ;; |
{ ac_try='test -s conftest$ac_exeext' |
| esac |
{ (eval echo "$as_me:15005: \"$ac_try\"") >&5 |
| ;; |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15008: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:15018: result: $ac_cv_func_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| |
if test $ac_cv_func_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" |
| |
else |
| |
echo "$as_me:15023: checking for dlopen in -ldl" >&5 |
| |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldl $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 15031 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:15050: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15053: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:15056: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15059: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dl_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dl_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:15070: result: $ac_cv_lib_dl_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| |
if test $ac_cv_lib_dl_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| |
else |
| |
echo "$as_me:15075: checking for dlopen in -lsvld" >&5 |
| |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lsvld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 15083 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dlopen (); |
| |
int |
| |
main () |
| |
{ |
| |
dlopen (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:15102: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15105: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:15108: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15111: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_svld_dlopen=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_svld_dlopen=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:15122: result: $ac_cv_lib_svld_dlopen" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| |
if test $ac_cv_lib_svld_dlopen = yes; then |
| |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| |
else |
| |
echo "$as_me:15127: checking for dld_link in -ldld" >&5 |
| |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ldld $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 15135 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char dld_link (); |
| |
int |
| |
main () |
| |
{ |
| |
dld_link (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:15154: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15157: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:15160: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15163: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_dld_dld_link=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_dld_dld_link=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:15174: result: $ac_cv_lib_dld_dld_link" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| |
if test $ac_cv_lib_dld_dld_link = yes; then |
| |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
;; |
| |
esac |
| |
|
| |
if test "x$lt_cv_dlopen" != xno; then |
| |
enable_dlopen=yes |
| |
else |
| |
enable_dlopen=no |
| |
fi |
| |
|
| |
case $lt_cv_dlopen in |
| |
dlopen) |
| |
save_CPPFLAGS="$CPPFLAGS" |
| |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| |
|
| |
save_LDFLAGS="$LDFLAGS" |
| |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| |
|
| |
save_LIBS="$LIBS" |
| |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| |
|
| |
echo "$as_me:15210: checking whether a program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 15221 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:15282: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15285: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| esac |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| if [ "${subdir}/" != "./" ] ; then |
fi |
| Makefile=${subdir}/Makefile |
echo "$as_me:15302: result: $lt_cv_dlopen_self" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| |
|
| |
if test "x$lt_cv_dlopen_self" = xyes; then |
| |
LDFLAGS="$LDFLAGS $link_static_flag" |
| |
echo "$as_me:15307: checking whether a statically linked program can dlopen itself" >&5 |
| |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$cross_compiling" = yes; then : |
| |
lt_cv_dlopen_self_static=cross |
| |
else |
| |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| |
lt_status=$lt_dlunknown |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 15318 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#if HAVE_DLFCN_H |
| |
#include <dlfcn.h> |
| |
#endif |
| |
|
| |
#include <stdio.h> |
| |
|
| |
#ifdef RTLD_GLOBAL |
| |
# define LT_DLGLOBAL RTLD_GLOBAL |
| |
#else |
| |
# ifdef DL_GLOBAL |
| |
# define LT_DLGLOBAL DL_GLOBAL |
| |
# else |
| |
# define LT_DLGLOBAL 0 |
| |
# endif |
| |
#endif |
| |
|
| |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| |
find out it does not work in some platform. */ |
| |
#ifndef LT_DLLAZY_OR_NOW |
| |
# ifdef RTLD_LAZY |
| |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| |
# else |
| |
# ifdef DL_LAZY |
| |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| |
# else |
| |
# ifdef RTLD_NOW |
| |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| |
# else |
| |
# ifdef DL_NOW |
| |
# define LT_DLLAZY_OR_NOW DL_NOW |
| |
# else |
| |
# define LT_DLLAZY_OR_NOW 0 |
| |
# endif |
| |
# endif |
| |
# endif |
| |
# endif |
| |
#endif |
| |
|
| |
#ifdef __cplusplus |
| |
extern "C" void exit (int); |
| |
#endif |
| |
|
| |
void fnord() { int i=42;} |
| |
int main () |
| |
{ |
| |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| |
int status = $lt_dlunknown; |
| |
|
| |
if (self) |
| |
{ |
| |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| |
/* dlclose (self); */ |
| |
} |
| |
|
| |
exit (status); |
| |
} |
| |
EOF |
| |
if { (eval echo "$as_me:15379: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:15382: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| |
(./conftest; exit; ) 2>/dev/null |
| |
lt_status=$? |
| |
case x$lt_status in |
| |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| |
esac |
| |
else : |
| |
# compilation failed |
| |
lt_cv_dlopen_self_static=no |
| |
fi |
| |
fi |
| |
rm -fr conftest* |
| |
|
| |
fi |
| |
echo "$as_me:15399: result: $lt_cv_dlopen_self_static" >&5 |
| |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| fi |
fi |
| |
|
| if [ ! -d ${subdir} ] ; then |
CPPFLAGS="$save_CPPFLAGS" |
| if mkdir ${subdir} ; then |
LDFLAGS="$save_LDFLAGS" |
| true |
LIBS="$save_LIBS" |
| else |
;; |
| echo '***' "${progname}: could not make ${PWD=`pwd`}/${subdir}" 1>&2 |
esac |
| exit 1 |
|
| fi |
case $lt_cv_dlopen_self in |
| |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| |
*) enable_dlopen_self=unknown ;; |
| |
esac |
| |
|
| |
case $lt_cv_dlopen_self_static in |
| |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| |
*) enable_dlopen_self_static=unknown ;; |
| |
esac |
| |
fi |
| |
|
| |
# The else clause should only fire when bootstrapping the |
| |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| |
# with your package, and you will get complaints that there are |
| |
# no rules to generate ltmain.sh. |
| |
if test -f "$ltmain"; then |
| |
# Now quote all the things that may contain metacharacters while being |
| |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| |
# variables and quote the copies for generation of the libtool script. |
| |
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \ |
| |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| |
lt_cv_sys_global_symbol_to_c_name_address \ |
| |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| |
old_postinstall_cmds old_postuninstall_cmds \ |
| |
HOST_CC \ |
| |
compiler_GCJ \ |
| |
CC_GCJ \ |
| |
LD_GCJ \ |
| |
lt_prog_compiler_wl_GCJ \ |
| |
lt_prog_compiler_pic_GCJ \ |
| |
lt_prog_compiler_static_GCJ \ |
| |
lt_prog_compiler_no_builtin_flag_GCJ \ |
| |
export_dynamic_flag_spec_GCJ \ |
| |
thread_safe_flag_spec_GCJ \ |
| |
whole_archive_flag_spec_GCJ \ |
| |
old_archive_cmds_GCJ \ |
| |
old_archive_from_new_cmds_GCJ \ |
| |
predep_objects_GCJ \ |
| |
postdep_objects_GCJ \ |
| |
predeps_GCJ \ |
| |
postdeps_GCJ \ |
| |
compiler_lib_search_path_GCJ \ |
| |
archive_cmds_GCJ \ |
| |
archive_expsym_cmds_GCJ \ |
| |
postinstall_cmds_GCJ \ |
| |
postuninstall_cmds_GCJ \ |
| |
old_archive_from_expsyms_cmds_GCJ \ |
| |
allow_undefined_flag_GCJ \ |
| |
no_undefined_flag_GCJ \ |
| |
export_symbols_cmds_GCJ \ |
| |
hardcode_libdir_flag_spec_GCJ \ |
| |
hardcode_libdir_separator_GCJ \ |
| |
lt_cv_prog_compiler_c_o_GCJ \ |
| |
exclude_expsyms_GCJ \ |
| |
include_expsyms_GCJ; do |
| |
|
| |
case $var in |
| |
old_archive_cmds_GCJ | \ |
| |
old_archive_from_new_cmds_GCJ | \ |
| |
archive_cmds_GCJ | \ |
| |
archive_expsym_cmds_GCJ | \ |
| |
old_archive_from_expsyms_cmds_GCJ | \ |
| |
export_symbols_cmds_GCJ | \ |
| |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| |
postinstall_cmds | postuninstall_cmds | \ |
| |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| |
# Double-quote double-evaled strings. |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| |
;; |
| |
*) |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| |
;; |
| |
esac |
| |
done |
| |
|
| |
case $lt_echo in |
| |
*'\$0 --fallback-echo"') |
| |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| |
;; |
| |
esac |
| |
|
| |
cfgfile="$ofile" |
| |
|
| |
cat <<__EOF__ >> "$cfgfile" |
| |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| |
|
| |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| |
|
| |
# Shell to use when invoking shell scripts. |
| |
SHELL=$lt_SHELL |
| |
|
| |
# Whether or not to build shared libraries. |
| |
build_libtool_libs=$enable_shared |
| |
|
| |
# Whether or not to build static libraries. |
| |
build_old_libs=$enable_static |
| |
|
| |
# Whether or not to add -lc for building shared libraries. |
| |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| |
|
| |
# Whether or not to optimize for fast installation. |
| |
fast_install=$enable_fast_install |
| |
|
| |
# The host system. |
| |
host_alias=$host_alias |
| |
host=$host |
| |
|
| |
# An echo program that does not interpret backslashes. |
| |
echo=$lt_echo |
| |
|
| |
# The archiver. |
| |
AR=$lt_AR |
| |
AR_FLAGS=$lt_AR_FLAGS |
| |
|
| |
# A C compiler. |
| |
LTCC=$lt_LTCC |
| |
|
| |
# A C compiler for the build system. |
| |
HOST_CC=$lt_HOST_CC |
| |
|
| |
# A language-specific compiler. |
| |
CC=$lt_compiler_GCJ |
| |
|
| |
# Is the compiler the GNU C compiler? |
| |
with_gcc=$GCC_GCJ |
| |
|
| |
# The linker used to build libraries. |
| |
LD=$lt_LD_GCJ |
| |
|
| |
# Whether we need hard or soft links. |
| |
LN_S=$lt_LN_S |
| |
|
| |
# A BSD-compatible nm program. |
| |
NM=$lt_NM |
| |
|
| |
# A symbol stripping program |
| |
STRIP=$STRIP |
| |
|
| |
# Used to examine libraries when file_magic_cmd begins "file" |
| |
MAGIC_CMD=$MAGIC_CMD |
| |
|
| |
# Used on cygwin: DLL creation program. |
| |
DLLTOOL="$DLLTOOL" |
| |
|
| |
# Used on cygwin: object dumper. |
| |
OBJDUMP="$OBJDUMP" |
| |
|
| |
# Used on cygwin: assembler. |
| |
AS="$AS" |
| |
|
| |
# The name of the directory that contains temporary libtool files. |
| |
objdir=$objdir |
| |
|
| |
# How to create reloadable object files. |
| |
reload_flag=$lt_reload_flag |
| |
reload_cmds=$lt_reload_cmds |
| |
|
| |
# How to pass a linker flag through the compiler. |
| |
wl=$lt_lt_prog_compiler_wl_GCJ |
| |
|
| |
# Object file suffix (normally "o"). |
| |
objext="$ac_objext" |
| |
|
| |
# Old archive suffix (normally "a"). |
| |
libext="$libext" |
| |
|
| |
# Executable file suffix (normally ""). |
| |
exeext="$exeext" |
| |
|
| |
# Additional compiler flags for building library objects. |
| |
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| |
pic_mode=$pic_mode |
| |
|
| |
# What is the maximum length of a command? |
| |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| |
|
| |
# Does compiler simultaneously support -c and -o options? |
| |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| |
|
| |
# Must we lock files when doing compilation ? |
| |
need_locks=$lt_need_locks |
| |
|
| |
# Do we need the lib prefix for modules? |
| |
need_lib_prefix=$need_lib_prefix |
| |
|
| |
# Do we need a version for libraries? |
| |
need_version=$need_version |
| |
|
| |
# Whether dlopen is supported. |
| |
dlopen_support=$enable_dlopen |
| |
|
| |
# Whether dlopen of programs is supported. |
| |
dlopen_self=$enable_dlopen_self |
| |
|
| |
# Whether dlopen of statically linked programs is supported. |
| |
dlopen_self_static=$enable_dlopen_self_static |
| |
|
| |
# Compiler flag to prevent dynamic linking. |
| |
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| |
|
| |
# Compiler flag to turn off builtin functions. |
| |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| |
|
| |
# Compiler flag to allow reflexive dlopens. |
| |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| |
|
| |
# Compiler flag to generate shared objects directly from archives. |
| |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| |
|
| |
# Compiler flag to generate thread-safe objects. |
| |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| |
|
| |
# Library versioning type. |
| |
version_type=$version_type |
| |
|
| |
# Format of library name prefix. |
| |
libname_spec=$lt_libname_spec |
| |
|
| |
# List of archive names. First name is the real one, the rest are links. |
| |
# The last name is the one that the linker finds with -lNAME. |
| |
library_names_spec=$lt_library_names_spec |
| |
|
| |
# The coded name of the library, if different from the real name. |
| |
soname_spec=$lt_soname_spec |
| |
|
| |
# Commands used to build and install an old-style archive. |
| |
RANLIB=$lt_RANLIB |
| |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
| |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| |
|
| |
# Create an old-style archive from a shared archive. |
| |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| |
|
| |
# Create a temporary old-style archive to link instead of a shared archive. |
| |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| |
|
| |
# Commands used to build and install a shared archive. |
| |
archive_cmds=$lt_archive_cmds_GCJ |
| |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| |
postinstall_cmds=$lt_postinstall_cmds |
| |
postuninstall_cmds=$lt_postuninstall_cmds |
| |
|
| |
# Commands to strip libraries. |
| |
old_striplib=$lt_old_striplib |
| |
striplib=$lt_striplib |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predep_objects=$lt_predep_objects_GCJ |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdep_objects=$lt_postdep_objects_GCJ |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predeps=$lt_predeps_GCJ |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdeps=$lt_postdeps_GCJ |
| |
|
| |
# The library search path used internally by the compiler when linking |
| |
# a shared library. |
| |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| |
|
| |
# Method to check whether dependent libraries are shared objects. |
| |
deplibs_check_method=$lt_deplibs_check_method |
| |
|
| |
# Command to use when deplibs_check_method == file_magic. |
| |
file_magic_cmd=$lt_file_magic_cmd |
| |
|
| |
# Flag that allows shared libraries with undefined symbols to be built. |
| |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| |
|
| |
# Flag that forces no undefined symbols. |
| |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
| |
|
| |
# Commands used to finish a libtool library installation in a directory. |
| |
finish_cmds=$lt_finish_cmds |
| |
|
| |
# Same as above, but a single script fragment to be evaled but not shown. |
| |
finish_eval=$lt_finish_eval |
| |
|
| |
# Take the output of nm and produce a listing of raw symbols and C names. |
| |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| |
|
| |
# Transform the output of nm in a proper C declaration |
| |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| |
|
| |
# Transform the output of nm in a C name address pair |
| |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| |
|
| |
# This is the shared library runtime path variable. |
| |
runpath_var=$runpath_var |
| |
|
| |
# This is the shared library path variable. |
| |
shlibpath_var=$shlibpath_var |
| |
|
| |
# Is shlibpath searched before the hard-coded library search path? |
| |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| |
|
| |
# How to hardcode a shared library path into an executable. |
| |
hardcode_action=$hardcode_action_GCJ |
| |
|
| |
# Whether we should hardcode library paths into libraries. |
| |
hardcode_into_libs=$hardcode_into_libs |
| |
|
| |
# Flag to hardcode \$libdir into a binary during linking. |
| |
# This must work even if \$libdir does not exist. |
| |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| |
|
| |
# Whether we need a single -rpath flag with a separated argument. |
| |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| |
|
| |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_direct=$hardcode_direct_GCJ |
| |
|
| |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_minus_L=$hardcode_minus_L_GCJ |
| |
|
| |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| |
# the resulting binary. |
| |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| |
|
| |
# Variables whose values should be saved in libtool wrapper scripts and |
| |
# restored at relink time. |
| |
variables_saved_for_relink="$variables_saved_for_relink" |
| |
|
| |
# Whether libtool must link a program against all its dependency libraries. |
| |
link_all_deplibs=$link_all_deplibs_GCJ |
| |
|
| |
# Compile-time system search path for libraries |
| |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| |
|
| |
# Run-time system search path for libraries |
| |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| |
|
| |
# Fix the shell variable \$srcfile for the compiler. |
| |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
| |
|
| |
# Set to yes if exported symbols are required. |
| |
always_export_symbols=$always_export_symbols_GCJ |
| |
|
| |
# The commands to list exported symbols. |
| |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| |
|
| |
# The commands to extract the exported symbol list from a shared archive. |
| |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| |
|
| |
# Symbols that should not be listed in the preloaded symbols. |
| |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
| |
|
| |
# Symbols that must always be exported. |
| |
include_expsyms=$lt_include_expsyms_GCJ |
| |
|
| |
# ### END LIBTOOL TAG CONFIG: $tagname |
| |
|
| |
__EOF__ |
| |
|
| |
else |
| |
# If there is no Makefile yet, we rely on a make rule to execute |
| |
# `config.status --recheck' to rerun these tests and create the |
| |
# libtool script then. |
| |
test -f Makefile && make "$ltmain" |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
CC="$lt_save_CC" |
| |
|
| |
;; |
| |
|
| |
RC) |
| |
|
| |
# Source file extension for RC test sources. |
| |
ac_ext=rc |
| |
|
| |
# Object file extension for compiled RC test sources. |
| |
objext=o |
| |
objext_RC=$objext |
| |
|
| |
# Code to be used in simple compile tests |
| |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| |
|
| |
# Code to be used in simple link tests |
| |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
| |
|
| |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| |
|
| |
# If no C compiler was specified, use CC. |
| |
LTCC=${LTCC-"$CC"} |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
set dummy $CC |
| |
compiler="$2" |
| |
|
| |
# Allow CC to be a program name with arguments. |
| |
lt_save_CC="$CC" |
| |
CC=${RC-"windres"} |
| |
set dummy $CC |
| |
compiler="$2" |
| |
compiler_RC=$CC |
| |
lt_cv_prog_compiler_c_o_RC=yes |
| |
|
| |
# The else clause should only fire when bootstrapping the |
| |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| |
# with your package, and you will get complaints that there are |
| |
# no rules to generate ltmain.sh. |
| |
if test -f "$ltmain"; then |
| |
# Now quote all the things that may contain metacharacters while being |
| |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| |
# variables and quote the copies for generation of the libtool script. |
| |
for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \ |
| |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| |
lt_cv_sys_global_symbol_to_c_name_address \ |
| |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| |
old_postinstall_cmds old_postuninstall_cmds \ |
| |
HOST_CC \ |
| |
compiler_RC \ |
| |
CC_RC \ |
| |
LD_RC \ |
| |
lt_prog_compiler_wl_RC \ |
| |
lt_prog_compiler_pic_RC \ |
| |
lt_prog_compiler_static_RC \ |
| |
lt_prog_compiler_no_builtin_flag_RC \ |
| |
export_dynamic_flag_spec_RC \ |
| |
thread_safe_flag_spec_RC \ |
| |
whole_archive_flag_spec_RC \ |
| |
old_archive_cmds_RC \ |
| |
old_archive_from_new_cmds_RC \ |
| |
predep_objects_RC \ |
| |
postdep_objects_RC \ |
| |
predeps_RC \ |
| |
postdeps_RC \ |
| |
compiler_lib_search_path_RC \ |
| |
archive_cmds_RC \ |
| |
archive_expsym_cmds_RC \ |
| |
postinstall_cmds_RC \ |
| |
postuninstall_cmds_RC \ |
| |
old_archive_from_expsyms_cmds_RC \ |
| |
allow_undefined_flag_RC \ |
| |
no_undefined_flag_RC \ |
| |
export_symbols_cmds_RC \ |
| |
hardcode_libdir_flag_spec_RC \ |
| |
hardcode_libdir_separator_RC \ |
| |
lt_cv_prog_compiler_c_o_RC \ |
| |
exclude_expsyms_RC \ |
| |
include_expsyms_RC; do |
| |
|
| |
case $var in |
| |
old_archive_cmds_RC | \ |
| |
old_archive_from_new_cmds_RC | \ |
| |
archive_cmds_RC | \ |
| |
archive_expsym_cmds_RC | \ |
| |
old_archive_from_expsyms_cmds_RC | \ |
| |
export_symbols_cmds_RC | \ |
| |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| |
postinstall_cmds | postuninstall_cmds | \ |
| |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| |
# Double-quote double-evaled strings. |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| |
;; |
| |
*) |
| |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| |
;; |
| |
esac |
| |
done |
| |
|
| |
case $lt_echo in |
| |
*'\$0 --fallback-echo"') |
| |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| |
;; |
| |
esac |
| |
|
| |
cfgfile="$ofile" |
| |
|
| |
cat <<__EOF__ >> "$cfgfile" |
| |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| |
|
| |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| |
|
| |
# Shell to use when invoking shell scripts. |
| |
SHELL=$lt_SHELL |
| |
|
| |
# Whether or not to build shared libraries. |
| |
build_libtool_libs=$enable_shared |
| |
|
| |
# Whether or not to build static libraries. |
| |
build_old_libs=$enable_static |
| |
|
| |
# Whether or not to add -lc for building shared libraries. |
| |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
| |
|
| |
# Whether or not to optimize for fast installation. |
| |
fast_install=$enable_fast_install |
| |
|
| |
# The host system. |
| |
host_alias=$host_alias |
| |
host=$host |
| |
|
| |
# An echo program that does not interpret backslashes. |
| |
echo=$lt_echo |
| |
|
| |
# The archiver. |
| |
AR=$lt_AR |
| |
AR_FLAGS=$lt_AR_FLAGS |
| |
|
| |
# A C compiler. |
| |
LTCC=$lt_LTCC |
| |
|
| |
# A C compiler for the build system. |
| |
HOST_CC=$lt_HOST_CC |
| |
|
| |
# A language-specific compiler. |
| |
CC=$lt_compiler_RC |
| |
|
| |
# Is the compiler the GNU C compiler? |
| |
with_gcc=$GCC_RC |
| |
|
| |
# The linker used to build libraries. |
| |
LD=$lt_LD_RC |
| |
|
| |
# Whether we need hard or soft links. |
| |
LN_S=$lt_LN_S |
| |
|
| |
# A BSD-compatible nm program. |
| |
NM=$lt_NM |
| |
|
| |
# A symbol stripping program |
| |
STRIP=$STRIP |
| |
|
| |
# Used to examine libraries when file_magic_cmd begins "file" |
| |
MAGIC_CMD=$MAGIC_CMD |
| |
|
| |
# Used on cygwin: DLL creation program. |
| |
DLLTOOL="$DLLTOOL" |
| |
|
| |
# Used on cygwin: object dumper. |
| |
OBJDUMP="$OBJDUMP" |
| |
|
| |
# Used on cygwin: assembler. |
| |
AS="$AS" |
| |
|
| |
# The name of the directory that contains temporary libtool files. |
| |
objdir=$objdir |
| |
|
| |
# How to create reloadable object files. |
| |
reload_flag=$lt_reload_flag |
| |
reload_cmds=$lt_reload_cmds |
| |
|
| |
# How to pass a linker flag through the compiler. |
| |
wl=$lt_lt_prog_compiler_wl_RC |
| |
|
| |
# Object file suffix (normally "o"). |
| |
objext="$ac_objext" |
| |
|
| |
# Old archive suffix (normally "a"). |
| |
libext="$libext" |
| |
|
| |
# Executable file suffix (normally ""). |
| |
exeext="$exeext" |
| |
|
| |
# Additional compiler flags for building library objects. |
| |
pic_flag=$lt_lt_prog_compiler_pic_RC |
| |
pic_mode=$pic_mode |
| |
|
| |
# What is the maximum length of a command? |
| |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| |
|
| |
# Does compiler simultaneously support -c and -o options? |
| |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| |
|
| |
# Must we lock files when doing compilation ? |
| |
need_locks=$lt_need_locks |
| |
|
| |
# Do we need the lib prefix for modules? |
| |
need_lib_prefix=$need_lib_prefix |
| |
|
| |
# Do we need a version for libraries? |
| |
need_version=$need_version |
| |
|
| |
# Whether dlopen is supported. |
| |
dlopen_support=$enable_dlopen |
| |
|
| |
# Whether dlopen of programs is supported. |
| |
dlopen_self=$enable_dlopen_self |
| |
|
| |
# Whether dlopen of statically linked programs is supported. |
| |
dlopen_self_static=$enable_dlopen_self_static |
| |
|
| |
# Compiler flag to prevent dynamic linking. |
| |
link_static_flag=$lt_lt_prog_compiler_static_RC |
| |
|
| |
# Compiler flag to turn off builtin functions. |
| |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| |
|
| |
# Compiler flag to allow reflexive dlopens. |
| |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| |
|
| |
# Compiler flag to generate shared objects directly from archives. |
| |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| |
|
| |
# Compiler flag to generate thread-safe objects. |
| |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| |
|
| |
# Library versioning type. |
| |
version_type=$version_type |
| |
|
| |
# Format of library name prefix. |
| |
libname_spec=$lt_libname_spec |
| |
|
| |
# List of archive names. First name is the real one, the rest are links. |
| |
# The last name is the one that the linker finds with -lNAME. |
| |
library_names_spec=$lt_library_names_spec |
| |
|
| |
# The coded name of the library, if different from the real name. |
| |
soname_spec=$lt_soname_spec |
| |
|
| |
# Commands used to build and install an old-style archive. |
| |
RANLIB=$lt_RANLIB |
| |
old_archive_cmds=$lt_old_archive_cmds_RC |
| |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| |
|
| |
# Create an old-style archive from a shared archive. |
| |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| |
|
| |
# Create a temporary old-style archive to link instead of a shared archive. |
| |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| |
|
| |
# Commands used to build and install a shared archive. |
| |
archive_cmds=$lt_archive_cmds_RC |
| |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| |
postinstall_cmds=$lt_postinstall_cmds |
| |
postuninstall_cmds=$lt_postuninstall_cmds |
| |
|
| |
# Commands to strip libraries. |
| |
old_striplib=$lt_old_striplib |
| |
striplib=$lt_striplib |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predep_objects=$lt_predep_objects_RC |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdep_objects=$lt_postdep_objects_RC |
| |
|
| |
# Dependencies to place before the objects being linked to create a |
| |
# shared library. |
| |
predeps=$lt_predeps_RC |
| |
|
| |
# Dependencies to place after the objects being linked to create a |
| |
# shared library. |
| |
postdeps=$lt_postdeps_RC |
| |
|
| |
# The library search path used internally by the compiler when linking |
| |
# a shared library. |
| |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| |
|
| |
# Method to check whether dependent libraries are shared objects. |
| |
deplibs_check_method=$lt_deplibs_check_method |
| |
|
| |
# Command to use when deplibs_check_method == file_magic. |
| |
file_magic_cmd=$lt_file_magic_cmd |
| |
|
| |
# Flag that allows shared libraries with undefined symbols to be built. |
| |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
| |
|
| |
# Flag that forces no undefined symbols. |
| |
no_undefined_flag=$lt_no_undefined_flag_RC |
| |
|
| |
# Commands used to finish a libtool library installation in a directory. |
| |
finish_cmds=$lt_finish_cmds |
| |
|
| |
# Same as above, but a single script fragment to be evaled but not shown. |
| |
finish_eval=$lt_finish_eval |
| |
|
| |
# Take the output of nm and produce a listing of raw symbols and C names. |
| |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| |
|
| |
# Transform the output of nm in a proper C declaration |
| |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| |
|
| |
# Transform the output of nm in a C name address pair |
| |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| |
|
| |
# This is the shared library runtime path variable. |
| |
runpath_var=$runpath_var |
| |
|
| |
# This is the shared library path variable. |
| |
shlibpath_var=$shlibpath_var |
| |
|
| |
# Is shlibpath searched before the hard-coded library search path? |
| |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| |
|
| |
# How to hardcode a shared library path into an executable. |
| |
hardcode_action=$hardcode_action_RC |
| |
|
| |
# Whether we should hardcode library paths into libraries. |
| |
hardcode_into_libs=$hardcode_into_libs |
| |
|
| |
# Flag to hardcode \$libdir into a binary during linking. |
| |
# This must work even if \$libdir does not exist. |
| |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| |
|
| |
# Whether we need a single -rpath flag with a separated argument. |
| |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| |
|
| |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_direct=$hardcode_direct_RC |
| |
|
| |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| |
# resulting binary. |
| |
hardcode_minus_L=$hardcode_minus_L_RC |
| |
|
| |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| |
# the resulting binary. |
| |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| |
|
| |
# Variables whose values should be saved in libtool wrapper scripts and |
| |
# restored at relink time. |
| |
variables_saved_for_relink="$variables_saved_for_relink" |
| |
|
| |
# Whether libtool must link a program against all its dependency libraries. |
| |
link_all_deplibs=$link_all_deplibs_RC |
| |
|
| |
# Compile-time system search path for libraries |
| |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| |
|
| |
# Run-time system search path for libraries |
| |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| |
|
| |
# Fix the shell variable \$srcfile for the compiler. |
| |
fix_srcfile_path="$fix_srcfile_path_RC" |
| |
|
| |
# Set to yes if exported symbols are required. |
| |
always_export_symbols=$always_export_symbols_RC |
| |
|
| |
# The commands to list exported symbols. |
| |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
| |
|
| |
# The commands to extract the exported symbol list from a shared archive. |
| |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| |
|
| |
# Symbols that should not be listed in the preloaded symbols. |
| |
exclude_expsyms=$lt_exclude_expsyms_RC |
| |
|
| |
# Symbols that must always be exported. |
| |
include_expsyms=$lt_include_expsyms_RC |
| |
|
| |
# ### END LIBTOOL TAG CONFIG: $tagname |
| |
|
| |
__EOF__ |
| |
|
| |
else |
| |
# If there is no Makefile yet, we rely on a make rule to execute |
| |
# `config.status --recheck' to rerun these tests and create the |
| |
# libtool script then. |
| |
test -f Makefile && make "$ltmain" |
| |
fi |
| |
|
| |
ac_ext=c |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| |
|
| |
CC="$lt_save_CC" |
| |
|
| |
;; |
| |
|
| |
*) |
| |
{ { echo "$as_me:16199: error: Unsupported tag name: $tagname" >&5 |
| |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
;; |
| |
esac |
| |
|
| |
# Append the new tag name to the list of available tags. |
| |
available_tags="$available_tags $tagname" |
| fi |
fi |
| |
done |
| |
IFS="$lt_save_ifs" |
| |
|
| case "${removing}" in |
# Now substitute the updated list of available tags. |
| "") |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| case "${subdir}" in |
mv "${ofile}T" "$ofile" |
| .) ;; |
chmod +x "$ofile" |
| *) eval echo Building in ${subdir} ${redirect} ;; |
else |
| esac |
rm -f "${ofile}T" |
| |
{ { echo "$as_me:16217: error: unable to update list of available tagged configurations." >&5 |
| |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
|
| # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest) |
# This can be used to rebuild libtool when needed |
| # Set up the list of links to be made. |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| # ${links} is the list of link names, and ${files} is the list of names to link to. |
|
| |
|
| # Make the links. |
# Always use our own libtool. |
| configlinks="${links}" |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| if [ -r ${subdir}/config.status ] ; then |
|
| mv -f ${subdir}/config.status ${subdir}/config.back |
|
| fi |
|
| while [ -n "${files}" ] ; do |
|
| # set file to car of files, files to cdr of files |
|
| set ${files}; file=$1; shift; files=$* |
|
| set ${links}; link=$1; shift; links=$* |
|
| |
|
| if [ ! -r ${srcdir}/${file} ] ; then |
# Prevent multiple expansion |
| echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2 |
|
| echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2 |
|
| exit 1 |
|
| fi |
|
| |
|
| ${remove} -f ${link} |
# Generate an error here if attempting to build both shared and static when |
| # Make a symlink if possible, otherwise try a hard link |
# $libname.a is in $library_names_spec (as mentioned above), rather than |
| if ${symbolic_link} ${srcdir}/${file} ${link} >/dev/null 2>&1 ; then |
# wait for ar or ld to fail. |
| true |
# |
| else |
if test "$enable_shared" = yes && test "$enable_static" = yes; then |
| # We need to re-remove the file because Lynx leaves a |
case $library_names_spec in |
| # very strange directory there when it fails an NFS symlink. |
*libname.a*) |
| ${remove} -r -f ${link} |
{ { echo "$as_me:16238: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5 |
| ${hard_link} ${srcdir}/${file} ${link} |
echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;} |
| fi |
{ (exit 1); exit 1; }; } |
| if [ ! -r ${link} ] ; then |
;; |
| echo '***' "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2 |
esac |
| exit 1 |
fi |
| fi |
|
| |
|
| echo "Linked \"${link}\" to \"${srcdir}/${file}\"." |
# How to assemble, used with CFLAGS etc, see mpn/Makeasm.am. |
| done |
# Using the compiler is a lot easier than figuring out how to invoke the |
| |
# assembler directly. |
| |
# |
| |
test -n "$CCAS" || CCAS="$CC -c" |
| |
|
| # Create a .gdbinit file which runs the one in srcdir |
case $host in |
| # and tells GDB to look there for source files. |
i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) |
| |
# If there's any sse2 or mmx in the path, check whether the assembler |
| |
# supports it, and remove if not. |
| |
case "$path" in |
| |
*mmx*) echo "$as_me:16256: checking if the assembler knows about MMX instructions" >&5 |
| |
echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_x86_mmx+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
.text |
| |
movq %mm0, %mm1 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:16266: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16269: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_x86_mmx=yes |
| |
case $host in |
| |
*-*-solaris*) |
| |
if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then |
| |
if grep "0f 6f c1" conftest.out >/dev/null; then |
| |
gmp_cv_asm_x86_mmx=movq-bug |
| |
fi |
| |
else |
| |
{ echo "$as_me:16280: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5 |
| |
echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;} |
| |
fi |
| |
esac |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
gmp_cv_asm_x86_mmx=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| if [ -r ${srcdir}/${subdir}/.gdbinit ] ; then |
fi |
| case ${srcdir} in |
echo "$as_me:16293: result: $gmp_cv_asm_x86_mmx" >&5 |
| .) ;; |
echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6 |
| *) cat > ${subdir}/.gdbinit <<EOF |
|
| # ${NO_EDIT} |
case $gmp_cv_asm_x86_mmx in |
| dir ${makesrcdir} |
movq-bug) |
| dir . |
{ echo "$as_me:16298: WARNING: +----------------------------------------------------------" >&5 |
| source ${makesrcdir}/.gdbinit |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
{ echo "$as_me:16300: WARNING: | WARNING WARNING WARNING" >&5 |
| |
echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} |
| |
{ echo "$as_me:16302: WARNING: | Host CPU has MMX code, but the assembler" >&5 |
| |
echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;} |
| |
{ echo "$as_me:16304: WARNING: | $CCAS $CFLAGS" >&5 |
| |
echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} |
| |
{ echo "$as_me:16306: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5 |
| |
echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;} |
| |
{ echo "$as_me:16308: WARNING: | movq operands are reversed." >&5 |
| |
echo "$as_me: WARNING: | movq operands are reversed." >&2;} |
| |
{ echo "$as_me:16310: WARNING: | Non-MMX replacements will be used." >&5 |
| |
echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} |
| |
{ echo "$as_me:16312: WARNING: | This will be an inferior build." >&5 |
| |
echo "$as_me: WARNING: | This will be an inferior build." >&2;} |
| |
{ echo "$as_me:16314: WARNING: +----------------------------------------------------------" >&5 |
| |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
;; |
| |
no) |
| |
{ echo "$as_me:16318: WARNING: +----------------------------------------------------------" >&5 |
| |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
{ echo "$as_me:16320: WARNING: | WARNING WARNING WARNING" >&5 |
| |
echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} |
| |
{ echo "$as_me:16322: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5 |
| |
echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;} |
| |
{ echo "$as_me:16324: WARNING: | $CCAS $CFLAGS" >&5 |
| |
echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} |
| |
{ echo "$as_me:16326: WARNING: | Non-MMX replacements will be used." >&5 |
| |
echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} |
| |
{ echo "$as_me:16328: WARNING: | This will be an inferior build." >&5 |
| |
echo "$as_me: WARNING: | This will be an inferior build." >&2;} |
| |
{ echo "$as_me:16330: WARNING: +----------------------------------------------------------" >&5 |
| |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
;; |
| |
esac |
| |
if test "$gmp_cv_asm_x86_mmx" = yes; then |
| |
: |
| |
else |
| |
tmp_path= |
| |
for i in $path; do |
| |
case $i in |
| |
*/*mmx*) ;; |
| |
*) tmp_path="$tmp_path $i" ;; |
| |
esac |
| |
done |
| |
path="$tmp_path" |
| |
|
| |
fi |
| |
;; |
| |
esac |
| |
case "$path" in |
| |
*sse2*) echo "$as_me:16350: checking if the assembler knows about SSE2 instructions" >&5 |
| |
echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_x86_sse2+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
.text |
| |
paddq %mm0, %mm1 |
| EOF |
EOF |
| ;; |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| esac |
if { (eval echo "$as_me:16360: \"$gmp_assemble\"") >&5 |
| fi |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16363: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_x86_sse2=yes |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
gmp_cv_asm_x86_sse2=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| # Install a makefile, and make it set VPATH |
fi |
| # if necessary so that the sources are found. |
echo "$as_me:16376: result: $gmp_cv_asm_x86_sse2" >&5 |
| # Also change its value of srcdir. |
echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6 |
| # NOTE: Makefile generation constitutes the majority of the time in configure. Hence, this section has |
case $gmp_cv_asm_x86_sse2 in |
| # been somewhat optimized and is perhaps a bit twisty. |
yes) |
| |
: |
| |
;; |
| |
*) |
| |
{ echo "$as_me:16383: WARNING: +----------------------------------------------------------" >&5 |
| |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
{ echo "$as_me:16385: WARNING: | WARNING WARNING WARNING" >&5 |
| |
echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} |
| |
{ echo "$as_me:16387: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5 |
| |
echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;} |
| |
{ echo "$as_me:16389: WARNING: | $CCAS $CFLAGS" >&5 |
| |
echo "$as_me: WARNING: | $CCAS $CFLAGS" >&2;} |
| |
{ echo "$as_me:16391: WARNING: | Non-SSE2 replacements will be used." >&5 |
| |
echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;} |
| |
{ echo "$as_me:16393: WARNING: | This will be an inferior build." >&5 |
| |
echo "$as_me: WARNING: | This will be an inferior build." >&2;} |
| |
{ echo "$as_me:16395: WARNING: +----------------------------------------------------------" >&5 |
| |
echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} |
| |
tmp_path= |
| |
for i in $path; do |
| |
case $i in |
| |
*/sse2) ;; |
| |
*) tmp_path="$tmp_path $i" ;; |
| |
esac |
| |
done |
| |
path="$tmp_path" |
| |
|
| # code is order so as to try to sed the smallest input files we know. |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
|
| # the four makefile fragments MUST end up in the resulting Makefile in this order: |
# The library and header checks are mostly for the benefit of supplementary |
| # package, target, host, and site. so do these separately because I don't trust the |
# programs. libgmp doesn't use anything too weird. |
| # order of sed -e expressions. |
|
| |
|
| if [ -f ${srcdir}/${subdir}/${Makefile_in} ] ; then |
echo "$as_me:16416: checking for ANSI C header files" >&5 |
| |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| |
if test "${ac_cv_header_stdc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16422 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
#include <stdarg.h> |
| |
#include <string.h> |
| |
#include <float.h> |
| |
|
| # Conditionalize for this site from "Makefile.in" (or whatever it's called) into Makefile.tem |
_ACEOF |
| rm -f ${subdir}/Makefile.tem |
if { (eval echo "$as_me:16430: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| case "${site}" in |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| "") cp ${srcdir}/${subdir}/${Makefile_in} ${subdir}/Makefile.tem ;; |
ac_status=$? |
| *) |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| site_makefile_frag=${srcdir}/config/ms-${site} |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:16436: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
ac_cv_header_stdc=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
|
| if [ -f ${site_makefile_frag} ] ; then |
if test $ac_cv_header_stdc = yes; then |
| sed -e "/^####/ r ${site_makefile_frag}" ${srcdir}/${subdir}/${Makefile_in} \ |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| > ${subdir}/Makefile.tem |
cat >conftest.$ac_ext <<_ACEOF |
| else |
#line 16458 "configure" |
| cp ${srcdir}/${subdir}/${Makefile_in} ${subdir}/Makefile.tem |
#include "confdefs.h" |
| site_makefile_frag= |
#include <string.h> |
| fi |
|
| ;; |
|
| esac |
|
| # working copy now in ${subdir}/Makefile.tem |
|
| |
|
| # Conditionalize the makefile for this host. |
_ACEOF |
| rm -f ${Makefile} |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| case "${host_makefile_frag}" in |
egrep "memchr" >/dev/null 2>&1; then |
| "") mv ${subdir}/Makefile.tem ${Makefile} ;; |
: |
| *) |
else |
| if [ ! -f ${host_makefile_frag} ] ; then |
ac_cv_header_stdc=no |
| host_makefile_frag=${srcdir}/${host_makefile_frag} |
fi |
| fi |
rm -f conftest* |
| if [ -f ${host_makefile_frag} ] ; then |
|
| sed -e "/^####/ r ${host_makefile_frag}" ${subdir}/Makefile.tem > ${Makefile} |
|
| else |
|
| echo '***' Expected host makefile fragment \"${host_makefile_frag}\" 1>&2 |
|
| echo '***' is missing in ${PWD=`pwd`}. 1>&2 |
|
| mv ${subdir}/Makefile.tem ${Makefile} |
|
| fi |
|
| esac |
|
| # working copy now in ${Makefile} |
|
| |
|
| # Conditionalize the makefile for this target. |
fi |
| rm -f ${subdir}/Makefile.tem |
|
| case "${target_makefile_frag}" in |
|
| "") mv ${Makefile} ${subdir}/Makefile.tem ;; |
|
| *) |
|
| if [ ! -f ${target_makefile_frag} ] ; then |
|
| target_makefile_frag=${srcdir}/${target_makefile_frag} |
|
| fi |
|
| if [ -f ${target_makefile_frag} ] ; then |
|
| sed -e "/^####/ r ${target_makefile_frag}" ${Makefile} > ${subdir}/Makefile.tem |
|
| else |
|
| mv ${Makefile} ${subdir}/Makefile.tem |
|
| target_makefile_frag= |
|
| fi |
|
| ;; |
|
| esac |
|
| # real copy now in ${subdir}/Makefile.tem |
|
| |
|
| # Conditionalize the makefile for this package. |
if test $ac_cv_header_stdc = yes; then |
| rm -f ${Makefile} |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| case "${package_makefile_frag}" in |
cat >conftest.$ac_ext <<_ACEOF |
| "") mv ${subdir}/Makefile.tem ${Makefile} ;; |
#line 16476 "configure" |
| *) |
#include "confdefs.h" |
| if [ ! -f ${package_makefile_frag} ] ; then |
#include <stdlib.h> |
| package_makefile_frag=${srcdir}/${package_makefile_frag} |
|
| fi |
|
| if [ -f ${package_makefile_frag} ] ; then |
|
| sed -e "/^####/ r ${package_makefile_frag}" ${subdir}/Makefile.tem > ${Makefile} |
|
| rm -f ${subdir}/Makefile.tem |
|
| else |
|
| echo '***' Expected package makefile fragment \"${package_makefile_frag}\" 1>&2 |
|
| echo '***' is missing in ${PWD=`pwd`}. 1>&2 |
|
| mv ${subdir}/Makefile.tem ${Makefile} |
|
| fi |
|
| esac |
|
| # working copy now in ${Makefile} |
|
| |
|
| mv ${Makefile} ${subdir}/Makefile.tem |
_ACEOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "free" >/dev/null 2>&1; then |
| |
: |
| |
else |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| # real copy now in ${subdir}/Makefile.tem |
fi |
| |
|
| # prepend warning about editting, and a bunch of variables. |
if test $ac_cv_header_stdc = yes; then |
| rm -f ${Makefile} |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| cat > ${Makefile} <<EOF |
if test "$cross_compiling" = yes; then |
| # ${NO_EDIT} |
: |
| VPATH = ${makesrcdir} |
else |
| links = ${configlinks} |
cat >conftest.$ac_ext <<_ACEOF |
| host_alias = ${host_alias} |
#line 16497 "configure" |
| host_cpu = ${host_cpu} |
#include "confdefs.h" |
| host_vendor = ${host_vendor} |
#include <ctype.h> |
| host_os = ${host_os} |
#if ((' ' & 0x0FF) == 0x020) |
| host_canonical = ${host_cpu}-${host_vendor}-${host_os} |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| target_alias = ${target_alias} |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| target_cpu = ${target_cpu} |
#else |
| target_vendor = ${target_vendor} |
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| target_os = ${target_os} |
|| ('j' <= (c) && (c) <= 'r') \ |
| target_canonical = ${target_cpu}-${target_vendor}-${target_os} |
|| ('s' <= (c) && (c) <= 'z')) |
| |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| |
#endif |
| |
|
| |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| |
int |
| |
main () |
| |
{ |
| |
int i; |
| |
for (i = 0; i < 256; i++) |
| |
if (XOR (islower (i), ISLOWER (i)) |
| |
|| toupper (i) != TOUPPER (i)) |
| |
exit(2); |
| |
exit (0); |
| |
} |
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:16523: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16526: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:16528: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16531: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
fi |
| |
fi |
| |
echo "$as_me:16544: result: $ac_cv_header_stdc" >&5 |
| |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| |
if test $ac_cv_header_stdc = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define STDC_HEADERS 1 |
| EOF |
EOF |
| case "${build}" in |
|
| "") ;; |
fi |
| *) cat >> ${Makefile} << EOF |
|
| build_alias = ${build_alias} |
echo "$as_me:16554: checking whether time.h and sys/time.h may both be included" >&5 |
| build_cpu = ${build_cpu} |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| build_vendor = ${build_vendor} |
if test "${ac_cv_header_time+set}" = set; then |
| build_os = ${build_os} |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| build_canonical = ${build_cpu}-${build_vendor}-${build_os} |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16560 "configure" |
| |
#include "confdefs.h" |
| |
#include <sys/types.h> |
| |
#include <sys/time.h> |
| |
#include <time.h> |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
if ((struct tm *) 0) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16576: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16579: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16582: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16585: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_header_time=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_header_time=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16595: result: $ac_cv_header_time" >&5 |
| |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
| |
if test $ac_cv_header_time = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define TIME_WITH_SYS_TIME 1 |
| EOF |
EOF |
| esac |
|
| |
|
| case "${package_makefile_frag}" in |
fi |
| "") ;; |
|
| /*) echo package_makefile_frag = ${package_makefile_frag} >>${Makefile} ;; |
|
| *) echo package_makefile_frag = ${invsubdir}${package_makefile_frag} >>${Makefile} ;; |
|
| esac |
|
| |
|
| case "${target_makefile_frag}" in |
# Reasons for testing: |
| "") ;; |
# sys/param.h - not in mingw |
| /*) echo target_makefile_frag = ${target_makefile_frag} >>${Makefile} ;; |
# sys/processor.h - solaris specific, though also present in macos |
| *) echo target_makefile_frag = ${invsubdir}${target_makefile_frag} >>${Makefile} ;; |
# sys/resource.h - not in mingw |
| esac |
# sys/sysctl.h - not in mingw |
| |
# sys/syssgi.h - IRIX specific |
| |
# sys/systemcfg.h - AIX specific |
| |
# sys/times.h - not in mingw |
| |
# |
| |
# inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf |
| |
# default tests |
| |
# |
| |
|
| case "${host_makefile_frag}" in |
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 |
| "") ;; |
do |
| /*) echo host_makefile_frag = ${host_makefile_frag} >>${Makefile} ;; |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| *) echo host_makefile_frag = ${invsubdir}${host_makefile_frag} >>${Makefile} ;; |
echo "$as_me:16621: checking for $ac_header" >&5 |
| esac |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16627 "configure" |
| |
#include "confdefs.h" |
| |
#include <$ac_header> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:16631: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:16637: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
eval "$as_ac_Header=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_Header=no" |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16656: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| if [ "${site_makefile_frag}" != "" ] ; then |
fi |
| echo site_makefile_frag = ${invsubdir}${site_makefile_frag} >>${Makefile} |
done |
| fi |
|
| |
|
| # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS, |
# optarg should be in unistd.h, which is already in the default includes |
| # remove any form feeds. |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| if [ -z "${subdirs}" ]; then |
|
| rm -f ${subdir}/Makefile.tem2 |
|
| sed -e "s:^SUBDIRS[ ]*=.*$:SUBDIRS = ${configdirs}:" \ |
|
| -e "s:^NONSUBDIRS[ ]*=.*$:NONSUBDIRS = ${noconfigdirs}:" \ |
|
| ${subdir}/Makefile.tem > ${subdir}/Makefile.tem2 |
|
| rm -f ${subdir}/Makefile.tem |
|
| mv ${subdir}/Makefile.tem2 ${subdir}/Makefile.tem |
|
| fi |
|
| sed -e "s:^prefix[ ]*=.*$:prefix = ${prefix}:" \ |
|
| -e "s:^exec_prefix[ ]*=.*$:exec_prefix = ${exec_prefix}:" \ |
|
| -e "/^CC[ ]*=/{ |
|
| :loop1 |
|
| /\\\\$/ N |
|
| /\\\\$/ b loop1 |
|
| s/\\\\\\n//g |
|
| s%^CC[ ]*=.*$%CC = ${CC}% |
|
| }" \ |
|
| -e "/^CXX[ ]*=/{ |
|
| :loop2 |
|
| /\\\\$/ N |
|
| /\\\\$/ b loop2 |
|
| s/\\\\\\n//g |
|
| s%^CXX[ ]*=.*$%CXX = ${CXX}% |
|
| }" \ |
|
| -e "s:^SHELL[ ]*=.*$:SHELL = ${config_shell}:" \ |
|
| -e "s:^GDB_TK[ ]*=.*$:GDB_TK = ${GDB_TK}:" \ |
|
| -e "s:^srcdir[ ]*=.*$:srcdir = ${makesrcdir}:" \ |
|
| -e "s///" \ |
|
| -e "s:^program_prefix[ ]*=.*$:program_prefix = ${program_prefix}:" \ |
|
| -e "s:^program_suffix[ ]*=.*$:program_suffix = ${program_suffix}:" \ |
|
| -e "s:^program_transform_name[ ]*=.*$:program_transform_name = ${program_transform_name}:" \ |
|
| -e "s:^tooldir[ ]*=.*$:tooldir = ${tooldir}:" \ |
|
| ${subdir}/Makefile.tem >> ${Makefile} |
|
| |
|
| # If this is a Canadian Cross, preset the values of many more |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| # tools. |
inttypes.h stdint.h unistd.h |
| if [ "${build}" != "${host}" ]; then |
do |
| for var in ${tools}; do |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| val=`eval 'echo $'"${var}"` |
echo "$as_me:16673: checking for $ac_header" >&5 |
| sed -e "/^${var}[ ]*=/{ |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| :loop1 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| /\\\\$/ N |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| /\\\\$/ b loop1 |
else |
| s/\\\\\\n//g |
cat >conftest.$ac_ext <<_ACEOF |
| s%^${var}[ ]*=.*$%${var} = ${val}% |
#line 16679 "configure" |
| }" ${Makefile} > ${Makefile}.tem |
#include "confdefs.h" |
| mv -f ${Makefile}.tem ${Makefile} |
$ac_includes_default |
| done |
#include <$ac_header> |
| fi |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16685: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16688: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16691: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16694: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
eval "$as_ac_Header=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_Header=no" |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16704: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| # final copy now in ${Makefile} |
fi |
| |
done |
| |
|
| else |
echo "$as_me:16714: checking whether fgetc is declared" >&5 |
| echo "No Makefile.in found in ${srcdir}/${subdir}, unable to configure" 1>&2 |
echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6 |
| fi |
if test "${ac_cv_have_decl_fgetc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16720 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
#ifndef fgetc |
| |
char *p = (char *) fgetc; |
| |
#endif |
| |
|
| rm -f ${subdir}/Makefile.tem |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16735: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16738: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16741: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16744: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_have_decl_fgetc=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_have_decl_fgetc=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16754: result: $ac_cv_have_decl_fgetc" >&5 |
| |
echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6 |
| |
if test $ac_cv_have_decl_fgetc = yes; then |
| |
|
| case "${host_makefile_frag}" in |
cat >>confdefs.h <<EOF |
| "") using= ;; |
#define HAVE_DECL_FGETC 1 |
| *) using="and \"${host_makefile_frag}\"" ;; |
EOF |
| esac |
|
| |
|
| case "${target_makefile_frag}" in |
else |
| "") ;; |
cat >>confdefs.h <<EOF |
| *) using="${using} and \"${target_makefile_frag}\"" ;; |
#define HAVE_DECL_FGETC 0 |
| esac |
EOF |
| |
|
| case "${site_makefile_frag}" in |
fi |
| "") ;; |
echo "$as_me:16768: checking whether fscanf is declared" >&5 |
| *) using="${using} and \"${site_makefile_frag}\"" ;; |
echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6 |
| esac |
if test "${ac_cv_have_decl_fscanf+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16774 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
#ifndef fscanf |
| |
char *p = (char *) fscanf; |
| |
#endif |
| |
|
| newusing=`echo "${using}" | sed 's/and/using/'` |
; |
| using=${newusing} |
return 0; |
| echo "Created \"${Makefile}\" in" ${PWD=`pwd`} ${using} |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16789: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16792: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16795: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16798: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_have_decl_fscanf=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_have_decl_fscanf=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16808: result: $ac_cv_have_decl_fscanf" >&5 |
| |
echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6 |
| |
if test $ac_cv_have_decl_fscanf = yes; then |
| |
|
| . ${tmpfile}.pos |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_FSCANF 1 |
| |
EOF |
| |
|
| # describe the chosen configuration in config.status. |
else |
| # Make that file a shellscript which will reestablish |
cat >>confdefs.h <<EOF |
| # the same configuration. Used in Makefiles to rebuild |
#define HAVE_DECL_FSCANF 0 |
| # Makefiles. |
EOF |
| |
|
| case "${norecursion}" in |
fi |
| "") arguments="${arguments} --norecursion" ;; |
echo "$as_me:16822: checking whether optarg is declared" >&5 |
| *) ;; |
echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6 |
| esac |
if test "${ac_cv_have_decl_optarg+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16828 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
#ifndef optarg |
| |
char *p = (char *) optarg; |
| |
#endif |
| |
|
| if [ ${subdir} = . ] ; then |
; |
| echo "#!/bin/sh |
return 0; |
| # ${NO_EDIT} |
} |
| # This directory was configured as follows: |
_ACEOF |
| ${progname}" ${arguments} " |
rm -f conftest.$ac_objext |
| # ${using}" > ${subdir}/config.new |
if { (eval echo "$as_me:16843: \"$ac_compile\"") >&5 |
| else |
(eval $ac_compile) 2>&5 |
| echo "#!/bin/sh |
ac_status=$? |
| # ${NO_EDIT} |
echo "$as_me:16846: \$? = $ac_status" >&5 |
| # This directory was configured as follows: |
(exit $ac_status); } && |
| cd ${invsubdir} |
{ ac_try='test -s conftest.$ac_objext' |
| ${progname}" ${arguments} " |
{ (eval echo "$as_me:16849: \"$ac_try\"") >&5 |
| # ${using}" > ${subdir}/config.new |
(eval $ac_try) 2>&5 |
| fi |
ac_status=$? |
| chmod a+x ${subdir}/config.new |
echo "$as_me:16852: \$? = $ac_status" >&5 |
| if [ -r ${subdir}/config.back ] ; then |
(exit $ac_status); }; }; then |
| mv -f ${subdir}/config.back ${subdir}/config.status |
ac_cv_have_decl_optarg=yes |
| fi |
else |
| ${moveifchange} ${subdir}/config.new ${subdir}/config.status |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_have_decl_optarg=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16862: result: $ac_cv_have_decl_optarg" >&5 |
| |
echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6 |
| |
if test $ac_cv_have_decl_optarg = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_OPTARG 1 |
| |
EOF |
| |
|
| |
else |
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_OPTARG 0 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:16876: checking whether ungetc is declared" >&5 |
| |
echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6 |
| |
if test "${ac_cv_have_decl_ungetc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16882 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
#ifndef ungetc |
| |
char *p = (char *) ungetc; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16897: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16900: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16903: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16906: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_have_decl_ungetc=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_have_decl_ungetc=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16916: result: $ac_cv_have_decl_ungetc" >&5 |
| |
echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6 |
| |
if test $ac_cv_have_decl_ungetc = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_UNGETC 1 |
| |
EOF |
| |
|
| |
else |
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_UNGETC 0 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:16930: checking whether vfprintf is declared" >&5 |
| |
echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6 |
| |
if test "${ac_cv_have_decl_vfprintf+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16936 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
#ifndef vfprintf |
| |
char *p = (char *) vfprintf; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:16951: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16954: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:16957: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:16960: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_have_decl_vfprintf=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_have_decl_vfprintf=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:16970: result: $ac_cv_have_decl_vfprintf" >&5 |
| |
echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6 |
| |
if test $ac_cv_have_decl_vfprintf = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_VFPRINTF 1 |
| |
EOF |
| |
|
| |
else |
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_DECL_VFPRINTF 0 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:16985: checking return type of signal handlers" >&5 |
| |
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_signal+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 16991 "configure" |
| |
#include "confdefs.h" |
| |
#include <sys/types.h> |
| |
#include <signal.h> |
| |
#ifdef signal |
| |
# undef signal |
| |
#endif |
| |
#ifdef __cplusplus |
| |
extern "C" void (*signal (int, void (*)(int)))(int); |
| |
#else |
| |
void (*signal ()) (); |
| |
#endif |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
int i; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17013: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17016: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17019: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17022: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_signal=void |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_signal=int |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17032: result: $ac_cv_type_signal" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define RETSIGTYPE $ac_cv_type_signal |
| |
EOF |
| |
|
| |
# the default includes are sufficient for all these types |
| |
echo "$as_me:17040: checking for intmax_t" >&5 |
| |
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_intmax_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17046 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((intmax_t *) 0) |
| |
return 0; |
| |
if (sizeof (intmax_t)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17061: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17064: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17067: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17070: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_intmax_t=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_intmax_t=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17080: result: $ac_cv_type_intmax_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_intmax_t" >&6 |
| |
if test $ac_cv_type_intmax_t = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_INTMAX_T 1 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:17089: checking for long double" >&5 |
| |
echo $ECHO_N "checking for long double... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_long_double+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17095 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((long double *) 0) |
| |
return 0; |
| |
if (sizeof (long double)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17110: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17113: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17116: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17119: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_long_double=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_long_double=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17129: result: $ac_cv_type_long_double" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_long_double" >&6 |
| |
if test $ac_cv_type_long_double = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_LONG_DOUBLE 1 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:17138: checking for long long" >&5 |
| |
echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_long_long+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17144 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((long long *) 0) |
| |
return 0; |
| |
if (sizeof (long long)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17159: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17162: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17165: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17168: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_long_long=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_long_long=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17178: result: $ac_cv_type_long_long" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| |
if test $ac_cv_type_long_long = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_LONG_LONG 1 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:17187: checking for ptrdiff_t" >&5 |
| |
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17193 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((ptrdiff_t *) 0) |
| |
return 0; |
| |
if (sizeof (ptrdiff_t)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17208: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17211: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17214: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17217: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_ptrdiff_t=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_ptrdiff_t=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17227: result: $ac_cv_type_ptrdiff_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
| |
if test $ac_cv_type_ptrdiff_t = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_PTRDIFF_T 1 |
| |
EOF |
| |
|
| |
fi |
| |
echo "$as_me:17236: checking for quad_t" >&5 |
| |
echo $ECHO_N "checking for quad_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_quad_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17242 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((quad_t *) 0) |
| |
return 0; |
| |
if (sizeof (quad_t)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17257: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17260: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17263: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17266: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_quad_t=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_quad_t=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17276: result: $ac_cv_type_quad_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_quad_t" >&6 |
| |
if test $ac_cv_type_quad_t = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_QUAD_T 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17286: checking for preprocessor stringizing operator" >&5 |
| |
echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6 |
| |
if test "${ac_cv_c_stringize+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17292 "configure" |
| |
#include "confdefs.h" |
| |
#define x(y) #y |
| |
|
| |
char *s = x(teststring); |
| |
_ACEOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "#teststring" >/dev/null 2>&1; then |
| |
ac_cv_c_stringize=no |
| |
else |
| |
ac_cv_c_stringize=yes |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:17307: result: $ac_cv_c_stringize" >&5 |
| |
echo "${ECHO_T}$ac_cv_c_stringize" >&6 |
| |
if test $ac_cv_c_stringize = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_STRINGIZE 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17317: checking for working volatile" >&5 |
| |
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| |
if test "${ac_cv_c_volatile+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17323 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
volatile int x; |
| |
int * volatile y; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17337: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17340: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17343: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17346: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_c_volatile=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_c_volatile=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17356: result: $ac_cv_c_volatile" >&5 |
| |
echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
| |
if test $ac_cv_c_volatile = no; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define volatile |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17366: checking whether <stdarg.h> exists and works" >&5 |
| |
echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_stdarg+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17372 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdarg.h> |
| |
int foo (int x, ...) |
| |
{ |
| |
va_list ap; |
| |
int y; |
| |
va_start (ap, x); |
| |
y = va_arg (ap, int); |
| |
va_end (ap); |
| |
return y; |
| |
} |
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17393: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17396: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17399: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17402: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_c_stdarg=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_c_stdarg=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
fi |
| |
echo "$as_me:17413: result: $gmp_cv_c_stdarg" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_stdarg" >&6 |
| |
if test $gmp_cv_c_stdarg = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_STDARG 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17423: checking whether gcc __attribute__ ((const)) works" >&5 |
| |
echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_attribute_const+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17429 "configure" |
| |
#include "confdefs.h" |
| |
int foo (int x) __attribute__ ((const)); |
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17441: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17444: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17447: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17450: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_c_attribute_const=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_c_attribute_const=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
fi |
| |
echo "$as_me:17461: result: $gmp_cv_c_attribute_const" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6 |
| |
if test $gmp_cv_c_attribute_const = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ATTRIBUTE_CONST 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17471: checking whether gcc __attribute__ ((malloc)) works" >&5 |
| |
echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_attribute_malloc+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.c <<EOF |
| |
void *foo (int x) __attribute__ ((malloc)); |
| |
EOF |
| |
gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:17480: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17483: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if grep "attribute directive ignored" conftest.out >/dev/null; then |
| |
gmp_cv_c_attribute_malloc=no |
| |
else |
| |
gmp_cv_c_attribute_malloc=yes |
| |
fi |
| |
else |
| |
gmp_cv_c_attribute_malloc=no |
| |
fi |
| |
cat conftest.out >&5 |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:17497: result: $gmp_cv_c_attribute_malloc" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6 |
| |
if test $gmp_cv_c_attribute_malloc = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ATTRIBUTE_MALLOC 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17507: checking whether gcc __attribute__ ((mode (XX))) works" >&5 |
| |
echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_attribute_mode+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17513 "configure" |
| |
#include "confdefs.h" |
| |
typedef int SItype __attribute__ ((mode (SI))); |
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17525: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17528: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17531: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17534: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_c_attribute_mode=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_c_attribute_mode=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
fi |
| |
echo "$as_me:17545: result: $gmp_cv_c_attribute_mode" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6 |
| |
if test $gmp_cv_c_attribute_mode = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ATTRIBUTE_MODE 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17555: checking whether gcc __attribute__ ((noreturn)) works" >&5 |
| |
echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_attribute_noreturn+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17561 "configure" |
| |
#include "confdefs.h" |
| |
void foo (int x) __attribute__ ((noreturn)); |
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17573: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17576: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17579: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17582: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_c_attribute_noreturn=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_c_attribute_noreturn=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
fi |
| |
echo "$as_me:17593: result: $gmp_cv_c_attribute_noreturn" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6 |
| |
if test $gmp_cv_c_attribute_noreturn = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ATTRIBUTE_NORETURN 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17603: checking for inline" >&5 |
| |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_inline+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_c_inline=no |
| |
for i in inline __inline__ __inline; do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17611 "configure" |
| |
#include "confdefs.h" |
| |
#ifndef __cplusplus |
| |
typedef int foo_t; |
| |
$i foo_t func1 () { return 0; } |
| |
static $i foo_t func2 () { return 0; } |
| |
#endif |
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17627: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17630: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17633: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17636: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_c_inline=$i |
| |
break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
if test $gmp_cv_c_inline = inline; then |
| |
gmp_cv_c_inline=yes |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:17651: result: $gmp_cv_c_inline" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_inline" >&6 |
| |
case $gmp_cv_c_inline in |
| |
inline | yes) ;; |
| |
no) |
| |
cat >>confdefs.h <<\EOF |
| |
#define inline |
| |
EOF |
| |
;; |
| |
*) cat >>confdefs.h <<EOF |
| |
#define inline $gmp_cv_c_inline |
| |
EOF |
| |
;; |
| |
esac |
| |
|
| |
case $gmp_cv_c_inline in |
| |
no) ;; |
| |
*) |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17670 "configure" |
| |
#include "confdefs.h" |
| |
#define __GMP_WITHIN_CONFIGURE_INLINE 1 |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
#ifndef __GMP_EXTERN_INLINE |
| |
die die die |
| |
#endif |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:17693: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17696: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:17699: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17702: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
case $gmp_cv_c_inline in |
| |
yes) tmp_inline=inline ;; |
| |
*) tmp_inline=$gmp_cv_c_inline ;; |
| |
esac |
| |
{ echo "$as_me:17712: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5 |
| |
echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;} |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
;; |
| |
esac |
| |
|
| |
# from libtool |
| |
LIBM= |
| |
case $host in |
| |
*-*-beos* | *-*-cygwin* | *-*-pw32*) |
| |
# These system don't have libm |
| |
;; |
| |
*-ncr-sysv4.3*) |
| |
echo "$as_me:17726: checking for _mwvalidcheckl in -lmw" >&5 |
| |
echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lmw $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17734 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char _mwvalidcheckl (); |
| |
int |
| |
main () |
| |
{ |
| |
_mwvalidcheckl (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:17753: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17756: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:17759: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17762: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_mw__mwvalidcheckl=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_mw__mwvalidcheckl=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:17773: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 |
| |
if test $ac_cv_lib_mw__mwvalidcheckl = yes; then |
| |
LIBM="-lmw" |
| |
fi |
| |
|
| |
echo "$as_me:17779: checking for main in -lm" >&5 |
| |
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_m_main+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lm $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17787 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
main (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:17799: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17802: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:17805: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17808: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_m_main=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_m_main=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:17819: result: $ac_cv_lib_m_main" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| |
if test $ac_cv_lib_m_main = yes; then |
| |
LIBM="$LIBM -lm" |
| |
fi |
| |
|
| |
;; |
| |
*) |
| |
echo "$as_me:17827: checking for main in -lm" >&5 |
| |
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_m_main+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lm $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17835 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
main (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:17847: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17850: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:17853: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17856: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_m_main=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_m_main=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:17867: result: $ac_cv_lib_m_main" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| |
if test $ac_cv_lib_m_main = yes; then |
| |
LIBM="-lm" |
| |
fi |
| |
|
| |
;; |
| |
esac |
| |
|
| |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| |
# for constant arguments. Useless! |
| |
echo "$as_me:17878: checking for working alloca.h" >&5 |
| |
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| |
if test "${gmp_cv_header_alloca+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17884 "configure" |
| |
#include "confdefs.h" |
| |
#include <alloca.h> |
| |
int |
| |
main () |
| |
{ |
| |
char *p = (char *) alloca (2 * sizeof (int)); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:17896: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17899: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:17902: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17905: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_header_alloca=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_header_alloca=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17915: result: $gmp_cv_header_alloca" >&5 |
| |
echo "${ECHO_T}$gmp_cv_header_alloca" >&6 |
| |
if test $gmp_cv_header_alloca = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ALLOCA_H 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17925: checking for alloca (via gmp-impl.h)" >&5 |
| |
echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6 |
| |
if test "${gmp_cv_func_alloca+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 17931 "configure" |
| |
#include "confdefs.h" |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
#include "$srcdir/gmp-impl.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
char *p = (char *) alloca (1); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:17951: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17954: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:17957: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:17960: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
gmp_cv_func_alloca=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_func_alloca=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:17970: result: $gmp_cv_func_alloca" >&5 |
| |
echo "${ECHO_T}$gmp_cv_func_alloca" >&6 |
| |
if test $gmp_cv_func_alloca = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_ALLOCA 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:17980: checking how to allocate temporary memory" >&5 |
| |
echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6 |
| |
if test "${gmp_cv_option_alloca+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $enable_alloca in |
| |
yes) |
| |
gmp_cv_option_alloca=alloca |
| |
;; |
| |
no) |
| |
gmp_cv_option_alloca=malloc-reentrant |
| |
;; |
| |
reentrant | notreentrant) |
| |
case $gmp_cv_func_alloca in |
| |
yes) gmp_cv_option_alloca=alloca ;; |
| |
*) gmp_cv_option_alloca=malloc-$enable_alloca ;; |
| |
esac |
| |
;; |
| |
*) |
| |
gmp_cv_option_alloca=$enable_alloca |
| |
;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:18004: result: $gmp_cv_option_alloca" >&5 |
| |
echo "${ECHO_T}$gmp_cv_option_alloca" >&6 |
| |
case $gmp_cv_option_alloca in |
| |
alloca) |
| |
if test $gmp_cv_func_alloca = no; then |
| |
{ { echo "$as_me:18009: error: --enable-alloca=alloca specified, but alloca not available" >&5 |
| |
echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_TMP_ALLOCA 1 |
| |
EOF |
| |
|
| |
;; |
| |
malloc-reentrant) |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_TMP_REENTRANT 1 |
| |
EOF |
| |
|
| |
TAL_OBJECT=tal-reent$U.lo |
| |
;; |
| |
malloc-notreentrant) |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_TMP_NOTREENTRANT 1 |
| |
EOF |
| |
|
| |
TAL_OBJECT=tal-notreent$U.lo |
| |
;; |
| |
debug) |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WANT_TMP_DEBUG 1 |
| |
EOF |
| |
|
| |
TAL_OBJECT=tal-debug$U.lo |
| |
;; |
| |
*) |
| |
# checks at the start of configure.in should protect us |
| |
{ { echo "$as_me:18045: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5 |
| |
echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
;; |
| |
esac |
| |
|
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18052 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
#if ! _GMP_H_HAVE_FILE |
| |
die die die |
| |
#endif |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:18075: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18078: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:18081: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18084: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
{ echo "$as_me:18090: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5 |
| |
echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;} |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
case $host in |
| |
vax*-*-*) |
| |
# not IEEE (neither D nor G formats are IEEE) |
| |
;; |
| |
none-*-*) |
| |
# don't worry about this when CPU "none" |
| |
;; |
| |
*) |
| |
case $path in |
| |
*cray/cfp*) |
| |
# not IEEE |
| ;; |
;; |
| |
*) |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18109 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| *) rm -f ${Makefile} ${subdir}/config.status ${links} ;; |
#include "$srcdir/gmp-impl.h" |
| |
#ifndef _GMP_IEEE_FLOATS |
| |
die die die |
| |
#endif |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:18133: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18136: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:18139: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18142: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
|
| |
{ echo "$as_me:18149: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&5 |
| |
echo "$as_me: WARNING: gmp-impl.h doesnt recognise \"double\" as IEEE." >&2;} |
| |
{ echo "$as_me:18151: WARNING: If your CPU floats are in fact IEEE then you" >&5 |
| |
echo "$as_me: WARNING: If your CPU floats are in fact IEEE then you" >&2;} |
| |
{ echo "$as_me:18153: WARNING: might like to augment the tests there." >&5 |
| |
echo "$as_me: WARNING: might like to augment the tests there." >&2;} |
| |
|
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
;; |
| esac |
esac |
| |
;; |
| |
esac |
| |
|
| |
# FIXME: Autoconf 2.52 AC_C_BIGENDIAN bombs when cross compiling, but in the |
| |
# future the probes will be better and this override can be removed. |
| |
if test "$cross_compiling" = yes; then |
| |
ac_cv_c_bigendian=unknown |
| |
fi |
| |
echo "$as_me:18168: checking whether byte ordering is bigendian" >&5 |
| |
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| |
if test "${ac_cv_c_bigendian+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_cv_c_bigendian=unknown |
| |
# See if sys/param.h defines the BYTE_ORDER macro. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18176 "configure" |
| |
#include "confdefs.h" |
| |
#include <sys/types.h> |
| |
#include <sys/param.h> |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| |
bogus endian macros |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:18193: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18196: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:18199: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18202: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18206 "configure" |
| |
#include "confdefs.h" |
| |
#include <sys/types.h> |
| |
#include <sys/param.h> |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
#if BYTE_ORDER != BIG_ENDIAN |
| |
not big endian |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:18223: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18226: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:18229: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18232: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_c_bigendian=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_c_bigendian=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
if test $ac_cv_c_bigendian = unknown; then |
| |
if test "$cross_compiling" = yes; then |
| |
{ { echo "$as_me:18248: error: cannot run test program while cross compiling" >&5 |
| |
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18253 "configure" |
| |
#include "confdefs.h" |
| |
int |
| |
main () |
| |
{ |
| |
/* Are we little or big endian? From Harbison&Steele. */ |
| |
union |
| |
{ |
| |
long l; |
| |
char c[sizeof (long)]; |
| |
} u; |
| |
u.l = 1; |
| |
exit (u.c[sizeof (long) - 1] == 1); |
| |
} |
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:18269: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18272: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:18274: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18277: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_c_bigendian=no |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_c_bigendian=yes |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
fi |
| |
fi |
| |
echo "$as_me:18290: result: $ac_cv_c_bigendian" >&5 |
| |
echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| |
if test $ac_cv_c_bigendian = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define WORDS_BIGENDIAN 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
# Enhancement: In the future AC_C_BIGENDIAN will accept these actions as |
| |
# parameters. |
| |
case $ac_cv_c_bigendian in |
| |
yes) cat >>confdefs.h <<\EOF |
| |
#define HAVE_LIMB_BIG_ENDIAN 1 |
| |
EOF |
| |
;; |
| |
no) cat >>confdefs.h <<\EOF |
| |
#define HAVE_LIMB_LITTLE_ENDIAN 1 |
| |
EOF |
| |
;; |
| |
unknown) ;; |
| |
*) { { echo "$as_me:18312: error: Oops, unrecognised ac_cv_c_bigendian" >&5 |
| |
echo "$as_me: error: Oops, unrecognised ac_cv_c_bigendian" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
|
| |
echo "$as_me:18317: checking format of \`double' floating point" >&5 |
| |
echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6 |
| |
if test "${gmp_cv_c_double_format+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_c_double_format=unknown |
| |
cat >conftest.c <<\EOF |
| |
struct { |
| |
char before[8]; |
| |
double x; |
| |
char after[8]; |
| |
} foo = { |
| |
{ 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF }, |
| |
-123456789.0, |
| |
{ 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 }, |
| |
}; |
| |
EOF |
| |
gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1" |
| |
if { (eval echo "$as_me:18335: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18338: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat >conftest.awk <<\EOF |
| |
|
| |
BEGIN { |
| |
found = 0 |
| |
} |
| |
|
| |
{ |
| |
for (f = 2; f <= NF; f++) |
| |
{ |
| |
for (i = 0; i < 23; i++) |
| |
got[i] = got[i+1]; |
| |
got[23] = $f; |
| |
|
| |
# match the special begin and end sequences |
| |
if (got[0] != "001") continue |
| |
if (got[1] != "043") continue |
| |
if (got[2] != "105") continue |
| |
if (got[3] != "147") continue |
| |
if (got[4] != "211") continue |
| |
if (got[5] != "253") continue |
| |
if (got[6] != "315") continue |
| |
if (got[7] != "357") continue |
| |
if (got[16] != "376") continue |
| |
if (got[17] != "334") continue |
| |
if (got[18] != "272") continue |
| |
if (got[19] != "230") continue |
| |
if (got[20] != "166") continue |
| |
if (got[21] != "124") continue |
| |
if (got[22] != "062") continue |
| |
if (got[23] != "020") continue |
| |
|
| |
saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")" |
| |
|
| |
if (got[8] == "000" && \ |
| |
got[9] == "000" && \ |
| |
got[10] == "000" && \ |
| |
got[11] == "124" && \ |
| |
got[12] == "064" && \ |
| |
got[13] == "157" && \ |
| |
got[14] == "235" && \ |
| |
got[15] == "301") |
| |
{ |
| |
print "IEEE little endian" |
| |
found = 1 |
| |
exit |
| |
} |
| |
|
| |
# ARM style little endian but with the two 4-byte halves swapped |
| |
if (got[8] == "064" && \ |
| |
got[9] == "157" && \ |
| |
got[10] == "235" && \ |
| |
got[11] == "301" && \ |
| |
got[12] == "000" && \ |
| |
got[13] == "000" && \ |
| |
got[14] == "000" && \ |
| |
got[15] == "124") |
| |
{ |
| |
print "IEEE little endian, swapped halves" |
| |
found = 1 |
| |
exit |
| |
} |
| |
|
| |
if (got[8] == "301" && \ |
| |
got[9] == "235" && \ |
| |
got[10] == "157" && \ |
| |
got[11] == "064" && \ |
| |
got[12] == "124" && \ |
| |
got[13] == "000" && \ |
| |
got[14] == "000" && \ |
| |
got[15] == "000") |
| |
{ |
| |
print "IEEE big endian" |
| |
found = 1 |
| |
exit |
| |
} |
| |
|
| |
if (got[8] == "353" && \ |
| |
got[9] == "315" && \ |
| |
got[10] == "242" && \ |
| |
got[11] == "171" && \ |
| |
got[12] == "000" && \ |
| |
got[13] == "240" && \ |
| |
got[14] == "000" && \ |
| |
got[15] == "000") |
| |
{ |
| |
print "VAX D" |
| |
found = 1 |
| |
exit |
| |
} |
| |
|
| |
if (got[8] == "275" && \ |
| |
got[9] == "301" && \ |
| |
got[10] == "064" && \ |
| |
got[11] == "157" && \ |
| |
got[12] == "000" && \ |
| |
got[13] == "124" && \ |
| |
got[14] == "000" && \ |
| |
got[15] == "000") |
| |
{ |
| |
print "VAX G" |
| |
found = 1 |
| |
exit |
| |
} |
| |
|
| |
if (got[8] == "300" && \ |
| |
got[9] == "033" && \ |
| |
got[10] == "353" && \ |
| |
got[11] == "171" && \ |
| |
got[12] == "242" && \ |
| |
got[13] == "240" && \ |
| |
got[14] == "000" && \ |
| |
got[15] == "000") |
| |
{ |
| |
print "Cray CFP" |
| |
found = 1 |
| |
exit |
| |
} |
| |
} |
| |
} |
| |
|
| |
END { |
| |
if (! found) |
| |
print "unknown", saw |
| |
} |
| |
|
| |
EOF |
| |
gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk` |
| |
case $gmp_cv_c_double_format in |
| |
unknown*) |
| |
echo "cannot match anything, conftest.$OBJEXT contains" >&5 |
| |
od -b conftest.$OBJEXT >&5 |
| |
;; |
| |
esac |
| |
else |
| |
{ echo "$as_me:18474: WARNING: oops, cannot compile test program" >&5 |
| |
echo "$as_me: WARNING: oops, cannot compile test program" >&2;} |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:18479: result: $gmp_cv_c_double_format" >&5 |
| |
echo "${ECHO_T}$gmp_cv_c_double_format" >&6 |
| |
|
| |
case $gmp_cv_c_double_format in |
| |
"IEEE big endian") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1 |
| |
EOF |
| |
;; |
| |
"IEEE little endian") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1 |
| |
EOF |
| |
;; |
| |
"IEEE little endian, swapped halves") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1 |
| |
EOF |
| |
;; |
| |
"VAX D") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_VAX_D 1 |
| |
EOF |
| |
;; |
| |
"VAX G") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_VAX_G 1 |
| |
EOF |
| |
;; |
| |
"Cray CFP") |
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DOUBLE_CRAY_CFP 1 |
| |
EOF |
| |
;; |
| |
unknown*) |
| |
;; |
| |
*) |
| |
{ echo "$as_me:18516: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5 |
| |
echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;} |
| |
;; |
| |
esac |
| |
|
| |
# On m68k NetBSD 1.4.1 getrusage() is doubtful. ru_utime looks microsecond |
| |
# accurate but has been seen remaining unchanged after many microseconds |
| |
# have elapsed. This upsets the tune and speed programs, so pretend it |
| |
# doesn't exist. |
| |
# |
| |
# FIXME: Would prefer tune/time.c to do a run-time test for this rather than |
| |
# driving it from the system name. |
| |
# |
| |
case $host in |
| |
m68*-*-netbsd1.4*) ac_cv_func_getrusage=no ;; |
| |
esac |
| |
|
| |
# Reasons for testing: |
| |
# alarm - not in mingw |
| |
# clock_gettime - not in glibc 2.2.4, only very recent systems |
| |
# cputime - not in glibc |
| |
# gettimeofday - not in mingw |
| |
# mmap - not in mingw, djgpp |
| |
# obstack_vprintf - glibc specific |
| |
# processor_info - solaris specific |
| |
# read_real_time - AIX specific |
| |
# sigaction - not in mingw |
| |
# sigaltstack - not in mingw, old AIX (reputedly) |
| |
# sigstack - not in mingw |
| |
# strnlen - glibc extension |
| |
# syssgi - IRIX specific |
| |
# times - not in mingw |
| |
# |
| |
# clock_gettime is in librt on *-*-osf5.1. We could look for it |
| |
# there, but that's not worth bothering with unless it has a decent |
| |
# resolution (in a quick test clock_getres said only 1 millisecond). |
| |
# |
| |
|
| |
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 |
| |
do |
| |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| |
echo "$as_me:18557: checking for $ac_func" >&5 |
| |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18563 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char $ac_func (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char $ac_func (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| |
choke me |
| |
#else |
| |
f = $ac_func; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:18594: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18597: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:18600: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18603: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
eval "$as_ac_var=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_var=no" |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:18613: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
fi |
| done |
done |
| |
|
| # If there are subdirectories, then recur. |
# FIXME: Would have done this with an AM_CONDITIONAL, but automake 1.5 |
| if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then |
# doesn't like that under libgmp_la_DEPENDENCIES. |
| for configdir in ${configdirs} ; do |
|
| |
|
| if [ -d ${srcdir}/${configdir} ] ; then |
echo "$as_me:18626: checking for vsnprintf" >&5 |
| eval echo Configuring ${configdir}... ${redirect} |
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 |
| case "${srcdir}" in |
if test "${ac_cv_func_vsnprintf+set}" = set; then |
| ".") ;; |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| *) |
else |
| if [ ! -d ./${configdir} ] ; then |
cat >conftest.$ac_ext <<_ACEOF |
| if mkdir ./${configdir} ; then |
#line 18632 "configure" |
| true |
#include "confdefs.h" |
| else |
/* System header to define __stub macros and hopefully few prototypes, |
| echo '***' "${progname}: could not make ${PWD=`pwd`}/${configdir}" 1>&2 |
which can conflict with char vsnprintf (); below. */ |
| exit 1 |
#include <assert.h> |
| fi |
/* Override any gcc2 internal prototype to avoid an error. */ |
| fi |
#ifdef __cplusplus |
| ;; |
extern "C" |
| esac |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char vsnprintf (); |
| |
char (*f) (); |
| |
|
| POPDIR=${PWD=`pwd`} |
int |
| cd ${configdir} |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
| |
choke me |
| |
#else |
| |
f = vsnprintf; |
| |
#endif |
| |
|
| ### figure out what to do with srcdir |
; |
| case "${srcdir}" in |
return 0; |
| ".") newsrcdir=${srcdir} ;; # no -srcdir option. We're building in place. |
} |
| /*) # absolute path |
_ACEOF |
| newsrcdir=${srcdir}/${configdir} |
rm -f conftest.$ac_objext conftest$ac_exeext |
| srcdiroption="--srcdir=${newsrcdir}" |
if { (eval echo "$as_me:18663: \"$ac_link\"") >&5 |
| ;; |
(eval $ac_link) 2>&5 |
| *) # otherwise relative |
ac_status=$? |
| newsrcdir=../${srcdir}/${configdir} |
echo "$as_me:18666: \$? = $ac_status" >&5 |
| srcdiroption="--srcdir=${newsrcdir}" |
(exit $ac_status); } && |
| ;; |
{ ac_try='test -s conftest$ac_exeext' |
| esac |
{ (eval echo "$as_me:18669: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18672: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_func_vsnprintf=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_func_vsnprintf=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:18682: result: $ac_cv_func_vsnprintf" >&5 |
| |
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 |
| |
if test $ac_cv_func_vsnprintf = yes; then |
| |
gmp_vsnprintf_exists=yes |
| |
else |
| |
gmp_vsnprintf_exists=no |
| |
fi |
| |
|
| # Handle --cache-file=../XXX |
if test "$gmp_vsnprintf_exists" = no; then |
| case "${cache_file}" in |
gmp_cv_func_vsnprintf=no |
| "") # empty |
else |
| ;; |
echo "$as_me:18693: checking whether vsnprintf works" >&5 |
| /*) # absolute path |
echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6 |
| cache_file_option="--cache-file=${cache_file}" |
if test "${gmp_cv_func_vsnprintf+set}" = set; then |
| ;; |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| *) # relative path |
else |
| cache_file_option="--cache-file=../${cache_file}" |
gmp_cv_func_vsnprintf=yes |
| ;; |
for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do |
| esac |
if test "$cross_compiling" = yes; then |
| |
gmp_cv_func_vsnprintf=probably; break |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 18704 "configure" |
| |
#include "confdefs.h" |
| |
|
| ### check for guested configure, otherwise fix possibly relative progname |
#include <string.h> /* for strcmp */ |
| if [ -f ${newsrcdir}/configure ] ; then |
#include <stdio.h> /* for vsnprintf */ |
| recprog=${newsrcdir}/configure |
|
| elif [ -f ${newsrcdir}/configure.in ] ; then |
|
| case "${progname}" in |
|
| /*) recprog=${progname} ;; |
|
| *) recprog=../${progname} ;; |
|
| esac |
|
| else |
|
| eval echo No configuration information in ${configdir} ${redirect} |
|
| recprog= |
|
| fi |
|
| |
|
| ### The recursion line is here. |
#if HAVE_STDARG |
| if [ ! -z "${recprog}" ] ; then |
#include <stdarg.h> |
| if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} \ |
#else |
| ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \ |
#include <varargs.h> |
| ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${removing} ${other_options} ${redirect} ; then |
#endif |
| true |
|
| else |
|
| echo Configure in `pwd` failed, exiting. 1>&2 |
|
| exit 1 |
|
| fi |
|
| fi |
|
| |
|
| cd ${POPDIR} |
int |
| |
#if HAVE_STDARG |
| |
check (const char *fmt, ...) |
| |
#else |
| |
check (va_alist) |
| |
va_dcl |
| |
#endif |
| |
{ |
| |
static char buf[128]; |
| |
va_list ap; |
| |
int ret; |
| |
|
| |
#if HAVE_STDARG |
| |
va_start (ap, fmt); |
| |
#else |
| |
char *fmt; |
| |
va_start (ap); |
| |
fmt = va_arg (ap, char *); |
| |
#endif |
| |
|
| |
ret = vsnprintf (buf, 4, fmt, ap); |
| |
|
| |
if (strcmp (buf, "hel") != 0) |
| |
exit (1); |
| |
|
| |
/* allowed return values */ |
| |
if (ret != -1 && ret != 3 && ret != 11) |
| |
exit (2); |
| |
|
| |
return 0; |
| |
} |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
$i |
| |
exit (0); |
| |
} |
| |
|
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:18757: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18760: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:18762: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:18765: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
gmp_cv_func_vsnprintf=no; break |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
done |
| |
|
| |
fi |
| |
echo "$as_me:18779: result: $gmp_cv_func_vsnprintf" >&5 |
| |
echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6 |
| |
if test "$gmp_cv_func_vsnprintf" = probably; then |
| |
{ echo "$as_me:18782: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5 |
| |
echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;} |
| |
fi |
| |
if test "$gmp_cv_func_vsnprintf" != no; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_VSNPRINTF 1 |
| |
EOF |
| |
|
| |
fi |
| |
fi |
| |
|
| |
if test "$gmp_cv_func_vsnprintf" = no; then |
| |
REPL_VSNPRINTF_PRINTF_OBJ='printf/repl-vsnprintf$U.lo' |
| |
|
| |
REPL_VSNPRINTF_OBJ='repl-vsnprintf$U.lo' |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:18801: checking whether sscanf needs writable input" >&5 |
| |
echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6 |
| |
if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-hpux9 | *-*-hpux9.*) |
| |
gmp_cv_func_sscanf_writable_input=yes ;; |
| |
*) gmp_cv_func_sscanf_writable_input=no ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:18813: result: $gmp_cv_func_sscanf_writable_input" >&5 |
| |
echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6 |
| |
case $gmp_cv_func_sscanf_writable_input in |
| |
yes) |
| |
cat >>confdefs.h <<\EOF |
| |
#define SSCANF_WRITABLE_INPUT 1 |
| |
EOF |
| |
;; |
| |
no) ;; |
| |
*) { { echo "$as_me:18822: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5 |
| |
echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
|
| |
# Pick the correct source files in $path and link them to mpn/. |
| |
# $gmp_mpn_functions lists all functions we need. |
| |
# |
| |
# The rule is to find a file with the function name and a .asm, .S, |
| |
# .s, or .c extension. Certain multi-function files with special names |
| |
# can provide some functions too. (mpn/Makefile.am passes |
| |
# -DOPERATION_<func> to get them to generate the right code.) |
| |
|
| |
# FIXME: udiv and umul aren't in $gmp_mpn_functions_optional yet since |
| |
# there's some versions of those files which should be checked for bit |
| |
# rot first. Put them in $extra_functions for each host for now, |
| |
# change to standard optionals when all are ready. |
| |
|
| |
# Note: The following lines defining $gmp_mpn_functions_optional |
| |
# and $gmp_mpn_functions are parsed by the "macos/configure" |
| |
# Perl script. So if you change the lines in a major way |
| |
# make sure to run and examine the output from |
| |
# |
| |
# % (cd macos; perl configure) |
| |
# |
| |
# Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former |
| |
# can optionally provide the latter as an extra entrypoint. Likewise |
| |
# divrem_1 and pre_divrem_1. |
| |
|
| |
gmp_mpn_functions_optional="copyi copyd com_n |
| |
and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \ |
| |
gcd_finda invert_limb sqr_diagonal \ |
| |
mul_2 mul_3 mul_4 addmul_2 addmul_3 addmul_4" |
| |
|
| |
gmp_mpn_functions="$extra_functions \ |
| |
add add_1 add_n sub sub_1 sub_n mul_1 addmul_1 \ |
| |
submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \ |
| |
fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \ |
| |
mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1 \ |
| |
rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \ |
| |
bdivmod gcd_1 gcd gcdext tdiv_qr dc_divrem_n sb_divrem_mn jacbase \ |
| |
$gmp_mpn_functions_optional" |
| |
|
| |
# the list of all object files used by mpn/Makefile.in and the |
| |
# top-level Makefile.in, respectively |
| |
mpn_objects= |
| |
mpn_objs_in_libgmp="mpn/mp_bases.lo" |
| |
|
| |
# links from the sources, to be removed by "make distclean" |
| |
gmp_srclinks= |
| |
|
| |
for tmp_ext in asm S s c; do |
| |
eval found_$tmp_ext=no |
| |
done |
| |
|
| |
for tmp_fn in $gmp_mpn_functions; do |
| |
for tmp_ext in asm S s c; do |
| |
test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext |
| |
done |
| |
|
| |
# mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise |
| |
# mpn_preinv_mod_1 by mod_1.asm. |
| |
case $tmp_fn in |
| |
pre_divrem_1) |
| |
if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;; |
| |
pre_mod_1) |
| |
if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;; |
| |
esac |
| |
|
| |
# functions that can be provided by multi-function files |
| |
tmp_mulfunc= |
| |
case $tmp_fn in |
| |
add_n|sub_n) tmp_mulfunc="aors_n" ;; |
| |
addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;; |
| |
popcount|hamdist) tmp_mulfunc="popham" ;; |
| |
and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n) |
| |
tmp_mulfunc="logops_n" ;; |
| |
lshift|rshift) tmp_mulfunc="lorrshift";; |
| |
esac |
| |
|
| |
found=no |
| |
for tmp_dir in $path; do |
| |
for tmp_base in $tmp_fn $tmp_mulfunc; do |
| |
for tmp_ext in asm S s c; do |
| |
tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext |
| |
if test -f $tmp_file; then |
| |
|
| |
# For a nails build, check if the file supports our nail bits. |
| |
# Generic code always supports all nails. |
| |
# |
| |
# FIXME: When a multi-function file is selected to provide one of |
| |
# the nails-neutral routines, like logops_n for and_n, the |
| |
# PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for |
| |
# all functions in that file, even if they haven't all been |
| |
# nailified. Not sure what to do about this, it's only really a |
| |
# problem for logops_n, and it's not too terrible to insist those |
| |
# get nailified alwasy. |
| |
# |
| |
if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then |
| |
case $tmp_fn in |
| |
and_n | ior_n | xor_n | \ |
| |
copyi | copyd | \ |
| |
popcount | hamdist | \ |
| |
udiv | udiv_qrnnd | udiv_w_sdiv | udiv_fp | udiv_nfp | \ |
| |
umul | umul_ppmm | \ |
| |
cntlz | invert_limb) |
| |
# these operations are either unaffected by nails or defined |
| |
# to operate on full limbs |
| |
;; |
| |
*) |
| |
nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file ` |
| |
for n in $nails; do |
| |
case $n in |
| |
*-*) |
| |
n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'` |
| |
n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'` |
| |
;; |
| |
*) |
| |
n_start=$n |
| |
n_end=$n |
| |
;; |
| |
esac |
| |
if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then |
| |
found=yes |
| |
break |
| |
fi |
| |
done |
| |
if test $found != yes; then |
| |
continue |
| fi |
fi |
| done |
;; |
| |
esac |
| |
fi |
| |
|
| |
found=yes |
| |
eval found_$tmp_ext=yes |
| |
|
| |
if test $tmp_ext = c; then |
| |
tmp_u='$U' |
| |
else |
| |
tmp_u= |
| |
fi |
| |
|
| |
mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo" |
| |
mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo" |
| |
ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" |
| |
|
| |
gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext" |
| |
|
| |
# Duplicate AC_DEFINEs are harmless, so it doesn't matter |
| |
# that multi-function files get grepped here repeatedly. |
| |
# The PROLOGUE pattern excludes the optional second parameter. |
| |
gmp_ep=` |
| |
sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ; |
| |
sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file |
| |
` |
| |
for gmp_tmp in $gmp_ep; do |
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_NATIVE_$gmp_tmp 1 |
| |
EOF |
| |
|
| |
eval HAVE_NATIVE_$gmp_tmp=yes |
| |
done |
| |
|
| |
case $tmp_fn in |
| |
sqr_basecase) sqr_basecase_source=$tmp_file ;; |
| |
esac |
| |
|
| |
break |
| |
fi |
| |
done |
| |
if test $found = yes; then break ; fi |
| |
done |
| |
if test $found = yes; then break ; fi |
| |
done |
| |
|
| |
if test $found = no; then |
| |
for tmp_optional in $gmp_mpn_functions_optional; do |
| |
if test $tmp_optional = $tmp_fn; then |
| |
found=yes |
| |
fi |
| |
done |
| |
if test $found = no; then |
| |
{ { echo "$as_me:19005: error: no version of $tmp_fn found in path: $path" >&5 |
| |
echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
done |
| |
|
| |
# All cycle counters are .asm files currently |
| |
if test -n "$SPEED_CYCLECOUNTER_OBJ"; then |
| |
found_asm=yes |
| fi |
fi |
| |
|
| # Perform the same cleanup as the trap handler, minus the "exit 1" of course, |
# Don't demand an m4 unless it's actually needed. |
| # and reset the trap handler. |
if test $found_asm = yes; then |
| rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos |
|
| trap 0 |
|
| |
|
| exit 0 |
echo "$as_me:19020: checking for suitable m4" >&5 |
| |
echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6 |
| |
if test "${gmp_cv_prog_m4+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$M4"; then |
| |
gmp_cv_prog_m4="$M4" |
| |
else |
| |
cat >conftest.m4 <<\EOF |
| |
define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)', |
| |
``bad: $# not supported (SunOS /usr/bin/m4) |
| |
'')ifelse(eval(89),89,`define(t2,Y)', |
| |
`bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4) |
| |
')ifelse(t1`'t2,YY,`good |
| |
') |
| |
EOF |
| |
echo "trying m4" >&5 |
| |
gmp_tmp_val=`(m4 conftest.m4) 2>&5` |
| |
echo "$gmp_tmp_val" >&5 |
| |
if test "$gmp_tmp_val" = good; then |
| |
gmp_cv_prog_m4="m4" |
| |
else |
| |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| |
ac_dummy="$PATH:/usr/5bin" |
| |
for ac_dir in $ac_dummy; do |
| |
test -z "$ac_dir" && ac_dir=. |
| |
echo "trying $ac_dir/m4" >&5 |
| |
gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5` |
| |
echo "$gmp_tmp_val" >&5 |
| |
if test "$gmp_tmp_val" = good; then |
| |
gmp_cv_prog_m4="$ac_dir/m4" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| |
if test -z "$gmp_cv_prog_m4"; then |
| |
{ { echo "$as_me:19056: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5 |
| |
echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
rm -f conftest.m4 |
| |
fi |
| |
fi |
| |
echo "$as_me:19064: result: $gmp_cv_prog_m4" >&5 |
| |
echo "${ECHO_T}$gmp_cv_prog_m4" >&6 |
| |
M4="$gmp_cv_prog_m4" |
| |
|
| |
echo "$as_me:19068: checking if m4wrap produces spurious output" >&5 |
| |
echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6 |
| |
if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# hide the d-n-l from autoconf's error checking |
| |
tmp_d_n_l=d""nl |
| |
cat >conftest.m4 <<EOF |
| |
changequote({,})define(x,)m4wrap({x})$tmp_d_n_l |
| |
EOF |
| |
echo test input is >&5 |
| |
cat conftest.m4 >&5 |
| |
tmp_chars=`$M4 conftest.m4 | wc -c` |
| |
echo produces $tmp_chars chars output >&5 |
| |
rm -f conftest.m4 |
| |
if test $tmp_chars = 0; then |
| |
gmp_cv_m4_m4wrap_spurious=no |
| |
else |
| |
gmp_cv_m4_m4wrap_spurious=yes |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:19090: result: $gmp_cv_m4_m4wrap_spurious" >&5 |
| |
echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6 |
| |
|
| |
echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4 |
| |
|
| |
else |
| |
M4=m4-not-needed |
| |
fi |
| |
|
| |
# Only do the GMP_ASM checks if there's a .S or .asm wanting them. |
| |
if test $found_asm = no && test $found_S = no; then |
| |
gmp_asm_syntax_testing=no |
| |
fi |
| |
|
| |
if test "$gmp_asm_syntax_testing" != no; then |
| |
echo "$as_me:19105: checking how to switch to text section" >&5 |
| |
echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_text+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-aix*) gmp_cv_asm_text=".csect .text[PR]" ;; |
| |
*-*-hpux*) gmp_cv_asm_text=".code" ;; |
| |
*) gmp_cv_asm_text=".text" ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:19117: result: $gmp_cv_asm_text" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_text" >&6 |
| |
echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19121: checking how to switch to data section" >&5 |
| |
echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_data+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;; |
| |
*) gmp_cv_asm_data=".data" ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:19132: result: $gmp_cv_asm_data" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_data" >&6 |
| |
echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19136: checking what assembly label suffix to use" >&5 |
| |
echo $ECHO_N "checking what assembly label suffix to use... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_label_suffix+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
# Empty is only for the HP-UX hppa assembler; hppa gas requires a colon. |
| |
*-*-hpux*) gmp_cv_asm_label_suffix= ;; |
| |
*) gmp_cv_asm_label_suffix=: ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:19148: result: $gmp_cv_asm_label_suffix" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6 |
| |
echo "define(<LABEL_SUFFIX>, <\$1$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19152: checking how to export a symbol" >&5 |
| |
echo $ECHO_N "checking how to export a symbol... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_globl+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-hpux*) gmp_cv_asm_globl=".export" ;; |
| |
*) gmp_cv_asm_globl=".globl" ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:19163: result: $gmp_cv_asm_globl" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_globl" >&6 |
| |
echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19167: checking if globals are prefixed by underscore" >&5 |
| |
echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_underscore+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftes1.c <<EOF |
| |
#ifdef __cplusplus |
| |
extern "C" { void underscore_test(); } |
| |
#endif |
| |
main () { underscore_test(); } |
| |
EOF |
| |
for tmp_underscore in "" "_"; do |
| |
cat >conftes2.s <<EOF |
| |
$gmp_cv_asm_text |
| |
$gmp_cv_asm_globl ${tmp_underscore}underscore_test |
| |
${tmp_underscore}underscore_test$gmp_cv_asm_label_suffix |
| |
EOF |
| |
case $host in |
| |
*-*-aix*) |
| |
cat >>conftes2.s <<EOF |
| |
$gmp_cv_asm_globl .${tmp_underscore}underscore_test |
| |
.${tmp_underscore}underscore_test$gmp_cv_asm_label_suffix |
| |
EOF |
| |
;; |
| |
esac |
| |
gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftes1.c >&5 && $CCAS $CFLAGS conftes2.s >&5 && $CC $CFLAGS conftes1.$OBJEXT conftes2.$OBJEXT >&5" |
| |
if { (eval echo "$as_me:19193: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19196: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
eval tmp_result$tmp_underscore=yes |
| |
else |
| |
eval tmp_result$tmp_underscore=no |
| |
fi |
| |
done |
| |
|
| |
if test $tmp_result_ = yes; then |
| |
if test $tmp_result = yes; then |
| |
{ { echo "$as_me:19206: error: Test program unexpectedly links both with and without underscore." >&5 |
| |
echo "$as_me: error: Test program unexpectedly links both with and without underscore." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
else |
| |
gmp_cv_asm_underscore=yes |
| |
fi |
| |
else |
| |
if test $tmp_result = yes; then |
| |
gmp_cv_asm_underscore=no |
| |
else |
| |
{ { echo "$as_me:19216: error: Test program links neither with nor without underscore." >&5 |
| |
echo "$as_me: error: Test program links neither with nor without underscore." >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
rm -f conftes1* conftes2* a.out |
| |
|
| |
fi |
| |
echo "$as_me:19224: result: $gmp_cv_asm_underscore" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_underscore" >&6 |
| |
if test "$gmp_cv_asm_underscore" = "yes"; then |
| |
|
| |
echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4 |
| |
|
| |
else |
| |
|
| |
echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 |
| |
|
| |
fi |
| |
|
| |
echo "$as_me:19236: checking how to switch to read-only data section" >&5 |
| |
echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_rodata+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
case $host in |
| |
i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) gmp_cv_asm_rodata="$gmp_cv_asm_data" ;; |
| |
*) gmp_cv_asm_rodata="$gmp_cv_asm_text" ;; |
| |
esac |
| |
|
| |
cat >conftest.c <<EOF |
| |
const int foo = 123; |
| |
EOF |
| |
echo "Test program:" >&5 |
| |
cat conftest.c >&5 |
| |
gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" |
| |
if { (eval echo "$as_me:19253: \"$gmp_compile\"") >&5 |
| |
(eval $gmp_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19256: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
echo "Compiler output:" >&5 |
| |
cat conftest.s >&5 |
| |
if test $gmp_cv_asm_underscore = yes; then |
| |
tmp_gsym_prefix=_ |
| |
else |
| |
tmp_gsym_prefix= |
| |
fi |
| |
# must see our label |
| |
if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then |
| |
# take the last directive before our label (hence skipping segments |
| |
# getting debugging info etc) |
| |
tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q |
| |
/^[. ]*data/p |
| |
/^[. ]*rdata/p |
| |
/^[. ]*text/p |
| |
/^[. ]*section/p |
| |
/^[. ]*csect/p |
| |
/^[. ]*CSECT/p" conftest.s | sed -n '$p'` |
| |
echo "Match: $tmp_match" >&5 |
| |
if test -n "$tmp_match"; then |
| |
gmp_cv_asm_rodata=$tmp_match |
| |
fi |
| |
else |
| |
echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5 |
| |
fi |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:19286: result: $gmp_cv_asm_rodata" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_rodata" >&6 |
| |
echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19290: checking if the export directive needs an attribute" >&5 |
| |
echo $ECHO_N "checking if the export directive needs an attribute... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_globl_attr+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-hpux*) gmp_cv_asm_globl_attr=",entry" ;; |
| |
*) gmp_cv_asm_globl_attr="" ;; |
| |
esac |
| |
|
| |
fi |
| |
echo "$as_me:19301: result: $gmp_cv_asm_globl_attr" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6 |
| |
echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19305: checking for assembler .type directive" >&5 |
| |
echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_type+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_asm_type= |
| |
for gmp_tmp_prefix in @ \# %; do |
| |
cat >conftest.s <<EOF |
| |
.type sym,${gmp_tmp_prefix}function |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19316: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19319: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; |
| |
else |
| |
gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2" |
| |
break |
| |
fi |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
done |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19339: result: $gmp_cv_asm_type" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_type" >&6 |
| |
echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19343: checking for assembler .size directive" >&5 |
| |
echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_size+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_asm_size= |
| |
cat >conftest.s <<EOF |
| |
.size sym,1 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19353: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19356: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; |
| |
else |
| |
gmp_cv_asm_size=".size \$1,\$2" |
| |
fi |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19372: result: $gmp_cv_asm_size" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_size" >&6 |
| |
echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19376: checking what prefix to use for a local label" >&5 |
| |
echo $ECHO_N "checking what prefix to use for a local label... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_lsym_prefix+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
for gmp_tmp_pre in L .L $ L$; do |
| |
echo "Trying $gmp_tmp_pre" >&5 |
| |
cat >conftest.s <<EOF |
| |
dummy${gmp_cv_asm_label_suffix} |
| |
${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix} |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19388: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19391: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else |
| |
cat conftest.nm >&5 |
| |
{ echo "$as_me:19396: WARNING: \"$NM\" failure" >&5 |
| |
echo "$as_me: WARNING: \"$NM\" failure" >&2;} |
| |
break |
| |
fi |
| |
cat conftest.nm >&5 |
| |
if grep gurkmacka conftest.nm >/dev/null; then : ; else |
| |
# no mention of the symbol, this is good |
| |
gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" |
| |
break |
| |
fi |
| |
if grep ' [Nt] .*gurkmacka' conftest.nm >/dev/null; then |
| |
# symbol mentioned as a local, use this if nothing better |
| |
if test -z "$gmp_cv_asm_lsym_prefix"; then |
| |
gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" |
| |
fi |
| |
fi |
| |
|
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
done |
| |
rm -f conftest* |
| |
if test -z "$gmp_cv_asm_lsym_prefix"; then |
| |
gmp_cv_asm_lsym_prefix=L |
| |
{ echo "$as_me:19425: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5 |
| |
echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;} |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:19430: result: $gmp_cv_asm_lsym_prefix" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6 |
| |
echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4 |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix" |
| |
EOF |
| |
|
| |
echo "$as_me:19438: checking how to define a 32-bit word" >&5 |
| |
echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_w32+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $host in |
| |
*-*-hpux*) |
| |
# FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption |
| |
# that it's at 0x0. We'll have to declare another symbol before the |
| |
# .long/.word and look at the distance between the two symbols. The |
| |
# only problem is that the sed expression(s) barfs (on Solaris, for |
| |
# example) for the symbol with value 0. For now, HPUX uses .word. |
| |
gmp_cv_asm_w32=".word" |
| |
;; |
| |
*-*-*) |
| |
gmp_tmp_val= |
| |
for gmp_tmp_op in .long .word; do |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_data |
| |
$gmp_cv_asm_globl foo |
| |
$gmp_tmp_op 0 |
| |
foo$gmp_cv_asm_label_suffix |
| |
.byte 0 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19463: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19466: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ |
| |
sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` |
| |
if test "$gmp_tmp_val" = 4; then |
| |
gmp_cv_asm_w32="$gmp_tmp_op" |
| |
break |
| |
fi |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
done |
| |
rm -f conftest* |
| |
;; |
| |
esac |
| |
if test -z "$gmp_cv_asm_w32"; then |
| |
{ { echo "$as_me:19488: error: cannot determine how to define a 32-bit word" >&5 |
| |
echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:19494: result: $gmp_cv_asm_w32" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_w32" >&6 |
| |
echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19498: checking if .align assembly directive is logarithmic" >&5 |
| |
echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_align_log+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_data |
| |
.align 4 |
| |
$gmp_cv_asm_globl foo |
| |
.byte 1 |
| |
.align 4 |
| |
foo$gmp_cv_asm_label_suffix |
| |
.byte 2 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19513: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19516: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ |
| |
sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` |
| |
if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then |
| |
gmp_cv_asm_align_log=yes |
| |
else |
| |
gmp_cv_asm_align_log=no |
| |
fi |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
{ { echo "$as_me:19530: error: cannot assemble alignment test" >&5 |
| |
echo "$as_me: error: cannot assemble alignment test" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19537: result: $gmp_cv_asm_align_log" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_align_log" >&6 |
| |
|
| |
echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 |
| |
|
| |
case $host in |
| |
m68*-*-*) |
| |
|
| |
echo "$as_me:19545: checking assembler instruction and register style" >&5 |
| |
echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_m68k_instruction+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_asm_m68k_instruction=unknown |
| |
for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
$i |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19557: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19560: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_m68k_instruction=$i |
| |
rm -f conftest* |
| |
break |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
done |
| |
|
| |
fi |
| |
echo "$as_me:19577: result: $gmp_cv_asm_m68k_instruction" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6 |
| |
case $gmp_cv_asm_m68k_instruction in |
| |
"addl d0,d1") want_dot_size=no; want_register_percent=no ;; |
| |
"addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;; |
| |
"add.l d0,d1") want_dot_size=yes; want_register_percent=no ;; |
| |
"add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;; |
| |
*) { { echo "$as_me:19584: error: cannot determine assembler instruction and register style" >&5 |
| |
echo "$as_me: error: cannot determine assembler instruction and register style" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
|
| |
echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19593: checking assembler addressing style" >&5 |
| |
echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_m68k_addressing+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
case $gmp_cv_asm_m68k_instruction in |
| |
addl*) movel=movel ;; |
| |
add.l*) movel=move.l ;; |
| |
*) { { echo "$as_me:19601: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 |
| |
echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
case $gmp_cv_asm_m68k_instruction in |
| |
*"%d0,%d1") dreg=%d0; areg=%a0 ;; |
| |
*"d0,d1") dreg=d0; areg=a0 ;; |
| |
*) { { echo "$as_me:19608: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5 |
| |
echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
esac |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
$movel $dreg, $areg@- |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19617: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19620: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_m68k_addressing=mit |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
$movel $dreg, -($areg) |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19633: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19636: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_m68k_addressing=motorola |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
{ { echo "$as_me:19644: error: cannot determine assembler addressing style" >&5 |
| |
echo "$as_me: error: cannot determine assembler addressing style" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19654: result: $gmp_cv_asm_m68k_addressing" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6 |
| |
|
| |
echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19659: checking assembler shortest branches" >&5 |
| |
echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_m68k_branches+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
gmp_cv_asm_m68k_branches=unknown |
| |
for i in jra jbra bra; do |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
foo$gmp_cv_asm_label_suffix |
| |
$i foo |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19672: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19675: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_m68k_branches=$i |
| |
rm -f conftest* |
| |
break |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
: |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
done |
| |
|
| |
fi |
| |
echo "$as_me:19692: result: $gmp_cv_asm_m68k_branches" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6 |
| |
if test "$gmp_cv_asm_m68k_branches" = unknown; then |
| |
{ { echo "$as_me:19695: error: cannot determine assembler branching style" >&5 |
| |
echo "$as_me: error: cannot determine assembler branching style" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
;; |
| |
powerpc*-*-*) |
| |
|
| |
echo "$as_me:19705: checking if the assembler needs r on registers" >&5 |
| |
echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
mtctr 6 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19715: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19718: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_powerpc_r_registers=no |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
mtctr r6 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19731: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19734: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_powerpc_r_registers=yes |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
{ { echo "$as_me:19742: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5 |
| |
echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19752: result: $gmp_cv_asm_powerpc_r_registers" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6 |
| |
|
| |
echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
case $host in |
| |
powerpc*-*-aix*) |
| |
case $ABI in |
| |
64 | aix64) |
| |
echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i |
| |
;; |
| |
*) |
| |
echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i |
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
;; |
| |
power*-*-aix*) |
| |
|
| |
echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i |
| |
|
| |
;; |
| |
sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*) |
| |
case $ABI in |
| |
64) |
| |
|
| |
echo "$as_me:19781: checking if the assembler accepts \".register\"" >&5 |
| |
echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_sparc_register+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
.register %g2,#scratch |
| |
|
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19792: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19795: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_sparc_register=yes |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
gmp_cv_asm_sparc_register=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19808: result: $gmp_cv_asm_sparc_register" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6 |
| |
|
| |
echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4 |
| |
|
| |
;; |
| |
esac |
| |
;; |
| |
i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*) |
| |
|
| |
echo "$as_me:19818: checking if the .align directive accepts an 0x90 fill in .text" >&5 |
| |
echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
.align 4, 0x90 |
| |
.byte 0 |
| |
.align 4, 0x90 |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19830: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19833: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then |
| |
echo "Supressing this warning by omitting 0x90" 1>&5 |
| |
gmp_cv_asm_align_fill_0x90=no |
| |
else |
| |
gmp_cv_asm_align_fill_0x90=yes |
| |
fi |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
gmp_cv_asm_align_fill_0x90=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19851: result: $gmp_cv_asm_align_fill_0x90" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6 |
| |
|
| |
echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "$as_me:19856: checking if the assembler takes cl with shldl" >&5 |
| |
echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6 |
| |
if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.s <<EOF |
| |
$gmp_cv_asm_text |
| |
shldl %cl, %eax, %ebx |
| |
EOF |
| |
gmp_assemble="$CCAS $CFLAGS conftest.s >conftest.out 2>&1" |
| |
if { (eval echo "$as_me:19866: \"$gmp_assemble\"") >&5 |
| |
(eval $gmp_assemble) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19869: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
cat conftest.out >&5 |
| |
gmp_cv_asm_x86_shldl_cl=yes |
| |
else |
| |
cat conftest.out >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.s >&5 |
| |
gmp_cv_asm_x86_shldl_cl=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
echo "$as_me:19882: result: $gmp_cv_asm_x86_shldl_cl" >&5 |
| |
echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6 |
| |
if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then |
| |
|
| |
echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4 |
| |
|
| |
else |
| |
|
| |
echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4 |
| |
|
| |
fi |
| |
|
| |
if test "$enable_profiling" != no; then |
| |
|
| |
echo "$as_me:19896: checking how to call x86 mcount" >&5 |
| |
echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6 |
| |
cat >conftest.c <<EOF |
| |
foo(){bar();} |
| |
EOF |
| |
|
| |
if test "$enable_static" = yes; then |
| |
gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5" |
| |
if { (eval echo "$as_me:19904: \"$gmp_asmout_compile\"") >&5 |
| |
(eval $gmp_asmout_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19907: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if grep '\.data' conftest.s >/dev/null; then |
| |
mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` |
| |
else |
| |
mcount_nonpic_reg= |
| |
fi |
| |
mcount_nonpic_call=`grep 'call.*mcount' conftest.s` |
| |
if test -z "$mcount_nonpic_call"; then |
| |
{ { echo "$as_me:19916: error: Cannot find mcount call for non-PIC" >&5 |
| |
echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
else |
| |
{ { echo "$as_me:19921: error: Cannot compile test program for non-PIC" >&5 |
| |
echo "$as_me: error: Cannot compile test program for non-PIC" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
|
| |
if test "$enable_shared" = yes; then |
| |
gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5" |
| |
if { (eval echo "$as_me:19929: \"$gmp_asmout_compile\"") >&5 |
| |
(eval $gmp_asmout_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:19932: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; then |
| |
if grep '\.data' conftest.s >/dev/null; then |
| |
case $lt_prog_compiler_pic in |
| |
*-DDLL_EXPORT*) |
| |
# Windows DLLs have non-PIC style mcount |
| |
mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` |
| |
;; |
| |
*) |
| |
mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s` |
| |
;; |
| |
esac |
| |
else |
| |
mcount_pic_reg= |
| |
fi |
| |
mcount_pic_call=`grep 'call.*mcount' conftest.s` |
| |
if test -z "$mcount_pic_call"; then |
| |
{ { echo "$as_me:19949: error: Cannot find mcount call for PIC" >&5 |
| |
echo "$as_me: error: Cannot find mcount call for PIC" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
else |
| |
{ { echo "$as_me:19954: error: Cannot compile test program for PIC" >&5 |
| |
echo "$as_me: error: Cannot compile test program for PIC" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
|
| |
echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4 |
| |
|
| |
rm -f conftest.* |
| |
echo "$as_me:19969: result: determined" >&5 |
| |
echo "${ECHO_T}determined" >&6 |
| |
|
| |
fi |
| |
case $host in |
| |
*-*-openbsd*) |
| |
|
| |
echo 'define(<_GLOBAL_OFFSET_TABLE_>, <__GLOBAL_OFFSET_TABLE_>)' >>$gmp_tmpconfigm4 |
| |
|
| |
;; |
| |
esac |
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
# Create link for gmp-mparam.h. |
| |
gmp_mparam_source= |
| |
for gmp_mparam_dir in $path; do |
| |
test "$no_create" = yes || rm -f gmp-mparam.h |
| |
tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h |
| |
if test -f $tmp_file; then |
| |
ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" |
| |
|
| |
gmp_srclinks="$gmp_srclinks gmp-mparam.h" |
| |
gmp_mparam_source=$tmp_file |
| |
break |
| |
fi |
| |
done |
| |
if test -z "$gmp_mparam_source"; then |
| |
{ { echo "$as_me:19998: error: no version of gmp-mparam.h found in path: $path" >&5 |
| |
echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
|
| |
# For a helpful message from tune/tuneup.c |
| |
gmp_mparam_suggest=$gmp_mparam_source |
| |
if test "$gmp_mparam_dir" = generic; then |
| |
for i in $path; do break; done |
| |
if test "$i" != generic; then |
| |
gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h" |
| |
fi |
| |
fi |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source" |
| |
EOF |
| |
|
| |
# Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4. |
| |
# Some versions of sqr_basecase.asm use this. |
| |
tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source` |
| |
if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then |
| |
|
| |
echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4 |
| |
|
| |
fi |
| |
|
| |
# This must come after gmp-mparam.h has been chosen. |
| |
BITS_PER_MP_LIMB=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source` |
| |
if test -n "$BITS_PER_MP_LIMB" \ |
| |
&& grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ; |
| |
else |
| |
echo "$as_me:20030: checking for mp_limb_t" >&5 |
| |
echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_mp_limb_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20036 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
if ((mp_limb_t *) 0) |
| |
return 0; |
| |
if (sizeof (mp_limb_t)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20058: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20061: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20064: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20067: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_mp_limb_t=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_mp_limb_t=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:20077: result: $ac_cv_type_mp_limb_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6 |
| |
|
| |
echo "$as_me:20080: checking size of mp_limb_t" >&5 |
| |
echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$ac_cv_type_mp_limb_t" = yes; then |
| |
if test "$cross_compiling" = yes; then |
| |
# Depending upon the size, compute the lo and hi bounds. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20089 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (mp_limb_t)) >= 0)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20108: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20111: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20114: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20117: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_lo=0 ac_mid=0 |
| |
while :; do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20122 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (mp_limb_t)) <= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20141: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20144: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20147: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20150: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_hi=$ac_mid; break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_hi=-1 ac_mid=-1 |
| |
while :; do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20166 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (mp_limb_t)) >= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20185: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20188: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20191: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20194: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_lo=$ac_mid; break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
# Binary search between lo and hi bounds. |
| |
while test "x$ac_lo" != "x$ac_hi"; do |
| |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20210 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (mp_limb_t)) <= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20229: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20232: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20235: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20238: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_hi=$ac_mid |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_lo=`expr $ac_mid + 1` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
ac_cv_sizeof_mp_limb_t=$ac_lo |
| |
else |
| |
if test "$cross_compiling" = yes; then |
| |
{ { echo "$as_me:20251: error: cannot run test program while cross compiling" >&5 |
| |
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20256 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdio.h> |
| |
#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ |
| |
#define GMP_NAIL_BITS $GMP_NAIL_BITS |
| |
#define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */ |
| |
#define GMP_LIMB_BITS 123 |
| |
$DEFN_LONG_LONG_LIMB |
| |
#include "$srcdir/gmp-h.in" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
FILE *f = fopen ("conftest.val", "w"); |
| |
if (!f) |
| |
exit (1); |
| |
fprintf (f, "%d", (sizeof (mp_limb_t))); |
| |
fclose (f); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:20279: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20282: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20284: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20287: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_sizeof_mp_limb_t=`cat conftest.val` |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
fi |
| |
rm -f conftest.val |
| |
else |
| |
ac_cv_sizeof_mp_limb_t=0 |
| |
fi |
| |
fi |
| |
echo "$as_me:20303: result: $ac_cv_sizeof_mp_limb_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6 |
| |
cat >>confdefs.h <<EOF |
| |
#define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t |
| |
EOF |
| |
|
| |
if test "$ac_cv_sizeof_mp_limb_t" = 0; then |
| |
{ { echo "$as_me:20310: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&5 |
| |
echo "$as_me: error: some sort of compiler problem, mp_limb_t doesn't seem to work" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
if test -z "$BITS_PER_MP_LIMB"; then |
| |
BITS_PER_MP_LIMB="(8*$ac_cv_sizeof_mp_limb_t)" |
| |
fi |
| |
if grep "^#define BYTES_PER_MP_LIMB" $gmp_mparam_source >/dev/null; then : ; |
| |
else |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define BYTES_PER_MP_LIMB $ac_cv_sizeof_mp_limb_t |
| |
EOF |
| |
|
| |
fi |
| |
fi |
| |
|
| |
if grep "^#define BITS_PER_ULONG" $gmp_mparam_source >/dev/null; then : ; |
| |
else |
| |
case $limb_chosen in |
| |
longlong) |
| |
echo "$as_me:20331: checking for unsigned long" >&5 |
| |
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_unsigned_long+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20337 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
if ((unsigned long *) 0) |
| |
return 0; |
| |
if (sizeof (unsigned long)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20352: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20355: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20358: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20361: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_unsigned_long=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_unsigned_long=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:20371: result: $ac_cv_type_unsigned_long" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 |
| |
|
| |
echo "$as_me:20374: checking size of unsigned long" >&5 |
| |
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 |
| |
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test "$ac_cv_type_unsigned_long" = yes; then |
| |
if test "$cross_compiling" = yes; then |
| |
# Depending upon the size, compute the lo and hi bounds. |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20383 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (unsigned long)) >= 0)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20395: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20398: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20401: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20404: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_lo=0 ac_mid=0 |
| |
while :; do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20409 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (unsigned long)) <= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20421: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20424: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20427: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20430: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_hi=$ac_mid; break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_hi=-1 ac_mid=-1 |
| |
while :; do |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20446 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (unsigned long)) >= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20458: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20461: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20464: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20467: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_lo=$ac_mid; break |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
# Binary search between lo and hi bounds. |
| |
while test "x$ac_lo" != "x$ac_hi"; do |
| |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20483 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
int _array_ [1 - 2 * !((sizeof (unsigned long)) <= $ac_mid)] |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20495: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20498: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20501: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20504: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_hi=$ac_mid |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_lo=`expr $ac_mid + 1` |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
done |
| |
ac_cv_sizeof_unsigned_long=$ac_lo |
| |
else |
| |
if test "$cross_compiling" = yes; then |
| |
{ { echo "$as_me:20517: error: cannot run test program while cross compiling" >&5 |
| |
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20522 "configure" |
| |
#include "confdefs.h" |
| |
$ac_includes_default |
| |
int |
| |
main () |
| |
{ |
| |
FILE *f = fopen ("conftest.val", "w"); |
| |
if (!f) |
| |
exit (1); |
| |
fprintf (f, "%d", (sizeof (unsigned long))); |
| |
fclose (f); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:20538: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20541: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20543: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20546: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_sizeof_unsigned_long=`cat conftest.val` |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
fi |
| |
rm -f conftest.val |
| |
else |
| |
ac_cv_sizeof_unsigned_long=0 |
| |
fi |
| |
fi |
| |
echo "$as_me:20562: result: $ac_cv_sizeof_unsigned_long" >&5 |
| |
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 |
| |
cat >>confdefs.h <<EOF |
| |
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| |
EOF |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define BITS_PER_ULONG (8 * $ac_cv_sizeof_unsigned_long) |
| |
EOF |
| |
|
| |
;; |
| |
*) |
| |
# Copy the limb size when a limb is a ulong |
| |
cat >>confdefs.h <<\EOF |
| |
#define BITS_PER_ULONG BITS_PER_MP_LIMB |
| |
EOF |
| |
|
| |
;; |
| |
esac |
| |
fi |
| |
|
| |
echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4 |
| |
|
| |
echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4 |
| |
|
| |
# Exclude the mpn random functions from mpbsd since that would drag in the |
| |
# top-level rand things, all of which are unnecessary for libmp. There's |
| |
# other unnecessary objects too actually, if we could be bothered figuring |
| |
# out exactly which they are. |
| # |
# |
| # Local Variables: |
mpn_objs_in_libmp= |
| # fill-column: 131 |
for i in $mpn_objs_in_libgmp; do |
| # End: |
case $i in |
| |
*random*) ;; |
| |
*) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;; |
| |
esac |
| |
done |
| |
|
| |
# Configs for mpfr. |
| # |
# |
| |
if test $enable_mpfr = yes; then |
| |
gmp_CFLAGS=$CFLAGS |
| |
gmp_LIBS=$LIBS |
| |
LIBS="$LIBS $LIBM" |
| |
|
| # end of configure |
case $host in |
| |
*-*-solaris*) |
| |
LM9X="-lm9x" |
| |
;; |
| |
esac |
| |
|
| |
for ac_func in strcasecmp |
| |
do |
| |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| |
echo "$as_me:20618: checking for $ac_func" >&5 |
| |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20624 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char $ac_func (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char $ac_func (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| |
choke me |
| |
#else |
| |
f = $ac_func; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:20655: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20658: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20661: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20664: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
eval "$as_ac_var=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_var=no" |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:20674: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
else |
| |
LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| |
fi |
| |
done |
| |
|
| |
case $host in |
| |
alpha*-*-*) |
| |
saved_CFLAGS="$CFLAGS" |
| |
echo "$as_me:20689: checking for IEEE-754 switches" >&5 |
| |
echo $ECHO_N "checking for IEEE-754 switches... $ECHO_C" >&6 |
| |
if test "${mpfr_cv_ieee_switches+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
if test -n "$GCC"; then |
| |
mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact" |
| |
else |
| |
mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact" |
| |
fi |
| |
CFLAGS="$CFLAGS $mpfr_cv_ieee_switches" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20702 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:20714: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20717: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:20720: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20723: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
: |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
mpfr_cv_ieee_switches="none" |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
|
| |
fi |
| |
echo "$as_me:20734: result: $mpfr_cv_ieee_switches" >&5 |
| |
echo "${ECHO_T}$mpfr_cv_ieee_switches" >&6 |
| |
if test "$mpfr_cv_ieee_switches" = "none"; then |
| |
CFLAGS="$saved_CFLAGS" |
| |
else |
| |
CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches" |
| |
fi |
| |
esac |
| |
|
| |
for ac_header in fpu_control.h |
| |
do |
| |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| |
echo "$as_me:20746: checking for $ac_header" >&5 |
| |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20752 "configure" |
| |
#include "confdefs.h" |
| |
#include <$ac_header> |
| |
_ACEOF |
| |
if { (eval echo "$as_me:20756: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| |
ac_status=$? |
| |
egrep -v '^ *\+' conftest.er1 >conftest.err |
| |
rm -f conftest.er1 |
| |
cat conftest.err >&5 |
| |
echo "$as_me:20762: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } >/dev/null; then |
| |
if test -s conftest.err; then |
| |
ac_cpp_err=$ac_c_preproc_warn_flag |
| |
else |
| |
ac_cpp_err= |
| |
fi |
| |
else |
| |
ac_cpp_err=yes |
| |
fi |
| |
if test -z "$ac_cpp_err"; then |
| |
eval "$as_ac_Header=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_Header=no" |
| |
fi |
| |
rm -f conftest.err conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:20781: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
fi |
| |
done |
| |
|
| |
echo "$as_me:20791: checking for fesetround" >&5 |
| |
echo $ECHO_N "checking for fesetround... $ECHO_C" >&6 |
| |
if test "${mpfr_cv_have_fesetround+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
saved_LIBS="$LIBS" |
| |
LIBS="$LIBS $LM9X" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20800 "configure" |
| |
#include "confdefs.h" |
| |
#include <fenv.h> |
| |
int |
| |
main () |
| |
{ |
| |
fesetround(FE_TONEAREST); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:20812: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20815: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20818: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20821: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
mpfr_cv_have_fesetround=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
mpfr_cv_have_fesetround=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS="$saved_LIBS" |
| |
|
| |
fi |
| |
echo "$as_me:20833: result: $mpfr_cv_have_fesetround" >&5 |
| |
echo "${ECHO_T}$mpfr_cv_have_fesetround" >&6 |
| |
if test "$mpfr_cv_have_fesetround" = "yes"; then |
| |
LIBS="$LIBS $LM9X" |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define MPFR_HAVE_FESETROUND 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
for ac_func in lrand48 |
| |
do |
| |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| |
echo "$as_me:20847: checking for $ac_func" >&5 |
| |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20853 "configure" |
| |
#include "confdefs.h" |
| |
/* System header to define __stub macros and hopefully few prototypes, |
| |
which can conflict with char $ac_func (); below. */ |
| |
#include <assert.h> |
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char $ac_func (); |
| |
char (*f) (); |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
/* The GNU C library defines this for functions which it implements |
| |
to always fail with ENOSYS. Some functions are actually named |
| |
something starting with __ and the normal name is an alias. */ |
| |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| |
choke me |
| |
#else |
| |
f = $ac_func; |
| |
#endif |
| |
|
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:20884: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20887: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20890: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20893: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
eval "$as_ac_var=yes" |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
eval "$as_ac_var=no" |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:20903: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| |
cat >>confdefs.h <<EOF |
| |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| |
EOF |
| |
|
| |
fi |
| |
done |
| |
|
| |
echo "$as_me:20913: checking for valid NaN" >&5 |
| |
echo $ECHO_N "checking for valid NaN... $ECHO_C" >&6 |
| |
if test "${mpfr_cv_valid_nan+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
if test "$cross_compiling" = yes; then |
| |
mpfr_cv_valid_nan=no |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20923 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#include <math.h> |
| |
int main() |
| |
{ |
| |
double x = (0.0/0.0) + sqrt(-1.0); |
| |
return x == 1.0/0.0; |
| |
} |
| |
|
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:20935: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20938: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:20940: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:20943: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
mpfr_cv_valid_nan=yes |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
mpfr_cv_valid_nan=no |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:20956: result: $mpfr_cv_valid_nan" >&5 |
| |
echo "${ECHO_T}$mpfr_cv_valid_nan" >&6 |
| |
if test "$mpfr_cv_valid_nan" = "yes"; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_INFS 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
if test -n "$GCC"; then |
| |
echo "$as_me:20967: checking for gcc float-conversion bug" >&5 |
| |
echo $ECHO_N "checking for gcc float-conversion bug... $ECHO_C" >&6 |
| |
if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
if test "$cross_compiling" = yes; then |
| |
mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store" |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 20977 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#include <float.h> |
| |
#ifdef MPFR_HAVE_FESETROUND |
| |
#include <fenv.h> |
| |
#endif |
| |
int main() |
| |
{ |
| |
double x = 0.5; |
| |
int i; |
| |
for (i = 1; i <= 11; i++) |
| |
x *= x; |
| |
if (x != 0) |
| |
return 1; |
| |
#ifdef MPFR_HAVE_FESETROUND |
| |
/* Useful test for the G4 PowerPC */ |
| |
fesetround(FE_TOWARDZERO); |
| |
x = DBL_MAX; |
| |
x *= 2.0; |
| |
if (x != DBL_MAX) |
| |
return 1; |
| |
#endif |
| |
return 0; |
| |
} |
| |
|
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:21005: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21008: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21010: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21013: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
mpfr_cv_gcc_floatconv_bug="no" |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store" |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:21026: result: $mpfr_cv_gcc_floatconv_bug" >&5 |
| |
echo "${ECHO_T}$mpfr_cv_gcc_floatconv_bug" >&6 |
| |
if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then |
| |
CFLAGS="$CFLAGS -ffloat-store" |
| |
fi |
| |
fi |
| |
|
| |
echo "$as_me:21033: checking for denormalized numbers" >&5 |
| |
echo $ECHO_N "checking for denormalized numbers... $ECHO_C" >&6 |
| |
if test "${mpfr_cv_have_denorms+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
|
| |
if test "$cross_compiling" = yes; then |
| |
mpfr_cv_have_denorms=no |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 21043 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
#include <math.h> |
| |
#include <stdio.h> |
| |
int main() |
| |
{ |
| |
double x = 2.22507385850720138309e-308; |
| |
fprintf (stderr, "%e\n", x / 2.0); |
| |
return 2.0 * (x / 2.0) != x; |
| |
} |
| |
|
| |
_ACEOF |
| |
rm -f conftest$ac_exeext |
| |
if { (eval echo "$as_me:21057: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21060: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21062: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21065: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
mpfr_cv_have_denorms=yes |
| |
else |
| |
echo "$as_me: program exited with status $ac_status" >&5 |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
mpfr_cv_have_denorms=no |
| |
fi |
| |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
|
| |
fi |
| |
echo "$as_me:21078: result: $mpfr_cv_have_denorms" >&5 |
| |
echo "${ECHO_T}$mpfr_cv_have_denorms" >&6 |
| |
if test "$mpfr_cv_have_denorms" = "yes"; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define HAVE_DENORMS 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
MPFR_CFLAGS=$CFLAGS |
| |
|
| |
MPFR_LIBS=$LIBS |
| |
|
| |
CFLAGS=$gmp_CFLAGS |
| |
LIBS=$gmp_LIBS |
| |
fi |
| |
|
| |
# A recompiled sqr_basecase for use in the tune program, if necessary. |
| |
TUNE_SQR_OBJ= |
| |
test -d tune || mkdir tune |
| |
case $sqr_basecase_source in |
| |
*.asm) |
| |
sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source` |
| |
if test -n "$sqr_max"; then |
| |
TUNE_SQR_OBJ=sqr_asm.o |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define TUNE_SQR_KARATSUBA_MAX $sqr_max |
| |
EOF |
| |
|
| |
fi |
| |
cat >tune/sqr_basecase.c <<EOF |
| |
/* not sure that an empty file can compile, so put in a dummy */ |
| |
int sqr_basecase_dummy; |
| |
EOF |
| |
;; |
| |
*.c) |
| |
TUNE_SQR_OBJ= |
| |
cat >>confdefs.h <<\EOF |
| |
#define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC |
| |
EOF |
| |
|
| |
cat >tune/sqr_basecase.c <<EOF |
| |
#define TUNE_PROGRAM_BUILD 1 |
| |
#define TUNE_PROGRAM_BUILD_SQR 1 |
| |
#include "mpn/sqr_basecase.c" |
| |
EOF |
| |
;; |
| |
esac |
| |
|
| |
# Configs for demos/pexpr.c. |
| |
# |
| |
ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in" |
| |
|
| |
case $ac_cv_func_clock in |
| |
yes) HAVE_CLOCK_01=1 |
| |
;; |
| |
no) HAVE_CLOCK_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_cputime in |
| |
yes) HAVE_CPUTIME_01=1 |
| |
;; |
| |
no) HAVE_CPUTIME_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_getrusage in |
| |
yes) HAVE_GETRUSAGE_01=1 |
| |
;; |
| |
no) HAVE_GETRUSAGE_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_gettimeofday in |
| |
yes) HAVE_GETTIMEOFDAY_01=1 |
| |
;; |
| |
no) HAVE_GETTIMEOFDAY_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_sigaction in |
| |
yes) HAVE_SIGACTION_01=1 |
| |
;; |
| |
no) HAVE_SIGACTION_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_sigaltstack in |
| |
yes) HAVE_SIGALTSTACK_01=1 |
| |
;; |
| |
no) HAVE_SIGALTSTACK_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_func_sigstack in |
| |
yes) HAVE_SIGSTACK_01=1 |
| |
;; |
| |
no) HAVE_SIGSTACK_01=0 ;; |
| |
esac |
| |
|
| |
case $ac_cv_header_sys_resource_h in |
| |
yes) HAVE_SYS_RESOURCE_H_01=1 |
| |
;; |
| |
no) HAVE_SYS_RESOURCE_H_01=0 ;; |
| |
esac |
| |
|
| |
echo "$as_me:21181: checking for stack_t" >&5 |
| |
echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
| |
if test "${ac_cv_type_stack_t+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 21187 "configure" |
| |
#include "confdefs.h" |
| |
#include <signal.h> |
| |
|
| |
int |
| |
main () |
| |
{ |
| |
if ((stack_t *) 0) |
| |
return 0; |
| |
if (sizeof (stack_t)) |
| |
return 0; |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext |
| |
if { (eval echo "$as_me:21203: \"$ac_compile\"") >&5 |
| |
(eval $ac_compile) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21206: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest.$ac_objext' |
| |
{ (eval echo "$as_me:21209: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21212: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_type_stack_t=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_type_stack_t=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest.$ac_ext |
| |
fi |
| |
echo "$as_me:21222: result: $ac_cv_type_stack_t" >&5 |
| |
echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
| |
if test $ac_cv_type_stack_t = yes; then |
| |
|
| |
cat >>confdefs.h <<EOF |
| |
#define HAVE_STACK_T 1 |
| |
EOF |
| |
|
| |
HAVE_STACK_T_01=1 |
| |
else |
| |
HAVE_STACK_T_01=0 |
| |
fi |
| |
|
| |
# Configs for demos/calc directory |
| |
# |
| |
# AC_SUBST is used here since with AM_CONFIG_HEADER automake would put |
| |
# demos/calc in the default $(DEFAULT_INCLUDES) for every directory, |
| |
# which would look very strange. Likewise demos/expr below. |
| |
# |
| |
ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in" |
| |
|
| |
use_readline=$with_readline |
| |
if test $with_readline = detect; then |
| |
echo "$as_me:21245: checking for readline in -lreadline" >&5 |
| |
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_readline_readline+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lreadline $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 21253 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char readline (); |
| |
int |
| |
main () |
| |
{ |
| |
readline (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:21272: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21275: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21278: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21281: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_readline_readline=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_readline_readline=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:21292: result: $ac_cv_lib_readline_readline" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| |
if test $ac_cv_lib_readline_readline = yes; then |
| |
use_readline=yes |
| |
fi |
| |
|
| |
fi |
| |
if test $use_readline = yes; then |
| |
WITH_READLINE_01=1 |
| |
|
| |
LIBREADLINE=-lreadline |
| |
|
| |
else |
| |
WITH_READLINE_01=0 |
| |
fi |
| |
for ac_prog in 'bison -y' byacc |
| |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo "$as_me:21311: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_YACC+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$YACC"; then |
| |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_YACC="$ac_prog" |
| |
echo "$as_me:21326: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
YACC=$ac_cv_prog_YACC |
| |
if test -n "$YACC"; then |
| |
echo "$as_me:21334: result: $YACC" >&5 |
| |
echo "${ECHO_T}$YACC" >&6 |
| |
else |
| |
echo "$as_me:21337: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$YACC" && break |
| |
done |
| |
test -n "$YACC" || YACC="yacc" |
| |
|
| |
for ac_prog in flex lex |
| |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo "$as_me:21349: checking for $ac_word" >&5 |
| |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_LEX+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
if test -n "$LEX"; then |
| |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| |
else |
| |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
IFS=$ac_save_IFS |
| |
test -z "$ac_dir" && ac_dir=. |
| |
$as_executable_p "$ac_dir/$ac_word" || continue |
| |
ac_cv_prog_LEX="$ac_prog" |
| |
echo "$as_me:21364: found $ac_dir/$ac_word" >&5 |
| |
break |
| |
done |
| |
|
| |
fi |
| |
fi |
| |
LEX=$ac_cv_prog_LEX |
| |
if test -n "$LEX"; then |
| |
echo "$as_me:21372: result: $LEX" >&5 |
| |
echo "${ECHO_T}$LEX" >&6 |
| |
else |
| |
echo "$as_me:21375: result: no" >&5 |
| |
echo "${ECHO_T}no" >&6 |
| |
fi |
| |
|
| |
test -n "$LEX" && break |
| |
done |
| |
test -n "$LEX" || LEX=":" |
| |
|
| |
if test -z "$LEXLIB" |
| |
then |
| |
echo "$as_me:21385: checking for yywrap in -lfl" >&5 |
| |
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-lfl $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 21393 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char yywrap (); |
| |
int |
| |
main () |
| |
{ |
| |
yywrap (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:21412: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21415: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21418: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21421: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_fl_yywrap=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_fl_yywrap=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:21432: result: $ac_cv_lib_fl_yywrap" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| |
if test $ac_cv_lib_fl_yywrap = yes; then |
| |
LEXLIB="-lfl" |
| |
else |
| |
echo "$as_me:21437: checking for yywrap in -ll" >&5 |
| |
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| |
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
ac_check_lib_save_LIBS=$LIBS |
| |
LIBS="-ll $LIBS" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
#line 21445 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
/* Override any gcc2 internal prototype to avoid an error. */ |
| |
#ifdef __cplusplus |
| |
extern "C" |
| |
#endif |
| |
/* We use char because int might match the return type of a gcc2 |
| |
builtin and then its argument prototype would still apply. */ |
| |
char yywrap (); |
| |
int |
| |
main () |
| |
{ |
| |
yywrap (); |
| |
; |
| |
return 0; |
| |
} |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:21464: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21467: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21470: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21473: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_lib_l_yywrap=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_lib_l_yywrap=no |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_check_lib_save_LIBS |
| |
fi |
| |
echo "$as_me:21484: result: $ac_cv_lib_l_yywrap" >&5 |
| |
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| |
if test $ac_cv_lib_l_yywrap = yes; then |
| |
LEXLIB="-ll" |
| |
fi |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
if test "x$LEX" != "x:"; then |
| |
echo "$as_me:21495: checking lex output file root" >&5 |
| |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_lex_root+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# The minimal lex program is just a single line: %%. But some broken lexes |
| |
# (Solaris, I think it was) want two %% lines, so accommodate them. |
| |
echo '%% |
| |
%%' | $LEX |
| |
if test -f lex.yy.c; then |
| |
ac_cv_prog_lex_root=lex.yy |
| |
elif test -f lexyy.c; then |
| |
ac_cv_prog_lex_root=lexyy |
| |
else |
| |
{ { echo "$as_me:21509: error: cannot find output from $LEX; giving up" >&5 |
| |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
fi |
| |
echo "$as_me:21514: result: $ac_cv_prog_lex_root" >&5 |
| |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| |
|
| |
echo "$as_me:21518: checking whether yytext is a pointer" >&5 |
| |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| |
else |
| |
# POSIX says lex can declare yytext either as a pointer or an array; the |
| |
# default is implementation-dependent. Figure out which it is, since |
| |
# not all implementations provide the %pointer and %array declarations. |
| |
ac_cv_prog_lex_yytext_pointer=no |
| |
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| |
ac_save_LIBS=$LIBS |
| |
LIBS="$LIBS $LEXLIB" |
| |
cat >conftest.$ac_ext <<_ACEOF |
| |
`cat $LEX_OUTPUT_ROOT.c` |
| |
_ACEOF |
| |
rm -f conftest.$ac_objext conftest$ac_exeext |
| |
if { (eval echo "$as_me:21534: \"$ac_link\"") >&5 |
| |
(eval $ac_link) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21537: \$? = $ac_status" >&5 |
| |
(exit $ac_status); } && |
| |
{ ac_try='test -s conftest$ac_exeext' |
| |
{ (eval echo "$as_me:21540: \"$ac_try\"") >&5 |
| |
(eval $ac_try) 2>&5 |
| |
ac_status=$? |
| |
echo "$as_me:21543: \$? = $ac_status" >&5 |
| |
(exit $ac_status); }; }; then |
| |
ac_cv_prog_lex_yytext_pointer=yes |
| |
else |
| |
echo "$as_me: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
fi |
| |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| |
LIBS=$ac_save_LIBS |
| |
rm -f "${LEX_OUTPUT_ROOT}.c" |
| |
|
| |
fi |
| |
echo "$as_me:21555: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| |
|
| |
cat >>confdefs.h <<\EOF |
| |
#define YYTEXT_POINTER 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
fi |
| |
|
| |
if test "$LEX" = :; then |
| |
LEX=${am_missing_run}flex |
| |
fi |
| |
|
| |
# Configs for demos/expr directory |
| |
ac_config_files="$ac_config_files demos/expr/expr-config.h:demos/expr/expr-config-h.in" |
| |
|
| |
if test $enable_mpfr = yes; then |
| |
HAVE_MPFR_01=1 |
| |
|
| |
else |
| |
HAVE_MPFR_01=0 |
| |
fi |
| |
if test $ac_cv_have_decl_optarg = yes; then |
| |
HAVE_DECL_OPTARG=1 |
| |
|
| |
else |
| |
HAVE_DECL_OPTARG=0 |
| |
fi |
| |
|
| |
# Create config.m4. |
| |
|
| |
echo "creating $gmp_configm4" |
| |
echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4 |
| |
if test -f $gmp_tmpconfigm4; then |
| |
echo "changequote(<,>)" >> $gmp_configm4 |
| |
echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4 |
| |
cat $gmp_tmpconfigm4 >> $gmp_configm4 |
| |
echo ">)" >> $gmp_configm4 |
| |
echo "changequote(\`,')" >> $gmp_configm4 |
| |
rm $gmp_tmpconfigm4 |
| |
fi |
| |
echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4 |
| |
if test -f $gmp_tmpconfigm4i; then |
| |
cat $gmp_tmpconfigm4i >> $gmp_configm4 |
| |
rm $gmp_tmpconfigm4i |
| |
fi |
| |
if test -f $gmp_tmpconfigm4p; then |
| |
cat $gmp_tmpconfigm4p >> $gmp_configm4 |
| |
rm $gmp_tmpconfigm4p |
| |
fi |
| |
echo "')" >> $gmp_configm4 |
| |
echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4 |
| |
|
| |
# Create Makefiles |
| |
# FIXME: Upcoming version of autoconf/automake may not like broken lines. |
| |
# Right now automake isn't accepting the new AC_CONFIG_FILES scheme. |
| |
|
| |
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" |
| |
cat >confcache <<\_ACEOF |
| |
# This file is a shell script that caches the results of configure |
| |
# tests run on this system so they can be shared between configure |
| |
# scripts and configure runs, see configure's option --config-cache. |
| |
# It is not useful on other systems. If it contains results you don't |
| |
# want to keep, you may remove or edit it. |
| |
# |
| |
# config.status only pays attention to the cache file if you give it |
| |
# the --recheck option to rerun configure. |
| |
# |
| |
# `ac_cv_env_foo' variables (set or unset) will be overriden when |
| |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| |
# following values. |
| |
|
| |
_ACEOF |
| |
|
| |
# The following way of writing the cache mishandles newlines in values, |
| |
# but we know of no workaround that is simple, portable, and efficient. |
| |
# So, don't put newlines in cache variables' values. |
| |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| |
# and sets the high bit in the cache file unless we assign to the vars. |
| |
{ |
| |
(set) 2>&1 | |
| |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| |
*ac_space=\ *) |
| |
# `set' does not quote correctly, so add quotes (double-quote |
| |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| |
sed -n \ |
| |
"s/'/'\\\\''/g; |
| |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| |
;; |
| |
*) |
| |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| |
sed -n \ |
| |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| |
;; |
| |
esac; |
| |
} | |
| |
sed ' |
| |
t clear |
| |
: clear |
| |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| |
t end |
| |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| |
: end' >>confcache |
| |
if cmp -s $cache_file confcache; then :; else |
| |
if test -w $cache_file; then |
| |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| |
cat confcache >$cache_file |
| |
else |
| |
echo "not updating unwritable cache $cache_file" |
| |
fi |
| |
fi |
| |
rm -f confcache |
| |
|
| |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| |
# Let make expand exec_prefix. |
| |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| |
|
| |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| |
# trailing colons and then remove the whole line if VPATH becomes empty |
| |
# (actually we leave an empty line to preserve line numbers). |
| |
if test "x$srcdir" = x.; then |
| |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| |
s/:*\$(srcdir):*/:/; |
| |
s/:*\${srcdir}:*/:/; |
| |
s/:*@srcdir@:*/:/; |
| |
s/^\([^=]*=[ ]*\):*/\1/; |
| |
s/:*$//; |
| |
s/^[^=]*=[ ]*$//; |
| |
}' |
| |
fi |
| |
|
| |
DEFS=-DHAVE_CONFIG_H |
| |
|
| |
: ${CONFIG_STATUS=./config.status} |
| |
ac_clean_files_save=$ac_clean_files |
| |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| |
{ echo "$as_me:21695: creating $CONFIG_STATUS" >&5 |
| |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| |
cat >$CONFIG_STATUS <<_ACEOF |
| |
#! $SHELL |
| |
# Generated automatically by configure. |
| |
# Run this file to recreate the current configuration. |
| |
# Compiler output produced by configure, useful for debugging |
| |
# configure, is in config.log if it exists. |
| |
|
| |
debug=false |
| |
SHELL=\${CONFIG_SHELL-$SHELL} |
| |
ac_cs_invocation="\$0 \$@" |
| |
|
| |
_ACEOF |
| |
|
| |
cat >>$CONFIG_STATUS <<\_ACEOF |
| |
# Be Bourne compatible |
| |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| |
emulate sh |
| |
NULLCMD=: |
| |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| |
set -o posix |
| |
fi |
| |
|
| |
# Name of the executable. |
| |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| |
|
| |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| |
as_expr=expr |
| |
else |
| |
as_expr=false |
| |
fi |
| |
|
| |
rm -f conf$$ conf$$.exe conf$$.file |
| |
echo >conf$$.file |
| |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| |
# We could just check for DJGPP; but this test a) works b) is more generic |
| |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| |
if test -f conf$$.exe; then |
| |
# Don't use ln at all; we don't have any links |
| |
as_ln_s='cp -p' |
| |
else |
| |
as_ln_s='ln -s' |
| |
fi |
| |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| |
as_ln_s=ln |
| |
else |
| |
as_ln_s='cp -p' |
| |
fi |
| |
rm -f conf$$ conf$$.exe conf$$.file |
| |
|
| |
as_executable_p="test -f" |
| |
|
| |
# Support unset when possible. |
| |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| |
as_unset=unset |
| |
else |
| |
as_unset=false |
| |
fi |
| |
|
| |
# NLS nuisances. |
| |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| |
|
| |
# IFS |
| |
# We need space, tab and new line, in precisely that order. |
| |
as_nl=' |
| |
' |
| |
IFS=" $as_nl" |
| |
|
| |
# CDPATH. |
| |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| |
|
| |
exec 6>&1 |
| |
|
| |
_ACEOF |
| |
|
| |
# Files that config.status was made for. |
| |
if test -n "$ac_config_files"; then |
| |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| |
fi |
| |
|
| |
if test -n "$ac_config_headers"; then |
| |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| |
fi |
| |
|
| |
if test -n "$ac_config_links"; then |
| |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| |
fi |
| |
|
| |
if test -n "$ac_config_commands"; then |
| |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| |
fi |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
|
| |
ac_cs_usage="\ |
| |
\`$as_me' instantiates files from templates according to the |
| |
current configuration. |
| |
|
| |
Usage: $0 [OPTIONS] [FILE]... |
| |
|
| |
-h, --help print this help, then exit |
| |
-V, --version print version number, then exit |
| |
-d, --debug don't remove temporary files |
| |
--recheck update $as_me by reconfiguring in the same conditions |
| |
--file=FILE[:TEMPLATE] |
| |
instantiate the configuration file FILE |
| |
--header=FILE[:TEMPLATE] |
| |
instantiate the configuration header FILE |
| |
|
| |
Configuration files: |
| |
$config_files |
| |
|
| |
Configuration headers: |
| |
$config_headers |
| |
|
| |
Configuration links: |
| |
$config_links |
| |
|
| |
Configuration commands: |
| |
$config_commands |
| |
|
| |
Report bugs to <bug-autoconf@gnu.org>." |
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<EOF |
| |
ac_cs_version="\\ |
| |
config.status |
| |
configured by $0, generated by GNU Autoconf 2.52, |
| |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| |
|
| |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| |
Free Software Foundation, Inc. |
| |
This config.status script is free software; the Free Software Foundation |
| |
gives unlimited permission to copy, distribute and modify it." |
| |
srcdir=$srcdir |
| |
INSTALL="$INSTALL" |
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
# If no file are specified by the user, then we need to provide default |
| |
# value. By we need to know if files were specified by the user. |
| |
ac_need_defaults=: |
| |
while test $# != 0 |
| |
do |
| |
case $1 in |
| |
--*=*) |
| |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| |
shift |
| |
set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| |
shift |
| |
;; |
| |
-*);; |
| |
*) # This is not an option, so the user has probably given explicit |
| |
# arguments. |
| |
ac_need_defaults=false;; |
| |
esac |
| |
|
| |
case $1 in |
| |
# Handling of the options. |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<EOF |
| |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| |
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| |
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
--version | --vers* | -V ) |
| |
echo "$ac_cs_version"; exit 0 ;; |
| |
--he | --h) |
| |
# Conflict between --help and --header |
| |
{ { echo "$as_me:21874: error: ambiguous option: $1 |
| |
Try \`$0 --help' for more information." >&5 |
| |
echo "$as_me: error: ambiguous option: $1 |
| |
Try \`$0 --help' for more information." >&2;} |
| |
{ (exit 1); exit 1; }; };; |
| |
--help | --hel | -h ) |
| |
echo "$ac_cs_usage"; exit 0 ;; |
| |
--debug | --d* | -d ) |
| |
debug=: ;; |
| |
--file | --fil | --fi | --f ) |
| |
shift |
| |
CONFIG_FILES="$CONFIG_FILES $1" |
| |
ac_need_defaults=false;; |
| |
--header | --heade | --head | --hea ) |
| |
shift |
| |
CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| |
ac_need_defaults=false;; |
| |
|
| |
# This is an error. |
| |
-*) { { echo "$as_me:21893: error: unrecognized option: $1 |
| |
Try \`$0 --help' for more information." >&5 |
| |
echo "$as_me: error: unrecognized option: $1 |
| |
Try \`$0 --help' for more information." >&2;} |
| |
{ (exit 1); exit 1; }; } ;; |
| |
|
| |
*) ac_config_targets="$ac_config_targets $1" ;; |
| |
|
| |
esac |
| |
shift |
| |
done |
| |
|
| |
exec 5>>config.log |
| |
cat >&5 << _ACEOF |
| |
|
| |
## ----------------------- ## |
| |
## Running config.status. ## |
| |
## ----------------------- ## |
| |
|
| |
This file was extended by $as_me 2.52, executed with |
| |
CONFIG_FILES = $CONFIG_FILES |
| |
CONFIG_HEADERS = $CONFIG_HEADERS |
| |
CONFIG_LINKS = $CONFIG_LINKS |
| |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| |
> $ac_cs_invocation |
| |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| |
|
| |
_ACEOF |
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<EOF |
| |
# |
| |
# INIT-COMMANDS section. |
| |
# |
| |
|
| |
AMDEP_TRUE="$AMDEP_TRUE" |
| |
ac_aux_dir="$ac_aux_dir" |
| |
|
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
for ac_config_target in $ac_config_targets |
| |
do |
| |
case "$ac_config_target" in |
| |
# Handling of arguments. |
| |
"demos/pexpr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;; |
| |
"demos/calc/calc-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;; |
| |
"demos/expr/expr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/expr/expr-config.h:demos/expr/expr-config-h.in" ;; |
| |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| |
"mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;; |
| |
"mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;; |
| |
"mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;; |
| |
"mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;; |
| |
"mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;; |
| |
"printf/Makefile" ) CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;; |
| |
"scanf/Makefile" ) CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;; |
| |
"cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;; |
| |
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| |
"tests/devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;; |
| |
"tests/mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;; |
| |
"tests/mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;; |
| |
"tests/mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;; |
| |
"tests/mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;; |
| |
"tests/mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;; |
| |
"tests/rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;; |
| |
"tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;; |
| |
"tests/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;; |
| |
"mpfr/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpfr/Makefile" ;; |
| |
"mpfr/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpfr/tests/Makefile" ;; |
| |
"tune/Makefile" ) CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; |
| |
"demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;; |
| |
"demos/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;; |
| |
"demos/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;; |
| |
"gmp.h" ) CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;; |
| |
"mp.h" ) CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;; |
| |
"mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;; |
| |
"gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;; |
| |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| |
*) { { echo "$as_me:21972: error: invalid argument: $ac_config_target" >&5 |
| |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| |
{ (exit 1); exit 1; }; };; |
| |
esac |
| |
done |
| |
|
| |
# If the user did not use the arguments to specify the items to instantiate, |
| |
# then the envvar interface is used. Set only those that are not. |
| |
# We use the long form for the default assignment because of an extremely |
| |
# bizarre bug on SunOS 4.1.3. |
| |
if $ac_need_defaults; then |
| |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| |
fi |
| |
|
| |
# Create a temporary directory, and hook for its removal unless debugging. |
| |
$debug || |
| |
{ |
| |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| |
} |
| |
|
| |
# Create a (secure) tmp directory for tmp files. |
| |
: ${TMPDIR=/tmp} |
| |
{ |
| |
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| |
test -n "$tmp" && test -d "$tmp" |
| |
} || |
| |
{ |
| |
tmp=$TMPDIR/cs$$-$RANDOM |
| |
(umask 077 && mkdir $tmp) |
| |
} || |
| |
{ |
| |
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| |
{ (exit 1); exit 1; } |
| |
} |
| |
|
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<EOF |
| |
|
| |
# |
| |
# CONFIG_FILES section. |
| |
# |
| |
|
| |
# No need to generate the scripts if there are no CONFIG_FILES. |
| |
# This happens for instance when ./config.status config.h |
| |
if test -n "\$CONFIG_FILES"; then |
| |
# Protect against being on the right side of a sed subst in config.status. |
| |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| |
s,@SHELL@,$SHELL,;t t |
| |
s,@exec_prefix@,$exec_prefix,;t t |
| |
s,@prefix@,$prefix,;t t |
| |
s,@program_transform_name@,$program_transform_name,;t t |
| |
s,@bindir@,$bindir,;t t |
| |
s,@sbindir@,$sbindir,;t t |
| |
s,@libexecdir@,$libexecdir,;t t |
| |
s,@datadir@,$datadir,;t t |
| |
s,@sysconfdir@,$sysconfdir,;t t |
| |
s,@sharedstatedir@,$sharedstatedir,;t t |
| |
s,@localstatedir@,$localstatedir,;t t |
| |
s,@libdir@,$libdir,;t t |
| |
s,@includedir@,$includedir,;t t |
| |
s,@oldincludedir@,$oldincludedir,;t t |
| |
s,@infodir@,$infodir,;t t |
| |
s,@mandir@,$mandir,;t t |
| |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| |
s,@build_alias@,$build_alias,;t t |
| |
s,@host_alias@,$host_alias,;t t |
| |
s,@target_alias@,$target_alias,;t t |
| |
s,@ECHO_C@,$ECHO_C,;t t |
| |
s,@ECHO_N@,$ECHO_N,;t t |
| |
s,@ECHO_T@,$ECHO_T,;t t |
| |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| |
s,@DEFS@,$DEFS,;t t |
| |
s,@LIBS@,$LIBS,;t t |
| |
s,@build@,$build,;t t |
| |
s,@build_cpu@,$build_cpu,;t t |
| |
s,@build_vendor@,$build_vendor,;t t |
| |
s,@build_os@,$build_os,;t t |
| |
s,@host@,$host,;t t |
| |
s,@host_cpu@,$host_cpu,;t t |
| |
s,@host_vendor@,$host_vendor,;t t |
| |
s,@host_os@,$host_os,;t t |
| |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| |
s,@PACKAGE@,$PACKAGE,;t t |
| |
s,@VERSION@,$VERSION,;t t |
| |
s,@EXEEXT@,$EXEEXT,;t t |
| |
s,@OBJEXT@,$OBJEXT,;t t |
| |
s,@ACLOCAL@,$ACLOCAL,;t t |
| |
s,@AUTOCONF@,$AUTOCONF,;t t |
| |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
| |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
| |
s,@MAKEINFO@,$MAKEINFO,;t t |
| |
s,@AMTAR@,$AMTAR,;t t |
| |
s,@install_sh@,$install_sh,;t t |
| |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| |
s,@AWK@,$AWK,;t t |
| |
s,@SET_MAKE@,$SET_MAKE,;t t |
| |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| |
s,@DEPDIR@,$DEPDIR,;t t |
| |
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| |
s,@MAINT@,$MAINT,;t t |
| |
s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t |
| |
s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t |
| |
s,@WANT_MPFR_TRUE@,$WANT_MPFR_TRUE,;t t |
| |
s,@WANT_MPFR_FALSE@,$WANT_MPFR_FALSE,;t t |
| |
s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t |
| |
s,@ABI@,$ABI,;t t |
| |
s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t |
| |
s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t |
| |
s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t |
| |
s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t |
| |
s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t |
| |
s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t |
| |
s,@CC@,$CC,;t t |
| |
s,@CFLAGS@,$CFLAGS,;t t |
| |
s,@LDFLAGS@,$LDFLAGS,;t t |
| |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| |
s,@am__include@,$am__include,;t t |
| |
s,@am__quote@,$am__quote,;t t |
| |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
| |
s,@CPP@,$CPP,;t t |
| |
s,@CXX@,$CXX,;t t |
| |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
| |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| |
s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t |
| |
s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t |
| |
s,@CXXCPP@,$CXXCPP,;t t |
| |
s,@U@,$U,;t t |
| |
s,@ANSI2KNR@,$ANSI2KNR,;t t |
| |
s,@AR@,$AR,;t t |
| |
s,@ac_ct_AR@,$ac_ct_AR,;t t |
| |
s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t |
| |
s,@LN_S@,$LN_S,;t t |
| |
s,@ECHO@,$ECHO,;t t |
| |
s,@RANLIB@,$RANLIB,;t t |
| |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| |
s,@STRIP@,$STRIP,;t t |
| |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| |
s,@DLLTOOL@,$DLLTOOL,;t t |
| |
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
| |
s,@AS@,$AS,;t t |
| |
s,@ac_ct_AS@,$ac_ct_AS,;t t |
| |
s,@OBJDUMP@,$OBJDUMP,;t t |
| |
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t |
| |
s,@LIBTOOL@,$LIBTOOL,;t t |
| |
s,@CCAS@,$CCAS,;t t |
| |
s,@LIBM@,$LIBM,;t t |
| |
s,@TAL_OBJECT@,$TAL_OBJECT,;t t |
| |
s,@REPL_VSNPRINTF_PRINTF_OBJ@,$REPL_VSNPRINTF_PRINTF_OBJ,;t t |
| |
s,@REPL_VSNPRINTF_OBJ@,$REPL_VSNPRINTF_OBJ,;t t |
| |
s,@M4@,$M4,;t t |
| |
s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t |
| |
s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t |
| |
s,@mpn_objects@,$mpn_objects,;t t |
| |
s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t |
| |
s,@gmp_srclinks@,$gmp_srclinks,;t t |
| |
s,@LIBOBJS@,$LIBOBJS,;t t |
| |
s,@MPFR_CFLAGS@,$MPFR_CFLAGS,;t t |
| |
s,@MPFR_LIBS@,$MPFR_LIBS,;t t |
| |
s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t |
| |
s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t |
| |
s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t |
| |
s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t |
| |
s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t |
| |
s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t |
| |
s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t |
| |
s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t |
| |
s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t |
| |
s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t |
| |
s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t |
| |
s,@LIBREADLINE@,$LIBREADLINE,;t t |
| |
s,@YACC@,$YACC,;t t |
| |
s,@LEX@,$LEX,;t t |
| |
s,@LEXLIB@,$LEXLIB,;t t |
| |
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| |
s,@HAVE_MPFR_01@,$HAVE_MPFR_01,;t t |
| |
s,@HAVE_DECL_OPTARG@,$HAVE_DECL_OPTARG,;t t |
| |
CEOF |
| |
|
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
# Split the substitutions into bite-sized pieces for seds with |
| |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| |
ac_max_sed_lines=48 |
| |
ac_sed_frag=1 # Number of current file. |
| |
ac_beg=1 # First line for current file. |
| |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| |
ac_more_lines=: |
| |
ac_sed_cmds= |
| |
while $ac_more_lines; do |
| |
if test $ac_beg -gt 1; then |
| |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| |
else |
| |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| |
fi |
| |
if test ! -s $tmp/subs.frag; then |
| |
ac_more_lines=false |
| |
else |
| |
# The purpose of the label and of the branching condition is to |
| |
# speed up the sed processing (if there are no `@' at all, there |
| |
# is no need to browse any of the substitutions). |
| |
# These are the two extra sed commands mentioned above. |
| |
(echo ':t |
| |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| |
if test -z "$ac_sed_cmds"; then |
| |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| |
else |
| |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| |
fi |
| |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| |
ac_beg=$ac_end |
| |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| |
fi |
| |
done |
| |
if test -z "$ac_sed_cmds"; then |
| |
ac_sed_cmds=cat |
| |
fi |
| |
fi # test -n "$CONFIG_FILES" |
| |
|
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| |
case $ac_file in |
| |
- | *:- | *:-:* ) # input from stdin |
| |
cat >$tmp/stdin |
| |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| |
* ) ac_file_in=$ac_file.in ;; |
| |
esac |
| |
|
| |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| |
X"$ac_file" : 'X\(//\)$' \| \ |
| |
X"$ac_file" : 'X\(/\)' \| \ |
| |
. : '\(.\)' 2>/dev/null || |
| |
echo X"$ac_file" | |
| |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| |
/^X\(\/\/\)$/{ s//\1/; q; } |
| |
/^X\(\/\).*/{ s//\1/; q; } |
| |
s/.*/./; q'` |
| |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| |
{ case "$ac_dir" in |
| |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| |
*) as_incr_dir=.;; |
| |
esac |
| |
as_dummy="$ac_dir" |
| |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| |
case $as_mkdir_dir in |
| |
# Skip DOS drivespec |
| |
?:) as_incr_dir=$as_mkdir_dir ;; |
| |
*) |
| |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| |
;; |
| |
esac |
| |
done; } |
| |
|
| |
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
| |
# A "../" for each directory in $ac_dir_suffix. |
| |
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| |
else |
| |
ac_dir_suffix= ac_dots= |
| |
fi |
| |
|
| |
case $srcdir in |
| |
.) ac_srcdir=. |
| |
if test -z "$ac_dots"; then |
| |
ac_top_srcdir=. |
| |
else |
| |
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
| |
fi ;; |
| |
[\\/]* | ?:[\\/]* ) |
| |
ac_srcdir=$srcdir$ac_dir_suffix; |
| |
ac_top_srcdir=$srcdir ;; |
| |
*) # Relative path. |
| |
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| |
ac_top_srcdir=$ac_dots$srcdir ;; |
| |
esac |
| |
|
| |
case $INSTALL in |
| |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| |
*) ac_INSTALL=$ac_dots$INSTALL ;; |
| |
esac |
| |
|
| |
if test x"$ac_file" != x-; then |
| |
{ echo "$as_me:22279: creating $ac_file" >&5 |
| |
echo "$as_me: creating $ac_file" >&6;} |
| |
rm -f "$ac_file" |
| |
fi |
| |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| |
# use $as_me), people would be surprised to read: |
| |
# /* config.h. Generated automatically by config.status. */ |
| |
configure_input="Generated automatically from `echo $ac_file_in | |
| |
sed 's,.*/,,'` by configure." |
| |
|
| |
# First look for the input files in the build tree, otherwise in the |
| |
# src tree. |
| |
ac_file_inputs=`IFS=: |
| |
for f in $ac_file_in; do |
| |
case $f in |
| |
-) echo $tmp/stdin ;; |
| |
[\\/$]*) |
| |
# Absolute (can't be DOS-style, as IFS=:) |
| |
test -f "$f" || { { echo "$as_me:22297: error: cannot find input file: $f" >&5 |
| |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
echo $f;; |
| |
*) # Relative |
| |
if test -f "$f"; then |
| |
# Build tree |
| |
echo $f |
| |
elif test -f "$srcdir/$f"; then |
| |
# Source tree |
| |
echo $srcdir/$f |
| |
else |
| |
# /dev/null tree |
| |
{ { echo "$as_me:22310: error: cannot find input file: $f" >&5 |
| |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi;; |
| |
esac |
| |
done` || { (exit 1); exit 1; } |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<EOF |
| |
sed "$ac_vpsub |
| |
$extrasub |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
:t |
| |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| |
s,@configure_input@,$configure_input,;t t |
| |
s,@srcdir@,$ac_srcdir,;t t |
| |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| |
s,@INSTALL@,$ac_INSTALL,;t t |
| |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| |
rm -f $tmp/stdin |
| |
if test x"$ac_file" != x-; then |
| |
mv $tmp/out $ac_file |
| |
else |
| |
cat $tmp/out |
| |
rm -f $tmp/out |
| |
fi |
| |
|
| |
done |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
|
| |
# |
| |
# CONFIG_HEADER section. |
| |
# |
| |
|
| |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
| |
# |
| |
# ac_d sets the value in "#define NAME VALUE" lines. |
| |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| |
ac_dB='[ ].*$,\1#\2' |
| |
ac_dC=' ' |
| |
ac_dD=',;t' |
| |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| |
ac_uB='$,\1#\2define\3' |
| |
ac_uC=' ' |
| |
ac_uD=',;t' |
| |
|
| |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| |
case $ac_file in |
| |
- | *:- | *:-:* ) # input from stdin |
| |
cat >$tmp/stdin |
| |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| |
* ) ac_file_in=$ac_file.in ;; |
| |
esac |
| |
|
| |
test x"$ac_file" != x- && { echo "$as_me:22371: creating $ac_file" >&5 |
| |
echo "$as_me: creating $ac_file" >&6;} |
| |
|
| |
# First look for the input files in the build tree, otherwise in the |
| |
# src tree. |
| |
ac_file_inputs=`IFS=: |
| |
for f in $ac_file_in; do |
| |
case $f in |
| |
-) echo $tmp/stdin ;; |
| |
[\\/$]*) |
| |
# Absolute (can't be DOS-style, as IFS=:) |
| |
test -f "$f" || { { echo "$as_me:22382: error: cannot find input file: $f" >&5 |
| |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
echo $f;; |
| |
*) # Relative |
| |
if test -f "$f"; then |
| |
# Build tree |
| |
echo $f |
| |
elif test -f "$srcdir/$f"; then |
| |
# Source tree |
| |
echo $srcdir/$f |
| |
else |
| |
# /dev/null tree |
| |
{ { echo "$as_me:22395: error: cannot find input file: $f" >&5 |
| |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi;; |
| |
esac |
| |
done` || { (exit 1); exit 1; } |
| |
# Remove the trailing spaces. |
| |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| |
|
| |
EOF |
| |
|
| |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
| |
# `conftest.undefs', that substitutes the proper values into |
| |
# config.h.in to produce config.h. The first handles `#define' |
| |
# templates, and the second `#undef' templates. |
| |
# And first: Protect against being on the right side of a sed subst in |
| |
# config.status. Protect against being in an unquoted here document |
| |
# in config.status. |
| |
rm -f conftest.defines conftest.undefs |
| |
# Using a here document instead of a string reduces the quoting nightmare. |
| |
# Putting comments in sed scripts is not portable. |
| |
# |
| |
# `end' is used to avoid that the second main sed command (meant for |
| |
# 0-ary CPP macros) applies to n-ary macro definitions. |
| |
# See the Autoconf documentation for `clear'. |
| |
cat >confdef2sed.sed <<\EOF |
| |
s/[\\&,]/\\&/g |
| |
s,[\\$`],\\&,g |
| |
t clear |
| |
: clear |
| |
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
| |
t end |
| |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| |
: end |
| |
EOF |
| |
# If some macros were called several times there might be several times |
| |
# the same #defines, which is useless. Nevertheless, we may not want to |
| |
# sort them, since we want the *last* AC-DEFINE to be honored. |
| |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| |
rm -f confdef2sed.sed |
| |
|
| |
# This sed command replaces #undef with comments. This is necessary, for |
| |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
| |
# on some systems where configure will not decide to define it. |
| |
cat >>conftest.undefs <<\EOF |
| |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| |
EOF |
| |
|
| |
# Break up conftest.defines because some shells have a limit on the size |
| |
# of here documents, and old seds have small limits too (100 cmds). |
| |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| |
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| |
echo ' :' >>$CONFIG_STATUS |
| |
rm -f conftest.tail |
| |
while grep . conftest.defines >/dev/null |
| |
do |
| |
# Write a limited-size here document to $tmp/defines.sed. |
| |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| |
# Speed up: don't consider the non `#define' lines. |
| |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| |
# Work around the forget-to-reset-the-flag bug. |
| |
echo 't clr' >>$CONFIG_STATUS |
| |
echo ': clr' >>$CONFIG_STATUS |
| |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| |
echo 'CEOF |
| |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| |
rm -f $tmp/in |
| |
mv $tmp/out $tmp/in |
| |
' >>$CONFIG_STATUS |
| |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| |
rm -f conftest.defines |
| |
mv conftest.tail conftest.defines |
| |
done |
| |
rm -f conftest.defines |
| |
echo ' fi # egrep' >>$CONFIG_STATUS |
| |
echo >>$CONFIG_STATUS |
| |
|
| |
# Break up conftest.undefs because some shells have a limit on the size |
| |
# of here documents, and old seds have small limits too (100 cmds). |
| |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| |
rm -f conftest.tail |
| |
while grep . conftest.undefs >/dev/null |
| |
do |
| |
# Write a limited-size here document to $tmp/undefs.sed. |
| |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| |
# Speed up: don't consider the non `#undef' |
| |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| |
# Work around the forget-to-reset-the-flag bug. |
| |
echo 't clr' >>$CONFIG_STATUS |
| |
echo ': clr' >>$CONFIG_STATUS |
| |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| |
echo 'CEOF |
| |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| |
rm -f $tmp/in |
| |
mv $tmp/out $tmp/in |
| |
' >>$CONFIG_STATUS |
| |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| |
rm -f conftest.undefs |
| |
mv conftest.tail conftest.undefs |
| |
done |
| |
rm -f conftest.undefs |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| |
# use $as_me), people would be surprised to read: |
| |
# /* config.h. Generated automatically by config.status. */ |
| |
if test x"$ac_file" = x-; then |
| |
echo "/* Generated automatically by configure. */" >$tmp/config.h |
| |
else |
| |
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
| |
fi |
| |
cat $tmp/in >>$tmp/config.h |
| |
rm -f $tmp/in |
| |
if test x"$ac_file" != x-; then |
| |
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| |
{ echo "$as_me:22512: $ac_file is unchanged" >&5 |
| |
echo "$as_me: $ac_file is unchanged" >&6;} |
| |
else |
| |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| |
X"$ac_file" : 'X\(//\)$' \| \ |
| |
X"$ac_file" : 'X\(/\)' \| \ |
| |
. : '\(.\)' 2>/dev/null || |
| |
echo X"$ac_file" | |
| |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| |
/^X\(\/\/\)$/{ s//\1/; q; } |
| |
/^X\(\/\).*/{ s//\1/; q; } |
| |
s/.*/./; q'` |
| |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| |
{ case "$ac_dir" in |
| |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| |
*) as_incr_dir=.;; |
| |
esac |
| |
as_dummy="$ac_dir" |
| |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| |
case $as_mkdir_dir in |
| |
# Skip DOS drivespec |
| |
?:) as_incr_dir=$as_mkdir_dir ;; |
| |
*) |
| |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| |
;; |
| |
esac |
| |
done; } |
| |
|
| |
fi |
| |
rm -f $ac_file |
| |
mv $tmp/config.h $ac_file |
| |
fi |
| |
else |
| |
cat $tmp/config.h |
| |
rm -f $tmp/config.h |
| |
fi |
| |
# Run the commands associated with the file. |
| |
case $ac_file in |
| |
config.h ) # update the timestamp |
| |
echo timestamp >"./stamp-h1" |
| |
;; |
| |
esac |
| |
done |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
|
| |
# |
| |
# CONFIG_LINKS section. |
| |
# |
| |
|
| |
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
|
| |
{ echo "$as_me:22569: linking $srcdir/$ac_source to $ac_dest" >&5 |
| |
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| |
|
| |
if test ! -r $srcdir/$ac_source; then |
| |
{ { echo "$as_me:22573: error: $srcdir/$ac_source: File not found" >&5 |
| |
echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
fi |
| |
rm -f $ac_dest |
| |
|
| |
# Make relative symlinks. |
| |
ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| |
X"$ac_dest" : 'X\(//\)$' \| \ |
| |
X"$ac_dest" : 'X\(/\)' \| \ |
| |
. : '\(.\)' 2>/dev/null || |
| |
echo X"$ac_dest" | |
| |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| |
/^X\(\/\/\)$/{ s//\1/; q; } |
| |
/^X\(\/\).*/{ s//\1/; q; } |
| |
s/.*/./; q'` |
| |
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
| |
{ case "$ac_dest_dir" in |
| |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| |
*) as_incr_dir=.;; |
| |
esac |
| |
as_dummy="$ac_dest_dir" |
| |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| |
case $as_mkdir_dir in |
| |
# Skip DOS drivespec |
| |
?:) as_incr_dir=$as_mkdir_dir ;; |
| |
*) |
| |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| |
;; |
| |
esac |
| |
done; } |
| |
|
| |
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`" |
| |
# A "../" for each directory in $ac_dest_dir_suffix. |
| |
ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'` |
| |
else |
| |
ac_dest_dir_suffix= ac_dots= |
| |
fi |
| |
|
| |
case $srcdir in |
| |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| |
*) ac_rel_source=$ac_dots$srcdir/$ac_source ;; |
| |
esac |
| |
|
| |
# Make a symlink if possible; otherwise try a hard link. |
| |
ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| |
ln $srcdir/$ac_source $ac_dest || |
| |
{ { echo "$as_me:22623: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 |
| |
echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;} |
| |
{ (exit 1); exit 1; }; } |
| |
done |
| |
EOF |
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
|
| |
# |
| |
# CONFIG_COMMANDS section. |
| |
# |
| |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| |
|
| |
case $ac_dest in |
| |
default-1 ) |
| |
test x"$AMDEP_TRUE" != x"" || |
| |
for mf in $CONFIG_FILES; do |
| |
case "$mf" in |
| |
Makefile) dirpart=.;; |
| |
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; |
| |
*) continue;; |
| |
esac |
| |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| |
# Extract the definition of DEP_FILES from the Makefile without |
| |
# running `make'. |
| |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| |
test -z "$DEPDIR" && continue |
| |
# When using ansi2knr, U may be empty or an underscore; expand it |
| |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
| |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| |
# We invoke sed twice because it is the simplest approach to |
| |
# changing $(DEPDIR) to its actual value in the expansion. |
| |
for file in `sed -n -e ' |
| |
/^DEP_FILES = .*\\\\$/ { |
| |
s/^DEP_FILES = // |
| |
:loop |
| |
s/\\\\$// |
| |
p |
| |
n |
| |
/\\\\$/ b loop |
| |
p |
| |
} |
| |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| |
# Make sure the directory exists. |
| |
test -f "$dirpart/$file" && continue |
| |
fdir=`echo "$file" | sed -e 's|/[^/]*$||'` |
| |
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 |
| |
# echo "creating $dirpart/$file" |
| |
echo '# dummy' > "$dirpart/$file" |
| |
done |
| |
done |
| |
;; |
| |
esac |
| |
done |
| |
EOF |
| |
|
| |
cat >>$CONFIG_STATUS <<\EOF |
| |
|
| |
{ (exit 0); exit 0; } |
| |
EOF |
| |
chmod +x $CONFIG_STATUS |
| |
ac_clean_files=$ac_clean_files_save |
| |
|
| |
# configure is writing to config.log, and then calls config.status. |
| |
# config.status does its own redirection, appending to config.log. |
| |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| |
# by configure, so config.status won't be able to write to it; its |
| |
# output is simply discarded. So we exec the FD to /dev/null, |
| |
# effectively closing config.log, so it can be properly (re)opened and |
| |
# appended to by config.status. When coming back to configure, we |
| |
# need to make the FD available again. |
| |
if test "$no_create" != yes; then |
| |
ac_cs_success=: |
| |
exec 5>/dev/null |
| |
$SHELL $CONFIG_STATUS || ac_cs_success=false |
| |
exec 5>>config.log |
| |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| |
# would make configure fail if this is the last instruction. |
| |
$ac_cs_success || { (exit 1); exit 1; } |
| |
fi |
| |
|