libusb 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +1 -0
- data/History.md +10 -0
- data/README.md +19 -6
- data/Rakefile +1 -1
- data/ext/extconf.rb +17 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/AUTHORS +18 -6
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/COPYING +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ChangeLog +58 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/INSTALL +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.am +6 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/Makefile.in +248 -174
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/NEWS +2 -2
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/PORTING +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/README +2 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/TODO +0 -0
- data/ext/libusbx-1.0.17/Xcode/common.xcconfig +40 -0
- data/ext/libusbx-1.0.17/Xcode/config.h +28 -0
- data/ext/libusbx-1.0.17/Xcode/debug.xcconfig +29 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +864 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig +21 -0
- data/ext/libusbx-1.0.17/Xcode/release.xcconfig +29 -0
- data/ext/libusbx-1.0.17/aclocal.m4 +1112 -0
- data/ext/libusbx-1.0.17/android/README +114 -0
- data/ext/libusbx-1.0.17/android/config.h +90 -0
- data/ext/libusbx-1.0.17/android/jni/Android.mk +23 -0
- data/ext/libusbx-1.0.17/android/jni/Application.mk +19 -0
- data/ext/libusbx-1.0.17/android/jni/examples.mk +134 -0
- data/ext/libusbx-1.0.17/android/jni/libusb.mk +54 -0
- data/ext/libusbx-1.0.17/android/jni/tests.mk +56 -0
- data/ext/libusbx-1.0.17/compile +347 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.guess +164 -130
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.h.in +37 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/config.sub +174 -89
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure +723 -302
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/configure.ac +71 -20
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/depcomp +345 -185
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.am +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/Makefile.in +95 -32
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/doc/doxygen.cfg.in +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.am +5 -4
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/Makefile.in +208 -104
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp.c +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/dpfp_threaded.c +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.c +188 -8
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/ezusb.h +18 -5
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/fxload.c +90 -64
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.c +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt.h +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/getopt/getopt1.c +0 -0
- data/ext/libusbx-1.0.17/examples/hotplugtest.c +97 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/listdevs.c +12 -4
- data/ext/libusbx-1.0.17/examples/sam3u_benchmark.c +193 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/examples/xusb.c +106 -49
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/install-sh +21 -14
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb-1.0.pc.in +1 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/Makefile.am +29 -10
- data/ext/libusbx-1.0.17/libusb/Makefile.in +914 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/core.c +378 -87
- data/ext/libusbx-1.0.17/libusb/descriptor.c +1199 -0
- data/ext/libusbx-1.0.17/libusb/hotplug.c +322 -0
- data/ext/libusbx-1.0.17/libusb/hotplug.h +82 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/io.c +182 -62
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.def +32 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb-1.0.rc +2 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusb.h +481 -32
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/libusbi.h +135 -38
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.c +591 -496
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/darwin_usb.h +39 -46
- data/ext/libusbx-1.0.17/libusb/os/linux_netlink.c +345 -0
- data/ext/libusbx-1.0.17/libusb/os/linux_udev.c +306 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.c +653 -617
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/linux_usbfs.h +32 -0
- data/ext/{libusbx-1.0.14/libusb/os/openbsd_usb.c → libusbx-1.0.17/libusb/os/netbsd_usb.c} +70 -63
- data/ext/libusbx-1.0.17/libusb/os/openbsd_usb.c +823 -0
- data/ext/libusbx-1.0.17/libusb/os/poll_posix.c +51 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_posix.h +2 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.c +85 -106
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/poll_windows.h +14 -3
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.c +3 -1
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_posix.h +0 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.c +6 -5
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/threads_windows.h +0 -0
- data/ext/libusbx-1.0.17/libusb/os/wince_usb.c +1026 -0
- data/ext/libusbx-1.0.17/libusb/os/wince_usb.h +131 -0
- data/ext/libusbx-1.0.17/libusb/os/windows_common.h +108 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.c +92 -57
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/os/windows_usb.h +2 -63
- data/ext/libusbx-1.0.17/libusb/strerror.c +184 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/sync.c +24 -38
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/libusb/version.h +1 -1
- data/ext/libusbx-1.0.17/libusb/version_nano.h +1 -0
- data/ext/{libusbx-1.0.14 → libusbx-1.0.17}/ltmain.sh +60 -41
- data/ext/{libusbx-1.0.14/aclocal.m4 → libusbx-1.0.17/m4/libtool.m4} +229 -1723
- data/ext/libusbx-1.0.17/m4/ltoptions.m4 +384 -0
- data/ext/libusbx-1.0.17/m4/ltsugar.m4 +123 -0
- data/ext/libusbx-1.0.17/m4/ltversion.m4 +23 -0
- data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +98 -0
- data/ext/libusbx-1.0.17/missing +215 -0
- data/ext/libusbx-1.0.17/tests/Makefile.am +6 -0
- data/ext/libusbx-1.0.17/tests/Makefile.in +583 -0
- data/ext/libusbx-1.0.17/tests/libusbx_testlib.h +107 -0
- data/ext/libusbx-1.0.17/tests/stress.c +160 -0
- data/ext/libusbx-1.0.17/tests/testlib.c +276 -0
- data/lib/libusb.rb +4 -0
- data/lib/libusb/call.rb +43 -1
- data/lib/libusb/constants.rb +5 -0
- data/lib/libusb/context.rb +100 -0
- data/lib/libusb/dev_handle.rb +27 -0
- data/lib/libusb/device.rb +10 -4
- data/lib/libusb/version_gem.rb +1 -1
- data/test/test_libusb_capability.rb +2 -2
- data/test/test_libusb_compat.rb +2 -2
- data/test/test_libusb_compat_mass_storage.rb +2 -2
- data/test/test_libusb_descriptors.rb +4 -2
- data/test/test_libusb_event_machine.rb +2 -2
- data/test/test_libusb_gc.rb +2 -2
- data/test/test_libusb_hotplug.rb +115 -0
- data/test/test_libusb_iso_transfer.rb +3 -3
- data/test/test_libusb_mass_storage.rb +6 -16
- data/test/test_libusb_mass_storage2.rb +26 -3
- data/test/test_libusb_structs.rb +2 -2
- data/test/test_libusb_threads.rb +2 -2
- data/test/test_libusb_version.rb +2 -2
- metadata +127 -68
- metadata.gz.sig +0 -0
- data/ext/libusbx-1.0.14/THANKS +0 -7
- data/ext/libusbx-1.0.14/compile +0 -143
- data/ext/libusbx-1.0.14/libusb/Makefile.in +0 -721
- data/ext/libusbx-1.0.14/libusb/descriptor.c +0 -731
- data/ext/libusbx-1.0.14/libusb/version_nano.h +0 -1
- data/ext/libusbx-1.0.14/missing +0 -376
@@ -1,29 +1,8 @@
|
|
1
|
-
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
|
2
|
-
|
3
|
-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
4
|
-
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
5
|
-
# This file is free software; the Free Software Foundation
|
6
|
-
# gives unlimited permission to copy and/or distribute it,
|
7
|
-
# with or without modifications, as long as this notice is preserved.
|
8
|
-
|
9
|
-
# This program is distributed in the hope that it will be useful,
|
10
|
-
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
11
|
-
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
12
|
-
# PARTICULAR PURPOSE.
|
13
|
-
|
14
|
-
m4_ifndef([AC_AUTOCONF_VERSION],
|
15
|
-
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
16
|
-
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
|
17
|
-
[m4_warning([this file was generated for autoconf 2.68.
|
18
|
-
You have another version of autoconf. It may work, but is not guaranteed to.
|
19
|
-
If you have problems, you may need to regenerate the build system entirely.
|
20
|
-
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
21
|
-
|
22
1
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
23
2
|
#
|
24
3
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
25
|
-
# 2006, 2007, 2008, 2009, 2010 Free Software
|
26
|
-
# Inc.
|
4
|
+
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
5
|
+
# Foundation, Inc.
|
27
6
|
# Written by Gordon Matzigkeit, 1996
|
28
7
|
#
|
29
8
|
# This file is free software; the Free Software Foundation gives
|
@@ -32,8 +11,8 @@ To do so, use the procedure documented by the package, typically `autoreconf'.])
|
|
32
11
|
|
33
12
|
m4_define([_LT_COPYING], [dnl
|
34
13
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
35
|
-
# 2006, 2007, 2008, 2009, 2010 Free Software
|
36
|
-
# Inc.
|
14
|
+
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
15
|
+
# Foundation, Inc.
|
37
16
|
# Written by Gordon Matzigkeit, 1996
|
38
17
|
#
|
39
18
|
# This file is part of GNU Libtool.
|
@@ -167,6 +146,8 @@ AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
167
146
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
168
147
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
169
148
|
|
149
|
+
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
150
|
+
dnl
|
170
151
|
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
171
152
|
_LT_DECL([], [host], [0])dnl
|
172
153
|
_LT_DECL([], [host_os], [0])dnl
|
@@ -299,6 +280,9 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
299
280
|
])# _LT_PROG_LTMAIN
|
300
281
|
|
301
282
|
|
283
|
+
## ------------------------------------- ##
|
284
|
+
## Accumulate code for creating libtool. ##
|
285
|
+
## ------------------------------------- ##
|
302
286
|
|
303
287
|
# So that we can recreate a full libtool script including additional
|
304
288
|
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
@@ -352,6 +336,9 @@ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
352
336
|
|
353
337
|
|
354
338
|
|
339
|
+
## ------------------------ ##
|
340
|
+
## FIXME: Eliminate VARNAME ##
|
341
|
+
## ------------------------ ##
|
355
342
|
|
356
343
|
|
357
344
|
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
@@ -652,7 +639,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
652
639
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
653
640
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
654
641
|
|
655
|
-
Copyright (C)
|
642
|
+
Copyright (C) 2011 Free Software Foundation, Inc.
|
656
643
|
This config.lt script is free software; the Free Software Foundation
|
657
644
|
gives unlimited permision to copy, distribute and modify it."
|
658
645
|
|
@@ -816,6 +803,7 @@ AC_DEFUN([LT_LANG],
|
|
816
803
|
m4_case([$1],
|
817
804
|
[C], [_LT_LANG(C)],
|
818
805
|
[C++], [_LT_LANG(CXX)],
|
806
|
+
[Go], [_LT_LANG(GO)],
|
819
807
|
[Java], [_LT_LANG(GCJ)],
|
820
808
|
[Fortran 77], [_LT_LANG(F77)],
|
821
809
|
[Fortran], [_LT_LANG(FC)],
|
@@ -837,6 +825,31 @@ m4_defun([_LT_LANG],
|
|
837
825
|
])# _LT_LANG
|
838
826
|
|
839
827
|
|
828
|
+
m4_ifndef([AC_PROG_GO], [
|
829
|
+
############################################################
|
830
|
+
# NOTE: This macro has been submitted for inclusion into #
|
831
|
+
# GNU Autoconf as AC_PROG_GO. When it is available in #
|
832
|
+
# a released version of Autoconf we should remove this #
|
833
|
+
# macro and use it instead. #
|
834
|
+
############################################################
|
835
|
+
m4_defun([AC_PROG_GO],
|
836
|
+
[AC_LANG_PUSH(Go)dnl
|
837
|
+
AC_ARG_VAR([GOC], [Go compiler command])dnl
|
838
|
+
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
|
839
|
+
_AC_ARG_VAR_LDFLAGS()dnl
|
840
|
+
AC_CHECK_TOOL(GOC, gccgo)
|
841
|
+
if test -z "$GOC"; then
|
842
|
+
if test -n "$ac_tool_prefix"; then
|
843
|
+
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
|
844
|
+
fi
|
845
|
+
fi
|
846
|
+
if test -z "$GOC"; then
|
847
|
+
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
|
848
|
+
fi
|
849
|
+
])#m4_defun
|
850
|
+
])#m4_ifndef
|
851
|
+
|
852
|
+
|
840
853
|
# _LT_LANG_DEFAULT_CONFIG
|
841
854
|
# -----------------------
|
842
855
|
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
@@ -867,6 +880,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
867
880
|
m4_ifdef([LT_PROG_GCJ],
|
868
881
|
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
869
882
|
|
883
|
+
AC_PROVIDE_IFELSE([AC_PROG_GO],
|
884
|
+
[LT_LANG(GO)],
|
885
|
+
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
|
886
|
+
|
870
887
|
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
871
888
|
[LT_LANG(RC)],
|
872
889
|
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
@@ -969,7 +986,13 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
969
986
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
970
987
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
971
988
|
_lt_result=$?
|
972
|
-
|
989
|
+
# If there is a non-empty error log, and "single_module"
|
990
|
+
# appears in it, assume the flag caused a linker warning
|
991
|
+
if test -s conftest.err && $GREP single_module conftest.err; then
|
992
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
993
|
+
# Otherwise, if the output was created with a 0 exit code from
|
994
|
+
# the compiler, it worked.
|
995
|
+
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
|
973
996
|
lt_cv_apple_cc_single_mod=yes
|
974
997
|
else
|
975
998
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
@@ -977,6 +1000,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
977
1000
|
rm -rf libconftest.dylib*
|
978
1001
|
rm -f conftest.*
|
979
1002
|
fi])
|
1003
|
+
|
980
1004
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
981
1005
|
[lt_cv_ld_exported_symbols_list],
|
982
1006
|
[lt_cv_ld_exported_symbols_list=no
|
@@ -988,6 +1012,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
988
1012
|
[lt_cv_ld_exported_symbols_list=no])
|
989
1013
|
LDFLAGS="$save_LDFLAGS"
|
990
1014
|
])
|
1015
|
+
|
991
1016
|
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
992
1017
|
[lt_cv_ld_force_load=no
|
993
1018
|
cat > conftest.c << _LT_EOF
|
@@ -1005,7 +1030,9 @@ _LT_EOF
|
|
1005
1030
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
1006
1031
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
1007
1032
|
_lt_result=$?
|
1008
|
-
if test -
|
1033
|
+
if test -s conftest.err && $GREP force_load conftest.err; then
|
1034
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
1035
|
+
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
|
1009
1036
|
lt_cv_ld_force_load=yes
|
1010
1037
|
else
|
1011
1038
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
@@ -1050,8 +1077,8 @@ _LT_EOF
|
|
1050
1077
|
])
|
1051
1078
|
|
1052
1079
|
|
1053
|
-
# _LT_DARWIN_LINKER_FEATURES
|
1054
|
-
#
|
1080
|
+
# _LT_DARWIN_LINKER_FEATURES([TAG])
|
1081
|
+
# ---------------------------------
|
1055
1082
|
# Checks for linker and compiler features on darwin
|
1056
1083
|
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
1057
1084
|
[
|
@@ -1062,6 +1089,8 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
1062
1089
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
1063
1090
|
if test "$lt_cv_ld_force_load" = "yes"; then
|
1064
1091
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
1092
|
+
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
|
1093
|
+
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
|
1065
1094
|
else
|
1066
1095
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
1067
1096
|
fi
|
@@ -1345,14 +1374,27 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
1345
1374
|
CFLAGS="$SAVE_CFLAGS"
|
1346
1375
|
fi
|
1347
1376
|
;;
|
1348
|
-
|
1377
|
+
*-*solaris*)
|
1349
1378
|
# Find out which ABI we are using.
|
1350
1379
|
echo 'int i;' > conftest.$ac_ext
|
1351
1380
|
if AC_TRY_EVAL(ac_compile); then
|
1352
1381
|
case `/usr/bin/file conftest.o` in
|
1353
1382
|
*64-bit*)
|
1354
1383
|
case $lt_cv_prog_gnu_ld in
|
1355
|
-
yes*)
|
1384
|
+
yes*)
|
1385
|
+
case $host in
|
1386
|
+
i?86-*-solaris*)
|
1387
|
+
LD="${LD-ld} -m elf_x86_64"
|
1388
|
+
;;
|
1389
|
+
sparc*-*-solaris*)
|
1390
|
+
LD="${LD-ld} -m elf64_sparc"
|
1391
|
+
;;
|
1392
|
+
esac
|
1393
|
+
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
1394
|
+
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
1395
|
+
LD="${LD-ld}_sol2"
|
1396
|
+
fi
|
1397
|
+
;;
|
1356
1398
|
*)
|
1357
1399
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
1358
1400
|
LD="${LD-ld} -64"
|
@@ -1429,13 +1471,13 @@ old_postuninstall_cmds=
|
|
1429
1471
|
if test -n "$RANLIB"; then
|
1430
1472
|
case $host_os in
|
1431
1473
|
openbsd*)
|
1432
|
-
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$
|
1474
|
+
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
1433
1475
|
;;
|
1434
1476
|
*)
|
1435
|
-
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$
|
1477
|
+
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
1436
1478
|
;;
|
1437
1479
|
esac
|
1438
|
-
old_archive_cmds="$old_archive_cmds~\$RANLIB \$
|
1480
|
+
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
1439
1481
|
fi
|
1440
1482
|
|
1441
1483
|
case $host_os in
|
@@ -1615,6 +1657,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
1615
1657
|
lt_cv_sys_max_cmd_len=196608
|
1616
1658
|
;;
|
1617
1659
|
|
1660
|
+
os2*)
|
1661
|
+
# The test takes a long time on OS/2.
|
1662
|
+
lt_cv_sys_max_cmd_len=8192
|
1663
|
+
;;
|
1664
|
+
|
1618
1665
|
osf*)
|
1619
1666
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
1620
1667
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
@@ -1654,7 +1701,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
1654
1701
|
# If test is not a shell built-in, we'll probably end up computing a
|
1655
1702
|
# maximum length that is only half of the actual maximum length, but
|
1656
1703
|
# we can't tell.
|
1657
|
-
while { test "X"`
|
1704
|
+
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
|
1658
1705
|
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
1659
1706
|
test $i != 17 # 1/2 MB should be enough
|
1660
1707
|
do
|
@@ -2200,7 +2247,7 @@ need_version=unknown
|
|
2200
2247
|
|
2201
2248
|
case $host_os in
|
2202
2249
|
aix3*)
|
2203
|
-
version_type=linux
|
2250
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2204
2251
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
2205
2252
|
shlibpath_var=LIBPATH
|
2206
2253
|
|
@@ -2209,7 +2256,7 @@ aix3*)
|
|
2209
2256
|
;;
|
2210
2257
|
|
2211
2258
|
aix[[4-9]]*)
|
2212
|
-
version_type=linux
|
2259
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2213
2260
|
need_lib_prefix=no
|
2214
2261
|
need_version=no
|
2215
2262
|
hardcode_into_libs=yes
|
@@ -2274,7 +2321,7 @@ beos*)
|
|
2274
2321
|
;;
|
2275
2322
|
|
2276
2323
|
bsdi[[45]]*)
|
2277
|
-
version_type=linux
|
2324
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2278
2325
|
need_version=no
|
2279
2326
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2280
2327
|
soname_spec='${libname}${release}${shared_ext}$major'
|
@@ -2413,7 +2460,7 @@ m4_if([$1], [],[
|
|
2413
2460
|
;;
|
2414
2461
|
|
2415
2462
|
dgux*)
|
2416
|
-
version_type=linux
|
2463
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2417
2464
|
need_lib_prefix=no
|
2418
2465
|
need_version=no
|
2419
2466
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
@@ -2421,10 +2468,6 @@ dgux*)
|
|
2421
2468
|
shlibpath_var=LD_LIBRARY_PATH
|
2422
2469
|
;;
|
2423
2470
|
|
2424
|
-
freebsd1*)
|
2425
|
-
dynamic_linker=no
|
2426
|
-
;;
|
2427
|
-
|
2428
2471
|
freebsd* | dragonfly*)
|
2429
2472
|
# DragonFly does not have aout. When/if they implement a new
|
2430
2473
|
# versioning mechanism, adjust this.
|
@@ -2432,7 +2475,7 @@ freebsd* | dragonfly*)
|
|
2432
2475
|
objformat=`/usr/bin/objformat`
|
2433
2476
|
else
|
2434
2477
|
case $host_os in
|
2435
|
-
freebsd[[
|
2478
|
+
freebsd[[23]].*) objformat=aout ;;
|
2436
2479
|
*) objformat=elf ;;
|
2437
2480
|
esac
|
2438
2481
|
fi
|
@@ -2450,7 +2493,7 @@ freebsd* | dragonfly*)
|
|
2450
2493
|
esac
|
2451
2494
|
shlibpath_var=LD_LIBRARY_PATH
|
2452
2495
|
case $host_os in
|
2453
|
-
freebsd2
|
2496
|
+
freebsd2.*)
|
2454
2497
|
shlibpath_overrides_runpath=yes
|
2455
2498
|
;;
|
2456
2499
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
@@ -2470,17 +2513,18 @@ freebsd* | dragonfly*)
|
|
2470
2513
|
;;
|
2471
2514
|
|
2472
2515
|
gnu*)
|
2473
|
-
version_type=linux
|
2516
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2474
2517
|
need_lib_prefix=no
|
2475
2518
|
need_version=no
|
2476
2519
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
2477
2520
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2478
2521
|
shlibpath_var=LD_LIBRARY_PATH
|
2522
|
+
shlibpath_overrides_runpath=no
|
2479
2523
|
hardcode_into_libs=yes
|
2480
2524
|
;;
|
2481
2525
|
|
2482
2526
|
haiku*)
|
2483
|
-
version_type=linux
|
2527
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2484
2528
|
need_lib_prefix=no
|
2485
2529
|
need_version=no
|
2486
2530
|
dynamic_linker="$host_os runtime_loader"
|
@@ -2541,7 +2585,7 @@ hpux9* | hpux10* | hpux11*)
|
|
2541
2585
|
;;
|
2542
2586
|
|
2543
2587
|
interix[[3-9]]*)
|
2544
|
-
version_type=linux
|
2588
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2545
2589
|
need_lib_prefix=no
|
2546
2590
|
need_version=no
|
2547
2591
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
@@ -2557,7 +2601,7 @@ irix5* | irix6* | nonstopux*)
|
|
2557
2601
|
nonstopux*) version_type=nonstopux ;;
|
2558
2602
|
*)
|
2559
2603
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
2560
|
-
version_type=linux
|
2604
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2561
2605
|
else
|
2562
2606
|
version_type=irix
|
2563
2607
|
fi ;;
|
@@ -2594,9 +2638,9 @@ linux*oldld* | linux*aout* | linux*coff*)
|
|
2594
2638
|
dynamic_linker=no
|
2595
2639
|
;;
|
2596
2640
|
|
2597
|
-
# This must be
|
2641
|
+
# This must be glibc/ELF.
|
2598
2642
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
2599
|
-
version_type=linux
|
2643
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2600
2644
|
need_lib_prefix=no
|
2601
2645
|
need_version=no
|
2602
2646
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2625,10 +2669,14 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
2625
2669
|
# before this can be enabled.
|
2626
2670
|
hardcode_into_libs=yes
|
2627
2671
|
|
2672
|
+
# Add ABI-specific directories to the system library path.
|
2673
|
+
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
2674
|
+
|
2628
2675
|
# Append ld.so.conf contents to the search path
|
2629
2676
|
if test -f /etc/ld.so.conf; then
|
2630
2677
|
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;s/"//g;/^$/d' | tr '\n' ' '`
|
2631
|
-
sys_lib_dlsearch_path_spec="
|
2678
|
+
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
2679
|
+
|
2632
2680
|
fi
|
2633
2681
|
|
2634
2682
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
@@ -2659,7 +2707,7 @@ netbsd*)
|
|
2659
2707
|
;;
|
2660
2708
|
|
2661
2709
|
newsos6)
|
2662
|
-
version_type=linux
|
2710
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2663
2711
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2664
2712
|
shlibpath_var=LD_LIBRARY_PATH
|
2665
2713
|
shlibpath_overrides_runpath=yes
|
@@ -2728,7 +2776,7 @@ rdos*)
|
|
2728
2776
|
;;
|
2729
2777
|
|
2730
2778
|
solaris*)
|
2731
|
-
version_type=linux
|
2779
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2732
2780
|
need_lib_prefix=no
|
2733
2781
|
need_version=no
|
2734
2782
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2753,7 +2801,7 @@ sunos4*)
|
|
2753
2801
|
;;
|
2754
2802
|
|
2755
2803
|
sysv4 | sysv4.3*)
|
2756
|
-
version_type=linux
|
2804
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2757
2805
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2758
2806
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2759
2807
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -2777,7 +2825,7 @@ sysv4 | sysv4.3*)
|
|
2777
2825
|
|
2778
2826
|
sysv4*MP*)
|
2779
2827
|
if test -d /usr/nec ;then
|
2780
|
-
version_type=linux
|
2828
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2781
2829
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
2782
2830
|
soname_spec='$libname${shared_ext}.$major'
|
2783
2831
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -2808,7 +2856,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
2808
2856
|
|
2809
2857
|
tpf*)
|
2810
2858
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
2811
|
-
version_type=linux
|
2859
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2812
2860
|
need_lib_prefix=no
|
2813
2861
|
need_version=no
|
2814
2862
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2818,7 +2866,7 @@ tpf*)
|
|
2818
2866
|
;;
|
2819
2867
|
|
2820
2868
|
uts4*)
|
2821
|
-
version_type=linux
|
2869
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2822
2870
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2823
2871
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2824
2872
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -3240,7 +3288,7 @@ irix5* | irix6* | nonstopux*)
|
|
3240
3288
|
lt_cv_deplibs_check_method=pass_all
|
3241
3289
|
;;
|
3242
3290
|
|
3243
|
-
# This must be
|
3291
|
+
# This must be glibc/ELF.
|
3244
3292
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
3245
3293
|
lt_cv_deplibs_check_method=pass_all
|
3246
3294
|
;;
|
@@ -3660,6 +3708,7 @@ for ac_symprfx in "" "_"; do
|
|
3660
3708
|
# which start with @ or ?.
|
3661
3709
|
lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
3662
3710
|
" {last_section=section; section=\$ 3};"\
|
3711
|
+
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
3663
3712
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
3664
3713
|
" \$ 0!~/External *\|/{next};"\
|
3665
3714
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
@@ -4244,7 +4293,9 @@ m4_if([$1], [CXX], [
|
|
4244
4293
|
case $cc_basename in
|
4245
4294
|
nvcc*) # Cuda Compiler Driver 2.2
|
4246
4295
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
4247
|
-
_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
4296
|
+
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
4297
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
|
4298
|
+
fi
|
4248
4299
|
;;
|
4249
4300
|
esac
|
4250
4301
|
else
|
@@ -4336,18 +4387,33 @@ m4_if([$1], [CXX], [
|
|
4336
4387
|
;;
|
4337
4388
|
*)
|
4338
4389
|
case `$CC -V 2>&1 | sed 5q` in
|
4339
|
-
*Sun\
|
4390
|
+
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
4340
4391
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
4341
4392
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4342
4393
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4343
4394
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
4344
4395
|
;;
|
4396
|
+
*Sun\ F* | *Sun*Fortran*)
|
4397
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4398
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4399
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
4400
|
+
;;
|
4345
4401
|
*Sun\ C*)
|
4346
4402
|
# Sun C 5.9
|
4347
4403
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4348
4404
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4349
4405
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4350
4406
|
;;
|
4407
|
+
*Intel*\ [[CF]]*Compiler*)
|
4408
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4409
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
4410
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
4411
|
+
;;
|
4412
|
+
*Portland\ Group*)
|
4413
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4414
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
4415
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4416
|
+
;;
|
4351
4417
|
esac
|
4352
4418
|
;;
|
4353
4419
|
esac
|
@@ -4507,7 +4573,9 @@ m4_if([$1], [CXX], [
|
|
4507
4573
|
;;
|
4508
4574
|
cygwin* | mingw* | cegcc*)
|
4509
4575
|
case $cc_basename in
|
4510
|
-
cl*)
|
4576
|
+
cl*)
|
4577
|
+
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
4578
|
+
;;
|
4511
4579
|
*)
|
4512
4580
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
4513
4581
|
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
@@ -4532,7 +4600,6 @@ m4_if([$1], [CXX], [
|
|
4532
4600
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
4533
4601
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
4534
4602
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
4535
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
4536
4603
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
4537
4604
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
4538
4605
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
@@ -4783,8 +4850,7 @@ _LT_EOF
|
|
4783
4850
|
xlf* | bgf* | bgxlf* | mpixlf*)
|
4784
4851
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
4785
4852
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
4786
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
4787
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
4853
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
4788
4854
|
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
4789
4855
|
if test "x$supports_anon_versioning" = xyes; then
|
4790
4856
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
@@ -5079,6 +5145,7 @@ _LT_EOF
|
|
5079
5145
|
# The linker will not automatically build a static lib if we build a DLL.
|
5080
5146
|
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
5081
5147
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
5148
|
+
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
5082
5149
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
5083
5150
|
# Don't use ranlib
|
5084
5151
|
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
@@ -5125,10 +5192,6 @@ _LT_EOF
|
|
5125
5192
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
5126
5193
|
;;
|
5127
5194
|
|
5128
|
-
freebsd1*)
|
5129
|
-
_LT_TAGVAR(ld_shlibs, $1)=no
|
5130
|
-
;;
|
5131
|
-
|
5132
5195
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
5133
5196
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
5134
5197
|
# does not break anything, and helps significantly (at the cost of a little
|
@@ -5141,7 +5204,7 @@ _LT_EOF
|
|
5141
5204
|
;;
|
5142
5205
|
|
5143
5206
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
5144
|
-
freebsd2
|
5207
|
+
freebsd2.*)
|
5145
5208
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
5146
5209
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
5147
5210
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
@@ -5180,7 +5243,6 @@ _LT_EOF
|
|
5180
5243
|
fi
|
5181
5244
|
if test "$with_gnu_ld" = no; then
|
5182
5245
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
5183
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
5184
5246
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
5185
5247
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
5186
5248
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
@@ -5622,9 +5684,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
|
|
5622
5684
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
5623
5685
|
[Flag to hardcode $libdir into a binary during linking.
|
5624
5686
|
This must work even if $libdir does not exist])
|
5625
|
-
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
|
5626
|
-
[[If ld is used when linking, flag to hardcode $libdir into a binary
|
5627
|
-
during linking. This must work even if $libdir does not exist]])
|
5628
5687
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
5629
5688
|
[Whether we need a single "-rpath" flag with a separated argument])
|
5630
5689
|
_LT_TAGDECL([], [hardcode_direct], [0],
|
@@ -5702,6 +5761,10 @@ compiler_DEFAULT=$CC
|
|
5702
5761
|
_LT_COMPILER_BOILERPLATE
|
5703
5762
|
_LT_LINKER_BOILERPLATE
|
5704
5763
|
|
5764
|
+
## CAVEAT EMPTOR:
|
5765
|
+
## There is no encapsulation within the following macros, do not change
|
5766
|
+
## the running order or otherwise move them around unless you know exactly
|
5767
|
+
## what you are doing...
|
5705
5768
|
if test -n "$compiler"; then
|
5706
5769
|
_LT_COMPILER_NO_RTTI($1)
|
5707
5770
|
_LT_COMPILER_PIC($1)
|
@@ -5778,7 +5841,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
5778
5841
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
5779
5842
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
5780
5843
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
5781
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
5782
5844
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
5783
5845
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
5784
5846
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
@@ -6148,7 +6210,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6148
6210
|
esac
|
6149
6211
|
;;
|
6150
6212
|
|
6151
|
-
|
6213
|
+
freebsd2.*)
|
6152
6214
|
# C++ shared libraries reported to be fairly broken before
|
6153
6215
|
# switch to ELF
|
6154
6216
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
@@ -6909,12 +6971,18 @@ public class foo {
|
|
6909
6971
|
}
|
6910
6972
|
};
|
6911
6973
|
_LT_EOF
|
6974
|
+
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
|
6975
|
+
package foo
|
6976
|
+
func foo() {
|
6977
|
+
}
|
6978
|
+
_LT_EOF
|
6912
6979
|
])
|
6913
6980
|
|
6914
6981
|
_lt_libdeps_save_CFLAGS=$CFLAGS
|
6915
6982
|
case "$CC $CFLAGS " in #(
|
6916
6983
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
6917
6984
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
6985
|
+
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
6918
6986
|
esac
|
6919
6987
|
|
6920
6988
|
dnl Parse the compiler output and extract the necessary
|
@@ -7111,7 +7179,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
7111
7179
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
7112
7180
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
7113
7181
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
7114
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
7115
7182
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
7116
7183
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
7117
7184
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
@@ -7244,7 +7311,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
7244
7311
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
7245
7312
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
7246
7313
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
7247
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
7248
7314
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
7249
7315
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
7250
7316
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
@@ -7408,6 +7474,10 @@ _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
7408
7474
|
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7409
7475
|
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
7410
7476
|
|
7477
|
+
## CAVEAT EMPTOR:
|
7478
|
+
## There is no encapsulation within the following macros, do not change
|
7479
|
+
## the running order or otherwise move them around unless you know exactly
|
7480
|
+
## what you are doing...
|
7411
7481
|
if test -n "$compiler"; then
|
7412
7482
|
_LT_COMPILER_NO_RTTI($1)
|
7413
7483
|
_LT_COMPILER_PIC($1)
|
@@ -7427,6 +7497,77 @@ CFLAGS=$lt_save_CFLAGS
|
|
7427
7497
|
])# _LT_LANG_GCJ_CONFIG
|
7428
7498
|
|
7429
7499
|
|
7500
|
+
# _LT_LANG_GO_CONFIG([TAG])
|
7501
|
+
# --------------------------
|
7502
|
+
# Ensure that the configuration variables for the GNU Go compiler
|
7503
|
+
# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
7504
|
+
# to write the compiler configuration to `libtool'.
|
7505
|
+
m4_defun([_LT_LANG_GO_CONFIG],
|
7506
|
+
[AC_REQUIRE([LT_PROG_GO])dnl
|
7507
|
+
AC_LANG_SAVE
|
7508
|
+
|
7509
|
+
# Source file extension for Go test sources.
|
7510
|
+
ac_ext=go
|
7511
|
+
|
7512
|
+
# Object file extension for compiled Go test sources.
|
7513
|
+
objext=o
|
7514
|
+
_LT_TAGVAR(objext, $1)=$objext
|
7515
|
+
|
7516
|
+
# Code to be used in simple compile tests
|
7517
|
+
lt_simple_compile_test_code="package main; func main() { }"
|
7518
|
+
|
7519
|
+
# Code to be used in simple link tests
|
7520
|
+
lt_simple_link_test_code='package main; func main() { }'
|
7521
|
+
|
7522
|
+
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
7523
|
+
_LT_TAG_COMPILER
|
7524
|
+
|
7525
|
+
# save warnings/boilerplate of simple test code
|
7526
|
+
_LT_COMPILER_BOILERPLATE
|
7527
|
+
_LT_LINKER_BOILERPLATE
|
7528
|
+
|
7529
|
+
# Allow CC to be a program name with arguments.
|
7530
|
+
lt_save_CC=$CC
|
7531
|
+
lt_save_CFLAGS=$CFLAGS
|
7532
|
+
lt_save_GCC=$GCC
|
7533
|
+
GCC=yes
|
7534
|
+
CC=${GOC-"gccgo"}
|
7535
|
+
CFLAGS=$GOFLAGS
|
7536
|
+
compiler=$CC
|
7537
|
+
_LT_TAGVAR(compiler, $1)=$CC
|
7538
|
+
_LT_TAGVAR(LD, $1)="$LD"
|
7539
|
+
_LT_CC_BASENAME([$compiler])
|
7540
|
+
|
7541
|
+
# Go did not exist at the time GCC didn't implicitly link libc in.
|
7542
|
+
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
7543
|
+
|
7544
|
+
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7545
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7546
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
7547
|
+
|
7548
|
+
## CAVEAT EMPTOR:
|
7549
|
+
## There is no encapsulation within the following macros, do not change
|
7550
|
+
## the running order or otherwise move them around unless you know exactly
|
7551
|
+
## what you are doing...
|
7552
|
+
if test -n "$compiler"; then
|
7553
|
+
_LT_COMPILER_NO_RTTI($1)
|
7554
|
+
_LT_COMPILER_PIC($1)
|
7555
|
+
_LT_COMPILER_C_O($1)
|
7556
|
+
_LT_COMPILER_FILE_LOCKS($1)
|
7557
|
+
_LT_LINKER_SHLIBS($1)
|
7558
|
+
_LT_LINKER_HARDCODE_LIBPATH($1)
|
7559
|
+
|
7560
|
+
_LT_CONFIG($1)
|
7561
|
+
fi
|
7562
|
+
|
7563
|
+
AC_LANG_RESTORE
|
7564
|
+
|
7565
|
+
GCC=$lt_save_GCC
|
7566
|
+
CC=$lt_save_CC
|
7567
|
+
CFLAGS=$lt_save_CFLAGS
|
7568
|
+
])# _LT_LANG_GO_CONFIG
|
7569
|
+
|
7570
|
+
|
7430
7571
|
# _LT_LANG_RC_CONFIG([TAG])
|
7431
7572
|
# -------------------------
|
7432
7573
|
# Ensure that the configuration variables for the Windows resource compiler
|
@@ -7496,6 +7637,13 @@ dnl aclocal-1.4 backwards compatibility:
|
|
7496
7637
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
7497
7638
|
|
7498
7639
|
|
7640
|
+
# LT_PROG_GO
|
7641
|
+
# ----------
|
7642
|
+
AC_DEFUN([LT_PROG_GO],
|
7643
|
+
[AC_CHECK_TOOL(GOC, gccgo,)
|
7644
|
+
])
|
7645
|
+
|
7646
|
+
|
7499
7647
|
# LT_PROG_RC
|
7500
7648
|
# ----------
|
7501
7649
|
AC_DEFUN([LT_PROG_RC],
|
@@ -7559,10 +7707,12 @@ _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
|
7559
7707
|
])# _LT_DECL_SED
|
7560
7708
|
|
7561
7709
|
m4_ifndef([AC_PROG_SED], [
|
7710
|
+
############################################################
|
7562
7711
|
# NOTE: This macro has been submitted for inclusion into #
|
7563
7712
|
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
7564
7713
|
# a released version of Autoconf we should remove this #
|
7565
7714
|
# macro and use it instead. #
|
7715
|
+
############################################################
|
7566
7716
|
|
7567
7717
|
m4_defun([AC_PROG_SED],
|
7568
7718
|
[AC_MSG_CHECKING([for a sed that does not truncate output])
|
@@ -7834,1647 +7984,3 @@ AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
|
7834
7984
|
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
7835
7985
|
[0], [convert $build files to toolchain format])dnl
|
7836
7986
|
])# _LT_PATH_CONVERSION_FUNCTIONS
|
7837
|
-
|
7838
|
-
# Helper functions for option handling. -*- Autoconf -*-
|
7839
|
-
#
|
7840
|
-
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
7841
|
-
# Inc.
|
7842
|
-
# Written by Gary V. Vaughan, 2004
|
7843
|
-
#
|
7844
|
-
# This file is free software; the Free Software Foundation gives
|
7845
|
-
# unlimited permission to copy and/or distribute it, with or without
|
7846
|
-
# modifications, as long as this notice is preserved.
|
7847
|
-
|
7848
|
-
# serial 7 ltoptions.m4
|
7849
|
-
|
7850
|
-
# This is to help aclocal find these macros, as it can't see m4_define.
|
7851
|
-
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
7852
|
-
|
7853
|
-
|
7854
|
-
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
7855
|
-
# ------------------------------------------
|
7856
|
-
m4_define([_LT_MANGLE_OPTION],
|
7857
|
-
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
7858
|
-
|
7859
|
-
|
7860
|
-
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
7861
|
-
# ---------------------------------------
|
7862
|
-
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
7863
|
-
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
7864
|
-
# saved as a flag.
|
7865
|
-
m4_define([_LT_SET_OPTION],
|
7866
|
-
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
7867
|
-
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
7868
|
-
_LT_MANGLE_DEFUN([$1], [$2]),
|
7869
|
-
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
7870
|
-
])
|
7871
|
-
|
7872
|
-
|
7873
|
-
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
7874
|
-
# ------------------------------------------------------------
|
7875
|
-
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
7876
|
-
m4_define([_LT_IF_OPTION],
|
7877
|
-
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
7878
|
-
|
7879
|
-
|
7880
|
-
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
7881
|
-
# -------------------------------------------------------
|
7882
|
-
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
7883
|
-
# are set.
|
7884
|
-
m4_define([_LT_UNLESS_OPTIONS],
|
7885
|
-
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
7886
|
-
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
7887
|
-
[m4_define([$0_found])])])[]dnl
|
7888
|
-
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
7889
|
-
])[]dnl
|
7890
|
-
])
|
7891
|
-
|
7892
|
-
|
7893
|
-
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
7894
|
-
# ----------------------------------------
|
7895
|
-
# OPTION-LIST is a space-separated list of Libtool options associated
|
7896
|
-
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
7897
|
-
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
7898
|
-
# the unknown option and exit.
|
7899
|
-
m4_defun([_LT_SET_OPTIONS],
|
7900
|
-
[# Set options
|
7901
|
-
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
7902
|
-
[_LT_SET_OPTION([$1], _LT_Option)])
|
7903
|
-
|
7904
|
-
m4_if([$1],[LT_INIT],[
|
7905
|
-
dnl
|
7906
|
-
dnl Simply set some default values (i.e off) if boolean options were not
|
7907
|
-
dnl specified:
|
7908
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
7909
|
-
])
|
7910
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
7911
|
-
])
|
7912
|
-
dnl
|
7913
|
-
dnl If no reference was made to various pairs of opposing options, then
|
7914
|
-
dnl we run the default mode handler for the pair. For example, if neither
|
7915
|
-
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
7916
|
-
dnl archives by default:
|
7917
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
7918
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
7919
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
7920
|
-
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
7921
|
-
[_LT_ENABLE_FAST_INSTALL])
|
7922
|
-
])
|
7923
|
-
])# _LT_SET_OPTIONS
|
7924
|
-
|
7925
|
-
|
7926
|
-
|
7927
|
-
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
7928
|
-
# -----------------------------------------
|
7929
|
-
m4_define([_LT_MANGLE_DEFUN],
|
7930
|
-
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
7931
|
-
|
7932
|
-
|
7933
|
-
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
7934
|
-
# -----------------------------------------------
|
7935
|
-
m4_define([LT_OPTION_DEFINE],
|
7936
|
-
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
7937
|
-
])# LT_OPTION_DEFINE
|
7938
|
-
|
7939
|
-
|
7940
|
-
# dlopen
|
7941
|
-
# ------
|
7942
|
-
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
7943
|
-
])
|
7944
|
-
|
7945
|
-
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
7946
|
-
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
7947
|
-
AC_DIAGNOSE([obsolete],
|
7948
|
-
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
7949
|
-
put the `dlopen' option into LT_INIT's first parameter.])
|
7950
|
-
])
|
7951
|
-
|
7952
|
-
dnl aclocal-1.4 backwards compatibility:
|
7953
|
-
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
7954
|
-
|
7955
|
-
|
7956
|
-
# win32-dll
|
7957
|
-
# ---------
|
7958
|
-
# Declare package support for building win32 dll's.
|
7959
|
-
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
7960
|
-
[enable_win32_dll=yes
|
7961
|
-
|
7962
|
-
case $host in
|
7963
|
-
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
7964
|
-
AC_CHECK_TOOL(AS, as, false)
|
7965
|
-
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
7966
|
-
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
7967
|
-
;;
|
7968
|
-
esac
|
7969
|
-
|
7970
|
-
test -z "$AS" && AS=as
|
7971
|
-
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
7972
|
-
|
7973
|
-
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
7974
|
-
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
7975
|
-
|
7976
|
-
test -z "$OBJDUMP" && OBJDUMP=objdump
|
7977
|
-
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
7978
|
-
])# win32-dll
|
7979
|
-
|
7980
|
-
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
7981
|
-
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
7982
|
-
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
7983
|
-
AC_DIAGNOSE([obsolete],
|
7984
|
-
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
7985
|
-
put the `win32-dll' option into LT_INIT's first parameter.])
|
7986
|
-
])
|
7987
|
-
|
7988
|
-
dnl aclocal-1.4 backwards compatibility:
|
7989
|
-
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
7990
|
-
|
7991
|
-
|
7992
|
-
# _LT_ENABLE_SHARED([DEFAULT])
|
7993
|
-
# ----------------------------
|
7994
|
-
# implement the --enable-shared flag, and supports the `shared' and
|
7995
|
-
# `disable-shared' LT_INIT options.
|
7996
|
-
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
7997
|
-
m4_define([_LT_ENABLE_SHARED],
|
7998
|
-
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
7999
|
-
AC_ARG_ENABLE([shared],
|
8000
|
-
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
8001
|
-
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
8002
|
-
[p=${PACKAGE-default}
|
8003
|
-
case $enableval in
|
8004
|
-
yes) enable_shared=yes ;;
|
8005
|
-
no) enable_shared=no ;;
|
8006
|
-
*)
|
8007
|
-
enable_shared=no
|
8008
|
-
# Look at the argument we got. We use all the common list separators.
|
8009
|
-
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
8010
|
-
for pkg in $enableval; do
|
8011
|
-
IFS="$lt_save_ifs"
|
8012
|
-
if test "X$pkg" = "X$p"; then
|
8013
|
-
enable_shared=yes
|
8014
|
-
fi
|
8015
|
-
done
|
8016
|
-
IFS="$lt_save_ifs"
|
8017
|
-
;;
|
8018
|
-
esac],
|
8019
|
-
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
8020
|
-
|
8021
|
-
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
8022
|
-
[Whether or not to build shared libraries])
|
8023
|
-
])# _LT_ENABLE_SHARED
|
8024
|
-
|
8025
|
-
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
8026
|
-
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
8027
|
-
|
8028
|
-
# Old names:
|
8029
|
-
AC_DEFUN([AC_ENABLE_SHARED],
|
8030
|
-
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
8031
|
-
])
|
8032
|
-
|
8033
|
-
AC_DEFUN([AC_DISABLE_SHARED],
|
8034
|
-
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
8035
|
-
])
|
8036
|
-
|
8037
|
-
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
8038
|
-
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
8039
|
-
|
8040
|
-
dnl aclocal-1.4 backwards compatibility:
|
8041
|
-
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
8042
|
-
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
8043
|
-
|
8044
|
-
|
8045
|
-
|
8046
|
-
# _LT_ENABLE_STATIC([DEFAULT])
|
8047
|
-
# ----------------------------
|
8048
|
-
# implement the --enable-static flag, and support the `static' and
|
8049
|
-
# `disable-static' LT_INIT options.
|
8050
|
-
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
8051
|
-
m4_define([_LT_ENABLE_STATIC],
|
8052
|
-
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
8053
|
-
AC_ARG_ENABLE([static],
|
8054
|
-
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
8055
|
-
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
8056
|
-
[p=${PACKAGE-default}
|
8057
|
-
case $enableval in
|
8058
|
-
yes) enable_static=yes ;;
|
8059
|
-
no) enable_static=no ;;
|
8060
|
-
*)
|
8061
|
-
enable_static=no
|
8062
|
-
# Look at the argument we got. We use all the common list separators.
|
8063
|
-
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
8064
|
-
for pkg in $enableval; do
|
8065
|
-
IFS="$lt_save_ifs"
|
8066
|
-
if test "X$pkg" = "X$p"; then
|
8067
|
-
enable_static=yes
|
8068
|
-
fi
|
8069
|
-
done
|
8070
|
-
IFS="$lt_save_ifs"
|
8071
|
-
;;
|
8072
|
-
esac],
|
8073
|
-
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
8074
|
-
|
8075
|
-
_LT_DECL([build_old_libs], [enable_static], [0],
|
8076
|
-
[Whether or not to build static libraries])
|
8077
|
-
])# _LT_ENABLE_STATIC
|
8078
|
-
|
8079
|
-
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
8080
|
-
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
8081
|
-
|
8082
|
-
# Old names:
|
8083
|
-
AC_DEFUN([AC_ENABLE_STATIC],
|
8084
|
-
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
8085
|
-
])
|
8086
|
-
|
8087
|
-
AC_DEFUN([AC_DISABLE_STATIC],
|
8088
|
-
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
8089
|
-
])
|
8090
|
-
|
8091
|
-
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
8092
|
-
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
8093
|
-
|
8094
|
-
dnl aclocal-1.4 backwards compatibility:
|
8095
|
-
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
8096
|
-
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
8097
|
-
|
8098
|
-
|
8099
|
-
|
8100
|
-
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
8101
|
-
# ----------------------------------
|
8102
|
-
# implement the --enable-fast-install flag, and support the `fast-install'
|
8103
|
-
# and `disable-fast-install' LT_INIT options.
|
8104
|
-
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
8105
|
-
m4_define([_LT_ENABLE_FAST_INSTALL],
|
8106
|
-
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
8107
|
-
AC_ARG_ENABLE([fast-install],
|
8108
|
-
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
8109
|
-
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
8110
|
-
[p=${PACKAGE-default}
|
8111
|
-
case $enableval in
|
8112
|
-
yes) enable_fast_install=yes ;;
|
8113
|
-
no) enable_fast_install=no ;;
|
8114
|
-
*)
|
8115
|
-
enable_fast_install=no
|
8116
|
-
# Look at the argument we got. We use all the common list separators.
|
8117
|
-
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
8118
|
-
for pkg in $enableval; do
|
8119
|
-
IFS="$lt_save_ifs"
|
8120
|
-
if test "X$pkg" = "X$p"; then
|
8121
|
-
enable_fast_install=yes
|
8122
|
-
fi
|
8123
|
-
done
|
8124
|
-
IFS="$lt_save_ifs"
|
8125
|
-
;;
|
8126
|
-
esac],
|
8127
|
-
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
8128
|
-
|
8129
|
-
_LT_DECL([fast_install], [enable_fast_install], [0],
|
8130
|
-
[Whether or not to optimize for fast installation])dnl
|
8131
|
-
])# _LT_ENABLE_FAST_INSTALL
|
8132
|
-
|
8133
|
-
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
8134
|
-
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
8135
|
-
|
8136
|
-
# Old names:
|
8137
|
-
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
8138
|
-
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
8139
|
-
AC_DIAGNOSE([obsolete],
|
8140
|
-
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
8141
|
-
the `fast-install' option into LT_INIT's first parameter.])
|
8142
|
-
])
|
8143
|
-
|
8144
|
-
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
8145
|
-
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
8146
|
-
AC_DIAGNOSE([obsolete],
|
8147
|
-
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
8148
|
-
the `disable-fast-install' option into LT_INIT's first parameter.])
|
8149
|
-
])
|
8150
|
-
|
8151
|
-
dnl aclocal-1.4 backwards compatibility:
|
8152
|
-
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
8153
|
-
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
8154
|
-
|
8155
|
-
|
8156
|
-
# _LT_WITH_PIC([MODE])
|
8157
|
-
# --------------------
|
8158
|
-
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
8159
|
-
# LT_INIT options.
|
8160
|
-
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
8161
|
-
m4_define([_LT_WITH_PIC],
|
8162
|
-
[AC_ARG_WITH([pic],
|
8163
|
-
[AS_HELP_STRING([--with-pic],
|
8164
|
-
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
8165
|
-
[pic_mode="$withval"],
|
8166
|
-
[pic_mode=default])
|
8167
|
-
|
8168
|
-
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
8169
|
-
|
8170
|
-
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
8171
|
-
])# _LT_WITH_PIC
|
8172
|
-
|
8173
|
-
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
8174
|
-
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
8175
|
-
|
8176
|
-
# Old name:
|
8177
|
-
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
8178
|
-
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
8179
|
-
AC_DIAGNOSE([obsolete],
|
8180
|
-
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
8181
|
-
put the `pic-only' option into LT_INIT's first parameter.])
|
8182
|
-
])
|
8183
|
-
|
8184
|
-
dnl aclocal-1.4 backwards compatibility:
|
8185
|
-
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
8186
|
-
|
8187
|
-
|
8188
|
-
m4_define([_LTDL_MODE], [])
|
8189
|
-
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
8190
|
-
[m4_define([_LTDL_MODE], [nonrecursive])])
|
8191
|
-
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
8192
|
-
[m4_define([_LTDL_MODE], [recursive])])
|
8193
|
-
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
8194
|
-
[m4_define([_LTDL_MODE], [subproject])])
|
8195
|
-
|
8196
|
-
m4_define([_LTDL_TYPE], [])
|
8197
|
-
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
8198
|
-
[m4_define([_LTDL_TYPE], [installable])])
|
8199
|
-
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
8200
|
-
[m4_define([_LTDL_TYPE], [convenience])])
|
8201
|
-
|
8202
|
-
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
8203
|
-
#
|
8204
|
-
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
8205
|
-
# Written by Gary V. Vaughan, 2004
|
8206
|
-
#
|
8207
|
-
# This file is free software; the Free Software Foundation gives
|
8208
|
-
# unlimited permission to copy and/or distribute it, with or without
|
8209
|
-
# modifications, as long as this notice is preserved.
|
8210
|
-
|
8211
|
-
# serial 6 ltsugar.m4
|
8212
|
-
|
8213
|
-
# This is to help aclocal find these macros, as it can't see m4_define.
|
8214
|
-
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
8215
|
-
|
8216
|
-
|
8217
|
-
# lt_join(SEP, ARG1, [ARG2...])
|
8218
|
-
# -----------------------------
|
8219
|
-
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
8220
|
-
# associated separator.
|
8221
|
-
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
8222
|
-
# versions in m4sugar had bugs.
|
8223
|
-
m4_define([lt_join],
|
8224
|
-
[m4_if([$#], [1], [],
|
8225
|
-
[$#], [2], [[$2]],
|
8226
|
-
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
8227
|
-
m4_define([_lt_join],
|
8228
|
-
[m4_if([$#$2], [2], [],
|
8229
|
-
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
8230
|
-
|
8231
|
-
|
8232
|
-
# lt_car(LIST)
|
8233
|
-
# lt_cdr(LIST)
|
8234
|
-
# ------------
|
8235
|
-
# Manipulate m4 lists.
|
8236
|
-
# These macros are necessary as long as will still need to support
|
8237
|
-
# Autoconf-2.59 which quotes differently.
|
8238
|
-
m4_define([lt_car], [[$1]])
|
8239
|
-
m4_define([lt_cdr],
|
8240
|
-
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
8241
|
-
[$#], 1, [],
|
8242
|
-
[m4_dquote(m4_shift($@))])])
|
8243
|
-
m4_define([lt_unquote], $1)
|
8244
|
-
|
8245
|
-
|
8246
|
-
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
8247
|
-
# ------------------------------------------
|
8248
|
-
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
8249
|
-
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
8250
|
-
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
8251
|
-
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
8252
|
-
# than defined and empty).
|
8253
|
-
#
|
8254
|
-
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
8255
|
-
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
8256
|
-
m4_define([lt_append],
|
8257
|
-
[m4_define([$1],
|
8258
|
-
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
8259
|
-
|
8260
|
-
|
8261
|
-
|
8262
|
-
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
8263
|
-
# ----------------------------------------------------------
|
8264
|
-
# Produce a SEP delimited list of all paired combinations of elements of
|
8265
|
-
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
8266
|
-
# has the form PREFIXmINFIXSUFFIXn.
|
8267
|
-
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
8268
|
-
m4_define([lt_combine],
|
8269
|
-
[m4_if(m4_eval([$# > 3]), [1],
|
8270
|
-
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
8271
|
-
[[m4_foreach([_Lt_prefix], [$2],
|
8272
|
-
[m4_foreach([_Lt_suffix],
|
8273
|
-
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
8274
|
-
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
8275
|
-
|
8276
|
-
|
8277
|
-
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
8278
|
-
# -----------------------------------------------------------------------
|
8279
|
-
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
8280
|
-
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
8281
|
-
m4_define([lt_if_append_uniq],
|
8282
|
-
[m4_ifdef([$1],
|
8283
|
-
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
8284
|
-
[lt_append([$1], [$2], [$3])$4],
|
8285
|
-
[$5])],
|
8286
|
-
[lt_append([$1], [$2], [$3])$4])])
|
8287
|
-
|
8288
|
-
|
8289
|
-
# lt_dict_add(DICT, KEY, VALUE)
|
8290
|
-
# -----------------------------
|
8291
|
-
m4_define([lt_dict_add],
|
8292
|
-
[m4_define([$1($2)], [$3])])
|
8293
|
-
|
8294
|
-
|
8295
|
-
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
8296
|
-
# --------------------------------------------
|
8297
|
-
m4_define([lt_dict_add_subkey],
|
8298
|
-
[m4_define([$1($2:$3)], [$4])])
|
8299
|
-
|
8300
|
-
|
8301
|
-
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
8302
|
-
# ----------------------------------
|
8303
|
-
m4_define([lt_dict_fetch],
|
8304
|
-
[m4_ifval([$3],
|
8305
|
-
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
8306
|
-
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
8307
|
-
|
8308
|
-
|
8309
|
-
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
8310
|
-
# -----------------------------------------------------------------
|
8311
|
-
m4_define([lt_if_dict_fetch],
|
8312
|
-
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
8313
|
-
[$5],
|
8314
|
-
[$6])])
|
8315
|
-
|
8316
|
-
|
8317
|
-
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
8318
|
-
# --------------------------------------------------------------
|
8319
|
-
m4_define([lt_dict_filter],
|
8320
|
-
[m4_if([$5], [], [],
|
8321
|
-
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
8322
|
-
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
8323
|
-
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
8324
|
-
])
|
8325
|
-
|
8326
|
-
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
8327
|
-
#
|
8328
|
-
# Copyright (C) 2004 Free Software Foundation, Inc.
|
8329
|
-
# Written by Scott James Remnant, 2004
|
8330
|
-
#
|
8331
|
-
# This file is free software; the Free Software Foundation gives
|
8332
|
-
# unlimited permission to copy and/or distribute it, with or without
|
8333
|
-
# modifications, as long as this notice is preserved.
|
8334
|
-
|
8335
|
-
# @configure_input@
|
8336
|
-
|
8337
|
-
# serial 3293 ltversion.m4
|
8338
|
-
# This file is part of GNU Libtool
|
8339
|
-
|
8340
|
-
m4_define([LT_PACKAGE_VERSION], [2.4])
|
8341
|
-
m4_define([LT_PACKAGE_REVISION], [1.3293])
|
8342
|
-
|
8343
|
-
AC_DEFUN([LTVERSION_VERSION],
|
8344
|
-
[macro_version='2.4'
|
8345
|
-
macro_revision='1.3293'
|
8346
|
-
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
8347
|
-
_LT_DECL(, macro_revision, 0)
|
8348
|
-
])
|
8349
|
-
|
8350
|
-
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
8351
|
-
#
|
8352
|
-
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
8353
|
-
# Written by Scott James Remnant, 2004.
|
8354
|
-
#
|
8355
|
-
# This file is free software; the Free Software Foundation gives
|
8356
|
-
# unlimited permission to copy and/or distribute it, with or without
|
8357
|
-
# modifications, as long as this notice is preserved.
|
8358
|
-
|
8359
|
-
# serial 5 lt~obsolete.m4
|
8360
|
-
|
8361
|
-
# These exist entirely to fool aclocal when bootstrapping libtool.
|
8362
|
-
#
|
8363
|
-
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
8364
|
-
# which have later been changed to m4_define as they aren't part of the
|
8365
|
-
# exported API, or moved to Autoconf or Automake where they belong.
|
8366
|
-
#
|
8367
|
-
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
8368
|
-
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
8369
|
-
# using a macro with the same name in our local m4/libtool.m4 it'll
|
8370
|
-
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
8371
|
-
# and doesn't know about Autoconf macros at all.)
|
8372
|
-
#
|
8373
|
-
# So we provide this file, which has a silly filename so it's always
|
8374
|
-
# included after everything else. This provides aclocal with the
|
8375
|
-
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
8376
|
-
# because those macros already exist, or will be overwritten later.
|
8377
|
-
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
8378
|
-
#
|
8379
|
-
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
8380
|
-
# Yes, that means every name once taken will need to remain here until
|
8381
|
-
# we give up compatibility with versions before 1.7, at which point
|
8382
|
-
# we need to keep only those names which we still refer to.
|
8383
|
-
|
8384
|
-
# This is to help aclocal find these macros, as it can't see m4_define.
|
8385
|
-
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
8386
|
-
|
8387
|
-
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
8388
|
-
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
8389
|
-
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
8390
|
-
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
8391
|
-
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
8392
|
-
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
8393
|
-
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
8394
|
-
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
8395
|
-
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
8396
|
-
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
8397
|
-
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
8398
|
-
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
8399
|
-
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
8400
|
-
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
8401
|
-
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
8402
|
-
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
8403
|
-
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
8404
|
-
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
8405
|
-
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
8406
|
-
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
8407
|
-
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
8408
|
-
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
8409
|
-
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
8410
|
-
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
8411
|
-
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
8412
|
-
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
8413
|
-
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
8414
|
-
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
8415
|
-
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
8416
|
-
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
8417
|
-
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
8418
|
-
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
8419
|
-
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
8420
|
-
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
8421
|
-
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
8422
|
-
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
8423
|
-
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
8424
|
-
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
8425
|
-
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
8426
|
-
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
8427
|
-
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
8428
|
-
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
8429
|
-
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
8430
|
-
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
8431
|
-
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
8432
|
-
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
8433
|
-
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
8434
|
-
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
8435
|
-
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
8436
|
-
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
8437
|
-
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
8438
|
-
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
8439
|
-
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
8440
|
-
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
8441
|
-
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
8442
|
-
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
8443
|
-
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
8444
|
-
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
8445
|
-
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
8446
|
-
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
8447
|
-
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
8448
|
-
|
8449
|
-
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
8450
|
-
#
|
8451
|
-
# This file is free software; the Free Software Foundation
|
8452
|
-
# gives unlimited permission to copy and/or distribute it,
|
8453
|
-
# with or without modifications, as long as this notice is preserved.
|
8454
|
-
|
8455
|
-
# AM_AUTOMAKE_VERSION(VERSION)
|
8456
|
-
# ----------------------------
|
8457
|
-
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
8458
|
-
# generated from the m4 files accompanying Automake X.Y.
|
8459
|
-
# (This private macro should not be called outside this file.)
|
8460
|
-
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
8461
|
-
[am__api_version='1.11'
|
8462
|
-
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
8463
|
-
dnl require some minimum version. Point them to the right macro.
|
8464
|
-
m4_if([$1], [1.11.1], [],
|
8465
|
-
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
8466
|
-
])
|
8467
|
-
|
8468
|
-
# _AM_AUTOCONF_VERSION(VERSION)
|
8469
|
-
# -----------------------------
|
8470
|
-
# aclocal traces this macro to find the Autoconf version.
|
8471
|
-
# This is a private macro too. Using m4_define simplifies
|
8472
|
-
# the logic in aclocal, which can simply ignore this definition.
|
8473
|
-
m4_define([_AM_AUTOCONF_VERSION], [])
|
8474
|
-
|
8475
|
-
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
8476
|
-
# -------------------------------
|
8477
|
-
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
8478
|
-
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
8479
|
-
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
8480
|
-
[AM_AUTOMAKE_VERSION([1.11.1])dnl
|
8481
|
-
m4_ifndef([AC_AUTOCONF_VERSION],
|
8482
|
-
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
8483
|
-
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
8484
|
-
|
8485
|
-
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
8486
|
-
|
8487
|
-
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
8488
|
-
#
|
8489
|
-
# This file is free software; the Free Software Foundation
|
8490
|
-
# gives unlimited permission to copy and/or distribute it,
|
8491
|
-
# with or without modifications, as long as this notice is preserved.
|
8492
|
-
|
8493
|
-
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
8494
|
-
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
8495
|
-
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
8496
|
-
#
|
8497
|
-
# Of course, Automake must honor this variable whenever it calls a
|
8498
|
-
# tool from the auxiliary directory. The problem is that $srcdir (and
|
8499
|
-
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
8500
|
-
# depending on how configure is run. This is pretty annoying, since
|
8501
|
-
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
8502
|
-
# source directory, any form will work fine, but in subdirectories a
|
8503
|
-
# relative path needs to be adjusted first.
|
8504
|
-
#
|
8505
|
-
# $ac_aux_dir/missing
|
8506
|
-
# fails when called from a subdirectory if $ac_aux_dir is relative
|
8507
|
-
# $top_srcdir/$ac_aux_dir/missing
|
8508
|
-
# fails if $ac_aux_dir is absolute,
|
8509
|
-
# fails when called from a subdirectory in a VPATH build with
|
8510
|
-
# a relative $ac_aux_dir
|
8511
|
-
#
|
8512
|
-
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
8513
|
-
# are both prefixed by $srcdir. In an in-source build this is usually
|
8514
|
-
# harmless because $srcdir is `.', but things will broke when you
|
8515
|
-
# start a VPATH build or use an absolute $srcdir.
|
8516
|
-
#
|
8517
|
-
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
8518
|
-
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
8519
|
-
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
8520
|
-
# and then we would define $MISSING as
|
8521
|
-
# MISSING="\${SHELL} $am_aux_dir/missing"
|
8522
|
-
# This will work as long as MISSING is not called from configure, because
|
8523
|
-
# unfortunately $(top_srcdir) has no meaning in configure.
|
8524
|
-
# However there are other variables, like CC, which are often used in
|
8525
|
-
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
8526
|
-
#
|
8527
|
-
# Another solution, used here, is to always expand $ac_aux_dir to an
|
8528
|
-
# absolute PATH. The drawback is that using absolute paths prevent a
|
8529
|
-
# configured tree to be moved without reconfiguration.
|
8530
|
-
|
8531
|
-
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
8532
|
-
[dnl Rely on autoconf to set up CDPATH properly.
|
8533
|
-
AC_PREREQ([2.50])dnl
|
8534
|
-
# expand $ac_aux_dir to an absolute path
|
8535
|
-
am_aux_dir=`cd $ac_aux_dir && pwd`
|
8536
|
-
])
|
8537
|
-
|
8538
|
-
# AM_CONDITIONAL -*- Autoconf -*-
|
8539
|
-
|
8540
|
-
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
8541
|
-
# Free Software Foundation, Inc.
|
8542
|
-
#
|
8543
|
-
# This file is free software; the Free Software Foundation
|
8544
|
-
# gives unlimited permission to copy and/or distribute it,
|
8545
|
-
# with or without modifications, as long as this notice is preserved.
|
8546
|
-
|
8547
|
-
# serial 9
|
8548
|
-
|
8549
|
-
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
8550
|
-
# -------------------------------------
|
8551
|
-
# Define a conditional.
|
8552
|
-
AC_DEFUN([AM_CONDITIONAL],
|
8553
|
-
[AC_PREREQ(2.52)dnl
|
8554
|
-
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
8555
|
-
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
8556
|
-
AC_SUBST([$1_TRUE])dnl
|
8557
|
-
AC_SUBST([$1_FALSE])dnl
|
8558
|
-
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
8559
|
-
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
8560
|
-
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
8561
|
-
if $2; then
|
8562
|
-
$1_TRUE=
|
8563
|
-
$1_FALSE='#'
|
8564
|
-
else
|
8565
|
-
$1_TRUE='#'
|
8566
|
-
$1_FALSE=
|
8567
|
-
fi
|
8568
|
-
AC_CONFIG_COMMANDS_PRE(
|
8569
|
-
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
8570
|
-
AC_MSG_ERROR([[conditional "$1" was never defined.
|
8571
|
-
Usually this means the macro was only invoked conditionally.]])
|
8572
|
-
fi])])
|
8573
|
-
|
8574
|
-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
8575
|
-
# Free Software Foundation, Inc.
|
8576
|
-
#
|
8577
|
-
# This file is free software; the Free Software Foundation
|
8578
|
-
# gives unlimited permission to copy and/or distribute it,
|
8579
|
-
# with or without modifications, as long as this notice is preserved.
|
8580
|
-
|
8581
|
-
# serial 10
|
8582
|
-
|
8583
|
-
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
8584
|
-
# written in clear, in which case automake, when reading aclocal.m4,
|
8585
|
-
# will think it sees a *use*, and therefore will trigger all it's
|
8586
|
-
# C support machinery. Also note that it means that autoscan, seeing
|
8587
|
-
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
8588
|
-
|
8589
|
-
|
8590
|
-
# _AM_DEPENDENCIES(NAME)
|
8591
|
-
# ----------------------
|
8592
|
-
# See how the compiler implements dependency checking.
|
8593
|
-
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
8594
|
-
# We try a few techniques and use that to set a single cache variable.
|
8595
|
-
#
|
8596
|
-
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
8597
|
-
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
8598
|
-
# dependency, and given that the user is not expected to run this macro,
|
8599
|
-
# just rely on AC_PROG_CC.
|
8600
|
-
AC_DEFUN([_AM_DEPENDENCIES],
|
8601
|
-
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
8602
|
-
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
8603
|
-
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
8604
|
-
AC_REQUIRE([AM_DEP_TRACK])dnl
|
8605
|
-
|
8606
|
-
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
8607
|
-
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
8608
|
-
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
8609
|
-
[$1], UPC, [depcc="$UPC" am_compiler_list=],
|
8610
|
-
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
8611
|
-
[depcc="$$1" am_compiler_list=])
|
8612
|
-
|
8613
|
-
AC_CACHE_CHECK([dependency style of $depcc],
|
8614
|
-
[am_cv_$1_dependencies_compiler_type],
|
8615
|
-
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
8616
|
-
# We make a subdir and do the tests there. Otherwise we can end up
|
8617
|
-
# making bogus files that we don't know about and never remove. For
|
8618
|
-
# instance it was reported that on HP-UX the gcc test will end up
|
8619
|
-
# making a dummy file named `D' -- because `-MD' means `put the output
|
8620
|
-
# in D'.
|
8621
|
-
mkdir conftest.dir
|
8622
|
-
# Copy depcomp to subdir because otherwise we won't find it if we're
|
8623
|
-
# using a relative directory.
|
8624
|
-
cp "$am_depcomp" conftest.dir
|
8625
|
-
cd conftest.dir
|
8626
|
-
# We will build objects and dependencies in a subdirectory because
|
8627
|
-
# it helps to detect inapplicable dependency modes. For instance
|
8628
|
-
# both Tru64's cc and ICC support -MD to output dependencies as a
|
8629
|
-
# side effect of compilation, but ICC will put the dependencies in
|
8630
|
-
# the current directory while Tru64 will put them in the object
|
8631
|
-
# directory.
|
8632
|
-
mkdir sub
|
8633
|
-
|
8634
|
-
am_cv_$1_dependencies_compiler_type=none
|
8635
|
-
if test "$am_compiler_list" = ""; then
|
8636
|
-
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
8637
|
-
fi
|
8638
|
-
am__universal=false
|
8639
|
-
m4_case([$1], [CC],
|
8640
|
-
[case " $depcc " in #(
|
8641
|
-
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
8642
|
-
esac],
|
8643
|
-
[CXX],
|
8644
|
-
[case " $depcc " in #(
|
8645
|
-
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
8646
|
-
esac])
|
8647
|
-
|
8648
|
-
for depmode in $am_compiler_list; do
|
8649
|
-
# Setup a source with many dependencies, because some compilers
|
8650
|
-
# like to wrap large dependency lists on column 80 (with \), and
|
8651
|
-
# we should not choose a depcomp mode which is confused by this.
|
8652
|
-
#
|
8653
|
-
# We need to recreate these files for each test, as the compiler may
|
8654
|
-
# overwrite some of them when testing with obscure command lines.
|
8655
|
-
# This happens at least with the AIX C compiler.
|
8656
|
-
: > sub/conftest.c
|
8657
|
-
for i in 1 2 3 4 5 6; do
|
8658
|
-
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
8659
|
-
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
8660
|
-
# Solaris 8's {/usr,}/bin/sh.
|
8661
|
-
touch sub/conftst$i.h
|
8662
|
-
done
|
8663
|
-
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
8664
|
-
|
8665
|
-
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
8666
|
-
# mode. It turns out that the SunPro C++ compiler does not properly
|
8667
|
-
# handle `-M -o', and we need to detect this. Also, some Intel
|
8668
|
-
# versions had trouble with output in subdirs
|
8669
|
-
am__obj=sub/conftest.${OBJEXT-o}
|
8670
|
-
am__minus_obj="-o $am__obj"
|
8671
|
-
case $depmode in
|
8672
|
-
gcc)
|
8673
|
-
# This depmode causes a compiler race in universal mode.
|
8674
|
-
test "$am__universal" = false || continue
|
8675
|
-
;;
|
8676
|
-
nosideeffect)
|
8677
|
-
# after this tag, mechanisms are not by side-effect, so they'll
|
8678
|
-
# only be used when explicitly requested
|
8679
|
-
if test "x$enable_dependency_tracking" = xyes; then
|
8680
|
-
continue
|
8681
|
-
else
|
8682
|
-
break
|
8683
|
-
fi
|
8684
|
-
;;
|
8685
|
-
msvisualcpp | msvcmsys)
|
8686
|
-
# This compiler won't grok `-c -o', but also, the minuso test has
|
8687
|
-
# not run yet. These depmodes are late enough in the game, and
|
8688
|
-
# so weak that their functioning should not be impacted.
|
8689
|
-
am__obj=conftest.${OBJEXT-o}
|
8690
|
-
am__minus_obj=
|
8691
|
-
;;
|
8692
|
-
none) break ;;
|
8693
|
-
esac
|
8694
|
-
if depmode=$depmode \
|
8695
|
-
source=sub/conftest.c object=$am__obj \
|
8696
|
-
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
8697
|
-
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
8698
|
-
>/dev/null 2>conftest.err &&
|
8699
|
-
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
8700
|
-
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
8701
|
-
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
8702
|
-
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
8703
|
-
# icc doesn't choke on unknown options, it will just issue warnings
|
8704
|
-
# or remarks (even with -Werror). So we grep stderr for any message
|
8705
|
-
# that says an option was ignored or not supported.
|
8706
|
-
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
8707
|
-
# icc: Command line warning: ignoring option '-M'; no argument required
|
8708
|
-
# The diagnosis changed in icc 8.0:
|
8709
|
-
# icc: Command line remark: option '-MP' not supported
|
8710
|
-
if (grep 'ignoring option' conftest.err ||
|
8711
|
-
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
8712
|
-
am_cv_$1_dependencies_compiler_type=$depmode
|
8713
|
-
break
|
8714
|
-
fi
|
8715
|
-
fi
|
8716
|
-
done
|
8717
|
-
|
8718
|
-
cd ..
|
8719
|
-
rm -rf conftest.dir
|
8720
|
-
else
|
8721
|
-
am_cv_$1_dependencies_compiler_type=none
|
8722
|
-
fi
|
8723
|
-
])
|
8724
|
-
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
8725
|
-
AM_CONDITIONAL([am__fastdep$1], [
|
8726
|
-
test "x$enable_dependency_tracking" != xno \
|
8727
|
-
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
8728
|
-
])
|
8729
|
-
|
8730
|
-
|
8731
|
-
# AM_SET_DEPDIR
|
8732
|
-
# -------------
|
8733
|
-
# Choose a directory name for dependency files.
|
8734
|
-
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
8735
|
-
AC_DEFUN([AM_SET_DEPDIR],
|
8736
|
-
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
8737
|
-
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
8738
|
-
])
|
8739
|
-
|
8740
|
-
|
8741
|
-
# AM_DEP_TRACK
|
8742
|
-
# ------------
|
8743
|
-
AC_DEFUN([AM_DEP_TRACK],
|
8744
|
-
[AC_ARG_ENABLE(dependency-tracking,
|
8745
|
-
[ --disable-dependency-tracking speeds up one-time build
|
8746
|
-
--enable-dependency-tracking do not reject slow dependency extractors])
|
8747
|
-
if test "x$enable_dependency_tracking" != xno; then
|
8748
|
-
am_depcomp="$ac_aux_dir/depcomp"
|
8749
|
-
AMDEPBACKSLASH='\'
|
8750
|
-
fi
|
8751
|
-
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
8752
|
-
AC_SUBST([AMDEPBACKSLASH])dnl
|
8753
|
-
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
8754
|
-
])
|
8755
|
-
|
8756
|
-
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
8757
|
-
|
8758
|
-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
8759
|
-
# Free Software Foundation, Inc.
|
8760
|
-
#
|
8761
|
-
# This file is free software; the Free Software Foundation
|
8762
|
-
# gives unlimited permission to copy and/or distribute it,
|
8763
|
-
# with or without modifications, as long as this notice is preserved.
|
8764
|
-
|
8765
|
-
#serial 5
|
8766
|
-
|
8767
|
-
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
8768
|
-
# ------------------------------
|
8769
|
-
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
8770
|
-
[{
|
8771
|
-
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
8772
|
-
# are listed without --file. Let's play safe and only enable the eval
|
8773
|
-
# if we detect the quoting.
|
8774
|
-
case $CONFIG_FILES in
|
8775
|
-
*\'*) eval set x "$CONFIG_FILES" ;;
|
8776
|
-
*) set x $CONFIG_FILES ;;
|
8777
|
-
esac
|
8778
|
-
shift
|
8779
|
-
for mf
|
8780
|
-
do
|
8781
|
-
# Strip MF so we end up with the name of the file.
|
8782
|
-
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
8783
|
-
# Check whether this is an Automake generated Makefile or not.
|
8784
|
-
# We used to match only the files named `Makefile.in', but
|
8785
|
-
# some people rename them; so instead we look at the file content.
|
8786
|
-
# Grep'ing the first line is not enough: some people post-process
|
8787
|
-
# each Makefile.in and add a new line on top of each file to say so.
|
8788
|
-
# Grep'ing the whole file is not good either: AIX grep has a line
|
8789
|
-
# limit of 2048, but all sed's we know have understand at least 4000.
|
8790
|
-
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
8791
|
-
dirpart=`AS_DIRNAME("$mf")`
|
8792
|
-
else
|
8793
|
-
continue
|
8794
|
-
fi
|
8795
|
-
# Extract the definition of DEPDIR, am__include, and am__quote
|
8796
|
-
# from the Makefile without running `make'.
|
8797
|
-
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
8798
|
-
test -z "$DEPDIR" && continue
|
8799
|
-
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
8800
|
-
test -z "am__include" && continue
|
8801
|
-
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
8802
|
-
# When using ansi2knr, U may be empty or an underscore; expand it
|
8803
|
-
U=`sed -n 's/^U = //p' < "$mf"`
|
8804
|
-
# Find all dependency output files, they are included files with
|
8805
|
-
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
8806
|
-
# simplest approach to changing $(DEPDIR) to its actual value in the
|
8807
|
-
# expansion.
|
8808
|
-
for file in `sed -n "
|
8809
|
-
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
8810
|
-
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
8811
|
-
# Make sure the directory exists.
|
8812
|
-
test -f "$dirpart/$file" && continue
|
8813
|
-
fdir=`AS_DIRNAME(["$file"])`
|
8814
|
-
AS_MKDIR_P([$dirpart/$fdir])
|
8815
|
-
# echo "creating $dirpart/$file"
|
8816
|
-
echo '# dummy' > "$dirpart/$file"
|
8817
|
-
done
|
8818
|
-
done
|
8819
|
-
}
|
8820
|
-
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
8821
|
-
|
8822
|
-
|
8823
|
-
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
8824
|
-
# -----------------------------
|
8825
|
-
# This macro should only be invoked once -- use via AC_REQUIRE.
|
8826
|
-
#
|
8827
|
-
# This code is only required when automatic dependency tracking
|
8828
|
-
# is enabled. FIXME. This creates each `.P' file that we will
|
8829
|
-
# need in order to bootstrap the dependency handling code.
|
8830
|
-
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
8831
|
-
[AC_CONFIG_COMMANDS([depfiles],
|
8832
|
-
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
8833
|
-
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
8834
|
-
])
|
8835
|
-
|
8836
|
-
# Do all the work for Automake. -*- Autoconf -*-
|
8837
|
-
|
8838
|
-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
8839
|
-
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
8840
|
-
#
|
8841
|
-
# This file is free software; the Free Software Foundation
|
8842
|
-
# gives unlimited permission to copy and/or distribute it,
|
8843
|
-
# with or without modifications, as long as this notice is preserved.
|
8844
|
-
|
8845
|
-
# serial 16
|
8846
|
-
|
8847
|
-
# This macro actually does too much. Some checks are only needed if
|
8848
|
-
# your package does certain things. But this isn't really a big deal.
|
8849
|
-
|
8850
|
-
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
8851
|
-
# AM_INIT_AUTOMAKE([OPTIONS])
|
8852
|
-
# -----------------------------------------------
|
8853
|
-
# The call with PACKAGE and VERSION arguments is the old style
|
8854
|
-
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
8855
|
-
# and VERSION should now be passed to AC_INIT and removed from
|
8856
|
-
# the call to AM_INIT_AUTOMAKE.
|
8857
|
-
# We support both call styles for the transition. After
|
8858
|
-
# the next Automake release, Autoconf can make the AC_INIT
|
8859
|
-
# arguments mandatory, and then we can depend on a new Autoconf
|
8860
|
-
# release and drop the old call support.
|
8861
|
-
AC_DEFUN([AM_INIT_AUTOMAKE],
|
8862
|
-
[AC_PREREQ([2.62])dnl
|
8863
|
-
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
8864
|
-
dnl the ones we care about.
|
8865
|
-
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
8866
|
-
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
8867
|
-
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
8868
|
-
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
8869
|
-
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
8870
|
-
# is not polluted with repeated "-I."
|
8871
|
-
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
8872
|
-
# test to see if srcdir already configured
|
8873
|
-
if test -f $srcdir/config.status; then
|
8874
|
-
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
8875
|
-
fi
|
8876
|
-
fi
|
8877
|
-
|
8878
|
-
# test whether we have cygpath
|
8879
|
-
if test -z "$CYGPATH_W"; then
|
8880
|
-
if (cygpath --version) >/dev/null 2>/dev/null; then
|
8881
|
-
CYGPATH_W='cygpath -w'
|
8882
|
-
else
|
8883
|
-
CYGPATH_W=echo
|
8884
|
-
fi
|
8885
|
-
fi
|
8886
|
-
AC_SUBST([CYGPATH_W])
|
8887
|
-
|
8888
|
-
# Define the identity of the package.
|
8889
|
-
dnl Distinguish between old-style and new-style calls.
|
8890
|
-
m4_ifval([$2],
|
8891
|
-
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
8892
|
-
AC_SUBST([PACKAGE], [$1])dnl
|
8893
|
-
AC_SUBST([VERSION], [$2])],
|
8894
|
-
[_AM_SET_OPTIONS([$1])dnl
|
8895
|
-
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
8896
|
-
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
8897
|
-
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
8898
|
-
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
8899
|
-
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
8900
|
-
|
8901
|
-
_AM_IF_OPTION([no-define],,
|
8902
|
-
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
8903
|
-
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
8904
|
-
|
8905
|
-
# Some tools Automake needs.
|
8906
|
-
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
8907
|
-
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
8908
|
-
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
8909
|
-
AM_MISSING_PROG(AUTOCONF, autoconf)
|
8910
|
-
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
8911
|
-
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
8912
|
-
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
8913
|
-
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
8914
|
-
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
8915
|
-
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
8916
|
-
# We need awk for the "check" target. The system "awk" is bad on
|
8917
|
-
# some platforms.
|
8918
|
-
AC_REQUIRE([AC_PROG_AWK])dnl
|
8919
|
-
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
8920
|
-
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
8921
|
-
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
8922
|
-
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
8923
|
-
[_AM_PROG_TAR([v7])])])
|
8924
|
-
_AM_IF_OPTION([no-dependencies],,
|
8925
|
-
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
8926
|
-
[_AM_DEPENDENCIES(CC)],
|
8927
|
-
[define([AC_PROG_CC],
|
8928
|
-
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
8929
|
-
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
8930
|
-
[_AM_DEPENDENCIES(CXX)],
|
8931
|
-
[define([AC_PROG_CXX],
|
8932
|
-
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
8933
|
-
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
8934
|
-
[_AM_DEPENDENCIES(OBJC)],
|
8935
|
-
[define([AC_PROG_OBJC],
|
8936
|
-
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
8937
|
-
])
|
8938
|
-
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
8939
|
-
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
|
8940
|
-
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
|
8941
|
-
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
8942
|
-
AC_CONFIG_COMMANDS_PRE(dnl
|
8943
|
-
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
8944
|
-
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
8945
|
-
])
|
8946
|
-
|
8947
|
-
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
8948
|
-
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
8949
|
-
dnl mangled by Autoconf and run in a shell conditional statement.
|
8950
|
-
m4_define([_AC_COMPILER_EXEEXT],
|
8951
|
-
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
8952
|
-
|
8953
|
-
|
8954
|
-
# When config.status generates a header, we must update the stamp-h file.
|
8955
|
-
# This file resides in the same directory as the config header
|
8956
|
-
# that is generated. The stamp files are numbered to have different names.
|
8957
|
-
|
8958
|
-
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
8959
|
-
# loop where config.status creates the headers, so we can generate
|
8960
|
-
# our stamp files there.
|
8961
|
-
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
8962
|
-
[# Compute $1's index in $config_headers.
|
8963
|
-
_am_arg=$1
|
8964
|
-
_am_stamp_count=1
|
8965
|
-
for _am_header in $config_headers :; do
|
8966
|
-
case $_am_header in
|
8967
|
-
$_am_arg | $_am_arg:* )
|
8968
|
-
break ;;
|
8969
|
-
* )
|
8970
|
-
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
8971
|
-
esac
|
8972
|
-
done
|
8973
|
-
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
8974
|
-
|
8975
|
-
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
|
8976
|
-
#
|
8977
|
-
# This file is free software; the Free Software Foundation
|
8978
|
-
# gives unlimited permission to copy and/or distribute it,
|
8979
|
-
# with or without modifications, as long as this notice is preserved.
|
8980
|
-
|
8981
|
-
# AM_PROG_INSTALL_SH
|
8982
|
-
# ------------------
|
8983
|
-
# Define $install_sh.
|
8984
|
-
AC_DEFUN([AM_PROG_INSTALL_SH],
|
8985
|
-
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
8986
|
-
if test x"${install_sh}" != xset; then
|
8987
|
-
case $am_aux_dir in
|
8988
|
-
*\ * | *\ *)
|
8989
|
-
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
8990
|
-
*)
|
8991
|
-
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
8992
|
-
esac
|
8993
|
-
fi
|
8994
|
-
AC_SUBST(install_sh)])
|
8995
|
-
|
8996
|
-
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
8997
|
-
#
|
8998
|
-
# This file is free software; the Free Software Foundation
|
8999
|
-
# gives unlimited permission to copy and/or distribute it,
|
9000
|
-
# with or without modifications, as long as this notice is preserved.
|
9001
|
-
|
9002
|
-
# serial 2
|
9003
|
-
|
9004
|
-
# Check whether the underlying file-system supports filenames
|
9005
|
-
# with a leading dot. For instance MS-DOS doesn't.
|
9006
|
-
AC_DEFUN([AM_SET_LEADING_DOT],
|
9007
|
-
[rm -rf .tst 2>/dev/null
|
9008
|
-
mkdir .tst 2>/dev/null
|
9009
|
-
if test -d .tst; then
|
9010
|
-
am__leading_dot=.
|
9011
|
-
else
|
9012
|
-
am__leading_dot=_
|
9013
|
-
fi
|
9014
|
-
rmdir .tst 2>/dev/null
|
9015
|
-
AC_SUBST([am__leading_dot])])
|
9016
|
-
|
9017
|
-
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
9018
|
-
# From Jim Meyering
|
9019
|
-
|
9020
|
-
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
9021
|
-
# Free Software Foundation, Inc.
|
9022
|
-
#
|
9023
|
-
# This file is free software; the Free Software Foundation
|
9024
|
-
# gives unlimited permission to copy and/or distribute it,
|
9025
|
-
# with or without modifications, as long as this notice is preserved.
|
9026
|
-
|
9027
|
-
# serial 5
|
9028
|
-
|
9029
|
-
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
9030
|
-
# ----------------------------------
|
9031
|
-
# Control maintainer-specific portions of Makefiles.
|
9032
|
-
# Default is to disable them, unless `enable' is passed literally.
|
9033
|
-
# For symmetry, `disable' may be passed as well. Anyway, the user
|
9034
|
-
# can override the default with the --enable/--disable switch.
|
9035
|
-
AC_DEFUN([AM_MAINTAINER_MODE],
|
9036
|
-
[m4_case(m4_default([$1], [disable]),
|
9037
|
-
[enable], [m4_define([am_maintainer_other], [disable])],
|
9038
|
-
[disable], [m4_define([am_maintainer_other], [enable])],
|
9039
|
-
[m4_define([am_maintainer_other], [enable])
|
9040
|
-
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
9041
|
-
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
|
9042
|
-
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
9043
|
-
AC_ARG_ENABLE([maintainer-mode],
|
9044
|
-
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
|
9045
|
-
(and sometimes confusing) to the casual installer],
|
9046
|
-
[USE_MAINTAINER_MODE=$enableval],
|
9047
|
-
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
9048
|
-
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
9049
|
-
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
9050
|
-
MAINT=$MAINTAINER_MODE_TRUE
|
9051
|
-
AC_SUBST([MAINT])dnl
|
9052
|
-
]
|
9053
|
-
)
|
9054
|
-
|
9055
|
-
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
9056
|
-
|
9057
|
-
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
9058
|
-
|
9059
|
-
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
|
9060
|
-
#
|
9061
|
-
# This file is free software; the Free Software Foundation
|
9062
|
-
# gives unlimited permission to copy and/or distribute it,
|
9063
|
-
# with or without modifications, as long as this notice is preserved.
|
9064
|
-
|
9065
|
-
# serial 4
|
9066
|
-
|
9067
|
-
# AM_MAKE_INCLUDE()
|
9068
|
-
# -----------------
|
9069
|
-
# Check to see how make treats includes.
|
9070
|
-
AC_DEFUN([AM_MAKE_INCLUDE],
|
9071
|
-
[am_make=${MAKE-make}
|
9072
|
-
cat > confinc << 'END'
|
9073
|
-
am__doit:
|
9074
|
-
@echo this is the am__doit target
|
9075
|
-
.PHONY: am__doit
|
9076
|
-
END
|
9077
|
-
# If we don't find an include directive, just comment out the code.
|
9078
|
-
AC_MSG_CHECKING([for style of include used by $am_make])
|
9079
|
-
am__include="#"
|
9080
|
-
am__quote=
|
9081
|
-
_am_result=none
|
9082
|
-
# First try GNU make style include.
|
9083
|
-
echo "include confinc" > confmf
|
9084
|
-
# Ignore all kinds of additional output from `make'.
|
9085
|
-
case `$am_make -s -f confmf 2> /dev/null` in #(
|
9086
|
-
*the\ am__doit\ target*)
|
9087
|
-
am__include=include
|
9088
|
-
am__quote=
|
9089
|
-
_am_result=GNU
|
9090
|
-
;;
|
9091
|
-
esac
|
9092
|
-
# Now try BSD make style include.
|
9093
|
-
if test "$am__include" = "#"; then
|
9094
|
-
echo '.include "confinc"' > confmf
|
9095
|
-
case `$am_make -s -f confmf 2> /dev/null` in #(
|
9096
|
-
*the\ am__doit\ target*)
|
9097
|
-
am__include=.include
|
9098
|
-
am__quote="\""
|
9099
|
-
_am_result=BSD
|
9100
|
-
;;
|
9101
|
-
esac
|
9102
|
-
fi
|
9103
|
-
AC_SUBST([am__include])
|
9104
|
-
AC_SUBST([am__quote])
|
9105
|
-
AC_MSG_RESULT([$_am_result])
|
9106
|
-
rm -f confinc confmf
|
9107
|
-
])
|
9108
|
-
|
9109
|
-
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
9110
|
-
# Free Software Foundation, Inc.
|
9111
|
-
#
|
9112
|
-
# This file is free software; the Free Software Foundation
|
9113
|
-
# gives unlimited permission to copy and/or distribute it,
|
9114
|
-
# with or without modifications, as long as this notice is preserved.
|
9115
|
-
|
9116
|
-
# serial 6
|
9117
|
-
|
9118
|
-
# AM_PROG_CC_C_O
|
9119
|
-
# --------------
|
9120
|
-
# Like AC_PROG_CC_C_O, but changed for automake.
|
9121
|
-
AC_DEFUN([AM_PROG_CC_C_O],
|
9122
|
-
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
9123
|
-
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
9124
|
-
AC_REQUIRE_AUX_FILE([compile])dnl
|
9125
|
-
# FIXME: we rely on the cache variable name because
|
9126
|
-
# there is no other way.
|
9127
|
-
set dummy $CC
|
9128
|
-
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
|
9129
|
-
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
|
9130
|
-
if test "$am_t" != yes; then
|
9131
|
-
# Losing compiler, so override with the script.
|
9132
|
-
# FIXME: It is wrong to rewrite CC.
|
9133
|
-
# But if we don't then we get into trouble of one sort or another.
|
9134
|
-
# A longer-term fix would be to have automake use am__CC in this case,
|
9135
|
-
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
9136
|
-
CC="$am_aux_dir/compile $CC"
|
9137
|
-
fi
|
9138
|
-
dnl Make sure AC_PROG_CC is never called again, or it will override our
|
9139
|
-
dnl setting of CC.
|
9140
|
-
m4_define([AC_PROG_CC],
|
9141
|
-
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
|
9142
|
-
])
|
9143
|
-
|
9144
|
-
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
9145
|
-
|
9146
|
-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
9147
|
-
# Free Software Foundation, Inc.
|
9148
|
-
#
|
9149
|
-
# This file is free software; the Free Software Foundation
|
9150
|
-
# gives unlimited permission to copy and/or distribute it,
|
9151
|
-
# with or without modifications, as long as this notice is preserved.
|
9152
|
-
|
9153
|
-
# serial 6
|
9154
|
-
|
9155
|
-
# AM_MISSING_PROG(NAME, PROGRAM)
|
9156
|
-
# ------------------------------
|
9157
|
-
AC_DEFUN([AM_MISSING_PROG],
|
9158
|
-
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
9159
|
-
$1=${$1-"${am_missing_run}$2"}
|
9160
|
-
AC_SUBST($1)])
|
9161
|
-
|
9162
|
-
|
9163
|
-
# AM_MISSING_HAS_RUN
|
9164
|
-
# ------------------
|
9165
|
-
# Define MISSING if not defined so far and test if it supports --run.
|
9166
|
-
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
9167
|
-
AC_DEFUN([AM_MISSING_HAS_RUN],
|
9168
|
-
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
9169
|
-
AC_REQUIRE_AUX_FILE([missing])dnl
|
9170
|
-
if test x"${MISSING+set}" != xset; then
|
9171
|
-
case $am_aux_dir in
|
9172
|
-
*\ * | *\ *)
|
9173
|
-
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
9174
|
-
*)
|
9175
|
-
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
9176
|
-
esac
|
9177
|
-
fi
|
9178
|
-
# Use eval to expand $SHELL
|
9179
|
-
if eval "$MISSING --run true"; then
|
9180
|
-
am_missing_run="$MISSING --run "
|
9181
|
-
else
|
9182
|
-
am_missing_run=
|
9183
|
-
AC_MSG_WARN([`missing' script is too old or missing])
|
9184
|
-
fi
|
9185
|
-
])
|
9186
|
-
|
9187
|
-
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
9188
|
-
#
|
9189
|
-
# This file is free software; the Free Software Foundation
|
9190
|
-
# gives unlimited permission to copy and/or distribute it,
|
9191
|
-
# with or without modifications, as long as this notice is preserved.
|
9192
|
-
|
9193
|
-
# AM_PROG_MKDIR_P
|
9194
|
-
# ---------------
|
9195
|
-
# Check for `mkdir -p'.
|
9196
|
-
AC_DEFUN([AM_PROG_MKDIR_P],
|
9197
|
-
[AC_PREREQ([2.60])dnl
|
9198
|
-
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
9199
|
-
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
9200
|
-
dnl while keeping a definition of mkdir_p for backward compatibility.
|
9201
|
-
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
9202
|
-
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
9203
|
-
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
9204
|
-
dnl adjustment using top_builddir (which is defined more often than
|
9205
|
-
dnl MKDIR_P).
|
9206
|
-
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
9207
|
-
case $mkdir_p in
|
9208
|
-
[[\\/$]]* | ?:[[\\/]]*) ;;
|
9209
|
-
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
9210
|
-
esac
|
9211
|
-
])
|
9212
|
-
|
9213
|
-
# Helper functions for option handling. -*- Autoconf -*-
|
9214
|
-
|
9215
|
-
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
|
9216
|
-
#
|
9217
|
-
# This file is free software; the Free Software Foundation
|
9218
|
-
# gives unlimited permission to copy and/or distribute it,
|
9219
|
-
# with or without modifications, as long as this notice is preserved.
|
9220
|
-
|
9221
|
-
# serial 4
|
9222
|
-
|
9223
|
-
# _AM_MANGLE_OPTION(NAME)
|
9224
|
-
# -----------------------
|
9225
|
-
AC_DEFUN([_AM_MANGLE_OPTION],
|
9226
|
-
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
9227
|
-
|
9228
|
-
# _AM_SET_OPTION(NAME)
|
9229
|
-
# ------------------------------
|
9230
|
-
# Set option NAME. Presently that only means defining a flag for this option.
|
9231
|
-
AC_DEFUN([_AM_SET_OPTION],
|
9232
|
-
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
9233
|
-
|
9234
|
-
# _AM_SET_OPTIONS(OPTIONS)
|
9235
|
-
# ----------------------------------
|
9236
|
-
# OPTIONS is a space-separated list of Automake options.
|
9237
|
-
AC_DEFUN([_AM_SET_OPTIONS],
|
9238
|
-
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
9239
|
-
|
9240
|
-
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
9241
|
-
# -------------------------------------------
|
9242
|
-
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
9243
|
-
AC_DEFUN([_AM_IF_OPTION],
|
9244
|
-
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
9245
|
-
|
9246
|
-
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
9247
|
-
|
9248
|
-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
|
9249
|
-
# Free Software Foundation, Inc.
|
9250
|
-
#
|
9251
|
-
# This file is free software; the Free Software Foundation
|
9252
|
-
# gives unlimited permission to copy and/or distribute it,
|
9253
|
-
# with or without modifications, as long as this notice is preserved.
|
9254
|
-
|
9255
|
-
# serial 5
|
9256
|
-
|
9257
|
-
# AM_SANITY_CHECK
|
9258
|
-
# ---------------
|
9259
|
-
AC_DEFUN([AM_SANITY_CHECK],
|
9260
|
-
[AC_MSG_CHECKING([whether build environment is sane])
|
9261
|
-
# Just in case
|
9262
|
-
sleep 1
|
9263
|
-
echo timestamp > conftest.file
|
9264
|
-
# Reject unsafe characters in $srcdir or the absolute working directory
|
9265
|
-
# name. Accept space and tab only in the latter.
|
9266
|
-
am_lf='
|
9267
|
-
'
|
9268
|
-
case `pwd` in
|
9269
|
-
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
9270
|
-
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
9271
|
-
esac
|
9272
|
-
case $srcdir in
|
9273
|
-
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
9274
|
-
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
|
9275
|
-
esac
|
9276
|
-
|
9277
|
-
# Do `set' in a subshell so we don't clobber the current shell's
|
9278
|
-
# arguments. Must try -L first in case configure is actually a
|
9279
|
-
# symlink; some systems play weird games with the mod time of symlinks
|
9280
|
-
# (eg FreeBSD returns the mod time of the symlink's containing
|
9281
|
-
# directory).
|
9282
|
-
if (
|
9283
|
-
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
9284
|
-
if test "$[*]" = "X"; then
|
9285
|
-
# -L didn't work.
|
9286
|
-
set X `ls -t "$srcdir/configure" conftest.file`
|
9287
|
-
fi
|
9288
|
-
rm -f conftest.file
|
9289
|
-
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
9290
|
-
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
9291
|
-
|
9292
|
-
# If neither matched, then we have a broken ls. This can happen
|
9293
|
-
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
9294
|
-
# broken ls alias from the environment. This has actually
|
9295
|
-
# happened. Such a system could not be considered "sane".
|
9296
|
-
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
9297
|
-
alias in your environment])
|
9298
|
-
fi
|
9299
|
-
|
9300
|
-
test "$[2]" = conftest.file
|
9301
|
-
)
|
9302
|
-
then
|
9303
|
-
# Ok.
|
9304
|
-
:
|
9305
|
-
else
|
9306
|
-
AC_MSG_ERROR([newly created file is older than distributed files!
|
9307
|
-
Check your system clock])
|
9308
|
-
fi
|
9309
|
-
AC_MSG_RESULT(yes)])
|
9310
|
-
|
9311
|
-
# Copyright (C) 2009 Free Software Foundation, Inc.
|
9312
|
-
#
|
9313
|
-
# This file is free software; the Free Software Foundation
|
9314
|
-
# gives unlimited permission to copy and/or distribute it,
|
9315
|
-
# with or without modifications, as long as this notice is preserved.
|
9316
|
-
|
9317
|
-
# serial 1
|
9318
|
-
|
9319
|
-
# AM_SILENT_RULES([DEFAULT])
|
9320
|
-
# --------------------------
|
9321
|
-
# Enable less verbose build rules; with the default set to DEFAULT
|
9322
|
-
# (`yes' being less verbose, `no' or empty being verbose).
|
9323
|
-
AC_DEFUN([AM_SILENT_RULES],
|
9324
|
-
[AC_ARG_ENABLE([silent-rules],
|
9325
|
-
[ --enable-silent-rules less verbose build output (undo: `make V=1')
|
9326
|
-
--disable-silent-rules verbose build output (undo: `make V=0')])
|
9327
|
-
case $enable_silent_rules in
|
9328
|
-
yes) AM_DEFAULT_VERBOSITY=0;;
|
9329
|
-
no) AM_DEFAULT_VERBOSITY=1;;
|
9330
|
-
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
9331
|
-
esac
|
9332
|
-
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
9333
|
-
AM_BACKSLASH='\'
|
9334
|
-
AC_SUBST([AM_BACKSLASH])dnl
|
9335
|
-
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
9336
|
-
])
|
9337
|
-
|
9338
|
-
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
9339
|
-
#
|
9340
|
-
# This file is free software; the Free Software Foundation
|
9341
|
-
# gives unlimited permission to copy and/or distribute it,
|
9342
|
-
# with or without modifications, as long as this notice is preserved.
|
9343
|
-
|
9344
|
-
# AM_PROG_INSTALL_STRIP
|
9345
|
-
# ---------------------
|
9346
|
-
# One issue with vendor `install' (even GNU) is that you can't
|
9347
|
-
# specify the program used to strip binaries. This is especially
|
9348
|
-
# annoying in cross-compiling environments, where the build's strip
|
9349
|
-
# is unlikely to handle the host's binaries.
|
9350
|
-
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
9351
|
-
# always use install-sh in `make install-strip', and initialize
|
9352
|
-
# STRIPPROG with the value of the STRIP variable (set by the user).
|
9353
|
-
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
9354
|
-
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
9355
|
-
# Installed binaries are usually stripped using `strip' when the user
|
9356
|
-
# run `make install-strip'. However `strip' might not be the right
|
9357
|
-
# tool to use in cross-compilation environments, therefore Automake
|
9358
|
-
# will honor the `STRIP' environment variable to overrule this program.
|
9359
|
-
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
9360
|
-
if test "$cross_compiling" != no; then
|
9361
|
-
AC_CHECK_TOOL([STRIP], [strip], :)
|
9362
|
-
fi
|
9363
|
-
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
9364
|
-
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
9365
|
-
|
9366
|
-
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
9367
|
-
#
|
9368
|
-
# This file is free software; the Free Software Foundation
|
9369
|
-
# gives unlimited permission to copy and/or distribute it,
|
9370
|
-
# with or without modifications, as long as this notice is preserved.
|
9371
|
-
|
9372
|
-
# serial 2
|
9373
|
-
|
9374
|
-
# _AM_SUBST_NOTMAKE(VARIABLE)
|
9375
|
-
# ---------------------------
|
9376
|
-
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
9377
|
-
# This macro is traced by Automake.
|
9378
|
-
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
9379
|
-
|
9380
|
-
# AM_SUBST_NOTMAKE(VARIABLE)
|
9381
|
-
# ---------------------------
|
9382
|
-
# Public sister of _AM_SUBST_NOTMAKE.
|
9383
|
-
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
9384
|
-
|
9385
|
-
# Check how to create a tarball. -*- Autoconf -*-
|
9386
|
-
|
9387
|
-
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
9388
|
-
#
|
9389
|
-
# This file is free software; the Free Software Foundation
|
9390
|
-
# gives unlimited permission to copy and/or distribute it,
|
9391
|
-
# with or without modifications, as long as this notice is preserved.
|
9392
|
-
|
9393
|
-
# serial 2
|
9394
|
-
|
9395
|
-
# _AM_PROG_TAR(FORMAT)
|
9396
|
-
# --------------------
|
9397
|
-
# Check how to create a tarball in format FORMAT.
|
9398
|
-
# FORMAT should be one of `v7', `ustar', or `pax'.
|
9399
|
-
#
|
9400
|
-
# Substitute a variable $(am__tar) that is a command
|
9401
|
-
# writing to stdout a FORMAT-tarball containing the directory
|
9402
|
-
# $tardir.
|
9403
|
-
# tardir=directory && $(am__tar) > result.tar
|
9404
|
-
#
|
9405
|
-
# Substitute a variable $(am__untar) that extract such
|
9406
|
-
# a tarball read from stdin.
|
9407
|
-
# $(am__untar) < result.tar
|
9408
|
-
AC_DEFUN([_AM_PROG_TAR],
|
9409
|
-
[# Always define AMTAR for backward compatibility.
|
9410
|
-
AM_MISSING_PROG([AMTAR], [tar])
|
9411
|
-
m4_if([$1], [v7],
|
9412
|
-
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
9413
|
-
[m4_case([$1], [ustar],, [pax],,
|
9414
|
-
[m4_fatal([Unknown tar format])])
|
9415
|
-
AC_MSG_CHECKING([how to create a $1 tar archive])
|
9416
|
-
# Loop over all known methods to create a tar archive until one works.
|
9417
|
-
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
9418
|
-
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
9419
|
-
# Do not fold the above two line into one, because Tru64 sh and
|
9420
|
-
# Solaris sh will not grok spaces in the rhs of `-'.
|
9421
|
-
for _am_tool in $_am_tools
|
9422
|
-
do
|
9423
|
-
case $_am_tool in
|
9424
|
-
gnutar)
|
9425
|
-
for _am_tar in tar gnutar gtar;
|
9426
|
-
do
|
9427
|
-
AM_RUN_LOG([$_am_tar --version]) && break
|
9428
|
-
done
|
9429
|
-
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
9430
|
-
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
9431
|
-
am__untar="$_am_tar -xf -"
|
9432
|
-
;;
|
9433
|
-
plaintar)
|
9434
|
-
# Must skip GNU tar: if it does not support --format= it doesn't create
|
9435
|
-
# ustar tarball either.
|
9436
|
-
(tar --version) >/dev/null 2>&1 && continue
|
9437
|
-
am__tar='tar chf - "$$tardir"'
|
9438
|
-
am__tar_='tar chf - "$tardir"'
|
9439
|
-
am__untar='tar xf -'
|
9440
|
-
;;
|
9441
|
-
pax)
|
9442
|
-
am__tar='pax -L -x $1 -w "$$tardir"'
|
9443
|
-
am__tar_='pax -L -x $1 -w "$tardir"'
|
9444
|
-
am__untar='pax -r'
|
9445
|
-
;;
|
9446
|
-
cpio)
|
9447
|
-
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
9448
|
-
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
9449
|
-
am__untar='cpio -i -H $1 -d'
|
9450
|
-
;;
|
9451
|
-
none)
|
9452
|
-
am__tar=false
|
9453
|
-
am__tar_=false
|
9454
|
-
am__untar=false
|
9455
|
-
;;
|
9456
|
-
esac
|
9457
|
-
|
9458
|
-
# If the value was cached, stop now. We just wanted to have am__tar
|
9459
|
-
# and am__untar set.
|
9460
|
-
test -n "${am_cv_prog_tar_$1}" && break
|
9461
|
-
|
9462
|
-
# tar/untar a dummy directory, and stop if the command works
|
9463
|
-
rm -rf conftest.dir
|
9464
|
-
mkdir conftest.dir
|
9465
|
-
echo GrepMe > conftest.dir/file
|
9466
|
-
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
9467
|
-
rm -rf conftest.dir
|
9468
|
-
if test -s conftest.tar; then
|
9469
|
-
AM_RUN_LOG([$am__untar <conftest.tar])
|
9470
|
-
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
9471
|
-
fi
|
9472
|
-
done
|
9473
|
-
rm -rf conftest.dir
|
9474
|
-
|
9475
|
-
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
9476
|
-
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
9477
|
-
AC_SUBST([am__tar])
|
9478
|
-
AC_SUBST([am__untar])
|
9479
|
-
]) # _AM_PROG_TAR
|
9480
|
-
|