1
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
1
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
3
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
3
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
6
6
dnl with or without modifications, as long as this notice is preserved.
43
43
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
45
AC_DEFUN(AM_INIT_AUTOMAKE,
46
[AC_REQUIRE([AC_PROG_INSTALL])
45
AC_DEFUN([AM_INIT_AUTOMAKE],
46
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
47
AC_REQUIRE([AC_PROG_INSTALL])
59
60
AC_REQUIRE([AC_ARG_PROGRAM])
60
61
dnl FIXME This is truly gross.
61
62
missing_dir=`cd $ac_aux_dir && pwd`
62
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
63
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
63
64
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
64
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
65
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
65
66
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
66
67
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
67
68
AC_REQUIRE([AC_PROG_MAKE_SET])])
70
# Copyright 2002 Free Software Foundation, Inc.
72
# This program is free software; you can redistribute it and/or modify
73
# it under the terms of the GNU General Public License as published by
74
# the Free Software Foundation; either version 2, or (at your option)
77
# This program is distributed in the hope that it will be useful,
78
# but WITHOUT ANY WARRANTY; without even the implied warranty of
79
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
80
# GNU General Public License for more details.
82
# You should have received a copy of the GNU General Public License
83
# along with this program; if not, write to the Free Software
84
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
86
# AM_AUTOMAKE_VERSION(VERSION)
87
# ----------------------------
88
# Automake X.Y traces this macro to ensure aclocal.m4 has been
89
# generated from the m4 files accompanying Automake X.Y.
90
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
92
# AM_SET_CURRENT_AUTOMAKE_VERSION
93
# -------------------------------
94
# Call AM_AUTOMAKE_VERSION so it can be traced.
95
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
96
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
97
[AM_AUTOMAKE_VERSION([1.4-p6])])
70
100
# Check to make sure that the build environment is sane.
73
AC_DEFUN(AM_SANITY_CHECK,
103
AC_DEFUN([AM_SANITY_CHECK],
74
104
[AC_MSG_CHECKING([whether build environment is sane])
112
142
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
113
143
dnl The program must properly implement --version.
114
AC_DEFUN(AM_MISSING_PROG,
144
AC_DEFUN([AM_MISSING_PROG],
115
145
[AC_MSG_CHECKING(for working $2)
116
146
# Run test in a subshell; some versions of sh will print an error if
117
147
# an executable is not found, even if stderr is redirected.
130
160
dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
131
AC_DEFUN(AM_PROG_LEX,
161
AC_DEFUN([AM_PROG_LEX],
132
162
[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
133
AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
163
AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
163
193
AC_REQUIRE([AC_PROG_LD])dnl
164
194
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
165
195
AC_REQUIRE([AC_PROG_NM])dnl
196
AC_REQUIRE([LT_AC_PROG_SED])dnl
166
198
AC_REQUIRE([AC_PROG_LN_S])dnl
167
199
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
168
200
AC_REQUIRE([AC_OBJEXT])dnl
1429
1460
# If the export-symbols file already is a .def file (1st line
1430
1461
# is EXPORTS), use it as is.
1431
1462
# If DATA tags from a recent dlltool are present, honour them!
1432
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
1463
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
1433
1464
cp $export_symbols $output_objdir/$soname-def;
1435
1466
echo EXPORTS > $output_objdir/$soname-def;
1669
1703
# cross-compilation, but unfortunately the echo tests do not
1670
1704
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
1671
1705
# `"' quotes if we put them in here... so don't!
1672
archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
1706
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
1673
1707
# We need to add '_' to the symbols in $export_symbols first
1674
1708
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
1675
1709
hardcode_direct=yes
1724
1758
irix5* | irix6* | nonstopux*)
1725
1759
if test "$GCC" = yes; then
1726
1760
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'
1761
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1728
1763
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'
1764
hardcode_libdir_flag_spec='-rpath $libdir'
1730
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1731
1766
hardcode_libdir_separator=:
1732
1767
link_all_deplibs=yes
1755
1790
hardcode_direct=yes
1756
1791
hardcode_shlibpath_var=no
1757
1792
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1758
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
1793
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1759
1794
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1760
1795
export_dynamic_flag_spec='${wl}-E'
1880
if test "x$host_vendor" = xsno; then
1881
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
1882
hardcode_direct=yes # is this really true???
1884
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1885
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1915
case $host_vendor in
1917
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1918
hardcode_direct=yes # is this really true???
1921
## LD is ld it makes a PLAMLIB
1922
## CC just makes a GrossModule.
1923
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1924
reload_cmds='$CC -r -o $output$reload_objs'
1928
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1929
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1887
1932
runpath_var='LD_RUN_PATH'
1888
1933
hardcode_shlibpath_var=no
2141
2190
dynamic_linker=no
2197
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2198
soname_spec='${libname}${release}.so$major'
2199
shlibpath_var=LD_LIBRARY_PATH
2200
shlibpath_overrides_runpath=no
2201
hardcode_into_libs=yes
2202
dynamic_linker='GNU/FreeBSD ld.so'
2145
2206
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2146
2207
version_type=freebsd-$objformat
2307
2368
version_type=osf
2308
2369
need_version=no
2309
2370
need_lib_prefix=no
2310
soname_spec='${libname}${release}.so'
2311
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
2371
soname_spec='${libname}${release}.so$major'
2372
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2312
2373
shlibpath_var=LD_LIBRARY_PATH
2313
2374
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2314
2375
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2376
hardcode_into_libs=yes
2508
2576
# Now quote all the things that may contain metacharacters while being
2509
2577
# careful not to overquote the AC_SUBSTed values. We take copies of the
2510
2578
# variables and quote the copies for generation of the libtool script.
2511
for var in echo old_CC old_CFLAGS \
2579
for var in echo old_CC old_CFLAGS SED \
2512
2580
AR AR_FLAGS CC LD LN_S NM SHELL \
2513
2581
reload_flag reload_cmds wl \
2514
2582
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
3332
3403
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3333
3404
# -- PORTME fill in with the dynamic library characteristics
3334
3405
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3335
[AC_CACHE_CHECK([how to recognise dependant libraries],
3406
[AC_CACHE_CHECK([how to recognise dependent libraries],
3336
3407
lt_cv_deplibs_check_method,
3337
3408
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3338
3409
lt_cv_file_magic_test_file=
3431
3502
# This must be Linux ELF.
3433
lt_cv_deplibs_check_method=pass_all
3505
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
3506
lt_cv_deplibs_check_method=pass_all ;;
3508
# glibc up to 2.1.1 does not perform some relocations on ARM
3509
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3434
3511
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3629
3709
# This is just to silence aclocal about the macro not being used
3630
3710
ifelse([AC_DISABLE_FAST_INSTALL])
3712
# NOTE: This macro has been submitted for inclusion into #
3713
# GNU Autoconf as AC_PROG_SED. When it is available in #
3714
# a released version of Autoconf we should remove this #
3715
# macro and use it instead. #
3718
# Check for a fully-functional sed program, that truncates
3719
# as few characters as possible. Prefer GNU sed if found.
3720
AC_DEFUN([LT_AC_PROG_SED],
3721
[AC_MSG_CHECKING([for a sed that does not truncate output])
3722
AC_CACHE_VAL(lt_cv_path_SED,
3723
[# Loop through the user's path and test for sed and gsed.
3724
# Then use that list of sed's as ones to test for truncation.
3725
as_executable_p="test -f"
3726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730
test -z "$as_dir" && as_dir=.
3731
for ac_prog in sed gsed; do
3732
for ac_exec_ext in '' $ac_executable_extensions; do
3733
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3734
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3740
# Create a temporary directory, and hook for its removal unless debugging.
3743
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3744
trap '{ (exit 1); exit 1; }' 1 2 13 15
3747
# Create a (secure) tmp directory for tmp files.
3750
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3751
test -n "$tmp" && test -d "$tmp"
3754
tmp=$TMPDIR/sed$$-$RANDOM
3755
(umask 077 && mkdir $tmp)
3758
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3759
{ (exit 1); exit 1; }
3763
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3764
# along with /bin/sed that truncates output.
3765
for _sed in $_sed_list /usr/xpg4/bin/sed; do
3766
test ! -f ${_sed} && break
3767
cat /dev/null > "$tmp/sed.in"
3769
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3770
# Check for GNU sed and select it if it is found.
3771
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3772
lt_cv_path_SED=${_sed}
3776
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3777
mv "$tmp/sed.tmp" "$tmp/sed.in"
3778
cp "$tmp/sed.in" "$tmp/sed.nl"
3779
echo >>"$tmp/sed.nl"
3780
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3781
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3782
# 40000 chars as input seems more than enough
3783
test $_count -gt 10 && break
3784
_count=`expr $_count + 1`
3785
if test $_count -gt $_max; then
3787
lt_cv_path_SED=$_sed
3793
if test "X$SED" != "X"; then
3798
AC_MSG_RESULT([$SED])