410
436
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
439
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
441
# Create a temporary file with TEST-FILE as its contents and pass the
442
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
443
# 0 and perform ACTION-IF-FAIL for any other exit status.
444
AC_DEFUN([GLIB_RUN_PROG],
445
[cat >conftest.foo <<_ACEOF
448
if AC_RUN_LOG([$1 conftest.foo]); then
449
m4_ifval([$3], [$3], [:])
450
m4_ifvaln([$4], [else $4])dnl
451
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
452
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
414
457
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
# serial 35 IT_PROG_INTLTOOL
458
# serial 36 IT_PROG_INTLTOOL
416
459
AC_DEFUN([IT_PROG_INTLTOOL],
417
460
[AC_PREREQ([2.50])dnl
473
517
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
474
518
AC_SUBST(INTLTOOL_THEME_RULE)
475
519
AC_SUBST(INTLTOOL_SERVICE_RULE)
520
AC_SUBST(INTLTOOL_POLICY_RULE)
522
# Check the gettext tools to make sure they are GNU
523
AC_PATH_PROG(XGETTEXT, xgettext)
524
AC_PATH_PROG(MSGMERGE, msgmerge)
525
AC_PATH_PROG(MSGFMT, msgfmt)
526
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
527
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
529
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
530
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
531
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
532
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
533
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
477
536
# Use the tools built into the package, not the ones that are installed.
478
537
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
498
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
503
557
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
558
AC_SUBST(ALL_LINGUAS)
560
# Set DATADIRNAME correctly if it is not set yet
561
# (copied from glib-gettext.m4)
562
if test -z "$DATADIRNAME"; then
564
[AC_LANG_PROGRAM([[]],
565
[[extern int _nl_msg_cat_cntr;
566
return _nl_msg_cat_cntr]])],
570
dnl On Solaris, if bind_textdomain_codeset is in libc,
571
dnl GNU format message catalog is always supported,
572
dnl since both are added to the libc all together.
573
dnl Hence, we'd like to go with DATADIRNAME=share
575
AC_CHECK_FUNC(bind_textdomain_codeset,
576
[DATADIRNAME=share], [DATADIRNAME=lib])
583
AC_SUBST(DATADIRNAME)
506
585
IT_PO_SUBDIR([po])
508
587
dnl The following is very similar to
857
932
# Check for linker boilerplate output or warnings with
858
933
# the simple link test code.
859
934
AC_DEFUN([_LT_LINKER_BOILERPLATE],
860
[ac_outfile=conftest.$ac_objext
861
printf "$lt_simple_link_test_code" >conftest.$ac_ext
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
936
ac_outfile=conftest.$ac_objext
937
echo "$lt_simple_link_test_code" >conftest.$ac_ext
862
938
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
863
939
_lt_linker_boilerplate=`cat conftest.err`
865
941
])# _LT_LINKER_BOILERPLATE
943
# _LT_REQUIRED_DARWIN_CHECKS
944
# --------------------------
945
# Check for some things on darwin
946
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
949
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
950
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
952
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
953
[lt_cv_apple_cc_single_mod=no
954
if test -z "${LT_MULTI_MODULE}"; then
955
# By default we will add the -single_module flag. You can override
956
# by either setting the environment variable LT_MULTI_MODULE
957
# non-empty at configure time, or by adding -multi_module to the
959
echo "int foo(void){return 1;}" > conftest.c
960
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
961
-dynamiclib ${wl}-single_module conftest.c
962
if test -f libconftest.dylib; then
963
lt_cv_apple_cc_single_mod=yes
964
rm -rf libconftest.dylib*
968
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
969
[lt_cv_ld_exported_symbols_list],
970
[lt_cv_ld_exported_symbols_list=no
971
save_LDFLAGS=$LDFLAGS
972
echo "_main" > conftest.sym
973
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
974
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
975
[lt_cv_ld_exported_symbols_list=yes],
976
[lt_cv_ld_exported_symbols_list=no])
977
LDFLAGS="$save_LDFLAGS"
980
rhapsody* | darwin1.[[0123]])
981
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
983
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
985
# if running on 10.5 or later, the deployment target defaults
986
# to the OS version, if on x86, and 10.4, the deployment
987
# target defaults to 10.4. Don't you love it?
988
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
989
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
990
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
992
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
994
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
998
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
999
_lt_dar_single_mod='$single_module'
1001
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1002
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1004
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1006
if test "$DSYMUTIL" != ":"; then
1007
_lt_dsymutil="~$DSYMUTIL \$lib || :"
868
1015
# _LT_AC_SYS_LIBPATH_AIX
869
1016
# ----------------------
874
1021
# If we don't find anything, use the default library path according
875
1022
# to the aix ld manual.
876
1023
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
877
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
878
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1024
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1025
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1026
lt_aix_libpath_sed='
1027
/Import File Strings/,/^$/ {
1033
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
880
1034
# Check for a 64-bit object if we didn't find anything.
881
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; }
1035
if test -z "$aix_libpath"; then
1036
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
883
1038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
884
1039
])# _LT_AC_SYS_LIBPATH_AIX
1366
# If test is not a shell built-in, we'll probably end up computing a
1367
# maximum length that is only half of the actual maximum length, but
1369
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1370
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1533
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1534
if test -n "$lt_cv_sys_max_cmd_len"; then
1535
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1536
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1538
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1539
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1371
1540
= "XX$teststring") >/dev/null 2>&1 &&
1372
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1373
lt_cv_sys_max_cmd_len=$new_result &&
1374
test $i != 17 # 1/2 MB should be enough
1377
teststring=$teststring$teststring
1380
# Add a significant safety factor because C++ compilers can tack on massive
1381
# amounts of additional arguments before passing them to the linker.
1382
# It appears as though 1/2 is a usable value.
1383
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1541
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1542
lt_cv_sys_max_cmd_len=$new_result &&
1543
test $i != 17 # 1/2 MB should be enough
1546
teststring=$teststring$teststring
1549
# Add a significant safety factor because C++ compilers can tack on massive
1550
# amounts of additional arguments before passing them to the linker.
1551
# It appears as though 1/2 is a usable value.
1552
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1786
1959
version_type=none
1787
1960
dynamic_linker="$host_os ld.so"
1788
1961
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1789
1963
if test "$GCC" = yes; then
1790
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1791
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1965
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1966
*) lt_awk_arg="/^libraries:/" ;;
1968
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1969
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1792
1970
# if the path contains ";" then we assume it to be the separator
1793
1971
# otherwise default to the standard path separator (i.e. ":") - it is
1794
1972
# assumed that no part of a normal pathname contains ";" but that should
1795
1973
# okay in the real world where ";" in dirpaths is itself problematic.
1796
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1974
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1976
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1978
# Ok, now we have the path, separated by spaces, we can step through it
1979
# and add multilib dir if necessary.
1980
lt_tmp_lt_search_path_spec=
1981
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1982
for lt_sys_path in $lt_search_path_spec; do
1983
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1984
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1986
test -d "$lt_sys_path" && \
1987
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1990
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1991
BEGIN {RS=" "; FS="/|\n";} {
1994
for (lt_i = NF; lt_i > 0; lt_i--) {
1995
if ($lt_i != "" && $lt_i != ".") {
1996
if ($lt_i == "..") {
1999
if (lt_count == 0) {
2000
lt_foo="/" $lt_i lt_foo;
2007
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2008
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2010
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1801
2012
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1803
2014
need_lib_prefix=unknown
1804
2015
hardcode_into_libs=no
2883
3090
mingw* | pw32*)
2884
3091
# Base MSYS/MinGW do not provide the 'file' command needed by
2885
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2886
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2887
lt_cv_file_magic_cmd='$OBJDUMP -f'
3092
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3093
# unless we find 'file', for example because we are cross-compiling.
3094
if ( file / ) >/dev/null 2>&1; then
3095
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3096
lt_cv_file_magic_cmd='func_win32_libid'
3098
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3099
lt_cv_file_magic_cmd='$OBJDUMP -f'
2890
3103
darwin* | rhapsody*)
2891
3104
lt_cv_deplibs_check_method=pass_all
2894
freebsd* | kfreebsd*-gnu | dragonfly*)
3107
freebsd* | dragonfly*)
2895
3108
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2896
3109
case $host_cpu in
3613
3831
darwin* | rhapsody*)
3615
rhapsody* | darwin1.[[012]])
3616
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3619
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3620
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3622
case ${MACOSX_DEPLOYMENT_TARGET} in
3624
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3627
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3633
3832
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3634
3833
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3635
3834
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3636
3835
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3637
3836
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3638
3837
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3640
if test "$GXX" = yes ; then
3641
lt_int_apple_cc_single_mod=no
3838
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3839
if test "$GXX" = yes ; then
3642
3840
output_verbose_link_cmd='echo'
3643
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3644
lt_int_apple_cc_single_mod=yes
3841
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3842
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3843
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3844
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3845
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3846
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3847
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3646
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3647
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3649
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3651
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3652
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3653
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3654
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3658
_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}'
3660
3850
case $cc_basename in
3662
3852
output_verbose_link_cmd='echo'
3663
_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'
3853
_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'
3664
3854
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3665
3855
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3666
_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}'
3856
_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}'
3667
3857
_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}'
3936
4124
# dependencies.
3937
4125
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'
4128
case `$CC -V 2>&1 | sed 5q` in
4131
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4132
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4133
_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'
4134
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4135
_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'
4137
# Not sure whether something based on
4138
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4140
output_verbose_link_cmd='echo'
4142
# Archives containing C++ object files must be created using
4143
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4144
# necessary to make sure instantiated templates are included
4146
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3974
4185
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3977
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3978
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3979
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3980
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3981
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3982
_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'
3983
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3984
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4188
if test -f /usr/libexec/ld.so; then
4189
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4190
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4191
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4192
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4193
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4194
_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'
4195
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4196
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4198
output_verbose_link_cmd='echo'
4200
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3986
output_verbose_link_cmd='echo'
3989
4204
case $cc_basename in
4145
4360
case $host_os in
4146
4361
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4148
# The C++ compiler is used as linker so we must use $wl
4149
# flag to pass the commands to the underlying system
4150
# linker. We must also pass each convience library through
4151
# to the system linker between allextract/defaultextract.
4152
# The C++ compiler will combine linker options so we
4153
# cannot just pass the convience library names through
4363
# The compiler driver will combine and reorder linker options,
4364
# but understands `-z linker_flag'.
4155
4365
# Supported since Solaris 2.6 (maybe 2.5.1?)
4156
_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'
4366
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4159
4369
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4451
4673
_LT_AC_TAGVAR(postdeps,$1)=
4677
case `$CC -V 2>&1 | sed 5q` in
4681
# The more standards-conforming stlport4 library is
4682
# incompatible with the Cstd library. Avoid specifying
4683
# it if it's in CXXFLAGS. Ignore libCrun as
4684
# -library=stlport4 depends on it.
4685
case " $CXX $CXXFLAGS " in
4686
*" -library=stlport4 "*)
4687
solaris_use_stlport4=yes
4690
if test "$solaris_use_stlport4" != yes; then
4691
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4455
4698
case $cc_basename in
4700
# The more standards-conforming stlport4 library is
4701
# incompatible with the Cstd library. Avoid specifying
4702
# it if it's in CXXFLAGS. Ignore libCrun as
4703
# -library=stlport4 depends on it.
4704
case " $CXX $CXXFLAGS " in
4705
*" -library=stlport4 "*)
4706
solaris_use_stlport4=yes
4457
4710
# Adding this requires a known-good setup of shared libraries for
4458
4711
# Sun compiler versions before 5.6, else PIC objects from an old
4459
4712
# archive will be linked into the output, leading to subtle bugs.
4460
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4713
if test "$solaris_use_stlport4" != yes; then
4714
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4467
4721
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4468
4722
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5968
6276
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5969
6277
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5970
6278
# as well as any symbol that contains `d'.
5971
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6279
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5972
6280
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5973
6281
# platforms (ab)use it in PIC code, but their linkers get confused if
5974
6282
# the symbol is explicitly referenced. Since portable code cannot
5975
6283
# rely on this symbol name, it's probably fine to never include it in
5976
6284
# preloaded symbol tables.
6285
# Exclude shared library initialization/finalization symbols.
6286
dnl Note also adjust exclude_expsyms for C++ above.
5977
6287
extract_expsyms_cmds=
5978
6288
# Just being paranoid about ensuring that cc_basename is set.
5979
6289
_LT_CC_BASENAME([$compiler])
6122
6432
ifc* | ifort*) # Intel Fortran compiler
6123
6433
tmp_addflag=' -nofor_main' ;;
6125
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6435
case `$CC -V 2>&1 | sed 5q` in
6436
*Sun\ C*) # Sun C 5.9
6437
_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'
6438
tmp_sharedflag='-G' ;;
6439
*Sun\ F*) # Sun Fortran 8.3
6440
tmp_sharedflag='-G' ;;
6442
tmp_sharedflag='-shared' ;;
6444
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6127
6446
if test $supports_anon_versioning = yes; then
6128
6447
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6129
6448
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6130
6449
$echo "local: *; };" >> $output_objdir/$libname.ver~
6131
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6450
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6452
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6134
6454
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6458
netbsd* | netbsdelf*-gnu)
6139
6459
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6140
6460
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6413
6733
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6414
6734
if test "$GCC" = yes ; then
6415
6735
output_verbose_link_cmd='echo'
6416
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6417
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6418
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6419
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6420
_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}'
6736
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6737
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6738
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6739
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6422
6741
case $cc_basename in
6424
6743
output_verbose_link_cmd='echo'
6425
_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'
6744
_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'
6426
6745
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6427
6746
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6428
_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}'
6747
_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}'
6429
6748
_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}'
6590
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6591
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6909
if test -f /usr/libexec/ld.so; then
6910
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6911
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6912
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6913
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6914
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6916
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6919
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6920
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6921
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6924
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6925
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6599
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6600
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6604
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6605
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6930
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6663
6986
case $host_os in
6664
6987
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6666
# The compiler driver will combine linker options so we
6667
# cannot just pass the convience library names through
6668
# without $wl, iff we do not link with $LD.
6669
# Luckily, gcc supports the same syntax we need for Sun Studio.
6989
# The compiler driver will combine and reorder linker options,
6990
# but understands `-z linker_flag'. GCC discards it without `$wl',
6991
# but is careful enough not to reorder.
6670
6992
# Supported since Solaris 2.6 (maybe 2.5.1?)
6673
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6675
_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' ;;
6993
if test "$GCC" = yes; then
6994
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6996
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6678
7000
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6908
7230
[AC_CHECK_TOOL(RC, windres, no)
7234
# Cheap backport of AS_EXECUTABLE_P and required macros
7235
# from Autoconf 2.59; we should not use $as_executable_p directly.
7239
m4_ifndef([_AS_TEST_PREPARE],
7240
[m4_defun([_AS_TEST_PREPARE],
7241
[if test -x / >/dev/null 2>&1; then
7242
as_executable_p='test -x'
7244
as_executable_p='test -f'
7246
])])# _AS_TEST_PREPARE
7250
# Check whether a file is executable.
7251
m4_ifndef([AS_EXECUTABLE_P],
7252
[m4_defun([AS_EXECUTABLE_P],
7253
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7254
$as_executable_p $1[]dnl
7255
])])# AS_EXECUTABLE_P
6911
7257
# NOTE: This macro has been submitted for inclusion into #
6912
7258
# GNU Autoconf as AC_PROG_SED. When it is available in #
6913
7259
# a released version of Autoconf we should remove this #
6979
7327
# ----------------------------
6980
7328
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6981
7329
# generated from the m4 files accompanying Automake X.Y.
6982
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7330
# (This private macro should not be called outside this file.)
7331
AC_DEFUN([AM_AUTOMAKE_VERSION],
7332
[am__api_version='1.10'
7333
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7334
dnl require some minimum version. Point them to the right macro.
7335
m4_if([$1], [1.10.1], [],
7336
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7339
# _AM_AUTOCONF_VERSION(VERSION)
7340
# -----------------------------
7341
# aclocal traces this macro to find the Autoconf version.
7342
# This is a private macro too. Using m4_define simplifies
7343
# the logic in aclocal, which can simply ignore this definition.
7344
m4_define([_AM_AUTOCONF_VERSION], [])
6984
7346
# AM_SET_CURRENT_AUTOMAKE_VERSION
6985
7347
# -------------------------------
6986
# Call AM_AUTOMAKE_VERSION so it can be traced.
7348
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6987
7349
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6988
7350
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6989
[AM_AUTOMAKE_VERSION([1.9.6])])
7351
[AM_AUTOMAKE_VERSION([1.10.1])dnl
7352
m4_ifndef([AC_AUTOCONF_VERSION],
7353
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7354
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6991
7356
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7074
7441
Usually this means the macro was only invoked conditionally.]])
7078
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7444
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7079
7445
# Free Software Foundation, Inc.
7081
7447
# This file is free software; the Free Software Foundation
7082
7448
# gives unlimited permission to copy and/or distribute it,
7083
7449
# with or without modifications, as long as this notice is preserved.
7087
7453
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7088
7454
# written in clear, in which case automake, when reading aclocal.m4,
7313
7683
# Do all the work for Automake. -*- Autoconf -*-
7315
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7316
# Free Software Foundation, Inc.
7685
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7686
# 2005, 2006, 2008 Free Software Foundation, Inc.
7318
7688
# This file is free software; the Free Software Foundation
7319
7689
# gives unlimited permission to copy and/or distribute it,
7320
7690
# with or without modifications, as long as this notice is preserved.
7324
7694
# This macro actually does too much. Some checks are only needed if
7325
7695
# your package does certain things. But this isn't really a big deal.
7336
7706
# arguments mandatory, and then we can depend on a new Autoconf
7337
7707
# release and drop the old call support.
7338
7708
AC_DEFUN([AM_INIT_AUTOMAKE],
7339
[AC_PREREQ([2.58])dnl
7709
[AC_PREREQ([2.60])dnl
7340
7710
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7341
7711
dnl the ones we care about.
7342
7712
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7343
7713
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7344
7714
AC_REQUIRE([AC_PROG_INSTALL])dnl
7345
# test to see if srcdir already configured
7346
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7347
test -f $srcdir/config.status; then
7348
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7715
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7716
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7717
# is not polluted with repeated "-I."
7718
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7719
# test to see if srcdir already configured
7720
if test -f $srcdir/config.status; then
7721
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7351
7725
# test whether we have cygpath
7584
7967
# AM_PROG_MKDIR_P
7585
7968
# ---------------
7586
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7588
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7589
# created by `make install' are always world readable, even if the
7590
# installer happens to have an overly restrictive umask (e.g. 077).
7591
# This was a mistake. There are at least two reasons why we must not
7593
# - it causes special bits like SGID to be ignored,
7594
# - it may be too restrictive (some setups expect 775 directories).
7596
# Do not use -m 0755 and let people choose whatever they expect by
7599
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7600
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7601
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7602
# concurrently, both version can detect that a/ is missing, but only
7603
# one can create it and the other will error out. Consequently we
7604
# restrict ourselves to GNU make (using the --version option ensures
7969
# Check for `mkdir -p'.
7606
7970
AC_DEFUN([AM_PROG_MKDIR_P],
7607
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7608
# We used to keeping the `.' as first argument, in order to
7609
# allow $(mkdir_p) to be used without argument. As in
7610
# $(mkdir_p) $(somedir)
7611
# where $(somedir) is conditionally defined. However this is wrong
7613
# 1. if the package is installed by a user who cannot write `.'
7614
# make install will fail,
7615
# 2. the above comment should most certainly read
7616
# $(mkdir_p) $(DESTDIR)$(somedir)
7617
# so it does not work when $(somedir) is undefined and
7618
# $(DESTDIR) is not.
7619
# To support the latter case, we have to write
7620
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7621
# so the `.' trick is pointless.
7622
mkdir_p='mkdir -p --'
7624
# On NextStep and OpenStep, the `mkdir' command does not
7625
# recognize any option. It will interpret all options as
7626
# directories to create, and then abort because `.' already
7628
for d in ./-p ./--version;
7630
test -d $d && rmdir $d
7632
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7633
if test -f "$ac_aux_dir/mkinstalldirs"; then
7634
mkdir_p='$(mkinstalldirs)'
7636
mkdir_p='$(install_sh) -d'
7639
AC_SUBST([mkdir_p])])
7971
[AC_PREREQ([2.60])dnl
7972
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7973
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7974
dnl while keeping a definition of mkdir_p for backward compatibility.
7975
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7976
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7977
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7978
dnl adjustment using top_builddir (which is defined more often than
7980
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7982
[[\\/$]]* | ?:[[\\/]]*) ;;
7983
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7641
7987
# Helper functions for option handling. -*- Autoconf -*-
7671
8017
AC_DEFUN([_AM_IF_OPTION],
7672
8018
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8020
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8022
# This file is free software; the Free Software Foundation
8023
# gives unlimited permission to copy and/or distribute it,
8024
# with or without modifications, as long as this notice is preserved.
8026
# AM_RUN_LOG(COMMAND)
8027
# -------------------
8028
# Run COMMAND, save the exit status in ac_status, and log it.
8029
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8030
AC_DEFUN([AM_RUN_LOG],
8031
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8032
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8034
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8035
(exit $ac_status); }])
7674
8037
# Check to make sure that the build environment is sane. -*- Autoconf -*-
7676
8039
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7748
8111
if test "$cross_compiling" != no; then
7749
8112
AC_CHECK_TOOL([STRIP], [strip], :)
7751
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8114
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7752
8115
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8117
# Copyright (C) 2006 Free Software Foundation, Inc.
8119
# This file is free software; the Free Software Foundation
8120
# gives unlimited permission to copy and/or distribute it,
8121
# with or without modifications, as long as this notice is preserved.
8123
# _AM_SUBST_NOTMAKE(VARIABLE)
8124
# ---------------------------
8125
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8126
# This macro is traced by Automake.
8127
AC_DEFUN([_AM_SUBST_NOTMAKE])
7754
8129
# Check how to create a tarball. -*- Autoconf -*-
7756
8131
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8323
8698
AC_MSG_CHECKING([whether to build with debugging support])
8324
8699
if test x"$enable_debug" != x"no"; then
8325
8700
AC_DEFINE([DEBUG], [1], [Define for debugging support])
8327
xdt_cv_additional_CFLAGS="-Wall"
8702
if test x"$GCC" = x"yes"; then
8703
xdt_cv_additional_CFLAGS="-Wall"
8328
8705
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
8330
8707
if test x"$enable_debug" = x"full"; then
8331
8708
AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
8332
xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
8709
if test x"$GCC" = x"yes"; then
8710
xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
8333
8712
AC_MSG_RESULT([full])
8335
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
8714
if test x"$GCC" = x"yes"; then
8715
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
8336
8717
AC_MSG_RESULT([yes])