1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
14
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16
# serial 48 AC_PROG_LIBTOOL
21
# serial 51 AC_PROG_LIBTOOL
19
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
263
268
# Check for compiler boilerplate output or warnings with
264
269
# the simple compiler test code.
265
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
[ac_outfile=conftest.$ac_objext
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
272
ac_outfile=conftest.$ac_objext
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
275
_lt_compiler_boilerplate=`cat conftest.err`
276
282
# Check for linker boilerplate output or warnings with
277
283
# the simple link test code.
278
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
286
ac_outfile=conftest.$ac_objext
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
289
_lt_linker_boilerplate=`cat conftest.err`
293
300
# If we don't find anything, use the default library path according
294
301
# to the aix ld manual.
295
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
306
/Import File Strings/,/^$/ {
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
313
# Check for a 64-bit object if we didn't find anything.
300
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; }
314
if test -z "$aix_libpath"; then
315
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
302
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
318
])# _LT_AC_SYS_LIBPATH_AIX
532
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
548
s390*-*linux*|sparc*-*linux*)
533
549
# Find out which ABI we are using.
534
550
echo 'int i;' > conftest.$ac_ext
535
551
if AC_TRY_EVAL(ac_compile); then
536
552
case `/usr/bin/file conftest.o` in
555
x86_64-*kfreebsd*-gnu)
556
LD="${LD-ld} -m elf_i386_fbsd"
540
559
LD="${LD-ld} -m elf_i386"
623
645
AC_CACHE_CHECK([$1], [$2],
625
647
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
648
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
649
lt_compiler_flag="$3"
628
650
# Insert the option either (1) after the last *FLAGS variable, or
629
651
# (2) before a word containing "conftest.", or (3) at the end.
664
686
# ------------------------------------------------------------
665
687
# Check whether the given compiler option works
666
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
[AC_CACHE_CHECK([$1], [$2],
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
690
AC_CACHE_CHECK([$1], [$2],
669
692
save_LDFLAGS="$LDFLAGS"
670
693
LDFLAGS="$LDFLAGS $3"
671
printf "$lt_simple_link_test_code" > conftest.$ac_ext
694
echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
695
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
696
# The linker can only warn and ignore the option if not recognized
674
697
# So say no if there are warnings
785
# If test is not a shell built-in, we'll probably end up computing a
786
# maximum length that is only half of the actual maximum length, but
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
808
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
809
if test -n "$lt_cv_sys_max_cmd_len"; then
810
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
811
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
813
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
814
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
815
= "XX$teststring") >/dev/null 2>&1 &&
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
lt_cv_sys_max_cmd_len=$new_result &&
793
test $i != 17 # 1/2 MB should be enough
796
teststring=$teststring$teststring
799
# Add a significant safety factor because C++ compilers can tack on massive
800
# amounts of additional arguments before passing them to the linker.
801
# It appears as though 1/2 is a usable value.
802
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
816
new_result=`expr "X$teststring" : ".*" 2>&1` &&
817
lt_cv_sys_max_cmd_len=$new_result &&
818
test $i != 17 # 1/2 MB should be enough
821
teststring=$teststring$teststring
824
# Add a significant safety factor because C++ compilers can tack on massive
825
# amounts of additional arguments before passing them to the linker.
826
# It appears as though 1/2 is a usable value.
827
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1026
1052
# ---------------------------------
1027
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1058
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1059
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1205
1234
version_type=none
1206
1235
dynamic_linker="$host_os ld.so"
1207
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1208
1238
if test "$GCC" = yes; then
1209
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1240
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1241
*) lt_awk_arg="/^libraries:/" ;;
1243
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1244
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1245
# if the path contains ";" then we assume it to be the separator
1212
1246
# otherwise default to the standard path separator (i.e. ":") - it is
1213
1247
# assumed that no part of a normal pathname contains ";" but that should
1214
1248
# okay in the real world where ";" in dirpaths is itself problematic.
1215
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1249
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1217
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1251
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1253
# Ok, now we have the path, separated by spaces, we can step through it
1254
# and add multilib dir if necessary.
1255
lt_tmp_lt_search_path_spec=
1256
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1257
for lt_sys_path in $lt_search_path_spec; do
1258
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1259
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1261
test -d "$lt_sys_path" && \
1262
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1265
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1266
BEGIN {RS=" "; FS="/|\n";} {
1269
for (lt_i = NF; lt_i > 0; lt_i--) {
1270
if ($lt_i != "" && $lt_i != ".") {
1271
if ($lt_i == "..") {
1274
if (lt_count == 0) {
1275
lt_foo="/" $lt_i lt_foo;
1282
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1283
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1285
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1220
1287
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1222
1289
need_lib_prefix=unknown
1223
1290
hardcode_into_libs=no
1375
1442
shlibpath_overrides_runpath=yes
1376
1443
shlibpath_var=DYLD_LIBRARY_PATH
1377
1444
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
if test "$GCC" = yes; then
1380
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1382
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1446
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1384
1447
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1397
1460
dynamic_linker=no
1404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1405
soname_spec='${libname}${release}${shared_ext}$major'
1406
shlibpath_var=LD_LIBRARY_PATH
1407
shlibpath_overrides_runpath=no
1408
hardcode_into_libs=yes
1409
dynamic_linker='GNU ld.so'
1412
1463
freebsd* | dragonfly*)
1413
1464
# DragonFly does not have aout. When/if they implement a new
1414
1465
# versioning mechanism, adjust this.
1581
1632
# Append ld.so.conf contents to the search path
1582
1633
if test -f /etc/ld.so.conf; then
1583
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1634
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1584
1635
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2262
2306
# how to check for library dependencies
2263
2307
# -- PORTME fill in with the dynamic library characteristics
2264
2308
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2265
[AC_CACHE_CHECK([how to recognise dependent libraries],
2309
[AC_CACHE_CHECK([how to recognize dependent libraries],
2266
2310
lt_cv_deplibs_check_method,
2267
2311
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2268
2312
lt_cv_file_magic_test_file=
2302
2346
mingw* | pw32*)
2303
2347
# Base MSYS/MinGW do not provide the 'file' command needed by
2304
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2305
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2306
lt_cv_file_magic_cmd='$OBJDUMP -f'
2348
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2349
# unless we find 'file', for example because we are cross-compiling.
2350
if ( file / ) >/dev/null 2>&1; then
2351
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2352
lt_cv_file_magic_cmd='func_win32_libid'
2354
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2355
lt_cv_file_magic_cmd='$OBJDUMP -f'
2309
2359
darwin* | rhapsody*)
2310
2360
lt_cv_deplibs_check_method=pass_all
2313
freebsd* | kfreebsd*-gnu | dragonfly*)
2363
freebsd* | dragonfly*)
2314
2364
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2315
2365
case $host_cpu in
2771
2825
_LT_AC_TAGVAR(objext, $1)=$objext
2773
2827
# Code to be used in simple compile tests
2774
lt_simple_compile_test_code="int some_variable = 0;\n"
2828
lt_simple_compile_test_code="int some_variable = 0;"
2776
2830
# Code to be used in simple link tests
2777
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2831
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2779
2833
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2780
2834
_LT_AC_SYS_COMPILER
3079
3133
case $cc_basename in
3081
3135
output_verbose_link_cmd='echo'
3082
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3136
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3083
3137
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3084
3138
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3085
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3139
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3086
3140
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3355
3407
# dependencies.
3356
3408
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'
3411
case `$CC -V 2>&1 | sed 5q` in
3414
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3416
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3418
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3420
# Not sure whether something based on
3421
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3423
output_verbose_link_cmd='echo'
3425
# Archives containing C++ object files must be created using
3426
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3427
# necessary to make sure instantiated templates are included
3429
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3393
3468
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3396
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3397
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3398
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3399
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3400
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3401
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3402
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3403
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3471
if test -f /usr/libexec/ld.so; then
3472
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3473
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3474
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3475
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3476
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3477
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3478
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3479
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3481
output_verbose_link_cmd='echo'
3483
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3405
output_verbose_link_cmd='echo'
3408
3487
case $cc_basename in
3564
3643
case $host_os in
3565
3644
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3567
# The C++ compiler is used as linker so we must use $wl
3568
# flag to pass the commands to the underlying system
3569
# linker. We must also pass each convience library through
3570
# to the system linker between allextract/defaultextract.
3571
# The C++ compiler will combine linker options so we
3572
# cannot just pass the convience library names through
3646
# The compiler driver will combine and reorder linker options,
3647
# but understands `-z linker_flag'.
3574
3648
# Supported since Solaris 2.6 (maybe 2.5.1?)
3575
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3649
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3578
3652
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3870
3950
_LT_AC_TAGVAR(postdeps,$1)=
3954
case `$CC -V 2>&1 | sed 5q` in
3958
# The more standards-conforming stlport4 library is
3959
# incompatible with the Cstd library. Avoid specifying
3960
# it if it's in CXXFLAGS. Ignore libCrun as
3961
# -library=stlport4 depends on it.
3962
case " $CXX $CXXFLAGS " in
3963
*" -library=stlport4 "*)
3964
solaris_use_stlport4=yes
3967
if test "$solaris_use_stlport4" != yes; then
3968
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3874
3975
case $cc_basename in
3977
# The more standards-conforming stlport4 library is
3978
# incompatible with the Cstd library. Avoid specifying
3979
# it if it's in CXXFLAGS. Ignore libCrun as
3980
# -library=stlport4 depends on it.
3981
case " $CXX $CXXFLAGS " in
3982
*" -library=stlport4 "*)
3983
solaris_use_stlport4=yes
3876
3987
# Adding this requires a known-good setup of shared libraries for
3877
3988
# Sun compiler versions before 5.6, else PIC objects from an old
3878
3989
# archive will be linked into the output, leading to subtle bugs.
3879
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3990
if test "$solaris_use_stlport4" != yes; then
3991
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3925
4038
_LT_AC_TAGVAR(objext, $1)=$objext
3927
4040
# Code to be used in simple compile tests
3928
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4041
lt_simple_compile_test_code="\
3930
4047
# Code to be used in simple link tests
3931
lt_simple_link_test_code=" program t\n end\n"
4048
lt_simple_link_test_code="\
3933
4053
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3934
4054
_LT_AC_SYS_COMPILER
4007
4127
_LT_AC_TAGVAR(objext, $1)=$objext
4009
4129
# Code to be used in simple compile tests
4010
lt_simple_compile_test_code="class foo {}\n"
4130
lt_simple_compile_test_code="class foo {}"
4012
4132
# Code to be used in simple link tests
4013
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4133
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4015
4135
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4016
4136
_LT_AC_SYS_COMPILER
4063
4183
_LT_AC_TAGVAR(objext, $1)=$objext
4065
4185
# Code to be used in simple compile tests
4066
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4186
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4068
4188
# Code to be used in simple link tests
4069
4189
lt_simple_link_test_code="$lt_simple_compile_test_code"
4152
4272
_LT_AC_TAGVAR(module_cmds, $1) \
4153
4273
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4154
4274
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4275
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4155
4276
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4156
4277
_LT_AC_TAGVAR(include_expsyms, $1); do
4198
4319
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4199
4320
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4201
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4322
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4202
4323
# Free Software Foundation, Inc.
4204
4325
# This file is part of GNU Libtool:
4832
4954
# like `-m68040'.
4833
4955
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4835
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4957
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4836
4958
# PIC is the default for these OSes.
4838
mingw* | os2* | pw32*)
4960
mingw* | cygwin* | os2* | pw32*)
4839
4961
# This hack is so that the source file can tell whether it is being
4840
4962
# built for inclusion in a dll (and should export symbols for example).
4963
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4964
# (--disable-auto-import) libraries
4841
4965
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4843
4967
darwin* | rhapsody*)
5105
5237
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5108
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5240
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5109
5241
# PIC is the default for these OSes.
5112
mingw* | pw32* | os2*)
5244
mingw* | cygwin* | pw32* | os2*)
5113
5245
# This hack is so that the source file can tell whether it is being
5114
5246
# built for inclusion in a dll (and should export symbols for example).
5247
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5248
# (--disable-auto-import) libraries
5115
5249
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5231
5365
# All Alpha code is PIC.
5232
5366
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5369
case `$CC -V 2>&1 | sed 5q` in
5372
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5373
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5374
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5377
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5378
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5379
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5380
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5334
5488
# ------------------------------------
5335
5489
# See if the linker supports building shared libraries.
5336
5490
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5337
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5491
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5492
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5338
5493
ifelse([$1],[CXX],[
5339
5494
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5340
5495
case $host_os in
5351
5506
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5353
5508
cygwin* | mingw*)
5354
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5509
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5357
5512
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5490
5645
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5491
5646
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5492
5647
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5493
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5648
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5495
5650
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5496
5651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5523
5678
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5681
gnu* | linux* | k*bsd*-gnu)
5527
5682
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5529
5684
case $cc_basename,$host_cpu in
5541
5696
ifc* | ifort*) # Intel Fortran compiler
5542
5697
tmp_addflag=' -nofor_main' ;;
5544
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5699
case `$CC -V 2>&1 | sed 5q` in
5700
*Sun\ C*) # Sun C 5.9
5701
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5702
tmp_sharedflag='-G' ;;
5703
*Sun\ F*) # Sun Fortran 8.3
5704
tmp_sharedflag='-G' ;;
5706
tmp_sharedflag='-shared' ;;
5708
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5546
5710
if test $supports_anon_versioning = yes; then
5547
5711
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5548
5712
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5549
5713
$echo "local: *; };" >> $output_objdir/$libname.ver~
5550
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5714
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5553
5717
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5799
5963
# The linker will automatically build a .lib file if we build a DLL.
5800
5964
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5801
5965
# FIXME: Should let the user specify the lib program.
5802
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5966
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5803
5967
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5804
5968
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5841
6005
case $cc_basename in
5843
6007
output_verbose_link_cmd='echo'
5844
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6008
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5845
6009
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5846
6010
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5847
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6011
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5848
6012
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6009
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6010
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6011
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6013
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6014
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6015
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6173
if test -f /usr/libexec/ld.so; then
6174
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6175
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6176
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6177
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6178
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6179
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6180
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6183
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6184
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6185
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6188
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6189
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6018
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6019
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6020
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6023
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6024
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6194
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6082
6250
case $host_os in
6083
6251
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6085
# The compiler driver will combine linker options so we
6086
# cannot just pass the convience library names through
6087
# without $wl, iff we do not link with $LD.
6088
# Luckily, gcc supports the same syntax we need for Sun Studio.
6253
# The compiler driver will combine and reorder linker options,
6254
# but understands `-z linker_flag'. GCC discards it without `$wl',
6255
# but is careful enough not to reorder.
6089
6256
# Supported since Solaris 2.6 (maybe 2.5.1?)
6092
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6094
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6257
if test "$GCC" = yes; then
6258
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6260
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6097
6264
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6327
6494
[AC_CHECK_TOOL(RC, windres, no)
6498
# Cheap backport of AS_EXECUTABLE_P and required macros
6499
# from Autoconf 2.59; we should not use $as_executable_p directly.
6503
m4_ifndef([_AS_TEST_PREPARE],
6504
[m4_defun([_AS_TEST_PREPARE],
6505
[if test -x / >/dev/null 2>&1; then
6506
as_executable_p='test -x'
6508
as_executable_p='test -f'
6510
])])# _AS_TEST_PREPARE
6514
# Check whether a file is executable.
6515
m4_ifndef([AS_EXECUTABLE_P],
6516
[m4_defun([AS_EXECUTABLE_P],
6517
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6518
$as_executable_p $1[]dnl
6519
])])# AS_EXECUTABLE_P
6330
6521
# NOTE: This macro has been submitted for inclusion into #
6331
6522
# GNU Autoconf as AC_PROG_SED. When it is available in #
6332
6523
# a released version of Autoconf we should remove this #
6546
6740
])# PKG_CHECK_MODULES
6548
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6742
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6550
6744
# This file is free software; the Free Software Foundation
6551
6745
# gives unlimited permission to copy and/or distribute it,
6555
6749
# ----------------------------
6556
6750
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6557
6751
# generated from the m4 files accompanying Automake X.Y.
6558
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6752
# (This private macro should not be called outside this file.)
6753
AC_DEFUN([AM_AUTOMAKE_VERSION],
6754
[am__api_version='1.10'
6755
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6756
dnl require some minimum version. Point them to the right macro.
6757
m4_if([$1], [1.10], [],
6758
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6761
# _AM_AUTOCONF_VERSION(VERSION)
6762
# -----------------------------
6763
# aclocal traces this macro to find the Autoconf version.
6764
# This is a private macro too. Using m4_define simplifies
6765
# the logic in aclocal, which can simply ignore this definition.
6766
m4_define([_AM_AUTOCONF_VERSION], [])
6560
6768
# AM_SET_CURRENT_AUTOMAKE_VERSION
6561
6769
# -------------------------------
6562
# Call AM_AUTOMAKE_VERSION so it can be traced.
6770
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6563
6771
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6564
6772
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6565
[AM_AUTOMAKE_VERSION([1.9.6])])
6773
[AM_AUTOMAKE_VERSION([1.10])dnl
6774
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6567
6776
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6620
6829
# AM_CONDITIONAL -*- Autoconf -*-
6622
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6831
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6623
6832
# Free Software Foundation, Inc.
6625
6834
# This file is free software; the Free Software Foundation
6626
6835
# gives unlimited permission to copy and/or distribute it,
6627
6836
# with or without modifications, as long as this notice is preserved.
6631
6840
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6632
6841
# -------------------------------------
6650
6861
Usually this means the macro was only invoked conditionally.]])
6654
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6864
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6655
6865
# Free Software Foundation, Inc.
6657
6867
# This file is free software; the Free Software Foundation
6658
6868
# gives unlimited permission to copy and/or distribute it,
6659
6869
# with or without modifications, as long as this notice is preserved.
6663
6873
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6664
6874
# written in clear, in which case automake, when reading aclocal.m4,
6686
6896
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6687
6897
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6688
6898
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6899
[$1], UPC, [depcc="$UPC" am_compiler_list=],
6689
6900
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6690
6901
[depcc="$$1" am_compiler_list=])
6828
7041
# some people rename them; so instead we look at the file content.
6829
7042
# Grep'ing the first line is not enough: some people post-process
6830
7043
# each Makefile.in and add a new line on top of each file to say so.
6831
# So let's grep whole file.
6832
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7044
# Grep'ing the whole file is not good either: AIX grep has a line
7045
# limit of 2048, but all sed's we know have understand at least 4000.
7046
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6833
7047
dirpart=`AS_DIRNAME("$mf")`
6877
7091
# Do all the work for Automake. -*- Autoconf -*-
6879
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6880
# Free Software Foundation, Inc.
7093
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7094
# 2005, 2006 Free Software Foundation, Inc.
6882
7096
# This file is free software; the Free Software Foundation
6883
7097
# gives unlimited permission to copy and/or distribute it,
6900
7114
# arguments mandatory, and then we can depend on a new Autoconf
6901
7115
# release and drop the old call support.
6902
7116
AC_DEFUN([AM_INIT_AUTOMAKE],
6903
[AC_PREREQ([2.58])dnl
7117
[AC_PREREQ([2.60])dnl
6904
7118
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6905
7119
dnl the ones we care about.
6906
7120
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6907
7121
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6908
7122
AC_REQUIRE([AC_PROG_INSTALL])dnl
6909
# test to see if srcdir already configured
6910
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6911
test -f $srcdir/config.status; then
6912
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7123
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7124
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7125
# is not polluted with repeated "-I."
7126
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7127
# test to see if srcdir already configured
7128
if test -f $srcdir/config.status; then
7129
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6915
7133
# test whether we have cygpath
6929
7147
AC_SUBST([PACKAGE], [$1])dnl
6930
7148
AC_SUBST([VERSION], [$2])],
6931
7149
[_AM_SET_OPTIONS([$1])dnl
7150
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7151
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7152
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6932
7153
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6933
7154
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7078
7303
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7080
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7305
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7081
7306
# Free Software Foundation, Inc.
7083
7308
# This file is free software; the Free Software Foundation
7084
7309
# gives unlimited permission to copy and/or distribute it,
7085
7310
# with or without modifications, as long as this notice is preserved.
7089
7314
# AM_MISSING_PROG(NAME, PROGRAM)
7090
7315
# ------------------------------
7100
7325
# If it does, set am_missing_run to use it, otherwise, to nothing.
7101
7326
AC_DEFUN([AM_MISSING_HAS_RUN],
7102
7327
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7328
AC_REQUIRE_AUX_FILE([missing])dnl
7103
7329
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7104
7330
# Use eval to expand $SHELL
7105
7331
if eval "$MISSING --run true"; then
7113
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7339
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7115
7341
# This file is free software; the Free Software Foundation
7116
7342
# gives unlimited permission to copy and/or distribute it,
7119
7345
# AM_PROG_MKDIR_P
7120
7346
# ---------------
7121
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7123
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7124
# created by `make install' are always world readable, even if the
7125
# installer happens to have an overly restrictive umask (e.g. 077).
7126
# This was a mistake. There are at least two reasons why we must not
7128
# - it causes special bits like SGID to be ignored,
7129
# - it may be too restrictive (some setups expect 775 directories).
7131
# Do not use -m 0755 and let people choose whatever they expect by
7134
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7135
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7136
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7137
# concurrently, both version can detect that a/ is missing, but only
7138
# one can create it and the other will error out. Consequently we
7139
# restrict ourselves to GNU make (using the --version option ensures
7347
# Check for `mkdir -p'.
7141
7348
AC_DEFUN([AM_PROG_MKDIR_P],
7142
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7143
# We used to keeping the `.' as first argument, in order to
7144
# allow $(mkdir_p) to be used without argument. As in
7145
# $(mkdir_p) $(somedir)
7146
# where $(somedir) is conditionally defined. However this is wrong
7148
# 1. if the package is installed by a user who cannot write `.'
7149
# make install will fail,
7150
# 2. the above comment should most certainly read
7151
# $(mkdir_p) $(DESTDIR)$(somedir)
7152
# so it does not work when $(somedir) is undefined and
7153
# $(DESTDIR) is not.
7154
# To support the latter case, we have to write
7155
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7156
# so the `.' trick is pointless.
7157
mkdir_p='mkdir -p --'
7159
# On NextStep and OpenStep, the `mkdir' command does not
7160
# recognize any option. It will interpret all options as
7161
# directories to create, and then abort because `.' already
7163
for d in ./-p ./--version;
7165
test -d $d && rmdir $d
7167
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7168
if test -f "$ac_aux_dir/mkinstalldirs"; then
7169
mkdir_p='$(mkinstalldirs)'
7171
mkdir_p='$(install_sh) -d'
7174
AC_SUBST([mkdir_p])])
7349
[AC_PREREQ([2.60])dnl
7350
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7351
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7352
dnl while keeping a definition of mkdir_p for backward compatibility.
7353
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7354
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7355
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7356
dnl adjustment using top_builddir (which is defined more often than
7358
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7360
[[\\/$]]* | ?:[[\\/]]*) ;;
7361
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7176
7365
# Helper functions for option handling. -*- Autoconf -*-
7283
7472
if test "$cross_compiling" != no; then
7284
7473
AC_CHECK_TOOL([STRIP], [strip], :)
7286
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7475
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7287
7476
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7478
# Copyright (C) 2006 Free Software Foundation, Inc.
7480
# This file is free software; the Free Software Foundation
7481
# gives unlimited permission to copy and/or distribute it,
7482
# with or without modifications, as long as this notice is preserved.
7484
# _AM_SUBST_NOTMAKE(VARIABLE)
7485
# ---------------------------
7486
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7487
# This macro is traced by Automake.
7488
AC_DEFUN([_AM_SUBST_NOTMAKE])
7289
7490
# Check how to create a tarball. -*- Autoconf -*-
7291
7492
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.