ffi 1.9.21-x64-mingw32 → 1.9.22-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +22 -0
- data/.gitmodules +3 -0
- data/.travis.yml +52 -0
- data/.yardopts +5 -0
- data/Gemfile +15 -0
- data/{spec/ffi/LICENSE.SPECS → LICENSE.SPECS} +1 -1
- data/README.md +1 -1
- data/Rakefile +28 -3
- data/appveyor.yml +22 -0
- data/ffi.gemspec +14 -1
- data/lib/2.0/ffi_c.so +0 -0
- data/lib/2.1/ffi_c.so +0 -0
- data/lib/2.2/ffi_c.so +0 -0
- data/lib/2.3/ffi_c.so +0 -0
- data/lib/2.4/ffi_c.so +0 -0
- data/lib/2.5/ffi_c.so +0 -0
- data/lib/ffi/library.rb +1 -1
- data/lib/ffi/version.rb +1 -1
- data/samples/getlogin.rb +8 -0
- data/samples/getpid.rb +8 -0
- data/samples/gettimeofday.rb +18 -0
- data/samples/hello.rb +7 -0
- data/samples/inotify.rb +60 -0
- data/samples/pty.rb +76 -0
- data/samples/qsort.rb +21 -0
- data/samples/sample_helper.rb +6 -0
- metadata +17 -526
- data/ext/ffi_c/AbstractMemory.c +0 -1109
- data/ext/ffi_c/AbstractMemory.h +0 -175
- data/ext/ffi_c/ArrayType.c +0 -162
- data/ext/ffi_c/ArrayType.h +0 -59
- data/ext/ffi_c/Buffer.c +0 -365
- data/ext/ffi_c/Call.c +0 -517
- data/ext/ffi_c/Call.h +0 -110
- data/ext/ffi_c/ClosurePool.c +0 -283
- data/ext/ffi_c/ClosurePool.h +0 -57
- data/ext/ffi_c/DataConverter.c +0 -91
- data/ext/ffi_c/DynamicLibrary.c +0 -339
- data/ext/ffi_c/DynamicLibrary.h +0 -98
- data/ext/ffi_c/Function.c +0 -998
- data/ext/ffi_c/Function.h +0 -87
- data/ext/ffi_c/FunctionInfo.c +0 -271
- data/ext/ffi_c/LastError.c +0 -184
- data/ext/ffi_c/LastError.h +0 -47
- data/ext/ffi_c/LongDouble.c +0 -63
- data/ext/ffi_c/LongDouble.h +0 -51
- data/ext/ffi_c/MappedType.c +0 -168
- data/ext/ffi_c/MappedType.h +0 -59
- data/ext/ffi_c/MemoryPointer.c +0 -197
- data/ext/ffi_c/MemoryPointer.h +0 -53
- data/ext/ffi_c/MethodHandle.c +0 -358
- data/ext/ffi_c/MethodHandle.h +0 -55
- data/ext/ffi_c/Platform.c +0 -129
- data/ext/ffi_c/Platform.h +0 -45
- data/ext/ffi_c/Pointer.c +0 -508
- data/ext/ffi_c/Pointer.h +0 -63
- data/ext/ffi_c/Struct.c +0 -829
- data/ext/ffi_c/Struct.h +0 -106
- data/ext/ffi_c/StructByReference.c +0 -190
- data/ext/ffi_c/StructByReference.h +0 -50
- data/ext/ffi_c/StructByValue.c +0 -150
- data/ext/ffi_c/StructByValue.h +0 -55
- data/ext/ffi_c/StructLayout.c +0 -698
- data/ext/ffi_c/Thread.c +0 -352
- data/ext/ffi_c/Thread.h +0 -95
- data/ext/ffi_c/Type.c +0 -397
- data/ext/ffi_c/Type.h +0 -62
- data/ext/ffi_c/Types.c +0 -139
- data/ext/ffi_c/Types.h +0 -89
- data/ext/ffi_c/Variadic.c +0 -304
- data/ext/ffi_c/compat.h +0 -78
- data/ext/ffi_c/extconf.rb +0 -71
- data/ext/ffi_c/ffi.c +0 -98
- data/ext/ffi_c/libffi.bsd.mk +0 -40
- data/ext/ffi_c/libffi.darwin.mk +0 -105
- data/ext/ffi_c/libffi.gnu.mk +0 -32
- data/ext/ffi_c/libffi.mk +0 -18
- data/ext/ffi_c/libffi.vc.mk +0 -26
- data/ext/ffi_c/libffi.vc64.mk +0 -26
- data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
- data/ext/ffi_c/libffi/ChangeLog.libffi-3.1 +0 -6000
- data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
- data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
- data/ext/ffi_c/libffi/LICENSE +0 -21
- data/ext/ffi_c/libffi/Makefile.am +0 -205
- data/ext/ffi_c/libffi/Makefile.in +0 -1805
- data/ext/ffi_c/libffi/README +0 -454
- data/ext/ffi_c/libffi/acinclude.m4 +0 -473
- data/ext/ffi_c/libffi/aclocal.m4 +0 -2134
- data/ext/ffi_c/libffi/autogen.sh +0 -2
- data/ext/ffi_c/libffi/autom4te.cache/output.0 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.1 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.2 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.3 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/requests +0 -331
- data/ext/ffi_c/libffi/autom4te.cache/traces.0 +0 -4010
- data/ext/ffi_c/libffi/autom4te.cache/traces.1 +0 -1005
- data/ext/ffi_c/libffi/autom4te.cache/traces.2 +0 -4010
- data/ext/ffi_c/libffi/autom4te.cache/traces.3 +0 -4010
- data/ext/ffi_c/libffi/compile +0 -347
- data/ext/ffi_c/libffi/config.guess +0 -1462
- data/ext/ffi_c/libffi/config.sub +0 -1825
- data/ext/ffi_c/libffi/configure +0 -21972
- data/ext/ffi_c/libffi/configure.ac +0 -388
- data/ext/ffi_c/libffi/configure.host +0 -272
- data/ext/ffi_c/libffi/depcomp +0 -791
- data/ext/ffi_c/libffi/doc/Makefile.am +0 -3
- data/ext/ffi_c/libffi/doc/Makefile.in +0 -811
- data/ext/ffi_c/libffi/doc/libffi.texi +0 -985
- data/ext/ffi_c/libffi/doc/mdate-sh +0 -228
- data/ext/ffi_c/libffi/doc/texinfo.tex +0 -10079
- data/ext/ffi_c/libffi/doc/version.texi +0 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +0 -210
- data/ext/ffi_c/libffi/fficonfig.h.in~ +0 -210
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +0 -207
- data/ext/ffi_c/libffi/include/Makefile.am +0 -9
- data/ext/ffi_c/libffi/include/Makefile.in +0 -604
- data/ext/ffi_c/libffi/include/ffi.h.in +0 -484
- data/ext/ffi_c/libffi/include/ffi_cfi.h +0 -55
- data/ext/ffi_c/libffi/include/ffi_common.h +0 -147
- data/ext/ffi_c/libffi/install-sh +0 -508
- data/ext/ffi_c/libffi/libffi.map.in +0 -80
- data/ext/ffi_c/libffi/libffi.pc.in +0 -11
- data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +0 -637
- data/ext/ffi_c/libffi/libtool-ldflags +0 -106
- data/ext/ffi_c/libffi/libtool-version +0 -29
- data/ext/ffi_c/libffi/ltmain.sh +0 -11156
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +0 -13
- data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +0 -69
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +0 -181
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +0 -122
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +0 -72
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +0 -84
- data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +0 -70
- data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +0 -301
- data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +0 -225
- data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +0 -79
- data/ext/ffi_c/libffi/m4/libtool.m4 +0 -8387
- data/ext/ffi_c/libffi/m4/ltoptions.m4 +0 -437
- data/ext/ffi_c/libffi/m4/ltsugar.m4 +0 -124
- data/ext/ffi_c/libffi/m4/ltversion.m4 +0 -23
- data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +0 -99
- data/ext/ffi_c/libffi/man/Makefile.am +0 -8
- data/ext/ffi_c/libffi/man/Makefile.in +0 -558
- data/ext/ffi_c/libffi/man/ffi.3 +0 -41
- data/ext/ffi_c/libffi/man/ffi_call.3 +0 -103
- data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +0 -68
- data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +0 -73
- data/ext/ffi_c/libffi/missing +0 -215
- data/ext/ffi_c/libffi/msvcc.sh +0 -260
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +0 -941
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +0 -81
- data/ext/ffi_c/libffi/src/aarch64/internal.h +0 -67
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +0 -438
- data/ext/ffi_c/libffi/src/alpha/ffi.c +0 -521
- data/ext/ffi_c/libffi/src/alpha/ffitarget.h +0 -57
- data/ext/ffi_c/libffi/src/alpha/internal.h +0 -23
- data/ext/ffi_c/libffi/src/alpha/osf.S +0 -282
- data/ext/ffi_c/libffi/src/arc/arcompact.S +0 -135
- data/ext/ffi_c/libffi/src/arc/ffi.c +0 -266
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/arm/ffi.c +0 -808
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +0 -82
- data/ext/ffi_c/libffi/src/arm/internal.h +0 -7
- data/ext/ffi_c/libffi/src/arm/sysv.S +0 -383
- data/ext/ffi_c/libffi/src/avr32/ffi.c +0 -423
- data/ext/ffi_c/libffi/src/avr32/ffitarget.h +0 -55
- data/ext/ffi_c/libffi/src/avr32/sysv.S +0 -208
- data/ext/ffi_c/libffi/src/bfin/ffi.c +0 -196
- data/ext/ffi_c/libffi/src/bfin/ffitarget.h +0 -43
- data/ext/ffi_c/libffi/src/bfin/sysv.S +0 -179
- data/ext/ffi_c/libffi/src/closures.c +0 -890
- data/ext/ffi_c/libffi/src/cris/ffi.c +0 -386
- data/ext/ffi_c/libffi/src/cris/ffitarget.h +0 -56
- data/ext/ffi_c/libffi/src/cris/sysv.S +0 -215
- data/ext/ffi_c/libffi/src/debug.c +0 -64
- data/ext/ffi_c/libffi/src/dlmalloc.c +0 -5166
- data/ext/ffi_c/libffi/src/frv/eabi.S +0 -128
- data/ext/ffi_c/libffi/src/frv/ffi.c +0 -292
- data/ext/ffi_c/libffi/src/frv/ffitarget.h +0 -62
- data/ext/ffi_c/libffi/src/ia64/ffi.c +0 -586
- data/ext/ffi_c/libffi/src/ia64/ffitarget.h +0 -55
- data/ext/ffi_c/libffi/src/ia64/ia64_flags.h +0 -40
- data/ext/ffi_c/libffi/src/ia64/unix.S +0 -560
- data/ext/ffi_c/libffi/src/java_raw_api.c +0 -374
- data/ext/ffi_c/libffi/src/m32r/ffi.c +0 -232
- data/ext/ffi_c/libffi/src/m32r/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/m32r/sysv.S +0 -121
- data/ext/ffi_c/libffi/src/m68k/ffi.c +0 -362
- data/ext/ffi_c/libffi/src/m68k/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/m68k/sysv.S +0 -357
- data/ext/ffi_c/libffi/src/m88k/ffi.c +0 -400
- data/ext/ffi_c/libffi/src/m88k/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/m88k/obsd.S +0 -209
- data/ext/ffi_c/libffi/src/metag/ffi.c +0 -330
- data/ext/ffi_c/libffi/src/metag/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/metag/sysv.S +0 -311
- data/ext/ffi_c/libffi/src/microblaze/ffi.c +0 -321
- data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/microblaze/sysv.S +0 -302
- data/ext/ffi_c/libffi/src/mips/ffi.c +0 -1105
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +0 -249
- data/ext/ffi_c/libffi/src/mips/n32.S +0 -661
- data/ext/ffi_c/libffi/src/mips/o32.S +0 -502
- data/ext/ffi_c/libffi/src/moxie/eabi.S +0 -101
- data/ext/ffi_c/libffi/src/moxie/ffi.c +0 -272
- data/ext/ffi_c/libffi/src/moxie/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
- data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
- data/ext/ffi_c/libffi/src/or1k/ffi.c +0 -328
- data/ext/ffi_c/libffi/src/or1k/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/or1k/sysv.S +0 -107
- data/ext/ffi_c/libffi/src/pa/ffi.c +0 -719
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +0 -85
- data/ext/ffi_c/libffi/src/pa/hpux32.S +0 -368
- data/ext/ffi_c/libffi/src/pa/linux.S +0 -357
- data/ext/ffi_c/libffi/src/powerpc/aix.S +0 -328
- data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +0 -447
- data/ext/ffi_c/libffi/src/powerpc/asm.h +0 -125
- data/ext/ffi_c/libffi/src/powerpc/darwin.S +0 -378
- data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +0 -571
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +0 -173
- data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +0 -1359
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +0 -945
- data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +0 -94
- data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +0 -923
- data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +0 -195
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +0 -228
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +0 -488
- data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +0 -397
- data/ext/ffi_c/libffi/src/powerpc/sysv.S +0 -175
- data/ext/ffi_c/libffi/src/prep_cif.c +0 -261
- data/ext/ffi_c/libffi/src/raw_api.c +0 -267
- data/ext/ffi_c/libffi/src/s390/ffi.c +0 -756
- data/ext/ffi_c/libffi/src/s390/ffitarget.h +0 -70
- data/ext/ffi_c/libffi/src/s390/internal.h +0 -11
- data/ext/ffi_c/libffi/src/s390/sysv.S +0 -325
- data/ext/ffi_c/libffi/src/sh/ffi.c +0 -717
- data/ext/ffi_c/libffi/src/sh/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/sh/sysv.S +0 -850
- data/ext/ffi_c/libffi/src/sh64/ffi.c +0 -469
- data/ext/ffi_c/libffi/src/sh64/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/sh64/sysv.S +0 -539
- data/ext/ffi_c/libffi/src/sparc/ffi.c +0 -468
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +0 -608
- data/ext/ffi_c/libffi/src/sparc/ffitarget.h +0 -81
- data/ext/ffi_c/libffi/src/sparc/internal.h +0 -26
- data/ext/ffi_c/libffi/src/sparc/v8.S +0 -443
- data/ext/ffi_c/libffi/src/sparc/v9.S +0 -440
- data/ext/ffi_c/libffi/src/tile/ffi.c +0 -355
- data/ext/ffi_c/libffi/src/tile/ffitarget.h +0 -65
- data/ext/ffi_c/libffi/src/tile/tile.S +0 -360
- data/ext/ffi_c/libffi/src/types.c +0 -106
- data/ext/ffi_c/libffi/src/vax/elfbsd.S +0 -195
- data/ext/ffi_c/libffi/src/vax/ffi.c +0 -276
- data/ext/ffi_c/libffi/src/vax/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/x86/asmnames.h +0 -30
- data/ext/ffi_c/libffi/src/x86/ffi.c +0 -733
- data/ext/ffi_c/libffi/src/x86/ffi64.c +0 -857
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +0 -141
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +0 -287
- data/ext/ffi_c/libffi/src/x86/internal.h +0 -29
- data/ext/ffi_c/libffi/src/x86/internal64.h +0 -22
- data/ext/ffi_c/libffi/src/x86/sysv.S +0 -1043
- data/ext/ffi_c/libffi/src/x86/unix64.S +0 -525
- data/ext/ffi_c/libffi/src/x86/win64.S +0 -232
- data/ext/ffi_c/libffi/src/x86/win64_intel.S +0 -237
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +0 -298
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +0 -253
- data/ext/ffi_c/libffi/stamp-h.in +0 -1
- data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -85
- data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -607
- data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -445
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
- data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -30
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn2.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn3.c +0 -82
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn4.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn5.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn6.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_loc_fn0.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_simple.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +0 -96
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +0 -99
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +0 -97
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +0 -88
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +0 -132
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_float.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +0 -105
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_schar.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_uchar.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_schar.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sint.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sshort.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -136
- data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -107
- data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +0 -341
- data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +0 -161
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +0 -133
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +0 -110
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +0 -112
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
- data/ext/ffi_c/libffi/testsuite/libffi.call/problem1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest.cc +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest_ffi_call.cc +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -196
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -123
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
- data/ext/ffi_c/rbffi.h +0 -57
- data/ext/ffi_c/rbffi_endian.h +0 -59
- data/ext/ffi_c/win32/stdbool.h +0 -8
- data/ext/ffi_c/win32/stdint.h +0 -201
- data/gen/Rakefile +0 -30
- data/libtest/Benchmark.c +0 -52
- data/libtest/BoolTest.c +0 -34
- data/libtest/BufferTest.c +0 -31
- data/libtest/ClosureTest.c +0 -205
- data/libtest/EnumTest.c +0 -51
- data/libtest/FunctionTest.c +0 -70
- data/libtest/GNUmakefile +0 -149
- data/libtest/GlobalVariable.c +0 -62
- data/libtest/LastErrorTest.c +0 -21
- data/libtest/NumberTest.c +0 -132
- data/libtest/PointerTest.c +0 -63
- data/libtest/ReferenceTest.c +0 -23
- data/libtest/StringTest.c +0 -34
- data/libtest/StructTest.c +0 -243
- data/libtest/UnionTest.c +0 -43
- data/libtest/VariadicTest.c +0 -99
- data/spec/ffi/async_callback_spec.rb +0 -35
- data/spec/ffi/bitmask_spec.rb +0 -575
- data/spec/ffi/bool_spec.rb +0 -32
- data/spec/ffi/buffer_spec.rb +0 -279
- data/spec/ffi/callback_spec.rb +0 -773
- data/spec/ffi/custom_param_type.rb +0 -37
- data/spec/ffi/custom_type_spec.rb +0 -74
- data/spec/ffi/dup_spec.rb +0 -52
- data/spec/ffi/embed-test/ext/Makefile +0 -242
- data/spec/ffi/enum_spec.rb +0 -423
- data/spec/ffi/errno_spec.rb +0 -20
- data/spec/ffi/ffi_spec.rb +0 -28
- data/spec/ffi/fixtures/Benchmark.c +0 -52
- data/spec/ffi/fixtures/BitmaskTest.c +0 -51
- data/spec/ffi/fixtures/BoolTest.c +0 -34
- data/spec/ffi/fixtures/BufferTest.c +0 -31
- data/spec/ffi/fixtures/ClosureTest.c +0 -205
- data/spec/ffi/fixtures/EnumTest.c +0 -51
- data/spec/ffi/fixtures/FunctionTest.c +0 -142
- data/spec/ffi/fixtures/GNUmakefile +0 -149
- data/spec/ffi/fixtures/GlobalVariable.c +0 -62
- data/spec/ffi/fixtures/LastErrorTest.c +0 -21
- data/spec/ffi/fixtures/NumberTest.c +0 -132
- data/spec/ffi/fixtures/PipeHelper.h +0 -21
- data/spec/ffi/fixtures/PipeHelperPosix.c +0 -41
- data/spec/ffi/fixtures/PipeHelperWindows.c +0 -72
- data/spec/ffi/fixtures/PointerTest.c +0 -63
- data/spec/ffi/fixtures/ReferenceTest.c +0 -23
- data/spec/ffi/fixtures/StringTest.c +0 -34
- data/spec/ffi/fixtures/StructTest.c +0 -243
- data/spec/ffi/fixtures/UnionTest.c +0 -43
- data/spec/ffi/fixtures/VariadicTest.c +0 -99
- data/spec/ffi/fixtures/classes.rb +0 -438
- data/spec/ffi/function_spec.rb +0 -97
- data/spec/ffi/io_spec.rb +0 -16
- data/spec/ffi/library_spec.rb +0 -286
- data/spec/ffi/long_double.rb +0 -30
- data/spec/ffi/managed_struct_spec.rb +0 -68
- data/spec/ffi/memorypointer_spec.rb +0 -78
- data/spec/ffi/number_spec.rb +0 -247
- data/spec/ffi/platform_spec.rb +0 -114
- data/spec/ffi/pointer_spec.rb +0 -285
- data/spec/ffi/rbx/attach_function_spec.rb +0 -34
- data/spec/ffi/rbx/memory_pointer_spec.rb +0 -198
- data/spec/ffi/rbx/spec_helper.rb +0 -6
- data/spec/ffi/rbx/struct_spec.rb +0 -18
- data/spec/ffi/spec_helper.rb +0 -93
- data/spec/ffi/string_spec.rb +0 -118
- data/spec/ffi/strptr_spec.rb +0 -50
- data/spec/ffi/struct_by_ref_spec.rb +0 -43
- data/spec/ffi/struct_callback_spec.rb +0 -69
- data/spec/ffi/struct_initialize_spec.rb +0 -35
- data/spec/ffi/struct_packed_spec.rb +0 -50
- data/spec/ffi/struct_spec.rb +0 -882
- data/spec/ffi/typedef_spec.rb +0 -91
- data/spec/ffi/union_spec.rb +0 -67
- data/spec/ffi/variadic_spec.rb +0 -132
- data/spec/spec.opts +0 -4
data/ext/ffi_c/libffi/aclocal.m4
DELETED
@@ -1,2134 +0,0 @@
|
|
1
|
-
# generated automatically by aclocal 1.15 -*- Autoconf -*-
|
2
|
-
|
3
|
-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
4
|
-
|
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_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
15
|
-
m4_ifndef([AC_AUTOCONF_VERSION],
|
16
|
-
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
17
|
-
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
18
|
-
[m4_warning([this file was generated for autoconf 2.69.
|
19
|
-
You have another version of autoconf. It may work, but is not guaranteed to.
|
20
|
-
If you have problems, you may need to regenerate the build system entirely.
|
21
|
-
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
22
|
-
|
23
|
-
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
|
24
|
-
#
|
25
|
-
# Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
|
26
|
-
# Written by Thomas Tanner, 1999
|
27
|
-
#
|
28
|
-
# This file is free software; the Free Software Foundation gives
|
29
|
-
# unlimited permission to copy and/or distribute it, with or without
|
30
|
-
# modifications, as long as this notice is preserved.
|
31
|
-
|
32
|
-
# serial 20 LTDL_INIT
|
33
|
-
|
34
|
-
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
|
35
|
-
# ------------------------------------------
|
36
|
-
# DIRECTORY contains the libltdl sources. It is okay to call this
|
37
|
-
# function multiple times, as long as the same DIRECTORY is always given.
|
38
|
-
AC_DEFUN([LT_CONFIG_LTDL_DIR],
|
39
|
-
[AC_BEFORE([$0], [LTDL_INIT])
|
40
|
-
_$0($*)
|
41
|
-
])# LT_CONFIG_LTDL_DIR
|
42
|
-
|
43
|
-
# We break this out into a separate macro, so that we can call it safely
|
44
|
-
# internally without being caught accidentally by the sed scan in libtoolize.
|
45
|
-
m4_defun([_LT_CONFIG_LTDL_DIR],
|
46
|
-
[dnl remove trailing slashes
|
47
|
-
m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
|
48
|
-
m4_case(_LTDL_DIR,
|
49
|
-
[], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
|
50
|
-
m4_if(_ARG_DIR, [.],
|
51
|
-
[],
|
52
|
-
[m4_define([_LTDL_DIR], _ARG_DIR)
|
53
|
-
_LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
|
54
|
-
[m4_if(_ARG_DIR, _LTDL_DIR,
|
55
|
-
[],
|
56
|
-
[m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
|
57
|
-
m4_popdef([_ARG_DIR])
|
58
|
-
])# _LT_CONFIG_LTDL_DIR
|
59
|
-
|
60
|
-
# Initialise:
|
61
|
-
m4_define([_LTDL_DIR], [])
|
62
|
-
|
63
|
-
|
64
|
-
# _LT_BUILD_PREFIX
|
65
|
-
# ----------------
|
66
|
-
# If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
|
67
|
-
# to '$(top_builddir)/'.
|
68
|
-
m4_define([_LT_BUILD_PREFIX],
|
69
|
-
[m4_ifdef([AC_AUTOCONF_VERSION],
|
70
|
-
[m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
|
71
|
-
[-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
|
72
|
-
[$(top_build_prefix)],
|
73
|
-
[$(top_builddir)/])],
|
74
|
-
[$(top_build_prefix)])],
|
75
|
-
[$(top_builddir)/])[]dnl
|
76
|
-
])
|
77
|
-
|
78
|
-
|
79
|
-
# LTDL_CONVENIENCE
|
80
|
-
# ----------------
|
81
|
-
# sets LIBLTDL to the link flags for the libltdl convenience library and
|
82
|
-
# LTDLINCL to the include flags for the libltdl header and adds
|
83
|
-
# --enable-ltdl-convenience to the configure arguments. Note that
|
84
|
-
# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
|
85
|
-
# '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
|
86
|
-
# and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
|
87
|
-
# quotes!). If your package is not flat and you're not using automake,
|
88
|
-
# define top_build_prefix, top_builddir, and top_srcdir appropriately
|
89
|
-
# in your Makefiles.
|
90
|
-
AC_DEFUN([LTDL_CONVENIENCE],
|
91
|
-
[AC_BEFORE([$0], [LTDL_INIT])dnl
|
92
|
-
dnl Although the argument is deprecated and no longer documented,
|
93
|
-
dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
|
94
|
-
dnl here make sure it is the same as any other declaration of libltdl's
|
95
|
-
dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
|
96
|
-
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
|
97
|
-
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
|
98
|
-
_$0()
|
99
|
-
])# LTDL_CONVENIENCE
|
100
|
-
|
101
|
-
# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
|
102
|
-
# now we have LT_CONFIG_LTDL_DIR:
|
103
|
-
AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
104
|
-
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
|
105
|
-
_LTDL_CONVENIENCE])
|
106
|
-
|
107
|
-
dnl aclocal-1.4 backwards compatibility:
|
108
|
-
dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
|
109
|
-
|
110
|
-
|
111
|
-
# _LTDL_CONVENIENCE
|
112
|
-
# -----------------
|
113
|
-
# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
|
114
|
-
m4_defun([_LTDL_CONVENIENCE],
|
115
|
-
[case $enable_ltdl_convenience in
|
116
|
-
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
117
|
-
"") enable_ltdl_convenience=yes
|
118
|
-
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
119
|
-
esac
|
120
|
-
LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
|
121
|
-
LTDLDEPS=$LIBLTDL
|
122
|
-
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
|
123
|
-
|
124
|
-
AC_SUBST([LIBLTDL])
|
125
|
-
AC_SUBST([LTDLDEPS])
|
126
|
-
AC_SUBST([LTDLINCL])
|
127
|
-
|
128
|
-
# For backwards non-gettext consistent compatibility...
|
129
|
-
INCLTDL=$LTDLINCL
|
130
|
-
AC_SUBST([INCLTDL])
|
131
|
-
])# _LTDL_CONVENIENCE
|
132
|
-
|
133
|
-
|
134
|
-
# LTDL_INSTALLABLE
|
135
|
-
# ----------------
|
136
|
-
# sets LIBLTDL to the link flags for the libltdl installable library
|
137
|
-
# and LTDLINCL to the include flags for the libltdl header and adds
|
138
|
-
# --enable-ltdl-install to the configure arguments. Note that
|
139
|
-
# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
|
140
|
-
# is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
|
141
|
-
# available, otherwise with '$(top_builddir)/', and LTDLINCL will be
|
142
|
-
# prefixed with '$(top_srcdir)/' (note the single quotes!). If your
|
143
|
-
# package is not flat and you're not using automake, define top_build_prefix,
|
144
|
-
# top_builddir, and top_srcdir appropriately in your Makefiles.
|
145
|
-
# In the future, this macro may have to be called after LT_INIT.
|
146
|
-
AC_DEFUN([LTDL_INSTALLABLE],
|
147
|
-
[AC_BEFORE([$0], [LTDL_INIT])dnl
|
148
|
-
dnl Although the argument is deprecated and no longer documented,
|
149
|
-
dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
|
150
|
-
dnl here make sure it is the same as any other declaration of libltdl's
|
151
|
-
dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
|
152
|
-
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
|
153
|
-
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
|
154
|
-
_$0()
|
155
|
-
])# LTDL_INSTALLABLE
|
156
|
-
|
157
|
-
# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
|
158
|
-
# now we have LT_CONFIG_LTDL_DIR:
|
159
|
-
AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
160
|
-
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
|
161
|
-
_LTDL_INSTALLABLE])
|
162
|
-
|
163
|
-
dnl aclocal-1.4 backwards compatibility:
|
164
|
-
dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
|
165
|
-
|
166
|
-
|
167
|
-
# _LTDL_INSTALLABLE
|
168
|
-
# -----------------
|
169
|
-
# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
|
170
|
-
m4_defun([_LTDL_INSTALLABLE],
|
171
|
-
[if test -f "$prefix/lib/libltdl.la"; then
|
172
|
-
lt_save_LDFLAGS=$LDFLAGS
|
173
|
-
LDFLAGS="-L$prefix/lib $LDFLAGS"
|
174
|
-
AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
|
175
|
-
LDFLAGS=$lt_save_LDFLAGS
|
176
|
-
if test yes = "${lt_lib_ltdl-no}"; then
|
177
|
-
if test yes != "$enable_ltdl_install"; then
|
178
|
-
# Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
|
179
|
-
AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
|
180
|
-
enable_ltdl_install=no
|
181
|
-
fi
|
182
|
-
elif test no = "$enable_ltdl_install"; then
|
183
|
-
AC_MSG_WARN([libltdl not installed, but installation disabled])
|
184
|
-
fi
|
185
|
-
fi
|
186
|
-
|
187
|
-
# If configure.ac declared an installable ltdl, and the user didn't override
|
188
|
-
# with --disable-ltdl-install, we will install the shipped libltdl.
|
189
|
-
case $enable_ltdl_install in
|
190
|
-
no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
191
|
-
LIBLTDL=-lltdl
|
192
|
-
LTDLDEPS=
|
193
|
-
LTDLINCL=
|
194
|
-
;;
|
195
|
-
*) enable_ltdl_install=yes
|
196
|
-
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
197
|
-
LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
|
198
|
-
LTDLDEPS=$LIBLTDL
|
199
|
-
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
|
200
|
-
;;
|
201
|
-
esac
|
202
|
-
|
203
|
-
AC_SUBST([LIBLTDL])
|
204
|
-
AC_SUBST([LTDLDEPS])
|
205
|
-
AC_SUBST([LTDLINCL])
|
206
|
-
|
207
|
-
# For backwards non-gettext consistent compatibility...
|
208
|
-
INCLTDL=$LTDLINCL
|
209
|
-
AC_SUBST([INCLTDL])
|
210
|
-
])# LTDL_INSTALLABLE
|
211
|
-
|
212
|
-
|
213
|
-
# _LTDL_MODE_DISPATCH
|
214
|
-
# -------------------
|
215
|
-
m4_define([_LTDL_MODE_DISPATCH],
|
216
|
-
[dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
|
217
|
-
m4_if(_LTDL_DIR, [],
|
218
|
-
[],
|
219
|
-
dnl if _LTDL_MODE was not set already, the default value is 'subproject':
|
220
|
-
[m4_case(m4_default(_LTDL_MODE, [subproject]),
|
221
|
-
[subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
|
222
|
-
_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
|
223
|
-
[nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
|
224
|
-
[recursive], [],
|
225
|
-
[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
|
226
|
-
dnl Be careful not to expand twice:
|
227
|
-
m4_define([$0], [])
|
228
|
-
])# _LTDL_MODE_DISPATCH
|
229
|
-
|
230
|
-
|
231
|
-
# _LT_LIBOBJ(MODULE_NAME)
|
232
|
-
# -----------------------
|
233
|
-
# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
|
234
|
-
# of into LIBOBJS.
|
235
|
-
AC_DEFUN([_LT_LIBOBJ], [
|
236
|
-
m4_pattern_allow([^_LT_LIBOBJS$])
|
237
|
-
_LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
|
238
|
-
])# _LT_LIBOBJS
|
239
|
-
|
240
|
-
|
241
|
-
# LTDL_INIT([OPTIONS])
|
242
|
-
# --------------------
|
243
|
-
# Clients of libltdl can use this macro to allow the installer to
|
244
|
-
# choose between a shipped copy of the ltdl sources or a preinstalled
|
245
|
-
# version of the library. If the shipped ltdl sources are not in a
|
246
|
-
# subdirectory named libltdl, the directory name must be given by
|
247
|
-
# LT_CONFIG_LTDL_DIR.
|
248
|
-
AC_DEFUN([LTDL_INIT],
|
249
|
-
[dnl Parse OPTIONS
|
250
|
-
_LT_SET_OPTIONS([$0], [$1])
|
251
|
-
|
252
|
-
dnl We need to keep our own list of libobjs separate from our parent project,
|
253
|
-
dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
|
254
|
-
dnl we look for our own LIBOBJs.
|
255
|
-
m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
|
256
|
-
m4_pushdef([AC_LIBSOURCES])
|
257
|
-
|
258
|
-
dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
|
259
|
-
m4_if(_LTDL_MODE, [],
|
260
|
-
[m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
|
261
|
-
m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
|
262
|
-
[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
|
263
|
-
|
264
|
-
AC_ARG_WITH([included_ltdl],
|
265
|
-
[AS_HELP_STRING([--with-included-ltdl],
|
266
|
-
[use the GNU ltdl sources included here])])
|
267
|
-
|
268
|
-
if test yes != "$with_included_ltdl"; then
|
269
|
-
# We are not being forced to use the included libltdl sources, so
|
270
|
-
# decide whether there is a useful installed version we can use.
|
271
|
-
AC_CHECK_HEADER([ltdl.h],
|
272
|
-
[AC_CHECK_DECL([lt_dlinterface_register],
|
273
|
-
[AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
|
274
|
-
[with_included_ltdl=no],
|
275
|
-
[with_included_ltdl=yes])],
|
276
|
-
[with_included_ltdl=yes],
|
277
|
-
[AC_INCLUDES_DEFAULT
|
278
|
-
#include <ltdl.h>])],
|
279
|
-
[with_included_ltdl=yes],
|
280
|
-
[AC_INCLUDES_DEFAULT]
|
281
|
-
)
|
282
|
-
fi
|
283
|
-
|
284
|
-
dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
|
285
|
-
dnl was called yet, then for old times' sake, we assume libltdl is in an
|
286
|
-
dnl eponymous directory:
|
287
|
-
AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
|
288
|
-
|
289
|
-
AC_ARG_WITH([ltdl_include],
|
290
|
-
[AS_HELP_STRING([--with-ltdl-include=DIR],
|
291
|
-
[use the ltdl headers installed in DIR])])
|
292
|
-
|
293
|
-
if test -n "$with_ltdl_include"; then
|
294
|
-
if test -f "$with_ltdl_include/ltdl.h"; then :
|
295
|
-
else
|
296
|
-
AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
|
297
|
-
fi
|
298
|
-
else
|
299
|
-
with_ltdl_include=no
|
300
|
-
fi
|
301
|
-
|
302
|
-
AC_ARG_WITH([ltdl_lib],
|
303
|
-
[AS_HELP_STRING([--with-ltdl-lib=DIR],
|
304
|
-
[use the libltdl.la installed in DIR])])
|
305
|
-
|
306
|
-
if test -n "$with_ltdl_lib"; then
|
307
|
-
if test -f "$with_ltdl_lib/libltdl.la"; then :
|
308
|
-
else
|
309
|
-
AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
|
310
|
-
fi
|
311
|
-
else
|
312
|
-
with_ltdl_lib=no
|
313
|
-
fi
|
314
|
-
|
315
|
-
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
|
316
|
-
,yes,no,no,)
|
317
|
-
m4_case(m4_default(_LTDL_TYPE, [convenience]),
|
318
|
-
[convenience], [_LTDL_CONVENIENCE],
|
319
|
-
[installable], [_LTDL_INSTALLABLE],
|
320
|
-
[m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
|
321
|
-
;;
|
322
|
-
,no,no,no,)
|
323
|
-
# If the included ltdl is not to be used, then use the
|
324
|
-
# preinstalled libltdl we found.
|
325
|
-
AC_DEFINE([HAVE_LTDL], [1],
|
326
|
-
[Define this if a modern libltdl is already installed])
|
327
|
-
LIBLTDL=-lltdl
|
328
|
-
LTDLDEPS=
|
329
|
-
LTDLINCL=
|
330
|
-
;;
|
331
|
-
,no*,no,*)
|
332
|
-
AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
|
333
|
-
;;
|
334
|
-
*) with_included_ltdl=no
|
335
|
-
LIBLTDL="-L$with_ltdl_lib -lltdl"
|
336
|
-
LTDLDEPS=
|
337
|
-
LTDLINCL=-I$with_ltdl_include
|
338
|
-
;;
|
339
|
-
esac
|
340
|
-
INCLTDL=$LTDLINCL
|
341
|
-
|
342
|
-
# Report our decision...
|
343
|
-
AC_MSG_CHECKING([where to find libltdl headers])
|
344
|
-
AC_MSG_RESULT([$LTDLINCL])
|
345
|
-
AC_MSG_CHECKING([where to find libltdl library])
|
346
|
-
AC_MSG_RESULT([$LIBLTDL])
|
347
|
-
|
348
|
-
_LTDL_SETUP
|
349
|
-
|
350
|
-
dnl restore autoconf definition.
|
351
|
-
m4_popdef([AC_LIBOBJ])
|
352
|
-
m4_popdef([AC_LIBSOURCES])
|
353
|
-
|
354
|
-
AC_CONFIG_COMMANDS_PRE([
|
355
|
-
_ltdl_libobjs=
|
356
|
-
_ltdl_ltlibobjs=
|
357
|
-
if test -n "$_LT_LIBOBJS"; then
|
358
|
-
# Remove the extension.
|
359
|
-
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
|
360
|
-
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
|
361
|
-
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
|
362
|
-
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
|
363
|
-
done
|
364
|
-
fi
|
365
|
-
AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
|
366
|
-
AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
|
367
|
-
])
|
368
|
-
|
369
|
-
# Only expand once:
|
370
|
-
m4_define([LTDL_INIT])
|
371
|
-
])# LTDL_INIT
|
372
|
-
|
373
|
-
# Old names:
|
374
|
-
AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
|
375
|
-
AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
|
376
|
-
AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
|
377
|
-
dnl aclocal-1.4 backwards compatibility:
|
378
|
-
dnl AC_DEFUN([AC_LIB_LTDL], [])
|
379
|
-
dnl AC_DEFUN([AC_WITH_LTDL], [])
|
380
|
-
dnl AC_DEFUN([LT_WITH_LTDL], [])
|
381
|
-
|
382
|
-
|
383
|
-
# _LTDL_SETUP
|
384
|
-
# -----------
|
385
|
-
# Perform all the checks necessary for compilation of the ltdl objects
|
386
|
-
# -- including compiler checks and header checks. This is a public
|
387
|
-
# interface mainly for the benefit of libltdl's own configure.ac, most
|
388
|
-
# other users should call LTDL_INIT instead.
|
389
|
-
AC_DEFUN([_LTDL_SETUP],
|
390
|
-
[AC_REQUIRE([AC_PROG_CC])dnl
|
391
|
-
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
|
392
|
-
AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
|
393
|
-
AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
|
394
|
-
AC_REQUIRE([LT_LIB_DLLOAD])dnl
|
395
|
-
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
|
396
|
-
AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
|
397
|
-
AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
|
398
|
-
AC_REQUIRE([LT_FUNC_ARGZ])dnl
|
399
|
-
|
400
|
-
m4_require([_LT_CHECK_OBJDIR])dnl
|
401
|
-
m4_require([_LT_HEADER_DLFCN])dnl
|
402
|
-
m4_require([_LT_CHECK_DLPREOPEN])dnl
|
403
|
-
m4_require([_LT_DECL_SED])dnl
|
404
|
-
|
405
|
-
dnl Don't require this, or it will be expanded earlier than the code
|
406
|
-
dnl that sets the variables it relies on:
|
407
|
-
_LT_ENABLE_INSTALL
|
408
|
-
|
409
|
-
dnl _LTDL_MODE specific code must be called at least once:
|
410
|
-
_LTDL_MODE_DISPATCH
|
411
|
-
|
412
|
-
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
|
413
|
-
# the user used. This is so that ltdl.h can pick up the parent projects
|
414
|
-
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
|
415
|
-
# definitions required by ltdl.c.
|
416
|
-
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
|
417
|
-
AC_CONFIG_COMMANDS_PRE([dnl
|
418
|
-
m4_pattern_allow([^LT_CONFIG_H$])dnl
|
419
|
-
m4_ifset([AH_HEADER],
|
420
|
-
[LT_CONFIG_H=AH_HEADER],
|
421
|
-
[m4_ifset([AC_LIST_HEADERS],
|
422
|
-
[LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`],
|
423
|
-
[])])])
|
424
|
-
AC_SUBST([LT_CONFIG_H])
|
425
|
-
|
426
|
-
AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
|
427
|
-
[], [], [AC_INCLUDES_DEFAULT])
|
428
|
-
|
429
|
-
AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
|
430
|
-
AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
|
431
|
-
|
432
|
-
m4_pattern_allow([LT_LIBEXT])dnl
|
433
|
-
AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
|
434
|
-
|
435
|
-
name=
|
436
|
-
eval "lt_libprefix=\"$libname_spec\""
|
437
|
-
m4_pattern_allow([LT_LIBPREFIX])dnl
|
438
|
-
AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
|
439
|
-
|
440
|
-
name=ltdl
|
441
|
-
eval "LTDLOPEN=\"$libname_spec\""
|
442
|
-
AC_SUBST([LTDLOPEN])
|
443
|
-
])# _LTDL_SETUP
|
444
|
-
|
445
|
-
|
446
|
-
# _LT_ENABLE_INSTALL
|
447
|
-
# ------------------
|
448
|
-
m4_define([_LT_ENABLE_INSTALL],
|
449
|
-
[AC_ARG_ENABLE([ltdl-install],
|
450
|
-
[AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
|
451
|
-
|
452
|
-
case ,$enable_ltdl_install,$enable_ltdl_convenience in
|
453
|
-
*yes*) ;;
|
454
|
-
*) enable_ltdl_convenience=yes ;;
|
455
|
-
esac
|
456
|
-
|
457
|
-
m4_ifdef([AM_CONDITIONAL],
|
458
|
-
[AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
|
459
|
-
AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
|
460
|
-
])# _LT_ENABLE_INSTALL
|
461
|
-
|
462
|
-
|
463
|
-
# LT_SYS_DLOPEN_DEPLIBS
|
464
|
-
# ---------------------
|
465
|
-
AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
|
466
|
-
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
467
|
-
AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
|
468
|
-
[lt_cv_sys_dlopen_deplibs],
|
469
|
-
[# PORTME does your system automatically load deplibs for dlopen?
|
470
|
-
# or its logical equivalent (e.g. shl_load for HP-UX < 11)
|
471
|
-
# For now, we just catch OSes we know something about -- in the
|
472
|
-
# future, we'll try test this programmatically.
|
473
|
-
lt_cv_sys_dlopen_deplibs=unknown
|
474
|
-
case $host_os in
|
475
|
-
aix3*|aix4.1.*|aix4.2.*)
|
476
|
-
# Unknown whether this is true for these versions of AIX, but
|
477
|
-
# we want this 'case' here to explicitly catch those versions.
|
478
|
-
lt_cv_sys_dlopen_deplibs=unknown
|
479
|
-
;;
|
480
|
-
aix[[4-9]]*)
|
481
|
-
lt_cv_sys_dlopen_deplibs=yes
|
482
|
-
;;
|
483
|
-
amigaos*)
|
484
|
-
case $host_cpu in
|
485
|
-
powerpc)
|
486
|
-
lt_cv_sys_dlopen_deplibs=no
|
487
|
-
;;
|
488
|
-
esac
|
489
|
-
;;
|
490
|
-
bitrig*)
|
491
|
-
lt_cv_sys_dlopen_deplibs=yes
|
492
|
-
;;
|
493
|
-
darwin*)
|
494
|
-
# Assuming the user has installed a libdl from somewhere, this is true
|
495
|
-
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
|
496
|
-
lt_cv_sys_dlopen_deplibs=yes
|
497
|
-
;;
|
498
|
-
freebsd* | dragonfly*)
|
499
|
-
lt_cv_sys_dlopen_deplibs=yes
|
500
|
-
;;
|
501
|
-
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
502
|
-
# GNU and its variants, using gnu ld.so (Glibc)
|
503
|
-
lt_cv_sys_dlopen_deplibs=yes
|
504
|
-
;;
|
505
|
-
hpux10*|hpux11*)
|
506
|
-
lt_cv_sys_dlopen_deplibs=yes
|
507
|
-
;;
|
508
|
-
interix*)
|
509
|
-
lt_cv_sys_dlopen_deplibs=yes
|
510
|
-
;;
|
511
|
-
irix[[12345]]*|irix6.[[01]]*)
|
512
|
-
# Catch all versions of IRIX before 6.2, and indicate that we don't
|
513
|
-
# know how it worked for any of those versions.
|
514
|
-
lt_cv_sys_dlopen_deplibs=unknown
|
515
|
-
;;
|
516
|
-
irix*)
|
517
|
-
# The case above catches anything before 6.2, and it's known that
|
518
|
-
# at 6.2 and later dlopen does load deplibs.
|
519
|
-
lt_cv_sys_dlopen_deplibs=yes
|
520
|
-
;;
|
521
|
-
netbsd* | netbsdelf*-gnu)
|
522
|
-
lt_cv_sys_dlopen_deplibs=yes
|
523
|
-
;;
|
524
|
-
openbsd*)
|
525
|
-
lt_cv_sys_dlopen_deplibs=yes
|
526
|
-
;;
|
527
|
-
osf[[1234]]*)
|
528
|
-
# dlopen did load deplibs (at least at 4.x), but until the 5.x series,
|
529
|
-
# it did *not* use an RPATH in a shared library to find objects the
|
530
|
-
# library depends on, so we explicitly say 'no'.
|
531
|
-
lt_cv_sys_dlopen_deplibs=no
|
532
|
-
;;
|
533
|
-
osf5.0|osf5.0a|osf5.1)
|
534
|
-
# dlopen *does* load deplibs and with the right loader patch applied
|
535
|
-
# it even uses RPATH in a shared library to search for shared objects
|
536
|
-
# that the library depends on, but there's no easy way to know if that
|
537
|
-
# patch is installed. Since this is the case, all we can really
|
538
|
-
# say is unknown -- it depends on the patch being installed. If
|
539
|
-
# it is, this changes to 'yes'. Without it, it would be 'no'.
|
540
|
-
lt_cv_sys_dlopen_deplibs=unknown
|
541
|
-
;;
|
542
|
-
osf*)
|
543
|
-
# the two cases above should catch all versions of osf <= 5.1. Read
|
544
|
-
# the comments above for what we know about them.
|
545
|
-
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library
|
546
|
-
# is used to find them so we can finally say 'yes'.
|
547
|
-
lt_cv_sys_dlopen_deplibs=yes
|
548
|
-
;;
|
549
|
-
qnx*)
|
550
|
-
lt_cv_sys_dlopen_deplibs=yes
|
551
|
-
;;
|
552
|
-
solaris*)
|
553
|
-
lt_cv_sys_dlopen_deplibs=yes
|
554
|
-
;;
|
555
|
-
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
556
|
-
libltdl_cv_sys_dlopen_deplibs=yes
|
557
|
-
;;
|
558
|
-
esac
|
559
|
-
])
|
560
|
-
if test yes != "$lt_cv_sys_dlopen_deplibs"; then
|
561
|
-
AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
|
562
|
-
[Define if the OS needs help to load dependent libraries for dlopen().])
|
563
|
-
fi
|
564
|
-
])# LT_SYS_DLOPEN_DEPLIBS
|
565
|
-
|
566
|
-
# Old name:
|
567
|
-
AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
|
568
|
-
dnl aclocal-1.4 backwards compatibility:
|
569
|
-
dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
|
570
|
-
|
571
|
-
|
572
|
-
# LT_SYS_MODULE_EXT
|
573
|
-
# -----------------
|
574
|
-
AC_DEFUN([LT_SYS_MODULE_EXT],
|
575
|
-
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
576
|
-
AC_CACHE_CHECK([what extension is used for runtime loadable modules],
|
577
|
-
[libltdl_cv_shlibext],
|
578
|
-
[
|
579
|
-
module=yes
|
580
|
-
eval libltdl_cv_shlibext=$shrext_cmds
|
581
|
-
module=no
|
582
|
-
eval libltdl_cv_shrext=$shrext_cmds
|
583
|
-
])
|
584
|
-
if test -n "$libltdl_cv_shlibext"; then
|
585
|
-
m4_pattern_allow([LT_MODULE_EXT])dnl
|
586
|
-
AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
|
587
|
-
[Define to the extension used for runtime loadable modules, say, ".so".])
|
588
|
-
fi
|
589
|
-
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
|
590
|
-
m4_pattern_allow([LT_SHARED_EXT])dnl
|
591
|
-
AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
|
592
|
-
[Define to the shared library suffix, say, ".dylib".])
|
593
|
-
fi
|
594
|
-
if test -n "$shared_archive_member_spec"; then
|
595
|
-
m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
|
596
|
-
AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
|
597
|
-
[Define to the shared archive member specification, say "(shr.o)".])
|
598
|
-
fi
|
599
|
-
])# LT_SYS_MODULE_EXT
|
600
|
-
|
601
|
-
# Old name:
|
602
|
-
AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
|
603
|
-
dnl aclocal-1.4 backwards compatibility:
|
604
|
-
dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
|
605
|
-
|
606
|
-
|
607
|
-
# LT_SYS_MODULE_PATH
|
608
|
-
# ------------------
|
609
|
-
AC_DEFUN([LT_SYS_MODULE_PATH],
|
610
|
-
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
611
|
-
AC_CACHE_CHECK([what variable specifies run-time module search path],
|
612
|
-
[lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
|
613
|
-
if test -n "$lt_cv_module_path_var"; then
|
614
|
-
m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
|
615
|
-
AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
|
616
|
-
[Define to the name of the environment variable that determines the run-time module search path.])
|
617
|
-
fi
|
618
|
-
])# LT_SYS_MODULE_PATH
|
619
|
-
|
620
|
-
# Old name:
|
621
|
-
AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
|
622
|
-
dnl aclocal-1.4 backwards compatibility:
|
623
|
-
dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
|
624
|
-
|
625
|
-
|
626
|
-
# LT_SYS_DLSEARCH_PATH
|
627
|
-
# --------------------
|
628
|
-
AC_DEFUN([LT_SYS_DLSEARCH_PATH],
|
629
|
-
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
630
|
-
AC_CACHE_CHECK([for the default library search path],
|
631
|
-
[lt_cv_sys_dlsearch_path],
|
632
|
-
[lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
|
633
|
-
if test -n "$lt_cv_sys_dlsearch_path"; then
|
634
|
-
sys_dlsearch_path=
|
635
|
-
for dir in $lt_cv_sys_dlsearch_path; do
|
636
|
-
if test -z "$sys_dlsearch_path"; then
|
637
|
-
sys_dlsearch_path=$dir
|
638
|
-
else
|
639
|
-
sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
|
640
|
-
fi
|
641
|
-
done
|
642
|
-
m4_pattern_allow([LT_DLSEARCH_PATH])dnl
|
643
|
-
AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
|
644
|
-
[Define to the system default library search path.])
|
645
|
-
fi
|
646
|
-
])# LT_SYS_DLSEARCH_PATH
|
647
|
-
|
648
|
-
# Old name:
|
649
|
-
AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
|
650
|
-
dnl aclocal-1.4 backwards compatibility:
|
651
|
-
dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
|
652
|
-
|
653
|
-
|
654
|
-
# _LT_CHECK_DLPREOPEN
|
655
|
-
# -------------------
|
656
|
-
m4_defun([_LT_CHECK_DLPREOPEN],
|
657
|
-
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
658
|
-
AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
|
659
|
-
[libltdl_cv_preloaded_symbols],
|
660
|
-
[if test -n "$lt_cv_sys_global_symbol_pipe"; then
|
661
|
-
libltdl_cv_preloaded_symbols=yes
|
662
|
-
else
|
663
|
-
libltdl_cv_preloaded_symbols=no
|
664
|
-
fi
|
665
|
-
])
|
666
|
-
if test yes = "$libltdl_cv_preloaded_symbols"; then
|
667
|
-
AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
|
668
|
-
[Define if libtool can extract symbol lists from object files.])
|
669
|
-
fi
|
670
|
-
])# _LT_CHECK_DLPREOPEN
|
671
|
-
|
672
|
-
|
673
|
-
# LT_LIB_DLLOAD
|
674
|
-
# -------------
|
675
|
-
AC_DEFUN([LT_LIB_DLLOAD],
|
676
|
-
[m4_pattern_allow([^LT_DLLOADERS$])
|
677
|
-
LT_DLLOADERS=
|
678
|
-
AC_SUBST([LT_DLLOADERS])
|
679
|
-
|
680
|
-
AC_LANG_PUSH([C])
|
681
|
-
lt_dlload_save_LIBS=$LIBS
|
682
|
-
|
683
|
-
LIBADD_DLOPEN=
|
684
|
-
AC_SEARCH_LIBS([dlopen], [dl],
|
685
|
-
[AC_DEFINE([HAVE_LIBDL], [1],
|
686
|
-
[Define if you have the libdl library or equivalent.])
|
687
|
-
if test "$ac_cv_search_dlopen" != "none required"; then
|
688
|
-
LIBADD_DLOPEN=-ldl
|
689
|
-
fi
|
690
|
-
libltdl_cv_lib_dl_dlopen=yes
|
691
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
|
692
|
-
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
|
693
|
-
# include <dlfcn.h>
|
694
|
-
#endif
|
695
|
-
]], [[dlopen(0, 0);]])],
|
696
|
-
[AC_DEFINE([HAVE_LIBDL], [1],
|
697
|
-
[Define if you have the libdl library or equivalent.])
|
698
|
-
libltdl_cv_func_dlopen=yes
|
699
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
|
700
|
-
[AC_CHECK_LIB([svld], [dlopen],
|
701
|
-
[AC_DEFINE([HAVE_LIBDL], [1],
|
702
|
-
[Define if you have the libdl library or equivalent.])
|
703
|
-
LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
|
704
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
|
705
|
-
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
|
706
|
-
then
|
707
|
-
lt_save_LIBS=$LIBS
|
708
|
-
LIBS="$LIBS $LIBADD_DLOPEN"
|
709
|
-
AC_CHECK_FUNCS([dlerror])
|
710
|
-
LIBS=$lt_save_LIBS
|
711
|
-
fi
|
712
|
-
AC_SUBST([LIBADD_DLOPEN])
|
713
|
-
|
714
|
-
LIBADD_SHL_LOAD=
|
715
|
-
AC_CHECK_FUNC([shl_load],
|
716
|
-
[AC_DEFINE([HAVE_SHL_LOAD], [1],
|
717
|
-
[Define if you have the shl_load function.])
|
718
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
|
719
|
-
[AC_CHECK_LIB([dld], [shl_load],
|
720
|
-
[AC_DEFINE([HAVE_SHL_LOAD], [1],
|
721
|
-
[Define if you have the shl_load function.])
|
722
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
|
723
|
-
LIBADD_SHL_LOAD=-ldld])])
|
724
|
-
AC_SUBST([LIBADD_SHL_LOAD])
|
725
|
-
|
726
|
-
case $host_os in
|
727
|
-
darwin[[1567]].*)
|
728
|
-
# We only want this for pre-Mac OS X 10.4.
|
729
|
-
AC_CHECK_FUNC([_dyld_func_lookup],
|
730
|
-
[AC_DEFINE([HAVE_DYLD], [1],
|
731
|
-
[Define if you have the _dyld_func_lookup function.])
|
732
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
|
733
|
-
;;
|
734
|
-
beos*)
|
735
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
|
736
|
-
;;
|
737
|
-
cygwin* | mingw* | pw32*)
|
738
|
-
AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
|
739
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
|
740
|
-
;;
|
741
|
-
esac
|
742
|
-
|
743
|
-
AC_CHECK_LIB([dld], [dld_link],
|
744
|
-
[AC_DEFINE([HAVE_DLD], [1],
|
745
|
-
[Define if you have the GNU dld library.])
|
746
|
-
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
|
747
|
-
AC_SUBST([LIBADD_DLD_LINK])
|
748
|
-
|
749
|
-
m4_pattern_allow([^LT_DLPREOPEN$])
|
750
|
-
LT_DLPREOPEN=
|
751
|
-
if test -n "$LT_DLLOADERS"
|
752
|
-
then
|
753
|
-
for lt_loader in $LT_DLLOADERS; do
|
754
|
-
LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
|
755
|
-
done
|
756
|
-
AC_DEFINE([HAVE_LIBDLLOADER], [1],
|
757
|
-
[Define if libdlloader will be built on this platform])
|
758
|
-
fi
|
759
|
-
AC_SUBST([LT_DLPREOPEN])
|
760
|
-
|
761
|
-
dnl This isn't used anymore, but set it for backwards compatibility
|
762
|
-
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
|
763
|
-
AC_SUBST([LIBADD_DL])
|
764
|
-
|
765
|
-
LIBS=$lt_dlload_save_LIBS
|
766
|
-
AC_LANG_POP
|
767
|
-
])# LT_LIB_DLLOAD
|
768
|
-
|
769
|
-
# Old name:
|
770
|
-
AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
|
771
|
-
dnl aclocal-1.4 backwards compatibility:
|
772
|
-
dnl AC_DEFUN([AC_LTDL_DLLIB], [])
|
773
|
-
|
774
|
-
|
775
|
-
# LT_SYS_SYMBOL_USCORE
|
776
|
-
# --------------------
|
777
|
-
# does the compiler prefix global symbols with an underscore?
|
778
|
-
AC_DEFUN([LT_SYS_SYMBOL_USCORE],
|
779
|
-
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
780
|
-
AC_CACHE_CHECK([for _ prefix in compiled symbols],
|
781
|
-
[lt_cv_sys_symbol_underscore],
|
782
|
-
[lt_cv_sys_symbol_underscore=no
|
783
|
-
cat > conftest.$ac_ext <<_LT_EOF
|
784
|
-
void nm_test_func(){}
|
785
|
-
int main(){nm_test_func;return 0;}
|
786
|
-
_LT_EOF
|
787
|
-
if AC_TRY_EVAL(ac_compile); then
|
788
|
-
# Now try to grab the symbols.
|
789
|
-
ac_nlist=conftest.nm
|
790
|
-
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
|
791
|
-
# See whether the symbols have a leading underscore.
|
792
|
-
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
|
793
|
-
lt_cv_sys_symbol_underscore=yes
|
794
|
-
else
|
795
|
-
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
|
796
|
-
:
|
797
|
-
else
|
798
|
-
echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
|
799
|
-
fi
|
800
|
-
fi
|
801
|
-
else
|
802
|
-
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
803
|
-
fi
|
804
|
-
else
|
805
|
-
echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
|
806
|
-
cat conftest.c >&AS_MESSAGE_LOG_FD
|
807
|
-
fi
|
808
|
-
rm -rf conftest*
|
809
|
-
])
|
810
|
-
sys_symbol_underscore=$lt_cv_sys_symbol_underscore
|
811
|
-
AC_SUBST([sys_symbol_underscore])
|
812
|
-
])# LT_SYS_SYMBOL_USCORE
|
813
|
-
|
814
|
-
# Old name:
|
815
|
-
AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
|
816
|
-
dnl aclocal-1.4 backwards compatibility:
|
817
|
-
dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
|
818
|
-
|
819
|
-
|
820
|
-
# LT_FUNC_DLSYM_USCORE
|
821
|
-
# --------------------
|
822
|
-
AC_DEFUN([LT_FUNC_DLSYM_USCORE],
|
823
|
-
[AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl
|
824
|
-
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore
|
825
|
-
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext
|
826
|
-
if test yes = "$lt_cv_sys_symbol_underscore"; then
|
827
|
-
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
|
828
|
-
AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
|
829
|
-
[libltdl_cv_need_uscore],
|
830
|
-
[libltdl_cv_need_uscore=unknown
|
831
|
-
dlsym_uscore_save_LIBS=$LIBS
|
832
|
-
LIBS="$LIBS $LIBADD_DLOPEN"
|
833
|
-
libname=conftmod # stay within 8.3 filename limits!
|
834
|
-
cat >$libname.$ac_ext <<_LT_EOF
|
835
|
-
[#line $LINENO "configure"
|
836
|
-
#include "confdefs.h"
|
837
|
-
/* When -fvisibility=hidden is used, assume the code has been annotated
|
838
|
-
correspondingly for the symbols needed. */
|
839
|
-
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
840
|
-
int fnord () __attribute__((visibility("default")));
|
841
|
-
#endif
|
842
|
-
int fnord () { return 42; }]
|
843
|
-
_LT_EOF
|
844
|
-
|
845
|
-
# ltfn_module_cmds module_cmds
|
846
|
-
# Execute tilde-delimited MODULE_CMDS with environment primed for
|
847
|
-
# $module_cmds or $archive_cmds type content.
|
848
|
-
ltfn_module_cmds ()
|
849
|
-
{( # subshell avoids polluting parent global environment
|
850
|
-
module_cmds_save_ifs=$IFS; IFS='~'
|
851
|
-
for cmd in @S|@1; do
|
852
|
-
IFS=$module_cmds_save_ifs
|
853
|
-
libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
|
854
|
-
rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
|
855
|
-
major=; versuffix=; verstring=; deplibs=
|
856
|
-
ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
|
857
|
-
eval $cmd
|
858
|
-
done
|
859
|
-
IFS=$module_cmds_save_ifs
|
860
|
-
)}
|
861
|
-
|
862
|
-
# Compile a loadable module using libtool macro expansion results.
|
863
|
-
$CC $pic_flag -c $libname.$ac_ext
|
864
|
-
ltfn_module_cmds "${module_cmds:-$archive_cmds}"
|
865
|
-
|
866
|
-
# Try to fetch fnord with dlsym().
|
867
|
-
libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
|
868
|
-
cat >conftest.$ac_ext <<_LT_EOF
|
869
|
-
[#line $LINENO "configure"
|
870
|
-
#include "confdefs.h"
|
871
|
-
#if HAVE_DLFCN_H
|
872
|
-
#include <dlfcn.h>
|
873
|
-
#endif
|
874
|
-
#include <stdio.h>
|
875
|
-
#ifndef RTLD_GLOBAL
|
876
|
-
# ifdef DL_GLOBAL
|
877
|
-
# define RTLD_GLOBAL DL_GLOBAL
|
878
|
-
# else
|
879
|
-
# define RTLD_GLOBAL 0
|
880
|
-
# endif
|
881
|
-
#endif
|
882
|
-
#ifndef RTLD_NOW
|
883
|
-
# ifdef DL_NOW
|
884
|
-
# define RTLD_NOW DL_NOW
|
885
|
-
# else
|
886
|
-
# define RTLD_NOW 0
|
887
|
-
# endif
|
888
|
-
#endif
|
889
|
-
int main () {
|
890
|
-
void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
|
891
|
-
int status = $libltdl_dlunknown;
|
892
|
-
if (handle) {
|
893
|
-
if (dlsym (handle, "fnord"))
|
894
|
-
status = $libltdl_dlnouscore;
|
895
|
-
else {
|
896
|
-
if (dlsym (handle, "_fnord"))
|
897
|
-
status = $libltdl_dluscore;
|
898
|
-
else
|
899
|
-
puts (dlerror ());
|
900
|
-
}
|
901
|
-
dlclose (handle);
|
902
|
-
} else
|
903
|
-
puts (dlerror ());
|
904
|
-
return status;
|
905
|
-
}]
|
906
|
-
_LT_EOF
|
907
|
-
if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
|
908
|
-
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
909
|
-
libltdl_status=$?
|
910
|
-
case x$libltdl_status in
|
911
|
-
x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
|
912
|
-
x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
|
913
|
-
x*) libltdl_cv_need_uscore=unknown ;;
|
914
|
-
esac
|
915
|
-
fi
|
916
|
-
rm -rf conftest* $libname*
|
917
|
-
LIBS=$dlsym_uscore_save_LIBS
|
918
|
-
])
|
919
|
-
fi
|
920
|
-
fi
|
921
|
-
|
922
|
-
if test yes = "$libltdl_cv_need_uscore"; then
|
923
|
-
AC_DEFINE([NEED_USCORE], [1],
|
924
|
-
[Define if dlsym() requires a leading underscore in symbol names.])
|
925
|
-
fi
|
926
|
-
])# LT_FUNC_DLSYM_USCORE
|
927
|
-
|
928
|
-
# Old name:
|
929
|
-
AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
|
930
|
-
dnl aclocal-1.4 backwards compatibility:
|
931
|
-
dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
|
932
|
-
|
933
|
-
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
|
934
|
-
#
|
935
|
-
# This file is free software; the Free Software Foundation
|
936
|
-
# gives unlimited permission to copy and/or distribute it,
|
937
|
-
# with or without modifications, as long as this notice is preserved.
|
938
|
-
|
939
|
-
# AM_AUTOMAKE_VERSION(VERSION)
|
940
|
-
# ----------------------------
|
941
|
-
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
942
|
-
# generated from the m4 files accompanying Automake X.Y.
|
943
|
-
# (This private macro should not be called outside this file.)
|
944
|
-
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
945
|
-
[am__api_version='1.15'
|
946
|
-
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
947
|
-
dnl require some minimum version. Point them to the right macro.
|
948
|
-
m4_if([$1], [1.15], [],
|
949
|
-
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
950
|
-
])
|
951
|
-
|
952
|
-
# _AM_AUTOCONF_VERSION(VERSION)
|
953
|
-
# -----------------------------
|
954
|
-
# aclocal traces this macro to find the Autoconf version.
|
955
|
-
# This is a private macro too. Using m4_define simplifies
|
956
|
-
# the logic in aclocal, which can simply ignore this definition.
|
957
|
-
m4_define([_AM_AUTOCONF_VERSION], [])
|
958
|
-
|
959
|
-
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
960
|
-
# -------------------------------
|
961
|
-
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
962
|
-
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
963
|
-
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
964
|
-
[AM_AUTOMAKE_VERSION([1.15])dnl
|
965
|
-
m4_ifndef([AC_AUTOCONF_VERSION],
|
966
|
-
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
967
|
-
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
968
|
-
|
969
|
-
# Figure out how to run the assembler. -*- Autoconf -*-
|
970
|
-
|
971
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
972
|
-
#
|
973
|
-
# This file is free software; the Free Software Foundation
|
974
|
-
# gives unlimited permission to copy and/or distribute it,
|
975
|
-
# with or without modifications, as long as this notice is preserved.
|
976
|
-
|
977
|
-
# AM_PROG_AS
|
978
|
-
# ----------
|
979
|
-
AC_DEFUN([AM_PROG_AS],
|
980
|
-
[# By default we simply use the C compiler to build assembly code.
|
981
|
-
AC_REQUIRE([AC_PROG_CC])
|
982
|
-
test "${CCAS+set}" = set || CCAS=$CC
|
983
|
-
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
984
|
-
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
|
985
|
-
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
|
986
|
-
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
|
987
|
-
])
|
988
|
-
|
989
|
-
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
990
|
-
|
991
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
992
|
-
#
|
993
|
-
# This file is free software; the Free Software Foundation
|
994
|
-
# gives unlimited permission to copy and/or distribute it,
|
995
|
-
# with or without modifications, as long as this notice is preserved.
|
996
|
-
|
997
|
-
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
998
|
-
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
999
|
-
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
1000
|
-
#
|
1001
|
-
# Of course, Automake must honor this variable whenever it calls a
|
1002
|
-
# tool from the auxiliary directory. The problem is that $srcdir (and
|
1003
|
-
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
1004
|
-
# depending on how configure is run. This is pretty annoying, since
|
1005
|
-
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
1006
|
-
# source directory, any form will work fine, but in subdirectories a
|
1007
|
-
# relative path needs to be adjusted first.
|
1008
|
-
#
|
1009
|
-
# $ac_aux_dir/missing
|
1010
|
-
# fails when called from a subdirectory if $ac_aux_dir is relative
|
1011
|
-
# $top_srcdir/$ac_aux_dir/missing
|
1012
|
-
# fails if $ac_aux_dir is absolute,
|
1013
|
-
# fails when called from a subdirectory in a VPATH build with
|
1014
|
-
# a relative $ac_aux_dir
|
1015
|
-
#
|
1016
|
-
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
1017
|
-
# are both prefixed by $srcdir. In an in-source build this is usually
|
1018
|
-
# harmless because $srcdir is '.', but things will broke when you
|
1019
|
-
# start a VPATH build or use an absolute $srcdir.
|
1020
|
-
#
|
1021
|
-
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
1022
|
-
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
1023
|
-
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
1024
|
-
# and then we would define $MISSING as
|
1025
|
-
# MISSING="\${SHELL} $am_aux_dir/missing"
|
1026
|
-
# This will work as long as MISSING is not called from configure, because
|
1027
|
-
# unfortunately $(top_srcdir) has no meaning in configure.
|
1028
|
-
# However there are other variables, like CC, which are often used in
|
1029
|
-
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
1030
|
-
#
|
1031
|
-
# Another solution, used here, is to always expand $ac_aux_dir to an
|
1032
|
-
# absolute PATH. The drawback is that using absolute paths prevent a
|
1033
|
-
# configured tree to be moved without reconfiguration.
|
1034
|
-
|
1035
|
-
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
1036
|
-
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
1037
|
-
# Expand $ac_aux_dir to an absolute path.
|
1038
|
-
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
1039
|
-
])
|
1040
|
-
|
1041
|
-
# AM_CONDITIONAL -*- Autoconf -*-
|
1042
|
-
|
1043
|
-
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
1044
|
-
#
|
1045
|
-
# This file is free software; the Free Software Foundation
|
1046
|
-
# gives unlimited permission to copy and/or distribute it,
|
1047
|
-
# with or without modifications, as long as this notice is preserved.
|
1048
|
-
|
1049
|
-
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
1050
|
-
# -------------------------------------
|
1051
|
-
# Define a conditional.
|
1052
|
-
AC_DEFUN([AM_CONDITIONAL],
|
1053
|
-
[AC_PREREQ([2.52])dnl
|
1054
|
-
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
1055
|
-
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
1056
|
-
AC_SUBST([$1_TRUE])dnl
|
1057
|
-
AC_SUBST([$1_FALSE])dnl
|
1058
|
-
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
1059
|
-
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
1060
|
-
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
1061
|
-
if $2; then
|
1062
|
-
$1_TRUE=
|
1063
|
-
$1_FALSE='#'
|
1064
|
-
else
|
1065
|
-
$1_TRUE='#'
|
1066
|
-
$1_FALSE=
|
1067
|
-
fi
|
1068
|
-
AC_CONFIG_COMMANDS_PRE(
|
1069
|
-
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
1070
|
-
AC_MSG_ERROR([[conditional "$1" was never defined.
|
1071
|
-
Usually this means the macro was only invoked conditionally.]])
|
1072
|
-
fi])])
|
1073
|
-
|
1074
|
-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
1075
|
-
#
|
1076
|
-
# This file is free software; the Free Software Foundation
|
1077
|
-
# gives unlimited permission to copy and/or distribute it,
|
1078
|
-
# with or without modifications, as long as this notice is preserved.
|
1079
|
-
|
1080
|
-
|
1081
|
-
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
1082
|
-
# written in clear, in which case automake, when reading aclocal.m4,
|
1083
|
-
# will think it sees a *use*, and therefore will trigger all it's
|
1084
|
-
# C support machinery. Also note that it means that autoscan, seeing
|
1085
|
-
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
1086
|
-
|
1087
|
-
|
1088
|
-
# _AM_DEPENDENCIES(NAME)
|
1089
|
-
# ----------------------
|
1090
|
-
# See how the compiler implements dependency checking.
|
1091
|
-
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
1092
|
-
# We try a few techniques and use that to set a single cache variable.
|
1093
|
-
#
|
1094
|
-
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
1095
|
-
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
1096
|
-
# dependency, and given that the user is not expected to run this macro,
|
1097
|
-
# just rely on AC_PROG_CC.
|
1098
|
-
AC_DEFUN([_AM_DEPENDENCIES],
|
1099
|
-
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
1100
|
-
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
1101
|
-
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
1102
|
-
AC_REQUIRE([AM_DEP_TRACK])dnl
|
1103
|
-
|
1104
|
-
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
1105
|
-
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
1106
|
-
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
1107
|
-
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
1108
|
-
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
1109
|
-
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
1110
|
-
[depcc="$$1" am_compiler_list=])
|
1111
|
-
|
1112
|
-
AC_CACHE_CHECK([dependency style of $depcc],
|
1113
|
-
[am_cv_$1_dependencies_compiler_type],
|
1114
|
-
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
1115
|
-
# We make a subdir and do the tests there. Otherwise we can end up
|
1116
|
-
# making bogus files that we don't know about and never remove. For
|
1117
|
-
# instance it was reported that on HP-UX the gcc test will end up
|
1118
|
-
# making a dummy file named 'D' -- because '-MD' means "put the output
|
1119
|
-
# in D".
|
1120
|
-
rm -rf conftest.dir
|
1121
|
-
mkdir conftest.dir
|
1122
|
-
# Copy depcomp to subdir because otherwise we won't find it if we're
|
1123
|
-
# using a relative directory.
|
1124
|
-
cp "$am_depcomp" conftest.dir
|
1125
|
-
cd conftest.dir
|
1126
|
-
# We will build objects and dependencies in a subdirectory because
|
1127
|
-
# it helps to detect inapplicable dependency modes. For instance
|
1128
|
-
# both Tru64's cc and ICC support -MD to output dependencies as a
|
1129
|
-
# side effect of compilation, but ICC will put the dependencies in
|
1130
|
-
# the current directory while Tru64 will put them in the object
|
1131
|
-
# directory.
|
1132
|
-
mkdir sub
|
1133
|
-
|
1134
|
-
am_cv_$1_dependencies_compiler_type=none
|
1135
|
-
if test "$am_compiler_list" = ""; then
|
1136
|
-
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
1137
|
-
fi
|
1138
|
-
am__universal=false
|
1139
|
-
m4_case([$1], [CC],
|
1140
|
-
[case " $depcc " in #(
|
1141
|
-
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
1142
|
-
esac],
|
1143
|
-
[CXX],
|
1144
|
-
[case " $depcc " in #(
|
1145
|
-
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
1146
|
-
esac])
|
1147
|
-
|
1148
|
-
for depmode in $am_compiler_list; do
|
1149
|
-
# Setup a source with many dependencies, because some compilers
|
1150
|
-
# like to wrap large dependency lists on column 80 (with \), and
|
1151
|
-
# we should not choose a depcomp mode which is confused by this.
|
1152
|
-
#
|
1153
|
-
# We need to recreate these files for each test, as the compiler may
|
1154
|
-
# overwrite some of them when testing with obscure command lines.
|
1155
|
-
# This happens at least with the AIX C compiler.
|
1156
|
-
: > sub/conftest.c
|
1157
|
-
for i in 1 2 3 4 5 6; do
|
1158
|
-
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
1159
|
-
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
1160
|
-
# Solaris 10 /bin/sh.
|
1161
|
-
echo '/* dummy */' > sub/conftst$i.h
|
1162
|
-
done
|
1163
|
-
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
1164
|
-
|
1165
|
-
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
1166
|
-
# mode. It turns out that the SunPro C++ compiler does not properly
|
1167
|
-
# handle '-M -o', and we need to detect this. Also, some Intel
|
1168
|
-
# versions had trouble with output in subdirs.
|
1169
|
-
am__obj=sub/conftest.${OBJEXT-o}
|
1170
|
-
am__minus_obj="-o $am__obj"
|
1171
|
-
case $depmode in
|
1172
|
-
gcc)
|
1173
|
-
# This depmode causes a compiler race in universal mode.
|
1174
|
-
test "$am__universal" = false || continue
|
1175
|
-
;;
|
1176
|
-
nosideeffect)
|
1177
|
-
# After this tag, mechanisms are not by side-effect, so they'll
|
1178
|
-
# only be used when explicitly requested.
|
1179
|
-
if test "x$enable_dependency_tracking" = xyes; then
|
1180
|
-
continue
|
1181
|
-
else
|
1182
|
-
break
|
1183
|
-
fi
|
1184
|
-
;;
|
1185
|
-
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
1186
|
-
# This compiler won't grok '-c -o', but also, the minuso test has
|
1187
|
-
# not run yet. These depmodes are late enough in the game, and
|
1188
|
-
# so weak that their functioning should not be impacted.
|
1189
|
-
am__obj=conftest.${OBJEXT-o}
|
1190
|
-
am__minus_obj=
|
1191
|
-
;;
|
1192
|
-
none) break ;;
|
1193
|
-
esac
|
1194
|
-
if depmode=$depmode \
|
1195
|
-
source=sub/conftest.c object=$am__obj \
|
1196
|
-
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
1197
|
-
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
1198
|
-
>/dev/null 2>conftest.err &&
|
1199
|
-
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
1200
|
-
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
1201
|
-
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
1202
|
-
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
1203
|
-
# icc doesn't choke on unknown options, it will just issue warnings
|
1204
|
-
# or remarks (even with -Werror). So we grep stderr for any message
|
1205
|
-
# that says an option was ignored or not supported.
|
1206
|
-
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
1207
|
-
# icc: Command line warning: ignoring option '-M'; no argument required
|
1208
|
-
# The diagnosis changed in icc 8.0:
|
1209
|
-
# icc: Command line remark: option '-MP' not supported
|
1210
|
-
if (grep 'ignoring option' conftest.err ||
|
1211
|
-
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
1212
|
-
am_cv_$1_dependencies_compiler_type=$depmode
|
1213
|
-
break
|
1214
|
-
fi
|
1215
|
-
fi
|
1216
|
-
done
|
1217
|
-
|
1218
|
-
cd ..
|
1219
|
-
rm -rf conftest.dir
|
1220
|
-
else
|
1221
|
-
am_cv_$1_dependencies_compiler_type=none
|
1222
|
-
fi
|
1223
|
-
])
|
1224
|
-
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
1225
|
-
AM_CONDITIONAL([am__fastdep$1], [
|
1226
|
-
test "x$enable_dependency_tracking" != xno \
|
1227
|
-
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
1228
|
-
])
|
1229
|
-
|
1230
|
-
|
1231
|
-
# AM_SET_DEPDIR
|
1232
|
-
# -------------
|
1233
|
-
# Choose a directory name for dependency files.
|
1234
|
-
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
1235
|
-
AC_DEFUN([AM_SET_DEPDIR],
|
1236
|
-
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
1237
|
-
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
1238
|
-
])
|
1239
|
-
|
1240
|
-
|
1241
|
-
# AM_DEP_TRACK
|
1242
|
-
# ------------
|
1243
|
-
AC_DEFUN([AM_DEP_TRACK],
|
1244
|
-
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
1245
|
-
AS_HELP_STRING(
|
1246
|
-
[--enable-dependency-tracking],
|
1247
|
-
[do not reject slow dependency extractors])
|
1248
|
-
AS_HELP_STRING(
|
1249
|
-
[--disable-dependency-tracking],
|
1250
|
-
[speeds up one-time build])])
|
1251
|
-
if test "x$enable_dependency_tracking" != xno; then
|
1252
|
-
am_depcomp="$ac_aux_dir/depcomp"
|
1253
|
-
AMDEPBACKSLASH='\'
|
1254
|
-
am__nodep='_no'
|
1255
|
-
fi
|
1256
|
-
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
1257
|
-
AC_SUBST([AMDEPBACKSLASH])dnl
|
1258
|
-
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
1259
|
-
AC_SUBST([am__nodep])dnl
|
1260
|
-
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
1261
|
-
])
|
1262
|
-
|
1263
|
-
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
1264
|
-
|
1265
|
-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
1266
|
-
#
|
1267
|
-
# This file is free software; the Free Software Foundation
|
1268
|
-
# gives unlimited permission to copy and/or distribute it,
|
1269
|
-
# with or without modifications, as long as this notice is preserved.
|
1270
|
-
|
1271
|
-
|
1272
|
-
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
1273
|
-
# ------------------------------
|
1274
|
-
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
1275
|
-
[{
|
1276
|
-
# Older Autoconf quotes --file arguments for eval, but not when files
|
1277
|
-
# are listed without --file. Let's play safe and only enable the eval
|
1278
|
-
# if we detect the quoting.
|
1279
|
-
case $CONFIG_FILES in
|
1280
|
-
*\'*) eval set x "$CONFIG_FILES" ;;
|
1281
|
-
*) set x $CONFIG_FILES ;;
|
1282
|
-
esac
|
1283
|
-
shift
|
1284
|
-
for mf
|
1285
|
-
do
|
1286
|
-
# Strip MF so we end up with the name of the file.
|
1287
|
-
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
1288
|
-
# Check whether this is an Automake generated Makefile or not.
|
1289
|
-
# We used to match only the files named 'Makefile.in', but
|
1290
|
-
# some people rename them; so instead we look at the file content.
|
1291
|
-
# Grep'ing the first line is not enough: some people post-process
|
1292
|
-
# each Makefile.in and add a new line on top of each file to say so.
|
1293
|
-
# Grep'ing the whole file is not good either: AIX grep has a line
|
1294
|
-
# limit of 2048, but all sed's we know have understand at least 4000.
|
1295
|
-
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
1296
|
-
dirpart=`AS_DIRNAME("$mf")`
|
1297
|
-
else
|
1298
|
-
continue
|
1299
|
-
fi
|
1300
|
-
# Extract the definition of DEPDIR, am__include, and am__quote
|
1301
|
-
# from the Makefile without running 'make'.
|
1302
|
-
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
1303
|
-
test -z "$DEPDIR" && continue
|
1304
|
-
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
1305
|
-
test -z "$am__include" && continue
|
1306
|
-
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
1307
|
-
# Find all dependency output files, they are included files with
|
1308
|
-
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
1309
|
-
# simplest approach to changing $(DEPDIR) to its actual value in the
|
1310
|
-
# expansion.
|
1311
|
-
for file in `sed -n "
|
1312
|
-
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
1313
|
-
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
1314
|
-
# Make sure the directory exists.
|
1315
|
-
test -f "$dirpart/$file" && continue
|
1316
|
-
fdir=`AS_DIRNAME(["$file"])`
|
1317
|
-
AS_MKDIR_P([$dirpart/$fdir])
|
1318
|
-
# echo "creating $dirpart/$file"
|
1319
|
-
echo '# dummy' > "$dirpart/$file"
|
1320
|
-
done
|
1321
|
-
done
|
1322
|
-
}
|
1323
|
-
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
1324
|
-
|
1325
|
-
|
1326
|
-
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
1327
|
-
# -----------------------------
|
1328
|
-
# This macro should only be invoked once -- use via AC_REQUIRE.
|
1329
|
-
#
|
1330
|
-
# This code is only required when automatic dependency tracking
|
1331
|
-
# is enabled. FIXME. This creates each '.P' file that we will
|
1332
|
-
# need in order to bootstrap the dependency handling code.
|
1333
|
-
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
1334
|
-
[AC_CONFIG_COMMANDS([depfiles],
|
1335
|
-
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
1336
|
-
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
1337
|
-
])
|
1338
|
-
|
1339
|
-
# Do all the work for Automake. -*- Autoconf -*-
|
1340
|
-
|
1341
|
-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
1342
|
-
#
|
1343
|
-
# This file is free software; the Free Software Foundation
|
1344
|
-
# gives unlimited permission to copy and/or distribute it,
|
1345
|
-
# with or without modifications, as long as this notice is preserved.
|
1346
|
-
|
1347
|
-
# This macro actually does too much. Some checks are only needed if
|
1348
|
-
# your package does certain things. But this isn't really a big deal.
|
1349
|
-
|
1350
|
-
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
|
1351
|
-
m4_define([AC_PROG_CC],
|
1352
|
-
m4_defn([AC_PROG_CC])
|
1353
|
-
[_AM_PROG_CC_C_O
|
1354
|
-
])
|
1355
|
-
|
1356
|
-
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
1357
|
-
# AM_INIT_AUTOMAKE([OPTIONS])
|
1358
|
-
# -----------------------------------------------
|
1359
|
-
# The call with PACKAGE and VERSION arguments is the old style
|
1360
|
-
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
1361
|
-
# and VERSION should now be passed to AC_INIT and removed from
|
1362
|
-
# the call to AM_INIT_AUTOMAKE.
|
1363
|
-
# We support both call styles for the transition. After
|
1364
|
-
# the next Automake release, Autoconf can make the AC_INIT
|
1365
|
-
# arguments mandatory, and then we can depend on a new Autoconf
|
1366
|
-
# release and drop the old call support.
|
1367
|
-
AC_DEFUN([AM_INIT_AUTOMAKE],
|
1368
|
-
[AC_PREREQ([2.65])dnl
|
1369
|
-
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
1370
|
-
dnl the ones we care about.
|
1371
|
-
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
1372
|
-
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
1373
|
-
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
1374
|
-
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
1375
|
-
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
1376
|
-
# is not polluted with repeated "-I."
|
1377
|
-
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
1378
|
-
# test to see if srcdir already configured
|
1379
|
-
if test -f $srcdir/config.status; then
|
1380
|
-
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
1381
|
-
fi
|
1382
|
-
fi
|
1383
|
-
|
1384
|
-
# test whether we have cygpath
|
1385
|
-
if test -z "$CYGPATH_W"; then
|
1386
|
-
if (cygpath --version) >/dev/null 2>/dev/null; then
|
1387
|
-
CYGPATH_W='cygpath -w'
|
1388
|
-
else
|
1389
|
-
CYGPATH_W=echo
|
1390
|
-
fi
|
1391
|
-
fi
|
1392
|
-
AC_SUBST([CYGPATH_W])
|
1393
|
-
|
1394
|
-
# Define the identity of the package.
|
1395
|
-
dnl Distinguish between old-style and new-style calls.
|
1396
|
-
m4_ifval([$2],
|
1397
|
-
[AC_DIAGNOSE([obsolete],
|
1398
|
-
[$0: two- and three-arguments forms are deprecated.])
|
1399
|
-
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
1400
|
-
AC_SUBST([PACKAGE], [$1])dnl
|
1401
|
-
AC_SUBST([VERSION], [$2])],
|
1402
|
-
[_AM_SET_OPTIONS([$1])dnl
|
1403
|
-
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
1404
|
-
m4_if(
|
1405
|
-
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
1406
|
-
[ok:ok],,
|
1407
|
-
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
1408
|
-
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
1409
|
-
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
1410
|
-
|
1411
|
-
_AM_IF_OPTION([no-define],,
|
1412
|
-
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
1413
|
-
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
1414
|
-
|
1415
|
-
# Some tools Automake needs.
|
1416
|
-
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
1417
|
-
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
1418
|
-
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
1419
|
-
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
1420
|
-
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
1421
|
-
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
1422
|
-
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
1423
|
-
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
1424
|
-
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
1425
|
-
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
1426
|
-
# For better backward compatibility. To be removed once Automake 1.9.x
|
1427
|
-
# dies out for good. For more background, see:
|
1428
|
-
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
1429
|
-
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
1430
|
-
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
1431
|
-
# We need awk for the "check" target (and possibly the TAP driver). The
|
1432
|
-
# system "awk" is bad on some platforms.
|
1433
|
-
AC_REQUIRE([AC_PROG_AWK])dnl
|
1434
|
-
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
1435
|
-
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
1436
|
-
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
1437
|
-
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
1438
|
-
[_AM_PROG_TAR([v7])])])
|
1439
|
-
_AM_IF_OPTION([no-dependencies],,
|
1440
|
-
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
1441
|
-
[_AM_DEPENDENCIES([CC])],
|
1442
|
-
[m4_define([AC_PROG_CC],
|
1443
|
-
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
1444
|
-
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
1445
|
-
[_AM_DEPENDENCIES([CXX])],
|
1446
|
-
[m4_define([AC_PROG_CXX],
|
1447
|
-
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
1448
|
-
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
1449
|
-
[_AM_DEPENDENCIES([OBJC])],
|
1450
|
-
[m4_define([AC_PROG_OBJC],
|
1451
|
-
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
1452
|
-
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
1453
|
-
[_AM_DEPENDENCIES([OBJCXX])],
|
1454
|
-
[m4_define([AC_PROG_OBJCXX],
|
1455
|
-
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
1456
|
-
])
|
1457
|
-
AC_REQUIRE([AM_SILENT_RULES])dnl
|
1458
|
-
dnl The testsuite driver may need to know about EXEEXT, so add the
|
1459
|
-
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
1460
|
-
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
1461
|
-
AC_CONFIG_COMMANDS_PRE(dnl
|
1462
|
-
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
1463
|
-
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
1464
|
-
|
1465
|
-
# POSIX will say in a future version that running "rm -f" with no argument
|
1466
|
-
# is OK; and we want to be able to make that assumption in our Makefile
|
1467
|
-
# recipes. So use an aggressive probe to check that the usage we want is
|
1468
|
-
# actually supported "in the wild" to an acceptable degree.
|
1469
|
-
# See automake bug#10828.
|
1470
|
-
# To make any issue more visible, cause the running configure to be aborted
|
1471
|
-
# by default if the 'rm' program in use doesn't match our expectations; the
|
1472
|
-
# user can still override this though.
|
1473
|
-
if rm -f && rm -fr && rm -rf; then : OK; else
|
1474
|
-
cat >&2 <<'END'
|
1475
|
-
Oops!
|
1476
|
-
|
1477
|
-
Your 'rm' program seems unable to run without file operands specified
|
1478
|
-
on the command line, even when the '-f' option is present. This is contrary
|
1479
|
-
to the behaviour of most rm programs out there, and not conforming with
|
1480
|
-
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
1481
|
-
|
1482
|
-
Please tell bug-automake@gnu.org about your system, including the value
|
1483
|
-
of your $PATH and any error possibly output before this message. This
|
1484
|
-
can help us improve future automake versions.
|
1485
|
-
|
1486
|
-
END
|
1487
|
-
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
1488
|
-
echo 'Configuration will proceed anyway, since you have set the' >&2
|
1489
|
-
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
1490
|
-
echo >&2
|
1491
|
-
else
|
1492
|
-
cat >&2 <<'END'
|
1493
|
-
Aborting the configuration process, to ensure you take notice of the issue.
|
1494
|
-
|
1495
|
-
You can download and install GNU coreutils to get an 'rm' implementation
|
1496
|
-
that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
1497
|
-
|
1498
|
-
If you want to complete the configuration process using your problematic
|
1499
|
-
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
1500
|
-
to "yes", and re-run configure.
|
1501
|
-
|
1502
|
-
END
|
1503
|
-
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
1504
|
-
fi
|
1505
|
-
fi
|
1506
|
-
dnl The trailing newline in this macro's definition is deliberate, for
|
1507
|
-
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
1508
|
-
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
1509
|
-
])
|
1510
|
-
|
1511
|
-
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
1512
|
-
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
1513
|
-
dnl mangled by Autoconf and run in a shell conditional statement.
|
1514
|
-
m4_define([_AC_COMPILER_EXEEXT],
|
1515
|
-
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
1516
|
-
|
1517
|
-
# When config.status generates a header, we must update the stamp-h file.
|
1518
|
-
# This file resides in the same directory as the config header
|
1519
|
-
# that is generated. The stamp files are numbered to have different names.
|
1520
|
-
|
1521
|
-
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
1522
|
-
# loop where config.status creates the headers, so we can generate
|
1523
|
-
# our stamp files there.
|
1524
|
-
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
1525
|
-
[# Compute $1's index in $config_headers.
|
1526
|
-
_am_arg=$1
|
1527
|
-
_am_stamp_count=1
|
1528
|
-
for _am_header in $config_headers :; do
|
1529
|
-
case $_am_header in
|
1530
|
-
$_am_arg | $_am_arg:* )
|
1531
|
-
break ;;
|
1532
|
-
* )
|
1533
|
-
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
1534
|
-
esac
|
1535
|
-
done
|
1536
|
-
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
1537
|
-
|
1538
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
1539
|
-
#
|
1540
|
-
# This file is free software; the Free Software Foundation
|
1541
|
-
# gives unlimited permission to copy and/or distribute it,
|
1542
|
-
# with or without modifications, as long as this notice is preserved.
|
1543
|
-
|
1544
|
-
# AM_PROG_INSTALL_SH
|
1545
|
-
# ------------------
|
1546
|
-
# Define $install_sh.
|
1547
|
-
AC_DEFUN([AM_PROG_INSTALL_SH],
|
1548
|
-
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
1549
|
-
if test x"${install_sh+set}" != xset; then
|
1550
|
-
case $am_aux_dir in
|
1551
|
-
*\ * | *\ *)
|
1552
|
-
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
1553
|
-
*)
|
1554
|
-
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
1555
|
-
esac
|
1556
|
-
fi
|
1557
|
-
AC_SUBST([install_sh])])
|
1558
|
-
|
1559
|
-
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
|
1560
|
-
#
|
1561
|
-
# This file is free software; the Free Software Foundation
|
1562
|
-
# gives unlimited permission to copy and/or distribute it,
|
1563
|
-
# with or without modifications, as long as this notice is preserved.
|
1564
|
-
|
1565
|
-
# Check whether the underlying file-system supports filenames
|
1566
|
-
# with a leading dot. For instance MS-DOS doesn't.
|
1567
|
-
AC_DEFUN([AM_SET_LEADING_DOT],
|
1568
|
-
[rm -rf .tst 2>/dev/null
|
1569
|
-
mkdir .tst 2>/dev/null
|
1570
|
-
if test -d .tst; then
|
1571
|
-
am__leading_dot=.
|
1572
|
-
else
|
1573
|
-
am__leading_dot=_
|
1574
|
-
fi
|
1575
|
-
rmdir .tst 2>/dev/null
|
1576
|
-
AC_SUBST([am__leading_dot])])
|
1577
|
-
|
1578
|
-
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
1579
|
-
# From Jim Meyering
|
1580
|
-
|
1581
|
-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
1582
|
-
#
|
1583
|
-
# This file is free software; the Free Software Foundation
|
1584
|
-
# gives unlimited permission to copy and/or distribute it,
|
1585
|
-
# with or without modifications, as long as this notice is preserved.
|
1586
|
-
|
1587
|
-
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
1588
|
-
# ----------------------------------
|
1589
|
-
# Control maintainer-specific portions of Makefiles.
|
1590
|
-
# Default is to disable them, unless 'enable' is passed literally.
|
1591
|
-
# For symmetry, 'disable' may be passed as well. Anyway, the user
|
1592
|
-
# can override the default with the --enable/--disable switch.
|
1593
|
-
AC_DEFUN([AM_MAINTAINER_MODE],
|
1594
|
-
[m4_case(m4_default([$1], [disable]),
|
1595
|
-
[enable], [m4_define([am_maintainer_other], [disable])],
|
1596
|
-
[disable], [m4_define([am_maintainer_other], [enable])],
|
1597
|
-
[m4_define([am_maintainer_other], [enable])
|
1598
|
-
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
1599
|
-
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
1600
|
-
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
1601
|
-
AC_ARG_ENABLE([maintainer-mode],
|
1602
|
-
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
|
1603
|
-
am_maintainer_other[ make rules and dependencies not useful
|
1604
|
-
(and sometimes confusing) to the casual installer])],
|
1605
|
-
[USE_MAINTAINER_MODE=$enableval],
|
1606
|
-
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
1607
|
-
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
1608
|
-
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
1609
|
-
MAINT=$MAINTAINER_MODE_TRUE
|
1610
|
-
AC_SUBST([MAINT])dnl
|
1611
|
-
]
|
1612
|
-
)
|
1613
|
-
|
1614
|
-
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
1615
|
-
|
1616
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
1617
|
-
#
|
1618
|
-
# This file is free software; the Free Software Foundation
|
1619
|
-
# gives unlimited permission to copy and/or distribute it,
|
1620
|
-
# with or without modifications, as long as this notice is preserved.
|
1621
|
-
|
1622
|
-
# AM_MAKE_INCLUDE()
|
1623
|
-
# -----------------
|
1624
|
-
# Check to see how make treats includes.
|
1625
|
-
AC_DEFUN([AM_MAKE_INCLUDE],
|
1626
|
-
[am_make=${MAKE-make}
|
1627
|
-
cat > confinc << 'END'
|
1628
|
-
am__doit:
|
1629
|
-
@echo this is the am__doit target
|
1630
|
-
.PHONY: am__doit
|
1631
|
-
END
|
1632
|
-
# If we don't find an include directive, just comment out the code.
|
1633
|
-
AC_MSG_CHECKING([for style of include used by $am_make])
|
1634
|
-
am__include="#"
|
1635
|
-
am__quote=
|
1636
|
-
_am_result=none
|
1637
|
-
# First try GNU make style include.
|
1638
|
-
echo "include confinc" > confmf
|
1639
|
-
# Ignore all kinds of additional output from 'make'.
|
1640
|
-
case `$am_make -s -f confmf 2> /dev/null` in #(
|
1641
|
-
*the\ am__doit\ target*)
|
1642
|
-
am__include=include
|
1643
|
-
am__quote=
|
1644
|
-
_am_result=GNU
|
1645
|
-
;;
|
1646
|
-
esac
|
1647
|
-
# Now try BSD make style include.
|
1648
|
-
if test "$am__include" = "#"; then
|
1649
|
-
echo '.include "confinc"' > confmf
|
1650
|
-
case `$am_make -s -f confmf 2> /dev/null` in #(
|
1651
|
-
*the\ am__doit\ target*)
|
1652
|
-
am__include=.include
|
1653
|
-
am__quote="\""
|
1654
|
-
_am_result=BSD
|
1655
|
-
;;
|
1656
|
-
esac
|
1657
|
-
fi
|
1658
|
-
AC_SUBST([am__include])
|
1659
|
-
AC_SUBST([am__quote])
|
1660
|
-
AC_MSG_RESULT([$_am_result])
|
1661
|
-
rm -f confinc confmf
|
1662
|
-
])
|
1663
|
-
|
1664
|
-
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
1665
|
-
|
1666
|
-
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
1667
|
-
#
|
1668
|
-
# This file is free software; the Free Software Foundation
|
1669
|
-
# gives unlimited permission to copy and/or distribute it,
|
1670
|
-
# with or without modifications, as long as this notice is preserved.
|
1671
|
-
|
1672
|
-
# AM_MISSING_PROG(NAME, PROGRAM)
|
1673
|
-
# ------------------------------
|
1674
|
-
AC_DEFUN([AM_MISSING_PROG],
|
1675
|
-
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
1676
|
-
$1=${$1-"${am_missing_run}$2"}
|
1677
|
-
AC_SUBST($1)])
|
1678
|
-
|
1679
|
-
# AM_MISSING_HAS_RUN
|
1680
|
-
# ------------------
|
1681
|
-
# Define MISSING if not defined so far and test if it is modern enough.
|
1682
|
-
# If it is, set am_missing_run to use it, otherwise, to nothing.
|
1683
|
-
AC_DEFUN([AM_MISSING_HAS_RUN],
|
1684
|
-
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
1685
|
-
AC_REQUIRE_AUX_FILE([missing])dnl
|
1686
|
-
if test x"${MISSING+set}" != xset; then
|
1687
|
-
case $am_aux_dir in
|
1688
|
-
*\ * | *\ *)
|
1689
|
-
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
1690
|
-
*)
|
1691
|
-
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
1692
|
-
esac
|
1693
|
-
fi
|
1694
|
-
# Use eval to expand $SHELL
|
1695
|
-
if eval "$MISSING --is-lightweight"; then
|
1696
|
-
am_missing_run="$MISSING "
|
1697
|
-
else
|
1698
|
-
am_missing_run=
|
1699
|
-
AC_MSG_WARN(['missing' script is too old or missing])
|
1700
|
-
fi
|
1701
|
-
])
|
1702
|
-
|
1703
|
-
# Helper functions for option handling. -*- Autoconf -*-
|
1704
|
-
|
1705
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
1706
|
-
#
|
1707
|
-
# This file is free software; the Free Software Foundation
|
1708
|
-
# gives unlimited permission to copy and/or distribute it,
|
1709
|
-
# with or without modifications, as long as this notice is preserved.
|
1710
|
-
|
1711
|
-
# _AM_MANGLE_OPTION(NAME)
|
1712
|
-
# -----------------------
|
1713
|
-
AC_DEFUN([_AM_MANGLE_OPTION],
|
1714
|
-
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
1715
|
-
|
1716
|
-
# _AM_SET_OPTION(NAME)
|
1717
|
-
# --------------------
|
1718
|
-
# Set option NAME. Presently that only means defining a flag for this option.
|
1719
|
-
AC_DEFUN([_AM_SET_OPTION],
|
1720
|
-
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
1721
|
-
|
1722
|
-
# _AM_SET_OPTIONS(OPTIONS)
|
1723
|
-
# ------------------------
|
1724
|
-
# OPTIONS is a space-separated list of Automake options.
|
1725
|
-
AC_DEFUN([_AM_SET_OPTIONS],
|
1726
|
-
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
1727
|
-
|
1728
|
-
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
1729
|
-
# -------------------------------------------
|
1730
|
-
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
1731
|
-
AC_DEFUN([_AM_IF_OPTION],
|
1732
|
-
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
1733
|
-
|
1734
|
-
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
1735
|
-
#
|
1736
|
-
# This file is free software; the Free Software Foundation
|
1737
|
-
# gives unlimited permission to copy and/or distribute it,
|
1738
|
-
# with or without modifications, as long as this notice is preserved.
|
1739
|
-
|
1740
|
-
# _AM_PROG_CC_C_O
|
1741
|
-
# ---------------
|
1742
|
-
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
|
1743
|
-
# to automatically call this.
|
1744
|
-
AC_DEFUN([_AM_PROG_CC_C_O],
|
1745
|
-
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
1746
|
-
AC_REQUIRE_AUX_FILE([compile])dnl
|
1747
|
-
AC_LANG_PUSH([C])dnl
|
1748
|
-
AC_CACHE_CHECK(
|
1749
|
-
[whether $CC understands -c and -o together],
|
1750
|
-
[am_cv_prog_cc_c_o],
|
1751
|
-
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
1752
|
-
# Make sure it works both with $CC and with simple cc.
|
1753
|
-
# Following AC_PROG_CC_C_O, we do the test twice because some
|
1754
|
-
# compilers refuse to overwrite an existing .o file with -o,
|
1755
|
-
# though they will create one.
|
1756
|
-
am_cv_prog_cc_c_o=yes
|
1757
|
-
for am_i in 1 2; do
|
1758
|
-
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
|
1759
|
-
&& test -f conftest2.$ac_objext; then
|
1760
|
-
: OK
|
1761
|
-
else
|
1762
|
-
am_cv_prog_cc_c_o=no
|
1763
|
-
break
|
1764
|
-
fi
|
1765
|
-
done
|
1766
|
-
rm -f core conftest*
|
1767
|
-
unset am_i])
|
1768
|
-
if test "$am_cv_prog_cc_c_o" != yes; then
|
1769
|
-
# Losing compiler, so override with the script.
|
1770
|
-
# FIXME: It is wrong to rewrite CC.
|
1771
|
-
# But if we don't then we get into trouble of one sort or another.
|
1772
|
-
# A longer-term fix would be to have automake use am__CC in this case,
|
1773
|
-
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
1774
|
-
CC="$am_aux_dir/compile $CC"
|
1775
|
-
fi
|
1776
|
-
AC_LANG_POP([C])])
|
1777
|
-
|
1778
|
-
# For backward compatibility.
|
1779
|
-
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
1780
|
-
|
1781
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
1782
|
-
#
|
1783
|
-
# This file is free software; the Free Software Foundation
|
1784
|
-
# gives unlimited permission to copy and/or distribute it,
|
1785
|
-
# with or without modifications, as long as this notice is preserved.
|
1786
|
-
|
1787
|
-
# AM_RUN_LOG(COMMAND)
|
1788
|
-
# -------------------
|
1789
|
-
# Run COMMAND, save the exit status in ac_status, and log it.
|
1790
|
-
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
1791
|
-
AC_DEFUN([AM_RUN_LOG],
|
1792
|
-
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
1793
|
-
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
1794
|
-
ac_status=$?
|
1795
|
-
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
1796
|
-
(exit $ac_status); }])
|
1797
|
-
|
1798
|
-
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
1799
|
-
|
1800
|
-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
1801
|
-
#
|
1802
|
-
# This file is free software; the Free Software Foundation
|
1803
|
-
# gives unlimited permission to copy and/or distribute it,
|
1804
|
-
# with or without modifications, as long as this notice is preserved.
|
1805
|
-
|
1806
|
-
# AM_SANITY_CHECK
|
1807
|
-
# ---------------
|
1808
|
-
AC_DEFUN([AM_SANITY_CHECK],
|
1809
|
-
[AC_MSG_CHECKING([whether build environment is sane])
|
1810
|
-
# Reject unsafe characters in $srcdir or the absolute working directory
|
1811
|
-
# name. Accept space and tab only in the latter.
|
1812
|
-
am_lf='
|
1813
|
-
'
|
1814
|
-
case `pwd` in
|
1815
|
-
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
1816
|
-
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
1817
|
-
esac
|
1818
|
-
case $srcdir in
|
1819
|
-
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
1820
|
-
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
1821
|
-
esac
|
1822
|
-
|
1823
|
-
# Do 'set' in a subshell so we don't clobber the current shell's
|
1824
|
-
# arguments. Must try -L first in case configure is actually a
|
1825
|
-
# symlink; some systems play weird games with the mod time of symlinks
|
1826
|
-
# (eg FreeBSD returns the mod time of the symlink's containing
|
1827
|
-
# directory).
|
1828
|
-
if (
|
1829
|
-
am_has_slept=no
|
1830
|
-
for am_try in 1 2; do
|
1831
|
-
echo "timestamp, slept: $am_has_slept" > conftest.file
|
1832
|
-
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
1833
|
-
if test "$[*]" = "X"; then
|
1834
|
-
# -L didn't work.
|
1835
|
-
set X `ls -t "$srcdir/configure" conftest.file`
|
1836
|
-
fi
|
1837
|
-
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
1838
|
-
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
1839
|
-
|
1840
|
-
# If neither matched, then we have a broken ls. This can happen
|
1841
|
-
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
1842
|
-
# broken ls alias from the environment. This has actually
|
1843
|
-
# happened. Such a system could not be considered "sane".
|
1844
|
-
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
1845
|
-
alias in your environment])
|
1846
|
-
fi
|
1847
|
-
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
1848
|
-
break
|
1849
|
-
fi
|
1850
|
-
# Just in case.
|
1851
|
-
sleep 1
|
1852
|
-
am_has_slept=yes
|
1853
|
-
done
|
1854
|
-
test "$[2]" = conftest.file
|
1855
|
-
)
|
1856
|
-
then
|
1857
|
-
# Ok.
|
1858
|
-
:
|
1859
|
-
else
|
1860
|
-
AC_MSG_ERROR([newly created file is older than distributed files!
|
1861
|
-
Check your system clock])
|
1862
|
-
fi
|
1863
|
-
AC_MSG_RESULT([yes])
|
1864
|
-
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
1865
|
-
# generated files are strictly newer.
|
1866
|
-
am_sleep_pid=
|
1867
|
-
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
1868
|
-
( sleep 1 ) &
|
1869
|
-
am_sleep_pid=$!
|
1870
|
-
fi
|
1871
|
-
AC_CONFIG_COMMANDS_PRE(
|
1872
|
-
[AC_MSG_CHECKING([that generated files are newer than configure])
|
1873
|
-
if test -n "$am_sleep_pid"; then
|
1874
|
-
# Hide warnings about reused PIDs.
|
1875
|
-
wait $am_sleep_pid 2>/dev/null
|
1876
|
-
fi
|
1877
|
-
AC_MSG_RESULT([done])])
|
1878
|
-
rm -f conftest.file
|
1879
|
-
])
|
1880
|
-
|
1881
|
-
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
|
1882
|
-
#
|
1883
|
-
# This file is free software; the Free Software Foundation
|
1884
|
-
# gives unlimited permission to copy and/or distribute it,
|
1885
|
-
# with or without modifications, as long as this notice is preserved.
|
1886
|
-
|
1887
|
-
# AM_SILENT_RULES([DEFAULT])
|
1888
|
-
# --------------------------
|
1889
|
-
# Enable less verbose build rules; with the default set to DEFAULT
|
1890
|
-
# ("yes" being less verbose, "no" or empty being verbose).
|
1891
|
-
AC_DEFUN([AM_SILENT_RULES],
|
1892
|
-
[AC_ARG_ENABLE([silent-rules], [dnl
|
1893
|
-
AS_HELP_STRING(
|
1894
|
-
[--enable-silent-rules],
|
1895
|
-
[less verbose build output (undo: "make V=1")])
|
1896
|
-
AS_HELP_STRING(
|
1897
|
-
[--disable-silent-rules],
|
1898
|
-
[verbose build output (undo: "make V=0")])dnl
|
1899
|
-
])
|
1900
|
-
case $enable_silent_rules in @%:@ (((
|
1901
|
-
yes) AM_DEFAULT_VERBOSITY=0;;
|
1902
|
-
no) AM_DEFAULT_VERBOSITY=1;;
|
1903
|
-
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
1904
|
-
esac
|
1905
|
-
dnl
|
1906
|
-
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
1907
|
-
dnl do not support nested variable expansions.
|
1908
|
-
dnl See automake bug#9928 and bug#10237.
|
1909
|
-
am_make=${MAKE-make}
|
1910
|
-
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
1911
|
-
[am_cv_make_support_nested_variables],
|
1912
|
-
[if AS_ECHO([['TRUE=$(BAR$(V))
|
1913
|
-
BAR0=false
|
1914
|
-
BAR1=true
|
1915
|
-
V=1
|
1916
|
-
am__doit:
|
1917
|
-
@$(TRUE)
|
1918
|
-
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
1919
|
-
am_cv_make_support_nested_variables=yes
|
1920
|
-
else
|
1921
|
-
am_cv_make_support_nested_variables=no
|
1922
|
-
fi])
|
1923
|
-
if test $am_cv_make_support_nested_variables = yes; then
|
1924
|
-
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
1925
|
-
AM_V='$(V)'
|
1926
|
-
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
1927
|
-
else
|
1928
|
-
AM_V=$AM_DEFAULT_VERBOSITY
|
1929
|
-
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
1930
|
-
fi
|
1931
|
-
AC_SUBST([AM_V])dnl
|
1932
|
-
AM_SUBST_NOTMAKE([AM_V])dnl
|
1933
|
-
AC_SUBST([AM_DEFAULT_V])dnl
|
1934
|
-
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
1935
|
-
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
1936
|
-
AM_BACKSLASH='\'
|
1937
|
-
AC_SUBST([AM_BACKSLASH])dnl
|
1938
|
-
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
1939
|
-
])
|
1940
|
-
|
1941
|
-
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
1942
|
-
#
|
1943
|
-
# This file is free software; the Free Software Foundation
|
1944
|
-
# gives unlimited permission to copy and/or distribute it,
|
1945
|
-
# with or without modifications, as long as this notice is preserved.
|
1946
|
-
|
1947
|
-
# AM_PROG_INSTALL_STRIP
|
1948
|
-
# ---------------------
|
1949
|
-
# One issue with vendor 'install' (even GNU) is that you can't
|
1950
|
-
# specify the program used to strip binaries. This is especially
|
1951
|
-
# annoying in cross-compiling environments, where the build's strip
|
1952
|
-
# is unlikely to handle the host's binaries.
|
1953
|
-
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
1954
|
-
# always use install-sh in "make install-strip", and initialize
|
1955
|
-
# STRIPPROG with the value of the STRIP variable (set by the user).
|
1956
|
-
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
1957
|
-
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
1958
|
-
# Installed binaries are usually stripped using 'strip' when the user
|
1959
|
-
# run "make install-strip". However 'strip' might not be the right
|
1960
|
-
# tool to use in cross-compilation environments, therefore Automake
|
1961
|
-
# will honor the 'STRIP' environment variable to overrule this program.
|
1962
|
-
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
1963
|
-
if test "$cross_compiling" != no; then
|
1964
|
-
AC_CHECK_TOOL([STRIP], [strip], :)
|
1965
|
-
fi
|
1966
|
-
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
1967
|
-
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
1968
|
-
|
1969
|
-
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
|
1970
|
-
#
|
1971
|
-
# This file is free software; the Free Software Foundation
|
1972
|
-
# gives unlimited permission to copy and/or distribute it,
|
1973
|
-
# with or without modifications, as long as this notice is preserved.
|
1974
|
-
|
1975
|
-
# _AM_SUBST_NOTMAKE(VARIABLE)
|
1976
|
-
# ---------------------------
|
1977
|
-
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
1978
|
-
# This macro is traced by Automake.
|
1979
|
-
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
1980
|
-
|
1981
|
-
# AM_SUBST_NOTMAKE(VARIABLE)
|
1982
|
-
# --------------------------
|
1983
|
-
# Public sister of _AM_SUBST_NOTMAKE.
|
1984
|
-
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
1985
|
-
|
1986
|
-
# Check how to create a tarball. -*- Autoconf -*-
|
1987
|
-
|
1988
|
-
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
|
1989
|
-
#
|
1990
|
-
# This file is free software; the Free Software Foundation
|
1991
|
-
# gives unlimited permission to copy and/or distribute it,
|
1992
|
-
# with or without modifications, as long as this notice is preserved.
|
1993
|
-
|
1994
|
-
# _AM_PROG_TAR(FORMAT)
|
1995
|
-
# --------------------
|
1996
|
-
# Check how to create a tarball in format FORMAT.
|
1997
|
-
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
1998
|
-
#
|
1999
|
-
# Substitute a variable $(am__tar) that is a command
|
2000
|
-
# writing to stdout a FORMAT-tarball containing the directory
|
2001
|
-
# $tardir.
|
2002
|
-
# tardir=directory && $(am__tar) > result.tar
|
2003
|
-
#
|
2004
|
-
# Substitute a variable $(am__untar) that extract such
|
2005
|
-
# a tarball read from stdin.
|
2006
|
-
# $(am__untar) < result.tar
|
2007
|
-
#
|
2008
|
-
AC_DEFUN([_AM_PROG_TAR],
|
2009
|
-
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
2010
|
-
# in the wild :-( We should find a proper way to deprecate it ...
|
2011
|
-
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
2012
|
-
|
2013
|
-
# We'll loop over all known methods to create a tar archive until one works.
|
2014
|
-
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
2015
|
-
|
2016
|
-
m4_if([$1], [v7],
|
2017
|
-
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
2018
|
-
|
2019
|
-
[m4_case([$1],
|
2020
|
-
[ustar],
|
2021
|
-
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
2022
|
-
# There is notably a 21 bits limit for the UID and the GID. In fact,
|
2023
|
-
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
2024
|
-
# and bug#13588).
|
2025
|
-
am_max_uid=2097151 # 2^21 - 1
|
2026
|
-
am_max_gid=$am_max_uid
|
2027
|
-
# The $UID and $GID variables are not portable, so we need to resort
|
2028
|
-
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
2029
|
-
# below are definitely unexpected, so allow the users to see them
|
2030
|
-
# (that is, avoid stderr redirection).
|
2031
|
-
am_uid=`id -u || echo unknown`
|
2032
|
-
am_gid=`id -g || echo unknown`
|
2033
|
-
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
2034
|
-
if test $am_uid -le $am_max_uid; then
|
2035
|
-
AC_MSG_RESULT([yes])
|
2036
|
-
else
|
2037
|
-
AC_MSG_RESULT([no])
|
2038
|
-
_am_tools=none
|
2039
|
-
fi
|
2040
|
-
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
2041
|
-
if test $am_gid -le $am_max_gid; then
|
2042
|
-
AC_MSG_RESULT([yes])
|
2043
|
-
else
|
2044
|
-
AC_MSG_RESULT([no])
|
2045
|
-
_am_tools=none
|
2046
|
-
fi],
|
2047
|
-
|
2048
|
-
[pax],
|
2049
|
-
[],
|
2050
|
-
|
2051
|
-
[m4_fatal([Unknown tar format])])
|
2052
|
-
|
2053
|
-
AC_MSG_CHECKING([how to create a $1 tar archive])
|
2054
|
-
|
2055
|
-
# Go ahead even if we have the value already cached. We do so because we
|
2056
|
-
# need to set the values for the 'am__tar' and 'am__untar' variables.
|
2057
|
-
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
2058
|
-
|
2059
|
-
for _am_tool in $_am_tools; do
|
2060
|
-
case $_am_tool in
|
2061
|
-
gnutar)
|
2062
|
-
for _am_tar in tar gnutar gtar; do
|
2063
|
-
AM_RUN_LOG([$_am_tar --version]) && break
|
2064
|
-
done
|
2065
|
-
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
2066
|
-
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
2067
|
-
am__untar="$_am_tar -xf -"
|
2068
|
-
;;
|
2069
|
-
plaintar)
|
2070
|
-
# Must skip GNU tar: if it does not support --format= it doesn't create
|
2071
|
-
# ustar tarball either.
|
2072
|
-
(tar --version) >/dev/null 2>&1 && continue
|
2073
|
-
am__tar='tar chf - "$$tardir"'
|
2074
|
-
am__tar_='tar chf - "$tardir"'
|
2075
|
-
am__untar='tar xf -'
|
2076
|
-
;;
|
2077
|
-
pax)
|
2078
|
-
am__tar='pax -L -x $1 -w "$$tardir"'
|
2079
|
-
am__tar_='pax -L -x $1 -w "$tardir"'
|
2080
|
-
am__untar='pax -r'
|
2081
|
-
;;
|
2082
|
-
cpio)
|
2083
|
-
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
2084
|
-
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
2085
|
-
am__untar='cpio -i -H $1 -d'
|
2086
|
-
;;
|
2087
|
-
none)
|
2088
|
-
am__tar=false
|
2089
|
-
am__tar_=false
|
2090
|
-
am__untar=false
|
2091
|
-
;;
|
2092
|
-
esac
|
2093
|
-
|
2094
|
-
# If the value was cached, stop now. We just wanted to have am__tar
|
2095
|
-
# and am__untar set.
|
2096
|
-
test -n "${am_cv_prog_tar_$1}" && break
|
2097
|
-
|
2098
|
-
# tar/untar a dummy directory, and stop if the command works.
|
2099
|
-
rm -rf conftest.dir
|
2100
|
-
mkdir conftest.dir
|
2101
|
-
echo GrepMe > conftest.dir/file
|
2102
|
-
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
2103
|
-
rm -rf conftest.dir
|
2104
|
-
if test -s conftest.tar; then
|
2105
|
-
AM_RUN_LOG([$am__untar <conftest.tar])
|
2106
|
-
AM_RUN_LOG([cat conftest.dir/file])
|
2107
|
-
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
2108
|
-
fi
|
2109
|
-
done
|
2110
|
-
rm -rf conftest.dir
|
2111
|
-
|
2112
|
-
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
2113
|
-
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
2114
|
-
|
2115
|
-
AC_SUBST([am__tar])
|
2116
|
-
AC_SUBST([am__untar])
|
2117
|
-
]) # _AM_PROG_TAR
|
2118
|
-
|
2119
|
-
m4_include([m4/asmcfi.m4])
|
2120
|
-
m4_include([m4/ax_append_flag.m4])
|
2121
|
-
m4_include([m4/ax_cc_maxopt.m4])
|
2122
|
-
m4_include([m4/ax_cflags_warn_all.m4])
|
2123
|
-
m4_include([m4/ax_check_compile_flag.m4])
|
2124
|
-
m4_include([m4/ax_compiler_vendor.m4])
|
2125
|
-
m4_include([m4/ax_configure_args.m4])
|
2126
|
-
m4_include([m4/ax_enable_builddir.m4])
|
2127
|
-
m4_include([m4/ax_gcc_archflag.m4])
|
2128
|
-
m4_include([m4/ax_gcc_x86_cpuid.m4])
|
2129
|
-
m4_include([m4/libtool.m4])
|
2130
|
-
m4_include([m4/ltoptions.m4])
|
2131
|
-
m4_include([m4/ltsugar.m4])
|
2132
|
-
m4_include([m4/ltversion.m4])
|
2133
|
-
m4_include([m4/lt~obsolete.m4])
|
2134
|
-
m4_include([acinclude.m4])
|