URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 228 to Rev 229
- ↔ Reverse comparison
Rev 228 → Rev 229
/trunk/or1ksim/testbench/configure
5,84 → 5,6
|
|
|
|
# serial 40 AC_PROG_LIBTOOL |
|
|
|
|
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support |
|
|
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's |
|
|
# AC_ENABLE_SHARED - implement the --enable-shared flag |
# Usage: AC_ENABLE_SHARED[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
|
|
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared |
|
|
# AC_ENABLE_STATIC - implement the --enable-static flag |
# Usage: AC_ENABLE_STATIC[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
|
|
# AC_DISABLE_STATIC - set the default static flag to --disable-static |
|
|
|
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag |
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
|
|
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install |
|
|
# AC_PROG_LD - find the path to the GNU or non-GNU linker |
|
|
|
|
# AC_PROG_NM - find the path to a BSD-compatible name lister |
|
|
# AC_CHECK_LIBM - check for math library |
|
|
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
# the libltdl convenience library and INCLTDL to the include flags for |
# the libltdl header and adds --enable-ltdl-convenience to the |
# configure arguments. Note that LIBLTDL and INCLTDL are not |
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not |
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed |
# with '${top_builddir}/' and INCLTDL will be prefixed with |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
# flat and you're not using automake, define top_builddir and |
# top_srcdir appropriately in the Makefiles. |
|
|
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
# the libltdl installable library and INCLTDL to the include flags for |
# the libltdl header and adds --enable-ltdl-install to the configure |
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is |
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed |
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will |
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed |
# with '${top_srcdir}/' (note the single quotes!). If your package is |
# not flat and you're not using automake, define top_builddir and |
# top_srcdir appropriately in the Makefiles. |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
|
|
|
|
# Do all the work for Automake. This macro actually does too much -- |
# some checks are only needed if your package does certain things. |
# But this isn't really a big deal. |
595,13 → 517,6
fi |
done |
|
if test -r "$cache_file"; then |
echo "loading cache $cache_file" |
. $cache_file |
else |
echo "creating cache $cache_file" |
> $cache_file |
fi |
|
ac_ext=c |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
651,7 → 566,7
fi |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
echo "configure:655: checking host system type" >&5 |
echo "configure:570: checking host system type" >&5 |
|
host_alias=$host |
case "$host_alias" in |
683,7 → 598,7
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# ./install, which can be erroneously created by make from ./install.sh. |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo "configure:687: checking for a BSD compatible install" >&5 |
echo "configure:602: checking for a BSD compatible install" >&5 |
if test -z "$INSTALL"; then |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
736,7 → 651,7
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
echo "configure:740: checking whether build environment is sane" >&5 |
echo "configure:655: checking whether build environment is sane" >&5 |
# Just in case |
sleep 1 |
echo timestamp > conftestfile |
793,7 → 708,7
test "$program_transform_name" = "" && program_transform_name="s,x,x," |
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
echo "configure:797: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
839,7 → 754,7
|
missing_dir=`cd $ac_aux_dir && pwd` |
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
echo "configure:843: checking for working aclocal" >&5 |
echo "configure:758: checking for working aclocal" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
852,7 → 767,7
fi |
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
echo "configure:856: checking for working autoconf" >&5 |
echo "configure:771: checking for working autoconf" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
865,7 → 780,7
fi |
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
echo "configure:869: checking for working automake" >&5 |
echo "configure:784: checking for working automake" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
878,7 → 793,7
fi |
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
echo "configure:882: checking for working autoheader" >&5 |
echo "configure:797: checking for working autoheader" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
891,7 → 806,7
fi |
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
echo "configure:895: checking for working makeinfo" >&5 |
echo "configure:810: checking for working makeinfo" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
906,7 → 821,7
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
echo "configure:910: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
echo "configure:825: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
944,7 → 859,7
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# ./install, which can be erroneously created by make from ./install.sh. |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo "configure:948: checking for a BSD compatible install" >&5 |
echo "configure:863: checking for a BSD compatible install" >&5 |
if test -z "$INSTALL"; then |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
997,7 → 912,7
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
echo "configure:1001: checking build system type" >&5 |
echo "configure:916: checking build system type" >&5 |
|
build_alias=$build |
case "$build_alias" in |
1020,10 → 935,10
ac_tool_prefix= |
fi |
|
# Extract the first word of "${ac_tool_prefix}$host_cpu-$host_os-gcc", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$host_cpu-$host_os-gcc; ac_word=$2 |
# Extract the first word of "${ac_tool_prefix}$target-gcc", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1027: checking for $ac_word" >&5 |
echo "configure:942: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1035,7 → 950,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_CC="${ac_tool_prefix}$host_cpu-$host_os-gcc" |
ac_cv_prog_CC="${ac_tool_prefix}$target-gcc" |
break |
fi |
done |
1052,10 → 967,10
|
if test -z "$ac_cv_prog_CC"; then |
if test -n "$ac_tool_prefix"; then |
# Extract the first word of "$host_cpu-$host_os-gcc", so it can be a program name with args. |
set dummy $host_cpu-$host_os-gcc; ac_word=$2 |
# Extract the first word of "$target-gcc", so it can be a program name with args. |
set dummy $target-gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1059: checking for $ac_word" >&5 |
echo "configure:974: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1067,7 → 982,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_CC="$host_cpu-$host_os-gcc" |
ac_cv_prog_CC="$target-gcc" |
break |
fi |
done |
1087,10 → 1002,10
fi |
fi |
|
# Extract the first word of "${ac_tool_prefix}$host_cpu-$host_os-ranlib", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$host_cpu-$host_os-ranlib; ac_word=$2 |
# Extract the first word of "${ac_tool_prefix}$target-ranlib", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-ranlib; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1094: checking for $ac_word" >&5 |
echo "configure:1009: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1102,7 → 1017,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_RANLIB="${ac_tool_prefix}$host_cpu-$host_os-ranlib" |
ac_cv_prog_RANLIB="${ac_tool_prefix}$target-ranlib" |
break |
fi |
done |
1119,10 → 1034,10
|
if test -z "$ac_cv_prog_RANLIB"; then |
if test -n "$ac_tool_prefix"; then |
# Extract the first word of "$host_cpu-$host_os-ranlib", so it can be a program name with args. |
set dummy $host_cpu-$host_os-ranlib; ac_word=$2 |
# Extract the first word of "$target-ranlib", so it can be a program name with args. |
set dummy $target-ranlib; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1126: checking for $ac_word" >&5 |
echo "configure:1041: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1134,7 → 1049,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_RANLIB="$host_cpu-$host_os-ranlib" |
ac_cv_prog_RANLIB="$target-ranlib" |
break |
fi |
done |
1154,10 → 1069,10
fi |
fi |
|
# Extract the first word of "${ac_tool_prefix}$host_cpu-$host_os-ld", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$host_cpu-$host_os-ld; ac_word=$2 |
# Extract the first word of "${ac_tool_prefix}$target-ld", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-ld; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1161: checking for $ac_word" >&5 |
echo "configure:1076: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1169,7 → 1084,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_LD="${ac_tool_prefix}$host_cpu-$host_os-ld" |
ac_cv_prog_LD="${ac_tool_prefix}$target-ld" |
break |
fi |
done |
1186,10 → 1101,10
|
if test -z "$ac_cv_prog_LD"; then |
if test -n "$ac_tool_prefix"; then |
# Extract the first word of "$host_cpu-$host_os-ld", so it can be a program name with args. |
set dummy $host_cpu-$host_os-ld; ac_word=$2 |
# Extract the first word of "$target-ld", so it can be a program name with args. |
set dummy $target-ld; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1193: checking for $ac_word" >&5 |
echo "configure:1108: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1201,7 → 1116,7
for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
ac_cv_prog_LD="$host_cpu-$host_os-ld" |
ac_cv_prog_LD="$target-ld" |
break |
fi |
done |
1224,7 → 1139,7
# Extract the first word of "gcc", so it can be a program name with args. |
set dummy gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1228: checking for $ac_word" >&5 |
echo "configure:1143: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1254,7 → 1169,7
# Extract the first word of "cc", so it can be a program name with args. |
set dummy cc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1258: checking for $ac_word" >&5 |
echo "configure:1173: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1305,7 → 1220,7
# Extract the first word of "cl", so it can be a program name with args. |
set dummy cl; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1309: checking for $ac_word" >&5 |
echo "configure:1224: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1337,7 → 1252,7
fi |
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
echo "configure:1341: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
echo "configure:1256: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
ac_ext=c |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1348,12 → 1263,12
|
cat > conftest.$ac_ext << EOF |
|
#line 1352 "configure" |
#line 1267 "configure" |
#include "confdefs.h" |
|
main(){return(0);} |
EOF |
if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ac_cv_prog_cc_works=yes |
# If we can't run a trivial program, we are probably using a cross compiler. |
if (./conftest; exit) 2>/dev/null; then |
1379,12 → 1294,12
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
fi |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
echo "configure:1383: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
echo "configure:1298: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
cross_compiling=$ac_cv_prog_cc_cross |
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
echo "configure:1388: checking whether we are using GNU C" >&5 |
echo "configure:1303: checking whether we are using GNU C" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1393,7 → 1308,7
yes; |
#endif |
EOF |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
ac_cv_prog_gcc=yes |
else |
ac_cv_prog_gcc=no |
1412,7 → 1327,7
ac_save_CFLAGS="$CFLAGS" |
CFLAGS= |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
echo "configure:1416: checking whether ${CC-cc} accepts -g" >&5 |
echo "configure:1331: checking whether ${CC-cc} accepts -g" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1444,7 → 1359,7
fi |
|
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
echo "configure:1448: checking for POSIXized ISC" >&5 |
echo "configure:1363: checking for POSIXized ISC" >&5 |
if test -d /etc/conf/kconfig.d && |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
then |
1465,7 → 1380,7
fi |
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
echo "configure:1469: checking how to run the C preprocessor" >&5 |
echo "configure:1384: checking how to run the C preprocessor" >&5 |
# On Suns, sometimes $CPP names a directory. |
if test -n "$CPP" && test -d "$CPP"; then |
CPP= |
1480,13 → 1395,13
# On the NeXT, cc -E runs the code through the compiler's parser, |
# not just through cpp. |
cat > conftest.$ac_ext <<EOF |
#line 1484 "configure" |
#line 1399 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
1497,13 → 1412,13
rm -rf conftest* |
CPP="${CC-cc} -E -traditional-cpp" |
cat > conftest.$ac_ext <<EOF |
#line 1501 "configure" |
#line 1416 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
1514,13 → 1429,13
rm -rf conftest* |
CPP="${CC-cc} -nologo -E" |
cat > conftest.$ac_ext <<EOF |
#line 1518 "configure" |
#line 1433 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
1545,12 → 1460,12
echo "$ac_t""$CPP" 1>&6 |
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
echo "configure:1549: checking for ANSI C header files" >&5 |
echo "configure:1464: checking for ANSI C header files" >&5 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
cat > conftest.$ac_ext <<EOF |
#line 1554 "configure" |
#line 1469 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
#include <stdarg.h> |
1558,7 → 1473,7
#include <float.h> |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
rm -rf conftest* |
1575,7 → 1490,7
if test $ac_cv_header_stdc = yes; then |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
cat > conftest.$ac_ext <<EOF |
#line 1579 "configure" |
#line 1494 "configure" |
#include "confdefs.h" |
#include <string.h> |
EOF |
1593,7 → 1508,7
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 <<EOF |
#line 1597 "configure" |
#line 1512 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
EOF |
1614,7 → 1529,7
: |
else |
cat > conftest.$ac_ext <<EOF |
#line 1618 "configure" |
#line 1533 "configure" |
#include "confdefs.h" |
#include <ctype.h> |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1625,7 → 1540,7
exit (0); } |
|
EOF |
if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
then |
: |
else |
1654,13 → 1569,13
|
if test $ac_cv_prog_gcc = yes; then |
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
echo "configure:1658: checking whether ${CC-cc} needs -traditional" >&5 |
echo "configure:1573: checking whether ${CC-cc} needs -traditional" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
ac_pattern="Autoconf.*'x'" |
cat > conftest.$ac_ext <<EOF |
#line 1664 "configure" |
#line 1579 "configure" |
#include "confdefs.h" |
#include <sgtty.h> |
Autoconf TIOCGETP |
1678,7 → 1593,7
|
if test $ac_cv_prog_gcc_traditional = no; then |
cat > conftest.$ac_ext <<EOF |
#line 1682 "configure" |
#line 1597 "configure" |
#include "confdefs.h" |
#include <termio.h> |
Autoconf TCGETA |
1702,7 → 1617,7
|
set -- $CFLAGS |
COMPILE_OR1K=unknown |
case $host in |
case $target in |
or1k*|or32*) |
CFLAGS="$CFLAGS -nostdlib" |
COMPILE=or1k |
1723,12 → 1638,12
INCLUDES="-I\${top_srcdir}/support" |
|
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
echo "configure:1727: checking for working const" >&5 |
echo "configure:1642: checking for working const" >&5 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
cat > conftest.$ac_ext <<EOF |
#line 1732 "configure" |
#line 1647 "configure" |
#include "confdefs.h" |
|
int main() { |
1777,7 → 1692,7
|
; return 0; } |
EOF |
if { (eval echo configure:1781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
rm -rf conftest* |
ac_cv_c_const=yes |
else |
1798,7 → 1713,7
fi |
|
echo $ac_n "checking for inline""... $ac_c" 1>&6 |
echo "configure:1802: checking for inline" >&5 |
echo "configure:1717: checking for inline" >&5 |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1805,7 → 1720,7
ac_cv_c_inline=no |
for ac_kw in inline __inline__ __inline; do |
cat > conftest.$ac_ext <<EOF |
#line 1809 "configure" |
#line 1724 "configure" |
#include "confdefs.h" |
|
int main() { |
1812,7 → 1727,7
} $ac_kw foo() { |
; return 0; } |
EOF |
if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
rm -rf conftest* |
ac_cv_c_inline=$ac_kw; break |
else |
1839,52 → 1754,6
|
|
trap '' 1 2 15 |
cat > confcache <<\EOF |
# 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. It is not useful on other systems. |
# If it contains results you don't want to keep, you may remove or edit it. |
# |
# By default, configure uses ./config.cache as the cache file, |
# creating it if it does not exist already. You can give configure |
# the --cache-file=FILE option to use a different cache file; that is |
# what configure does when it calls configure scripts in |
# subdirectories, so they share the cache. |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
# config.status only pays attention to the cache file if you give it the |
# --recheck option to rerun configure. |
# |
EOF |
# 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 \ |
-e "s/'/'\\\\''/g" \ |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
;; |
*) |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
;; |
esac >> confcache |
if cmp -s $cache_file confcache; then |
: |
else |
if test -w $cache_file; then |
echo "updating cache $cache_file" |
cat confcache > $cache_file |
else |
echo "not updating unwritable cache $cache_file" |
fi |
fi |
rm -f confcache |
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
/trunk/or1ksim/testbench/Makefile.in
80,17 → 80,12
POST_UNINSTALL = : |
host_alias = @host_alias@ |
host_triplet = @host@ |
AS = @AS@ |
CC = @CC@ |
CFLAGS = @CFLAGS@ |
DLLTOOL = @DLLTOOL@ |
INCLUDES = @INCLUDES@ |
LD = @LD@ |
LIBTOOL = @LIBTOOL@ |
LN_S = @LN_S@ |
MAKEINFO = @MAKEINFO@ |
MAKE_SHELL = @MAKE_SHELL@ |
OBJDUMP = @OBJDUMP@ |
PACKAGE = @PACKAGE@ |
RANLIB = @RANLIB@ |
VERSION = @VERSION@ |
211,8 → 206,8
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
CCLD = $(CC) |
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ |
DIST_COMMON = COPYING INSTALL Makefile.am Makefile.in TODO acinclude.m4 \ |
aclocal.m4 config.sub configure configure.in |
DIST_COMMON = README COPYING Makefile.am Makefile.in TODO aclocal.m4 \ |
config.sub configure configure.in |
|
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
230,13 → 225,13
.SUFFIXES: |
.SUFFIXES: .S .c .o .s |
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile |
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile |
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) |
cd $(top_builddir) \ |
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
|
$(ACLOCAL_M4): configure.in acinclude.m4 |
$(ACLOCAL_M4): configure.in |
cd $(srcdir) && $(ACLOCAL) |
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
258,8 → 253,8
$(mkinstalldirs) $(DESTDIR)$(bindir) |
@list='$(bin_PROGRAMS)'; for p in $$list; do \ |
if test -f $$p; then \ |
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ |
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ |
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ |
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ |
else :; fi; \ |
done |
|
464,11 → 459,11
top_distdir=`cd $(distdir) && pwd`; \ |
distdir=`cd $(distdir) && pwd`; \ |
cd $(top_srcdir) \ |
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile |
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile |
@for file in $(DISTFILES); do \ |
d=$(srcdir); \ |
if test -d $$d/$$file; then \ |
cp -pr $$d/$$file $(distdir)/$$file; \ |
cp -pr $$/$$file $(distdir)/$$file; \ |
else \ |
test -f $(distdir)/$$file \ |
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
/trunk/or1ksim/testbench/aclocal.m4
10,419 → 10,6
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
dnl PARTICULAR PURPOSE. |
|
|
# serial 40 AC_PROG_LIBTOOL |
AC_DEFUN(AC_PROG_LIBTOOL, |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
|
# Save cache, so that ltconfig can load it |
AC_CACHE_SAVE |
|
# Actually configure libtool. ac_aux_dir is where install-sh is found. |
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
|| AC_MSG_ERROR([libtool configure failed]) |
|
# Reload cache, that may have been modified by ltconfig |
AC_CACHE_LOAD |
|
# This can be used to rebuild libtool when needed |
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
|
# Always use our own libtool. |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
AC_SUBST(LIBTOOL)dnl |
|
# Redirect the config.log output again, so that the ltconfig log is not |
# clobbered by the next message. |
exec 5>>./config.log |
]) |
|
AC_DEFUN(AC_LIBTOOL_SETUP, |
[AC_PREREQ(2.13)dnl |
AC_REQUIRE([AC_ENABLE_SHARED])dnl |
AC_REQUIRE([AC_ENABLE_STATIC])dnl |
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
AC_REQUIRE([AC_PROG_RANLIB])dnl |
AC_REQUIRE([AC_PROG_CC])dnl |
AC_REQUIRE([AC_PROG_LD])dnl |
AC_REQUIRE([AC_PROG_NM])dnl |
AC_REQUIRE([AC_PROG_LN_S])dnl |
dnl |
|
case "$target" in |
NONE) lt_target="$host" ;; |
*) lt_target="$target" ;; |
esac |
|
# Check for any special flags to pass to ltconfig. |
libtool_flags="--cache-file=$cache_file" |
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], |
[libtool_flags="$libtool_flags --enable-dlopen"]) |
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], |
[libtool_flags="$libtool_flags --enable-win32-dll"]) |
AC_ARG_ENABLE(libtool-lock, |
[ --disable-libtool-lock avoid locking (might break parallel builds)]) |
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
|
# Some flags need to be propagated to the compiler or linker for good |
# libtool support. |
case "$lt_target" in |
*-*-irix6*) |
# Find out which ABI we are using. |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
if AC_TRY_EVAL(ac_compile); then |
case "`/usr/bin/file conftest.o`" 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" |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) |
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 |
;; |
|
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], |
[*-*-cygwin* | *-*-mingw*) |
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
AC_CHECK_TOOL(AS, as, false) |
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
;; |
]) |
esac |
]) |
|
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support |
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) |
|
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's |
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) |
|
# AC_ENABLE_SHARED - implement the --enable-shared flag |
# Usage: AC_ENABLE_SHARED[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
AC_DEFUN(AC_ENABLE_SHARED, [dnl |
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
AC_ARG_ENABLE(shared, |
changequote(<<, >>)dnl |
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], |
changequote([, ])dnl |
[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. |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
for pkg in $enableval; do |
if test "X$pkg" = "X$p"; then |
enable_shared=yes |
fi |
done |
IFS="$ac_save_ifs" |
;; |
esac], |
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl |
]) |
|
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared |
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
AC_ENABLE_SHARED(no)]) |
|
# AC_ENABLE_STATIC - implement the --enable-static flag |
# Usage: AC_ENABLE_STATIC[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
AC_DEFUN(AC_ENABLE_STATIC, [dnl |
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
AC_ARG_ENABLE(static, |
changequote(<<, >>)dnl |
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], |
changequote([, ])dnl |
[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. |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
for pkg in $enableval; do |
if test "X$pkg" = "X$p"; then |
enable_static=yes |
fi |
done |
IFS="$ac_save_ifs" |
;; |
esac], |
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl |
]) |
|
# AC_DISABLE_STATIC - set the default static flag to --disable-static |
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
AC_ENABLE_STATIC(no)]) |
|
|
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag |
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
# `yes'. |
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl |
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
AC_ARG_ENABLE(fast-install, |
changequote(<<, >>)dnl |
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], |
changequote([, ])dnl |
[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. |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
for pkg in $enableval; do |
if test "X$pkg" = "X$p"; then |
enable_fast_install=yes |
fi |
done |
IFS="$ac_save_ifs" |
;; |
esac], |
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl |
]) |
|
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install |
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
AC_ENABLE_FAST_INSTALL(no)]) |
|
# AC_PROG_LD - find the path to the GNU or non-GNU linker |
AC_DEFUN(AC_PROG_LD, |
[AC_ARG_WITH(gnu-ld, |
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], |
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) |
AC_REQUIRE([AC_PROG_CC])dnl |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
ac_prog=ld |
if test "$ac_cv_prog_gcc" = yes; then |
# Check if gcc -print-prog-name=ld gives a path. |
AC_MSG_CHECKING([for ld used by GCC]) |
ac_prog=`($CC -print-prog-name=ld) 2>&5` |
case "$ac_prog" in |
# Accept absolute paths. |
changequote(,)dnl |
[\\/]* | [A-Za-z]:[\\/]*) |
re_direlt='/[^/][^/]*/\.\./' |
changequote([,])dnl |
# 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 |
AC_MSG_CHECKING([for GNU ld]) |
else |
AC_MSG_CHECKING([for non-GNU ld]) |
fi |
AC_CACHE_VAL(ac_cv_path_LD, |
[if test -z "$LD"; then |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
for ac_dir in $PATH; do |
test -z "$ac_dir" && ac_dir=. |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
ac_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 "$ac_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="$ac_save_ifs" |
else |
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
fi]) |
LD="$ac_cv_path_LD" |
if test -n "$LD"; then |
AC_MSG_RESULT($LD) |
else |
AC_MSG_RESULT(no) |
fi |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
AC_PROG_LD_GNU |
]) |
|
AC_DEFUN(AC_PROG_LD_GNU, |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, |
[# 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 |
ac_cv_prog_gnu_ld=yes |
else |
ac_cv_prog_gnu_ld=no |
fi]) |
]) |
|
# AC_PROG_NM - find the path to a BSD-compatible name lister |
AC_DEFUN(AC_PROG_NM, |
[AC_MSG_CHECKING([for BSD-compatible nm]) |
AC_CACHE_VAL(ac_cv_path_NM, |
[if test -n "$NM"; then |
# Let the user override the test. |
ac_cv_path_NM="$NM" |
else |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/nm || test -f $ac_dir/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 |
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
ac_cv_path_NM="$ac_dir/nm -B" |
break |
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
ac_cv_path_NM="$ac_dir/nm -p" |
break |
else |
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
continue # so that we can try to find one that supports BSD flags |
fi |
fi |
done |
IFS="$ac_save_ifs" |
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
fi]) |
NM="$ac_cv_path_NM" |
AC_MSG_RESULT([$NM]) |
]) |
|
# AC_CHECK_LIBM - check for math library |
AC_DEFUN(AC_CHECK_LIBM, |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
LIBM= |
case "$lt_target" in |
*-*-beos* | *-*-cygwin*) |
# These system don't have libm |
;; |
*-ncr-sysv4.3*) |
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") |
;; |
*) |
AC_CHECK_LIB(m, main, LIBM="-lm") |
;; |
esac |
]) |
|
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
# the libltdl convenience library and INCLTDL to the include flags for |
# the libltdl header and adds --enable-ltdl-convenience to the |
# configure arguments. Note that LIBLTDL and INCLTDL are not |
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not |
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed |
# with '${top_builddir}/' and INCLTDL will be prefixed with |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
# flat and you're not using automake, define top_builddir and |
# top_srcdir appropriately in the Makefiles. |
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
case "$enable_ltdl_convenience" in |
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
"") enable_ltdl_convenience=yes |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
esac |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
]) |
|
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
# the libltdl installable library and INCLTDL to the include flags for |
# the libltdl header and adds --enable-ltdl-install to the configure |
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is |
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed |
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will |
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed |
# with '${top_srcdir}/' (note the single quotes!). If your package is |
# not flat and you're not using automake, define top_builddir and |
# top_srcdir appropriately in the Makefiles. |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
AC_CHECK_LIB(ltdl, main, |
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
[if test x"$enable_ltdl_install" = xno; then |
AC_MSG_WARN([libltdl not installed, but installation disabled]) |
else |
enable_ltdl_install=yes |
fi |
]) |
if test x"$enable_ltdl_install" = x"yes"; then |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
else |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
LIBLTDL="-lltdl" |
INCLTDL= |
fi |
]) |
|
dnl old names |
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl |
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl |
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl |
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl |
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl |
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl |
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl |
|
dnl This is just to silence aclocal about the macro not being used |
ifelse([AC_DISABLE_FAST_INSTALL])dnl |
|
# Do all the work for Automake. This macro actually does too much -- |
# some checks are only needed if your package does certain things. |
# But this isn't really a big deal. |