187 |
[ --disable-libtool-lock avoid locking (might break parallel builds)]) |
[ --disable-libtool-lock avoid locking (might break parallel builds)]) |
188 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
189 |
|
|
|
_LT_AC_LOCK |
|
190 |
_LT_AC_LTCONFIG_HACK |
_LT_AC_LTCONFIG_HACK |
|
_LT_AC_TAGCONFIG |
|
191 |
])# AC_LIBTOOL_SETUP |
])# AC_LIBTOOL_SETUP |
192 |
|
|
193 |
|
|
460 |
|
|
461 |
|
|
462 |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
463 |
# [ACTION-SUCCESS], [ACTION-FAILURE]) |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
464 |
# -------------------------------------------------------------- |
# ---------------------------------------------------------------- |
465 |
# Check whether the given compiler option works |
# Check whether the given compiler option works |
466 |
AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION, |
AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION, |
467 |
[AC_CACHE_CHECK([$1], [$2], |
[AC_CACHE_CHECK([$1], [$2], |
468 |
[$2=no |
[$2=no |
469 |
save_CFLAGS="$CFLAGS" |
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
470 |
CFLAGS="$CFLAGS $3" |
save_CFLAGS="$CFLAGS" |
471 |
AC_TRY_COMPILE([], [$lt_simple_compile_test_code], |
CFLAGS="$CFLAGS $3" |
472 |
[# The compiler can only warn and ignore the option if not recognized |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
473 |
|
if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
474 |
|
# The compiler can only warn and ignore the option if not recognized |
475 |
# So say no if there are warnings |
# So say no if there are warnings |
476 |
if test -s conftest.err; then |
if test -s conftest.err; then |
477 |
$2=no |
# Append any errors to the config.log. |
478 |
|
cat conftest.err 1>&AC_FD_CC |
479 |
else |
else |
480 |
$2=yes |
$2=yes |
481 |
fi], |
fi |
482 |
[$2=no]) |
fi |
483 |
CFLAGS="$save_CFLAGS" |
$rm conftest* |
484 |
|
CFLAGS="$save_CFLAGS" |
485 |
]) |
]) |
486 |
|
|
487 |
if test x"[$]$2" = xyes; then |
if test x"[$]$2" = xyes; then |
|
ifelse([$4], , :, [$4]) |
|
|
else |
|
488 |
ifelse([$5], , :, [$5]) |
ifelse([$5], , :, [$5]) |
489 |
|
else |
490 |
|
ifelse([$6], , :, [$6]) |
491 |
fi |
fi |
492 |
])# AC_LIBTOOL_COMPILER_OPTION |
])# AC_LIBTOOL_COMPILER_OPTION |
493 |
|
|
499 |
AC_DEFUN(AC_LIBTOOL_LINKER_OPTION, |
AC_DEFUN(AC_LIBTOOL_LINKER_OPTION, |
500 |
[AC_CACHE_CHECK([$1], [$2], |
[AC_CACHE_CHECK([$1], [$2], |
501 |
[$2=no |
[$2=no |
502 |
save_LDFLAGS="$LDFLAGS" |
save_LDFLAGS="$LDFLAGS" |
503 |
LDFLAGS="$LDFLAGS $3" |
LDFLAGS="$LDFLAGS $3" |
504 |
AC_TRY_LINK([], [$lt_simple_link_test_code], |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
505 |
[# The compiler can only warn and ignore the option if not recognized |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
506 |
|
# The compiler can only warn and ignore the option if not recognized |
507 |
# So say no if there are warnings |
# So say no if there are warnings |
508 |
if test -s conftest.err; then |
if test -s conftest.err; then |
509 |
$2=no |
# Append any errors to the config.log. |
510 |
|
cat conftest.err 1>&AC_FD_CC |
511 |
else |
else |
512 |
$2=yes |
$2=yes |
513 |
fi], |
fi |
514 |
[$2=no]) |
fi |
515 |
LDFLAGS="$save_LDFLAGS" |
$rm conftest* |
516 |
|
LDFLAGS="$save_LDFLAGS" |
517 |
]) |
]) |
518 |
|
|
519 |
if test x"[$]$2" = xyes; then |
if test x"[$]$2" = xyes; then |
630 |
|
|
631 |
# Check to see that the pipe works correctly. |
# Check to see that the pipe works correctly. |
632 |
pipe_works=no |
pipe_works=no |
633 |
|
|
634 |
rm -f conftest* |
rm -f conftest* |
635 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
636 |
#ifdef __cplusplus |
#ifdef __cplusplus |
867 |
[AC_CHECK_LIB(svld, dlopen, |
[AC_CHECK_LIB(svld, dlopen, |
868 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
869 |
[AC_CHECK_LIB(dld, shl_load, |
[AC_CHECK_LIB(dld, shl_load, |
870 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
871 |
]) |
]) |
872 |
]) |
]) |
873 |
]) |
]) |
930 |
|
|
931 |
# AC_LIBTOOL_PROG_CC_C_O |
# AC_LIBTOOL_PROG_CC_C_O |
932 |
# ---------------------- |
# ---------------------- |
933 |
|
# Check to see if options -c and -o are simultaneously supported by compiler |
934 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
935 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
936 |
|
|
937 |
# Check to see if options -c and -o are simultaneously supported by compiler |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
938 |
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) |
[lt_cv_compiler_c_o], |
939 |
AC_CACHE_VAL([lt_cv_compiler_c_o], [ |
[lt_cv_compiler_c_o=no |
940 |
$rm -r conftest 2>/dev/null |
$rm -r conftest 2>/dev/null |
941 |
mkdir conftest |
mkdir conftest |
942 |
cd conftest |
cd conftest |
943 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
mkdir out |
944 |
mkdir out |
save_CFLAGS="$CFLAGS" |
945 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
946 |
# that will create temporary files in the current directory regardless of |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
947 |
# the output directory. Thus, making CWD read-only will cause this test |
|
948 |
# to fail, enabling locking or at least warning the user not to do parallel |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
949 |
# builds. |
# that will create temporary files in the current directory regardless of |
950 |
chmod -w . |
# the output directory. Thus, making CWD read-only will cause this test |
951 |
save_CFLAGS="$CFLAGS" |
# to fail, enabling locking or at least warning the user not to do parallel |
952 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
# builds. |
953 |
compiler_c_o=no |
chmod -w . |
954 |
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
955 |
# The compiler can only warn and ignore the option if not recognized |
if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
956 |
# So say no if there are warnings |
then |
957 |
if test -s out/conftest.err; then |
# The compiler can only warn and ignore the option if not recognized |
958 |
lt_cv_compiler_c_o=no |
# So say no if there are warnings |
959 |
else |
if test -s out/conftest.err; then |
960 |
lt_cv_compiler_c_o=yes |
# Append any errors to the config.log. |
961 |
fi |
cat out/conftest.err 1>&AC_FD_CC |
962 |
else |
else |
963 |
# Append any errors to the config.log. |
lt_cv_compiler_c_o=yes |
964 |
cat out/conftest.err 1>&AC_FD_CC |
fi |
965 |
lt_cv_compiler_c_o=no |
fi |
966 |
fi |
CFLAGS="$save_CFLAGS" |
967 |
CFLAGS="$save_CFLAGS" |
|
968 |
chmod u+w . |
chmod u+w . |
969 |
$rm conftest* out/* |
$rm conftest* out/* |
970 |
rmdir out |
rmdir out |
971 |
cd .. |
cd .. |
972 |
rmdir conftest |
rmdir conftest |
973 |
$rm -r conftest 2>/dev/null |
$rm conftest* |
974 |
]) |
]) |
975 |
compiler_c_o=$lt_cv_compiler_c_o |
compiler_c_o=$lt_cv_compiler_c_o |
|
AC_MSG_RESULT([$compiler_c_o]) |
|
|
|
|
|
if test x"$compiler_c_o" = x"yes"; then |
|
|
# Check to see if we can write to a .lo |
|
|
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -c -o file.lo], |
|
|
lt_cv_prog_cc_c_o_lo, [-c -o conftest.lo]) |
|
|
compiler_o_lo=$lt_cv_prog_cc_c_o_lo |
|
|
else |
|
|
compiler_o_lo=no |
|
|
fi |
|
976 |
])# AC_LIBTOOL_PROG_CC_C_O |
])# AC_LIBTOOL_PROG_CC_C_O |
977 |
|
|
978 |
|
|
984 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
985 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
986 |
lt_cv_prog_cc_rtti_exceptions, |
lt_cv_prog_cc_rtti_exceptions, |
987 |
[-fno-rtti -fno-exceptions -c conftest.$ac_ext], |
[-fno-rtti -fno-exceptions -c conftest.$ac_ext], [], |
988 |
[no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'], |
[no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'], |
989 |
[no_builtin_flag=' -fno-builtin']) |
[no_builtin_flag=' -fno-builtin']) |
990 |
compiler_rtti_exceptions=$lt_cv_prog_cc_rtti_exceptions |
compiler_rtti_exceptions=$lt_cv_prog_cc_rtti_exceptions |
1164 |
else |
else |
1165 |
AC_MSG_RESULT([$lt_cv_prog_cc_pic]) |
AC_MSG_RESULT([$lt_cv_prog_cc_pic]) |
1166 |
fi |
fi |
1167 |
|
|
1168 |
|
# Check for any special shared library compilation flags. |
1169 |
|
if test -n "$lt_cv_prog_cc_shlib"; then |
1170 |
|
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) |
1171 |
|
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then : |
1172 |
|
else |
1173 |
|
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) |
1174 |
|
lt_cv_prog_cc_can_build_shared=no |
1175 |
|
fi |
1176 |
|
fi |
1177 |
|
|
1178 |
|
pic_flag="$lt_cv_prog_cc_pic" |
1179 |
|
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
1180 |
|
wl="$lt_cv_prog_cc_wl" |
1181 |
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
1182 |
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
1183 |
])# AC_LIBTOOL_PROG_CC_PIC |
])# AC_LIBTOOL_PROG_CC_PIC |
1184 |
|
|
1185 |
|
|
1191 |
if test -n "$lt_cv_prog_cc_pic"; then |
if test -n "$lt_cv_prog_cc_pic"; then |
1192 |
# Check to make sure the pic_flag actually works. |
# Check to make sure the pic_flag actually works. |
1193 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $lt_cv_prog_cc_pic works], |
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $lt_cv_prog_cc_pic works], |
1194 |
lt_cv_prog_cc_pic_works, [$lt_cv_prog_cc_pic -DPIC], |
lt_cv_prog_cc_pic_works, [$lt_cv_prog_cc_pic -DPIC], [], |
1195 |
[lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"], |
[case $lt_cv_prog_cc_pic in |
1196 |
|
"" | " "*) ;; |
1197 |
|
*) lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" ;; |
1198 |
|
esac], |
1199 |
[lt_cv_prog_cc_pic= |
[lt_cv_prog_cc_pic= |
1200 |
lt_cv_prog_cc_can_build_shared=no]) |
lt_cv_prog_cc_can_build_shared=no]) |
1201 |
fi |
fi |
1202 |
])# AC_LIBTOOL_PROG_CC_PIC_WORKS |
])# AC_LIBTOOL_PROG_CC_PIC_WORKS |
1203 |
|
|
1204 |
|
|
1205 |
# AC_LIBTOOL_PROG_CC_STATIC |
# AC_LIBTOOL_PROG_CC_STATIC_WORKS |
1206 |
# ------------------------- |
# ------------------------------- |
1207 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_STATIC], |
AC_DEFUN([AC_LIBTOOL_PROG_CC_STATIC_WORKS], |
1208 |
[## FIXME: lt_cv_prog_cc_static is set from here at the moment: |
[## FIXME: lt_cv_prog_cc_static is set from here at the moment: |
1209 |
AC_REQUIRE([AC_LIBTOOL_PROG_CC_PIC]) |
AC_REQUIRE([AC_LIBTOOL_PROG_CC_PIC]) |
1210 |
|
|
1214 |
[], |
[], |
1215 |
lt_cv_prog_cc_static=) |
lt_cv_prog_cc_static=) |
1216 |
link_static_flag="$lt_cv_prog_cc_static" |
link_static_flag="$lt_cv_prog_cc_static" |
1217 |
])# AC_LIBTOOL_PROG_CC_STATIC |
])# AC_LIBTOOL_PROG_CC_STATIC_WORKS |
|
|
|
|
|
|
|
# _LT_AC_TAGCONFIG |
|
|
# ---------------- |
|
|
AC_DEFUN([_LT_AC_TAGCONFIG], |
|
|
[AC_ARG_WITH(tag, |
|
|
[ --with-tags=TAG[:TAG] include an alternate configuration], |
|
|
tagnames="$withval", tagnames=) |
|
|
|
|
|
## Dependencies to place before and after the object being linked: |
|
|
predep_objects= |
|
|
postdep_objects= |
|
|
predeps= |
|
|
postdeps= |
|
|
compiler_lib_search_path= |
|
1218 |
|
|
|
if test -n "$tagnames"; then |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
for tagname in $tagnames; do |
|
|
# Check whether tagname contains only valid characters |
|
|
[case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in] |
|
|
"") ;; |
|
|
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
|
|
;; |
|
|
esac |
|
|
|
|
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$ofile" > /dev/null; then |
|
|
AC_MSG_ERROR([tag name $tagname already exists]) |
|
|
fi |
|
|
done |
|
1219 |
|
|
1220 |
if test ! -f "$ofile"; then |
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
1221 |
AC_MSG_WARN([output file \`$ofile' does not exist]) |
# ------------------------------ |
|
fi |
|
|
|
|
|
if test -z "$LTCC"; then |
|
|
eval "`$SHELL $ofile --config | grep '^LTCC='`" |
|
|
if test -z "$LTCC"; then |
|
|
AC_MSG_WARN([output file \`$ofile' does not look like a libtool script]) |
|
|
else |
|
|
AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile']) |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
])# _LT_AC_TAGCONFIG |
|
|
|
|
|
|
|
|
# _LT_AC_SYS_C_CONFIG |
|
|
# ------------------- |
|
|
AC_DEFUN([_LT_AC_SYS_C_CONFIG], |
|
|
[# Source file extension for C test sources. |
|
|
ac_ext=c |
|
|
|
|
|
# Object file extension for compiled C test sources. |
|
|
objext=o |
|
|
|
|
|
# Code to be used in simple compile tests |
|
|
lt_simple_compile_test_code="int some_variable = 0;" |
|
|
|
|
|
# Code to be used in simple link tests |
|
|
lt_simple_link_test_code='main(){return(0);}' |
|
|
])# _LT_AC_SYS_C_CONFIG |
|
|
|
|
|
|
|
|
# _LT_AC_LTCONFIG_HACK |
|
|
# -------------------- |
|
|
AC_DEFUN([_LT_AC_LTCONFIG_HACK], |
|
|
[AC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnl |
|
|
AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
|
|
AC_LIBTOOL_PROG_CC_PIC_WORKS |
|
|
AC_LIBTOOL_PROG_CC_NO_RTTI |
|
|
AC_LIBTOOL_PROG_CC_C_O |
|
|
AC_LIBTOOL_PROG_CC_STATIC |
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
## |
|
|
AC_MSG_CHECKING([for objdir]) |
|
|
rm -f .libs 2>/dev/null |
|
|
mkdir .libs 2>/dev/null |
|
|
if test -d .libs; then |
|
|
objdir=.libs |
|
|
else |
|
|
# MS-DOS does not allow filenames that begin with a dot. |
|
|
objdir=_libs |
|
|
fi |
|
|
rmdir .libs 2>/dev/null |
|
|
AC_MSG_RESULT($objdir) |
|
|
## |
|
|
## END FIXME |
|
|
|
|
|
# Check for any special shared library compilation flags. |
|
|
if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) |
|
|
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then : |
|
|
else |
|
|
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) |
|
|
lt_cv_prog_cc_can_build_shared=no |
|
|
fi |
|
|
fi |
|
|
|
|
|
pic_flag="$lt_cv_prog_cc_pic" |
|
|
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
wl="$lt_cv_prog_cc_wl" |
|
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
## |
|
1222 |
# Check to see if we can do hard links to lock some files if needed |
# Check to see if we can do hard links to lock some files if needed |
1223 |
|
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
1224 |
|
[AC_REQUIRE([_LT_AC_LOCK])dnl |
1225 |
|
AC_REQUIRE([AC_LIBTOOL_PROG_CC_C_O])dnl |
1226 |
|
|
1227 |
hard_links="nottested" |
hard_links="nottested" |
1228 |
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
1229 |
# do not overwrite the value of need_locks provided by the user |
# do not overwrite the value of need_locks provided by the user |
1242 |
else |
else |
1243 |
need_locks=no |
need_locks=no |
1244 |
fi |
fi |
1245 |
## |
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
|
## END FIXME |
|
1246 |
|
|
1247 |
|
|
1248 |
## FIXME: this should be a separate macro |
# AC_LIBTOOL_PROG_LD_SHLIBS |
1249 |
## |
# ------------------------- |
1250 |
# See if the linker supports building shared libraries. |
# See if the linker supports building shared libraries. |
1251 |
|
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
1252 |
|
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl |
1253 |
|
|
1254 |
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) |
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) |
1255 |
|
|
1256 |
allow_undefined_flag= |
allow_undefined_flag= |
1864 |
fi |
fi |
1865 |
AC_MSG_RESULT([$ld_shlibs]) |
AC_MSG_RESULT([$ld_shlibs]) |
1866 |
test "$ld_shlibs" = no && can_build_shared=no |
test "$ld_shlibs" = no && can_build_shared=no |
|
## |
|
|
## END FIXME |
|
1867 |
|
|
1868 |
## FIXME: this should be a separate macro |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
1869 |
## |
if test "$GCC" = yes; then |
1870 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
1871 |
|
fi |
1872 |
|
])# AC_LIBTOOL_PROG_LD_SHLIBS |
1873 |
|
|
1874 |
|
|
1875 |
|
# AC_LIBTOOL_OBJDIR |
1876 |
|
# ----------------- |
1877 |
|
AC_DEFUN([AC_LIBTOOL_OBJDIR], |
1878 |
|
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
1879 |
|
[rm -f .libs 2>/dev/null |
1880 |
|
mkdir .libs 2>/dev/null |
1881 |
|
if test -d .libs; then |
1882 |
|
lt_cv_objdir=.libs |
1883 |
|
else |
1884 |
|
# MS-DOS does not allow filenames that begin with a dot. |
1885 |
|
lt_cv_objdir=_libs |
1886 |
|
fi |
1887 |
|
rmdir .libs 2>/dev/null]) |
1888 |
|
objdir=$lt_cv_objdir |
1889 |
|
])# AC_LIBTOOL_OBJDIR |
1890 |
|
|
1891 |
|
|
1892 |
|
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
1893 |
|
# ----------------------------------- |
1894 |
# Check hardcoding attributes. |
# Check hardcoding attributes. |
1895 |
AC_MSG_CHECKING([how to hardcode library paths into programs]) |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1896 |
|
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1897 |
hardcode_action= |
hardcode_action= |
1898 |
if test -n "$hardcode_libdir_flag_spec" || \ |
if test -n "$hardcode_libdir_flag_spec" || \ |
1899 |
test -n "$runpath_var"; then |
test -n "$runpath_var"; then |
1917 |
hardcode_action=unsupported |
hardcode_action=unsupported |
1918 |
fi |
fi |
1919 |
AC_MSG_RESULT([$hardcode_action]) |
AC_MSG_RESULT([$hardcode_action]) |
|
## |
|
|
## END FIXME |
|
1920 |
|
|
1921 |
## FIXME: this should be a separate macro |
if test "$hardcode_action" = relink; then |
1922 |
## |
# Fast installation is not supported |
1923 |
striplib= |
enable_fast_install=no |
1924 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
1925 |
|
test "$enable_shared" = no; then |
1926 |
|
# Fast installation is not necessary |
1927 |
|
enable_fast_install=needless |
1928 |
|
fi |
1929 |
|
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
1930 |
|
|
1931 |
|
|
1932 |
|
# AC_LIBTOOL_SYS_LIB_STRIP |
1933 |
|
# ------------------------ |
1934 |
|
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
1935 |
|
[striplib= |
1936 |
old_striplib= |
old_striplib= |
1937 |
AC_MSG_CHECKING([whether stripping libraries is possible]) |
AC_MSG_CHECKING([whether stripping libraries is possible]) |
1938 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
1942 |
else |
else |
1943 |
AC_MSG_RESULT([no]) |
AC_MSG_RESULT([no]) |
1944 |
fi |
fi |
1945 |
## |
])# AC_LIBTOOL_SYS_LIB_STRIP |
|
## END FIXME |
|
1946 |
|
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
1947 |
|
|
1948 |
## FIXME: this should be a separate macro |
# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1949 |
## |
# ----------------------------- |
1950 |
# PORTME Fill in your ld.so characteristics |
# PORTME Fill in your ld.so characteristics |
1951 |
AC_MSG_CHECKING([dynamic linker characteristics]) |
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
1952 |
|
[AC_MSG_CHECKING([dynamic linker characteristics]) |
1953 |
library_names_spec= |
library_names_spec= |
1954 |
libname_spec='lib$name' |
libname_spec='lib$name' |
1955 |
soname_spec= |
soname_spec= |
1970 |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
1971 |
shlibpath_var=LIBPATH |
shlibpath_var=LIBPATH |
1972 |
|
|
1973 |
# AIX has no versioning support, so we append a major version to the name. |
# AIX 3 has no versioning support, so we append a major version to the name. |
1974 |
soname_spec='${libname}${release}.so$major' |
soname_spec='${libname}${release}.so$major' |
1975 |
;; |
;; |
1976 |
|
|
2088 |
shlibpath_var=DYLD_LIBRARY_PATH |
shlibpath_var=DYLD_LIBRARY_PATH |
2089 |
;; |
;; |
2090 |
|
|
2091 |
|
dgux*) |
2092 |
|
version_type=linux |
2093 |
|
need_lib_prefix=no |
2094 |
|
need_version=no |
2095 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
2096 |
|
soname_spec='${libname}${release}.so$major' |
2097 |
|
shlibpath_var=LD_LIBRARY_PATH |
2098 |
|
;; |
2099 |
|
|
2100 |
freebsd1*) |
freebsd1*) |
2101 |
dynamic_linker=no |
dynamic_linker=no |
2102 |
;; |
;; |
2108 |
freebsd-elf*) |
freebsd-elf*) |
2109 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
2110 |
need_version=no |
need_version=no |
2111 |
|
need_lc=no |
2112 |
need_lib_prefix=no |
need_lib_prefix=no |
2113 |
;; |
;; |
2114 |
freebsd-*) |
freebsd-*) |
2121 |
freebsd2*) |
freebsd2*) |
2122 |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
2123 |
;; |
;; |
2124 |
*) |
freebsd3.[01]* | freebsdelf3.[01]*) |
2125 |
|
shlibpath_overrides_runpath=yes |
2126 |
|
hardcode_into_libs=yes |
2127 |
|
;; |
2128 |
|
*) # from 3.2 on |
2129 |
shlibpath_overrides_runpath=no |
shlibpath_overrides_runpath=no |
2130 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
2131 |
;; |
;; |
2161 |
version_type=irix |
version_type=irix |
2162 |
need_lib_prefix=no |
need_lib_prefix=no |
2163 |
need_version=no |
need_version=no |
2164 |
soname_spec='${libname}${release}.so$major' |
soname_spec='${libname}${release}.so.$major' |
2165 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
2166 |
case $host_os in |
case $host_os in |
2167 |
irix5*) |
irix5*) |
2168 |
libsuff= shlibsuff= |
libsuff= shlibsuff= |
2315 |
esac |
esac |
2316 |
;; |
;; |
2317 |
|
|
|
uts4*) |
|
|
version_type=linux |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
|
|
|
|
dgux*) |
|
|
version_type=linux |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
|
|
|
2318 |
sysv4*MP*) |
sysv4*MP*) |
2319 |
if test -d /usr/nec ;then |
if test -d /usr/nec ;then |
2320 |
version_type=linux |
version_type=linux |
2324 |
fi |
fi |
2325 |
;; |
;; |
2326 |
|
|
2327 |
|
uts4*) |
2328 |
|
version_type=linux |
2329 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
2330 |
|
soname_spec='${libname}${release}.so$major' |
2331 |
|
shlibpath_var=LD_LIBRARY_PATH |
2332 |
|
;; |
2333 |
|
|
2334 |
*) |
*) |
2335 |
dynamic_linker=no |
dynamic_linker=no |
2336 |
;; |
;; |
2337 |
esac |
esac |
2338 |
AC_MSG_RESULT([$dynamic_linker]) |
AC_MSG_RESULT([$dynamic_linker]) |
2339 |
test "$dynamic_linker" = no && can_build_shared=no |
test "$dynamic_linker" = no && can_build_shared=no |
2340 |
## |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
|
## END FIXME |
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
## |
|
|
# Report the final consequences. |
|
|
AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
AC_MSG_RESULT([$can_build_shared]) |
|
|
## |
|
|
## END FIXME |
|
2341 |
|
|
|
if test "$hardcode_action" = relink; then |
|
|
# Fast installation is not supported |
|
|
enable_fast_install=no |
|
|
elif test "$shlibpath_overrides_runpath" = yes || |
|
|
test "$enable_shared" = no; then |
|
|
# Fast installation is not necessary |
|
|
enable_fast_install=needless |
|
|
fi |
|
2342 |
|
|
2343 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
# AC_LIBTOOL_PROG_ARCHIVE_CMDS_NEED_LC |
2344 |
if test "$GCC" = yes; then |
# ------------------------------------ |
2345 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
AC_DEFUN([AC_LIBTOOL_PROG_ARCHIVE_CMDS_NEED_LC], |
2346 |
fi |
[if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
|
|
AC_LIBTOOL_DLOPEN_SELF |
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
## |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
2347 |
case $archive_cmds in |
case $archive_cmds in |
2348 |
*'~'*) |
*'~'*) |
2349 |
# FIXME: we may have to deal with multi-command sequences. |
# FIXME: we may have to deal with multi-command sequences. |
2352 |
# Test whether the compiler implicitly links with -lc since on some |
# Test whether the compiler implicitly links with -lc since on some |
2353 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
2354 |
# to ld, don't add -lc before -lgcc. |
# to ld, don't add -lc before -lgcc. |
2355 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
AC_CACHE_CHECK([whether -lc should be explicitly linked in], |
2356 |
AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], |
[lt_cv_archive_cmds_need_lc], |
2357 |
[$rm conftest* |
[$rm conftest* |
2358 |
echo 'static int dummy;' > conftest.$ac_ext |
echo 'static int dummy;' > conftest.$ac_ext |
2359 |
|
|
2360 |
if AC_TRY_EVAL(ac_compile); then |
if AC_TRY_EVAL(ac_compile); then |
2361 |
soname=conftest |
soname=conftest |
2362 |
lib=conftest |
lib=conftest |
2363 |
libobjs=conftest.$ac_objext |
libobjs=conftest.$ac_objext |
2364 |
deplibs= |
deplibs= |
2365 |
wl=$lt_cv_prog_cc_wl |
wl=$lt_cv_prog_cc_wl |
2366 |
compiler_flags=-v |
compiler_flags=-v |
2367 |
linker_flags=-v |
linker_flags=-v |
2368 |
verstring= |
verstring= |
2369 |
output_objdir=. |
output_objdir=. |
2370 |
libname=conftest |
libname=conftest |
2371 |
save_allow_undefined_flag=$allow_undefined_flag |
save_allow_undefined_flag=$allow_undefined_flag |
2372 |
allow_undefined_flag= |
allow_undefined_flag= |
2373 |
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
2374 |
then |
then |
2375 |
lt_cv_archive_cmds_need_lc=no |
lt_cv_archive_cmds_need_lc=no |
2376 |
|
else |
2377 |
|
lt_cv_archive_cmds_need_lc=yes |
2378 |
|
fi |
2379 |
|
allow_undefined_flag=$save_allow_undefined_flag |
2380 |
else |
else |
2381 |
lt_cv_archive_cmds_need_lc=yes |
cat conftest.err 1>&5 |
2382 |
fi |
fi]) |
2383 |
allow_undefined_flag=$save_allow_undefined_flag |
;; |
2384 |
else |
esac |
2385 |
cat conftest.err 1>&5 |
fi |
2386 |
fi]) |
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
2387 |
AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) |
])# AC_LIBTOOL_PROG_ARCHIVE_CMDS_NEED_LC |
|
;; |
|
|
esac |
|
|
fi |
|
|
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
## |
|
|
## END FIXME |
|
2388 |
|
|
2389 |
## FIXME: this should be a separate macro |
|
2390 |
## |
# AC_LIBTOOL_CONFIG |
2391 |
# The second clause should only fire when bootstrapping the |
# ----------------- |
2392 |
|
AC_DEFUN([AC_LIBTOOL_CONFIG], |
2393 |
|
[# The second clause should only fire when bootstrapping the |
2394 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
2395 |
# with your package, and you will get complaints that there are |
# with your package, and you will get complaints that there are |
2396 |
# no rules to generate ltmain.sh. |
# no rules to generate ltmain.sh. |
2426 |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
2427 |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
2428 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
2429 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
compiler_c_o need_locks exclude_expsyms include_expsyms; do |
2430 |
|
|
2431 |
case $var in |
case $var in |
2432 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
2451 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
2452 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
2453 |
# |
# |
2454 |
# Copyright (C) 1996-2000 Free Software Foundation, Inc. |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
2455 |
|
# Free Software Foundation, Inc. |
2456 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
2457 |
# |
# |
2458 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
2481 |
# if CDPATH is set. |
# if CDPATH is set. |
2482 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
2483 |
|
|
2484 |
|
# The names of the tagged configurations supported by this script. |
2485 |
|
available_tags= |
2486 |
|
|
2487 |
# ### BEGIN LIBTOOL CONFIG |
# ### BEGIN LIBTOOL CONFIG |
2488 |
|
|
2489 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2517 |
# A C compiler. |
# A C compiler. |
2518 |
LTCC=$LTCC |
LTCC=$LTCC |
2519 |
|
|
2520 |
# The default C compiler. |
# A language-specific compiler. |
2521 |
CC=$lt_CC |
CC=$lt_CC |
2522 |
|
|
2523 |
# Is the compiler the GNU C compiler? |
# Is the compiler the GNU C compiler? |
2576 |
# Does compiler simultaneously support -c and -o options? |
# Does compiler simultaneously support -c and -o options? |
2577 |
compiler_c_o=$lt_compiler_c_o |
compiler_c_o=$lt_compiler_c_o |
2578 |
|
|
|
# Can we write directly to a .lo ? |
|
|
compiler_o_lo=$lt_compiler_o_lo |
|
|
|
|
2579 |
# Must we lock files when doing compilation ? |
# Must we lock files when doing compilation ? |
2580 |
need_locks=$lt_need_locks |
need_locks=$lt_need_locks |
2581 |
|
|
2644 |
old_striplib=$lt_old_striplib |
old_striplib=$lt_old_striplib |
2645 |
striplib=$lt_striplib |
striplib=$lt_striplib |
2646 |
|
|
2647 |
|
# Dependencies to place before the objects being linked to create a |
2648 |
|
# shared library. |
2649 |
|
predep_objects=$predep_objects |
2650 |
|
|
2651 |
|
# Dependencies to place after the objects being linked to create a |
2652 |
|
# shared library. |
2653 |
|
postdep_objects=$postdep_objects |
2654 |
|
|
2655 |
|
# Dependencies to place before the objects being linked to create a |
2656 |
|
# shared library. |
2657 |
|
predeps=$predeps |
2658 |
|
|
2659 |
|
# Dependencies to place after the objects being linked to create a |
2660 |
|
# shared library. |
2661 |
|
postdeps=$postdeps |
2662 |
|
|
2663 |
|
# The library search path used internally by the compiler when linking |
2664 |
|
# a shared library. |
2665 |
|
compiler_lib_search_path=$compiler_lib_search_path |
2666 |
|
|
2667 |
# Method to check whether dependent libraries are shared objects. |
# Method to check whether dependent libraries are shared objects. |
2668 |
deplibs_check_method=$lt_deplibs_check_method |
deplibs_check_method=$lt_deplibs_check_method |
2669 |
|
|
2814 |
# on Windows for dlls which lack them. Don't remove nor modify the |
# on Windows for dlls which lack them. Don't remove nor modify the |
2815 |
# starting and closing comments |
# starting and closing comments |
2816 |
# /* impgen.c starts here */ |
# /* impgen.c starts here */ |
2817 |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
2818 |
# |
# |
2819 |
# This file is part of GNU libtool. |
# This file is part of GNU libtool. |
2820 |
# |
# |
2961 |
mv -f "${ofile}T" "$ofile" || \ |
mv -f "${ofile}T" "$ofile" || \ |
2962 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
2963 |
chmod +x "$ofile" |
chmod +x "$ofile" |
2964 |
|
|
2965 |
|
_LT_AC_TAGCONFIG |
2966 |
fi |
fi |
2967 |
## |
])# AC_LIBTOOL_CONFIG |
2968 |
## END FIXME |
|
2969 |
|
# _LT_AC_TAGCONFIG |
2970 |
|
# ---------------- |
2971 |
|
AC_DEFUN([_LT_AC_TAGCONFIG], |
2972 |
|
[AC_ARG_WITH(tags, |
2973 |
|
[ --with-tags=TAGS include an alternate configuration], |
2974 |
|
tagnames="$withval", tagnames=) |
2975 |
|
|
2976 |
|
## Dependencies to place before and after the object being linked: |
2977 |
|
predep_objects= |
2978 |
|
postdep_objects= |
2979 |
|
predeps= |
2980 |
|
postdeps= |
2981 |
|
compiler_lib_search_path= |
2982 |
|
|
2983 |
|
if test -n "$tagnames"; then |
2984 |
|
if test ! -f "$ofile"; then |
2985 |
|
AC_MSG_WARN([output file \`$ofile' does not exist]) |
2986 |
|
fi |
2987 |
|
|
2988 |
|
if test -z "$LTCC"; then |
2989 |
|
eval "`$SHELL $ofile --config | grep '^LTCC='`" |
2990 |
|
if test -z "$LTCC"; then |
2991 |
|
AC_MSG_WARN([output file \`$ofile' does not look like a libtool script]) |
2992 |
|
else |
2993 |
|
AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile']) |
2994 |
|
fi |
2995 |
|
fi |
2996 |
|
|
2997 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
2998 |
|
for tagname in $tagnames; do |
2999 |
|
# Check whether tagname contains only valid characters |
3000 |
|
[case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in] |
3001 |
|
"") ;; |
3002 |
|
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
3003 |
|
;; |
3004 |
|
esac |
3005 |
|
|
3006 |
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$ofile" > /dev/null |
3007 |
|
then |
3008 |
|
AC_MSG_ERROR([tag name $tagname already exists]) |
3009 |
|
fi |
3010 |
|
|
3011 |
|
# Update the list of available tags. |
3012 |
|
if test -n "$tagname"; then |
3013 |
|
|
3014 |
|
echo appending configuration tag \"$tagname\" to $ofile |
3015 |
|
echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" |
3016 |
|
echo "# ### END LIBTOOL TAG CONFIG: $tagname" >> "$ofile" |
3017 |
|
|
3018 |
|
# Extract list of available tagged configurations in $ofile. |
3019 |
|
# Note that this assumes the entire list is on one line. |
3020 |
|
available_tags=`grep "^available_tags=" $ofile | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
3021 |
|
|
3022 |
|
# Append the new tag name to the list of available tags. |
3023 |
|
available_tags="$available_tags $tagname" |
3024 |
|
|
3025 |
|
# Now substitute the updated list of available tags. |
3026 |
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}.new\""; then |
3027 |
|
mv "${ofile}.new" "$ofile" |
3028 |
|
chmod +x "$ofile" |
3029 |
|
else |
3030 |
|
rm -f "${ofile}.new" |
3031 |
|
AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
3032 |
|
fi |
3033 |
|
fi |
3034 |
|
done |
3035 |
|
fi |
3036 |
|
])# _LT_AC_TAGCONFIG |
3037 |
|
|
3038 |
|
|
3039 |
|
# _LT_AC_LANG_C_CONFIG |
3040 |
|
# -------------------- |
3041 |
|
AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
3042 |
|
[# Source file extension for C test sources. |
3043 |
|
ac_ext=c |
3044 |
|
|
3045 |
|
# Object file extension for compiled C test sources. |
3046 |
|
objext=o |
3047 |
|
|
3048 |
|
# Code to be used in simple compile tests |
3049 |
|
lt_simple_compile_test_code="int some_variable = 0;" |
3050 |
|
|
3051 |
|
# Code to be used in simple link tests |
3052 |
|
lt_simple_link_test_code='main(){return(0);}' |
3053 |
|
|
3054 |
|
AC_LIBTOOL_PROG_CC_PIC |
3055 |
|
AC_LIBTOOL_PROG_LD_SHLIBS |
3056 |
|
])# _LT_AC_LANG_C_CONFIG |
3057 |
|
|
3058 |
|
|
3059 |
|
# _LT_AC_LTCONFIG_HACK |
3060 |
|
# -------------------- |
3061 |
|
AC_DEFUN([_LT_AC_LTCONFIG_HACK], |
3062 |
|
[ |
3063 |
|
_LT_AC_LANG_C_CONFIG |
3064 |
|
|
3065 |
|
## CAVEAT EMPTOR: |
3066 |
|
## There is no encapsulation within the following macros, do not change |
3067 |
|
## the running order or otherwise move them around unless you know exactly |
3068 |
|
## what you are doing... |
3069 |
|
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
3070 |
|
AC_LIBTOOL_PROG_CC_PIC_WORKS |
3071 |
|
AC_LIBTOOL_PROG_CC_STATIC_WORKS |
3072 |
|
AC_LIBTOOL_SYS_MAX_CMD_LEN |
3073 |
|
AC_LIBTOOL_PROG_CC_NO_RTTI |
3074 |
|
AC_LIBTOOL_PROG_CC_C_O |
3075 |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
3076 |
|
AC_LIBTOOL_OBJDIR |
3077 |
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
3078 |
|
AC_LIBTOOL_SYS_LIB_STRIP |
3079 |
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER |
3080 |
|
AC_LIBTOOL_DLOPEN_SELF |
3081 |
|
AC_LIBTOOL_PROG_ARCHIVE_CMDS_NEED_LC |
3082 |
|
AC_LIBTOOL_CONFIG |
3083 |
|
|
3084 |
|
# Report the final consequences. |
3085 |
|
AC_MSG_CHECKING([if libtool supports shared libraries]) |
3086 |
|
AC_MSG_RESULT([$can_build_shared]) |
3087 |
])# _LT_AC_LTCONFIG_HACK |
])# _LT_AC_LTCONFIG_HACK |
3088 |
|
|
3089 |
|
|
3411 |
lt_cv_ld_reload_flag, |
lt_cv_ld_reload_flag, |
3412 |
[lt_cv_ld_reload_flag='-r']) |
[lt_cv_ld_reload_flag='-r']) |
3413 |
reload_flag=$lt_cv_ld_reload_flag |
reload_flag=$lt_cv_ld_reload_flag |
3414 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
case $reload_flag in |
3415 |
|
"" | " "*) ;; |
3416 |
|
*) reload_flag=" $reload_flag" ;; |
3417 |
|
esac |
3418 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3419 |
])# AC_PROG_LD_RELOAD_FLAG |
])# AC_PROG_LD_RELOAD_FLAG |
3420 |
|
|
3421 |
|
|
3590 |
]) |
]) |
3591 |
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
3592 |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
3593 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3594 |
])# AC_DEPLIBS_CHECK_METHOD |
])# AC_DEPLIBS_CHECK_METHOD |
3595 |
|
|
3596 |
|
|