11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
14
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
24
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
19
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
276
289
# Check for linker boilerplate output or warnings with
277
290
# the simple link test code.
278
291
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
292
[AC_REQUIRE([LT_AC_PROG_SED])dnl
293
ac_outfile=conftest.$ac_objext
294
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
295
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
296
_lt_linker_boilerplate=`cat conftest.err`
284
298
])# _LT_LINKER_BOILERPLATE
300
# _LT_REQUIRED_DARWIN_CHECKS
301
# --------------------------
302
# Check for some things on darwin
303
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
306
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
307
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
309
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
310
[lt_cv_apple_cc_single_mod=no
311
if test -z "${LT_MULTI_MODULE}"; then
312
# By default we will add the -single_module flag. You can override
313
# by either setting the environment variable LT_MULTI_MODULE
314
# non-empty at configure time, or by adding -multi_module to the
316
echo "int foo(void){return 1;}" > conftest.c
317
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
318
-dynamiclib ${wl}-single_module conftest.c
319
if test -f libconftest.dylib; then
320
lt_cv_apple_cc_single_mod=yes
321
rm -rf libconftest.dylib*
325
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
326
[lt_cv_ld_exported_symbols_list],
327
[lt_cv_ld_exported_symbols_list=no
328
save_LDFLAGS=$LDFLAGS
329
echo "_main" > conftest.sym
330
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
331
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
332
[lt_cv_ld_exported_symbols_list=yes],
333
[lt_cv_ld_exported_symbols_list=no])
334
LDFLAGS="$save_LDFLAGS"
337
rhapsody* | darwin1.[[0123]])
338
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
340
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
342
# if running on 10.5 or later, the deployment target defaults
343
# to the OS version, if on x86, and 10.4, the deployment
344
# target defaults to 10.4. Don't you love it?
345
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
346
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
347
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
349
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
351
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
355
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
356
_lt_dar_single_mod='$single_module'
358
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
359
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
361
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
363
if test "$DSYMUTIL" != ":"; then
364
_lt_dsymutil="~$DSYMUTIL \$lib || :"
287
372
# _LT_AC_SYS_LIBPATH_AIX
288
373
# ----------------------
293
378
# If we don't find anything, use the default library path according
294
379
# to the aix ld manual.
295
380
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
381
[AC_REQUIRE([LT_AC_PROG_SED])dnl
382
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
384
/Import File Strings/,/^$/ {
390
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
391
# Check for a 64-bit object if we didn't find anything.
300
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
392
if test -z "$aix_libpath"; then
393
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
302
395
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
396
])# _LT_AC_SYS_LIBPATH_AIX
781
886
lt_cv_sys_max_cmd_len=32768
890
lt_cv_sys_max_cmd_len=102400
892
sysv5* | sco5v6* | sysv4.2uw2*)
893
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
894
if test -n "$kargmax"; then
895
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
897
lt_cv_sys_max_cmd_len=32768
785
# If test is not a shell built-in, we'll probably end up computing a
786
# maximum length that is only half of the actual maximum length, but
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
901
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
902
if test -n "$lt_cv_sys_max_cmd_len"; then
903
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
904
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
906
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
907
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
908
= "XX$teststring") >/dev/null 2>&1 &&
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
lt_cv_sys_max_cmd_len=$new_result &&
793
test $i != 17 # 1/2 MB should be enough
796
teststring=$teststring$teststring
799
# Add a significant safety factor because C++ compilers can tack on massive
800
# amounts of additional arguments before passing them to the linker.
801
# It appears as though 1/2 is a usable value.
802
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
909
new_result=`expr "X$teststring" : ".*" 2>&1` &&
910
lt_cv_sys_max_cmd_len=$new_result &&
911
test $i != 17 # 1/2 MB should be enough
914
teststring=$teststring$teststring
917
# Add a significant safety factor because C++ compilers can tack on massive
918
# amounts of additional arguments before passing them to the linker.
919
# It appears as though 1/2 is a usable value.
920
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1205
1327
version_type=none
1206
1328
dynamic_linker="$host_os ld.so"
1207
1329
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1208
1331
if test "$GCC" = yes; then
1209
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1333
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1334
*) lt_awk_arg="/^libraries:/" ;;
1336
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1337
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1338
# if the path contains ";" then we assume it to be the separator
1212
1339
# otherwise default to the standard path separator (i.e. ":") - it is
1213
1340
# assumed that no part of a normal pathname contains ";" but that should
1214
1341
# okay in the real world where ";" in dirpaths is itself problematic.
1215
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1342
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1217
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1344
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1346
# Ok, now we have the path, separated by spaces, we can step through it
1347
# and add multilib dir if necessary.
1348
lt_tmp_lt_search_path_spec=
1349
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1350
for lt_sys_path in $lt_search_path_spec; do
1351
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1352
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1354
test -d "$lt_sys_path" && \
1355
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1358
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1359
BEGIN {RS=" "; FS="/|\n";} {
1362
for (lt_i = NF; lt_i > 0; lt_i--) {
1363
if ($lt_i != "" && $lt_i != ".") {
1364
if ($lt_i == "..") {
1367
if (lt_count == 0) {
1368
lt_foo="/" $lt_i lt_foo;
1375
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1376
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1378
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1220
1380
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1222
1382
need_lib_prefix=unknown
1223
1383
hardcode_into_libs=no
3020
3243
darwin* | rhapsody*)
3022
rhapsody* | darwin1.[[012]])
3023
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3026
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3027
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3029
case ${MACOSX_DEPLOYMENT_TARGET} in
3031
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3034
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3040
3244
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041
3245
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3042
3246
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043
3247
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044
3248
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045
3249
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3047
if test "$GXX" = yes ; then
3048
lt_int_apple_cc_single_mod=no
3250
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3251
if test "$GXX" = yes ; then
3049
3252
output_verbose_link_cmd='echo'
3050
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3051
lt_int_apple_cc_single_mod=yes
3253
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3254
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3255
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3256
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3257
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3258
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3259
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3053
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3054
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3056
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3058
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3059
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3060
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3061
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3063
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3065
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3067
3262
case $cc_basename in
3069
3264
output_verbose_link_cmd='echo'
3070
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3265
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3071
3266
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3267
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3268
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074
3269
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3343
3536
# dependencies.
3344
3537
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3540
case `$CC -V 2>&1 | sed 5q` in
3543
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3544
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3545
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3546
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3547
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3549
# Not sure whether something based on
3550
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3552
output_verbose_link_cmd='echo'
3554
# Archives containing C++ object files must be created using
3555
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3556
# necessary to make sure instantiated templates are included
3558
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3381
3597
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3384
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3390
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3600
if test -f /usr/libexec/ld.so; then
3601
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3602
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3603
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3604
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3605
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3606
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3607
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3608
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3610
output_verbose_link_cmd='echo'
3612
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3393
output_verbose_link_cmd='echo'
3396
3616
case $cc_basename in
3552
3772
case $host_os in
3553
3773
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3555
# The C++ compiler is used as linker so we must use $wl
3556
# flag to pass the commands to the underlying system
3557
# linker. We must also pass each convience library through
3558
# to the system linker between allextract/defaultextract.
3559
# The C++ compiler will combine linker options so we
3560
# cannot just pass the convience library names through
3775
# The compiler driver will combine and reorder linker options,
3776
# but understands `-z linker_flag'.
3562
3777
# Supported since Solaris 2.6 (maybe 2.5.1?)
3563
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3778
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3566
3781
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3858
4085
_LT_AC_TAGVAR(postdeps,$1)=
4089
case `$CC -V 2>&1 | sed 5q` in
4093
# The more standards-conforming stlport4 library is
4094
# incompatible with the Cstd library. Avoid specifying
4095
# it if it's in CXXFLAGS. Ignore libCrun as
4096
# -library=stlport4 depends on it.
4097
case " $CXX $CXXFLAGS " in
4098
*" -library=stlport4 "*)
4099
solaris_use_stlport4=yes
4102
if test "$solaris_use_stlport4" != yes; then
4103
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3862
4110
case $cc_basename in
4112
# The more standards-conforming stlport4 library is
4113
# incompatible with the Cstd library. Avoid specifying
4114
# it if it's in CXXFLAGS. Ignore libCrun as
4115
# -library=stlport4 depends on it.
4116
case " $CXX $CXXFLAGS " in
4117
*" -library=stlport4 "*)
4118
solaris_use_stlport4=yes
3864
4122
# Adding this requires a known-good setup of shared libraries for
3865
4123
# Sun compiler versions before 5.6, else PIC objects from an old
3866
4124
# archive will be linked into the output, leading to subtle bugs.
3867
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4125
if test "$solaris_use_stlport4" != yes; then
4126
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3874
4133
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3875
4134
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5378
5711
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5379
5712
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5380
5713
# as well as any symbol that contains `d'.
5381
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5714
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5382
5715
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5383
5716
# platforms (ab)use it in PIC code, but their linkers get confused if
5384
5717
# the symbol is explicitly referenced. Since portable code cannot
5385
5718
# rely on this symbol name, it's probably fine to never include it in
5386
5719
# preloaded symbol tables.
5720
# Exclude shared library initialization/finalization symbols.
5721
dnl Note also adjust exclude_expsyms for C++ above.
5387
5722
extract_expsyms_cmds=
5388
5723
# Just being paranoid about ensuring that cc_basename is set.
5389
5724
_LT_CC_BASENAME([$compiler])
5532
5867
ifc* | ifort*) # Intel Fortran compiler
5533
5868
tmp_addflag=' -nofor_main' ;;
5535
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5870
case `$CC -V 2>&1 | sed 5q` in
5871
*Sun\ C*) # Sun C 5.9
5872
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5873
tmp_sharedflag='-G' ;;
5874
*Sun\ F*) # Sun Fortran 8.3
5875
tmp_sharedflag='-G' ;;
5877
tmp_sharedflag='-shared' ;;
5879
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537
5881
if test $supports_anon_versioning = yes; then
5538
5882
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5883
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5884
$echo "local: *; };" >> $output_objdir/$libname.ver~
5541
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5885
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5543
5887
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5824
6168
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825
6169
if test "$GCC" = yes ; then
5826
6170
output_verbose_link_cmd='echo'
5827
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5828
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5829
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5830
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5831
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6171
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6172
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6173
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6174
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5833
6176
case $cc_basename in
5835
6178
output_verbose_link_cmd='echo'
5836
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5837
6180
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6181
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6182
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840
6183
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6001
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6006
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6344
if test -f /usr/libexec/ld.so; then
6345
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6346
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6347
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6348
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6349
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6350
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6351
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6354
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6355
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6356
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6359
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6360
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6010
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6015
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6365
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6074
6421
case $host_os in
6075
6422
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6077
# The compiler driver will combine linker options so we
6078
# cannot just pass the convience library names through
6079
# without $wl, iff we do not link with $LD.
6080
# Luckily, gcc supports the same syntax we need for Sun Studio.
6424
# The compiler driver will combine and reorder linker options,
6425
# but understands `-z linker_flag'. GCC discards it without `$wl',
6426
# but is careful enough not to reorder.
6081
6427
# Supported since Solaris 2.6 (maybe 2.5.1?)
6084
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6086
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6428
if test "$GCC" = yes; then
6429
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6431
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6089
6435
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6319
6665
[AC_CHECK_TOOL(RC, windres, no)
6669
# Cheap backport of AS_EXECUTABLE_P and required macros
6670
# from Autoconf 2.59; we should not use $as_executable_p directly.
6674
m4_ifndef([_AS_TEST_PREPARE],
6675
[m4_defun([_AS_TEST_PREPARE],
6676
[if test -x / >/dev/null 2>&1; then
6677
as_executable_p='test -x'
6679
as_executable_p='test -f'
6681
])])# _AS_TEST_PREPARE
6685
# Check whether a file is executable.
6686
m4_ifndef([AS_EXECUTABLE_P],
6687
[m4_defun([AS_EXECUTABLE_P],
6688
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6689
$as_executable_p $1[]dnl
6690
])])# AS_EXECUTABLE_P
6322
6692
# NOTE: This macro has been submitted for inclusion into #
6323
6693
# GNU Autoconf as AC_PROG_SED. When it is available in #
6324
6694
# a released version of Autoconf we should remove this #
6390
6762
# ----------------------------
6391
6763
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6392
6764
# generated from the m4 files accompanying Automake X.Y.
6393
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6765
# (This private macro should not be called outside this file.)
6766
AC_DEFUN([AM_AUTOMAKE_VERSION],
6767
[am__api_version='1.10'
6768
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6769
dnl require some minimum version. Point them to the right macro.
6770
m4_if([$1], [1.10.1], [],
6771
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6774
# _AM_AUTOCONF_VERSION(VERSION)
6775
# -----------------------------
6776
# aclocal traces this macro to find the Autoconf version.
6777
# This is a private macro too. Using m4_define simplifies
6778
# the logic in aclocal, which can simply ignore this definition.
6779
m4_define([_AM_AUTOCONF_VERSION], [])
6395
6781
# AM_SET_CURRENT_AUTOMAKE_VERSION
6396
6782
# -------------------------------
6397
# Call AM_AUTOMAKE_VERSION so it can be traced.
6783
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6398
6784
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6399
6785
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6400
[AM_AUTOMAKE_VERSION([1.9.6])])
6786
[AM_AUTOMAKE_VERSION([1.10.1])dnl
6787
m4_ifndef([AC_AUTOCONF_VERSION],
6788
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6789
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6402
6791
# Figure out how to run the assembler. -*- Autoconf -*-
6404
# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
6793
# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6406
6795
# This file is free software; the Free Software Foundation
6407
6796
# gives unlimited permission to copy and/or distribute it,
6408
6797
# with or without modifications, as long as this notice is preserved.
6506
6898
Usually this means the macro was only invoked conditionally.]])
6510
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6901
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6511
6902
# Free Software Foundation, Inc.
6513
6904
# This file is free software; the Free Software Foundation
6514
6905
# gives unlimited permission to copy and/or distribute it,
6515
6906
# with or without modifications, as long as this notice is preserved.
6519
6910
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6520
6911
# written in clear, in which case automake, when reading aclocal.m4,
6745
7140
# Do all the work for Automake. -*- Autoconf -*-
6747
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6748
# Free Software Foundation, Inc.
7142
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7143
# 2005, 2006, 2008 Free Software Foundation, Inc.
6750
7145
# This file is free software; the Free Software Foundation
6751
7146
# gives unlimited permission to copy and/or distribute it,
6752
7147
# with or without modifications, as long as this notice is preserved.
6756
7151
# This macro actually does too much. Some checks are only needed if
6757
7152
# your package does certain things. But this isn't really a big deal.
6768
7163
# arguments mandatory, and then we can depend on a new Autoconf
6769
7164
# release and drop the old call support.
6770
7165
AC_DEFUN([AM_INIT_AUTOMAKE],
6771
[AC_PREREQ([2.58])dnl
7166
[AC_PREREQ([2.60])dnl
6772
7167
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6773
7168
dnl the ones we care about.
6774
7169
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6775
7170
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6776
7171
AC_REQUIRE([AC_PROG_INSTALL])dnl
6777
# test to see if srcdir already configured
6778
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6779
test -f $srcdir/config.status; then
6780
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7172
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7173
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7174
# is not polluted with repeated "-I."
7175
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7176
# test to see if srcdir already configured
7177
if test -f $srcdir/config.status; then
7178
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6783
7182
# test whether we have cygpath
7016
7424
# AM_PROG_MKDIR_P
7017
7425
# ---------------
7018
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7020
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7021
# created by `make install' are always world readable, even if the
7022
# installer happens to have an overly restrictive umask (e.g. 077).
7023
# This was a mistake. There are at least two reasons why we must not
7025
# - it causes special bits like SGID to be ignored,
7026
# - it may be too restrictive (some setups expect 775 directories).
7028
# Do not use -m 0755 and let people choose whatever they expect by
7031
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7032
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7033
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7034
# concurrently, both version can detect that a/ is missing, but only
7035
# one can create it and the other will error out. Consequently we
7036
# restrict ourselves to GNU make (using the --version option ensures
7426
# Check for `mkdir -p'.
7038
7427
AC_DEFUN([AM_PROG_MKDIR_P],
7039
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7040
# We used to keeping the `.' as first argument, in order to
7041
# allow $(mkdir_p) to be used without argument. As in
7042
# $(mkdir_p) $(somedir)
7043
# where $(somedir) is conditionally defined. However this is wrong
7045
# 1. if the package is installed by a user who cannot write `.'
7046
# make install will fail,
7047
# 2. the above comment should most certainly read
7048
# $(mkdir_p) $(DESTDIR)$(somedir)
7049
# so it does not work when $(somedir) is undefined and
7050
# $(DESTDIR) is not.
7051
# To support the latter case, we have to write
7052
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7053
# so the `.' trick is pointless.
7054
mkdir_p='mkdir -p --'
7056
# On NextStep and OpenStep, the `mkdir' command does not
7057
# recognize any option. It will interpret all options as
7058
# directories to create, and then abort because `.' already
7060
for d in ./-p ./--version;
7062
test -d $d && rmdir $d
7064
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7065
if test -f "$ac_aux_dir/mkinstalldirs"; then
7066
mkdir_p='$(mkinstalldirs)'
7068
mkdir_p='$(install_sh) -d'
7071
AC_SUBST([mkdir_p])])
7428
[AC_PREREQ([2.60])dnl
7429
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7430
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7431
dnl while keeping a definition of mkdir_p for backward compatibility.
7432
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7433
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7434
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7435
dnl adjustment using top_builddir (which is defined more often than
7437
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7439
[[\\/$]]* | ?:[[\\/]]*) ;;
7440
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7444
# Check to make sure the static flag actually works.
7446
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7447
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7448
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
7449
$lt_tmp_static_flag,
7451
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7073
7454
# Helper functions for option handling. -*- Autoconf -*-
7180
7561
if test "$cross_compiling" != no; then
7181
7562
AC_CHECK_TOOL([STRIP], [strip], :)
7183
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7564
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7184
7565
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7567
# Copyright (C) 2006 Free Software Foundation, Inc.
7569
# This file is free software; the Free Software Foundation
7570
# gives unlimited permission to copy and/or distribute it,
7571
# with or without modifications, as long as this notice is preserved.
7573
# _AM_SUBST_NOTMAKE(VARIABLE)
7574
# ---------------------------
7575
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7576
# This macro is traced by Automake.
7577
AC_DEFUN([_AM_SUBST_NOTMAKE])
7579
# Check how to create a tarball. -*- Autoconf -*-
7581
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7583
# This file is free software; the Free Software Foundation
7584
# gives unlimited permission to copy and/or distribute it,
7585
# with or without modifications, as long as this notice is preserved.
7589
# _AM_PROG_TAR(FORMAT)
7590
# --------------------
7591
# Check how to create a tarball in format FORMAT.
7592
# FORMAT should be one of `v7', `ustar', or `pax'.
7594
# Substitute a variable $(am__tar) that is a command
7595
# writing to stdout a FORMAT-tarball containing the directory
7597
# tardir=directory && $(am__tar) > result.tar
7599
# Substitute a variable $(am__untar) that extract such
7600
# a tarball read from stdin.
7601
# $(am__untar) < result.tar
7602
AC_DEFUN([_AM_PROG_TAR],
7603
[# Always define AMTAR for backward compatibility.
7604
AM_MISSING_PROG([AMTAR], [tar])
7606
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7607
[m4_case([$1], [ustar],, [pax],,
7608
[m4_fatal([Unknown tar format])])
7609
AC_MSG_CHECKING([how to create a $1 tar archive])
7610
# Loop over all known methods to create a tar archive until one works.
7611
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7612
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7613
# Do not fold the above two line into one, because Tru64 sh and
7614
# Solaris sh will not grok spaces in the rhs of `-'.
7615
for _am_tool in $_am_tools
7619
for _am_tar in tar gnutar gtar;
7621
AM_RUN_LOG([$_am_tar --version]) && break
7623
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7624
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7625
am__untar="$_am_tar -xf -"
7628
# Must skip GNU tar: if it does not support --format= it doesn't create
7629
# ustar tarball either.
7630
(tar --version) >/dev/null 2>&1 && continue
7631
am__tar='tar chf - "$$tardir"'
7632
am__tar_='tar chf - "$tardir"'
7633
am__untar='tar xf -'
7636
am__tar='pax -L -x $1 -w "$$tardir"'
7637
am__tar_='pax -L -x $1 -w "$tardir"'
7641
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7642
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7643
am__untar='cpio -i -H $1 -d'
7652
# If the value was cached, stop now. We just wanted to have am__tar
7653
# and am__untar set.
7654
test -n "${am_cv_prog_tar_$1}" && break
7656
# tar/untar a dummy directory, and stop if the command works
7659
echo GrepMe > conftest.dir/file
7660
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7662
if test -s conftest.tar; then
7663
AM_RUN_LOG([$am__untar <conftest.tar])
7664
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7669
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7670
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7672
AC_SUBST([am__untar])
7186
7675
# Check how to create a tarball. -*- Autoconf -*-
7188
7677
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.