Changeset 3120
- Timestamp:
- 03/06/08 15:49:56 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pkg/main/gdm/trunk/debian/patches/70_mandatory-relibtoolize.patch
r3082 r3120 8 8 rm -rf autom4te.cache 9 9 10 diff -x'*config.sub' -x'*config.guess' -Naur gdm-2.20.3.o ld/aclocal.m4 gdm-2.20.3/aclocal.m411 --- gdm-2.20.3.o ld/aclocal.m4 2008-01-07 20:42:14.000000000 +010012 +++ gdm-2.20.3 /aclocal.m4 2008-01-08 15:26:24.000000000 +010013 @@ -16, 3354 +16,2520@@10 diff -x'*config.sub' -x'*config.guess' -Naur gdm-2.20.3.orig/aclocal.m4 gdm-2.20.3.new/aclocal.m4 11 --- gdm-2.20.3.orig/aclocal.m4 2008-01-08 14:39:13.000000000 +0330 12 +++ gdm-2.20.3.new/aclocal.m4 2008-01-09 08:34:06.000000000 +0330 13 @@ -16,4193 +16,4448 @@ 14 14 You have another version of autoconf. If you want to use that, 15 15 you should regenerate the build system entirely.], [63])]) … … 834 834 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 835 835 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 836 +dnl GNOME_COMPILE_WARNINGS 837 +dnl Turn on many useful compiler warnings 838 +dnl For now, only works on GCC 839 +AC_DEFUN([GNOME_COMPILE_WARNINGS],[ 840 + dnl ****************************** 841 + dnl More compiler warnings 842 + dnl ****************************** 836 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 843 837 844 838 -_AM_IF_OPTION([no-define],, 845 839 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 846 840 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 847 + AC_ARG_ENABLE(compile-warnings, 848 + AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], 849 + [Turn on compiler warnings]),, 850 + [enable_compile_warnings="m4_default([$1],[yes])"]) 841 +# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL 851 842 852 843 -# Some tools Automake needs. … … 884 875 -]) 885 876 -]) 886 + warnCFLAGS= 887 + if test "x$GCC" != xyes; then 888 + enable_compile_warnings=no 889 + fi 890 891 + warning_flags= 892 + realsave_CFLAGS="$CFLAGS" 877 878 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 879 +# ----------------------------------------------------------- 880 +# If this macro is not defined by Autoconf, define it here. 881 +m4_ifdef([AC_PROVIDE_IFELSE], 882 + [], 883 + [m4_define([AC_PROVIDE_IFELSE], 884 + [m4_ifdef([AC_PROVIDE_$1], 885 + [$2], [$3])])]) 893 886 894 887 -# When config.status generates a header, we must update the stamp-h file. 895 888 -# This file resides in the same directory as the config header 896 889 -# that is generated. The stamp files are numbered to have different names. 897 + case "$enable_compile_warnings" in898 + no)899 + warning_flags=900 + ;;901 + minimum)902 + warning_flags="-Wall"903 + ;;904 + yes)905 + warning_flags="-Wall -Wmissing-prototypes"906 + ;;907 + maximum|error)908 + warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"909 + CFLAGS="$warning_flags $CFLAGS"910 + for option in -Wno-sign-compare; do911 + SAVE_CFLAGS="$CFLAGS"912 + CFLAGS="$CFLAGS $option"913 + AC_MSG_CHECKING([whether gcc understands $option])914 + AC_TRY_COMPILE([], [],915 + has_option=yes,916 + has_option=no,)917 + CFLAGS="$SAVE_CFLAGS"918 + AC_MSG_RESULT($has_option)919 + if test $has_option = yes; then920 + warning_flags="$warning_flags $option"921 + fi922 + unset has_option923 + unset SAVE_CFLAGS924 + done925 + unset option926 + if test "$enable_compile_warnings" = "error" ; then927 + warning_flags="$warning_flags -Werror"928 + fi929 + ;;930 + *)931 + AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)932 + ;;933 + esac934 + CFLAGS="$realsave_CFLAGS"935 + AC_MSG_CHECKING(what warning flags to pass to the C compiler)936 + AC_MSG_RESULT($warning_flags)937 890 938 891 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the … … 951 904 -done 952 905 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 953 + AC_ARG_ENABLE(iso-c, 954 + AC_HELP_STRING([--enable-iso-c], 955 + [Try to warn if code is not ISO C ]),, 956 + [enable_iso_c=no]) 906 +# AC_PROG_LIBTOOL 907 +# --------------- 908 +AC_DEFUN([AC_PROG_LIBTOOL], 909 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 910 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 911 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 912 + AC_PROVIDE_IFELSE([AC_PROG_CXX], 913 + [AC_LIBTOOL_CXX], 914 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 915 + ])]) 916 +dnl And a similar setup for Fortran 77 support 917 + AC_PROVIDE_IFELSE([AC_PROG_F77], 918 + [AC_LIBTOOL_F77], 919 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 920 +])]) 957 921 958 922 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. … … 961 925 -# gives unlimited permission to copy and/or distribute it, 962 926 -# with or without modifications, as long as this notice is preserved. 963 + AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) 964 + complCFLAGS= 965 + if test "x$enable_iso_c" != "xno"; then 966 + if test "x$GCC" = "xyes"; then 967 + case " $CFLAGS " in 968 + *[\ \ ]-ansi[\ \ ]*) ;; 969 + *) complCFLAGS="$complCFLAGS -ansi" ;; 970 + esac 971 + case " $CFLAGS " in 972 + *[\ \ ]-pedantic[\ \ ]*) ;; 973 + *) complCFLAGS="$complCFLAGS -pedantic" ;; 974 + esac 975 + fi 976 + fi 977 + AC_MSG_RESULT($complCFLAGS) 927 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 928 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 929 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 930 + AC_PROVIDE_IFELSE([AC_PROG_GCJ], 931 + [AC_LIBTOOL_GCJ], 932 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 933 + [AC_LIBTOOL_GCJ], 934 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 935 + [AC_LIBTOOL_GCJ], 936 + [ifdef([AC_PROG_GCJ], 937 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 938 + ifdef([A][M_PROG_GCJ], 939 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 940 + ifdef([LT_AC_PROG_GCJ], 941 + [define([LT_AC_PROG_GCJ], 942 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 943 +])])# AC_PROG_LIBTOOL 978 944 979 945 -# AM_PROG_INSTALL_SH … … 984 950 -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 985 951 -AC_SUBST(install_sh)]) 986 + WARN_CFLAGS="$warning_flags $complCFLAGS"987 + AC_SUBST(WARN_CFLAGS)988 +])989 952 990 953 -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. … … 993 956 -# gives unlimited permission to copy and/or distribute it, 994 957 -# with or without modifications, as long as this notice is preserved. 995 +dnl For C++, do basically the same thing. 958 +# _AC_PROG_LIBTOOL 959 +# ---------------- 960 +AC_DEFUN([_AC_PROG_LIBTOOL], 961 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 962 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 963 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 964 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 996 965 997 966 -# serial 2 998 +AC_DEFUN([GNOME_CXX_WARNINGS],[ 999 + AC_ARG_ENABLE(cxx-warnings, 1000 + AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] 1001 + [Turn on compiler warnings.]),, 1002 + [enable_cxx_warnings="m4_default([$1],[minimum])"]) 967 +# This can be used to rebuild libtool when needed 968 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 1003 969 1004 970 -# Check whether the underlying file-system supports filenames … … 1014 980 -rmdir .tst 2>/dev/null 1015 981 -AC_SUBST([am__leading_dot])]) 1016 + AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) 1017 + warnCXXFLAGS= 1018 + if test "x$GXX" != xyes; then 1019 + enable_cxx_warnings=no 1020 + fi 1021 + if test "x$enable_cxx_warnings" != "xno"; then 1022 + if test "x$GXX" = "xyes"; then 1023 + case " $CXXFLAGS " in 1024 + *[\ \ ]-Wall[\ \ ]*) ;; 1025 + *) warnCXXFLAGS="-Wall -Wno-unused" ;; 1026 + esac 982 +# Always use our own libtool. 983 +LIBTOOL='$(SHELL) $(top_builddir)/libtool' 984 +AC_SUBST(LIBTOOL)dnl 1027 985 1028 986 -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 1029 987 -# From Jim Meyering 1030 + ## -W is not all that useful. And it cannot be controlled 1031 + ## with individual -Wno-xxx flags, unlike -Wall 1032 + if test "x$enable_cxx_warnings" = "xyes"; then 1033 + warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" 1034 + fi 1035 + fi 1036 + fi 1037 + AC_MSG_RESULT($warnCXXFLAGS) 988 +# Prevent multiple expansion 989 +define([AC_PROG_LIBTOOL], []) 990 +])# _AC_PROG_LIBTOOL 1038 991 1039 992 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 … … 1043 996 -# gives unlimited permission to copy and/or distribute it, 1044 997 -# with or without modifications, as long as this notice is preserved. 1045 + AC_ARG_ENABLE(iso-cxx,1046 + AC_HELP_STRING([--enable-iso-cxx],1047 + [Try to warn if code is not ISO C++ ]),,1048 + [enable_iso_cxx=no])1049 998 1050 999 -# serial 4 1051 + AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) 1052 + complCXXFLAGS= 1053 + if test "x$enable_iso_cxx" != "xno"; then 1054 + if test "x$GXX" = "xyes"; then 1055 + case " $CXXFLAGS " in 1056 + *[\ \ ]-ansi[\ \ ]*) ;; 1057 + *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; 1058 + esac 1000 +# AC_LIBTOOL_SETUP 1001 +# ---------------- 1002 +AC_DEFUN([AC_LIBTOOL_SETUP], 1003 +[AC_PREREQ(2.50)dnl 1004 +AC_REQUIRE([AC_ENABLE_SHARED])dnl 1005 +AC_REQUIRE([AC_ENABLE_STATIC])dnl 1006 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 1007 +AC_REQUIRE([AC_CANONICAL_HOST])dnl 1008 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1009 +AC_REQUIRE([AC_PROG_CC])dnl 1010 +AC_REQUIRE([AC_PROG_LD])dnl 1011 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 1012 +AC_REQUIRE([AC_PROG_NM])dnl 1059 1013 1060 1014 -AC_DEFUN([AM_MAINTAINER_MODE], … … 1072 1026 -] 1073 1027 -) 1074 + case " $CXXFLAGS " in 1075 + *[\ \ ]-pedantic[\ \ ]*) ;; 1076 + *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; 1077 + esac 1078 + fi 1079 + fi 1080 + AC_MSG_RESULT($complCXXFLAGS) 1028 +AC_REQUIRE([AC_PROG_LN_S])dnl 1029 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 1030 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1031 +AC_REQUIRE([AC_OBJEXT])dnl 1032 +AC_REQUIRE([AC_EXEEXT])dnl 1033 +dnl 1081 1034 1082 1035 -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 1083 + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"1084 + AC_SUBST(WARN_CXXFLAGS)1085 + ])1036 +AC_LIBTOOL_SYS_MAX_CMD_LEN 1037 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1038 +AC_LIBTOOL_OBJDIR 1086 1039 1087 1040 -# Check to see how 'make' treats includes. -*- Autoconf -*- 1088 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1041 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1042 +_LT_AC_PROG_ECHO_BACKSLASH 1089 1043 1090 1044 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. … … 1093 1047 -# gives unlimited permission to copy and/or distribute it, 1094 1048 -# with or without modifications, as long as this notice is preserved. 1095 +# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL 1049 +case $host_os in 1050 +aix3*) 1051 + # AIX sometimes has problems with the GCC collect2 program. For some 1052 + # reason, if we set the COLLECT_NAMES environment variable, the problems 1053 + # vanish in a puff of smoke. 1054 + if test "X${COLLECT_NAMES+set}" != Xset; then 1055 + COLLECT_NAMES= 1056 + export COLLECT_NAMES 1057 + fi 1058 + ;; 1059 +esac 1096 1060 1097 1061 -# serial 3 1062 +# Sed substitution that helps us do robust quoting. It backslashifies 1063 +# metacharacters that are still active within double-quoted strings. 1064 +Xsed='sed -e 1s/^X//' 1065 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1098 1066 1099 1067 -# AM_MAKE_INCLUDE() … … 1138 1106 -rm -f confinc confmf 1139 1107 -]) 1140 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 1141 +# ----------------------------------------------------------- 1142 +# If this macro is not defined by Autoconf, define it here. 1143 +m4_ifdef([AC_PROVIDE_IFELSE], 1144 + [], 1145 + [m4_define([AC_PROVIDE_IFELSE], 1146 + [m4_ifdef([AC_PROVIDE_$1], 1147 + [$2], [$3])])]) 1108 +# Same as above, but do not quote variable references. 1109 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 1148 1110 1149 1111 -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1112 +# Sed substitution to delay expansion of an escaped shell variable in a 1113 +# double_quote_subst'ed string. 1114 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1150 1115 1151 1116 -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 … … 1155 1120 -# gives unlimited permission to copy and/or distribute it, 1156 1121 -# with or without modifications, as long as this notice is preserved. 1157 +# AC_PROG_LIBTOOL 1158 +# --------------- 1159 +AC_DEFUN([AC_PROG_LIBTOOL], 1160 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 1161 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 1162 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 1163 + AC_PROVIDE_IFELSE([AC_PROG_CXX], 1164 + [AC_LIBTOOL_CXX], 1165 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 1166 + ])]) 1167 +dnl And a similar setup for Fortran 77 support 1168 + AC_PROVIDE_IFELSE([AC_PROG_F77], 1169 + [AC_LIBTOOL_F77], 1170 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 1171 +])]) 1122 +# Sed substitution to avoid accidental globbing in evaled expressions 1123 +no_glob_subst='s/\*/\\\*/g' 1172 1124 1173 1125 -# serial 5 1174 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 1175 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 1176 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 1177 + AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1178 + [AC_LIBTOOL_GCJ], 1179 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1180 + [AC_LIBTOOL_GCJ], 1181 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 1182 + [AC_LIBTOOL_GCJ], 1183 + [ifdef([AC_PROG_GCJ], 1184 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 1185 + ifdef([A][M_PROG_GCJ], 1186 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 1187 + ifdef([LT_AC_PROG_GCJ], 1188 + [define([LT_AC_PROG_GCJ], 1189 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 1190 +])])# AC_PROG_LIBTOOL 1126 +# Constants: 1127 +rm="rm -f" 1191 1128 1192 1129 -# AM_MISSING_PROG(NAME, PROGRAM) … … 1196 1133 -$1=${$1-"${am_missing_run}$2"} 1197 1134 -AC_SUBST($1)]) 1198 1199 +# _AC_PROG_LIBTOOL 1200 +# ---------------- 1201 +AC_DEFUN([_AC_PROG_LIBTOOL], 1202 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 1203 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 1204 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 1205 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 1135 +# Global variables: 1136 +default_ofile=libtool 1137 +can_build_shared=yes 1138 1139 +# All known linkers require a `.a' archive for static linking (except MSVC, 1140 +# which needs '.lib'). 1141 +libext=a 1142 +ltmain="$ac_aux_dir/ltmain.sh" 1143 +ofile="$default_ofile" 1144 +with_gnu_ld="$lt_cv_prog_gnu_ld" 1206 1145 1207 1146 -# AM_MISSING_HAS_RUN … … 1219 1158 - am_missing_run= 1220 1159 - AC_MSG_WARN([`missing' script is too old or missing]) 1221 -fi 1160 +AC_CHECK_TOOL(AR, ar, false) 1161 +AC_CHECK_TOOL(RANLIB, ranlib, :) 1162 +AC_CHECK_TOOL(STRIP, strip, :) 1163 + 1164 +old_CC="$CC" 1165 +old_CFLAGS="$CFLAGS" 1166 + 1167 +# Set sane defaults for various variables 1168 +test -z "$AR" && AR=ar 1169 +test -z "$AR_FLAGS" && AR_FLAGS=cru 1170 +test -z "$AS" && AS=as 1171 +test -z "$CC" && CC=cc 1172 +test -z "$LTCC" && LTCC=$CC 1173 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1174 +test -z "$DLLTOOL" && DLLTOOL=dlltool 1175 +test -z "$LD" && LD=ld 1176 +test -z "$LN_S" && LN_S="ln -s" 1177 +test -z "$MAGIC_CMD" && MAGIC_CMD=file 1178 +test -z "$NM" && NM=nm 1179 +test -z "$SED" && SED=sed 1180 +test -z "$OBJDUMP" && OBJDUMP=objdump 1181 +test -z "$RANLIB" && RANLIB=: 1182 +test -z "$STRIP" && STRIP=: 1183 +test -z "$ac_objext" && ac_objext=o 1184 + 1185 +# Determine commands to create old-style static archives. 1186 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1187 +old_postinstall_cmds='chmod 644 $oldlib' 1188 +old_postuninstall_cmds= 1189 + 1190 +if test -n "$RANLIB"; then 1191 + case $host_os in 1192 + openbsd*) 1193 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1194 + ;; 1195 + *) 1196 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1197 + ;; 1198 + esac 1199 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1200 fi 1222 1201 -]) 1223 +# This can be used to rebuild libtool when needed1224 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"1225 1202 1226 1203 -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. … … 1229 1206 -# gives unlimited permission to copy and/or distribute it, 1230 1207 -# with or without modifications, as long as this notice is preserved. 1231 +# Always use our own libtool. 1232 +LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1233 +AC_SUBST(LIBTOOL)dnl 1208 +_LT_CC_BASENAME([$compiler]) 1234 1209 1235 1210 -# AM_PROG_MKDIR_P … … 1250 1225 - [[\\/$]]* | ?:[[\\/]]*) ;; 1251 1226 - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 1252 -esac 1227 +# Only perform the check for file, if the check method requires it 1228 +case $deplibs_check_method in 1229 +file_magic*) 1230 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1231 + AC_PATH_MAGIC 1232 + fi 1233 + ;; 1234 esac 1253 1235 -]) 1254 +# Prevent multiple expansion1255 +define([AC_PROG_LIBTOOL], [])1256 +])# _AC_PROG_LIBTOOL1257 1236 1258 1237 -# Helper functions for option handling. -*- Autoconf -*- 1238 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 1239 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1240 +enable_win32_dll=yes, enable_win32_dll=no) 1259 1241 1260 1242 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. … … 1263 1245 -# gives unlimited permission to copy and/or distribute it, 1264 1246 -# with or without modifications, as long as this notice is preserved. 1265 +# AC_LIBTOOL_SETUP 1266 +# ---------------- 1267 +AC_DEFUN([AC_LIBTOOL_SETUP], 1268 +[AC_PREREQ(2.50)dnl 1269 +AC_REQUIRE([AC_ENABLE_SHARED])dnl 1270 +AC_REQUIRE([AC_ENABLE_STATIC])dnl 1271 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 1272 +AC_REQUIRE([AC_CANONICAL_HOST])dnl 1273 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1274 +AC_REQUIRE([AC_PROG_CC])dnl 1275 +AC_REQUIRE([AC_PROG_LD])dnl 1276 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 1277 +AC_REQUIRE([AC_PROG_NM])dnl 1247 +AC_ARG_ENABLE([libtool-lock], 1248 + [AC_HELP_STRING([--disable-libtool-lock], 1249 + [avoid locking (might break parallel builds)])]) 1250 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1278 1251 1279 1252 -# serial 3 1280 +AC_ REQUIRE([AC_PROG_LN_S])dnl1281 + AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl1282 + # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!1283 + AC_REQUIRE([AC_OBJEXT])dnl1284 + AC_REQUIRE([AC_EXEEXT])dnl1285 + dnl1253 +AC_ARG_WITH([pic], 1254 + [AC_HELP_STRING([--with-pic], 1255 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 1256 + [pic_mode="$withval"], 1257 + [pic_mode=default]) 1258 +test -z "$pic_mode" && pic_mode=default 1286 1259 1287 1260 -# _AM_MANGLE_OPTION(NAME) … … 1289 1262 -AC_DEFUN([_AM_MANGLE_OPTION], 1290 1263 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1291 +AC_LIBTOOL_SYS_MAX_CMD_LEN 1292 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1293 +AC_LIBTOOL_OBJDIR 1264 +# Use C for the default configuration in the libtool script 1265 +tagname= 1266 +AC_LIBTOOL_LANG_C_CONFIG 1267 +_LT_AC_TAGCONFIG 1268 +])# AC_LIBTOOL_SETUP 1294 1269 1295 1270 -# _AM_SET_OPTION(NAME) … … 1298 1273 -AC_DEFUN([_AM_SET_OPTION], 1299 1274 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 1300 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl1301 +_LT_AC_PROG_ECHO_BACKSLASH1302 1275 1303 1276 -# _AM_SET_OPTIONS(OPTIONS) … … 1306 1279 -AC_DEFUN([_AM_SET_OPTIONS], 1307 1280 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1308 +case $host_os in 1309 +aix3*) 1310 + # AIX sometimes has problems with the GCC collect2 program. For some 1311 + # reason, if we set the COLLECT_NAMES environment variable, the problems 1312 + # vanish in a puff of smoke. 1313 + if test "X${COLLECT_NAMES+set}" != Xset; then 1314 + COLLECT_NAMES= 1315 + export COLLECT_NAMES 1316 + fi 1317 + ;; 1318 +esac 1281 +# _LT_AC_SYS_COMPILER 1282 +# ------------------- 1283 +AC_DEFUN([_LT_AC_SYS_COMPILER], 1284 +[AC_REQUIRE([AC_PROG_CC])dnl 1319 1285 1320 1286 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) … … 1323 1289 -AC_DEFUN([_AM_IF_OPTION], 1324 1290 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1325 +# Sed substitution that helps us do robust quoting. It backslashifies 1326 +# metacharacters that are still active within double-quoted strings. 1327 +Xsed='sed -e 1s/^X//' 1328 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1291 +# If no C compiler was specified, use CC. 1292 +LTCC=${LTCC-"$CC"} 1329 1293 1330 1294 -# Check to make sure that the build environment is sane. -*- Autoconf -*- 1331 +# Same as above, but do not quote variable references.1332 + [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']1295 +# If no C compiler flags were specified, use CFLAGS. 1296 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1333 1297 1334 1298 -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 … … 1338 1302 -# gives unlimited permission to copy and/or distribute it, 1339 1303 -# with or without modifications, as long as this notice is preserved. 1340 +# Sed substitution to delay expansion of an escaped shell variable in a1341 + # double_quote_subst'ed string.1342 + delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'1304 +# Allow CC to be a program name with arguments. 1305 +compiler=$CC 1306 +])# _LT_AC_SYS_COMPILER 1343 1307 1344 1308 -# serial 4 1345 +# Sed substitution to avoid accidental globbing in evaled expressions1346 +no_glob_subst='s/\*/\\\*/g'1347 1309 1348 1310 -# AM_SANITY_CHECK … … 1367 1329 - if test "$[*]" != "X $srcdir/configure conftest.file" \ 1368 1330 - && test "$[*]" != "X conftest.file $srcdir/configure"; then 1369 +# Constants: 1370 +rm="rm -f" 1331 +# _LT_CC_BASENAME(CC) 1332 +# ------------------- 1333 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1334 +AC_DEFUN([_LT_CC_BASENAME], 1335 +[for cc_temp in $1""; do 1336 + case $cc_temp in 1337 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1338 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1339 + \-*) ;; 1340 + *) break;; 1341 + esac 1342 +done 1343 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1344 +]) 1371 1345 1372 1346 - # If neither matched, then we have a broken ls. This can happen … … 1377 1351 -alias in your environment]) 1378 1352 - fi 1379 - 1353 1380 1354 - test "$[2]" = conftest.file 1381 1355 - ) … … 1388 1362 -fi 1389 1363 -AC_MSG_RESULT(yes)]) 1390 - 1364 +# _LT_COMPILER_BOILERPLATE 1365 +# ------------------------ 1366 +# Check for compiler boilerplate output or warnings with 1367 +# the simple compiler test code. 1368 +AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1369 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1370 +ac_outfile=conftest.$ac_objext 1371 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1372 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1373 +_lt_compiler_boilerplate=`cat conftest.err` 1374 +$rm conftest* 1375 +])# _LT_COMPILER_BOILERPLATE 1376 1391 1377 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 1392 1378 -# … … 1394 1380 -# gives unlimited permission to copy and/or distribute it, 1395 1381 -# with or without modifications, as long as this notice is preserved. 1396 - 1382 1397 1383 -# AM_PROG_INSTALL_STRIP 1398 1384 -# --------------------- … … 1416 1402 -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1417 1403 -AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1418 +# Global variables: 1419 +default_ofile=libtool 1420 +can_build_shared=yes 1421 1404 - 1422 1405 -# Copyright (C) 2006 Free Software Foundation, Inc. 1423 1406 -# … … 1425 1408 -# gives unlimited permission to copy and/or distribute it, 1426 1409 -# with or without modifications, as long as this notice is preserved. 1427 +# All known linkers require a `.a' archive for static linking (except MSVC, 1428 +# which needs '.lib'). 1429 +libext=a 1430 +ltmain="$ac_aux_dir/ltmain.sh" 1431 +ofile="$default_ofile" 1432 +with_gnu_ld="$lt_cv_prog_gnu_ld" 1410 +# _LT_LINKER_BOILERPLATE 1411 +# ---------------------- 1412 +# Check for linker boilerplate output or warnings with 1413 +# the simple link test code. 1414 +AC_DEFUN([_LT_LINKER_BOILERPLATE], 1415 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1416 +ac_outfile=conftest.$ac_objext 1417 +echo "$lt_simple_link_test_code" >conftest.$ac_ext 1418 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1419 +_lt_linker_boilerplate=`cat conftest.err` 1420 +$rm conftest* 1421 +])# _LT_LINKER_BOILERPLATE 1433 1422 1434 1423 -# _AM_SUBST_NOTMAKE(VARIABLE) … … 1437 1426 -# This macro is traced by Automake. 1438 1427 -AC_DEFUN([_AM_SUBST_NOTMAKE]) 1439 +AC_CHECK_TOOL(AR, ar, false)1440 +AC_CHECK_TOOL(RANLIB, ranlib, :)1441 +AC_CHECK_TOOL(STRIP, strip, :)1442 1428 1443 1429 -# Check how to create a tarball. -*- Autoconf -*- 1444 +old_CC="$CC" 1445 +old_CFLAGS="$CFLAGS" 1430 +# _LT_AC_SYS_LIBPATH_AIX 1431 +# ---------------------- 1432 +# Links a minimal program and checks the executable 1433 +# for the system default hardcoded library path. In most cases, 1434 +# this is /usr/lib:/lib, but when the MPI compilers are used 1435 +# the location of the communication and MPI libs are included too. 1436 +# If we don't find anything, use the default library path according 1437 +# to the aix ld manual. 1438 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 1439 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1440 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1441 +lt_aix_libpath_sed=' 1442 + /Import File Strings/,/^$/ { 1443 + /^0/ { 1444 + s/^0 *\(.*\)$/\1/ 1445 + p 1446 + } 1447 + }' 1448 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1449 +# Check for a 64-bit object if we didn't find anything. 1450 +if test -z "$aix_libpath"; then 1451 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1452 +fi],[]) 1453 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1454 +])# _LT_AC_SYS_LIBPATH_AIX 1446 1455 1447 1456 -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. … … 1450 1459 -# gives unlimited permission to copy and/or distribute it, 1451 1460 -# with or without modifications, as long as this notice is preserved. 1452 +# Set sane defaults for various variables1453 +test -z "$AR" && AR=ar1454 +test -z "$AR_FLAGS" && AR_FLAGS=cru1455 +test -z "$AS" && AS=as1456 +test -z "$CC" && CC=cc1457 +test -z "$LTCC" && LTCC=$CC1458 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS1459 +test -z "$DLLTOOL" && DLLTOOL=dlltool1460 +test -z "$LD" && LD=ld1461 +test -z "$LN_S" && LN_S="ln -s"1462 +test -z "$MAGIC_CMD" && MAGIC_CMD=file1463 +test -z "$NM" && NM=nm1464 +test -z "$SED" && SED=sed1465 +test -z "$OBJDUMP" && OBJDUMP=objdump1466 +test -z "$RANLIB" && RANLIB=:1467 +test -z "$STRIP" && STRIP=:1468 +test -z "$ac_objext" && ac_objext=o1469 1461 1470 1462 -# serial 2 1471 +# Determine commands to create old-style static archives. 1472 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1473 +old_postinstall_cmds='chmod 644 $oldlib' 1474 +old_postuninstall_cmds= 1463 +# _LT_AC_SHELL_INIT(ARG) 1464 +# ---------------------- 1465 +AC_DEFUN([_LT_AC_SHELL_INIT], 1466 +[ifdef([AC_DIVERSION_NOTICE], 1467 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1468 + [AC_DIVERT_PUSH(NOTICE)]) 1469 +$1 1470 +AC_DIVERT_POP 1471 +])# _LT_AC_SHELL_INIT 1475 1472 1476 1473 -# _AM_PROG_TAR(FORMAT) … … 1529 1526 - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1530 1527 - am__untar='cpio -i -H $1 -d' 1531 +if test -n "$RANLIB"; then 1532 + case $host_os in 1533 + openbsd*) 1534 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1535 ;; 1528 - ;; 1536 1529 - none) 1537 1530 - am__tar=false 1538 1531 - am__tar_=false 1539 1532 - am__untar=false 1540 + *) 1541 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1542 ;; 1543 esac 1544 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1545 +fi 1533 - ;; 1534 - esac 1546 1535 1547 1536 - # If the value was cached, stop now. We just wanted to have am__tar 1548 1537 - # and am__untar set. 1549 1538 - test -n "${am_cv_prog_tar_$1}" && break 1550 +_LT_CC_BASENAME([$compiler]) 1539 +# _LT_AC_PROG_ECHO_BACKSLASH 1540 +# -------------------------- 1541 +# Add some code to the start of the generated configure script which 1542 +# will find an echo command which doesn't interpret backslashes. 1543 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 1544 +[_LT_AC_SHELL_INIT([ 1545 +# Check that we are running under the correct shell. 1546 +SHELL=${CONFIG_SHELL-/bin/sh} 1551 1547 1552 1548 - # tar/untar a dummy directory, and stop if the command works … … 1559 1555 - AM_RUN_LOG([$am__untar <conftest.tar]) 1560 1556 - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1561 +# Only perform the check for file, if the check method requires it 1562 +case $deplibs_check_method in 1563 +file_magic*) 1564 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1565 + AC_PATH_MAGIC 1566 fi 1557 - fi 1567 1558 -done 1568 1559 -rm -rf conftest.dir 1569 - 1560 +case X$ECHO in 1561 +X*--fallback-echo) 1562 + # Remove one level of quotation (which was required for Make). 1563 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1564 + ;; 1565 +esac 1566 1570 1567 -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1571 1568 -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) … … 1573 1570 -AC_SUBST([am__untar]) 1574 1571 -]) # _AM_PROG_TAR 1575 + ;; 1576 +esac 1572 +echo=${ECHO-echo} 1573 +if test "X[$]1" = X--no-reexec; then 1574 + # Discard the --no-reexec flag, and continue. 1575 + shift 1576 +elif test "X[$]1" = X--fallback-echo; then 1577 + # Avoid inline document here, it may be left over 1578 + : 1579 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 1580 + # Yippee, $echo works! 1581 + : 1582 +else 1583 + # Restart under the correct shell. 1584 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1585 +fi 1577 1586 1578 1587 -# Copyright (C) 1995-2002 Free Software Foundation, Inc. … … 1608 1617 -# using AM_GLIB_GNU_GETTEXT 1609 1618 -AC_PREREQ(2.53) 1610 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 1611 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1612 +enable_win32_dll=yes, enable_win32_dll=no) 1619 +if test "X[$]1" = X--fallback-echo; then 1620 + # used as fallback echo 1621 + shift 1622 + cat <<EOF 1623 +[$]* 1624 +EOF 1625 + exit 0 1626 +fi 1613 1627 1614 1628 -dnl … … 1623 1637 -dnl definitions in terms of our private definitions. 1624 1638 -dnl 1625 +AC_ARG_ENABLE([libtool-lock], 1626 + [AC_HELP_STRING([--disable-libtool-lock], 1627 + [avoid locking (might break parallel builds)])]) 1628 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1639 +# The HP-UX ksh and POSIX shell print the target directory to stdout 1640 +# if CDPATH is set. 1641 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1629 1642 1630 1643 -# GLIB_LC_MESSAGES … … 1639 1652 - AC_DEFINE(HAVE_LC_MESSAGES, 1, 1640 1653 - [Define if your <locale.h> file defines LC_MESSAGES.]) 1641 - fi 1654 +if test -z "$ECHO"; then 1655 +if test "X${echo_test_string+set}" != Xset; then 1656 +# find a string as large as possible, as long as the shell can cope with it 1657 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1658 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1659 + if (echo_test_string=`eval $cmd`) 2>/dev/null && 1660 + echo_test_string=`eval $cmd` && 1661 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 1662 + then 1663 + break 1664 fi 1642 1665 - fi]) 1643 +AC_ARG_WITH([pic], 1644 + [AC_HELP_STRING([--with-pic], 1645 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 1646 + [pic_mode="$withval"], 1647 + [pic_mode=default]) 1648 +test -z "$pic_mode" && pic_mode=default 1666 + done 1667 +fi 1649 1668 1650 1669 -# GLIB_PATH_PROG_WITH_TEST … … 1682 1701 -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 1683 1702 - AC_MSG_RESULT([$]$1) 1684 -else 1703 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1704 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1705 + test "X$echo_testing_string" = "X$echo_test_string"; then 1706 + : 1707 else 1685 1708 - AC_MSG_RESULT(no) 1686 1709 -fi … … 1695 1718 - USE_NLS=yes 1696 1719 - AC_SUBST(USE_NLS) 1697 + # Use C for the default configuration in the libtool script1698 + tagname=1699 + AC_LIBTOOL_LANG_C_CONFIG1700 + _LT_AC_TAGCONFIG1701 + ])# AC_LIBTOOL_SETUP1720 + # The Solaris, AIX, and Digital Unix default echo programs unquote 1721 + # backslashes. This makes it impossible to quote backslashes using 1722 + # echo "$something" | sed 's/\\/\\\\/g' 1723 + # 1724 + # So, first we look for a working echo in the user's PATH. 1702 1725 1703 1726 - gt_cv_have_gettext=no 1727 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1728 + for dir in $PATH /usr/ucb; do 1729 + IFS="$lt_save_ifs" 1730 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1731 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1732 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1733 + test "X$echo_testing_string" = "X$echo_test_string"; then 1734 + echo="$dir/echo" 1735 + break 1736 + fi 1737 + done 1738 + IFS="$lt_save_ifs" 1704 1739 1705 1740 - CATOBJEXT=NONE 1706 1741 - XGETTEXT=: 1707 1742 - INTLLIBS= 1708 +# _LT_AC_SYS_COMPILER 1709 +# ------------------- 1710 +AC_DEFUN([_LT_AC_SYS_COMPILER], 1711 +[AC_REQUIRE([AC_PROG_CC])dnl 1743 + if test "X$echo" = Xecho; then 1744 + # We didn't find a better echo, so look for alternatives. 1745 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 1746 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 1747 + test "X$echo_testing_string" = "X$echo_test_string"; then 1748 + # This shell has a builtin print -r that does the trick. 1749 + echo='print -r' 1750 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 1751 + test "X$CONFIG_SHELL" != X/bin/ksh; then 1752 + # If we have ksh, try running configure again with it. 1753 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1754 + export ORIGINAL_CONFIG_SHELL 1755 + CONFIG_SHELL=/bin/ksh 1756 + export CONFIG_SHELL 1757 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1758 + else 1759 + # Try using printf. 1760 + echo='printf %s\n' 1761 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1762 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1763 + test "X$echo_testing_string" = "X$echo_test_string"; then 1764 + # Cool, printf works 1765 + : 1766 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1767 + test "X$echo_testing_string" = 'X\t' && 1768 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1769 + test "X$echo_testing_string" = "X$echo_test_string"; then 1770 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1771 + export CONFIG_SHELL 1772 + SHELL="$CONFIG_SHELL" 1773 + export SHELL 1774 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 1775 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1776 + test "X$echo_testing_string" = 'X\t' && 1777 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1778 + test "X$echo_testing_string" = "X$echo_test_string"; then 1779 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 1780 + else 1781 + # maybe with a smaller string... 1782 + prev=: 1712 1783 1713 1784 - AC_CHECK_HEADER(libintl.h, 1714 1785 - [gt_cv_func_dgettext_libintl="no" 1715 1786 - libintl_extra_libs="" 1716 +# If no C compiler was specified, use CC. 1717 +LTCC=${LTCC-"$CC"} 1787 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1788 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1789 + then 1790 + break 1791 + fi 1792 + prev="$cmd" 1793 + done 1718 1794 1719 1795 - # … … 1742 1818 - if test "$gt_cv_func_ngettext_libc" = "yes" ; then 1743 1819 - AC_CHECK_FUNCS(bind_textdomain_codeset) 1744 - fi 1745 +# If no C compiler flags were specified, use CFLAGS. 1746 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1820 + if test "$prev" != 'sed 50q "[$]0"'; then 1821 + echo_test_string=`eval $prev` 1822 + export echo_test_string 1823 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1824 + else 1825 + # Oops. We lost completely, so just stick with echo. 1826 + echo=echo 1827 + fi 1828 fi 1829 + fi 1830 + fi 1831 +fi 1832 +fi 1747 1833 1748 1834 - # … … 1757 1843 - [AC_CHECK_LIB(intl, dgettext, 1758 1844 - gt_cv_func_dgettext_libintl=yes)])]) 1759 +# Allow CC to be a program name with arguments. 1760 +compiler=$CC 1761 +])# _LT_AC_SYS_COMPILER 1845 +# Copy echo and quote the copy suitably for passing to libtool from 1846 +# the Makefile, instead of quoting the original, which is used later. 1847 +ECHO=$echo 1848 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1849 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1850 +fi 1762 1851 1763 1852 - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then … … 1771 1860 - :,-liconv) 1772 1861 - fi 1862 +AC_SUBST(ECHO) 1863 +])])# _LT_AC_PROG_ECHO_BACKSLASH 1773 1864 1774 1865 - # … … 1783 1874 - AC_CHECK_FUNCS(bind_textdomain_codeset) 1784 1875 - LIBS="$glib_save_LIBS" 1785 +# _LT_CC_BASENAME(CC)1786 +# -------------------1787 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.1788 +AC_DEFUN([_LT_CC_BASENAME],1789 +[for cc_temp in $1""; do1790 + case $cc_temp in1791 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;1792 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;1793 + \-*) ;;1794 + *) break;;1795 + esac1796 +done1797 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`1798 +])1799 1876 1800 1877 - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then … … 1808 1885 - fi 1809 1886 - fi 1887 +# _LT_AC_LOCK 1888 +# ----------- 1889 +AC_DEFUN([_LT_AC_LOCK], 1890 +[AC_ARG_ENABLE([libtool-lock], 1891 + [AC_HELP_STRING([--disable-libtool-lock], 1892 + [avoid locking (might break parallel builds)])]) 1893 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1810 1894 1811 1895 - if test "$gt_cv_func_dgettext_libc" = "yes" \ … … 1873 1957 - fi 1874 1958 - ]) 1875 +# _LT_COMPILER_BOILERPLATE 1876 +# ------------------------ 1877 +# Check for compiler boilerplate output or warnings with 1878 +# the simple compiler test code. 1879 +AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1880 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1881 +ac_outfile=conftest.$ac_objext 1882 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1883 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1884 +_lt_compiler_boilerplate=`cat conftest.err` 1885 +$rm conftest* 1886 +])# _LT_COMPILER_BOILERPLATE 1887 1959 - 1888 1960 - if test "$gt_cv_have_gettext" = "yes" ; then 1889 1961 - AC_DEFINE(ENABLE_NLS, 1, 1890 1962 - [always defined to indicate that i18n is enabled]) 1891 1963 - fi 1892 1964 - 1893 1965 - dnl Test whether we really found GNU xgettext. 1894 1966 - if test "$XGETTEXT" != ":"; then … … 1903 1975 - fi 1904 1976 - fi 1905 +# _LT_LINKER_BOILERPLATE 1906 +# ---------------------- 1907 +# Check for linker boilerplate output or warnings with 1908 +# the simple link test code. 1909 +AC_DEFUN([_LT_LINKER_BOILERPLATE], 1910 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1911 +ac_outfile=conftest.$ac_objext 1912 +echo "$lt_simple_link_test_code" >conftest.$ac_ext 1913 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1914 +_lt_linker_boilerplate=`cat conftest.err` 1915 +$rm conftest* 1916 +])# _LT_LINKER_BOILERPLATE 1917 1977 - 1918 1978 - # We need to process the po/ directory. 1919 1979 - POSUB=po 1980 +# Some flags need to be propagated to the compiler or linker for good 1981 +# libtool support. 1982 +case $host in 1983 +ia64-*-hpux*) 1984 + # Find out which ABI we are using. 1985 + echo 'int i;' > conftest.$ac_ext 1986 + if AC_TRY_EVAL(ac_compile); then 1987 + case `/usr/bin/file conftest.$ac_objext` in 1988 + *ELF-32*) 1989 + HPUX_IA64_MODE="32" 1990 + ;; 1991 + *ELF-64*) 1992 + HPUX_IA64_MODE="64" 1993 + ;; 1994 + esac 1995 + fi 1996 + rm -rf conftest* 1997 + ;; 1998 +*-*-irix6*) 1999 + # Find out which ABI we are using. 2000 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2001 + if AC_TRY_EVAL(ac_compile); then 2002 + if test "$lt_cv_prog_gnu_ld" = yes; then 2003 + case `/usr/bin/file conftest.$ac_objext` in 2004 + *32-bit*) 2005 + LD="${LD-ld} -melf32bsmip" 2006 + ;; 2007 + *N32*) 2008 + LD="${LD-ld} -melf32bmipn32" 2009 + ;; 2010 + *64-bit*) 2011 + LD="${LD-ld} -melf64bmip" 2012 + ;; 2013 + esac 2014 + else 2015 + case `/usr/bin/file conftest.$ac_objext` in 2016 + *32-bit*) 2017 + LD="${LD-ld} -32" 2018 + ;; 2019 + *N32*) 2020 + LD="${LD-ld} -n32" 2021 + ;; 2022 + *64-bit*) 2023 + LD="${LD-ld} -64" 2024 + ;; 2025 + esac 2026 + fi 2027 + fi 2028 + rm -rf conftest* 2029 + ;; 1920 2030 1921 2031 - AC_OUTPUT_COMMANDS( … … 1923 2033 - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 1924 2034 - esac]) 1925 - 2035 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 2036 +s390*-*linux*|sparc*-*linux*) 2037 + # Find out which ABI we are using. 2038 + echo 'int i;' > conftest.$ac_ext 2039 + if AC_TRY_EVAL(ac_compile); then 2040 + case `/usr/bin/file conftest.o` in 2041 + *32-bit*) 2042 + case $host in 2043 + x86_64-*kfreebsd*-gnu) 2044 + LD="${LD-ld} -m elf_i386_fbsd" 2045 + ;; 2046 + x86_64-*linux*) 2047 + LD="${LD-ld} -m elf_i386" 2048 + ;; 2049 + ppc64-*linux*|powerpc64-*linux*) 2050 + LD="${LD-ld} -m elf32ppclinux" 2051 + ;; 2052 + s390x-*linux*) 2053 + LD="${LD-ld} -m elf_s390" 2054 + ;; 2055 + sparc64-*linux*) 2056 + LD="${LD-ld} -m elf32_sparc" 2057 + ;; 2058 + esac 2059 + ;; 2060 + *64-bit*) 2061 + case $host in 2062 + x86_64-*kfreebsd*-gnu) 2063 + LD="${LD-ld} -m elf_x86_64_fbsd" 2064 + ;; 2065 + x86_64-*linux*) 2066 + LD="${LD-ld} -m elf_x86_64" 2067 + ;; 2068 + ppc*-*linux*|powerpc*-*linux*) 2069 + LD="${LD-ld} -m elf64ppc" 2070 + ;; 2071 + s390*-*linux*) 2072 + LD="${LD-ld} -m elf64_s390" 2073 + ;; 2074 + sparc*-*linux*) 2075 + LD="${LD-ld} -m elf64_sparc" 2076 + ;; 2077 + esac 2078 + ;; 2079 + esac 2080 + fi 2081 + rm -rf conftest* 2082 + ;; 2083 1926 2084 - dnl These rules are solely for the distribution goal. While doing this 1927 2085 - dnl we only have to keep exactly one list of the available catalogs … … 1931 2089 - POFILES="$POFILES $lang.po" 1932 2090 - done 1933 - 2091 +*-*-sco3.2v5*) 2092 + # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2093 + SAVE_CFLAGS="$CFLAGS" 2094 + CFLAGS="$CFLAGS -belf" 2095 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2096 + [AC_LANG_PUSH(C) 2097 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2098 + AC_LANG_POP]) 2099 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2100 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2101 + CFLAGS="$SAVE_CFLAGS" 2102 + fi 2103 + ;; 2104 +sparc*-*solaris*) 2105 + # Find out which ABI we are using. 2106 + echo 'int i;' > conftest.$ac_ext 2107 + if AC_TRY_EVAL(ac_compile); then 2108 + case `/usr/bin/file conftest.o` in 2109 + *64-bit*) 2110 + case $lt_cv_prog_gnu_ld in 2111 + yes*) LD="${LD-ld} -m elf64_sparc" ;; 2112 + *) LD="${LD-ld} -64" ;; 2113 + esac 2114 + ;; 2115 + esac 2116 + fi 2117 + rm -rf conftest* 2118 + ;; 2119 1934 2120 - dnl Make all variables we use known to autoconf. 1935 2121 - AC_SUBST(CATALOGS) … … 1943 2129 - AC_SUBST(POFILES) 1944 2130 - AC_SUBST(POSUB) 1945 - ]) 1946 +# _LT_AC_SYS_LIBPATH_AIX 1947 +# ---------------------- 1948 +# Links a minimal program and checks the executable 1949 +# for the system default hardcoded library path. In most cases, 1950 +# this is /usr/lib:/lib, but when the MPI compilers are used 1951 +# the location of the communication and MPI libs are included too. 1952 +# If we don't find anything, use the default library path according 1953 +# to the aix ld manual. 1954 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 1955 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1956 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1957 +lt_aix_libpath_sed=' 1958 + /Import File Strings/,/^$/ { 1959 + /^0/ { 1960 + s/^0 *\(.*\)$/\1/ 1961 + p 1962 + } 1963 + }' 1964 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1965 +# Check for a 64-bit object if we didn't find anything. 1966 +if test -z "$aix_libpath"; then 1967 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1968 +fi],[]) 1969 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1970 +])# _LT_AC_SYS_LIBPATH_AIX 2131 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 2132 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 2133 + AC_CHECK_TOOL(DLLTOOL, dlltool, false) 2134 + AC_CHECK_TOOL(AS, as, false) 2135 + AC_CHECK_TOOL(OBJDUMP, objdump, false) 2136 + ;; 2137 ]) 2138 +esac 1971 2139 1972 2140 -# AM_GLIB_GNU_GETTEXT … … 1986 2154 - GLIB_LC_MESSAGES 1987 2155 - GLIB_WITH_NLS 1988 2156 - 1989 2157 - if test "$gt_cv_have_gettext" = "yes"; then 1990 2158 - if test "x$ALL_LINGUAS" = "x"; then … … 2017 2185 - AC_MSG_RESULT($LINGUAS) 2018 2186 - fi 2019 +# _LT_AC_SHELL_INIT(ARG) 2020 +# ---------------------- 2021 +AC_DEFUN([_LT_AC_SHELL_INIT], 2022 +[ifdef([AC_DIVERSION_NOTICE], 2023 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 2024 + [AC_DIVERT_PUSH(NOTICE)]) 2025 +$1 2026 +AC_DIVERT_POP 2027 +])# _LT_AC_SHELL_INIT 2187 +need_locks="$enable_libtool_lock" 2028 2188 2029 2189 - dnl Construct list of names of catalog files to be constructed. … … 2032 2192 - fi 2033 2193 - fi 2194 +])# _LT_AC_LOCK 2034 2195 2035 2196 - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly … … 2044 2205 - fi 2045 2206 - AC_SUBST(MKINSTALLDIRS) 2046 +# _LT_AC_PROG_ECHO_BACKSLASH2047 +# --------------------------2048 +# Add some code to the start of the generated configure script which2049 +# will find an echo command which doesn't interpret backslashes.2050 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],2051 +[_LT_AC_SHELL_INIT([2052 +# Check that we are running under the correct shell.2053 +SHELL=${CONFIG_SHELL-/bin/sh}2054 2207 2055 2208 - dnl Generate list of files to be processed by xgettext which will … … 2061 2214 - else 2062 2215 - posrcprefix="../$srcdir/" 2063 - fi 2216 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2217 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2218 +# ---------------------------------------------------------------- 2219 +# Check whether the given compiler option works 2220 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 2221 +[AC_REQUIRE([LT_AC_PROG_SED]) 2222 +AC_CACHE_CHECK([$1], [$2], 2223 + [$2=no 2224 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2225 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2226 + lt_compiler_flag="$3" 2227 + # Insert the option either (1) after the last *FLAGS variable, or 2228 + # (2) before a word containing "conftest.", or (3) at the end. 2229 + # Note that $ac_compile itself does not contain backslashes and begins 2230 + # with a dollar sign (not a hyphen), so the echo should work correctly. 2231 + # The option is referenced via a variable to avoid confusing sed. 2232 + lt_compile=`echo "$ac_compile" | $SED \ 2233 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2234 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2235 + -e 's:$: $lt_compiler_flag:'` 2236 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2237 + (eval "$lt_compile" 2>conftest.err) 2238 + ac_status=$? 2239 + cat conftest.err >&AS_MESSAGE_LOG_FD 2240 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2241 + if (exit $ac_status) && test -s "$ac_outfile"; then 2242 + # The compiler can only warn and ignore the option if not recognized 2243 + # So say no if there are warnings other than the usual output. 2244 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 2245 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2246 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2247 + $2=yes 2248 fi 2064 2249 - else 2065 2250 - posrcprefix="../" 2066 -fi2251 fi 2067 2252 - rm -f po/POTFILES 2068 2253 - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 2069 2254 - < $srcdir/po/POTFILES.in > po/POTFILES 2070 2255 - ]) 2071 +case X$ECHO in 2072 +X*--fallback-echo) 2073 + # Remove one level of quotation (which was required for Make). 2074 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 2075 + ;; 2076 +esac 2256 + $rm conftest* 2257 +]) 2077 2258 2078 2259 -# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) … … 2090 2271 -if test "x$CATOBJEXT" = "x.mo" ; then 2091 2272 - localedir=`eval echo "${libdir}/locale"` 2092 +echo=${ECHO-echo} 2093 +if test "X[$]1" = X--no-reexec; then 2094 + # Discard the --no-reexec flag, and continue. 2095 + shift 2096 +elif test "X[$]1" = X--fallback-echo; then 2097 + # Avoid inline document here, it may be left over 2098 + : 2099 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 2100 + # Yippee, $echo works! 2101 + : 2273 +if test x"[$]$2" = xyes; then 2274 + ifelse([$5], , :, [$5]) 2102 2275 else 2103 2276 - localedir=`eval echo "${datadir}/locale"` 2104 + # Restart under the correct shell. 2105 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 2277 + ifelse([$6], , :, [$6]) 2106 2278 fi 2107 2279 -prefix="$glib_save_prefix" … … 2110 2282 -AC_DEFINE_UNQUOTED($1, "$localedir", 2111 2283 - [Define the location where the catalogs will be installed]) 2112 -]) 2113 - 2284 +])# AC_LIBTOOL_COMPILER_OPTION 2285 + 2286 + 2287 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2288 +# [ACTION-SUCCESS], [ACTION-FAILURE]) 2289 +# ------------------------------------------------------------ 2290 +# Check whether the given compiler option works 2291 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 2292 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 2293 +AC_CACHE_CHECK([$1], [$2], 2294 + [$2=no 2295 + save_LDFLAGS="$LDFLAGS" 2296 + LDFLAGS="$LDFLAGS $3" 2297 + echo "$lt_simple_link_test_code" > conftest.$ac_ext 2298 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2299 + # The linker can only warn and ignore the option if not recognized 2300 + # So say no if there are warnings 2301 + if test -s conftest.err; then 2302 + # Append any errors to the config.log. 2303 + cat conftest.err 1>&AS_MESSAGE_LOG_FD 2304 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 2305 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2306 + if diff conftest.exp conftest.er2 >/dev/null; then 2307 + $2=yes 2308 + fi 2309 + else 2310 + $2=yes 2311 + fi 2312 + fi 2313 + $rm conftest* 2314 + LDFLAGS="$save_LDFLAGS" 2315 ]) 2316 2114 2317 -dnl 2115 2318 -dnl Now the definitions that aclocal will find … … 2119 2322 -AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 2120 2323 -])dnl 2324 +if test x"[$]$2" = xyes; then 2325 + ifelse([$4], , :, [$4]) 2326 +else 2327 + ifelse([$5], , :, [$5]) 2328 +fi 2329 +])# AC_LIBTOOL_LINKER_OPTION 2121 2330 2122 2331 -# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) … … 2135 2344 -sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 2136 2345 -fi]) 2137 +if test "X[$]1" = X--fallback-echo; then 2138 + # used as fallback echo 2139 + shift 2140 + cat <<EOF 2141 +[$]* 2142 +EOF 2143 + exit 0 2144 +fi 2145 2146 +# The HP-UX ksh and POSIX shell print the target directory to stdout 2147 +# if CDPATH is set. 2148 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2346 2347 +# AC_LIBTOOL_SYS_MAX_CMD_LEN 2348 +# -------------------------- 2349 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 2350 +[# find the maximum length of command line arguments 2351 +AC_MSG_CHECKING([the maximum length of command line arguments]) 2352 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2353 + i=0 2354 + teststring="ABCD" 2149 2355 2150 2356 -dnl GNOME_COMPILE_WARNINGS … … 2155 2361 - dnl More compiler warnings 2156 2362 - dnl ****************************** 2157 +if test -z "$ECHO"; then 2158 +if test "X${echo_test_string+set}" != Xset; then 2159 +# find a string as large as possible, as long as the shell can cope with it 2160 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 2161 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 2162 + if (echo_test_string=`eval $cmd`) 2>/dev/null && 2163 + echo_test_string=`eval $cmd` && 2164 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 2165 + then 2166 + break 2167 + fi 2168 + done 2169 +fi 2170 2363 - 2171 2364 - AC_ARG_ENABLE(compile-warnings, 2172 2365 - AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], 2173 2366 - [Turn on compiler warnings]),, 2174 2367 - [enable_compile_warnings="m4_default([$1],[yes])"]) 2175 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 2176 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 2177 + test "X$echo_testing_string" = "X$echo_test_string"; then 2178 + : 2179 +else 2180 + # The Solaris, AIX, and Digital Unix default echo programs unquote 2181 + # backslashes. This makes it impossible to quote backslashes using 2182 + # echo "$something" | sed 's/\\/\\\\/g' 2183 + # 2184 + # So, first we look for a working echo in the user's PATH. 2185 2368 - 2186 2369 - warnCFLAGS= 2187 2370 - if test "x$GCC" != xyes; then 2188 2371 - enable_compile_warnings=no 2189 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2190 + for dir in $PATH /usr/ucb; do 2191 + IFS="$lt_save_ifs" 2192 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 2193 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 2194 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 2195 + test "X$echo_testing_string" = "X$echo_test_string"; then 2196 + echo="$dir/echo" 2197 + break 2198 fi 2199 + done 2200 + IFS="$lt_save_ifs" 2201 2372 - fi 2373 - 2202 2374 - warning_flags= 2203 2375 - realsave_CFLAGS="$CFLAGS" … … 2243 2415 - AC_MSG_CHECKING(what warning flags to pass to the C compiler) 2244 2416 - AC_MSG_RESULT($warning_flags) 2245 + if test "X$echo" = Xecho; then 2246 + # We didn't find a better echo, so look for alternatives. 2247 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 2248 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 2249 + test "X$echo_testing_string" = "X$echo_test_string"; then 2250 + # This shell has a builtin print -r that does the trick. 2251 + echo='print -r' 2252 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 2253 + test "X$CONFIG_SHELL" != X/bin/ksh; then 2254 + # If we have ksh, try running configure again with it. 2255 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 2256 + export ORIGINAL_CONFIG_SHELL 2257 + CONFIG_SHELL=/bin/ksh 2258 + export CONFIG_SHELL 2259 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 2260 + else 2261 + # Try using printf. 2262 + echo='printf %s\n' 2263 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 2264 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 2265 + test "X$echo_testing_string" = "X$echo_test_string"; then 2266 + # Cool, printf works 2267 + : 2268 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2269 + test "X$echo_testing_string" = 'X\t' && 2270 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2271 + test "X$echo_testing_string" = "X$echo_test_string"; then 2272 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 2273 + export CONFIG_SHELL 2274 + SHELL="$CONFIG_SHELL" 2275 + export SHELL 2276 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 2277 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2278 + test "X$echo_testing_string" = 'X\t' && 2279 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2280 + test "X$echo_testing_string" = "X$echo_test_string"; then 2281 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 2282 + else 2283 + # maybe with a smaller string... 2284 + prev=: 2285 2417 - 2286 2418 - AC_ARG_ENABLE(iso-c, 2287 2419 - AC_HELP_STRING([--enable-iso-c], 2288 2420 - [Try to warn if code is not ISO C ]),, 2289 2421 - [enable_iso_c=no]) 2290 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 2291 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 2292 + then 2293 + break 2294 + fi 2295 + prev="$cmd" 2296 + done 2297 2422 - 2298 2423 - AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) 2299 2424 - complCFLAGS= … … 2308 2433 - *) complCFLAGS="$complCFLAGS -pedantic" ;; 2309 2434 - esac 2310 + if test "$prev" != 'sed 50q "[$]0"'; then 2311 + echo_test_string=`eval $prev` 2312 + export echo_test_string 2313 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 2314 + else 2315 + # Oops. We lost completely, so just stick with echo. 2316 + echo=echo 2317 fi 2318 + fi 2319 fi 2435 - fi 2436 - fi 2320 2437 - AC_MSG_RESULT($complCFLAGS) 2321 + fi 2322 +fi 2323 +fi 2438 + case $build_os in 2439 + msdosdjgpp*) 2440 + # On DJGPP, this test can blow up pretty badly due to problems in libc 2441 + # (any single argument exceeding 2000 bytes causes a buffer overrun 2442 + # during glob expansion). Even if it were fixed, the result of this 2443 + # check would be larger than it should be. 2444 + lt_cv_sys_max_cmd_len=12288; # 12K is about right 2445 + ;; 2324 2446 2325 2447 - WARN_CFLAGS="$warning_flags $complCFLAGS" 2326 2448 - AC_SUBST(WARN_CFLAGS) 2327 2449 -]) 2328 + # Copy echo and quote the copy suitably for passing to libtool from2329 + # the Makefile, instead of quoting the original, which is used later.2330 + ECHO=$echo2331 + if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then2332 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"2333 + fi2450 + gnu*) 2451 + # Under GNU Hurd, this test is not required because there is 2452 + # no limit to the length of command line arguments. 2453 + # Libtool will interpret -1 as no limit whatsoever 2454 + lt_cv_sys_max_cmd_len=-1; 2455 + ;; 2334 2456 2335 2457 -dnl For C++, do basically the same thing. 2336 +AC_SUBST(ECHO) 2337 +])])# _LT_AC_PROG_ECHO_BACKSLASH 2458 + cygwin* | mingw*) 2459 + # On Win9x/ME, this test blows up -- it succeeds, but takes 2460 + # about 5 minutes as the teststring grows exponentially. 2461 + # Worse, since 9x/ME are not pre-emptively multitasking, 2462 + # you end up with a "frozen" computer, even though with patience 2463 + # the test eventually succeeds (with a max line length of 256k). 2464 + # Instead, let's just punt: use the minimum linelength reported by 2465 + # all of the supported platforms: 8192 (on NT/2K/XP). 2466 + lt_cv_sys_max_cmd_len=8192; 2467 + ;; 2338 2468 2339 2469 -AC_DEFUN([GNOME_CXX_WARNINGS],[ … … 2342 2472 - [Turn on compiler warnings.]),, 2343 2473 - [enable_cxx_warnings="m4_default([$1],[minimum])"]) 2344 2474 - 2345 2475 - AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) 2346 2476 - warnCXXFLAGS= … … 2354 2484 - *) warnCXXFLAGS="-Wall -Wno-unused" ;; 2355 2485 - esac 2356 +# _LT_AC_LOCK 2357 +# ----------- 2358 +AC_DEFUN([_LT_AC_LOCK], 2359 +[AC_ARG_ENABLE([libtool-lock], 2360 + [AC_HELP_STRING([--disable-libtool-lock], 2361 + [avoid locking (might break parallel builds)])]) 2362 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2486 + amigaos*) 2487 + # On AmigaOS with pdksh, this test takes hours, literally. 2488 + # So we just punt and use a minimum line length of 8192. 2489 + lt_cv_sys_max_cmd_len=8192; 2490 + ;; 2363 2491 2364 2492 - ## -W is not all that useful. And it cannot be controlled … … 2367 2495 - warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" 2368 2496 - fi 2369 - fi2370 +# Some flags need to be propagated to the compiler or linker for good2371 +# libtool support.2372 +case $host in2373 +ia64-*-hpux*)2374 + # Find out which ABI we are using.2375 + echo 'int i;' > conftest.$ac_ext2376 + if AC_TRY_EVAL(ac_compile); then2377 + case `/usr/bin/file conftest.$ac_objext` in2378 + *ELF-32*)2379 + HPUX_IA64_MODE="32"2380 + ;;2381 + *ELF-64*)2382 + HPUX_IA64_MODE="64"2383 + ;;2384 + esac2385 fi2386 - AC_MSG_RESULT($warnCXXFLAGS)2387 -2388 - AC_ARG_ENABLE(iso-cxx,2389 - AC_HELP_STRING([--enable-iso-cxx],2390 - [Try to warn if code is not ISO C++ ]),,2391 - [enable_iso_cxx=no])2392 + rm -rf conftest*2393 + ;;2394 +*-*-irix6*)2395 + # Find out which ABI we are using.2396 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext2397 + if AC_TRY_EVAL(ac_compile); then2398 + if test "$lt_cv_prog_gnu_ld" = yes; then2399 + case `/usr/bin/file conftest.$ac_objext` in2400 + *32-bit*)2401 + LD="${LD-ld} -melf32bsmip"2402 + ;;2403 + *N32*)2404 + LD="${LD-ld} -melf32bmipn32"2405 + ;;2406 + *64-bit*)2407 + LD="${LD-ld} -melf64bmip"2408 + ;;2409 + esac2410 + else2411 + case `/usr/bin/file conftest.$ac_objext` in2412 + *32-bit*)2413 + LD="${LD-ld} -32"2414 + ;;2415 + *N32*)2416 + LD="${LD-ld} -n32"2417 + ;;2418 + *64-bit*)2419 + LD="${LD-ld} -64"2420 + ;;2421 + esac2422 + fi2423 + fi2424 + rm -rf conftest*2425 + ;;2426 2427 - AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)2428 - complCXXFLAGS=2429 - if test "x$enable_iso_cxx" != "xno"; then2430 - if test "x$GXX" = "xyes"; then2431 - case " $CXXFLAGS " in2432 - *[\ \ ]-ansi[\ \ ]*) ;;2433 - *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;2434 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \2435 +s390*-*linux*|sparc*-*linux*)2436 + # Find out which ABI we are using.2437 + echo 'int i;' > conftest.$ac_ext2438 + if AC_TRY_EVAL(ac_compile); then2439 + case `/usr/bin/file conftest.o` in2440 + *32-bit*)2441 + case $host in2442 + x86_64-*kfreebsd*-gnu)2443 + LD="${LD-ld} -m elf_i386_fbsd"2444 + ;;2445 + x86_64-*linux*)2446 + LD="${LD-ld} -m elf_i386"2447 + ;;2448 + ppc64-*linux*|powerpc64-*linux*)2449 + LD="${LD-ld} -m elf32ppclinux"2450 + ;;2451 + s390x-*linux*)2452 + LD="${LD-ld} -m elf_s390"2453 + ;;2454 + sparc64-*linux*)2455 + LD="${LD-ld} -m elf32_sparc"2456 + ;;2457 esac2458 -2459 - case " $CXXFLAGS " in2460 - *[\ \ ]-pedantic[\ \ ]*) ;;2461 - *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;2462 + ;;2463 + *64-bit*)2464 + case $host in2465 + x86_64-*kfreebsd*-gnu)2466 + LD="${LD-ld} -m elf_x86_64_fbsd"2467 + ;;2468 + x86_64-*linux*)2469 + LD="${LD-ld} -m elf_x86_64"2470 + ;;2471 + ppc*-*linux*|powerpc*-*linux*)2472 + LD="${LD-ld} -m elf64ppc"2473 + ;;2474 + s390*-*linux*)2475 + LD="${LD-ld} -m elf64_s390"2476 + ;;2477 + sparc*-*linux*)2478 + LD="${LD-ld} -m elf64_sparc"2479 + ;;2480 esac2481 - fi2482 - fi2483 - AC_MSG_RESULT($complCXXFLAGS)2484 + ;;2485 + esac2486 + fi2487 + rm -rf conftest*2488 + ;;2489 2490 - WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"2491 - AC_SUBST(WARN_CXXFLAGS)2492 -])2493 +*-*-sco3.2v5*)2494 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.2495 + SAVE_CFLAGS="$CFLAGS"2496 + CFLAGS="$CFLAGS -belf"2497 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,2498 + [AC_LANG_PUSH(C)2499 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])2500 + AC_LANG_POP])2501 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then2502 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf2503 + CFLAGS="$SAVE_CFLAGS"2504 + fi2505 + ;;2506 +sparc*-*solaris*)2507 + # Find out which ABI we are using.2508 + echo 'int i;' > conftest.$ac_ext2509 + if AC_TRY_EVAL(ac_compile); then2510 + case `/usr/bin/file conftest.o` in2511 + *64-bit*)2512 + case $lt_cv_prog_gnu_ld in2513 + yes*) LD="${LD-ld} -m elf64_sparc" ;;2514 + *) LD="${LD-ld} -64" ;;2515 + esac2516 + ;;2517 + esac2518 + fi2519 + rm -rf conftest*2520 + ;;2521 2522 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-2523 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],2524 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)2525 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)2526 + AC_CHECK_TOOL(AS, as, false)2527 + AC_CHECK_TOOL(OBJDUMP, objdump, false)2528 + ;;2529 + ])2530 +esac2531 2532 -# serial 48 AC_PROG_LIBTOOL2533 +need_locks="$enable_libtool_lock"2534 2535 +])# _LT_AC_LOCK2536 2537 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)2538 -# -----------------------------------------------------------2539 -# If this macro is not defined by Autoconf, define it here.2540 -m4_ifdef([AC_PROVIDE_IFELSE],2541 - [],2542 - [m4_define([AC_PROVIDE_IFELSE],2543 - [m4_ifdef([AC_PROVIDE_$1],2544 - [$2], [$3])])])2545 2546 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,2547 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])2548 +# ----------------------------------------------------------------2549 +# Check whether the given compiler option works2550 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],2551 +[AC_REQUIRE([LT_AC_PROG_SED])2552 +AC_CACHE_CHECK([$1], [$2],2553 + [$2=no2554 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])2555 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext2556 + lt_compiler_flag="$3"2557 + # Insert the option either (1) after the last *FLAGS variable, or2558 + # (2) before a word containing "conftest.", or (3) at the end.2559 + # Note that $ac_compile itself does not contain backslashes and begins2560 + # with a dollar sign (not a hyphen), so the echo should work correctly.2561 + # The option is referenced via a variable to avoid confusing sed.2562 + lt_compile=`echo "$ac_compile" | $SED \2563 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \2564 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \2565 + -e 's:$: $lt_compiler_flag:'`2566 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)2567 + (eval "$lt_compile" 2>conftest.err)2568 + ac_status=$?2569 + cat conftest.err >&AS_MESSAGE_LOG_FD2570 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD2571 + if (exit $ac_status) && test -s "$ac_outfile"; then2572 + # The compiler can only warn and ignore the option if not recognized2573 + # So say no if there are warnings other than the usual output.2574 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp2575 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er22576 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then2577 + $2=yes2578 + fi2579 + fi2580 + $rm conftest*2581 +])2582 2583 -# AC_PROG_LIBTOOL2584 -# ---------------2585 -AC_DEFUN([AC_PROG_LIBTOOL],2586 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl2587 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX2588 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.2589 - AC_PROVIDE_IFELSE([AC_PROG_CXX],2590 - [AC_LIBTOOL_CXX],2591 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX2592 - ])])2593 -dnl And a similar setup for Fortran 77 support2594 - AC_PROVIDE_IFELSE([AC_PROG_F77],2595 - [AC_LIBTOOL_F77],2596 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F772597 -])])2598 +if test x"[$]$2" = xyes; then2599 + ifelse([$5], , :, [$5])2600 +else2601 + ifelse([$6], , :, [$6])2602 +fi2603 +])# AC_LIBTOOL_COMPILER_OPTION2604 2605 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.2606 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run2607 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.2608 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],2609 - [AC_LIBTOOL_GCJ],2610 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],2611 - [AC_LIBTOOL_GCJ],2612 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],2613 - [AC_LIBTOOL_GCJ],2614 - [ifdef([AC_PROG_GCJ],2615 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])2616 - ifdef([A][M_PROG_GCJ],2617 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])2618 - ifdef([LT_AC_PROG_GCJ],2619 - [define([LT_AC_PROG_GCJ],2620 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])2621 -])])# AC_PROG_LIBTOOL2622 2623 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,2624 +# [ACTION-SUCCESS], [ACTION-FAILURE])2625 +# ------------------------------------------------------------2626 +# Check whether the given compiler option works2627 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],2628 +[AC_REQUIRE([LT_AC_PROG_SED])dnl2629 +AC_CACHE_CHECK([$1], [$2],2630 + [$2=no2631 + save_LDFLAGS="$LDFLAGS"2632 + LDFLAGS="$LDFLAGS $3"2633 + echo "$lt_simple_link_test_code" > conftest.$ac_ext2634 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then2635 + # The linker can only warn and ignore the option if not recognized2636 + # So say no if there are warnings2637 + if test -s conftest.err; then2638 + # Append any errors to the config.log.2639 + cat conftest.err 1>&AS_MESSAGE_LOG_FD2640 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp2641 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er22642 + if diff conftest.exp conftest.er2 >/dev/null; then2643 + $2=yes2644 + fi2645 + else2646 + $2=yes2647 + fi2648 + fi2649 + $rm conftest*2650 + LDFLAGS="$save_LDFLAGS"2651 +])2652 2653 -# _AC_PROG_LIBTOOL2654 -# ----------------2655 -AC_DEFUN([_AC_PROG_LIBTOOL],2656 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl2657 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl2658 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl2659 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl2660 +if test x"[$]$2" = xyes; then2661 + ifelse([$4], , :, [$4])2662 +else2663 + ifelse([$5], , :, [$5])2664 +fi2665 +])# AC_LIBTOOL_LINKER_OPTION2666 2667 -# This can be used to rebuild libtool when needed2668 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"2669 2670 -# Always use our own libtool.2671 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'2672 -AC_SUBST(LIBTOOL)dnl2673 +# AC_LIBTOOL_SYS_MAX_CMD_LEN2674 +# --------------------------2675 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],2676 +[# find the maximum length of command line arguments2677 +AC_MSG_CHECKING([the maximum length of command line arguments])2678 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl2679 + i=02680 + teststring="ABCD"2681 2682 -# Prevent multiple expansion2683 -define([AC_PROG_LIBTOOL], [])2684 -])# _AC_PROG_LIBTOOL2685 + case $build_os in2686 + msdosdjgpp*)2687 + # On DJGPP, this test can blow up pretty badly due to problems in libc2688 + # (any single argument exceeding 2000 bytes causes a buffer overrun2689 + # during glob expansion). Even if it were fixed, the result of this2690 + # check would be larger than it should be.2691 + lt_cv_sys_max_cmd_len=12288; # 12K is about right2692 + ;;2693 2694 + gnu*)2695 + # Under GNU Hurd, this test is not required because there is2696 + # no limit to the length of command line arguments.2697 + # Libtool will interpret -1 as no limit whatsoever2698 + lt_cv_sys_max_cmd_len=-1;2699 + ;;2700 2701 -# AC_LIBTOOL_SETUP2702 -# ----------------2703 -AC_DEFUN([AC_LIBTOOL_SETUP],2704 -[AC_PREREQ(2.50)dnl2705 -AC_REQUIRE([AC_ENABLE_SHARED])dnl2706 -AC_REQUIRE([AC_ENABLE_STATIC])dnl2707 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl2708 -AC_REQUIRE([AC_CANONICAL_HOST])dnl2709 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl2710 -AC_REQUIRE([AC_PROG_CC])dnl2711 -AC_REQUIRE([AC_PROG_LD])dnl2712 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl2713 -AC_REQUIRE([AC_PROG_NM])dnl2714 + cygwin* | mingw*)2715 + # On Win9x/ME, this test blows up -- it succeeds, but takes2716 + # about 5 minutes as the teststring grows exponentially.2717 + # Worse, since 9x/ME are not pre-emptively multitasking,2718 + # you end up with a "frozen" computer, even though with patience2719 + # the test eventually succeeds (with a max line length of 256k).2720 + # Instead, let's just punt: use the minimum linelength reported by2721 + # all of the supported platforms: 8192 (on NT/2K/XP).2722 + lt_cv_sys_max_cmd_len=8192;2723 + ;;2724 2725 -AC_REQUIRE([AC_PROG_LN_S])dnl2726 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl2727 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!2728 -AC_REQUIRE([AC_OBJEXT])dnl2729 -AC_REQUIRE([AC_EXEEXT])dnl2730 -dnl2731 + amigaos*)2732 + # On AmigaOS with pdksh, this test takes hours, literally.2733 + # So we just punt and use a minimum line length of 8192.2734 + lt_cv_sys_max_cmd_len=8192;2735 + ;;2736 2737 -AC_LIBTOOL_SYS_MAX_CMD_LEN2738 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE2739 -AC_LIBTOOL_OBJDIR2740 2497 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2741 2498 + # This has been around since 386BSD, at least. Likely further. … … 2746 2503 + else 2747 2504 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2748 + fi 2505 fi 2506 - fi 2507 - AC_MSG_RESULT($warnCXXFLAGS) 2508 - 2509 - AC_ARG_ENABLE(iso-cxx, 2510 - AC_HELP_STRING([--enable-iso-cxx], 2511 - [Try to warn if code is not ISO C++ ]),, 2512 - [enable_iso_cxx=no]) 2513 - 2514 - AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) 2515 - complCXXFLAGS= 2516 - if test "x$enable_iso_cxx" != "xno"; then 2517 - if test "x$GXX" = "xyes"; then 2518 - case " $CXXFLAGS " in 2519 - *[\ \ ]-ansi[\ \ ]*) ;; 2520 - *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; 2521 - esac 2749 2522 + # And add a safety zone 2750 2523 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` … … 2752 2525 + ;; 2753 2526 2754 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 2755 -_LT_AC_PROG_ECHO_BACKSLASH 2527 - case " $CXXFLAGS " in 2528 - *[\ \ ]-pedantic[\ \ ]*) ;; 2529 - *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; 2530 - esac 2531 - fi 2532 - fi 2533 - AC_MSG_RESULT($complCXXFLAGS) 2756 2534 + interix*) 2757 2535 + # We know the value 262144 and hardcode it with a safety zone (like BSD) … … 2759 2537 + ;; 2760 2538 2761 -case $host_os in 2762 -aix3*) 2763 - # AIX sometimes has problems with the GCC collect2 program. For some 2764 - # reason, if we set the COLLECT_NAMES environment variable, the problems 2765 - # vanish in a puff of smoke. 2766 - if test "X${COLLECT_NAMES+set}" != Xset; then 2767 - COLLECT_NAMES= 2768 - export COLLECT_NAMES 2769 - fi 2770 - ;; 2771 -esac 2772 - 2773 -# Sed substitution that helps us do robust quoting. It backslashifies 2774 -# metacharacters that are still active within double-quoted strings. 2775 -Xsed='sed -e 1s/^X//' 2776 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 2777 - 2778 -# Same as above, but do not quote variable references. 2779 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 2780 - 2781 -# Sed substitution to delay expansion of an escaped shell variable in a 2782 -# double_quote_subst'ed string. 2783 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2784 - 2785 -# Sed substitution to avoid accidental globbing in evaled expressions 2786 -no_glob_subst='s/\*/\\\*/g' 2787 - 2788 -# Constants: 2789 -rm="rm -f" 2790 - 2791 -# Global variables: 2792 -default_ofile=libtool 2793 -can_build_shared=yes 2794 - 2795 -# All known linkers require a `.a' archive for static linking (except MSVC, 2796 -# which needs '.lib'). 2797 -libext=a 2798 -ltmain="$ac_aux_dir/ltmain.sh" 2799 -ofile="$default_ofile" 2800 -with_gnu_ld="$lt_cv_prog_gnu_ld" 2801 - 2802 -AC_CHECK_TOOL(AR, ar, false) 2803 -AC_CHECK_TOOL(RANLIB, ranlib, :) 2804 -AC_CHECK_TOOL(STRIP, strip, :) 2805 - 2806 -old_CC="$CC" 2807 -old_CFLAGS="$CFLAGS" 2808 - 2809 -# Set sane defaults for various variables 2810 -test -z "$AR" && AR=ar 2811 -test -z "$AR_FLAGS" && AR_FLAGS=cru 2812 -test -z "$AS" && AS=as 2813 -test -z "$CC" && CC=cc 2814 -test -z "$LTCC" && LTCC=$CC 2815 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2816 -test -z "$DLLTOOL" && DLLTOOL=dlltool 2817 -test -z "$LD" && LD=ld 2818 -test -z "$LN_S" && LN_S="ln -s" 2819 -test -z "$MAGIC_CMD" && MAGIC_CMD=file 2820 -test -z "$NM" && NM=nm 2821 -test -z "$SED" && SED=sed 2822 -test -z "$OBJDUMP" && OBJDUMP=objdump 2823 -test -z "$RANLIB" && RANLIB=: 2824 -test -z "$STRIP" && STRIP=: 2825 -test -z "$ac_objext" && ac_objext=o 2826 - 2827 -# Determine commands to create old-style static archives. 2828 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 2829 -old_postinstall_cmds='chmod 644 $oldlib' 2830 -old_postuninstall_cmds= 2831 - 2832 -if test -n "$RANLIB"; then 2833 - case $host_os in 2834 - openbsd*) 2835 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 2539 - WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" 2540 - AC_SUBST(WARN_CXXFLAGS) 2836 2541 + osf*) 2837 2542 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure … … 2857 2562 + lt_cv_sys_max_cmd_len=32768 2858 2563 + fi 2859 ;; 2860 *) 2861 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 2564 + ;; 2565 + *) 2862 2566 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2863 2567 + if test -n "$lt_cv_sys_max_cmd_len"; then … … 2881 2585 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2882 2586 + fi 2883 ;; 2884 esac 2885 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 2886 +]) 2587 + ;; 2588 + esac 2589 ]) 2590 - 2591 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2592 - 2593 -# serial 48 AC_PROG_LIBTOOL 2887 2594 +if test -n $lt_cv_sys_max_cmd_len ; then 2888 2595 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2889 2596 +else 2890 2597 + AC_MSG_RESULT(none) 2891 fi2598 +fi 2892 2599 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN 2893 2600 2894 -_LT_CC_BASENAME([$compiler]) 2895 2896 -# Only perform the check for file, if the check method requires it 2897 -case $deplibs_check_method in 2898 -file_magic*) 2899 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2900 - AC_PATH_MAGIC 2901 - fi 2902 - ;; 2903 -esac 2601 2602 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 2603 -# ----------------------------------------------------------- 2604 -# If this macro is not defined by Autoconf, define it here. 2605 -m4_ifdef([AC_PROVIDE_IFELSE], 2606 - [], 2607 - [m4_define([AC_PROVIDE_IFELSE], 2608 - [m4_ifdef([AC_PROVIDE_$1], 2609 - [$2], [$3])])]) 2904 2610 +# _LT_AC_CHECK_DLFCN 2905 2611 +# ------------------ … … 2908 2614 +])# _LT_AC_CHECK_DLFCN 2909 2615 2910 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 2911 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 2912 -enable_win32_dll=yes, enable_win32_dll=no) 2913 2914 -AC_ARG_ENABLE([libtool-lock], 2915 - [AC_HELP_STRING([--disable-libtool-lock], 2916 - [avoid locking (might break parallel builds)])]) 2917 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2616 2617 -# AC_PROG_LIBTOOL 2618 -# --------------- 2619 -AC_DEFUN([AC_PROG_LIBTOOL], 2620 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 2621 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 2622 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 2623 - AC_PROVIDE_IFELSE([AC_PROG_CXX], 2624 - [AC_LIBTOOL_CXX], 2625 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 2626 - ])]) 2627 -dnl And a similar setup for Fortran 77 support 2628 - AC_PROVIDE_IFELSE([AC_PROG_F77], 2629 - [AC_LIBTOOL_F77], 2630 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 2631 -])]) 2918 2632 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2919 2633 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) … … 2930 2644 +#include "confdefs.h" 2931 2645 2932 -AC_ARG_WITH([pic], 2933 - [AC_HELP_STRING([--with-pic], 2934 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 2935 - [pic_mode="$withval"], 2936 - [pic_mode=default]) 2937 -test -z "$pic_mode" && pic_mode=default 2646 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 2647 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 2648 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 2649 - AC_PROVIDE_IFELSE([AC_PROG_GCJ], 2650 - [AC_LIBTOOL_GCJ], 2651 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 2652 - [AC_LIBTOOL_GCJ], 2653 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 2654 - [AC_LIBTOOL_GCJ], 2655 - [ifdef([AC_PROG_GCJ], 2656 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 2657 - ifdef([A][M_PROG_GCJ], 2658 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 2659 - ifdef([LT_AC_PROG_GCJ], 2660 - [define([LT_AC_PROG_GCJ], 2661 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 2662 -])])# AC_PROG_LIBTOOL 2938 2663 +#if HAVE_DLFCN_H 2939 2664 +#include <dlfcn.h> 2940 2665 +#endif 2941 2666 2942 -# Use C for the default configuration in the libtool script2943 -tagname=2944 -AC_LIBTOOL_LANG_C_CONFIG2945 -_LT_AC_TAGCONFIG2946 -])# AC_LIBTOOL_SETUP2947 2667 +#include <stdio.h> 2948 2668 2669 -# _AC_PROG_LIBTOOL 2670 -# ---------------- 2671 -AC_DEFUN([_AC_PROG_LIBTOOL], 2672 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 2673 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 2674 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 2675 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 2949 2676 +#ifdef RTLD_GLOBAL 2950 2677 +# define LT_DLGLOBAL RTLD_GLOBAL … … 2957 2684 +#endif 2958 2685 2959 -# _LT_AC_SYS_COMPILER 2960 -# ------------------- 2961 -AC_DEFUN([_LT_AC_SYS_COMPILER], 2962 -[AC_REQUIRE([AC_PROG_CC])dnl 2686 -# This can be used to rebuild libtool when needed 2687 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 2963 2688 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2964 2689 + find out it does not work in some platform. */ … … 2983 2708 +#endif 2984 2709 2985 -# If no C compiler was specified, use CC. 2986 -LTCC=${LTCC-"$CC"} 2710 -# Always use our own libtool. 2711 -LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2712 -AC_SUBST(LIBTOOL)dnl 2987 2713 +#ifdef __cplusplus 2988 2714 +extern "C" void exit (int); 2989 2715 +#endif 2990 2716 2991 -# If no C compiler flags were specified, use CFLAGS. 2992 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2717 -# Prevent multiple expansion 2718 -define([AC_PROG_LIBTOOL], []) 2719 -])# _AC_PROG_LIBTOOL 2993 2720 +void fnord() { int i=42;} 2994 2721 +int main () … … 2997 2724 + int status = $lt_dlunknown; 2998 2725 2999 -# Allow CC to be a program name with arguments.3000 -compiler=$CC3001 -])# _LT_AC_SYS_COMPILER3002 2726 + if (self) 3003 2727 + { … … 3009 2733 + puts (dlerror ()); 3010 2734 2735 -# AC_LIBTOOL_SETUP 2736 -# ---------------- 2737 -AC_DEFUN([AC_LIBTOOL_SETUP], 2738 -[AC_PREREQ(2.50)dnl 2739 -AC_REQUIRE([AC_ENABLE_SHARED])dnl 2740 -AC_REQUIRE([AC_ENABLE_STATIC])dnl 2741 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 2742 -AC_REQUIRE([AC_CANONICAL_HOST])dnl 2743 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2744 -AC_REQUIRE([AC_PROG_CC])dnl 2745 -AC_REQUIRE([AC_PROG_LD])dnl 2746 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 2747 -AC_REQUIRE([AC_PROG_NM])dnl 3011 2748 + exit (status); 3012 2749 +}] … … 3028 2765 +])# _LT_AC_TRY_DLOPEN_SELF 3029 2766 3030 -# _LT_CC_BASENAME(CC) 3031 -# ------------------- 3032 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 3033 -AC_DEFUN([_LT_CC_BASENAME], 3034 -[for cc_temp in $1""; do 3035 - case $cc_temp in 3036 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 3037 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 3038 - \-*) ;; 3039 - *) break;; 3040 - esac 3041 -done 3042 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 3043 -]) 3044 2767 -AC_REQUIRE([AC_PROG_LN_S])dnl 2768 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 2769 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 2770 -AC_REQUIRE([AC_OBJEXT])dnl 2771 -AC_REQUIRE([AC_EXEEXT])dnl 2772 -dnl 2773 2774 -AC_LIBTOOL_SYS_MAX_CMD_LEN 2775 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 2776 -AC_LIBTOOL_OBJDIR 3045 2777 +# AC_LIBTOOL_DLOPEN_SELF 3046 2778 +# ---------------------- … … 3055 2787 + lt_cv_dlopen_libs= 3056 2788 3057 -# _LT_COMPILER_BOILERPLATE 3058 -# ------------------------ 3059 -# Check for compiler boilerplate output or warnings with 3060 -# the simple compiler test code. 3061 -AC_DEFUN([_LT_COMPILER_BOILERPLATE], 3062 -[ac_outfile=conftest.$ac_objext 3063 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext 3064 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3065 -_lt_compiler_boilerplate=`cat conftest.err` 3066 -$rm conftest* 3067 -])# _LT_COMPILER_BOILERPLATE 2789 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 2790 -_LT_AC_PROG_ECHO_BACKSLASH 3068 2791 + case $host_os in 3069 2792 + beos*) … … 3073 2796 + ;; 3074 2797 2798 -case $host_os in 2799 -aix3*) 2800 - # AIX sometimes has problems with the GCC collect2 program. For some 2801 - # reason, if we set the COLLECT_NAMES environment variable, the problems 2802 - # vanish in a puff of smoke. 2803 - if test "X${COLLECT_NAMES+set}" != Xset; then 2804 - COLLECT_NAMES= 2805 - export COLLECT_NAMES 2806 - fi 2807 - ;; 2808 -esac 3075 2809 + mingw* | pw32*) 3076 2810 + lt_cv_dlopen="LoadLibrary" … … 3078 2812 + ;; 3079 2813 3080 -# _LT_LINKER_BOILERPLATE 3081 -# ---------------------- 3082 -# Check for linker boilerplate output or warnings with 3083 -# the simple link test code. 3084 -AC_DEFUN([_LT_LINKER_BOILERPLATE], 3085 -[ac_outfile=conftest.$ac_objext 3086 -printf "$lt_simple_link_test_code" >conftest.$ac_ext 3087 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3088 -_lt_linker_boilerplate=`cat conftest.err` 3089 -$rm conftest* 3090 -])# _LT_LINKER_BOILERPLATE 2814 -# Sed substitution that helps us do robust quoting. It backslashifies 2815 -# metacharacters that are still active within double-quoted strings. 2816 -Xsed='sed -e 1s/^X//' 2817 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 3091 2818 + cygwin*) 3092 2819 + lt_cv_dlopen="dlopen" … … 3094 2821 + ;; 3095 2822 2823 -# Same as above, but do not quote variable references. 2824 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 3096 2825 + darwin*) 3097 2826 + # if libdl is installed we need to link against it … … 3104 2833 + ;; 3105 2834 3106 -# _LT_AC_SYS_LIBPATH_AIX 3107 -# ---------------------- 3108 -# Links a minimal program and checks the executable 3109 -# for the system default hardcoded library path. In most cases, 3110 -# this is /usr/lib:/lib, but when the MPI compilers are used 3111 -# the location of the communication and MPI libs are included too. 3112 -# If we don't find anything, use the default library path according 3113 -# to the aix ld manual. 3114 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 3115 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3116 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 3117 -}'` 3118 -# Check for a 64-bit object if we didn't find anything. 3119 -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; } 3120 -}'`; fi],[]) 3121 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3122 -])# _LT_AC_SYS_LIBPATH_AIX 2835 -# Sed substitution to delay expansion of an escaped shell variable in a 2836 -# double_quote_subst'ed string. 2837 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3123 2838 + *) 3124 2839 + AC_CHECK_FUNC([shl_load], … … 3142 2857 + esac 3143 2858 2859 -# Sed substitution to avoid accidental globbing in evaled expressions 2860 -no_glob_subst='s/\*/\\\*/g' 3144 2861 + if test "x$lt_cv_dlopen" != xno; then 3145 2862 + enable_dlopen=yes … … 3148 2865 + fi 3149 2866 3150 -# _LT_AC_SHELL_INIT(ARG) 3151 -# ---------------------- 3152 -AC_DEFUN([_LT_AC_SHELL_INIT], 3153 -[ifdef([AC_DIVERSION_NOTICE], 3154 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 3155 - [AC_DIVERT_PUSH(NOTICE)]) 3156 -$1 3157 -AC_DIVERT_POP 3158 -])# _LT_AC_SHELL_INIT 2867 -# Constants: 2868 -rm="rm -f" 3159 2869 + case $lt_cv_dlopen in 3160 2870 + dlopen) … … 3162 2872 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 3163 2873 2874 -# Global variables: 2875 -default_ofile=libtool 2876 -can_build_shared=yes 3164 2877 + save_LDFLAGS="$LDFLAGS" 3165 2878 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 3166 2879 3167 -# _LT_AC_PROG_ECHO_BACKSLASH 3168 -# -------------------------- 3169 -# Add some code to the start of the generated configure script which 3170 -# will find an echo command which doesn't interpret backslashes. 3171 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 3172 -[_LT_AC_SHELL_INIT([ 3173 -# Check that we are running under the correct shell. 3174 -SHELL=${CONFIG_SHELL-/bin/sh} 2880 -# All known linkers require a `.a' archive for static linking (except MSVC, 2881 -# which needs '.lib'). 2882 -libext=a 2883 -ltmain="$ac_aux_dir/ltmain.sh" 2884 -ofile="$default_ofile" 2885 -with_gnu_ld="$lt_cv_prog_gnu_ld" 3175 2886 + save_LIBS="$LIBS" 3176 2887 + LIBS="$lt_cv_dlopen_libs $LIBS" 3177 2888 3178 -case X$ECHO in 3179 -X*--fallback-echo) 3180 - # Remove one level of quotation (which was required for Make). 3181 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 3182 - ;; 3183 -esac 2889 -AC_CHECK_TOOL(AR, ar, false) 2890 -AC_CHECK_TOOL(RANLIB, ranlib, :) 2891 -AC_CHECK_TOOL(STRIP, strip, :) 3184 2892 + AC_CACHE_CHECK([whether a program can dlopen itself], 3185 2893 + lt_cv_dlopen_self, [dnl … … 3189 2897 + ]) 3190 2898 3191 -echo=${ECHO-echo} 3192 -if test "X[$]1" = X--no-reexec; then 3193 - # Discard the --no-reexec flag, and continue. 3194 - shift 3195 -elif test "X[$]1" = X--fallback-echo; then 3196 - # Avoid inline document here, it may be left over 3197 - : 3198 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 3199 - # Yippee, $echo works! 3200 - : 3201 -else 3202 - # Restart under the correct shell. 3203 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 3204 -fi 2899 -old_CC="$CC" 2900 -old_CFLAGS="$CFLAGS" 3205 2901 + if test "x$lt_cv_dlopen_self" = xyes; then 3206 2902 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" … … 3213 2909 + fi 3214 2910 3215 -if test "X[$]1" = X--fallback-echo; then 3216 - # used as fallback echo 3217 - shift 3218 - cat <<EOF 3219 -[$]* 3220 -EOF 3221 - exit 0 3222 -fi 2911 -# Set sane defaults for various variables 2912 -test -z "$AR" && AR=ar 2913 -test -z "$AR_FLAGS" && AR_FLAGS=cru 2914 -test -z "$AS" && AS=as 2915 -test -z "$CC" && CC=cc 2916 -test -z "$LTCC" && LTCC=$CC 2917 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2918 -test -z "$DLLTOOL" && DLLTOOL=dlltool 2919 -test -z "$LD" && LD=ld 2920 -test -z "$LN_S" && LN_S="ln -s" 2921 -test -z "$MAGIC_CMD" && MAGIC_CMD=file 2922 -test -z "$NM" && NM=nm 2923 -test -z "$SED" && SED=sed 2924 -test -z "$OBJDUMP" && OBJDUMP=objdump 2925 -test -z "$RANLIB" && RANLIB=: 2926 -test -z "$STRIP" && STRIP=: 2927 -test -z "$ac_objext" && ac_objext=o 3223 2928 + CPPFLAGS="$save_CPPFLAGS" 3224 2929 + LDFLAGS="$save_LDFLAGS" … … 3227 2932 + esac 3228 2933 3229 -# The HP-UX ksh and POSIX shell print the target directory to stdout 3230 -# if CDPATH is set. 3231 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2934 -# Determine commands to create old-style static archives. 2935 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 2936 -old_postinstall_cmds='chmod 644 $oldlib' 2937 -old_postuninstall_cmds= 3232 2938 + case $lt_cv_dlopen_self in 3233 2939 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; … … 3235 2941 + esac 3236 2942 3237 -if test -z "$ECHO"; then 3238 -if test "X${echo_test_string+set}" != Xset; then 3239 -# find a string as large as possible, as long as the shell can cope with it 3240 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 3241 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 3242 - if (echo_test_string=`eval $cmd`) 2>/dev/null && 3243 - echo_test_string=`eval $cmd` && 3244 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 3245 - then 3246 - break 3247 - fi 3248 - done 2943 -if test -n "$RANLIB"; then 2944 - case $host_os in 2945 - openbsd*) 2946 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 2947 - ;; 2948 - *) 2949 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 2950 - ;; 3249 2951 + case $lt_cv_dlopen_self_static in 3250 2952 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 3251 2953 + *) enable_dlopen_self_static=unknown ;; 3252 + esac 2954 esac 2955 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3253 2956 fi 3254 2957 +])# AC_LIBTOOL_DLOPEN_SELF 3255 2958 3256 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 3257 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 3258 - test "X$echo_testing_string" = "X$echo_test_string"; then 3259 - : 3260 -else 3261 - # The Solaris, AIX, and Digital Unix default echo programs unquote 3262 - # backslashes. This makes it impossible to quote backslashes using 3263 - # echo "$something" | sed 's/\\/\\\\/g' 3264 - # 3265 - # So, first we look for a working echo in the user's PATH. 3266 - 3267 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3268 - for dir in $PATH /usr/ucb; do 3269 - IFS="$lt_save_ifs" 3270 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 3271 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 3272 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 3273 - test "X$echo_testing_string" = "X$echo_test_string"; then 3274 - echo="$dir/echo" 3275 - break 3276 - fi 3277 - done 3278 - IFS="$lt_save_ifs" 3279 3280 - if test "X$echo" = Xecho; then 3281 - # We didn't find a better echo, so look for alternatives. 3282 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 3283 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 3284 - test "X$echo_testing_string" = "X$echo_test_string"; then 3285 - # This shell has a builtin print -r that does the trick. 3286 - echo='print -r' 3287 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 3288 - test "X$CONFIG_SHELL" != X/bin/ksh; then 3289 - # If we have ksh, try running configure again with it. 3290 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3291 - export ORIGINAL_CONFIG_SHELL 3292 - CONFIG_SHELL=/bin/ksh 3293 - export CONFIG_SHELL 3294 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 3295 - else 3296 - # Try using printf. 3297 - echo='printf %s\n' 3298 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 3299 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 3300 - test "X$echo_testing_string" = "X$echo_test_string"; then 3301 - # Cool, printf works 3302 - : 3303 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3304 - test "X$echo_testing_string" = 'X\t' && 3305 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3306 - test "X$echo_testing_string" = "X$echo_test_string"; then 3307 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 3308 - export CONFIG_SHELL 3309 - SHELL="$CONFIG_SHELL" 3310 - export SHELL 3311 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 3312 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3313 - test "X$echo_testing_string" = 'X\t' && 3314 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3315 - test "X$echo_testing_string" = "X$echo_test_string"; then 3316 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 3317 - else 3318 - # maybe with a smaller string... 3319 - prev=: 2959 -_LT_CC_BASENAME([$compiler]) 2960 2961 -# Only perform the check for file, if the check method requires it 2962 -case $deplibs_check_method in 2963 -file_magic*) 2964 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2965 - AC_PATH_MAGIC 2966 - fi 2967 - ;; 2968 -esac 3320 2969 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 3321 2970 +# --------------------------------- … … 3333 2982 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3334 2983 3335 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 3336 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 3337 - then 3338 - break 3339 - fi 3340 - prev="$cmd" 3341 - done 3342 - 3343 - if test "$prev" != 'sed 50q "[$]0"'; then 3344 - echo_test_string=`eval $prev` 3345 - export echo_test_string 3346 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 3347 - else 3348 - # Oops. We lost completely, so just stick with echo. 3349 - echo=echo 3350 - fi 3351 - fi 3352 - fi 3353 - fi 3354 -fi 3355 -fi 3356 - 3357 -# Copy echo and quote the copy suitably for passing to libtool from 3358 -# the Makefile, instead of quoting the original, which is used later. 3359 -ECHO=$echo 3360 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 3361 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 3362 -fi 3363 - 3364 -AC_SUBST(ECHO) 3365 -])])# _LT_AC_PROG_ECHO_BACKSLASH 3366 - 3367 - 3368 -# _LT_AC_LOCK 3369 -# ----------- 3370 -AC_DEFUN([_LT_AC_LOCK], 3371 -[AC_ARG_ENABLE([libtool-lock], 3372 - [AC_HELP_STRING([--disable-libtool-lock], 3373 - [avoid locking (might break parallel builds)])]) 3374 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3375 - 3376 -# Some flags need to be propagated to the compiler or linker for good 3377 -# libtool support. 3378 -case $host in 3379 -ia64-*-hpux*) 3380 - # Find out which ABI we are using. 3381 - echo 'int i;' > conftest.$ac_ext 3382 - if AC_TRY_EVAL(ac_compile); then 3383 - case `/usr/bin/file conftest.$ac_objext` in 3384 - *ELF-32*) 3385 - HPUX_IA64_MODE="32" 3386 - ;; 3387 - *ELF-64*) 3388 - HPUX_IA64_MODE="64" 3389 - ;; 3390 - esac 3391 - fi 3392 - rm -rf conftest* 3393 - ;; 3394 -*-*-irix6*) 3395 - # Find out which ABI we are using. 3396 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext 3397 - if AC_TRY_EVAL(ac_compile); then 3398 - if test "$lt_cv_prog_gnu_ld" = yes; then 3399 - case `/usr/bin/file conftest.$ac_objext` in 3400 - *32-bit*) 3401 - LD="${LD-ld} -melf32bsmip" 3402 - ;; 3403 - *N32*) 3404 - LD="${LD-ld} -melf32bmipn32" 3405 - ;; 3406 - *64-bit*) 3407 - LD="${LD-ld} -melf64bmip" 3408 - ;; 3409 - esac 3410 - else 3411 - case `/usr/bin/file conftest.$ac_objext` in 3412 - *32-bit*) 3413 - LD="${LD-ld} -32" 3414 - ;; 3415 - *N32*) 3416 - LD="${LD-ld} -n32" 3417 - ;; 3418 - *64-bit*) 3419 - LD="${LD-ld} -64" 3420 - ;; 3421 - esac 3422 - fi 3423 - fi 3424 - rm -rf conftest* 3425 - ;; 3426 - 3427 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3428 - # Find out which ABI we are using. 3429 - echo 'int i;' > conftest.$ac_ext 3430 - if AC_TRY_EVAL(ac_compile); then 3431 - case `/usr/bin/file conftest.o` in 3432 - *32-bit*) 3433 - case $host in 3434 - x86_64-*linux*) 3435 - LD="${LD-ld} -m elf_i386" 3436 - ;; 3437 - ppc64-*linux*|powerpc64-*linux*) 3438 - LD="${LD-ld} -m elf32ppclinux" 3439 - ;; 3440 - s390x-*linux*) 3441 - LD="${LD-ld} -m elf_s390" 3442 - ;; 3443 - sparc64-*linux*) 3444 - LD="${LD-ld} -m elf32_sparc" 3445 - ;; 3446 - esac 3447 - ;; 3448 - *64-bit*) 3449 - case $host in 3450 - x86_64-*linux*) 3451 - LD="${LD-ld} -m elf_x86_64" 3452 - ;; 3453 - ppc*-*linux*|powerpc*-*linux*) 3454 - LD="${LD-ld} -m elf64ppc" 3455 - ;; 3456 - s390*-*linux*) 3457 - LD="${LD-ld} -m elf64_s390" 3458 - ;; 3459 - sparc*-*linux*) 3460 - LD="${LD-ld} -m elf64_sparc" 3461 - ;; 3462 - esac 3463 - ;; 3464 - esac 3465 - fi 3466 - rm -rf conftest* 3467 - ;; 3468 - 3469 -*-*-sco3.2v5*) 3470 - # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3471 - SAVE_CFLAGS="$CFLAGS" 3472 - CFLAGS="$CFLAGS -belf" 3473 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3474 - [AC_LANG_PUSH(C) 3475 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3476 - AC_LANG_POP]) 3477 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3478 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3479 - CFLAGS="$SAVE_CFLAGS" 3480 - fi 3481 - ;; 3482 -sparc*-*solaris*) 3483 - # Find out which ABI we are using. 3484 - echo 'int i;' > conftest.$ac_ext 3485 - if AC_TRY_EVAL(ac_compile); then 3486 - case `/usr/bin/file conftest.o` in 3487 - *64-bit*) 3488 - case $lt_cv_prog_gnu_ld in 3489 - yes*) LD="${LD-ld} -m elf64_sparc" ;; 3490 - *) LD="${LD-ld} -64" ;; 3491 - esac 3492 - ;; 3493 - esac 3494 - fi 3495 - rm -rf conftest* 3496 - ;; 3497 - 2984 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 3498 2985 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 3499 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 3500 - AC_CHECK_TOOL(DLLTOOL, dlltool, false) 3501 - AC_CHECK_TOOL(AS, as, false) 3502 - AC_CHECK_TOOL(OBJDUMP, objdump, false) 3503 - ;; 3504 - ]) 3505 -esac 3506 - 3507 -need_locks="$enable_libtool_lock" 3508 - 3509 -])# _LT_AC_LOCK 3510 - 3511 - 3512 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3513 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3514 -# ---------------------------------------------------------------- 3515 -# Check whether the given compiler option works 3516 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 3517 -[AC_REQUIRE([LT_AC_PROG_SED]) 3518 -AC_CACHE_CHECK([$1], [$2], 3519 - [$2=no 3520 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3521 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 3522 - lt_compiler_flag="$3" 2986 -enable_win32_dll=yes, enable_win32_dll=no) 3523 2987 + lt_compiler_flag="-o out/conftest2.$ac_objext" 3524 # Insert the option either (1) after the last *FLAGS variable, or 3525 # (2) before a word containing "conftest.", or (3) at the end. 3526 # Note that $ac_compile itself does not contain backslashes and begins 3527 # with a dollar sign (not a hyphen), so the echo should work correctly. 3528 - # The option is referenced via a variable to avoid confusing sed. 3529 lt_compile=`echo "$ac_compile" | $SED \ 3530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3531 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3532 -e 's:$: $lt_compiler_flag:'` 3533 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3534 - (eval "$lt_compile" 2>conftest.err) 2988 + # Insert the option either (1) after the last *FLAGS variable, or 2989 + # (2) before a word containing "conftest.", or (3) at the end. 2990 + # Note that $ac_compile itself does not contain backslashes and begins 2991 + # with a dollar sign (not a hyphen), so the echo should work correctly. 2992 + lt_compile=`echo "$ac_compile" | $SED \ 2993 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2994 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2995 + -e 's:$: $lt_compiler_flag:'` 2996 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3535 2997 + (eval "$lt_compile" 2>out/conftest.err) 3536 ac_status=$? 3537 - cat conftest.err >&AS_MESSAGE_LOG_FD 2998 + ac_status=$? 3538 2999 + cat out/conftest.err >&AS_MESSAGE_LOG_FD 3539 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3540 - if (exit $ac_status) && test -s "$ac_outfile"; then 3000 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3541 3001 + if (exit $ac_status) && test -s out/conftest2.$ac_objext 3542 3002 + then 3543 # The compiler can only warn and ignore the option if not recognized 3544 - # So say no if there are warnings other than the usual output. 3545 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 3546 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3547 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3548 - $2=yes 3003 + # The compiler can only warn and ignore the option if not recognized 3549 3004 + # So say no if there are warnings 3550 3005 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp … … 3552 3007 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3553 3008 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3554 fi3555 fi3009 + fi 3010 + fi 3556 3011 + chmod u+w . 2>&AS_MESSAGE_LOG_FD 3557 3012 + $rm conftest* … … 3562 3017 + cd .. 3563 3018 + rmdir conftest 3564 $rm conftest*3565 ])3019 + $rm conftest* 3020 +]) 3566 3021 +])# AC_LIBTOOL_PROG_CC_C_O 3567 3022 3568 -if test x"[$]$2" = xyes; then 3569 - ifelse([$5], , :, [$5]) 3570 + 3023 -AC_ARG_ENABLE([libtool-lock], 3024 - [AC_HELP_STRING([--disable-libtool-lock], 3025 - [avoid locking (might break parallel builds)])]) 3026 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3027 3028 -AC_ARG_WITH([pic], 3029 - [AC_HELP_STRING([--with-pic], 3030 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 3031 - [pic_mode="$withval"], 3032 - [pic_mode=default]) 3033 -test -z "$pic_mode" && pic_mode=default 3571 3034 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 3572 3035 +# ----------------------------------------- … … 3574 3037 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 3575 3038 +[AC_REQUIRE([_LT_AC_LOCK])dnl 3576 + 3039 3040 -# Use C for the default configuration in the libtool script 3041 -tagname= 3042 -AC_LIBTOOL_LANG_C_CONFIG 3043 -_LT_AC_TAGCONFIG 3044 -])# AC_LIBTOOL_SETUP 3577 3045 +hard_links="nottested" 3578 3046 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then … … 3590 3058 + need_locks=warn 3591 3059 + fi 3592 else 3593 - ifelse([$6], , :, [$6]) 3060 +else 3594 3061 + need_locks=no 3595 fi 3596 -])# AC_LIBTOOL_COMPILER_OPTION 3062 +fi 3597 3063 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 3598 3064 3599 3065 3600 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3601 -# [ACTION-SUCCESS], [ACTION-FAILURE]) 3602 -# ------------------------------------------------------------ 3603 -# Check whether the given compiler option works 3604 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 3605 -[AC_CACHE_CHECK([$1], [$2], 3606 - [$2=no 3607 - save_LDFLAGS="$LDFLAGS" 3608 - LDFLAGS="$LDFLAGS $3" 3609 - printf "$lt_simple_link_test_code" > conftest.$ac_ext 3610 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3611 - # The linker can only warn and ignore the option if not recognized 3612 - # So say no if there are warnings 3613 - if test -s conftest.err; then 3614 - # Append any errors to the config.log. 3615 - cat conftest.err 1>&AS_MESSAGE_LOG_FD 3616 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 3617 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3618 - if diff conftest.exp conftest.er2 >/dev/null; then 3619 - $2=yes 3620 - fi 3621 - else 3622 - $2=yes 3623 - fi 3624 - fi 3625 - $rm conftest* 3626 - LDFLAGS="$save_LDFLAGS" 3627 -]) 3628 - 3629 -if test x"[$]$2" = xyes; then 3630 - ifelse([$4], , :, [$4]) 3066 -# _LT_AC_SYS_COMPILER 3067 -# ------------------- 3068 -AC_DEFUN([_LT_AC_SYS_COMPILER], 3069 -[AC_REQUIRE([AC_PROG_CC])dnl 3631 3070 +# AC_LIBTOOL_OBJDIR 3632 3071 +# ----------------- … … 3637 3076 +if test -d .libs; then 3638 3077 + lt_cv_objdir=.libs 3639 else 3640 - ifelse([$5], , :, [$5]) 3078 +else 3641 3079 + # MS-DOS does not allow filenames that begin with a dot. 3642 3080 + lt_cv_objdir=_libs 3643 fi 3644 -])# AC_LIBTOOL_LINKER_OPTION 3645 - 3646 - 3647 -# AC_LIBTOOL_SYS_MAX_CMD_LEN 3648 -# -------------------------- 3649 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 3650 -[# find the maximum length of command line arguments 3651 -AC_MSG_CHECKING([the maximum length of command line arguments]) 3652 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3653 - i=0 3654 - teststring="ABCD" 3655 - 3656 - case $build_os in 3657 - msdosdjgpp*) 3658 - # On DJGPP, this test can blow up pretty badly due to problems in libc 3659 - # (any single argument exceeding 2000 bytes causes a buffer overrun 3660 - # during glob expansion). Even if it were fixed, the result of this 3661 - # check would be larger than it should be. 3662 - lt_cv_sys_max_cmd_len=12288; # 12K is about right 3663 - ;; 3081 +fi 3664 3082 +rmdir .libs 2>/dev/null]) 3665 3083 +objdir=$lt_cv_objdir 3666 3084 +])# AC_LIBTOOL_OBJDIR 3667 3085 3668 - gnu*) 3669 - # Under GNU Hurd, this test is not required because there is 3670 - # no limit to the length of command line arguments. 3671 - # Libtool will interpret -1 as no limit whatsoever 3672 - lt_cv_sys_max_cmd_len=-1; 3673 - ;; 3674 3675 - cygwin* | mingw*) 3676 - # On Win9x/ME, this test blows up -- it succeeds, but takes 3677 - # about 5 minutes as the teststring grows exponentially. 3678 - # Worse, since 9x/ME are not pre-emptively multitasking, 3679 - # you end up with a "frozen" computer, even though with patience 3680 - # the test eventually succeeds (with a max line length of 256k). 3681 - # Instead, let's just punt: use the minimum linelength reported by 3682 - # all of the supported platforms: 8192 (on NT/2K/XP). 3683 - lt_cv_sys_max_cmd_len=8192; 3684 - ;; 3086 -# If no C compiler was specified, use CC. 3087 -LTCC=${LTCC-"$CC"} 3088 3089 -# If no C compiler flags were specified, use CFLAGS. 3090 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3685 3091 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 3686 3092 +# ---------------------------------------------- … … 3693 3099 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 3694 3100 3695 - amigaos*) 3696 - # On AmigaOS with pdksh, this test takes hours, literally. 3697 - # So we just punt and use a minimum line length of 8192. 3698 - lt_cv_sys_max_cmd_len=8192; 3699 - ;; 3101 -# Allow CC to be a program name with arguments. 3102 -compiler=$CC 3103 -])# _LT_AC_SYS_COMPILER 3700 3104 + # We can hardcode non-existant directories. 3701 3105 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && … … 3718 3122 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 3719 3123 3720 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)3721 - # This has been around since 386BSD, at least. Likely further.3722 - if test -x /sbin/sysctl; then3723 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`3724 - elif test -x /usr/sbin/sysctl; then3725 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`3726 - else3727 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs3728 - fi3729 - # And add a safety zone3730 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`3731 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`3732 - ;;3733 3124 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 3734 3125 + # Fast installation is not supported … … 3741 3132 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 3742 3133 3743 - interix*) 3744 - # We know the value 262144 and hardcode it with a safety zone (like BSD) 3745 - lt_cv_sys_max_cmd_len=196608 3746 - ;; 3747 3748 - osf*) 3749 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3750 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3751 - # nice to cause kernel panics so lets avoid the loop below. 3752 - # First set a reasonable default. 3753 - lt_cv_sys_max_cmd_len=16384 3754 - # 3755 - if test -x /sbin/sysconfig; then 3756 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3757 - *1*) lt_cv_sys_max_cmd_len=-1 ;; 3758 - esac 3759 - fi 3760 - ;; 3761 - sco3.2v5*) 3762 - lt_cv_sys_max_cmd_len=102400 3763 - ;; 3764 - sysv5* | sco5v6* | sysv4.2uw2*) 3765 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3766 - if test -n "$kargmax"; then 3767 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3768 - else 3769 - lt_cv_sys_max_cmd_len=32768 3770 - fi 3771 - ;; 3772 - *) 3773 - # If test is not a shell built-in, we'll probably end up computing a 3774 - # maximum length that is only half of the actual maximum length, but 3775 - # we can't tell. 3776 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3777 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 3778 - = "XX$teststring") >/dev/null 2>&1 && 3779 - new_result=`expr "X$teststring" : ".*" 2>&1` && 3780 - lt_cv_sys_max_cmd_len=$new_result && 3781 - test $i != 17 # 1/2 MB should be enough 3782 - do 3783 - i=`expr $i + 1` 3784 - teststring=$teststring$teststring 3785 - done 3786 - teststring= 3787 - # Add a significant safety factor because C++ compilers can tack on massive 3788 - # amounts of additional arguments before passing them to the linker. 3789 - # It appears as though 1/2 is a usable value. 3790 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3134 -# _LT_CC_BASENAME(CC) 3135 -# ------------------- 3136 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 3137 -AC_DEFUN([_LT_CC_BASENAME], 3138 -[for cc_temp in $1""; do 3139 - case $cc_temp in 3140 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 3141 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 3142 - \-*) ;; 3143 - *) break;; 3144 + 3791 3145 +# AC_LIBTOOL_SYS_LIB_STRIP 3792 3146 +# ------------------------ … … 3813 3167 + *) 3814 3168 + AC_MSG_RESULT([no]) 3815 ;;3169 + ;; 3816 3170 esac 3171 -done 3172 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 3817 3173 -]) 3818 -if test -n $lt_cv_sys_max_cmd_len ; then 3819 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3820 -else 3821 - AC_MSG_RESULT(none) 3822 fi 3823 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN 3174 +fi 3175 +])# AC_LIBTOOL_SYS_LIB_STRIP 3176 3177 3178 -# _LT_COMPILER_BOILERPLATE 3179 -# ------------------------ 3180 -# Check for compiler boilerplate output or warnings with 3181 -# the simple compiler test code. 3182 -AC_DEFUN([_LT_COMPILER_BOILERPLATE], 3183 -[ac_outfile=conftest.$ac_objext 3184 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext 3185 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3186 -_lt_compiler_boilerplate=`cat conftest.err` 3187 -$rm conftest* 3188 -])# _LT_COMPILER_BOILERPLATE 3824 3189 - 3825 3190 - 3826 -# _LT_AC_CHECK_DLFCN 3827 -# ------------------ 3828 -AC_DEFUN([_LT_AC_CHECK_DLFCN], 3829 -[AC_CHECK_HEADERS(dlfcn.h)dnl 3830 -])# _LT_AC_CHECK_DLFCN 3831 +])# AC_LIBTOOL_SYS_LIB_STRIP 3832 3833 3834 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3835 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3836 -# --------------------------------------------------------------------- 3837 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 3838 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 3839 -if test "$cross_compiling" = yes; then : 3840 - [$4] 3191 -# _LT_LINKER_BOILERPLATE 3192 -# ---------------------- 3193 -# Check for linker boilerplate output or warnings with 3194 -# the simple link test code. 3195 -AC_DEFUN([_LT_LINKER_BOILERPLATE], 3196 -[ac_outfile=conftest.$ac_objext 3197 -printf "$lt_simple_link_test_code" >conftest.$ac_ext 3198 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3199 -_lt_linker_boilerplate=`cat conftest.err` 3200 -$rm conftest* 3201 -])# _LT_LINKER_BOILERPLATE 3202 - 3203 - 3204 -# _LT_AC_SYS_LIBPATH_AIX 3205 -# ---------------------- 3206 -# Links a minimal program and checks the executable 3207 -# for the system default hardcoded library path. In most cases, 3208 -# this is /usr/lib:/lib, but when the MPI compilers are used 3209 -# the location of the communication and MPI libs are included too. 3210 -# If we don't find anything, use the default library path according 3211 -# to the aix ld manual. 3212 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 3213 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3214 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 3841 3215 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3842 3216 +# ----------------------------- … … 3905 3279 + if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3906 3280 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3907 +}'` 3281 }'` 3282 -# Check for a 64-bit object if we didn't find anything. 3283 -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; } 3284 -}'`; fi],[]) 3285 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3286 -])# _LT_AC_SYS_LIBPATH_AIX 3287 - 3288 - 3289 -# _LT_AC_SHELL_INIT(ARG) 3290 -# ---------------------- 3291 -AC_DEFUN([_LT_AC_SHELL_INIT], 3292 -[ifdef([AC_DIVERSION_NOTICE], 3293 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 3294 - [AC_DIVERT_PUSH(NOTICE)]) 3295 -$1 3296 -AC_DIVERT_POP 3297 -])# _LT_AC_SHELL_INIT 3908 3298 + sys_lib_search_path_spec=`echo $lt_search_path_spec` 3909 else 3299 +else 3300 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3301 +fi]) 3302 +need_lib_prefix=unknown 3303 +hardcode_into_libs=no 3304 3305 +# when you set need_version to no, make sure it does not cause -set_version 3306 +# flags to be left without arguments 3307 +need_version=unknown 3308 3309 -# _LT_AC_PROG_ECHO_BACKSLASH 3310 -# -------------------------- 3311 -# Add some code to the start of the generated configure script which 3312 -# will find an echo command which doesn't interpret backslashes. 3313 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 3314 -[_LT_AC_SHELL_INIT([ 3315 -# Check that we are running under the correct shell. 3316 -SHELL=${CONFIG_SHELL-/bin/sh} 3317 +case $host_os in 3318 +aix3*) 3319 + version_type=linux 3320 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3321 + shlibpath_var=LIBPATH 3322 3323 -case X$ECHO in 3324 -X*--fallback-echo) 3325 - # Remove one level of quotation (which was required for Make). 3326 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 3327 + # AIX 3 has no versioning support, so we append a major version to the name. 3328 + soname_spec='${libname}${release}${shared_ext}$major' 3329 ;; 3330 -esac 3331 3332 -echo=${ECHO-echo} 3333 -if test "X[$]1" = X--no-reexec; then 3334 - # Discard the --no-reexec flag, and continue. 3335 - shift 3336 -elif test "X[$]1" = X--fallback-echo; then 3337 - # Avoid inline document here, it may be left over 3338 - : 3339 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 3340 - # Yippee, $echo works! 3341 - : 3342 -else 3343 - # Restart under the correct shell. 3344 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 3345 -fi 3346 +aix4* | aix5*) 3347 + version_type=linux 3348 + need_lib_prefix=no 3349 + need_version=no 3350 + hardcode_into_libs=yes 3351 + if test "$host_cpu" = ia64; then 3352 + # AIX 5 supports IA64 3353 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3354 + shlibpath_var=LD_LIBRARY_PATH 3355 + else 3356 + # With GCC up to 2.95.x, collect2 would create an import file 3357 + # for dependence libraries. The import file would start with 3358 + # the line `#! .'. This would cause the generated library to 3359 + # depend on `.', always an invalid library. This was fixed in 3360 + # development snapshots of GCC prior to 3.0. 3361 + case $host_os in 3362 + aix4 | aix4.[[01]] | aix4.[[01]].*) 3363 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3364 + echo ' yes ' 3365 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 3366 + : 3367 + else 3368 + can_build_shared=no 3369 + fi 3370 + ;; 3371 + esac 3372 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 3373 + # soname into executable. Probably we can add versioning support to 3374 + # collect2, so additional links can be useful in future. 3375 + if test "$aix_use_runtimelinking" = yes; then 3376 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3377 + # instead of lib<name>.a to let people know that these are not 3378 + # typical AIX shared libraries. 3379 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3380 + else 3381 + # We preserve .a as extension for shared libraries through AIX4.2 3382 + # and later when we are not doing run time linking. 3383 + library_names_spec='${libname}${release}.a $libname.a' 3384 + soname_spec='${libname}${release}${shared_ext}$major' 3385 + fi 3386 + shlibpath_var=LIBPATH 3387 + fi 3388 + ;; 3389 3390 -if test "X[$]1" = X--fallback-echo; then 3391 - # used as fallback echo 3392 - shift 3393 - cat <<EOF 3394 -[$]* 3395 -EOF 3396 - exit 0 3397 -fi 3398 +amigaos*) 3399 + library_names_spec='$libname.ixlibrary $libname.a' 3400 + # Create ${libname}_ixlibrary.a entries in /sys/libs. 3401 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 3402 + ;; 3403 3404 -# The HP-UX ksh and POSIX shell print the target directory to stdout 3405 -# if CDPATH is set. 3406 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3407 +beos*) 3408 + library_names_spec='${libname}${shared_ext}' 3409 + dynamic_linker="$host_os ld.so" 3410 + shlibpath_var=LIBRARY_PATH 3411 + ;; 3412 3413 -if test -z "$ECHO"; then 3414 -if test "X${echo_test_string+set}" != Xset; then 3415 -# find a string as large as possible, as long as the shell can cope with it 3416 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 3417 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 3418 - if (echo_test_string=`eval $cmd`) 2>/dev/null && 3419 - echo_test_string=`eval $cmd` && 3420 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 3421 - then 3422 - break 3423 - fi 3424 - done 3425 -fi 3426 +bsdi[[45]]*) 3427 + version_type=linux 3428 + need_version=no 3429 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3430 + soname_spec='${libname}${release}${shared_ext}$major' 3431 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3432 + shlibpath_var=LD_LIBRARY_PATH 3433 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3434 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3435 + # the default ld.so.conf also contains /usr/contrib/lib and 3436 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3437 + # libtool to hard-code these into programs 3438 + ;; 3439 3440 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 3441 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 3442 - test "X$echo_testing_string" = "X$echo_test_string"; then 3443 - : 3444 -else 3445 - # The Solaris, AIX, and Digital Unix default echo programs unquote 3446 - # backslashes. This makes it impossible to quote backslashes using 3447 - # echo "$something" | sed 's/\\/\\\\/g' 3448 - # 3449 - # So, first we look for a working echo in the user's PATH. 3450 +cygwin* | mingw* | pw32*) 3451 + version_type=windows 3452 + shrext_cmds=".dll" 3453 + need_version=no 3454 + need_lib_prefix=no 3455 3456 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3457 - for dir in $PATH /usr/ucb; do 3458 - IFS="$lt_save_ifs" 3459 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 3460 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 3461 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 3462 - test "X$echo_testing_string" = "X$echo_test_string"; then 3463 - echo="$dir/echo" 3464 - break 3465 - fi 3466 - done 3467 - IFS="$lt_save_ifs" 3468 + case $GCC,$host_os in 3469 + yes,cygwin* | yes,mingw* | yes,pw32*) 3470 + library_names_spec='$libname.dll.a' 3471 + # DLL is installed to $(libdir)/../bin by postinstall_cmds 3472 + postinstall_cmds='base_file=`basename \${file}`~ 3473 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 3474 + dldir=$destdir/`dirname \$dlpath`~ 3475 + test -d \$dldir || mkdir -p \$dldir~ 3476 + $install_prog $dir/$dlname \$dldir/$dlname~ 3477 + chmod a+x \$dldir/$dlname' 3478 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3479 + dlpath=$dir/\$dldll~ 3480 + $rm \$dlpath' 3481 + shlibpath_overrides_runpath=yes 3482 3483 - if test "X$echo" = Xecho; then 3484 - # We didn't find a better echo, so look for alternatives. 3485 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 3486 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 3487 - test "X$echo_testing_string" = "X$echo_test_string"; then 3488 - # This shell has a builtin print -r that does the trick. 3489 - echo='print -r' 3490 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 3491 - test "X$CONFIG_SHELL" != X/bin/ksh; then 3492 - # If we have ksh, try running configure again with it. 3493 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3494 - export ORIGINAL_CONFIG_SHELL 3495 - CONFIG_SHELL=/bin/ksh 3496 - export CONFIG_SHELL 3497 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 3498 - else 3499 - # Try using printf. 3500 - echo='printf %s\n' 3501 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 3502 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 3503 - test "X$echo_testing_string" = "X$echo_test_string"; then 3504 - # Cool, printf works 3505 - : 3506 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3507 - test "X$echo_testing_string" = 'X\t' && 3508 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3509 - test "X$echo_testing_string" = "X$echo_test_string"; then 3510 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 3511 - export CONFIG_SHELL 3512 - SHELL="$CONFIG_SHELL" 3513 - export SHELL 3514 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 3515 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3516 - test "X$echo_testing_string" = 'X\t' && 3517 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3518 - test "X$echo_testing_string" = "X$echo_test_string"; then 3519 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 3520 + case $host_os in 3521 + cygwin*) 3522 + # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3523 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3524 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 3525 + ;; 3526 + mingw*) 3527 + # MinGW DLLs use traditional 'lib' prefix 3528 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3529 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3530 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 3531 + # It is most probably a Windows format PATH printed by 3532 + # mingw gcc, but we are running on Cygwin. Gcc prints its search 3533 + # path with ; separators, and with drive letters. We can handle the 3534 + # drive letters (cygwin fileutils understands them), so leave them, 3535 + # especially as we might pass files found there to a mingw objdump, 3536 + # which wouldn't understand a cygwinified path. Ahh. 3537 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3538 else 3539 - # maybe with a smaller string... 3540 - prev=: 3541 - 3542 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 3543 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 3544 - then 3545 - break 3546 - fi 3547 - prev="$cmd" 3548 - done 3549 - 3550 - if test "$prev" != 'sed 50q "[$]0"'; then 3551 - echo_test_string=`eval $prev` 3552 - export echo_test_string 3553 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 3554 - else 3555 - # Oops. We lost completely, so just stick with echo. 3556 - echo=echo 3557 - fi 3558 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3559 fi 3560 - fi 3561 - fi 3562 -fi 3563 -fi 3564 + ;; 3565 + pw32*) 3566 + # pw32 DLLs use 'pw' prefix rather than 'lib' 3567 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3568 + ;; 3569 + esac 3570 + ;; 3571 3572 -# Copy echo and quote the copy suitably for passing to libtool from 3573 -# the Makefile, instead of quoting the original, which is used later. 3574 -ECHO=$echo 3575 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 3576 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 3577 -fi 3578 + *) 3579 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 3580 + ;; 3581 + esac 3582 + dynamic_linker='Win32 ld.exe' 3583 + # FIXME: first we should search . and the directory the executable is in 3584 + shlibpath_var=PATH 3585 + ;; 3586 3587 -AC_SUBST(ECHO) 3588 -])])# _LT_AC_PROG_ECHO_BACKSLASH 3589 +darwin* | rhapsody*) 3590 + dynamic_linker="$host_os dyld" 3591 + version_type=darwin 3592 + need_lib_prefix=no 3593 + need_version=no 3594 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 3595 + soname_spec='${libname}${release}${major}$shared_ext' 3596 + shlibpath_overrides_runpath=yes 3597 + shlibpath_var=DYLD_LIBRARY_PATH 3598 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3599 + m4_if([$1], [],[ 3600 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3601 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3602 + ;; 3603 3604 +dgux*) 3605 + version_type=linux 3606 + need_lib_prefix=no 3607 + need_version=no 3608 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 3609 + soname_spec='${libname}${release}${shared_ext}$major' 3610 + shlibpath_var=LD_LIBRARY_PATH 3611 + ;; 3612 3613 -# _LT_AC_LOCK 3614 -# ----------- 3615 -AC_DEFUN([_LT_AC_LOCK], 3616 -[AC_ARG_ENABLE([libtool-lock], 3617 - [AC_HELP_STRING([--disable-libtool-lock], 3618 - [avoid locking (might break parallel builds)])]) 3619 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3620 +freebsd1*) 3621 + dynamic_linker=no 3622 + ;; 3623 3624 -# Some flags need to be propagated to the compiler or linker for good 3625 -# libtool support. 3626 -case $host in 3627 -ia64-*-hpux*) 3628 - # Find out which ABI we are using. 3629 - echo 'int i;' > conftest.$ac_ext 3630 - if AC_TRY_EVAL(ac_compile); then 3631 - case `/usr/bin/file conftest.$ac_objext` in 3632 - *ELF-32*) 3633 - HPUX_IA64_MODE="32" 3634 - ;; 3635 - *ELF-64*) 3636 - HPUX_IA64_MODE="64" 3637 - ;; 3638 +freebsd* | dragonfly*) 3639 + # DragonFly does not have aout. When/if they implement a new 3640 + # versioning mechanism, adjust this. 3641 + if test -x /usr/bin/objformat; then 3642 + objformat=`/usr/bin/objformat` 3643 + else 3644 + case $host_os in 3645 + freebsd[[123]]*) objformat=aout ;; 3646 + *) objformat=elf ;; 3647 esac 3648 fi 3649 - rm -rf conftest* 3650 - ;; 3651 -*-*-irix6*) 3652 - # Find out which ABI we are using. 3653 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext 3654 - if AC_TRY_EVAL(ac_compile); then 3655 - if test "$lt_cv_prog_gnu_ld" = yes; then 3656 - case `/usr/bin/file conftest.$ac_objext` in 3657 - *32-bit*) 3658 - LD="${LD-ld} -melf32bsmip" 3659 - ;; 3660 - *N32*) 3661 - LD="${LD-ld} -melf32bmipn32" 3662 - ;; 3663 - *64-bit*) 3664 - LD="${LD-ld} -melf64bmip" 3665 - ;; 3666 - esac 3667 - else 3668 - case `/usr/bin/file conftest.$ac_objext` in 3669 - *32-bit*) 3670 - LD="${LD-ld} -32" 3671 - ;; 3672 - *N32*) 3673 - LD="${LD-ld} -n32" 3674 + version_type=freebsd-$objformat 3675 + case $version_type in 3676 + freebsd-elf*) 3677 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3678 + need_version=no 3679 + need_lib_prefix=no 3680 ;; 3681 - *64-bit*) 3682 - LD="${LD-ld} -64" 3683 + freebsd-*) 3684 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 3685 + need_version=yes 3686 ;; 3687 - esac 3688 - fi 3689 - fi 3690 - rm -rf conftest* 3691 + esac 3692 + shlibpath_var=LD_LIBRARY_PATH 3693 + case $host_os in 3694 + freebsd2*) 3695 + shlibpath_overrides_runpath=yes 3696 + ;; 3697 + freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3698 + shlibpath_overrides_runpath=yes 3699 + hardcode_into_libs=yes 3700 + ;; 3701 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3702 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3703 + shlibpath_overrides_runpath=no 3704 + hardcode_into_libs=yes 3705 + ;; 3706 + *) # from 4.6 on, and DragonFly 3707 + shlibpath_overrides_runpath=yes 3708 + hardcode_into_libs=yes 3709 + ;; 3710 + esac 3711 ;; 3712 3713 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3714 - # Find out which ABI we are using. 3715 - echo 'int i;' > conftest.$ac_ext 3716 - if AC_TRY_EVAL(ac_compile); then 3717 - case `/usr/bin/file conftest.o` in 3718 - *32-bit*) 3719 - case $host in 3720 - x86_64-*linux*) 3721 - LD="${LD-ld} -m elf_i386" 3722 - ;; 3723 - ppc64-*linux*|powerpc64-*linux*) 3724 - LD="${LD-ld} -m elf32ppclinux" 3725 - ;; 3726 - s390x-*linux*) 3727 - LD="${LD-ld} -m elf_s390" 3728 - ;; 3729 - sparc64-*linux*) 3730 - LD="${LD-ld} -m elf32_sparc" 3731 - ;; 3732 - esac 3733 - ;; 3734 - *64-bit*) 3735 - case $host in 3736 - x86_64-*linux*) 3737 - LD="${LD-ld} -m elf_x86_64" 3738 - ;; 3739 - ppc*-*linux*|powerpc*-*linux*) 3740 - LD="${LD-ld} -m elf64ppc" 3741 - ;; 3742 - s390*-*linux*) 3743 - LD="${LD-ld} -m elf64_s390" 3744 - ;; 3745 - sparc*-*linux*) 3746 - LD="${LD-ld} -m elf64_sparc" 3747 - ;; 3748 - esac 3749 - ;; 3750 - esac 3751 - fi 3752 - rm -rf conftest* 3753 +gnu*) 3754 + version_type=linux 3755 + need_lib_prefix=no 3756 + need_version=no 3757 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3758 + soname_spec='${libname}${release}${shared_ext}$major' 3759 + shlibpath_var=LD_LIBRARY_PATH 3760 + hardcode_into_libs=yes 3761 ;; 3762 3763 -*-*-sco3.2v5*) 3764 - # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3765 - SAVE_CFLAGS="$CFLAGS" 3766 - CFLAGS="$CFLAGS -belf" 3767 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3768 - [AC_LANG_PUSH(C) 3769 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3770 - AC_LANG_POP]) 3771 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3772 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3773 - CFLAGS="$SAVE_CFLAGS" 3774 - fi 3775 +hpux9* | hpux10* | hpux11*) 3776 + # Give a soname corresponding to the major version so that dld.sl refuses to 3777 + # link against other versions. 3778 + version_type=sunos 3779 + need_lib_prefix=no 3780 + need_version=no 3781 + case $host_cpu in 3782 + ia64*) 3783 + shrext_cmds='.so' 3784 + hardcode_into_libs=yes 3785 + dynamic_linker="$host_os dld.so" 3786 + shlibpath_var=LD_LIBRARY_PATH 3787 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3788 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3789 + soname_spec='${libname}${release}${shared_ext}$major' 3790 + if test "X$HPUX_IA64_MODE" = X32; then 3791 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3792 + else 3793 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3794 + fi 3795 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3796 + ;; 3797 + hppa*64*) 3798 + shrext_cmds='.sl' 3799 + hardcode_into_libs=yes 3800 + dynamic_linker="$host_os dld.sl" 3801 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3802 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3803 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3804 + soname_spec='${libname}${release}${shared_ext}$major' 3805 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3806 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3807 + ;; 3808 + *) 3809 + shrext_cmds='.sl' 3810 + dynamic_linker="$host_os dld.sl" 3811 + shlibpath_var=SHLIB_PATH 3812 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3813 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3814 + soname_spec='${libname}${release}${shared_ext}$major' 3815 + ;; 3816 + esac 3817 + # HP-UX runs *really* slowly unless shared libraries are mode 555. 3818 + postinstall_cmds='chmod 555 $lib' 3819 ;; 3820 -sparc*-*solaris*) 3821 - # Find out which ABI we are using. 3822 - echo 'int i;' > conftest.$ac_ext 3823 - if AC_TRY_EVAL(ac_compile); then 3824 - case `/usr/bin/file conftest.o` in 3825 - *64-bit*) 3826 - case $lt_cv_prog_gnu_ld in 3827 - yes*) LD="${LD-ld} -m elf64_sparc" ;; 3828 - *) LD="${LD-ld} -64" ;; 3829 - esac 3830 - ;; 3831 + 3832 +interix[[3-9]]*) 3833 + version_type=linux 3834 + need_lib_prefix=no 3835 + need_version=no 3836 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3837 + soname_spec='${libname}${release}${shared_ext}$major' 3838 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3839 + shlibpath_var=LD_LIBRARY_PATH 3840 + shlibpath_overrides_runpath=no 3841 + hardcode_into_libs=yes 3842 + ;; 3843 + 3844 +irix5* | irix6* | nonstopux*) 3845 + case $host_os in 3846 + nonstopux*) version_type=nonstopux ;; 3847 + *) 3848 + if test "$lt_cv_prog_gnu_ld" = yes; then 3849 + version_type=linux 3850 + else 3851 + version_type=irix 3852 + fi ;; 3853 + esac 3854 + need_lib_prefix=no 3855 + need_version=no 3856 + soname_spec='${libname}${release}${shared_ext}$major' 3857 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 3858 + case $host_os in 3859 + irix5* | nonstopux*) 3860 + libsuff= shlibsuff= 3861 + ;; 3862 + *) 3863 + case $LD in # libtool.m4 will add one of these switches to LD 3864 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3865 + libsuff= shlibsuff= libmagic=32-bit;; 3866 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3867 + libsuff=32 shlibsuff=N32 libmagic=N32;; 3868 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3869 + libsuff=64 shlibsuff=64 libmagic=64-bit;; 3870 + *) libsuff= shlibsuff= libmagic=never-match;; 3871 esac 3872 - fi 3873 - rm -rf conftest* 3874 + ;; 3875 + esac 3876 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3877 + shlibpath_overrides_runpath=no 3878 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 3879 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 3880 + hardcode_into_libs=yes 3881 ;; 3882 3883 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 3884 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 3885 - AC_CHECK_TOOL(DLLTOOL, dlltool, false) 3886 - AC_CHECK_TOOL(AS, as, false) 3887 - AC_CHECK_TOOL(OBJDUMP, objdump, false) 3888 +# No shared lib support for Linux oldld, aout, or coff. 3889 +linux*oldld* | linux*aout* | linux*coff*) 3890 + dynamic_linker=no 3891 ;; 3892 - ]) 3893 -esac 3894 3895 -need_locks="$enable_libtool_lock" 3896 +# This must be Linux ELF. 3897 +linux* | k*bsd*-gnu) 3898 + version_type=linux 3899 + need_lib_prefix=no 3900 + need_version=no 3901 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3902 + soname_spec='${libname}${release}${shared_ext}$major' 3903 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3904 + shlibpath_var=LD_LIBRARY_PATH 3905 + shlibpath_overrides_runpath=no 3906 + # This implies no fast_install, which is unacceptable. 3907 + # Some rework will be needed to allow for fast_install 3908 + # before this can be enabled. 3909 + hardcode_into_libs=yes 3910 3911 -])# _LT_AC_LOCK 3912 + # Append ld.so.conf contents to the search path 3913 + if test -f /etc/ld.so.conf; then 3914 + 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' ' '` 3915 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3916 + fi 3917 3918 + # We used to test for /lib/ld.so.1 and disable shared libraries on 3919 + # powerpc, because MkLinux only supported shared libraries with the 3920 + # GNU dynamic linker. Since this was broken with cross compilers, 3921 + # most powerpc-linux boxes support dynamic linking these days and 3922 + # people can always --disable-shared, the test was removed, and we 3923 + # assume the GNU/Linux dynamic linker is in use. 3924 + dynamic_linker='GNU/Linux ld.so' 3925 + ;; 3926 3927 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3928 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3929 -# ---------------------------------------------------------------- 3930 -# Check whether the given compiler option works 3931 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 3932 -[AC_REQUIRE([LT_AC_PROG_SED]) 3933 -AC_CACHE_CHECK([$1], [$2], 3934 - [$2=no 3935 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3936 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 3937 - lt_compiler_flag="$3" 3938 - # Insert the option either (1) after the last *FLAGS variable, or 3939 - # (2) before a word containing "conftest.", or (3) at the end. 3940 - # Note that $ac_compile itself does not contain backslashes and begins 3941 - # with a dollar sign (not a hyphen), so the echo should work correctly. 3942 - # The option is referenced via a variable to avoid confusing sed. 3943 - lt_compile=`echo "$ac_compile" | $SED \ 3944 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3945 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3946 - -e 's:$: $lt_compiler_flag:'` 3947 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3948 - (eval "$lt_compile" 2>conftest.err) 3949 - ac_status=$? 3950 - cat conftest.err >&AS_MESSAGE_LOG_FD 3951 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3952 - if (exit $ac_status) && test -s "$ac_outfile"; then 3953 - # The compiler can only warn and ignore the option if not recognized 3954 - # So say no if there are warnings other than the usual output. 3955 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 3956 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3957 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3958 - $2=yes 3959 - fi 3960 - fi 3961 - $rm conftest* 3962 -]) 3963 +netbsdelf*-gnu) 3964 + version_type=linux 3965 + need_lib_prefix=no 3966 + need_version=no 3967 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3968 + soname_spec='${libname}${release}${shared_ext}$major' 3969 + shlibpath_var=LD_LIBRARY_PATH 3970 + shlibpath_overrides_runpath=no 3971 + hardcode_into_libs=yes 3972 + dynamic_linker='NetBSD ld.elf_so' 3973 + ;; 3974 3975 -if test x"[$]$2" = xyes; then 3976 - ifelse([$5], , :, [$5]) 3977 -else 3978 - ifelse([$6], , :, [$6]) 3979 -fi 3980 -])# AC_LIBTOOL_COMPILER_OPTION 3981 +netbsd*) 3982 + version_type=sunos 3983 + need_lib_prefix=no 3984 + need_version=no 3985 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3986 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3987 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3988 + dynamic_linker='NetBSD (a.out) ld.so' 3989 + else 3990 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3991 + soname_spec='${libname}${release}${shared_ext}$major' 3992 + dynamic_linker='NetBSD ld.elf_so' 3993 + fi 3994 + shlibpath_var=LD_LIBRARY_PATH 3995 + shlibpath_overrides_runpath=yes 3996 + hardcode_into_libs=yes 3997 + ;; 3998 3999 +newsos6) 4000 + version_type=linux 4001 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4002 + shlibpath_var=LD_LIBRARY_PATH 4003 + shlibpath_overrides_runpath=yes 4004 + ;; 4005 4006 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4007 -# [ACTION-SUCCESS], [ACTION-FAILURE]) 4008 -# ------------------------------------------------------------ 4009 -# Check whether the given compiler option works 4010 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 4011 -[AC_CACHE_CHECK([$1], [$2], 4012 - [$2=no 4013 - save_LDFLAGS="$LDFLAGS" 4014 - LDFLAGS="$LDFLAGS $3" 4015 - printf "$lt_simple_link_test_code" > conftest.$ac_ext 4016 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 4017 - # The linker can only warn and ignore the option if not recognized 4018 - # So say no if there are warnings 4019 - if test -s conftest.err; then 4020 - # Append any errors to the config.log. 4021 - cat conftest.err 1>&AS_MESSAGE_LOG_FD 4022 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 4023 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4024 - if diff conftest.exp conftest.er2 >/dev/null; then 4025 - $2=yes 4026 - fi 4027 - else 4028 - $2=yes 4029 - fi 4030 - fi 4031 - $rm conftest* 4032 - LDFLAGS="$save_LDFLAGS" 4033 -]) 4034 +nto-qnx*) 4035 + version_type=linux 4036 + need_lib_prefix=no 4037 + need_version=no 4038 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4039 + soname_spec='${libname}${release}${shared_ext}$major' 4040 + shlibpath_var=LD_LIBRARY_PATH 4041 + shlibpath_overrides_runpath=yes 4042 + ;; 4043 4044 -if test x"[$]$2" = xyes; then 4045 - ifelse([$4], , :, [$4]) 4046 -else 4047 - ifelse([$5], , :, [$5]) 4048 -fi 4049 -])# AC_LIBTOOL_LINKER_OPTION 4050 +openbsd*) 4051 + version_type=sunos 4052 + sys_lib_dlsearch_path_spec="/usr/lib" 4053 + need_lib_prefix=no 4054 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4055 + case $host_os in 4056 + openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4057 + *) need_version=no ;; 4058 + esac 4059 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4060 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4061 + shlibpath_var=LD_LIBRARY_PATH 4062 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4063 + case $host_os in 4064 + openbsd2.[[89]] | openbsd2.[[89]].*) 4065 + shlibpath_overrides_runpath=no 4066 + ;; 4067 + *) 4068 + shlibpath_overrides_runpath=yes 4069 + ;; 4070 + esac 4071 + else 4072 + shlibpath_overrides_runpath=yes 4073 + fi 4074 + ;; 4075 4076 +os2*) 4077 + libname_spec='$name' 4078 + shrext_cmds=".dll" 4079 + need_lib_prefix=no 4080 + library_names_spec='$libname${shared_ext} $libname.a' 4081 + dynamic_linker='OS/2 ld.exe' 4082 + shlibpath_var=LIBPATH 4083 + ;; 4084 4085 -# AC_LIBTOOL_SYS_MAX_CMD_LEN 4086 -# -------------------------- 4087 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 4088 -[# find the maximum length of command line arguments 4089 -AC_MSG_CHECKING([the maximum length of command line arguments]) 4090 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 4091 - i=0 4092 - teststring="ABCD" 4093 +osf3* | osf4* | osf5*) 4094 + version_type=osf 4095 + need_lib_prefix=no 4096 + need_version=no 4097 + soname_spec='${libname}${release}${shared_ext}$major' 4098 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4099 + shlibpath_var=LD_LIBRARY_PATH 4100 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4101 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4102 + ;; 4103 4104 - case $build_os in 4105 - msdosdjgpp*) 4106 - # On DJGPP, this test can blow up pretty badly due to problems in libc 4107 - # (any single argument exceeding 2000 bytes causes a buffer overrun 4108 - # during glob expansion). Even if it were fixed, the result of this 4109 - # check would be larger than it should be. 4110 - lt_cv_sys_max_cmd_len=12288; # 12K is about right 4111 - ;; 4112 +rdos*) 4113 + dynamic_linker=no 4114 + ;; 4115 4116 - gnu*) 4117 - # Under GNU Hurd, this test is not required because there is 4118 - # no limit to the length of command line arguments. 4119 - # Libtool will interpret -1 as no limit whatsoever 4120 - lt_cv_sys_max_cmd_len=-1; 4121 - ;; 4122 +solaris*) 4123 + version_type=linux 4124 + need_lib_prefix=no 4125 + need_version=no 4126 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4127 + soname_spec='${libname}${release}${shared_ext}$major' 4128 + shlibpath_var=LD_LIBRARY_PATH 4129 + shlibpath_overrides_runpath=yes 4130 + hardcode_into_libs=yes 4131 + # ldd complains unless libraries are executable 4132 + postinstall_cmds='chmod +x $lib' 4133 + ;; 4134 4135 - cygwin* | mingw*) 4136 - # On Win9x/ME, this test blows up -- it succeeds, but takes 4137 - # about 5 minutes as the teststring grows exponentially. 4138 - # Worse, since 9x/ME are not pre-emptively multitasking, 4139 - # you end up with a "frozen" computer, even though with patience 4140 - # the test eventually succeeds (with a max line length of 256k). 4141 - # Instead, let's just punt: use the minimum linelength reported by 4142 - # all of the supported platforms: 8192 (on NT/2K/XP). 4143 - lt_cv_sys_max_cmd_len=8192; 4144 - ;; 4145 +sunos4*) 4146 + version_type=sunos 4147 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4148 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4149 + shlibpath_var=LD_LIBRARY_PATH 4150 + shlibpath_overrides_runpath=yes 4151 + if test "$with_gnu_ld" = yes; then 4152 + need_lib_prefix=no 4153 + fi 4154 + need_version=yes 4155 + ;; 4156 4157 - amigaos*) 4158 - # On AmigaOS with pdksh, this test takes hours, literally. 4159 - # So we just punt and use a minimum line length of 8192. 4160 - lt_cv_sys_max_cmd_len=8192; 4161 - ;; 4162 +sysv4 | sysv4.3*) 4163 + version_type=linux 4164 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4165 + soname_spec='${libname}${release}${shared_ext}$major' 4166 + shlibpath_var=LD_LIBRARY_PATH 4167 + case $host_vendor in 4168 + sni) 4169 + shlibpath_overrides_runpath=no 4170 + need_lib_prefix=no 4171 + export_dynamic_flag_spec='${wl}-Blargedynsym' 4172 + runpath_var=LD_RUN_PATH 4173 + ;; 4174 + siemens) 4175 + need_lib_prefix=no 4176 + ;; 4177 + motorola) 4178 + need_lib_prefix=no 4179 + need_version=no 4180 + shlibpath_overrides_runpath=no 4181 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4182 + ;; 4183 + esac 4184 + ;; 4185 4186 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4187 - # This has been around since 386BSD, at least. Likely further. 4188 - if test -x /sbin/sysctl; then 4189 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4190 - elif test -x /usr/sbin/sysctl; then 4191 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4192 - else 4193 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4194 - fi 4195 - # And add a safety zone 4196 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4197 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4198 - ;; 4199 +sysv4*MP*) 4200 + if test -d /usr/nec ;then 4201 + version_type=linux 4202 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4203 + soname_spec='$libname${shared_ext}.$major' 4204 + shlibpath_var=LD_LIBRARY_PATH 4205 + fi 4206 + ;; 4207 4208 - interix*) 4209 - # We know the value 262144 and hardcode it with a safety zone (like BSD) 4210 - lt_cv_sys_max_cmd_len=196608 4211 - ;; 4212 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4213 + version_type=freebsd-elf 4214 + need_lib_prefix=no 4215 + need_version=no 4216 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4217 + soname_spec='${libname}${release}${shared_ext}$major' 4218 + shlibpath_var=LD_LIBRARY_PATH 4219 + hardcode_into_libs=yes 4220 + if test "$with_gnu_ld" = yes; then 4221 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4222 + shlibpath_overrides_runpath=no 4223 + else 4224 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4225 + shlibpath_overrides_runpath=yes 4226 + case $host_os in 4227 + sco3.2v5*) 4228 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4229 + ;; 4230 + esac 4231 + fi 4232 + sys_lib_dlsearch_path_spec='/usr/lib' 4233 + ;; 4234 4235 - osf*) 4236 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4237 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4238 - # nice to cause kernel panics so lets avoid the loop below. 4239 - # First set a reasonable default. 4240 - lt_cv_sys_max_cmd_len=16384 4241 - # 4242 - if test -x /sbin/sysconfig; then 4243 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4244 - *1*) lt_cv_sys_max_cmd_len=-1 ;; 4245 - esac 4246 - fi 4247 - ;; 4248 - sco3.2v5*) 4249 - lt_cv_sys_max_cmd_len=102400 4250 - ;; 4251 - sysv5* | sco5v6* | sysv4.2uw2*) 4252 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4253 - if test -n "$kargmax"; then 4254 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 4255 - else 4256 - lt_cv_sys_max_cmd_len=32768 4257 - fi 4258 - ;; 4259 - *) 4260 - # If test is not a shell built-in, we'll probably end up computing a 4261 - # maximum length that is only half of the actual maximum length, but 4262 - # we can't tell. 4263 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4264 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 4265 - = "XX$teststring") >/dev/null 2>&1 && 4266 - new_result=`expr "X$teststring" : ".*" 2>&1` && 4267 - lt_cv_sys_max_cmd_len=$new_result && 4268 - test $i != 17 # 1/2 MB should be enough 4269 - do 4270 - i=`expr $i + 1` 4271 - teststring=$teststring$teststring 4272 - done 4273 - teststring= 4274 - # Add a significant safety factor because C++ compilers can tack on massive 4275 - # amounts of additional arguments before passing them to the linker. 4276 - # It appears as though 1/2 is a usable value. 4277 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4278 - ;; 4279 - esac 4280 -]) 4281 -if test -n $lt_cv_sys_max_cmd_len ; then 4282 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 4283 -else 4284 - AC_MSG_RESULT(none) 4285 +uts4*) 4286 + version_type=linux 4287 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4288 + soname_spec='${libname}${release}${shared_ext}$major' 4289 + shlibpath_var=LD_LIBRARY_PATH 4290 + ;; 4291 + 4292 +*) 4293 + dynamic_linker=no 4294 + ;; 4295 +esac 4296 +AC_MSG_RESULT([$dynamic_linker]) 4297 +test "$dynamic_linker" = no && can_build_shared=no 4298 + 4299 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4300 +if test "$GCC" = yes; then 4301 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4302 fi 4303 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN 4304 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 4305 4306 4307 -# _LT_AC_CHECK_DLFCN 4308 -# ------------------ 4309 -AC_DEFUN([_LT_AC_CHECK_DLFCN], 4310 -[AC_CHECK_HEADERS(dlfcn.h)dnl 4311 -])# _LT_AC_CHECK_DLFCN 4312 +# _LT_AC_TAGCONFIG 4313 +# ---------------- 4314 +AC_DEFUN([_LT_AC_TAGCONFIG], 4315 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 4316 +AC_ARG_WITH([tags], 4317 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 4318 + [include additional configurations @<:@automatic@:>@])], 4319 + [tagnames="$withval"]) 4320 4321 +if test -f "$ltmain" && test -n "$tagnames"; then 4322 + if test ! -f "${ofile}"; then 4323 + AC_MSG_WARN([output file `$ofile' does not exist]) 4324 + fi 4325 4326 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 4327 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 4328 -# --------------------------------------------------------------------- 4329 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 4330 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 4331 -if test "$cross_compiling" = yes; then : 4332 - [$4] 4333 -else 3910 4334 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3911 4335 - lt_status=$lt_dlunknown … … 3913 4337 -[#line __oline__ "configure" 3914 4338 -#include "confdefs.h" 3915 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3916 +fi]) 3917 +need_lib_prefix=unknown 3918 +hardcode_into_libs=no 3919 4339 - 3920 4340 -#if HAVE_DLFCN_H 3921 4341 -#include <dlfcn.h> 3922 4342 -#endif 3923 +# when you set need_version to no, make sure it does not cause -set_version 3924 +# flags to be left without arguments 3925 +need_version=unknown 3926 4343 - 3927 4344 -#include <stdio.h> 3928 +case $host_os in 3929 +aix3*) 3930 + version_type=linux 3931 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3932 + shlibpath_var=LIBPATH 3933 4345 - 3934 4346 -#ifdef RTLD_GLOBAL 3935 4347 -# define LT_DLGLOBAL RTLD_GLOBAL … … 3941 4353 -# endif 3942 4354 -#endif 3943 + # AIX 3 has no versioning support, so we append a major version to the name. 3944 + soname_spec='${libname}${release}${shared_ext}$major' 3945 + ;; 3946 4355 - 3947 4356 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3948 4357 - find out it does not work in some platform. */ … … 3976 4385 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3977 4386 - int status = $lt_dlunknown; 3978 - 4387 + if test -z "$LTCC"; then 4388 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 4389 + if test -z "$LTCC"; then 4390 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 4391 + else 4392 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 4393 + fi 4394 + fi 4395 + if test -z "$LTCFLAGS"; then 4396 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 4397 + fi 4398 3979 4399 - if (self) 3980 4400 - { … … 3983 4403 - /* dlclose (self); */ 3984 4404 - } 3985 +aix4* | aix5*) 3986 + version_type=linux 3987 + need_lib_prefix=no 3988 + need_version=no 3989 + hardcode_into_libs=yes 3990 + if test "$host_cpu" = ia64; then 3991 + # AIX 5 supports IA64 3992 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3993 + shlibpath_var=LD_LIBRARY_PATH 3994 else 4405 - else 3995 4406 - puts (dlerror ()); 3996 - 4407 + # Extract list of available tagged configurations in $ofile. 4408 + # Note that this assumes the entire list is on one line. 4409 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 4410 3997 4411 - exit (status); 3998 4412 -}] … … 4005 4419 - x$lt_dlneed_uscore) $2 ;; 4006 4420 - x$lt_dlunknown|x*) $3 ;; 4007 + # With GCC up to 2.95.x, collect2 would create an import file 4008 + # for dependence libraries. The import file would start with 4009 + # the line `#! .'. This would cause the generated library to 4010 + # depend on `.', always an invalid library. This was fixed in 4011 + # development snapshots of GCC prior to 3.0. 4012 + case $host_os in 4013 + aix4 | aix4.[[01]] | aix4.[[01]].*) 4014 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4015 + echo ' yes ' 4016 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 4017 + : 4018 + else 4019 + can_build_shared=no 4020 + fi 4021 + ;; 4421 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4422 + for tagname in $tagnames; do 4423 + IFS="$lt_save_ifs" 4424 + # Check whether tagname contains only valid characters 4425 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 4426 + "") ;; 4427 + *) AC_MSG_ERROR([invalid tag name: $tagname]) 4428 + ;; 4022 4429 esac 4023 4430 - else : 4024 4431 - # compilation failed 4025 4432 - $3 4026 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4027 + # soname into executable. Probably we can add versioning support to 4028 + # collect2, so additional links can be useful in future. 4029 + if test "$aix_use_runtimelinking" = yes; then 4030 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4031 + # instead of lib<name>.a to let people know that these are not 4032 + # typical AIX shared libraries. 4033 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4034 + else 4035 + # We preserve .a as extension for shared libraries through AIX4.2 4036 + # and later when we are not doing run time linking. 4037 + library_names_spec='${libname}${release}.a $libname.a' 4038 + soname_spec='${libname}${release}${shared_ext}$major' 4039 + fi 4040 + shlibpath_var=LIBPATH 4041 fi 4433 - fi 4042 4434 -fi 4043 4435 -rm -fr conftest* 4044 4436 -])# _LT_AC_TRY_DLOPEN_SELF 4045 + ;; 4046 4047 +amigaos*) 4048 + library_names_spec='$libname.ixlibrary $libname.a' 4049 + # Create ${libname}_ixlibrary.a entries in /sys/libs. 4050 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4051 + ;; 4437 4438 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 4439 + then 4440 + AC_MSG_ERROR([tag name \"$tagname\" already exists]) 4441 + fi 4052 4442 4053 4443 -# AC_LIBTOOL_DLOPEN_SELF … … 4062 4452 - lt_cv_dlopen=no 4063 4453 - lt_cv_dlopen_libs= 4064 +beos*) 4065 + library_names_spec='${libname}${shared_ext}' 4066 + dynamic_linker="$host_os ld.so" 4067 + shlibpath_var=LIBRARY_PATH 4068 + ;; 4454 + # Update the list of available tags. 4455 + if test -n "$tagname"; then 4456 + echo appending configuration tag \"$tagname\" to $ofile 4069 4457 4070 4458 - case $host_os in … … 4074 4462 - lt_cv_dlopen_self=yes 4075 4463 - ;; 4076 +bsdi[[45]]*) 4077 + version_type=linux 4078 + need_version=no 4079 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4080 + soname_spec='${libname}${release}${shared_ext}$major' 4081 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4082 + shlibpath_var=LD_LIBRARY_PATH 4083 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4084 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4085 + # the default ld.so.conf also contains /usr/contrib/lib and 4086 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4087 + # libtool to hard-code these into programs 4088 + ;; 4464 + case $tagname in 4465 + CXX) 4466 + if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4467 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4468 + (test "X$CXX" != "Xg++"))) ; then 4469 + AC_LIBTOOL_LANG_CXX_CONFIG 4470 + else 4471 + tagname="" 4472 + fi 4473 + ;; 4089 4474 4090 4475 - mingw* | pw32*) … … 4092 4477 - lt_cv_dlopen_libs= 4093 4478 - ;; 4094 +cygwin* | mingw* | pw32*) 4095 + version_type=windows 4096 + shrext_cmds=".dll" 4097 + need_version=no 4098 + need_lib_prefix=no 4479 + F77) 4480 + if test -n "$F77" && test "X$F77" != "Xno"; then 4481 + AC_LIBTOOL_LANG_F77_CONFIG 4482 + else 4483 + tagname="" 4484 + fi 4485 + ;; 4099 4486 4100 4487 - cygwin*) … … 4102 4489 - lt_cv_dlopen_libs= 4103 4490 - ;; 4104 + case $GCC,$host_os in 4105 + yes,cygwin* | yes,mingw* | yes,pw32*) 4106 + library_names_spec='$libname.dll.a' 4107 + # DLL is installed to $(libdir)/../bin by postinstall_cmds 4108 + postinstall_cmds='base_file=`basename \${file}`~ 4109 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 4110 + dldir=$destdir/`dirname \$dlpath`~ 4111 + test -d \$dldir || mkdir -p \$dldir~ 4112 + $install_prog $dir/$dlname \$dldir/$dlname~ 4113 + chmod a+x \$dldir/$dlname' 4114 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4115 + dlpath=$dir/\$dldll~ 4116 + $rm \$dlpath' 4117 + shlibpath_overrides_runpath=yes 4491 + GCJ) 4492 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 4493 + AC_LIBTOOL_LANG_GCJ_CONFIG 4494 + else 4495 + tagname="" 4496 + fi 4497 + ;; 4118 4498 4119 4499 - darwin*) … … 4126 4506 - ]) 4127 4507 - ;; 4128 + case $host_os in 4129 + cygwin*) 4130 + # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4131 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4132 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 4133 + ;; 4134 + mingw*) 4135 + # MinGW DLLs use traditional 'lib' prefix 4136 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4137 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4138 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 4139 + # It is most probably a Windows format PATH printed by 4140 + # mingw gcc, but we are running on Cygwin. Gcc prints its search 4141 + # path with ; separators, and with drive letters. We can handle the 4142 + # drive letters (cygwin fileutils understands them), so leave them, 4143 + # especially as we might pass files found there to a mingw objdump, 4144 + # which wouldn't understand a cygwinified path. Ahh. 4145 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4146 + else 4147 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4148 + fi 4149 + ;; 4150 + pw32*) 4151 + # pw32 DLLs use 'pw' prefix rather than 'lib' 4152 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4153 + ;; 4154 + esac 4155 + ;; 4156 4157 *) 4508 + RC) 4509 + AC_LIBTOOL_LANG_RC_CONFIG 4510 + ;; 4511 4512 - *) 4158 4513 - AC_CHECK_FUNC([shl_load], 4159 4514 - [lt_cv_dlopen="shl_load"], … … 4173 4528 - ]) 4174 4529 - ]) 4175 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4176 ;; 4177 esac 4178 + dynamic_linker='Win32 ld.exe' 4179 + # FIXME: first we should search . and the directory the executable is in 4180 + shlibpath_var=PATH 4181 + ;; 4530 - ;; 4531 - esac 4532 + *) 4533 + AC_MSG_ERROR([Unsupported tag name: $tagname]) 4534 + ;; 4535 + esac 4182 4536 4183 4537 - if test "x$lt_cv_dlopen" != xno; then 4184 4538 - enable_dlopen=yes 4185 - else 4539 + # Append the new tag name to the list of available tags. 4540 + if test -n "$tagname" ; then 4541 + available_tags="$available_tags $tagname" 4542 + fi 4543 + fi 4544 + done 4545 + IFS="$lt_save_ifs" 4546 + 4547 + # Now substitute the updated list of available tags. 4548 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 4549 + mv "${ofile}T" "$ofile" 4550 + chmod +x "$ofile" 4551 else 4186 4552 - enable_dlopen=no 4187 - fi 4188 +darwin* | rhapsody*) 4189 + dynamic_linker="$host_os dyld" 4190 + version_type=darwin 4191 + need_lib_prefix=no 4192 + need_version=no 4193 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4194 + soname_spec='${libname}${release}${major}$shared_ext' 4195 + shlibpath_overrides_runpath=yes 4196 + shlibpath_var=DYLD_LIBRARY_PATH 4197 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4198 + m4_if([$1], [],[ 4199 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4200 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4201 + ;; 4553 + rm -f "${ofile}T" 4554 + AC_MSG_ERROR([unable to update list of available tagged configurations.]) 4555 fi 4556 +fi 4557 +])# _LT_AC_TAGCONFIG 4202 4558 4203 4559 - case $lt_cv_dlopen in … … 4205 4561 - save_CPPFLAGS="$CPPFLAGS" 4206 4562 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4207 +dgux*) 4208 + version_type=linux 4209 + need_lib_prefix=no 4210 + need_version=no 4211 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4212 + soname_spec='${libname}${release}${shared_ext}$major' 4213 + shlibpath_var=LD_LIBRARY_PATH 4214 + ;; 4215 4563 - 4216 4564 - save_LDFLAGS="$LDFLAGS" 4217 4565 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4218 +freebsd1*)4219 + dynamic_linker=no4220 + ;;4221 4566 4222 4567 - save_LIBS="$LIBS" 4223 4568 - LIBS="$lt_cv_dlopen_libs $LIBS" 4224 +freebsd* | dragonfly*) 4225 + # DragonFly does not have aout. When/if they implement a new 4226 + # versioning mechanism, adjust this. 4227 + if test -x /usr/bin/objformat; then 4228 + objformat=`/usr/bin/objformat` 4229 + else 4230 + case $host_os in 4231 + freebsd[[123]]*) objformat=aout ;; 4232 + *) objformat=elf ;; 4233 + esac 4234 + fi 4235 + version_type=freebsd-$objformat 4236 + case $version_type in 4237 + freebsd-elf*) 4238 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4239 + need_version=no 4240 + need_lib_prefix=no 4241 + ;; 4242 + freebsd-*) 4243 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4244 + need_version=yes 4245 + ;; 4246 + esac 4247 + shlibpath_var=LD_LIBRARY_PATH 4248 + case $host_os in 4249 + freebsd2*) 4250 + shlibpath_overrides_runpath=yes 4251 + ;; 4252 + freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4253 + shlibpath_overrides_runpath=yes 4254 + hardcode_into_libs=yes 4255 + ;; 4256 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4257 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4258 + shlibpath_overrides_runpath=no 4259 + hardcode_into_libs=yes 4260 + ;; 4261 + *) # from 4.6 on, and DragonFly 4262 + shlibpath_overrides_runpath=yes 4263 + hardcode_into_libs=yes 4264 + ;; 4265 + esac 4266 + ;; 4569 +# AC_LIBTOOL_DLOPEN 4570 +# ----------------- 4571 +# enable checks for dlopen support 4572 +AC_DEFUN([AC_LIBTOOL_DLOPEN], 4573 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 4574 +])# AC_LIBTOOL_DLOPEN 4267 4575 4268 4576 - AC_CACHE_CHECK([whether a program can dlopen itself], … … 4272 4580 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4273 4581 - ]) 4274 +gnu*)4275 + version_type=linux4276 + need_lib_prefix=no4277 + need_version=no4278 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'4279 + soname_spec='${libname}${release}${shared_ext}$major'4280 + shlibpath_var=LD_LIBRARY_PATH4281 + hardcode_into_libs=yes4282 + ;;4283 4582 4284 4583 - if test "x$lt_cv_dlopen_self" = xyes; then … … 4290 4589 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4291 4590 - ]) 4292 +hpux9* | hpux10* | hpux11*) 4293 + # Give a soname corresponding to the major version so that dld.sl refuses to 4294 + # link against other versions. 4295 + version_type=sunos 4296 + need_lib_prefix=no 4297 + need_version=no 4298 + case $host_cpu in 4299 + ia64*) 4300 + shrext_cmds='.so' 4301 + hardcode_into_libs=yes 4302 + dynamic_linker="$host_os dld.so" 4303 + shlibpath_var=LD_LIBRARY_PATH 4304 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4305 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4306 + soname_spec='${libname}${release}${shared_ext}$major' 4307 + if test "X$HPUX_IA64_MODE" = X32; then 4308 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4309 + else 4310 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4311 fi 4312 - 4591 - fi 4592 +# AC_LIBTOOL_WIN32_DLL 4593 +# -------------------- 4594 +# declare package support for building win32 DLLs 4595 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 4596 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 4597 +])# AC_LIBTOOL_WIN32_DLL 4598 4313 4599 - CPPFLAGS="$save_CPPFLAGS" 4314 4600 - LDFLAGS="$save_LDFLAGS" 4315 4601 - LIBS="$save_LIBS" 4316 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4317 + ;; 4318 + hppa*64*) 4319 + shrext_cmds='.sl' 4320 + hardcode_into_libs=yes 4321 + dynamic_linker="$host_os dld.sl" 4322 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4323 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4324 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4325 + soname_spec='${libname}${release}${shared_ext}$major' 4326 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4327 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4328 + ;; 4329 + *) 4330 + shrext_cmds='.sl' 4331 + dynamic_linker="$host_os dld.sl" 4332 + shlibpath_var=SHLIB_PATH 4333 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4334 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4335 + soname_spec='${libname}${release}${shared_ext}$major' 4336 ;; 4337 esac 4338 + # HP-UX runs *really* slowly unless shared libraries are mode 555. 4339 + postinstall_cmds='chmod 555 $lib' 4340 + ;; 4602 - ;; 4603 - esac 4341 4604 4342 4605 - case $lt_cv_dlopen_self in … … 4344 4607 - *) enable_dlopen_self=unknown ;; 4345 4608 - esac 4346 +interix[[3-9]]*) 4347 + version_type=linux 4348 + need_lib_prefix=no 4349 + need_version=no 4350 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4351 + soname_spec='${libname}${release}${shared_ext}$major' 4352 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4353 + shlibpath_var=LD_LIBRARY_PATH 4354 + shlibpath_overrides_runpath=no 4355 + hardcode_into_libs=yes 4356 + ;; 4357 4609 - 4358 4610 - case $lt_cv_dlopen_self_static in 4359 4611 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4360 4612 - *) enable_dlopen_self_static=unknown ;; 4361 +irix5* | irix6* | nonstopux*) 4362 + case $host_os in 4363 + nonstopux*) version_type=nonstopux ;; 4364 + *) 4365 + if test "$lt_cv_prog_gnu_ld" = yes; then 4366 + version_type=linux 4367 + else 4368 + version_type=irix 4369 + fi ;; 4370 esac 4613 - esac 4371 4614 -fi 4372 4615 -])# AC_LIBTOOL_DLOPEN_SELF 4373 - 4374 + need_lib_prefix=no 4375 + need_version=no 4376 + soname_spec='${libname}${release}${shared_ext}$major' 4377 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4378 + case $host_os in 4379 + irix5* | nonstopux*) 4380 + libsuff= shlibsuff= 4381 + ;; 4382 + *) 4383 + case $LD in # libtool.m4 will add one of these switches to LD 4384 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4385 + libsuff= shlibsuff= libmagic=32-bit;; 4386 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4387 + libsuff=32 shlibsuff=N32 libmagic=N32;; 4388 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4389 + libsuff=64 shlibsuff=64 libmagic=64-bit;; 4390 + *) libsuff= shlibsuff= libmagic=never-match;; 4391 + esac 4392 + ;; 4393 + esac 4394 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4395 + shlibpath_overrides_runpath=no 4396 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4397 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4398 + hardcode_into_libs=yes 4399 + ;; 4616 +# AC_ENABLE_SHARED([DEFAULT]) 4617 +# --------------------------- 4618 +# implement the --enable-shared flag 4619 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 4620 +AC_DEFUN([AC_ENABLE_SHARED], 4621 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 4622 +AC_ARG_ENABLE([shared], 4623 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 4624 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 4625 + [p=${PACKAGE-default} 4626 + case $enableval in 4627 + yes) enable_shared=yes ;; 4628 + no) enable_shared=no ;; 4629 + *) 4630 + enable_shared=no 4631 + # Look at the argument we got. We use all the common list separators. 4632 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4633 + for pkg in $enableval; do 4634 + IFS="$lt_save_ifs" 4635 + if test "X$pkg" = "X$p"; then 4636 + enable_shared=yes 4637 + fi 4638 + done 4639 + IFS="$lt_save_ifs" 4640 + ;; 4641 + esac], 4642 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 4643 +])# AC_ENABLE_SHARED 4644 4400 4645 4401 4646 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) … … 4412 4657 - mkdir out 4413 4658 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 4414 +# No shared lib support for Linux oldld, aout, or coff. 4415 +linux*oldld* | linux*aout* | linux*coff*) 4416 + dynamic_linker=no 4417 + ;; 4659 +# AC_DISABLE_SHARED 4660 +# ----------------- 4661 +# set the default shared flag to --disable-shared 4662 +AC_DEFUN([AC_DISABLE_SHARED], 4663 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4664 +AC_ENABLE_SHARED(no) 4665 +])# AC_DISABLE_SHARED 4418 4666 4419 4667 - lt_compiler_flag="-o out/conftest2.$ac_objext" … … 4452 4700 -]) 4453 4701 -])# AC_LIBTOOL_PROG_CC_C_O 4454 +# This must be Linux ELF. 4455 +linux* | k*bsd*-gnu) 4456 + version_type=linux 4457 + need_lib_prefix=no 4458 + need_version=no 4459 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4460 + soname_spec='${libname}${release}${shared_ext}$major' 4461 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4462 + shlibpath_var=LD_LIBRARY_PATH 4463 + shlibpath_overrides_runpath=no 4464 + # This implies no fast_install, which is unacceptable. 4465 + # Some rework will be needed to allow for fast_install 4466 + # before this can be enabled. 4467 + hardcode_into_libs=yes 4468 4469 + # Append ld.so.conf contents to the search path 4470 + if test -f /etc/ld.so.conf; then 4471 + 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' ' '` 4472 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4473 + fi 4702 4703 +# AC_ENABLE_STATIC([DEFAULT]) 4704 +# --------------------------- 4705 +# implement the --enable-static flag 4706 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 4707 +AC_DEFUN([AC_ENABLE_STATIC], 4708 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 4709 +AC_ARG_ENABLE([static], 4710 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 4711 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 4712 + [p=${PACKAGE-default} 4713 + case $enableval in 4714 + yes) enable_static=yes ;; 4715 + no) enable_static=no ;; 4716 + *) 4717 + enable_static=no 4718 + # Look at the argument we got. We use all the common list separators. 4719 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4720 + for pkg in $enableval; do 4721 + IFS="$lt_save_ifs" 4722 + if test "X$pkg" = "X$p"; then 4723 + enable_static=yes 4724 + fi 4725 + done 4726 + IFS="$lt_save_ifs" 4727 + ;; 4728 + esac], 4729 + [enable_static=]AC_ENABLE_STATIC_DEFAULT) 4730 +])# AC_ENABLE_STATIC 4474 4731 4475 4732 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) … … 4478 4735 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 4479 4736 -[AC_REQUIRE([_LT_AC_LOCK])dnl 4480 + # We used to test for /lib/ld.so.1 and disable shared libraries on4481 + # powerpc, because MkLinux only supported shared libraries with the4482 + # GNU dynamic linker. Since this was broken with cross compilers,4483 + # most powerpc-linux boxes support dynamic linking these days and4484 + # people can always --disable-shared, the test was removed, and we4485 + # assume the GNU/Linux dynamic linker is in use.4486 + dynamic_linker='GNU/Linux ld.so'4487 + ;;4488 4737 4489 4738 -hard_links="nottested" … … 4506 4755 -fi 4507 4756 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 4508 - 4509 - 4757 +# AC_DISABLE_STATIC 4758 +# ----------------- 4759 +# set the default static flag to --disable-static 4760 +AC_DEFUN([AC_DISABLE_STATIC], 4761 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4762 +AC_ENABLE_STATIC(no) 4763 +])# AC_DISABLE_STATIC 4764 4765 4510 4766 -# AC_LIBTOOL_OBJDIR 4511 4767 -# ----------------- … … 4523 4779 -objdir=$lt_cv_objdir 4524 4780 -])# AC_LIBTOOL_OBJDIR 4525 - 4526 - 4781 +# AC_ENABLE_FAST_INSTALL([DEFAULT]) 4782 +# --------------------------------- 4783 +# implement the --enable-fast-install flag 4784 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 4785 +AC_DEFUN([AC_ENABLE_FAST_INSTALL], 4786 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 4787 +AC_ARG_ENABLE([fast-install], 4788 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 4789 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 4790 + [p=${PACKAGE-default} 4791 + case $enableval in 4792 + yes) enable_fast_install=yes ;; 4793 + no) enable_fast_install=no ;; 4794 + *) 4795 + enable_fast_install=no 4796 + # Look at the argument we got. We use all the common list separators. 4797 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4798 + for pkg in $enableval; do 4799 + IFS="$lt_save_ifs" 4800 + if test "X$pkg" = "X$p"; then 4801 + enable_fast_install=yes 4802 + fi 4803 + done 4804 + IFS="$lt_save_ifs" 4805 + ;; 4806 + esac], 4807 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 4808 +])# AC_ENABLE_FAST_INSTALL 4809 4810 4527 4811 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 4528 4812 -# ---------------------------------------------- … … 4534 4818 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 4535 4819 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 4536 +netbsdelf*-gnu) 4537 + version_type=linux 4538 + need_lib_prefix=no 4539 + need_version=no 4540 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4541 + soname_spec='${libname}${release}${shared_ext}$major' 4542 + shlibpath_var=LD_LIBRARY_PATH 4543 + shlibpath_overrides_runpath=no 4544 + hardcode_into_libs=yes 4545 + dynamic_linker='NetBSD ld.elf_so' 4546 + ;; 4820 +# AC_DISABLE_FAST_INSTALL 4821 +# ----------------------- 4822 +# set the default to --disable-fast-install 4823 +AC_DEFUN([AC_DISABLE_FAST_INSTALL], 4824 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4825 +AC_ENABLE_FAST_INSTALL(no) 4826 +])# AC_DISABLE_FAST_INSTALL 4547 4827 4548 4828 - # We can hardcode non-existant directories. … … 4555 4835 - # Linking always hardcodes the temporary library directory. 4556 4836 - _LT_AC_TAGVAR(hardcode_action, $1)=relink 4557 +netbsd*) 4558 + version_type=sunos 4559 + need_lib_prefix=no 4560 + need_version=no 4561 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4562 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4563 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4564 + dynamic_linker='NetBSD (a.out) ld.so' 4565 else 4837 - else 4566 4838 - # We can link without hardcoding, and we can hardcode nonexisting dirs. 4567 4839 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate 4568 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4569 + soname_spec='${libname}${release}${shared_ext}$major' 4570 + dynamic_linker='NetBSD ld.elf_so' 4571 fi 4840 - fi 4572 4841 -else 4573 4842 - # We cannot hardcode anything, or else we can only hardcode existing … … 4576 4845 -fi 4577 4846 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 4578 + shlibpath_var=LD_LIBRARY_PATH4579 + shlibpath_overrides_runpath=yes4580 + hardcode_into_libs=yes4581 + ;;4582 4847 4583 4848 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then … … 4590 4855 -fi 4591 4856 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 4592 +newsos6) 4593 + version_type=linux 4594 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4595 + shlibpath_var=LD_LIBRARY_PATH 4596 + shlibpath_overrides_runpath=yes 4597 + ;; 4598 4599 +nto-qnx*) 4600 + version_type=linux 4601 + need_lib_prefix=no 4602 + need_version=no 4603 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4604 + soname_spec='${libname}${release}${shared_ext}$major' 4605 + shlibpath_var=LD_LIBRARY_PATH 4606 + shlibpath_overrides_runpath=yes 4607 + ;; 4857 +# AC_LIBTOOL_PICMODE([MODE]) 4858 +# -------------------------- 4859 +# implement the --with-pic flag 4860 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 4861 +AC_DEFUN([AC_LIBTOOL_PICMODE], 4862 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 4863 +pic_mode=ifelse($#,1,$1,default) 4864 +])# AC_LIBTOOL_PICMODE 4865 4608 4866 4609 4867 -# AC_LIBTOOL_SYS_LIB_STRIP … … 4619 4877 -else 4620 4878 -# FIXME - insert some real tests, host_os isn't really good enough 4621 +openbsd*) 4622 + version_type=sunos 4623 + sys_lib_dlsearch_path_spec="/usr/lib" 4624 + need_lib_prefix=no 4625 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4626 case $host_os in 4879 - case $host_os in 4627 4880 - darwin*) 4628 4881 - if test -n "$STRIP" ; then … … 4636 4889 - AC_MSG_RESULT([no]) 4637 4890 - ;; 4638 + openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4639 + *) need_version=no ;; 4640 esac 4891 - esac 4641 4892 -fi 4642 4893 -])# AC_LIBTOOL_SYS_LIB_STRIP … … 4669 4920 - # okay in the real world where ";" in dirpaths is itself problematic. 4670 4921 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4671 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4672 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4673 + shlibpath_var=LD_LIBRARY_PATH 4674 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4675 + case $host_os in 4676 + openbsd2.[[89]] | openbsd2.[[89]].*) 4677 + shlibpath_overrides_runpath=no 4678 + ;; 4679 + *) 4680 + shlibpath_overrides_runpath=yes 4681 + ;; 4682 + esac 4683 else 4922 - else 4684 4923 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4685 + shlibpath_overrides_runpath=yes 4686 fi 4924 - fi 4687 4925 -else 4688 4926 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" … … 4694 4932 -# flags to be left without arguments 4695 4933 -need_version=unknown 4696 + ;; 4934 +# AC_PROG_EGREP 4935 +# ------------- 4936 +# This is predefined starting with Autoconf 2.54, so this conditional 4937 +# definition can be removed once we require Autoconf 2.54 or later. 4938 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 4939 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 4940 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4941 + then ac_cv_prog_egrep='grep -E' 4942 + else ac_cv_prog_egrep='egrep' 4943 + fi]) 4944 + EGREP=$ac_cv_prog_egrep 4945 + AC_SUBST([EGREP]) 4946 +])]) 4697 4947 4698 4948 -case $host_os in … … 4700 4950 - version_type=linux 4701 4951 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 4702 +os2*) 4703 + libname_spec='$name' 4704 + shrext_cmds=".dll" 4705 + need_lib_prefix=no 4706 + library_names_spec='$libname${shared_ext} $libname.a' 4707 + dynamic_linker='OS/2 ld.exe' 4708 shlibpath_var=LIBPATH 4709 + ;; 4952 - shlibpath_var=LIBPATH 4710 4953 4711 4954 - # AIX 3 has no versioning support, so we append a major version to the name. 4712 +osf3* | osf4* | osf5*) 4713 + version_type=osf 4714 + need_lib_prefix=no 4715 + need_version=no 4716 soname_spec='${libname}${release}${shared_ext}$major' 4717 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4718 + shlibpath_var=LD_LIBRARY_PATH 4719 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4720 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4955 - soname_spec='${libname}${release}${shared_ext}$major' 4956 +# AC_PATH_TOOL_PREFIX 4957 +# ------------------- 4958 +# find a file program which can recognize shared library 4959 +AC_DEFUN([AC_PATH_TOOL_PREFIX], 4960 +[AC_REQUIRE([AC_PROG_EGREP])dnl 4961 +AC_MSG_CHECKING([for $1]) 4962 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 4963 +[case $MAGIC_CMD in 4964 +[[\\/*] | ?:[\\/]*]) 4965 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4721 4966 ;; 4967 +*) 4968 + lt_save_MAGIC_CMD="$MAGIC_CMD" 4969 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4970 +dnl $ac_dummy forces splitting on constant user-supplied paths. 4971 +dnl POSIX.2 word splitting is done only on the output of word expansions, 4972 +dnl not every word. This closes a longstanding sh security hole. 4973 + ac_dummy="ifelse([$2], , $PATH, [$2])" 4974 + for ac_dir in $ac_dummy; do 4975 + IFS="$lt_save_ifs" 4976 + test -z "$ac_dir" && ac_dir=. 4977 + if test -f $ac_dir/$1; then 4978 + lt_cv_path_MAGIC_CMD="$ac_dir/$1" 4979 + if test -n "$file_magic_test_file"; then 4980 + case $deplibs_check_method in 4981 + "file_magic "*) 4982 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 4983 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4984 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4985 + $EGREP "$file_magic_regex" > /dev/null; then 4986 + : 4987 + else 4988 + cat <<EOF 1>&2 4722 4989 4723 4990 -aix4* | aix5*) 4724 +rdos*) 4725 + dynamic_linker=no 4726 + ;; 4727 + 4728 +solaris*) 4729 version_type=linux 4730 need_lib_prefix=no 4731 need_version=no 4732 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4733 + soname_spec='${libname}${release}${shared_ext}$major' 4734 + shlibpath_var=LD_LIBRARY_PATH 4735 + shlibpath_overrides_runpath=yes 4736 hardcode_into_libs=yes 4991 - version_type=linux 4992 - need_lib_prefix=no 4993 - need_version=no 4994 - hardcode_into_libs=yes 4737 4995 - if test "$host_cpu" = ia64; then 4738 4996 - # AIX 5 supports IA64 … … 4753 5011 - else 4754 5012 - can_build_shared=no 4755 - fi 5013 +*** Warning: the command libtool uses to detect shared libraries, 5014 +*** $file_magic_cmd, produces output that libtool cannot recognize. 5015 +*** The result is that libtool may fail to recognize shared libraries 5016 +*** as such. This will affect the creation of libtool libraries that 5017 +*** depend on shared libraries, but programs linked with such libtool 5018 +*** libraries will work regardless of this problem. Nevertheless, you 5019 +*** may want to report the problem to your system manager and/or to 5020 +*** bug-libtool@gnu.org 5021 + 5022 +EOF 5023 + fi ;; 5024 + esac 5025 fi 4756 5026 - ;; 4757 5027 - esac … … 4769 5039 - library_names_spec='${libname}${release}.a $libname.a' 4770 5040 - soname_spec='${libname}${release}${shared_ext}$major' 4771 - fi 5041 + break 5042 fi 4772 5043 - shlibpath_var=LIBPATH 4773 5044 - fi 4774 + # ldd complains unless libraries are executable 4775 + postinstall_cmds='chmod +x $lib' 4776 ;; 4777 5045 - ;; 5046 - 4778 5047 -amigaos*) 4779 5048 - library_names_spec='$libname.ixlibrary $libname.a' … … 4786 5055 - dynamic_linker="$host_os ld.so" 4787 5056 - shlibpath_var=LIBRARY_PATH 4788 +sunos4*) 4789 + version_type=sunos 4790 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4791 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4792 + shlibpath_var=LD_LIBRARY_PATH 4793 + shlibpath_overrides_runpath=yes 4794 + if test "$with_gnu_ld" = yes; then 4795 + need_lib_prefix=no 4796 + fi 4797 + need_version=yes 4798 ;; 4799 5057 - ;; 5058 - 4800 5059 -bsdi[[45]]*) 4801 +sysv4 | sysv4.3*) 4802 version_type=linux 5060 - version_type=linux 4803 5061 - need_version=no 4804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'4805 soname_spec='${libname}${release}${shared_ext}$major'5062 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5063 - soname_spec='${libname}${release}${shared_ext}$major' 4806 5064 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4807 shlibpath_var=LD_LIBRARY_PATH5065 - shlibpath_var=LD_LIBRARY_PATH 4808 5066 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4809 5067 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" … … 4811 5069 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4812 5070 - # libtool to hard-code these into programs 4813 - ;; 4814 - 5071 + done 5072 + IFS="$lt_save_ifs" 5073 + MAGIC_CMD="$lt_save_MAGIC_CMD" 5074 ;; 5075 +esac]) 5076 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5077 +if test -n "$MAGIC_CMD"; then 5078 + AC_MSG_RESULT($MAGIC_CMD) 5079 +else 5080 + AC_MSG_RESULT(no) 5081 +fi 5082 +])# AC_PATH_TOOL_PREFIX 5083 4815 5084 -cygwin* | mingw* | pw32*) 4816 5085 - version_type=windows … … 4818 5087 - need_version=no 4819 5088 - need_lib_prefix=no 4820 - 5089 4821 5090 - case $GCC,$host_os in 4822 5091 - yes,cygwin* | yes,mingw* | yes,pw32*) … … 4833 5102 - $rm \$dlpath' 4834 5103 - shlibpath_overrides_runpath=yes 4835 - 5104 +# AC_PATH_MAGIC 5105 +# ------------- 5106 +# find a file program which can recognize a shared library 5107 +AC_DEFUN([AC_PATH_MAGIC], 5108 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5109 +if test -z "$lt_cv_path_MAGIC_CMD"; then 5110 + if test -n "$ac_tool_prefix"; then 5111 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5112 + else 5113 + MAGIC_CMD=: 5114 + fi 5115 +fi 5116 +])# AC_PATH_MAGIC 5117 4836 5118 - case $host_os in 4837 5119 - cygwin*) … … 4839 5121 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4840 5122 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 4841 + case $host_vendor in 4842 + sni) 4843 + shlibpath_overrides_runpath=no 4844 + need_lib_prefix=no 4845 + export_dynamic_flag_spec='${wl}-Blargedynsym' 4846 + runpath_var=LD_RUN_PATH 4847 ;; 5123 - ;; 4848 5124 - mingw*) 4849 5125 - # MinGW DLLs use traditional 'lib' prefix … … 4861 5137 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4862 5138 - fi 4863 + siemens) 4864 + need_lib_prefix=no 4865 ;; 5139 - ;; 4866 5140 - pw32*) 4867 5141 - # pw32 DLLs use 'pw' prefix rather than 'lib' 4868 5142 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4869 + motorola) 4870 + need_lib_prefix=no 4871 + need_version=no 4872 + shlibpath_overrides_runpath=no 4873 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4874 ;; 5143 - ;; 4875 5144 - esac 4876 5145 - ;; 4877 - 5146 4878 5147 - *) 4879 5148 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4880 5149 - ;; 4881 esac5150 - esac 4882 5151 - dynamic_linker='Win32 ld.exe' 4883 5152 - # FIXME: first we should search . and the directory the executable is in 4884 5153 - shlibpath_var=PATH 5154 +# AC_PROG_LD 5155 +# ---------- 5156 +# find the pathname to the GNU or non-GNU linker 5157 +AC_DEFUN([AC_PROG_LD], 5158 +[AC_ARG_WITH([gnu-ld], 5159 + [AC_HELP_STRING([--with-gnu-ld], 5160 + [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5161 + [test "$withval" = no || with_gnu_ld=yes], 5162 + [with_gnu_ld=no]) 5163 +AC_REQUIRE([LT_AC_PROG_SED])dnl 5164 +AC_REQUIRE([AC_PROG_CC])dnl 5165 +AC_REQUIRE([AC_CANONICAL_HOST])dnl 5166 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5167 +ac_prog=ld 5168 +if test "$GCC" = yes; then 5169 + # Check if gcc -print-prog-name=ld gives a path. 5170 + AC_MSG_CHECKING([for ld used by $CC]) 5171 + case $host in 5172 + *-*-mingw*) 5173 + # gcc leaves a trailing carriage return which upsets mingw 5174 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5175 + *) 5176 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5177 + esac 5178 + case $ac_prog in 5179 + # Accept absolute paths. 5180 + [[\\/]]* | ?:[[\\/]]*) 5181 + re_direlt='/[[^/]][[^/]]*/\.\./' 5182 + # Canonicalize the pathname of ld 5183 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5184 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5185 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5186 + done 5187 + test -z "$LD" && LD="$ac_prog" 5188 + ;; 5189 + "") 5190 + # If it fails, then pretend we aren't using GCC. 5191 + ac_prog=ld 5192 + ;; 5193 + *) 5194 + # If it is relative, then search for the first ld in PATH. 5195 + with_gnu_ld=unknown 5196 + ;; 5197 + esac 5198 +elif test "$with_gnu_ld" = yes; then 5199 + AC_MSG_CHECKING([for GNU ld]) 5200 +else 5201 + AC_MSG_CHECKING([for non-GNU ld]) 5202 +fi 5203 +AC_CACHE_VAL(lt_cv_path_LD, 5204 +[if test -z "$LD"; then 5205 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5206 + for ac_dir in $PATH; do 5207 + IFS="$lt_save_ifs" 5208 + test -z "$ac_dir" && ac_dir=. 5209 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5210 + lt_cv_path_LD="$ac_dir/$ac_prog" 5211 + # Check to see if the program is GNU ld. I'd rather use --version, 5212 + # but apparently some variants of GNU ld only accept -v. 5213 + # Break only if it was the GNU/non-GNU ld that we prefer. 5214 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5215 + *GNU* | *'with BFD'*) 5216 + test "$with_gnu_ld" != no && break 5217 + ;; 5218 + *) 5219 + test "$with_gnu_ld" != yes && break 5220 + ;; 5221 + esac 5222 + fi 5223 + done 5224 + IFS="$lt_save_ifs" 5225 +else 5226 + lt_cv_path_LD="$LD" # Let the user override the test with a path. 5227 +fi]) 5228 +LD="$lt_cv_path_LD" 5229 +if test -n "$LD"; then 5230 + AC_MSG_RESULT($LD) 5231 +else 5232 + AC_MSG_RESULT(no) 5233 +fi 5234 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5235 +AC_PROG_LD_GNU 5236 +])# AC_PROG_LD 5237 + 5238 + 5239 +# AC_PROG_LD_GNU 5240 +# -------------- 5241 +AC_DEFUN([AC_PROG_LD_GNU], 5242 +[AC_REQUIRE([AC_PROG_EGREP])dnl 5243 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5244 +[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5245 +case `$LD -v 2>&1 </dev/null` in 5246 +*GNU* | *'with BFD'*) 5247 + lt_cv_prog_gnu_ld=yes 4885 5248 ;; 5249 +*) 5250 + lt_cv_prog_gnu_ld=no 5251 + ;; 5252 +esac]) 5253 +with_gnu_ld=$lt_cv_prog_gnu_ld 5254 +])# AC_PROG_LD_GNU 4886 5255 4887 5256 -darwin* | rhapsody*) … … 4900 5269 - else 4901 5270 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 4902 +sysv4*MP*) 4903 + if test -d /usr/nec ;then 4904 + version_type=linux 4905 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4906 + soname_spec='$libname${shared_ext}.$major' 4907 + shlibpath_var=LD_LIBRARY_PATH 4908 fi 5271 - fi 4909 5272 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 5273 + 5274 +# AC_PROG_LD_RELOAD_FLAG 5275 +# ---------------------- 5276 +# find reload flag for linker 5277 +# -- PORTME Some linkers may need a different reload flag. 5278 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 5279 +[AC_CACHE_CHECK([for $LD option to reload object files], 5280 + lt_cv_ld_reload_flag, 5281 + [lt_cv_ld_reload_flag='-r']) 5282 +reload_flag=$lt_cv_ld_reload_flag 5283 +case $reload_flag in 5284 +"" | " "*) ;; 5285 +*) reload_flag=" $reload_flag" ;; 5286 +esac 5287 +reload_cmds='$LD$reload_flag -o $output$reload_objs' 5288 +case $host_os in 5289 + darwin*) 5290 + if test "$GCC" = yes; then 5291 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5292 + else 5293 + reload_cmds='$LD$reload_flag -o $output$reload_objs' 5294 + fi 5295 + ;; 5296 +esac 5297 +])# AC_PROG_LD_RELOAD_FLAG 5298 + 5299 + 5300 +# AC_DEPLIBS_CHECK_METHOD 5301 +# ----------------------- 5302 +# how to check for library dependencies 5303 +# -- PORTME fill in with the dynamic library characteristics 5304 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 5305 +[AC_CACHE_CHECK([how to recognize dependent libraries], 5306 +lt_cv_deplibs_check_method, 5307 +[lt_cv_file_magic_cmd='$MAGIC_CMD' 5308 +lt_cv_file_magic_test_file= 5309 +lt_cv_deplibs_check_method='unknown' 5310 +# Need to set the preceding variable on all platforms that support 5311 +# interlibrary dependencies. 5312 +# 'none' -- dependencies not supported. 5313 +# `unknown' -- same as none, but documents that we really don't know. 5314 +# 'pass_all' -- all dependencies passed with no checks. 5315 +# 'test_compile' -- check by making test program. 5316 +# 'file_magic [[regex]]' -- check by looking for files in library path 5317 +# which responds to the $file_magic_cmd with a given extended regex. 5318 +# If you have `file' or equivalent on your system and you're not sure 5319 +# whether `pass_all' will *always* work, you probably want this one. 5320 + 5321 +case $host_os in 5322 +aix4* | aix5*) 5323 + lt_cv_deplibs_check_method=pass_all 4910 5324 ;; 4911 5325 … … 4917 5331 - soname_spec='${libname}${release}${shared_ext}$major' 4918 5332 - shlibpath_var=LD_LIBRARY_PATH 4919 - ;; 4920 - 5333 +beos*) 5334 + lt_cv_deplibs_check_method=pass_all 5335 ;; 5336 4921 5337 -freebsd1*) 4922 5338 - dynamic_linker=no 4923 - ;; 4924 - 5339 +bsdi[[45]]*) 5340 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5341 + lt_cv_file_magic_cmd='/usr/bin/file -L' 5342 + lt_cv_file_magic_test_file=/shlib/libc.so 5343 ;; 5344 4925 5345 -kfreebsd*-gnu) 4926 5346 - version_type=linux 4927 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4928 + version_type=freebsd-elf 4929 need_lib_prefix=no 4930 need_version=no 5347 - need_lib_prefix=no 5348 - need_version=no 4931 5349 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4932 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4933 soname_spec='${libname}${release}${shared_ext}$major' 4934 shlibpath_var=LD_LIBRARY_PATH 5350 - soname_spec='${libname}${release}${shared_ext}$major' 5351 - shlibpath_var=LD_LIBRARY_PATH 4935 5352 - shlibpath_overrides_runpath=no 4936 hardcode_into_libs=yes5353 - hardcode_into_libs=yes 4937 5354 - dynamic_linker='GNU ld.so' 4938 - ;; 4939 - 5355 +cygwin*) 5356 + # func_win32_libid is a shell function defined in ltmain.sh 5357 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5358 + lt_cv_file_magic_cmd='func_win32_libid' 5359 ;; 5360 4940 5361 -freebsd* | dragonfly*) 4941 5362 - # DragonFly does not have aout. When/if they implement a new … … 4943 5364 - if test -x /usr/bin/objformat; then 4944 5365 - objformat=`/usr/bin/objformat` 4945 + if test "$with_gnu_ld" = yes; then 4946 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4947 + shlibpath_overrides_runpath=no 5366 +mingw* | pw32*) 5367 + # Base MSYS/MinGW do not provide the 'file' command needed by 5368 + # func_win32_libid shell function, so use a weaker test based on 'objdump', 5369 + # unless we find 'file', for example because we are cross-compiling. 5370 + if ( file / ) >/dev/null 2>&1; then 5371 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5372 + lt_cv_file_magic_cmd='func_win32_libid' 4948 5373 else 4949 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4950 + shlibpath_overrides_runpath=yes 4951 case $host_os in 5374 - case $host_os in 4952 5375 - freebsd[[123]]*) objformat=aout ;; 4953 5376 - *) objformat=elf ;; 4954 + sco3.2v5*) 4955 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4956 + ;; 4957 esac 5377 - esac 5378 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5379 + lt_cv_file_magic_cmd='$OBJDUMP -f' 4958 5380 fi 4959 5381 - version_type=freebsd-$objformat … … 4988 5410 - ;; 4989 5411 - esac 4990 + sys_lib_dlsearch_path_spec='/usr/lib'4991 5412 ;; 4992 5413 4993 5414 -gnu*) 4994 +uts4*) 4995 version_type=linux 5415 - version_type=linux 4996 5416 - need_lib_prefix=no 4997 5417 - need_version=no 4998 5418 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4999 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5000 soname_spec='${libname}${release}${shared_ext}$major' 5001 shlibpath_var=LD_LIBRARY_PATH 5419 - soname_spec='${libname}${release}${shared_ext}$major' 5420 - shlibpath_var=LD_LIBRARY_PATH 5002 5421 - hardcode_into_libs=yes 5422 +darwin* | rhapsody*) 5423 + lt_cv_deplibs_check_method=pass_all 5003 5424 ;; 5004 5425 … … 5047 5468 - # HP-UX runs *really* slowly unless shared libraries are mode 555. 5048 5469 - postinstall_cmds='chmod 555 $lib' 5049 +*) 5050 + dynamic_linker=no 5470 +freebsd* | dragonfly*) 5471 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5472 + case $host_cpu in 5473 + i*86 ) 5474 + # Not sure whether the presence of OpenBSD here was a mistake. 5475 + # Let's accept both of them until this is cleared up. 5476 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5477 + lt_cv_file_magic_cmd=/usr/bin/file 5478 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5479 + ;; 5480 + esac 5481 + else 5482 + lt_cv_deplibs_check_method=pass_all 5483 + fi 5051 5484 ;; 5052 +esac5053 +AC_MSG_RESULT([$dynamic_linker])5054 +test "$dynamic_linker" = no && can_build_shared=no5055 5485 5056 5486 -interix3*) … … 5064 5494 - shlibpath_overrides_runpath=no 5065 5495 - hardcode_into_libs=yes 5066 - ;; 5067 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5068 +if test "$GCC" = yes; then 5069 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5070 +fi 5071 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 5496 +gnu*) 5497 + lt_cv_deplibs_check_method=pass_all 5498 ;; 5072 5499 5073 5500 -irix5* | irix6* | nonstopux*) … … 5088 5515 - irix5* | nonstopux*) 5089 5516 - libsuff= shlibsuff= 5090 - ;; 5091 - *) 5517 +hpux10.20* | hpux11*) 5518 + lt_cv_file_magic_cmd=/usr/bin/file 5519 + case $host_cpu in 5520 + ia64*) 5521 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5522 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5523 + ;; 5524 + hppa*64*) 5525 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 5526 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5527 ;; 5528 *) 5092 5529 - case $LD in # libtool.m4 will add one of these switches to LD 5093 5530 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") … … 5099 5536 - *) libsuff= shlibsuff= libmagic=never-match;; 5100 5537 - esac 5101 - ;; 5102 - esac 5538 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 5539 + lt_cv_file_magic_test_file=/usr/lib/libc.sl 5540 ;; 5541 esac 5103 5542 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 5104 5543 - shlibpath_overrides_runpath=no … … 5106 5545 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 5107 5546 - hardcode_into_libs=yes 5108 -;;5547 ;; 5109 5548 5110 5549 -# No shared lib support for Linux oldld, aout, or coff. 5111 5550 -linux*oldld* | linux*aout* | linux*coff*) 5112 5551 - dynamic_linker=no 5113 - ;; 5114 +# _LT_AC_TAGCONFIG 5115 +# ---------------- 5116 +AC_DEFUN([_LT_AC_TAGCONFIG], 5117 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 5118 +AC_ARG_WITH([tags], 5119 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 5120 + [include additional configurations @<:@automatic@:>@])], 5121 + [tagnames="$withval"]) 5552 +interix[[3-9]]*) 5553 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5554 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5555 ;; 5122 5556 5123 5557 -# This must be Linux ELF. … … 5135 5569 - # before this can be enabled. 5136 5570 - hardcode_into_libs=yes 5137 +if test -f "$ltmain" && test -n "$tagnames"; then 5138 + if test ! -f "${ofile}"; then 5139 + AC_MSG_WARN([output file `$ofile' does not exist]) 5140 + fi 5141 5571 - 5142 5572 - # Append ld.so.conf contents to the search path 5143 5573 - if test -f /etc/ld.so.conf; then 5144 5574 - 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' ' '` 5145 5575 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 5146 + if test -z "$LTCC"; then 5147 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 5148 + if test -z "$LTCC"; then 5149 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 5150 + else 5151 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 5152 + fi 5153 + fi 5154 + if test -z "$LTCFLAGS"; then 5155 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 5156 fi 5157 5576 - fi 5577 - 5158 5578 - # We used to test for /lib/ld.so.1 and disable shared libraries on 5159 5579 - # powerpc, because MkLinux only supported shared libraries with the … … 5163 5583 - # assume the GNU/Linux dynamic linker is in use. 5164 5584 - dynamic_linker='GNU/Linux ld.so' 5165 - ;; 5166 + # Extract list of available tagged configurations in $ofile. 5167 + # Note that this assumes the entire list is on one line. 5168 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 5585 +irix5* | irix6* | nonstopux*) 5586 + case $LD in 5587 + *-32|*"-32 ") libmagic=32-bit;; 5588 + *-n32|*"-n32 ") libmagic=N32;; 5589 + *-64|*"-64 ") libmagic=64-bit;; 5590 + *) libmagic=never-match;; 5591 + esac 5592 + lt_cv_deplibs_check_method=pass_all 5593 ;; 5169 5594 5170 5595 -knetbsd*-gnu) … … 5178 5603 - hardcode_into_libs=yes 5179 5604 - dynamic_linker='GNU ld.so' 5180 - ;; 5181 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5182 + for tagname in $tagnames; do 5183 + IFS="$lt_save_ifs" 5184 + # Check whether tagname contains only valid characters 5185 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 5186 + "") ;; 5187 + *) AC_MSG_ERROR([invalid tag name: $tagname]) 5188 + ;; 5189 + esac 5605 +# This must be Linux ELF. 5606 +linux* | k*bsd*-gnu) 5607 + lt_cv_deplibs_check_method=pass_all 5608 ;; 5190 5609 5191 5610 -netbsd*) … … 5197 5616 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5198 5617 - dynamic_linker='NetBSD (a.out) ld.so' 5199 - else 5618 +netbsd* | netbsdelf*-gnu) 5619 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5620 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5621 else 5200 5622 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 5201 5623 - soname_spec='${libname}${release}${shared_ext}$major' 5202 5624 - dynamic_linker='NetBSD ld.elf_so' 5203 - fi 5625 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5626 fi 5204 5627 - shlibpath_var=LD_LIBRARY_PATH 5205 5628 - shlibpath_overrides_runpath=yes 5206 5629 - hardcode_into_libs=yes 5207 - ;; 5208 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 5209 + then 5210 + AC_MSG_ERROR([tag name \"$tagname\" already exists]) 5211 + fi 5630 ;; 5212 5631 5213 5632 -newsos6) … … 5216 5635 - shlibpath_var=LD_LIBRARY_PATH 5217 5636 - shlibpath_overrides_runpath=yes 5218 - ;; 5219 + # Update the list of available tags. 5220 + if test -n "$tagname"; then 5221 + echo appending configuration tag \"$tagname\" to $ofile 5222 5223 -nto-qnx*) 5637 +newos6*) 5638 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5639 + lt_cv_file_magic_cmd=/usr/bin/file 5640 + lt_cv_file_magic_test_file=/usr/lib/libnls.so 5641 ;; 5642 5643 nto-qnx*) 5224 5644 - version_type=linux 5225 5645 - need_lib_prefix=no … … 5229 5649 - shlibpath_var=LD_LIBRARY_PATH 5230 5650 - shlibpath_overrides_runpath=yes 5231 - ;; 5232 + case $tagname in 5233 + CXX) 5234 + if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5235 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5236 + (test "X$CXX" != "Xg++"))) ; then 5237 + AC_LIBTOOL_LANG_CXX_CONFIG 5238 + else 5239 + tagname="" 5240 + fi 5241 + ;; 5242 5243 -openbsd*) 5651 + lt_cv_deplibs_check_method=unknown 5652 ;; 5653 5654 openbsd*) 5244 5655 - version_type=sunos 5245 5656 - sys_lib_dlsearch_path_spec="/usr/lib" … … 5253 5664 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5254 5665 - shlibpath_var=LD_LIBRARY_PATH 5255 -if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then5666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5256 5667 - case $host_os in 5257 5668 - openbsd2.[[89]] | openbsd2.[[89]].*) 5258 5669 - shlibpath_overrides_runpath=no 5259 + F77) 5260 + if test -n "$F77" && test "X$F77" != "Xno"; then 5261 + AC_LIBTOOL_LANG_F77_CONFIG 5262 + else 5263 + tagname="" 5264 + fi 5265 + ;; 5266 + 5267 + GCJ) 5268 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 5269 + AC_LIBTOOL_LANG_GCJ_CONFIG 5270 + else 5271 + tagname="" 5272 + fi 5273 + ;; 5274 + 5275 + RC) 5276 + AC_LIBTOOL_LANG_RC_CONFIG 5277 ;; 5278 + 5279 *) 5670 - ;; 5671 - *) 5280 5672 - shlibpath_overrides_runpath=yes 5281 + AC_MSG_ERROR([Unsupported tag name: $tagname]) 5282 ;; 5283 esac 5284 + 5285 + # Append the new tag name to the list of available tags. 5286 + if test -n "$tagname" ; then 5287 + available_tags="$available_tags $tagname" 5288 + fi 5289 + fi 5290 + done 5291 + IFS="$lt_save_ifs" 5292 + 5293 + # Now substitute the updated list of available tags. 5294 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 5295 + mv "${ofile}T" "$ofile" 5296 + chmod +x "$ofile" 5673 - ;; 5674 - esac 5675 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5297 5676 else 5298 5677 - shlibpath_overrides_runpath=yes 5299 + rm -f "${ofile}T" 5300 + AC_MSG_ERROR([unable to update list of available tagged configurations.]) 5678 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5301 5679 fi 5302 -;;5303 - 5680 ;; 5681 5304 5682 -os2*) 5305 5683 - libname_spec='$name' … … 5310 5688 - shlibpath_var=LIBPATH 5311 5689 - ;; 5312 +fi 5313 +])# _LT_AC_TAGCONFIG 5314 5315 -osf3* | osf4* | osf5*) 5690 - 5691 osf3* | osf4* | osf5*) 5316 5692 - version_type=osf 5317 5693 - need_lib_prefix=no … … 5322 5698 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 5323 5699 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 5324 - ;; 5700 + lt_cv_deplibs_check_method=pass_all 5701 ;; 5325 5702 5326 5703 -solaris*) … … 5335 5712 - # ldd complains unless libraries are executable 5336 5713 - postinstall_cmds='chmod +x $lib' 5337 - ;; 5338 - 5714 +rdos*) 5715 + lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5339 5718 -sunos4*) 5340 5719 - version_type=sunos … … 5347 5726 - fi 5348 5727 - need_version=yes 5349 - ;; 5350 - 5351 -sysv4 | sysv4.3*) 5728 +solaris*) 5729 + lt_cv_deplibs_check_method=pass_all 5730 ;; 5731 5732 sysv4 | sysv4.3*) 5352 5733 - version_type=linux 5353 5734 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 5354 5735 - soname_spec='${libname}${release}${shared_ext}$major' 5355 5736 - shlibpath_var=LD_LIBRARY_PATH 5356 -case $host_vendor in5737 case $host_vendor in 5357 5738 - sni) 5358 5739 - shlibpath_overrides_runpath=no … … 5370 5751 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 5371 5752 - ;; 5372 - esac 5373 - ;; 5374 - 5753 + motorola) 5754 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 5755 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5756 + ;; 5757 + ncr) 5758 + lt_cv_deplibs_check_method=pass_all 5759 + ;; 5760 + sequent) 5761 + lt_cv_file_magic_cmd='/bin/file' 5762 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5763 + ;; 5764 + sni) 5765 + lt_cv_file_magic_cmd='/bin/file' 5766 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5767 + lt_cv_file_magic_test_file=/lib/libc.so 5768 + ;; 5769 + siemens) 5770 + lt_cv_deplibs_check_method=pass_all 5771 + ;; 5772 + pc) 5773 + lt_cv_deplibs_check_method=pass_all 5774 + ;; 5775 esac 5776 ;; 5777 5375 5778 -sysv4*MP*) 5376 5779 - if test -d /usr/nec ;then … … 5380 5783 - shlibpath_var=LD_LIBRARY_PATH 5381 5784 - fi 5382 - ;; 5383 - 5785 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5786 + lt_cv_deplibs_check_method=pass_all 5787 ;; 5788 +esac 5789 +]) 5790 +file_magic_cmd=$lt_cv_file_magic_cmd 5791 +deplibs_check_method=$lt_cv_deplibs_check_method 5792 +test -z "$deplibs_check_method" && deplibs_check_method=unknown 5793 +])# AC_DEPLIBS_CHECK_METHOD 5794 5384 5795 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5385 5796 - version_type=freebsd-elf … … 5401 5812 - ;; 5402 5813 - esac 5403 - fi 5814 + 5815 +# AC_PROG_NM 5816 +# ---------- 5817 +# find the pathname to a BSD-compatible name lister 5818 +AC_DEFUN([AC_PROG_NM], 5819 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 5820 +[if test -n "$NM"; then
