1468
406
dnl Now the definitions that aclocal will find
1470
408
ifdef(glib_configure_in,[],[
1471
AC_DEFUN(AM_GLIB_GNU_GETTEXT,[GLIB_GNU_GETTEXT($@)])
1472
AC_DEFUN(AM_GLIB_DEFINE_LOCALEDIR,[GLIB_DEFINE_LOCALEDIR($@)])
409
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
410
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
414
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
# serial 2 IT_PROG_INTLTOOL
416
AC_DEFUN([IT_PROG_INTLTOOL],
419
if test -n "$1"; then
420
AC_MSG_CHECKING(for intltool >= $1)
422
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ printf "%d", $[1] * 100 + $[2]; }'`
423
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $[2]; }' < ${ac_aux_dir}/intltool-update.in`
425
INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split(${{2}}, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
428
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
429
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
431
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool $1 or later.])
436
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
437
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
438
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
439
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
440
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
441
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
442
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
443
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
444
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
445
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
446
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
447
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
448
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
449
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
450
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
451
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
452
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
454
AC_SUBST(INTLTOOL_DESKTOP_RULE)
455
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
456
AC_SUBST(INTLTOOL_KEYS_RULE)
457
AC_SUBST(INTLTOOL_PROP_RULE)
458
AC_SUBST(INTLTOOL_OAF_RULE)
459
AC_SUBST(INTLTOOL_PONG_RULE)
460
AC_SUBST(INTLTOOL_SERVER_RULE)
461
AC_SUBST(INTLTOOL_SHEET_RULE)
462
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
463
AC_SUBST(INTLTOOL_UI_RULE)
464
AC_SUBST(INTLTOOL_XAM_RULE)
465
AC_SUBST(INTLTOOL_KBD_RULE)
466
AC_SUBST(INTLTOOL_XML_RULE)
467
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
468
AC_SUBST(INTLTOOL_CAVES_RULE)
469
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
470
AC_SUBST(INTLTOOL_THEME_RULE)
472
# Use the tools built into the package, not the ones that are installed.
474
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
475
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
476
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
478
AC_SUBST(INTLTOOL_EXTRACT)
479
AC_SUBST(INTLTOOL_MERGE)
480
AC_SUBST(INTLTOOL_UPDATE)
482
AC_PATH_PROG(INTLTOOL_PERL, perl)
483
if test -z "$INTLTOOL_PERL"; then
484
AC_MSG_ERROR([perl not found; required for intltool])
486
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
487
AC_MSG_ERROR([perl 5.x required for intltool])
489
if test "x$2" != "xno-xml"; then
490
AC_MSG_CHECKING([for XML::Parser])
491
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
494
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
498
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
503
# Remove file type tags (using []) from po/POTFILES.
505
ifdef([AC_DIVERSION_ICMDS],[
506
AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
508
mv -f po/POTFILES po/POTFILES.tmp
509
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
510
rm -f po/POTFILES.tmp
514
ifdef([AC_CONFIG_COMMANDS_PRE],[
515
AC_CONFIG_COMMANDS_PRE([
517
mv -f po/POTFILES po/POTFILES.tmp
518
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
519
rm -f po/POTFILES.tmp
524
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
525
# Keeping the `.' argument allows $(mkdir_p) to be used without
526
# argument. Indeed, we sometimes output rules like
527
# $(mkdir_p) $(somedir)
528
# where $(somedir) is conditionally defined.
529
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
530
# expensive solution, as it forces Make to start a sub-shell.)
531
mkdir_p='mkdir -p -- .'
533
# On NextStep and OpenStep, the `mkdir' command does not
534
# recognize any option. It will interpret all options as
535
# directories to create, and then abort because `.' already
537
for d in ./-p ./--version;
539
test -d $d && rmdir $d
541
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
542
if test -f "$ac_aux_dir/mkinstalldirs"; then
543
mkdir_p='$(mkinstalldirs)'
545
mkdir_p='$(install_sh) -d'
551
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
553
AC_CONFIG_COMMANDS([intltool], [
555
intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
556
-e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
557
-e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
558
-e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
559
-e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
560
-e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
562
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
563
> intltool-extract.out
564
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
565
rm -f intltool-extract.out
567
mv -f intltool-extract.out intltool-extract
569
chmod ugo+x intltool-extract
570
chmod u+w intltool-extract
572
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
574
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
575
rm -f intltool-merge.out
577
mv -f intltool-merge.out intltool-merge
579
chmod ugo+x intltool-merge
580
chmod u+w intltool-merge
582
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
583
> intltool-update.out
584
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
585
rm -f intltool-update.out
587
mv -f intltool-update.out intltool-update
589
chmod ugo+x intltool-update
590
chmod u+w intltool-update
592
], INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
593
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
594
MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
595
XGETTEXT='${INTLTOOL_XGETTEXT}')
600
AC_DEFUN([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])
603
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
605
# serial 47 AC_PROG_LIBTOOL
609
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
610
# -----------------------------------------------------------
611
# If this macro is not defined by Autoconf, define it here.
612
m4_ifdef([AC_PROVIDE_IFELSE],
614
[m4_define([AC_PROVIDE_IFELSE],
615
[m4_ifdef([AC_PROVIDE_$1],
621
AC_DEFUN([AC_PROG_LIBTOOL],
622
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
623
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
624
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
625
AC_PROVIDE_IFELSE([AC_PROG_CXX],
627
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
629
dnl And a similar setup for Fortran 77 support
630
AC_PROVIDE_IFELSE([AC_PROG_F77],
632
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
635
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
636
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
637
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
638
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
640
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
642
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
644
[ifdef([AC_PROG_GCJ],
645
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
646
ifdef([A][M_PROG_GCJ],
647
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
648
ifdef([LT_AC_PROG_GCJ],
649
[define([LT_AC_PROG_GCJ],
650
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
651
])])# AC_PROG_LIBTOOL
656
AC_DEFUN([_AC_PROG_LIBTOOL],
657
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
658
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
659
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
660
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
662
# This can be used to rebuild libtool when needed
663
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
665
# Always use our own libtool.
666
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
669
# Prevent multiple expansion
670
define([AC_PROG_LIBTOOL], [])
676
AC_DEFUN([AC_LIBTOOL_SETUP],
678
AC_REQUIRE([AC_ENABLE_SHARED])dnl
679
AC_REQUIRE([AC_ENABLE_STATIC])dnl
680
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
681
AC_REQUIRE([AC_CANONICAL_HOST])dnl
682
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
683
AC_REQUIRE([AC_PROG_CC])dnl
684
AC_REQUIRE([AC_PROG_LD])dnl
685
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
686
AC_REQUIRE([AC_PROG_NM])dnl
688
AC_REQUIRE([AC_PROG_LN_S])dnl
689
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
690
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
691
AC_REQUIRE([AC_OBJEXT])dnl
692
AC_REQUIRE([AC_EXEEXT])dnl
695
AC_LIBTOOL_SYS_MAX_CMD_LEN
696
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
699
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
700
_LT_AC_PROG_ECHO_BACKSLASH
704
# AIX sometimes has problems with the GCC collect2 program. For some
705
# reason, if we set the COLLECT_NAMES environment variable, the problems
706
# vanish in a puff of smoke.
707
if test "X${COLLECT_NAMES+set}" != Xset; then
714
# Sed substitution that helps us do robust quoting. It backslashifies
715
# metacharacters that are still active within double-quoted strings.
717
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
719
# Same as above, but do not quote variable references.
720
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
722
# Sed substitution to delay expansion of an escaped shell variable in a
723
# double_quote_subst'ed string.
724
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
726
# Sed substitution to avoid accidental globbing in evaled expressions
727
no_glob_subst='s/\*/\\\*/g'
733
default_ofile=libtool
736
# All known linkers require a `.a' archive for static linking (except M$VC,
737
# which needs '.lib').
739
ltmain="$ac_aux_dir/ltmain.sh"
740
ofile="$default_ofile"
741
with_gnu_ld="$lt_cv_prog_gnu_ld"
743
AC_CHECK_TOOL(AR, ar, false)
744
AC_CHECK_TOOL(RANLIB, ranlib, :)
745
AC_CHECK_TOOL(STRIP, strip, :)
750
# Set sane defaults for various variables
751
test -z "$AR" && AR=ar
752
test -z "$AR_FLAGS" && AR_FLAGS=cru
753
test -z "$AS" && AS=as
754
test -z "$CC" && CC=cc
755
test -z "$LTCC" && LTCC=$CC
756
test -z "$DLLTOOL" && DLLTOOL=dlltool
757
test -z "$LD" && LD=ld
758
test -z "$LN_S" && LN_S="ln -s"
759
test -z "$MAGIC_CMD" && MAGIC_CMD=file
760
test -z "$NM" && NM=nm
761
test -z "$SED" && SED=sed
762
test -z "$OBJDUMP" && OBJDUMP=objdump
763
test -z "$RANLIB" && RANLIB=:
764
test -z "$STRIP" && STRIP=:
765
test -z "$ac_objext" && ac_objext=o
767
# Determine commands to create old-style static archives.
768
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
769
old_postinstall_cmds='chmod 644 $oldlib'
770
old_postuninstall_cmds=
772
if test -n "$RANLIB"; then
775
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
778
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
781
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
784
# Only perform the check for file, if the check method requires it
785
case $deplibs_check_method in
787
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
793
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
794
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
795
enable_win32_dll=yes, enable_win32_dll=no)
797
AC_ARG_ENABLE([libtool-lock],
798
[AC_HELP_STRING([--disable-libtool-lock],
799
[avoid locking (might break parallel builds)])])
800
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
803
[AC_HELP_STRING([--with-pic],
804
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
805
[pic_mode="$withval"],
807
test -z "$pic_mode" && pic_mode=default
809
# Use C for the default configuration in the libtool script
811
AC_LIBTOOL_LANG_C_CONFIG
816
# _LT_AC_SYS_COMPILER
817
# -------------------
818
AC_DEFUN([_LT_AC_SYS_COMPILER],
819
[AC_REQUIRE([AC_PROG_CC])dnl
821
# If no C compiler was specified, use CC.
824
# Allow CC to be a program name with arguments.
826
])# _LT_AC_SYS_COMPILER
829
# _LT_AC_SYS_LIBPATH_AIX
830
# ----------------------
831
# Links a minimal program and checks the executable
832
# for the system default hardcoded library path. In most cases,
833
# this is /usr/lib:/lib, but when the MPI compilers are used
834
# the location of the communication and MPI libs are included too.
835
# If we don't find anything, use the default library path according
836
# to the aix ld manual.
837
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
838
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
839
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
841
# Check for a 64-bit object if we didn't find anything.
842
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; }
844
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
845
])# _LT_AC_SYS_LIBPATH_AIX
848
# _LT_AC_SHELL_INIT(ARG)
849
# ----------------------
850
AC_DEFUN([_LT_AC_SHELL_INIT],
851
[ifdef([AC_DIVERSION_NOTICE],
852
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
853
[AC_DIVERT_PUSH(NOTICE)])
856
])# _LT_AC_SHELL_INIT
859
# _LT_AC_PROG_ECHO_BACKSLASH
860
# --------------------------
861
# Add some code to the start of the generated configure script which
862
# will find an echo command which doesn't interpret backslashes.
863
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
865
# Check that we are running under the correct shell.
866
SHELL=${CONFIG_SHELL-/bin/sh}
870
# Remove one level of quotation (which was required for Make).
871
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
876
if test "X[$]1" = X--no-reexec; then
877
# Discard the --no-reexec flag, and continue.
879
elif test "X[$]1" = X--fallback-echo; then
880
# Avoid inline document here, it may be left over
882
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
883
# Yippee, $echo works!
886
# Restart under the correct shell.
887
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
890
if test "X[$]1" = X--fallback-echo; then
891
# used as fallback echo
899
# The HP-UX ksh and POSIX shell print the target directory to stdout
901
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
903
if test -z "$ECHO"; then
904
if test "X${echo_test_string+set}" != Xset; then
905
# find a string as large as possible, as long as the shell can cope with it
906
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
907
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
908
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
909
echo_test_string="`eval $cmd`" &&
910
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
917
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
918
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
919
test "X$echo_testing_string" = "X$echo_test_string"; then
922
# The Solaris, AIX, and Digital Unix default echo programs unquote
923
# backslashes. This makes it impossible to quote backslashes using
924
# echo "$something" | sed 's/\\/\\\\/g'
926
# So, first we look for a working echo in the user's PATH.
928
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
929
for dir in $PATH /usr/ucb; do
931
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
932
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
933
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
934
test "X$echo_testing_string" = "X$echo_test_string"; then
941
if test "X$echo" = Xecho; then
942
# We didn't find a better echo, so look for alternatives.
943
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
944
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
945
test "X$echo_testing_string" = "X$echo_test_string"; then
946
# This shell has a builtin print -r that does the trick.
948
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
949
test "X$CONFIG_SHELL" != X/bin/ksh; then
950
# If we have ksh, try running configure again with it.
951
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
952
export ORIGINAL_CONFIG_SHELL
953
CONFIG_SHELL=/bin/ksh
955
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
959
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
960
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
961
test "X$echo_testing_string" = "X$echo_test_string"; then
964
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
965
test "X$echo_testing_string" = 'X\t' &&
966
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
967
test "X$echo_testing_string" = "X$echo_test_string"; then
968
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
970
SHELL="$CONFIG_SHELL"
972
echo="$CONFIG_SHELL [$]0 --fallback-echo"
973
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
974
test "X$echo_testing_string" = 'X\t' &&
975
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
976
test "X$echo_testing_string" = "X$echo_test_string"; then
977
echo="$CONFIG_SHELL [$]0 --fallback-echo"
979
# maybe with a smaller string...
982
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
983
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
990
if test "$prev" != 'sed 50q "[$]0"'; then
991
echo_test_string=`eval $prev`
992
export echo_test_string
993
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
995
# Oops. We lost completely, so just stick with echo.
1004
# Copy echo and quote the copy suitably for passing to libtool from
1005
# the Makefile, instead of quoting the original, which is used later.
1007
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1008
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1012
])])# _LT_AC_PROG_ECHO_BACKSLASH
1017
AC_DEFUN([_LT_AC_LOCK],
1018
[AC_ARG_ENABLE([libtool-lock],
1019
[AC_HELP_STRING([--disable-libtool-lock],
1020
[avoid locking (might break parallel builds)])])
1021
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1023
# Some flags need to be propagated to the compiler or linker for good
1027
# Find out which ABI we are using.
1028
echo 'int i;' > conftest.$ac_ext
1029
if AC_TRY_EVAL(ac_compile); then
1030
case `/usr/bin/file conftest.$ac_objext` in
1042
# Find out which ABI we are using.
1043
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1044
if AC_TRY_EVAL(ac_compile); then
1045
if test "$lt_cv_prog_gnu_ld" = yes; then
1046
case `/usr/bin/file conftest.$ac_objext` in
1048
LD="${LD-ld} -melf32bsmip"
1051
LD="${LD-ld} -melf32bmipn32"
1054
LD="${LD-ld} -melf64bmip"
1058
case `/usr/bin/file conftest.$ac_objext` in
1074
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1075
# Find out which ABI we are using.
1076
echo 'int i;' > conftest.$ac_ext
1077
if AC_TRY_EVAL(ac_compile); then
1078
case "`/usr/bin/file conftest.o`" in
1082
LD="${LD-ld} -m elf_i386"
1084
ppc64-*linux*|powerpc64-*linux*)
1085
LD="${LD-ld} -m elf32ppclinux"
1088
LD="${LD-ld} -m elf_s390"
1091
LD="${LD-ld} -m elf32_sparc"
1098
LD="${LD-ld} -m elf_x86_64"
1100
ppc*-*linux*|powerpc*-*linux*)
1101
LD="${LD-ld} -m elf64ppc"
1104
LD="${LD-ld} -m elf64_s390"
1107
LD="${LD-ld} -m elf64_sparc"
1117
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1118
SAVE_CFLAGS="$CFLAGS"
1119
CFLAGS="$CFLAGS -belf"
1120
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1122
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1124
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1125
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1126
CFLAGS="$SAVE_CFLAGS"
1129
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1130
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1131
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1132
AC_CHECK_TOOL(AS, as, false)
1133
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1138
need_locks="$enable_libtool_lock"
1143
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1144
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1145
# ----------------------------------------------------------------
1146
# Check whether the given compiler option works
1147
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1148
[AC_REQUIRE([LT_AC_PROG_SED])
1149
AC_CACHE_CHECK([$1], [$2],
1151
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1152
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1153
lt_compiler_flag="$3"
1154
# Insert the option either (1) after the last *FLAGS variable, or
1155
# (2) before a word containing "conftest.", or (3) at the end.
1156
# Note that $ac_compile itself does not contain backslashes and begins
1157
# with a dollar sign (not a hyphen), so the echo should work correctly.
1158
# The option is referenced via a variable to avoid confusing sed.
1159
lt_compile=`echo "$ac_compile" | $SED \
1160
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1161
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1162
-e 's:$: $lt_compiler_flag:'`
1163
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1164
(eval "$lt_compile" 2>conftest.err)
1166
cat conftest.err >&AS_MESSAGE_LOG_FD
1167
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1168
if (exit $ac_status) && test -s "$ac_outfile"; then
1169
# The compiler can only warn and ignore the option if not recognized
1170
# So say no if there are warnings
1171
if test ! -s conftest.err; then
1178
if test x"[$]$2" = xyes; then
1179
ifelse([$5], , :, [$5])
1181
ifelse([$6], , :, [$6])
1183
])# AC_LIBTOOL_COMPILER_OPTION
1186
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1187
# [ACTION-SUCCESS], [ACTION-FAILURE])
1188
# ------------------------------------------------------------
1189
# Check whether the given compiler option works
1190
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1191
[AC_CACHE_CHECK([$1], [$2],
1193
save_LDFLAGS="$LDFLAGS"
1194
LDFLAGS="$LDFLAGS $3"
1195
printf "$lt_simple_link_test_code" > conftest.$ac_ext
1196
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1197
# The compiler can only warn and ignore the option if not recognized
1198
# So say no if there are warnings
1199
if test -s conftest.err; then
1200
# Append any errors to the config.log.
1201
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1207
LDFLAGS="$save_LDFLAGS"
1210
if test x"[$]$2" = xyes; then
1211
ifelse([$4], , :, [$4])
1213
ifelse([$5], , :, [$5])
1215
])# AC_LIBTOOL_LINKER_OPTION
1218
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1219
# --------------------------
1220
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1221
[# find the maximum length of command line arguments
1222
AC_MSG_CHECKING([the maximum length of command line arguments])
1223
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1229
# On DJGPP, this test can blow up pretty badly due to problems in libc
1230
# (any single argument exceeding 2000 bytes causes a buffer overrun
1231
# during glob expansion). Even if it were fixed, the result of this
1232
# check would be larger than it should be.
1233
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1237
# Under GNU Hurd, this test is not required because there is
1238
# no limit to the length of command line arguments.
1239
# Libtool will interpret -1 as no limit whatsoever
1240
lt_cv_sys_max_cmd_len=-1;
1244
# On Win9x/ME, this test blows up -- it succeeds, but takes
1245
# about 5 minutes as the teststring grows exponentially.
1246
# Worse, since 9x/ME are not pre-emptively multitasking,
1247
# you end up with a "frozen" computer, even though with patience
1248
# the test eventually succeeds (with a max line length of 256k).
1249
# Instead, let's just punt: use the minimum linelength reported by
1250
# all of the supported platforms: 8192 (on NT/2K/XP).
1251
lt_cv_sys_max_cmd_len=8192;
1255
# On AmigaOS with pdksh, this test takes hours, literally.
1256
# So we just punt and use a minimum line length of 8192.
1257
lt_cv_sys_max_cmd_len=8192;
1261
# If test is not a shell built-in, we'll probably end up computing a
1262
# maximum length that is only half of the actual maximum length, but
1264
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1265
= "XX$teststring") >/dev/null 2>&1 &&
1266
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1267
lt_cv_sys_max_cmd_len=$new_result &&
1268
test $i != 17 # 1/2 MB should be enough
1271
teststring=$teststring$teststring
1274
# Add a significant safety factor because C++ compilers can tack on massive
1275
# amounts of additional arguments before passing them to the linker.
1276
# It appears as though 1/2 is a usable value.
1277
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1281
if test -n $lt_cv_sys_max_cmd_len ; then
1282
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1286
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1289
# _LT_AC_CHECK_DLFCN
1290
# --------------------
1291
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1292
[AC_CHECK_HEADERS(dlfcn.h)dnl
1293
])# _LT_AC_CHECK_DLFCN
1296
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1297
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1298
# ------------------------------------------------------------------
1299
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1300
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1301
if test "$cross_compiling" = yes; then :
1304
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1305
lt_status=$lt_dlunknown
1306
cat > conftest.$ac_ext <<EOF
1307
[#line __oline__ "configure"
1308
#include "confdefs.h"
1317
# define LT_DLGLOBAL RTLD_GLOBAL
1320
# define LT_DLGLOBAL DL_GLOBAL
1322
# define LT_DLGLOBAL 0
1326
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1327
find out it does not work in some platform. */
1328
#ifndef LT_DLLAZY_OR_NOW
1330
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1333
# define LT_DLLAZY_OR_NOW DL_LAZY
1336
# define LT_DLLAZY_OR_NOW RTLD_NOW
1339
# define LT_DLLAZY_OR_NOW DL_NOW
1341
# define LT_DLLAZY_OR_NOW 0
1349
extern "C" void exit (int);
1352
void fnord() { int i=42;}
1355
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1356
int status = $lt_dlunknown;
1360
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1361
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1362
/* dlclose (self); */
1368
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1369
(./conftest; exit; ) 2>/dev/null
1372
x$lt_dlno_uscore) $1 ;;
1373
x$lt_dlneed_uscore) $2 ;;
1374
x$lt_unknown|x*) $3 ;;
1377
# compilation failed
1382
])# _LT_AC_TRY_DLOPEN_SELF
1385
# AC_LIBTOOL_DLOPEN_SELF
1386
# -------------------
1387
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1388
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1389
if test "x$enable_dlopen" != xyes; then
1390
enable_dlopen=unknown
1391
enable_dlopen_self=unknown
1392
enable_dlopen_self_static=unknown
1399
lt_cv_dlopen="load_add_on"
1401
lt_cv_dlopen_self=yes
1405
lt_cv_dlopen="LoadLibrary"
1410
lt_cv_dlopen="dlopen"
1415
# if libdl is installed we need to link against it
1416
AC_CHECK_LIB([dl], [dlopen],
1417
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1420
lt_cv_dlopen_self=yes
1425
AC_CHECK_FUNC([shl_load],
1426
[lt_cv_dlopen="shl_load"],
1427
[AC_CHECK_LIB([dld], [shl_load],
1428
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1429
[AC_CHECK_FUNC([dlopen],
1430
[lt_cv_dlopen="dlopen"],
1431
[AC_CHECK_LIB([dl], [dlopen],
1432
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1433
[AC_CHECK_LIB([svld], [dlopen],
1434
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1435
[AC_CHECK_LIB([dld], [dld_link],
1436
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1445
if test "x$lt_cv_dlopen" != xno; then
1451
case $lt_cv_dlopen in
1453
save_CPPFLAGS="$CPPFLAGS"
1454
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1456
save_LDFLAGS="$LDFLAGS"
1457
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1460
LIBS="$lt_cv_dlopen_libs $LIBS"
1462
AC_CACHE_CHECK([whether a program can dlopen itself],
1463
lt_cv_dlopen_self, [dnl
1464
_LT_AC_TRY_DLOPEN_SELF(
1465
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1466
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1469
if test "x$lt_cv_dlopen_self" = xyes; then
1470
LDFLAGS="$LDFLAGS $link_static_flag"
1471
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1472
lt_cv_dlopen_self_static, [dnl
1473
_LT_AC_TRY_DLOPEN_SELF(
1474
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1475
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1479
CPPFLAGS="$save_CPPFLAGS"
1480
LDFLAGS="$save_LDFLAGS"
1485
case $lt_cv_dlopen_self in
1486
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1487
*) enable_dlopen_self=unknown ;;
1490
case $lt_cv_dlopen_self_static in
1491
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1492
*) enable_dlopen_self_static=unknown ;;
1495
])# AC_LIBTOOL_DLOPEN_SELF
1498
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1499
# ---------------------------------
1500
# Check to see if options -c and -o are simultaneously supported by compiler
1501
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1502
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1503
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1504
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1505
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1506
$rm -r conftest 2>/dev/null
1510
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1512
lt_compiler_flag="-o out/conftest2.$ac_objext"
1513
# Insert the option either (1) after the last *FLAGS variable, or
1514
# (2) before a word containing "conftest.", or (3) at the end.
1515
# Note that $ac_compile itself does not contain backslashes and begins
1516
# with a dollar sign (not a hyphen), so the echo should work correctly.
1517
lt_compile=`echo "$ac_compile" | $SED \
1518
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1519
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1520
-e 's:$: $lt_compiler_flag:'`
1521
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1522
(eval "$lt_compile" 2>out/conftest.err)
1524
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1525
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1526
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1528
# The compiler can only warn and ignore the option if not recognized
1529
# So say no if there are warnings
1530
if test ! -s out/conftest.err; then
1531
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1536
# SGI C++ compiler will create directory out/ii_files/ for
1537
# template instantiation
1538
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1539
$rm out/* && rmdir out
1544
])# AC_LIBTOOL_PROG_CC_C_O
1547
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1548
# -----------------------------------------
1549
# Check to see if we can do hard links to lock some files if needed
1550
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1551
[AC_REQUIRE([_LT_AC_LOCK])dnl
1553
hard_links="nottested"
1554
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1555
# do not overwrite the value of need_locks provided by the user
1556
AC_MSG_CHECKING([if we can lock with hard links])
1559
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1561
ln conftest.a conftest.b 2>&5 || hard_links=no
1562
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1563
AC_MSG_RESULT([$hard_links])
1564
if test "$hard_links" = no; then
1565
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1571
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1576
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1577
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1578
[rm -f .libs 2>/dev/null
1579
mkdir .libs 2>/dev/null
1580
if test -d .libs; then
1583
# MS-DOS does not allow filenames that begin with a dot.
1586
rmdir .libs 2>/dev/null])
1587
objdir=$lt_cv_objdir
1588
])# AC_LIBTOOL_OBJDIR
1591
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1592
# ----------------------------------------------
1593
# Check hardcoding attributes.
1594
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1595
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1596
_LT_AC_TAGVAR(hardcode_action, $1)=
1597
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1598
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1599
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1601
# We can hardcode non-existant directories.
1602
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1603
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1604
# have to relink, otherwise we might link with an installed library
1605
# when we should be linking with a yet-to-be-installed one
1606
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1607
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1608
# Linking always hardcodes the temporary library directory.
1609
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1611
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1612
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1615
# We cannot hardcode anything, or else we can only hardcode existing
1617
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1619
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1621
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1622
# Fast installation is not supported
1623
enable_fast_install=no
1624
elif test "$shlibpath_overrides_runpath" = yes ||
1625
test "$enable_shared" = no; then
1626
# Fast installation is not necessary
1627
enable_fast_install=needless
1629
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1632
# AC_LIBTOOL_SYS_LIB_STRIP
1633
# ------------------------
1634
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1637
AC_MSG_CHECKING([whether stripping libraries is possible])
1638
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1639
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1640
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1641
AC_MSG_RESULT([yes])
1643
# FIXME - insert some real tests, host_os isn't really good enough
1646
if test -n "$STRIP" ; then
1647
striplib="$STRIP -x"
1648
AC_MSG_RESULT([yes])
1658
])# AC_LIBTOOL_SYS_LIB_STRIP
1661
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1662
# -----------------------------
1663
# PORTME Fill in your ld.so characteristics
1664
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1665
[AC_MSG_CHECKING([dynamic linker characteristics])
1667
libname_spec='lib$name'
1675
shlibpath_overrides_runpath=unknown
1677
dynamic_linker="$host_os ld.so"
1678
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1679
if test "$GCC" = yes; then
1680
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1681
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1682
# if the path contains ";" then we assume it to be the separator
1683
# otherwise default to the standard path separator (i.e. ":") - it is
1684
# assumed that no part of a normal pathname contains ";" but that should
1685
# okay in the real world where ";" in dirpaths is itself problematic.
1686
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1688
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1691
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1693
need_lib_prefix=unknown
1694
hardcode_into_libs=no
1696
# when you set need_version to no, make sure it does not cause -set_version
1697
# flags to be left without arguments
1698
need_version=unknown
1703
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1704
shlibpath_var=LIBPATH
1706
# AIX 3 has no versioning support, so we append a major version to the name.
1707
soname_spec='${libname}${release}${shared_ext}$major'
1714
hardcode_into_libs=yes
1715
if test "$host_cpu" = ia64; then
1716
# AIX 5 supports IA64
1717
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1718
shlibpath_var=LD_LIBRARY_PATH
1720
# With GCC up to 2.95.x, collect2 would create an import file
1721
# for dependence libraries. The import file would start with
1722
# the line `#! .'. This would cause the generated library to
1723
# depend on `.', always an invalid library. This was fixed in
1724
# development snapshots of GCC prior to 3.0.
1726
aix4 | aix4.[[01]] | aix4.[[01]].*)
1727
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1729
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1736
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1737
# soname into executable. Probably we can add versioning support to
1738
# collect2, so additional links can be useful in future.
1739
if test "$aix_use_runtimelinking" = yes; then
1740
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1741
# instead of lib<name>.a to let people know that these are not
1742
# typical AIX shared libraries.
1743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1745
# We preserve .a as extension for shared libraries through AIX4.2
1746
# and later when we are not doing run time linking.
1747
library_names_spec='${libname}${release}.a $libname.a'
1748
soname_spec='${libname}${release}${shared_ext}$major'
1750
shlibpath_var=LIBPATH
1755
library_names_spec='$libname.ixlibrary $libname.a'
1756
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1757
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1761
library_names_spec='${libname}${shared_ext}'
1762
dynamic_linker="$host_os ld.so"
1763
shlibpath_var=LIBRARY_PATH
1769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1770
soname_spec='${libname}${release}${shared_ext}$major'
1771
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1772
shlibpath_var=LD_LIBRARY_PATH
1773
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1774
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1775
# the default ld.so.conf also contains /usr/contrib/lib and
1776
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1777
# libtool to hard-code these into programs
1780
cygwin* | mingw* | pw32*)
1781
version_type=windows
1786
case $GCC,$host_os in
1787
yes,cygwin* | yes,mingw* | yes,pw32*)
1788
library_names_spec='$libname.dll.a'
1789
# DLL is installed to $(libdir)/../bin by postinstall_cmds
1790
postinstall_cmds='base_file=`basename \${file}`~
1791
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1792
dldir=$destdir/`dirname \$dlpath`~
1793
test -d \$dldir || mkdir -p \$dldir~
1794
$install_prog $dir/$dlname \$dldir/$dlname'
1795
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1796
dlpath=$dir/\$dldll~
1798
shlibpath_overrides_runpath=yes
1802
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
1803
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1804
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1807
# MinGW DLLs use traditional 'lib' prefix
1808
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1809
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1810
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1811
# It is most probably a Windows format PATH printed by
1812
# mingw gcc, but we are running on Cygwin. Gcc prints its search
1813
# path with ; separators, and with drive letters. We can handle the
1814
# drive letters (cygwin fileutils understands them), so leave them,
1815
# especially as we might pass files found there to a mingw objdump,
1816
# which wouldn't understand a cygwinified path. Ahh.
1817
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1819
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1823
# pw32 DLLs use 'pw' prefix rather than 'lib'
1824
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1830
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1833
dynamic_linker='Win32 ld.exe'
1834
# FIXME: first we should search . and the directory the executable is in
1838
darwin* | rhapsody*)
1839
dynamic_linker="$host_os dyld"
1843
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1844
soname_spec='${libname}${release}${major}$shared_ext'
1845
shlibpath_overrides_runpath=yes
1846
shlibpath_var=DYLD_LIBRARY_PATH
1847
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1848
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1849
if test "$GCC" = yes; then
1850
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1852
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1854
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1862
soname_spec='${libname}${release}${shared_ext}$major'
1863
shlibpath_var=LD_LIBRARY_PATH
1874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1875
soname_spec='${libname}${release}${shared_ext}$major'
1876
shlibpath_var=LD_LIBRARY_PATH
1877
shlibpath_overrides_runpath=no
1878
hardcode_into_libs=yes
1879
dynamic_linker='GNU ld.so'
1883
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1884
version_type=freebsd-$objformat
1885
case $version_type in
1887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1892
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1896
shlibpath_var=LD_LIBRARY_PATH
1899
shlibpath_overrides_runpath=yes
1901
freebsd3.[01]* | freebsdelf3.[01]*)
1902
shlibpath_overrides_runpath=yes
1903
hardcode_into_libs=yes
1906
shlibpath_overrides_runpath=no
1907
hardcode_into_libs=yes
1916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1917
soname_spec='${libname}${release}${shared_ext}$major'
1918
shlibpath_var=LD_LIBRARY_PATH
1919
hardcode_into_libs=yes
1922
hpux9* | hpux10* | hpux11*)
1923
# Give a soname corresponding to the major version so that dld.sl refuses to
1924
# link against other versions.
1931
hardcode_into_libs=yes
1932
dynamic_linker="$host_os dld.so"
1933
shlibpath_var=LD_LIBRARY_PATH
1934
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1936
soname_spec='${libname}${release}${shared_ext}$major'
1937
if test "X$HPUX_IA64_MODE" = X32; then
1938
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1940
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1942
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1946
hardcode_into_libs=yes
1947
dynamic_linker="$host_os dld.sl"
1948
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1949
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1951
soname_spec='${libname}${release}${shared_ext}$major'
1952
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1953
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1957
dynamic_linker="$host_os dld.sl"
1958
shlibpath_var=SHLIB_PATH
1959
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1961
soname_spec='${libname}${release}${shared_ext}$major'
1964
# HP-UX runs *really* slowly unless shared libraries are mode 555.
1965
postinstall_cmds='chmod 555 $lib'
1968
irix5* | irix6* | nonstopux*)
1970
nonstopux*) version_type=nonstopux ;;
1972
if test "$lt_cv_prog_gnu_ld" = yes; then
1980
soname_spec='${libname}${release}${shared_ext}$major'
1981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1983
irix5* | nonstopux*)
1987
case $LD in # libtool.m4 will add one of these switches to LD
1988
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1989
libsuff= shlibsuff= libmagic=32-bit;;
1990
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1991
libsuff=32 shlibsuff=N32 libmagic=N32;;
1992
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1993
libsuff=64 shlibsuff=64 libmagic=64-bit;;
1994
*) libsuff= shlibsuff= libmagic=never-match;;
1998
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1999
shlibpath_overrides_runpath=no
2000
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2001
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2002
hardcode_into_libs=yes
2005
# No shared lib support for Linux oldld, aout, or coff.
2006
linux*oldld* | linux*aout* | linux*coff*)
2010
# This must be Linux ELF.
2015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2016
soname_spec='${libname}${release}${shared_ext}$major'
2017
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2018
shlibpath_var=LD_LIBRARY_PATH
2019
shlibpath_overrides_runpath=no
2020
# This implies no fast_install, which is unacceptable.
2021
# Some rework will be needed to allow for fast_install
2022
# before this can be enabled.
2023
hardcode_into_libs=yes
2025
# Append ld.so.conf contents to the search path
2026
if test -f /etc/ld.so.conf; then
2027
lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2028
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2031
# We used to test for /lib/ld.so.1 and disable shared libraries on
2032
# powerpc, because MkLinux only supported shared libraries with the
2033
# GNU dynamic linker. Since this was broken with cross compilers,
2034
# most powerpc-linux boxes support dynamic linking these days and
2035
# people can always --disable-shared, the test was removed, and we
2036
# assume the GNU/Linux dynamic linker is in use.
2037
dynamic_linker='GNU/Linux ld.so'
2044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2045
soname_spec='${libname}${release}${shared_ext}$major'
2046
shlibpath_var=LD_LIBRARY_PATH
2047
shlibpath_overrides_runpath=no
2048
hardcode_into_libs=yes
2049
dynamic_linker='NetBSD ld.elf_so'
2056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2057
soname_spec='${libname}${release}${shared_ext}$major'
2058
shlibpath_var=LD_LIBRARY_PATH
2059
shlibpath_overrides_runpath=no
2060
hardcode_into_libs=yes
2061
dynamic_linker='GNU ld.so'
2068
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2070
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2071
dynamic_linker='NetBSD (a.out) ld.so'
2073
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2074
soname_spec='${libname}${release}${shared_ext}$major'
2075
dynamic_linker='NetBSD ld.elf_so'
2077
shlibpath_var=LD_LIBRARY_PATH
2078
shlibpath_overrides_runpath=yes
2079
hardcode_into_libs=yes
2084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2085
shlibpath_var=LD_LIBRARY_PATH
2086
shlibpath_overrides_runpath=yes
2093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2094
soname_spec='${libname}${release}${shared_ext}$major'
2095
shlibpath_var=LD_LIBRARY_PATH
2096
shlibpath_overrides_runpath=yes
2103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2104
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2105
shlibpath_var=LD_LIBRARY_PATH
2106
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2108
openbsd2.[[89]] | openbsd2.[[89]].*)
2109
shlibpath_overrides_runpath=no
2112
shlibpath_overrides_runpath=yes
2116
shlibpath_overrides_runpath=yes
2121
libname_spec='$name'
2124
library_names_spec='$libname${shared_ext} $libname.a'
2125
dynamic_linker='OS/2 ld.exe'
2126
shlibpath_var=LIBPATH
2129
osf3* | osf4* | osf5*)
2133
soname_spec='${libname}${release}${shared_ext}$major'
2134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2135
shlibpath_var=LD_LIBRARY_PATH
2136
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2137
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2142
soname_spec='${libname}${release}${shared_ext}$major'
2143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2144
shlibpath_var=LD_LIBRARY_PATH
2151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2152
soname_spec='${libname}${release}${shared_ext}$major'
2153
shlibpath_var=LD_LIBRARY_PATH
2154
shlibpath_overrides_runpath=yes
2155
hardcode_into_libs=yes
2156
# ldd complains unless libraries are executable
2157
postinstall_cmds='chmod +x $lib'
2162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2163
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2164
shlibpath_var=LD_LIBRARY_PATH
2165
shlibpath_overrides_runpath=yes
2166
if test "$with_gnu_ld" = yes; then
2172
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2175
soname_spec='${libname}${release}${shared_ext}$major'
2176
shlibpath_var=LD_LIBRARY_PATH
2177
case $host_vendor in
2179
shlibpath_overrides_runpath=no
2181
export_dynamic_flag_spec='${wl}-Blargedynsym'
2182
runpath_var=LD_RUN_PATH
2190
shlibpath_overrides_runpath=no
2191
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2197
if test -d /usr/nec ;then
2199
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2200
soname_spec='$libname${shared_ext}.$major'
2201
shlibpath_var=LD_LIBRARY_PATH
2207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2208
soname_spec='${libname}${release}${shared_ext}$major'
2209
shlibpath_var=LD_LIBRARY_PATH
2216
AC_MSG_RESULT([$dynamic_linker])
2217
test "$dynamic_linker" = no && can_build_shared=no
2218
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2223
AC_DEFUN([_LT_AC_TAGCONFIG],
2224
[AC_ARG_WITH([tags],
2225
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2226
[include additional configurations @<:@automatic@:>@])],
2227
[tagnames="$withval"])
2229
if test -f "$ltmain" && test -n "$tagnames"; then
2230
if test ! -f "${ofile}"; then
2231
AC_MSG_WARN([output file `$ofile' does not exist])
2234
if test -z "$LTCC"; then
2235
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2236
if test -z "$LTCC"; then
2237
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2239
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2243
# Extract list of available tagged configurations in $ofile.
2244
# Note that this assumes the entire list is on one line.
2245
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2247
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2248
for tagname in $tagnames; do
2250
# Check whether tagname contains only valid characters
2251
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2253
*) AC_MSG_ERROR([invalid tag name: $tagname])
2257
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2259
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2262
# Update the list of available tags.
2263
if test -n "$tagname"; then
2264
echo appending configuration tag \"$tagname\" to $ofile
2268
if test -n "$CXX" && test "X$CXX" != "Xno"; then
2269
AC_LIBTOOL_LANG_CXX_CONFIG
2276
if test -n "$F77" && test "X$F77" != "Xno"; then
2277
AC_LIBTOOL_LANG_F77_CONFIG
2284
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2285
AC_LIBTOOL_LANG_GCJ_CONFIG
2292
AC_LIBTOOL_LANG_RC_CONFIG
2296
AC_MSG_ERROR([Unsupported tag name: $tagname])
2300
# Append the new tag name to the list of available tags.
2301
if test -n "$tagname" ; then
2302
available_tags="$available_tags $tagname"
2308
# Now substitute the updated list of available tags.
2309
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2310
mv "${ofile}T" "$ofile"
2314
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2317
])# _LT_AC_TAGCONFIG
2322
# enable checks for dlopen support
2323
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2324
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2325
])# AC_LIBTOOL_DLOPEN
2328
# AC_LIBTOOL_WIN32_DLL
2329
# --------------------
2330
# declare package support for building win32 dll's
2331
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2332
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2333
])# AC_LIBTOOL_WIN32_DLL
2336
# AC_ENABLE_SHARED([DEFAULT])
2337
# ---------------------------
2338
# implement the --enable-shared flag
2339
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2340
AC_DEFUN([AC_ENABLE_SHARED],
2341
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2342
AC_ARG_ENABLE([shared],
2343
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2344
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2345
[p=${PACKAGE-default}
2347
yes) enable_shared=yes ;;
2348
no) enable_shared=no ;;
2351
# Look at the argument we got. We use all the common list separators.
2352
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2353
for pkg in $enableval; do
2355
if test "X$pkg" = "X$p"; then
2362
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2363
])# AC_ENABLE_SHARED
2368
#- set the default shared flag to --disable-shared
2369
AC_DEFUN([AC_DISABLE_SHARED],
2370
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2371
AC_ENABLE_SHARED(no)
2372
])# AC_DISABLE_SHARED
2375
# AC_ENABLE_STATIC([DEFAULT])
2376
# ---------------------------
2377
# implement the --enable-static flag
2378
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2379
AC_DEFUN([AC_ENABLE_STATIC],
2380
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2381
AC_ARG_ENABLE([static],
2382
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2383
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2384
[p=${PACKAGE-default}
2386
yes) enable_static=yes ;;
2387
no) enable_static=no ;;
2390
# Look at the argument we got. We use all the common list separators.
2391
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2392
for pkg in $enableval; do
2394
if test "X$pkg" = "X$p"; then
2401
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2402
])# AC_ENABLE_STATIC
2407
# set the default static flag to --disable-static
2408
AC_DEFUN([AC_DISABLE_STATIC],
2409
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2410
AC_ENABLE_STATIC(no)
2411
])# AC_DISABLE_STATIC
2414
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2415
# ---------------------------------
2416
# implement the --enable-fast-install flag
2417
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2418
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2419
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2420
AC_ARG_ENABLE([fast-install],
2421
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2422
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2423
[p=${PACKAGE-default}
2425
yes) enable_fast_install=yes ;;
2426
no) enable_fast_install=no ;;
2428
enable_fast_install=no
2429
# Look at the argument we got. We use all the common list separators.
2430
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2431
for pkg in $enableval; do
2433
if test "X$pkg" = "X$p"; then
2434
enable_fast_install=yes
2440
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2441
])# AC_ENABLE_FAST_INSTALL
2444
# AC_DISABLE_FAST_INSTALL
2445
# -----------------------
2446
# set the default to --disable-fast-install
2447
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2448
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2449
AC_ENABLE_FAST_INSTALL(no)
2450
])# AC_DISABLE_FAST_INSTALL
2453
# AC_LIBTOOL_PICMODE([MODE])
2454
# --------------------------
2455
# implement the --with-pic flag
2456
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2457
AC_DEFUN([AC_LIBTOOL_PICMODE],
2458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2459
pic_mode=ifelse($#,1,$1,default)
2460
])# AC_LIBTOOL_PICMODE
2465
# This is predefined starting with Autoconf 2.54, so this conditional
2466
# definition can be removed once we require Autoconf 2.54 or later.
2467
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2468
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2469
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2470
then ac_cv_prog_egrep='grep -E'
2471
else ac_cv_prog_egrep='egrep'
2473
EGREP=$ac_cv_prog_egrep
2478
# AC_PATH_TOOL_PREFIX
2479
# -------------------
2480
# find a file program which can recognise shared library
2481
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2482
[AC_REQUIRE([AC_PROG_EGREP])dnl
2483
AC_MSG_CHECKING([for $1])
2484
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2486
[[\\/*] | ?:[\\/]*])
2487
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2490
lt_save_MAGIC_CMD="$MAGIC_CMD"
2491
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2492
dnl $ac_dummy forces splitting on constant user-supplied paths.
2493
dnl POSIX.2 word splitting is done only on the output of word expansions,
2494
dnl not every word. This closes a longstanding sh security hole.
2495
ac_dummy="ifelse([$2], , $PATH, [$2])"
2496
for ac_dir in $ac_dummy; do
2498
test -z "$ac_dir" && ac_dir=.
2499
if test -f $ac_dir/$1; then
2500
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2501
if test -n "$file_magic_test_file"; then
2502
case $deplibs_check_method in
2504
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2505
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2506
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2507
$EGREP "$file_magic_regex" > /dev/null; then
2512
*** Warning: the command libtool uses to detect shared libraries,
2513
*** $file_magic_cmd, produces output that libtool cannot recognize.
2514
*** The result is that libtool may fail to recognize shared libraries
2515
*** as such. This will affect the creation of libtool libraries that
2516
*** depend on shared libraries, but programs linked with such libtool
2517
*** libraries will work regardless of this problem. Nevertheless, you
2518
*** may want to report the problem to your system manager and/or to
2519
*** bug-libtool@gnu.org
2529
MAGIC_CMD="$lt_save_MAGIC_CMD"
2532
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2533
if test -n "$MAGIC_CMD"; then
2534
AC_MSG_RESULT($MAGIC_CMD)
2538
])# AC_PATH_TOOL_PREFIX
2543
# find a file program which can recognise a shared library
2544
AC_DEFUN([AC_PATH_MAGIC],
2545
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2546
if test -z "$lt_cv_path_MAGIC_CMD"; then
2547
if test -n "$ac_tool_prefix"; then
2548
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2558
# find the pathname to the GNU or non-GNU linker
2559
AC_DEFUN([AC_PROG_LD],
2560
[AC_ARG_WITH([gnu-ld],
2561
[AC_HELP_STRING([--with-gnu-ld],
2562
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2563
[test "$withval" = no || with_gnu_ld=yes],
2565
AC_REQUIRE([LT_AC_PROG_SED])dnl
2566
AC_REQUIRE([AC_PROG_CC])dnl
2567
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2568
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2570
if test "$GCC" = yes; then
2571
# Check if gcc -print-prog-name=ld gives a path.
2572
AC_MSG_CHECKING([for ld used by $CC])
2575
# gcc leaves a trailing carriage return which upsets mingw
2576
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2578
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2581
# Accept absolute paths.
2582
[[\\/]]* | ?:[[\\/]]*)
2583
re_direlt='/[[^/]][[^/]]*/\.\./'
2584
# Canonicalize the pathname of ld
2585
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2586
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2587
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2589
test -z "$LD" && LD="$ac_prog"
2592
# If it fails, then pretend we aren't using GCC.
2596
# If it is relative, then search for the first ld in PATH.
2600
elif test "$with_gnu_ld" = yes; then
2601
AC_MSG_CHECKING([for GNU ld])
2603
AC_MSG_CHECKING([for non-GNU ld])
2605
AC_CACHE_VAL(lt_cv_path_LD,
2606
[if test -z "$LD"; then
2607
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2608
for ac_dir in $PATH; do
2610
test -z "$ac_dir" && ac_dir=.
2611
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2612
lt_cv_path_LD="$ac_dir/$ac_prog"
2613
# Check to see if the program is GNU ld. I'd rather use --version,
2614
# but apparently some GNU ld's only accept -v.
2615
# Break only if it was the GNU/non-GNU ld that we prefer.
2616
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2617
*GNU* | *'with BFD'*)
2618
test "$with_gnu_ld" != no && break
2621
test "$with_gnu_ld" != yes && break
2628
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2631
if test -n "$LD"; then
2636
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2643
AC_DEFUN([AC_PROG_LD_GNU],
2644
[AC_REQUIRE([AC_PROG_EGREP])dnl
2645
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2646
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2647
case `$LD -v 2>&1 </dev/null` in
2648
*GNU* | *'with BFD'*)
2649
lt_cv_prog_gnu_ld=yes
2652
lt_cv_prog_gnu_ld=no
2655
with_gnu_ld=$lt_cv_prog_gnu_ld
2659
# AC_PROG_LD_RELOAD_FLAG
2660
# ----------------------
2661
# find reload flag for linker
2662
# -- PORTME Some linkers may need a different reload flag.
2663
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2664
[AC_CACHE_CHECK([for $LD option to reload object files],
2665
lt_cv_ld_reload_flag,
2666
[lt_cv_ld_reload_flag='-r'])
2667
reload_flag=$lt_cv_ld_reload_flag
2668
case $reload_flag in
2670
*) reload_flag=" $reload_flag" ;;
2672
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2673
])# AC_PROG_LD_RELOAD_FLAG
2676
# AC_DEPLIBS_CHECK_METHOD
2677
# -----------------------
2678
# how to check for library dependencies
2679
# -- PORTME fill in with the dynamic library characteristics
2680
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2681
[AC_CACHE_CHECK([how to recognise dependent libraries],
2682
lt_cv_deplibs_check_method,
2683
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2684
lt_cv_file_magic_test_file=
2685
lt_cv_deplibs_check_method='unknown'
2686
# Need to set the preceding variable on all platforms that support
2687
# interlibrary dependencies.
2688
# 'none' -- dependencies not supported.
2689
# `unknown' -- same as none, but documents that we really don't know.
2690
# 'pass_all' -- all dependencies passed with no checks.
2691
# 'test_compile' -- check by making test program.
2692
# 'file_magic [[regex]]' -- check by looking for files in library path
2693
# which responds to the $file_magic_cmd with a given extended regex.
2694
# If you have `file' or equivalent on your system and you're not sure
2695
# whether `pass_all' will *always* work, you probably want this one.
2699
lt_cv_deplibs_check_method=pass_all
2703
lt_cv_deplibs_check_method=pass_all
2707
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2708
lt_cv_file_magic_cmd='/usr/bin/file -L'
2709
lt_cv_file_magic_test_file=/shlib/libc.so
2713
# func_win32_libid is a shell function defined in ltmain.sh
2714
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2715
lt_cv_file_magic_cmd='func_win32_libid'
2719
# Base MSYS/MinGW do not provide the 'file' command needed by
2720
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2721
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2722
lt_cv_file_magic_cmd='$OBJDUMP -f'
2725
darwin* | rhapsody*)
2726
lt_cv_deplibs_check_method=pass_all
2729
freebsd* | kfreebsd*-gnu)
2730
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2733
# Not sure whether the presence of OpenBSD here was a mistake.
2734
# Let's accept both of them until this is cleared up.
2735
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2736
lt_cv_file_magic_cmd=/usr/bin/file
2737
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2741
lt_cv_deplibs_check_method=pass_all
2746
lt_cv_deplibs_check_method=pass_all
2749
hpux10.20* | hpux11*)
2750
lt_cv_file_magic_cmd=/usr/bin/file
2753
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2754
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2757
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
2758
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2761
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2762
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2767
irix5* | irix6* | nonstopux*)
2769
*-32|*"-32 ") libmagic=32-bit;;
2770
*-n32|*"-n32 ") libmagic=N32;;
2771
*-64|*"-64 ") libmagic=64-bit;;
2772
*) libmagic=never-match;;
2774
lt_cv_deplibs_check_method=pass_all
2777
# This must be Linux ELF.
2779
lt_cv_deplibs_check_method=pass_all
2782
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2783
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2784
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2786
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2791
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2792
lt_cv_file_magic_cmd=/usr/bin/file
2793
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2797
lt_cv_deplibs_check_method=unknown
2801
lt_cv_file_magic_cmd=/usr/bin/file
2802
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2803
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2804
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
2806
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2810
osf3* | osf4* | osf5*)
2811
lt_cv_deplibs_check_method=pass_all
2815
lt_cv_deplibs_check_method=pass_all
2819
lt_cv_deplibs_check_method=pass_all
2822
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2823
case $host_vendor in
2825
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2826
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2829
lt_cv_deplibs_check_method=pass_all
2832
lt_cv_file_magic_cmd='/bin/file'
2833
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2836
lt_cv_file_magic_cmd='/bin/file'
2837
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2838
lt_cv_file_magic_test_file=/lib/libc.so
2841
lt_cv_deplibs_check_method=pass_all
2846
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2847
lt_cv_deplibs_check_method=pass_all
2851
file_magic_cmd=$lt_cv_file_magic_cmd
2852
deplibs_check_method=$lt_cv_deplibs_check_method
2853
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2854
])# AC_DEPLIBS_CHECK_METHOD
2859
# find the pathname to a BSD-compatible name lister
2860
AC_DEFUN([AC_PROG_NM],
2861
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2862
[if test -n "$NM"; then
2863
# Let the user override the test.
2866
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2867
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2869
test -z "$ac_dir" && ac_dir=.
2870
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2871
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2872
# Check to see if the nm accepts a BSD-compat flag.
2873
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2874
# nm: unknown option "B" ignored
2875
# Tru64's nm complains that /dev/null is an invalid object file
2876
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2877
*/dev/null* | *'Invalid file or object type'*)
2878
lt_cv_path_NM="$tmp_nm -B"
2882
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2884
lt_cv_path_NM="$tmp_nm -p"
2888
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2889
continue # so that we can try to find one that supports BSD flags
2896
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2904
# check for math library
2905
AC_DEFUN([AC_CHECK_LIBM],
2906
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2909
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2910
# These system don't have libm, or don't need it
2913
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2914
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2917
AC_CHECK_LIB(m, cos, LIBM="-lm")
2923
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2924
# -----------------------------------
2925
# sets LIBLTDL to the link flags for the libltdl convenience library and
2926
# LTDLINCL to the include flags for the libltdl header and adds
2927
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2928
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2929
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2930
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2931
# '${top_srcdir}/' (note the single quotes!). If your package is not
2932
# flat and you're not using automake, define top_builddir and
2933
# top_srcdir appropriately in the Makefiles.
2934
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2935
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2936
case $enable_ltdl_convenience in
2937
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2938
"") enable_ltdl_convenience=yes
2939
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2941
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2942
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2943
# For backwards non-gettext consistent compatibility...
2945
])# AC_LIBLTDL_CONVENIENCE
2948
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2949
# -----------------------------------
2950
# sets LIBLTDL to the link flags for the libltdl installable library and
2951
# LTDLINCL to the include flags for the libltdl header and adds
2952
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2953
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2954
# DIRECTORY is not provided and an installed libltdl is not found, it is
2955
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2956
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2957
# quotes!). If your package is not flat and you're not using automake,
2958
# define top_builddir and top_srcdir appropriately in the Makefiles.
2959
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2960
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2961
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2962
AC_CHECK_LIB(ltdl, lt_dlinit,
2963
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2964
[if test x"$enable_ltdl_install" = xno; then
2965
AC_MSG_WARN([libltdl not installed, but installation disabled])
2967
enable_ltdl_install=yes
2970
if test x"$enable_ltdl_install" = x"yes"; then
2971
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2972
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2973
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2975
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2979
# For backwards non-gettext consistent compatibility...
2981
])# AC_LIBLTDL_INSTALLABLE
2986
# enable support for C++ libraries
2987
AC_DEFUN([AC_LIBTOOL_CXX],
2988
[AC_REQUIRE([_LT_AC_LANG_CXX])
2994
AC_DEFUN([_LT_AC_LANG_CXX],
2995
[AC_REQUIRE([AC_PROG_CXX])
2996
AC_REQUIRE([AC_PROG_CXXCPP])
2997
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3003
# enable support for Fortran 77 libraries
3004
AC_DEFUN([AC_LIBTOOL_F77],
3005
[AC_REQUIRE([_LT_AC_LANG_F77])
3011
AC_DEFUN([_LT_AC_LANG_F77],
3012
[AC_REQUIRE([AC_PROG_F77])
3013
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3019
# enable support for GCJ libraries
3020
AC_DEFUN([AC_LIBTOOL_GCJ],
3021
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3027
AC_DEFUN([_LT_AC_LANG_GCJ],
3028
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3029
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3030
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3031
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3032
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3033
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3034
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3040
# enable support for Windows resource files
3041
AC_DEFUN([AC_LIBTOOL_RC],
3042
[AC_REQUIRE([LT_AC_PROG_RC])
3043
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3047
# AC_LIBTOOL_LANG_C_CONFIG
3048
# ------------------------
3049
# Ensure that the configuration vars for the C compiler are
3050
# suitably defined. Those variables are subsequently used by
3051
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3052
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3053
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3057
# Source file extension for C test sources.
3060
# Object file extension for compiled C test sources.
3062
_LT_AC_TAGVAR(objext, $1)=$objext
3064
# Code to be used in simple compile tests
3065
lt_simple_compile_test_code="int some_variable = 0;\n"
3067
# Code to be used in simple link tests
3068
lt_simple_link_test_code='int main(){return(0);}\n'
3073
# Check for any special shared library compilation flags.
3075
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3076
if test "$GCC" = no; then
3079
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3083
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3084
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3085
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3087
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3088
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3094
# Check to make sure the static flag actually works.
3096
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3097
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3098
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3100
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3103
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3104
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3105
AC_LIBTOOL_PROG_CC_C_O($1)
3106
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3107
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3108
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3109
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3110
AC_LIBTOOL_SYS_LIB_STRIP
3111
AC_LIBTOOL_DLOPEN_SELF($1)
3113
# Report which librarie types wil actually be built
3114
AC_MSG_CHECKING([if libtool supports shared libraries])
3115
AC_MSG_RESULT([$can_build_shared])
3117
AC_MSG_CHECKING([whether to build shared libraries])
3118
test "$can_build_shared" = "no" && enable_shared=no
3120
# On AIX, shared libraries and static libraries use the same namespace, and
3121
# are all built from PIC.
3124
test "$enable_shared" = yes && enable_static=no
3125
if test -n "$RANLIB"; then
3126
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3127
postinstall_cmds='$RANLIB $lib'
3132
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3133
test "$enable_shared" = yes && enable_static=no
3136
darwin* | rhapsody*)
3137
if test "$GCC" = yes; then
3138
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
rhapsody* | darwin1.[[012]])
3141
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3144
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3145
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3147
case ${MACOSX_DEPLOYMENT_TARGET} in
3149
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3152
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3158
output_verbose_link_cmd='echo'
3159
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3160
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3161
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3162
_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}'
3163
_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}'
3164
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3165
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3166
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3167
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3168
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3170
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3174
AC_MSG_RESULT([$enable_shared])
3176
AC_MSG_CHECKING([whether to build static libraries])
3177
# Make sure either enable_shared or enable_static is yes.
3178
test "$enable_shared" = yes || enable_static=yes
3179
AC_MSG_RESULT([$enable_static])
3181
AC_LIBTOOL_CONFIG($1)
3185
])# AC_LIBTOOL_LANG_C_CONFIG
3188
# AC_LIBTOOL_LANG_CXX_CONFIG
3189
# --------------------------
3190
# Ensure that the configuration vars for the C compiler are
3191
# suitably defined. Those variables are subsequently used by
3192
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3193
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3194
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3196
AC_REQUIRE([AC_PROG_CXX])
3197
AC_REQUIRE([AC_PROG_CXXCPP])
3199
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3200
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3201
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3202
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3203
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3204
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3205
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3206
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3207
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3208
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3209
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3210
_LT_AC_TAGVAR(module_cmds, $1)=
3211
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3212
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3213
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3214
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3215
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3216
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3218
# Dependencies to place before and after the object being linked:
3219
_LT_AC_TAGVAR(predep_objects, $1)=
3220
_LT_AC_TAGVAR(postdep_objects, $1)=
3221
_LT_AC_TAGVAR(predeps, $1)=
3222
_LT_AC_TAGVAR(postdeps, $1)=
3223
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3225
# Source file extension for C++ test sources.
3228
# Object file extension for compiled C++ test sources.
3230
_LT_AC_TAGVAR(objext, $1)=$objext
3232
# Code to be used in simple compile tests
3233
lt_simple_compile_test_code="int some_variable = 0;\n"
3235
# Code to be used in simple link tests
3236
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3238
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3241
# Allow CC to be a program name with arguments.
3246
lt_save_with_gnu_ld=$with_gnu_ld
3247
lt_save_path_LD=$lt_cv_path_LD
3248
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3249
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3251
unset lt_cv_prog_gnu_ld
3253
if test -n "${lt_cv_path_LDCXX+set}"; then
3254
lt_cv_path_LD=$lt_cv_path_LDCXX
3258
test -z "${LDCXX+set}" || LD=$LDCXX
3261
_LT_AC_TAGVAR(compiler, $1)=$CC
3262
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3264
# We don't want -fno-exception wen compiling C++ code, so set the
3265
# no_builtin_flag separately
3266
if test "$GXX" = yes; then
3267
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3269
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3272
if test "$GXX" = yes; then
3273
# Set up default GNU C++ configuration
3277
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3278
# archiving commands below assume that GNU ld is being used.
3279
if test "$with_gnu_ld" = yes; then
3280
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3281
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3283
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3284
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3286
# If archive_cmds runs LD, not CC, wlarc should be empty
3287
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3288
# investigate it a little bit more. (MM)
3291
# ancient GNU ld didn't support --whole-archive et. al.
3292
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3293
grep 'no-whole-archive' > /dev/null; then
3294
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3296
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3302
# A generic and very simple default shared library creation
3303
# command for GNU C++ for the case where it uses the native
3304
# linker, instead of GNU ld. If possible, this setting should
3305
# overridden to take advantage of the native linker features on
3306
# the platform it is being used on.
3307
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3310
# Commands to make compiler produce verbose output that lists
3311
# what "hidden" libraries, object files and flags are used when
3312
# linking a shared library.
3313
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3321
# PORTME: fill in a description of your system's C++ link characteristics
3322
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3323
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3326
# FIXME: insert proper C++ library support
3327
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3330
if test "$host_cpu" = ia64; then
3331
# On IA64, the linker does run time linking by default, so we don't
3332
# have to do anything special.
3333
aix_use_runtimelinking=no
3334
exp_sym_flag='-Bexport'
3337
aix_use_runtimelinking=no
3339
# Test if we are trying to use run time linking or normal
3340
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3341
# need to do runtime linking.
3342
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3343
for ld_flag in $LDFLAGS; do
3346
aix_use_runtimelinking=yes
3353
exp_sym_flag='-bexport'
3354
no_entry_flag='-bnoentry'
3357
# When large executables or shared objects are built, AIX ld can
3358
# have problems creating the table of contents. If linking a library
3359
# or program results in "error TOC overflow" add -mminimal-toc to
3360
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3361
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3363
_LT_AC_TAGVAR(archive_cmds, $1)=''
3364
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3365
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3366
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3368
if test "$GXX" = yes; then
3369
case $host_os in aix4.[012]|aix4.[012].*)
3370
# We only want to do this on AIX 4.2 and lower, the check
3371
# below for broken collect2 doesn't work under 4.3+
3372
collect2name=`${CC} -print-prog-name=collect2`
3373
if test -f "$collect2name" && \
3374
strings "$collect2name" | grep resolve_lib_name >/dev/null
3376
# We have reworked collect2
3377
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3379
# We have old collect2
3380
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3381
# It fails to find uninstalled libraries when the uninstalled
3382
# path is not listed in the libpath. Setting hardcode_minus_L
3383
# to unsupported forces relinking
3384
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3385
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3386
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3389
shared_flag='-shared'
3392
if test "$host_cpu" = ia64; then
3393
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3394
# chokes on -Wl,-G. The following line is correct:
3397
if test "$aix_use_runtimelinking" = yes; then
3398
shared_flag='${wl}-G'
3400
shared_flag='${wl}-bM:SRE'
3405
# It seems that -bexpall does not export symbols beginning with
3406
# underscore (_), so it is better to generate a list of symbols to export.
3407
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3408
if test "$aix_use_runtimelinking" = yes; then
3409
# Warning - without using the other runtime loading flags (-brtl),
3410
# -berok will link without error, but may produce a broken library.
3411
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3412
# Determine the default libpath from the value encoded in an empty executable.
3413
_LT_AC_SYS_LIBPATH_AIX
3414
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3416
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3418
if test "$host_cpu" = ia64; then
3419
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3420
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3421
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3423
# Determine the default libpath from the value encoded in an empty executable.
3424
_LT_AC_SYS_LIBPATH_AIX
3425
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3426
# Warning - without using the other run time loading flags,
3427
# -berok will link without error, but may produce a broken library.
3428
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3429
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3430
# -bexpall does not export symbols beginning with underscore (_)
3431
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3432
# Exported symbols can be pulled into shared objects from archives
3433
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3434
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3435
# This is similar to how AIX traditionally builds it's shared libraries.
3436
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3441
case $cc_basename in
3443
# FIXME: insert proper C++ library support
3444
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3449
cygwin* | mingw* | pw32*)
3450
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3451
# as there is no search path for DLLs.
3452
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3453
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3454
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3455
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3457
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3458
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3459
# If the export-symbols file already is a .def file (1st line
3460
# is EXPORTS), use it as is; otherwise, prepend...
3461
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3462
cp $export_symbols $output_objdir/$soname.def;
3464
echo EXPORTS > $output_objdir/$soname.def;
3465
cat $export_symbols >> $output_objdir/$soname.def;
3467
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3469
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3473
darwin* | rhapsody*)
3474
if test "$GXX" = yes; then
3475
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3477
rhapsody* | darwin1.[[012]])
3478
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3481
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3482
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3484
case ${MACOSX_DEPLOYMENT_TARGET} in
3486
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3489
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3495
lt_int_apple_cc_single_mod=no
3496
output_verbose_link_cmd='echo'
3497
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3498
lt_int_apple_cc_single_mod=yes
3500
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3503
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
3505
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3507
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3508
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3509
_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}'
3511
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
3513
_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}'
3514
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3515
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3516
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3517
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3518
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3520
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3525
case $cc_basename in
3527
# FIXME: insert proper C++ library support
3528
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3531
# Green Hills C++ Compiler
3532
# FIXME: insert proper C++ library support
3533
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3536
# FIXME: insert proper C++ library support
3537
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3542
# C++ shared libraries reported to be fairly broken before switch to ELF
3543
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3546
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3548
freebsd* | kfreebsd*-gnu)
3549
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3551
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3556
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3557
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3558
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3559
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3560
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3561
# but as the default
3562
# location of the library.
3564
case $cc_basename in
3566
# FIXME: insert proper C++ library support
3567
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3570
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3571
# Commands to make compiler produce verbose output that lists
3572
# what "hidden" libraries, object files and flags are used when
3573
# linking a shared library.
3575
# There doesn't appear to be a way to prevent this compiler from
3576
# explicitly linking system object files so we need to strip them
3577
# from the output so that they don't get included in the library
3579
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3582
if test "$GXX" = yes; then
3583
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3585
# FIXME: insert proper C++ library support
3586
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3592
if test $with_gnu_ld = no; then
3595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3596
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3597
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3600
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3603
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3604
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3605
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3611
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3612
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3615
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3616
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3617
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3618
# but as the default
3619
# location of the library.
3622
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3623
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3624
# but as the default
3625
# location of the library.
3629
case $cc_basename in
3631
# FIXME: insert proper C++ library support
3632
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3637
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3640
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3643
# Commands to make compiler produce verbose output that lists
3644
# what "hidden" libraries, object files and flags are used when
3645
# linking a shared library.
3647
# There doesn't appear to be a way to prevent this compiler from
3648
# explicitly linking system object files so we need to strip them
3649
# from the output so that they don't get included in the library
3651
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3654
if test "$GXX" = yes; then
3655
if test $with_gnu_ld = no; then
3658
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3661
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3666
# FIXME: insert proper C++ library support
3667
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3673
case $cc_basename in
3676
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3678
# Archives containing C++ object files must be created using
3679
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3680
# necessary to make sure instantiated templates are included
3682
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3685
if test "$GXX" = yes; then
3686
if test "$with_gnu_ld" = no; then
3687
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3689
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3692
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3695
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3696
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3699
case $cc_basename in
3701
# Kuck and Associates, Inc. (KAI) C++ Compiler
3703
# KCC will only create a shared library if the output file
3704
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3705
# to its proper name (with version) after linking.
3706
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3707
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3708
# Commands to make compiler produce verbose output that lists
3709
# what "hidden" libraries, object files and flags are used when
3710
# linking a shared library.
3712
# There doesn't appear to be a way to prevent this compiler from
3713
# explicitly linking system object files so we need to strip them
3714
# from the output so that they don't get included in the library
3716
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3718
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3719
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3721
# Archives containing C++ object files must be created using
3722
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3723
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3728
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3729
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3730
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3731
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3732
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3733
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3737
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3738
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3740
runpath_var=LD_RUN_PATH
3741
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3742
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3744
# Commands to make compiler produce verbose output that lists
3745
# what "hidden" libraries, object files and flags are used when
3746
# linking a shared library.
3748
# There doesn't appear to be a way to prevent this compiler from
3749
# explicitly linking system object files so we need to strip them
3750
# from the output so that they don't get included in the library
3752
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'
3757
# FIXME: insert proper C++ library support
3758
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3761
# FIXME: insert proper C++ library support
3762
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3765
case $cc_basename in
3767
# FIXME: insert proper C++ library support
3768
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3771
# FIXME: insert proper C++ library support
3772
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3776
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3777
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3778
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3780
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3781
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3782
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3784
# Workaround some broken pre-1.5 toolchains
3785
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3788
case $cc_basename in
3790
# Kuck and Associates, Inc. (KAI) C++ Compiler
3792
# KCC will only create a shared library if the output file
3793
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3794
# to its proper name (with version) after linking.
3795
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3797
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3798
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3800
# Archives containing C++ object files must be created using
3801
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3802
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3806
# Rational C++ 2.4.1
3807
# FIXME: insert proper C++ library support
3808
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3811
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3812
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3817
# Commands to make compiler produce verbose output that lists
3818
# what "hidden" libraries, object files and flags are used when
3819
# linking a shared library.
3821
# There doesn't appear to be a way to prevent this compiler from
3822
# explicitly linking system object files so we need to strip them
3823
# from the output so that they don't get included in the library
3825
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
3828
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3829
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3830
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3832
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3833
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3835
# Commands to make compiler produce verbose output that lists
3836
# what "hidden" libraries, object files and flags are used when
3837
# linking a shared library.
3838
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3841
# FIXME: insert proper C++ library support
3842
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3848
case $cc_basename in
3850
# Kuck and Associates, Inc. (KAI) C++ Compiler
3852
# KCC will only create a shared library if the output file
3853
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3854
# to its proper name (with version) after linking.
3855
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3857
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3858
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3860
# Archives containing C++ object files must be created using
3861
# the KAI C++ compiler.
3862
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3865
# Rational C++ 2.4.1
3866
# FIXME: insert proper C++ library support
3867
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3870
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3871
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3872
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3873
echo "-hidden">> $lib.exp~
3874
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
3877
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3878
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3880
# Commands to make compiler produce verbose output that lists
3881
# what "hidden" libraries, object files and flags are used when
3882
# linking a shared library.
3884
# There doesn't appear to be a way to prevent this compiler from
3885
# explicitly linking system object files so we need to strip them
3886
# from the output so that they don't get included in the library
3888
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
3891
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3892
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3893
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3895
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3896
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3898
# Commands to make compiler produce verbose output that lists
3899
# what "hidden" libraries, object files and flags are used when
3900
# linking a shared library.
3901
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3904
# FIXME: insert proper C++ library support
3905
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3911
# FIXME: insert proper C++ library support
3912
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3915
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3916
case $cc_basename in
3918
# FIXME: insert proper C++ library support
3919
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3922
# FIXME: insert proper C++ library support
3923
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3928
case $cc_basename in
3931
# FIXME: insert proper C++ library support
3932
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3936
# FIXME: insert proper C++ library support
3937
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3940
# FIXME: insert proper C++ library support
3941
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3946
case $cc_basename in
3948
# Sun C++ 4.2, 5.x and Centerline C++
3949
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3951
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3952
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3954
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3955
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3957
solaris2.[0-5] | solaris2.[0-5].*) ;;
3959
# The C++ compiler is used as linker so we must use $wl
3960
# flag to pass the commands to the underlying system
3962
# Supported since Solaris 2.6 (maybe 2.5.1?)
3963
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3966
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3968
# Commands to make compiler produce verbose output that lists
3969
# what "hidden" libraries, object files and flags are used when
3970
# linking a shared library.
3972
# There doesn't appear to be a way to prevent this compiler from
3973
# explicitly linking system object files so we need to strip them
3974
# from the output so that they don't get included in the library
3976
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3978
# Archives containing C++ object files must be created using
3979
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3980
# necessary to make sure instantiated templates are included
3982
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3985
# Green Hills C++ Compiler
3986
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3988
# The C++ compiler must be used to create the archive.
3989
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3992
# GNU C++ compiler with Solaris linker
3993
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3994
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3995
if $CC --version | grep -v '^2\.7' > /dev/null; then
3996
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3997
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3998
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4000
# Commands to make compiler produce verbose output that lists
4001
# what "hidden" libraries, object files and flags are used when
4002
# linking a shared library.
4003
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4005
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4007
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4008
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4009
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4011
# Commands to make compiler produce verbose output that lists
4012
# what "hidden" libraries, object files and flags are used when
4013
# linking a shared library.
4014
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4022
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4023
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4026
case $cc_basename in
4028
# NonStop-UX NCC 3.20
4029
# FIXME: insert proper C++ library support
4030
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4033
# FIXME: insert proper C++ library support
4034
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4039
# FIXME: insert proper C++ library support
4040
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4043
# FIXME: insert proper C++ library support
4044
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4047
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4048
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4050
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4051
_LT_AC_TAGVAR(LD, $1)="$LD"
4053
AC_LIBTOOL_POSTDEP_PREDEP($1)
4054
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4055
AC_LIBTOOL_PROG_CC_C_O($1)
4056
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4057
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4058
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4059
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4060
AC_LIBTOOL_SYS_LIB_STRIP
4061
AC_LIBTOOL_DLOPEN_SELF($1)
4063
AC_LIBTOOL_CONFIG($1)
4070
with_gnu_ldcxx=$with_gnu_ld
4071
with_gnu_ld=$lt_save_with_gnu_ld
4072
lt_cv_path_LDCXX=$lt_cv_path_LD
4073
lt_cv_path_LD=$lt_save_path_LD
4074
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4075
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4076
])# AC_LIBTOOL_LANG_CXX_CONFIG
4078
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4079
# ------------------------
4080
# Figure out "hidden" library dependencies from verbose
4081
# compiler output when linking a shared library.
4082
# Parse the compiler output and extract the necessary
4083
# objects, libraries and library flags.
4084
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4085
dnl we can't use the lt_simple_compile_test_code here,
4086
dnl because it contains code intended for an executable,
4087
dnl not a library. It's possible we should let each
4088
dnl tag define a new lt_????_link_test_code variable,
4089
dnl but it's only used here...
4090
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4092
void foo (void) { a = 0; }
4094
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4098
Foo (void) { a = 0; }
4103
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4111
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4114
public void bar (void) {
4120
dnl Parse the compiler output and extract the necessary
4121
dnl objects, libraries and library flags.
4122
if AC_TRY_EVAL(ac_compile); then
4123
# Parse the compiler output and extract the necessary
4124
# objects, libraries and library flags.
4126
# Sentinel used to keep track of whether or not we are before
4127
# the conftest object file.
4128
pre_test_object_deps_done=no
4130
# The `*' in the case matches for architectures that use `case' in
4131
# $output_verbose_cmd can trigger glob expansion during the loop
4132
# eval without this substitution.
4133
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4135
for p in `eval $output_verbose_link_cmd`; do
4139
# Some compilers place space between "-{L,R}" and the path.
4142
|| test $p = "-R"; then
4149
if test "$pre_test_object_deps_done" = no; then
4152
# Internal compiler library paths should come after those
4153
# provided the user. The postdeps already come after the
4154
# user supplied libs so there is no need to process them.
4155
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4156
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4158
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4161
# The "-l" case would never come before the object being
4162
# linked, so don't bother handling this case.
4165
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4166
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4168
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4174
# This assumes that the test object file only shows up
4175
# once in the compiler output.
4176
if test "$p" = "conftest.$objext"; then
4177
pre_test_object_deps_done=yes
4181
if test "$pre_test_object_deps_done" = no; then
4182
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4183
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4185
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4188
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4189
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4191
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4196
*) ;; # Ignore the rest.
4204
echo "libtool.m4: error: problem compiling $1 test program"
4207
$rm -f confest.$objext
4209
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4210
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4212
])# AC_LIBTOOL_POSTDEP_PREDEP
4214
# AC_LIBTOOL_LANG_F77_CONFIG
4215
# ------------------------
4216
# Ensure that the configuration vars for the C compiler are
4217
# suitably defined. Those variables are subsequently used by
4218
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4219
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4220
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4221
[AC_REQUIRE([AC_PROG_F77])
4222
AC_LANG_PUSH(Fortran 77)
4224
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4225
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4226
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4227
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4228
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4229
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4230
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4231
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4232
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4233
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4234
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4235
_LT_AC_TAGVAR(module_cmds, $1)=
4236
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4237
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4238
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4239
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4240
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4241
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4243
# Source file extension for f77 test sources.
4246
# Object file extension for compiled f77 test sources.
4248
_LT_AC_TAGVAR(objext, $1)=$objext
4250
# Code to be used in simple compile tests
4251
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4253
# Code to be used in simple link tests
4254
lt_simple_link_test_code=" program t\n end\n"
4256
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4259
# Allow CC to be a program name with arguments.
4263
_LT_AC_TAGVAR(compiler, $1)=$CC
4264
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4266
AC_MSG_CHECKING([if libtool supports shared libraries])
4267
AC_MSG_RESULT([$can_build_shared])
4269
AC_MSG_CHECKING([whether to build shared libraries])
4270
test "$can_build_shared" = "no" && enable_shared=no
4272
# On AIX, shared libraries and static libraries use the same namespace, and
4273
# are all built from PIC.
4276
test "$enable_shared" = yes && enable_static=no
4277
if test -n "$RANLIB"; then
4278
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4279
postinstall_cmds='$RANLIB $lib'
4283
test "$enable_shared" = yes && enable_static=no
4286
AC_MSG_RESULT([$enable_shared])
4288
AC_MSG_CHECKING([whether to build static libraries])
4289
# Make sure either enable_shared or enable_static is yes.
4290
test "$enable_shared" = yes || enable_static=yes
4291
AC_MSG_RESULT([$enable_static])
4293
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4295
_LT_AC_TAGVAR(GCC, $1)="$G77"
4296
_LT_AC_TAGVAR(LD, $1)="$LD"
4298
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4299
AC_LIBTOOL_PROG_CC_C_O($1)
4300
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4301
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4302
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4303
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4304
AC_LIBTOOL_SYS_LIB_STRIP
4307
AC_LIBTOOL_CONFIG($1)
4311
])# AC_LIBTOOL_LANG_F77_CONFIG
4314
# AC_LIBTOOL_LANG_GCJ_CONFIG
4315
# --------------------------
4316
# Ensure that the configuration vars for the C compiler are
4317
# suitably defined. Those variables are subsequently used by
4318
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4319
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4320
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4323
# Source file extension for Java test sources.
4326
# Object file extension for compiled Java test sources.
4328
_LT_AC_TAGVAR(objext, $1)=$objext
4330
# Code to be used in simple compile tests
4331
lt_simple_compile_test_code="class foo {}\n"
4333
# Code to be used in simple link tests
4334
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4336
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4339
# Allow CC to be a program name with arguments.
4343
_LT_AC_TAGVAR(compiler, $1)=$CC
4345
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4346
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4348
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4349
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4350
AC_LIBTOOL_PROG_CC_C_O($1)
4351
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4352
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4353
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4354
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4355
AC_LIBTOOL_SYS_LIB_STRIP
4356
AC_LIBTOOL_DLOPEN_SELF($1)
4358
AC_LIBTOOL_CONFIG($1)
4362
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4365
# AC_LIBTOOL_LANG_RC_CONFIG
4366
# --------------------------
4367
# Ensure that the configuration vars for the Windows resource compiler are
4368
# suitably defined. Those variables are subsequently used by
4369
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4370
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4371
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4374
# Source file extension for RC test sources.
4377
# Object file extension for compiled RC test sources.
4379
_LT_AC_TAGVAR(objext, $1)=$objext
4381
# Code to be used in simple compile tests
4382
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4384
# Code to be used in simple link tests
4385
lt_simple_link_test_code="$lt_simple_compile_test_code"
4387
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4390
# Allow CC to be a program name with arguments.
4394
_LT_AC_TAGVAR(compiler, $1)=$CC
4395
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4397
AC_LIBTOOL_CONFIG($1)
4401
])# AC_LIBTOOL_LANG_RC_CONFIG
4404
# AC_LIBTOOL_CONFIG([TAGNAME])
4405
# ----------------------------
4406
# If TAGNAME is not passed, then create an initial libtool script
4407
# with a default configuration from the untagged config vars. Otherwise
4408
# add code to config.status for appending the configuration named by
4409
# TAGNAME from the matching tagged config vars.
4410
AC_DEFUN([AC_LIBTOOL_CONFIG],
4411
[# The else clause should only fire when bootstrapping the
4412
# libtool distribution, otherwise you forgot to ship ltmain.sh
4413
# with your package, and you will get complaints that there are
4414
# no rules to generate ltmain.sh.
4415
if test -f "$ltmain"; then
4416
# See if we are running on zsh, and set the options which allow our commands through
4417
# without removal of \ escapes.
4418
if test -n "${ZSH_VERSION+set}" ; then
4419
setopt NO_GLOB_SUBST
4421
# Now quote all the things that may contain metacharacters while being
4422
# careful not to overquote the AC_SUBSTed values. We take copies of the
4423
# variables and quote the copies for generation of the libtool script.
4424
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4426
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4427
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4428
deplibs_check_method reload_flag reload_cmds need_locks \
4429
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4430
lt_cv_sys_global_symbol_to_c_name_address \
4431
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4432
old_postinstall_cmds old_postuninstall_cmds \
4433
_LT_AC_TAGVAR(compiler, $1) \
4434
_LT_AC_TAGVAR(CC, $1) \
4435
_LT_AC_TAGVAR(LD, $1) \
4436
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4437
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4438
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4439
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4440
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4441
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4442
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4443
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4444
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4445
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4446
_LT_AC_TAGVAR(predep_objects, $1) \
4447
_LT_AC_TAGVAR(postdep_objects, $1) \
4448
_LT_AC_TAGVAR(predeps, $1) \
4449
_LT_AC_TAGVAR(postdeps, $1) \
4450
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4451
_LT_AC_TAGVAR(archive_cmds, $1) \
4452
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4453
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4454
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4455
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4456
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4457
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4458
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4459
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4460
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4461
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4462
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4463
_LT_AC_TAGVAR(module_cmds, $1) \
4464
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4465
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4466
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4467
_LT_AC_TAGVAR(include_expsyms, $1); do
4470
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4471
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4472
_LT_AC_TAGVAR(archive_cmds, $1) | \
4473
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4474
_LT_AC_TAGVAR(module_cmds, $1) | \
4475
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4476
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4477
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4478
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4479
postinstall_cmds | postuninstall_cmds | \
4480
old_postinstall_cmds | old_postuninstall_cmds | \
4481
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4482
# Double-quote double-evaled strings.
4483
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4486
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4492
*'\[$]0 --fallback-echo"')
4493
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4498
[cfgfile="${ofile}T"
4499
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4501
AC_MSG_NOTICE([creating $ofile])],
4504
cat <<__EOF__ >> "$cfgfile"
4508
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4509
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4510
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4512
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4513
# Free Software Foundation, Inc.
4515
# This file is part of GNU Libtool:
4516
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4518
# This program is free software; you can redistribute it and/or modify
4519
# it under the terms of the GNU General Public License as published by
4520
# the Free Software Foundation; either version 2 of the License, or
4521
# (at your option) any later version.
4523
# This program is distributed in the hope that it will be useful, but
4524
# WITHOUT ANY WARRANTY; without even the implied warranty of
4525
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4526
# General Public License for more details.
4528
# You should have received a copy of the GNU General Public License
4529
# along with this program; if not, write to the Free Software
4530
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4532
# As a special exception to the GNU General Public License, if you
4533
# distribute this file as part of a program that contains a
4534
# configuration script generated by Autoconf, you may include it under
4535
# the same distribution terms that you use for the rest of that program.
4537
# A sed program that does not truncate output.
4540
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4541
Xsed="$SED -e s/^X//"
4543
# The HP-UX ksh and POSIX shell print the target directory to stdout
4545
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4547
# The names of the tagged configurations supported by this script.
4550
# ### BEGIN LIBTOOL CONFIG],
4551
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4553
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4555
# Shell to use when invoking shell scripts.
4558
# Whether or not to build shared libraries.
4559
build_libtool_libs=$enable_shared
4561
# Whether or not to build static libraries.
4562
build_old_libs=$enable_static
4564
# Whether or not to add -lc for building shared libraries.
4565
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4567
# Whether or not to disallow shared libs when runtime libs are static
4568
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4570
# Whether or not to optimize for fast installation.
4571
fast_install=$enable_fast_install
4574
host_alias=$host_alias
4577
# An echo program that does not interpret backslashes.
4582
AR_FLAGS=$lt_AR_FLAGS
4587
# A language-specific compiler.
4588
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4590
# Is the compiler the GNU C compiler?
4591
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4596
# The linker used to build libraries.
4597
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4599
# Whether we need hard or soft links.
4602
# A BSD-compatible nm program.
4605
# A symbol stripping program
4608
# Used to examine libraries when file_magic_cmd begins "file"
4609
MAGIC_CMD=$MAGIC_CMD
4611
# Used on cygwin: DLL creation program.
4614
# Used on cygwin: object dumper.
4617
# Used on cygwin: assembler.
4620
# The name of the directory that contains temporary libtool files.
4623
# How to create reloadable object files.
4624
reload_flag=$lt_reload_flag
4625
reload_cmds=$lt_reload_cmds
4627
# How to pass a linker flag through the compiler.
4628
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4630
# Object file suffix (normally "o").
4633
# Old archive suffix (normally "a").
4636
# Shared library suffix (normally ".so").
4637
shrext_cmds='$shrext_cmds'
4639
# Executable file suffix (normally "").
4642
# Additional compiler flags for building library objects.
4643
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4646
# What is the maximum length of a command?
4647
max_cmd_len=$lt_cv_sys_max_cmd_len
4649
# Does compiler simultaneously support -c and -o options?
4650
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4652
# Must we lock files when doing compilation ?
4653
need_locks=$lt_need_locks
4655
# Do we need the lib prefix for modules?
4656
need_lib_prefix=$need_lib_prefix
4658
# Do we need a version for libraries?
4659
need_version=$need_version
4661
# Whether dlopen is supported.
4662
dlopen_support=$enable_dlopen
4664
# Whether dlopen of programs is supported.
4665
dlopen_self=$enable_dlopen_self
4667
# Whether dlopen of statically linked programs is supported.
4668
dlopen_self_static=$enable_dlopen_self_static
4670
# Compiler flag to prevent dynamic linking.
4671
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4673
# Compiler flag to turn off builtin functions.
4674
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4676
# Compiler flag to allow reflexive dlopens.
4677
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4679
# Compiler flag to generate shared objects directly from archives.
4680
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4682
# Compiler flag to generate thread-safe objects.
4683
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4685
# Library versioning type.
4686
version_type=$version_type
4688
# Format of library name prefix.
4689
libname_spec=$lt_libname_spec
4691
# List of archive names. First name is the real one, the rest are links.
4692
# The last name is the one that the linker finds with -lNAME.
4693
library_names_spec=$lt_library_names_spec
4695
# The coded name of the library, if different from the real name.
4696
soname_spec=$lt_soname_spec
4698
# Commands used to build and install an old-style archive.
4700
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4701
old_postinstall_cmds=$lt_old_postinstall_cmds
4702
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4704
# Create an old-style archive from a shared archive.
4705
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4707
# Create a temporary old-style archive to link instead of a shared archive.
4708
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4710
# Commands used to build and install a shared archive.
4711
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4712
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4713
postinstall_cmds=$lt_postinstall_cmds
4714
postuninstall_cmds=$lt_postuninstall_cmds
4716
# Commands used to build a loadable module (assumed same as above if empty)
4717
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4718
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4720
# Commands to strip libraries.
4721
old_striplib=$lt_old_striplib
4722
striplib=$lt_striplib
4724
# Dependencies to place before the objects being linked to create a
4726
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4728
# Dependencies to place after the objects being linked to create a
4730
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4732
# Dependencies to place before the objects being linked to create a
4734
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4736
# Dependencies to place after the objects being linked to create a
4738
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4740
# The library search path used internally by the compiler when linking
4742
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4744
# Method to check whether dependent libraries are shared objects.
4745
deplibs_check_method=$lt_deplibs_check_method
4747
# Command to use when deplibs_check_method == file_magic.
4748
file_magic_cmd=$lt_file_magic_cmd
4750
# Flag that allows shared libraries with undefined symbols to be built.
4751
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4753
# Flag that forces no undefined symbols.
4754
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4756
# Commands used to finish a libtool library installation in a directory.
4757
finish_cmds=$lt_finish_cmds
4759
# Same as above, but a single script fragment to be evaled but not shown.
4760
finish_eval=$lt_finish_eval
4762
# Take the output of nm and produce a listing of raw symbols and C names.
4763
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4765
# Transform the output of nm in a proper C declaration
4766
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4768
# Transform the output of nm in a C name address pair
4769
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4771
# This is the shared library runtime path variable.
4772
runpath_var=$runpath_var
4774
# This is the shared library path variable.
4775
shlibpath_var=$shlibpath_var
4777
# Is shlibpath searched before the hard-coded library search path?
4778
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4780
# How to hardcode a shared library path into an executable.
4781
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4783
# Whether we should hardcode library paths into libraries.
4784
hardcode_into_libs=$hardcode_into_libs
4786
# Flag to hardcode \$libdir into a binary during linking.
4787
# This must work even if \$libdir does not exist.
4788
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4790
# If ld is used when linking, flag to hardcode \$libdir into
4791
# a binary during linking. This must work even if \$libdir does
4793
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4795
# Whether we need a single -rpath flag with a separated argument.
4796
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4798
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4800
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4802
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4804
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4806
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4807
# the resulting binary.
4808
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4810
# Set to yes if building a shared library automatically hardcodes DIR into the library
4811
# and all subsequent libraries and executables linked against it.
4812
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4814
# Variables whose values should be saved in libtool wrapper scripts and
4815
# restored at relink time.
4816
variables_saved_for_relink="$variables_saved_for_relink"
4818
# Whether libtool must link a program against all its dependency libraries.
4819
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4821
# Compile-time system search path for libraries
4822
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4824
# Run-time system search path for libraries
4825
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4827
# Fix the shell variable \$srcfile for the compiler.
4828
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4830
# Set to yes if exported symbols are required.
4831
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4833
# The commands to list exported symbols.
4834
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4836
# The commands to extract the exported symbol list from a shared archive.
4837
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4839
# Symbols that should not be listed in the preloaded symbols.
4840
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4842
# Symbols that must always be exported.
4843
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4846
[# ### END LIBTOOL CONFIG],
4847
[# ### END LIBTOOL TAG CONFIG: $tagname])
4854
cat <<\EOF >> "$cfgfile"
4856
# AIX sometimes has problems with the GCC collect2 program. For some
4857
# reason, if we set the COLLECT_NAMES environment variable, the problems
4858
# vanish in a puff of smoke.
4859
if test "X${COLLECT_NAMES+set}" != Xset; then
4861
export COLLECT_NAMES
4867
# We use sed instead of cat because bash on DJGPP gets confused if
4868
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4869
# text mode, it properly converts lines to CR/LF. This bash problem
4870
# is reportedly fixed, but why not run on old versions too?
4871
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4873
mv -f "$cfgfile" "$ofile" || \
4874
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4878
# If there is no Makefile yet, we rely on a make rule to execute
4879
# `config.status --recheck' to rerun these tests and create the
4880
# libtool script then.
4881
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4882
if test -f "$ltmain_in"; then
4883
test -f Makefile && make "$ltmain"
4886
])# AC_LIBTOOL_CONFIG
4889
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4890
# -------------------------------------------
4891
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4892
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4894
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4896
if test "$GCC" = yes; then
4897
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4899
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4900
lt_cv_prog_compiler_rtti_exceptions,
4901
[-fno-rtti -fno-exceptions], [],
4902
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4904
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4907
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4908
# ---------------------------------
4909
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4910
[AC_REQUIRE([AC_CANONICAL_HOST])
4911
AC_REQUIRE([AC_PROG_NM])
4912
AC_REQUIRE([AC_OBJEXT])
4913
# Check for command to grab the raw symbol name followed by C symbol from nm.
4914
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4915
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4917
# These are sane defaults that work on at least a few old systems.
4918
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4920
# Character class describing NM global symbol codes.
4921
symcode='[[BCDEGRST]]'
4923
# Regexp to match symbols that can be accessed directly from C.
4924
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4926
# Transform the above into a raw symbol and a C symbol.
4927
symxfrm='\1 \2\3 \3'
4929
# Transform an extracted symbol line into a proper C declaration
4930
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4932
# Transform an extracted symbol line into symbol name and symbol address
4933
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4935
# Define system-specific variables.
4940
cygwin* | mingw* | pw32*)
4941
symcode='[[ABCDGISTW]]'
4943
hpux*) # Its linker distinguishes data from code symbols
4944
if test "$host_cpu" = ia64; then
4945
symcode='[[ABCDEGRST]]'
4947
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4948
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4951
symcode='[[BCDEGRST]]'
4954
symcode='[[BCDEGQRST]]'
4960
symcode='[[DFNSTU]]'
4964
# Handle CRLF in mingw tool chain
4968
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4972
# If we're using GNU nm, then use its standard symbol codes.
4973
case `$NM -V 2>&1` in
4974
*GNU* | *'with BFD'*)
4975
symcode='[[ABCDGIRSTW]]' ;;
4978
# Try without a prefix undercore, then with it.
4979
for ac_symprfx in "" "_"; do
4981
# Write the raw and C identifiers.
4982
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4984
# Check to see that the pipe works correctly.
4988
cat > conftest.$ac_ext <<EOF
4993
void nm_test_func(){}
4997
int main(){nm_test_var='a';nm_test_func();return(0);}
5000
if AC_TRY_EVAL(ac_compile); then
5001
# Now try to grab the symbols.
5003
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5004
# Try sorting and uniquifying the output.
5005
if sort "$nlist" | uniq > "$nlist"T; then
5006
mv -f "$nlist"T "$nlist"
5011
# Make sure that we snagged all the symbols we need.
5012
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5013
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5014
cat <<EOF > conftest.$ac_ext
5020
# Now generate the symbol file.
5021
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5023
cat <<EOF >> conftest.$ac_ext
5024
#if defined (__STDC__) && __STDC__
5025
# define lt_ptr_t void *
5027
# define lt_ptr_t char *
5031
/* The mapping between symbol names and symbols. */
5036
lt_preloaded_symbols[[]] =
5039
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5040
cat <<\EOF >> conftest.$ac_ext
5048
# Now try linking the two files.
5049
mv conftest.$ac_objext conftstm.$ac_objext
5050
lt_save_LIBS="$LIBS"
5051
lt_save_CFLAGS="$CFLAGS"
5052
LIBS="conftstm.$ac_objext"
5053
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5054
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5057
LIBS="$lt_save_LIBS"
5058
CFLAGS="$lt_save_CFLAGS"
5060
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5063
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5066
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5069
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5070
cat conftest.$ac_ext >&5
5072
rm -f conftest* conftst*
5074
# Do not use the global_symbol_pipe unless it works.
5075
if test "$pipe_works" = yes; then
5078
lt_cv_sys_global_symbol_pipe=
5082
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5083
lt_cv_sys_global_symbol_to_cdecl=
5085
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5086
AC_MSG_RESULT(failed)
5090
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5093
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5094
# ---------------------------------------
5095
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5096
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5097
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5098
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5100
AC_MSG_CHECKING([for $compiler option to produce PIC])
5102
# C++ specific cases for pic, static, wl, etc.
5103
if test "$GXX" = yes; then
5104
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5105
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5109
# All AIX code is PIC.
5110
if test "$host_cpu" = ia64; then
5111
# AIX 5 now supports IA64 processor
5112
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5116
# FIXME: we need at least 68020 code to build shared libraries, but
5117
# adding the `-m68020' flag to GCC prevents building anything better,
5119
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5121
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5122
# PIC is the default for these OSes.
5124
mingw* | os2* | pw32*)
5125
# This hack is so that the source file can tell whether it is being
5126
# built for inclusion in a dll (and should export symbols for example).
5127
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5129
darwin* | rhapsody*)
5130
# PIC is the default on this platform
5131
# Common symbols not allowed in MH_DYLIB files
5132
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5135
# DJGPP does not support shared libraries at all
5136
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5139
if test -d /usr/nec; then
5140
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5144
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5150
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5155
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5161
# All AIX code is PIC.
5162
if test "$host_cpu" = ia64; then
5163
# AIX 5 now supports IA64 processor
5164
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5166
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5170
case $cc_basename in
5172
# Green Hills C++ Compiler
5173
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5178
case $cc_basename in
5180
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5183
# Green Hills C++ Compiler
5184
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5190
freebsd* | kfreebsd*-gnu)
5191
# FreeBSD uses GNU C++
5193
hpux9* | hpux10* | hpux11*)
5194
case $cc_basename in
5196
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5197
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5198
if test "$host_cpu" != ia64; then
5199
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5203
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5204
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5210
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5218
irix5* | irix6* | nonstopux*)
5219
case $cc_basename in
5221
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5222
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5223
# CC pic flag -KPIC is the default.
5230
case $cc_basename in
5233
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5234
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5238
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5239
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5240
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5244
# Make sure the PIC flag is empty. It appears that all Alpha
5245
# Linux and Compaq Tru64 Unix objects are PIC.
5246
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5247
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5258
case $cc_basename in
5260
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5266
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5268
osf3* | osf4* | osf5*)
5269
case $cc_basename in
5271
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5274
# Rational C++ 2.4.1
5275
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5278
# Digital/Compaq C++
5279
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5280
# Make sure the PIC flag is empty. It appears that all Alpha
5281
# Linux and Compaq Tru64 Unix objects are PIC.
5282
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5283
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5292
case $cc_basename in
5294
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5301
case $cc_basename in
5303
# Sun C++ 4.2, 5.x and Centerline C++
5304
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5305
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5306
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5309
# Green Hills C++ Compiler
5310
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5317
case $cc_basename in
5320
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5321
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5325
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5332
case $cc_basename in
5334
# NonStop-UX NCC 3.20
5335
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5346
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5352
if test "$GCC" = yes; then
5353
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5354
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5358
# All AIX code is PIC.
5359
if test "$host_cpu" = ia64; then
5360
# AIX 5 now supports IA64 processor
5361
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5366
# FIXME: we need at least 68020 code to build shared libraries, but
5367
# adding the `-m68020' flag to GCC prevents building anything better,
5369
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5372
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5373
# PIC is the default for these OSes.
5376
mingw* | pw32* | os2*)
5377
# This hack is so that the source file can tell whether it is being
5378
# built for inclusion in a dll (and should export symbols for example).
5379
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5382
darwin* | rhapsody*)
5383
# PIC is the default on this platform
5384
# Common symbols not allowed in MH_DYLIB files
5385
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5389
# Just because we use GCC doesn't mean we suddenly get shared libraries
5390
# on systems that don't support them.
5391
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5396
if test -d /usr/nec; then
5397
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5402
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5409
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5415
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5419
# PORTME Check for flag to pass linker flags through the system compiler.
5422
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5423
if test "$host_cpu" = ia64; then
5424
# AIX 5 now supports IA64 processor
5425
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5427
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5431
mingw* | pw32* | os2*)
5432
# This hack is so that the source file can tell whether it is being
5433
# built for inclusion in a dll (and should export symbols for example).
5434
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5437
hpux9* | hpux10* | hpux11*)
5438
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5439
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5446
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5449
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5450
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5453
irix5* | irix6* | nonstopux*)
5454
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5455
# PIC (with -KPIC) is the default.
5456
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5460
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5461
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5467
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5468
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5469
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5472
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5473
# All Alpha code is PIC.
5474
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5479
osf3* | osf4* | osf5*)
5480
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5481
# All OSF/1 code is PIC.
5482
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5486
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5487
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5491
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5492
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5493
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5497
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5498
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5499
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5502
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5503
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5504
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5505
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5509
if test -d /usr/nec ;then
5510
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5511
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5516
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5517
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5521
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5526
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5529
# Check to make sure the PIC flag actually works.
5531
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5532
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5533
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5534
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5535
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5537
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5539
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5540
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5543
# For platforms which do not support PIC, -DPIC is meaningless:
5545
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5548
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5554
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5555
# ------------------------------------
5556
# See if the linker supports building shared libraries.
5557
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5558
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5560
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5563
# If we're using GNU nm, then we don't want the "-C" option.
5564
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5565
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5566
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5568
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5572
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5575
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5578
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5581
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5586
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5587
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5588
_LT_AC_TAGVAR(archive_cmds, $1)=
5589
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5590
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5591
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5592
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5593
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5594
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5596
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5597
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5598
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5599
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5600
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5601
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5602
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5603
_LT_AC_TAGVAR(module_cmds, $1)=
5604
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5605
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5606
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5607
# include_expsyms should be a list of space-separated symbols to be *always*
5608
# included in the symbol list
5609
_LT_AC_TAGVAR(include_expsyms, $1)=
5610
# exclude_expsyms can be an extended regexp of symbols to exclude
5611
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5612
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5613
# as well as any symbol that contains `d'.
5614
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5615
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5616
# platforms (ab)use it in PIC code, but their linkers get confused if
5617
# the symbol is explicitly referenced. Since portable code cannot
5618
# rely on this symbol name, it's probably fine to never include it in
5619
# preloaded symbol tables.
5620
extract_expsyms_cmds=
5623
cygwin* | mingw* | pw32*)
5624
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5625
# When not using gcc, we currently assume that we are using
5626
# Microsoft Visual C++.
5627
if test "$GCC" != yes; then
5636
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5637
if test "$with_gnu_ld" = yes; then
5638
# If archive_cmds runs LD, not CC, wlarc should be empty
5641
# See if GNU ld supports shared libraries.
5643
aix3* | aix4* | aix5*)
5644
# On AIX/PPC, the GNU linker is very broken
5645
if test "$host_cpu" != ia64; then
5646
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5649
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5650
*** to be unable to reliably create shared libraries on AIX.
5651
*** Therefore, libtool is disabling shared libraries support. If you
5652
*** really care for shared libraries, you may want to modify your PATH
5653
*** so that a non-GNU linker is found, and then restart.
5660
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5661
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5662
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5664
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5665
# that the semantics of dynamic libraries on AmigaOS, at least up
5666
# to version 4, is to share data among multiple programs linked
5667
# with the same dynamic library. Since this doesn't match the
5668
# behavior of shared libraries on other platforms, we can't use
5670
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5674
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5675
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5676
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5677
# support --undefined. This deserves some investigation. FIXME
5678
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5680
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5684
cygwin* | mingw* | pw32*)
5685
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5686
# as there is no search path for DLLs.
5687
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5688
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5689
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5690
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5691
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5693
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5694
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5695
# If the export-symbols file already is a .def file (1st line
5696
# is EXPORTS), use it as is; otherwise, prepend...
5697
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5698
cp $export_symbols $output_objdir/$soname.def;
5700
echo EXPORTS > $output_objdir/$soname.def;
5701
cat $export_symbols >> $output_objdir/$soname.def;
5703
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5709
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5710
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5711
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5714
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5715
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5720
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5721
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5724
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5725
*** create shared libraries on Solaris systems. Therefore, libtool
5726
*** is disabling shared libraries support. We urge you to upgrade GNU
5727
*** binutils to release 2.9.1 or newer. Another option is to modify
5728
*** your PATH or compiler configuration so that the native linker is
5729
*** used, and then restart.
5732
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5733
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5734
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5736
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5741
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5743
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5744
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5748
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5749
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5751
supports_anon_versioning=no
5752
case `$LD -v 2>/dev/null` in
5753
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5754
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5755
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5756
*\ 2.11.*) ;; # other 2.11 versions
5757
*) supports_anon_versioning=yes ;;
5759
if test $supports_anon_versioning = yes; then
5760
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5761
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5762
$echo "local: *; };" >> $output_objdir/$libname.ver~
5763
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5765
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5767
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5769
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5774
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5775
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5776
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5778
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5783
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5784
runpath_var=LD_RUN_PATH
5785
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5786
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5787
# ancient GNU ld didn't support --whole-archive et. al.
5788
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5789
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5791
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5795
# PORTME fill in a description of your system's linker (not GNU ld)
5798
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5799
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5800
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5801
# Note: this linker hardcodes the directories in LIBPATH if there
5802
# are no directories specified by -L.
5803
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5804
if test "$GCC" = yes && test -z "$link_static_flag"; then
5805
# Neither direct hardcoding nor static linking is supported with a
5807
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5812
if test "$host_cpu" = ia64; then
5813
# On IA64, the linker does run time linking by default, so we don't
5814
# have to do anything special.
5815
aix_use_runtimelinking=no
5816
exp_sym_flag='-Bexport'
5819
# If we're using GNU nm, then we don't want the "-C" option.
5820
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5821
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5822
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5824
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5826
aix_use_runtimelinking=no
5828
# Test if we are trying to use run time linking or normal
5829
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5830
# need to do runtime linking.
5831
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5832
for ld_flag in $LDFLAGS; do
5833
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5834
aix_use_runtimelinking=yes
5840
exp_sym_flag='-bexport'
5841
no_entry_flag='-bnoentry'
5844
# When large executables or shared objects are built, AIX ld can
5845
# have problems creating the table of contents. If linking a library
5846
# or program results in "error TOC overflow" add -mminimal-toc to
5847
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5848
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5850
_LT_AC_TAGVAR(archive_cmds, $1)=''
5851
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5852
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5853
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5855
if test "$GCC" = yes; then
5856
case $host_os in aix4.[012]|aix4.[012].*)
5857
# We only want to do this on AIX 4.2 and lower, the check
5858
# below for broken collect2 doesn't work under 4.3+
5859
collect2name=`${CC} -print-prog-name=collect2`
5860
if test -f "$collect2name" && \
5861
strings "$collect2name" | grep resolve_lib_name >/dev/null
5863
# We have reworked collect2
5864
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5866
# We have old collect2
5867
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5868
# It fails to find uninstalled libraries when the uninstalled
5869
# path is not listed in the libpath. Setting hardcode_minus_L
5870
# to unsupported forces relinking
5871
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5872
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5873
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5876
shared_flag='-shared'
5879
if test "$host_cpu" = ia64; then
5880
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5881
# chokes on -Wl,-G. The following line is correct:
5884
if test "$aix_use_runtimelinking" = yes; then
5885
shared_flag='${wl}-G'
5887
shared_flag='${wl}-bM:SRE'
5892
# It seems that -bexpall does not export symbols beginning with
5893
# underscore (_), so it is better to generate a list of symbols to export.
5894
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5895
if test "$aix_use_runtimelinking" = yes; then
5896
# Warning - without using the other runtime loading flags (-brtl),
5897
# -berok will link without error, but may produce a broken library.
5898
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5899
# Determine the default libpath from the value encoded in an empty executable.
5900
_LT_AC_SYS_LIBPATH_AIX
5901
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5902
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5904
if test "$host_cpu" = ia64; then
5905
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5906
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5907
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5909
# Determine the default libpath from the value encoded in an empty executable.
5910
_LT_AC_SYS_LIBPATH_AIX
5911
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5912
# Warning - without using the other run time loading flags,
5913
# -berok will link without error, but may produce a broken library.
5914
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5915
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5916
# -bexpall does not export symbols beginning with underscore (_)
5917
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5918
# Exported symbols can be pulled into shared objects from archives
5919
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5920
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5921
# This is similar to how AIX traditionally builds it's shared libraries.
5922
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5928
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5929
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5930
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5931
# see comment about different semantics on the GNU ld section
5932
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5936
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5939
cygwin* | mingw* | pw32*)
5940
# When not using gcc, we currently assume that we are using
5941
# Microsoft Visual C++.
5942
# hardcode_libdir_flag_spec is actually meaningless, as there is
5943
# no search path for DLLs.
5944
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5945
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5946
# Tell ltmain to make .lib files, not .a files.
5948
# Tell ltmain to make .dll files, not .so files.
5950
# FIXME: Setting linknames here is a bad hack.
5951
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5952
# The linker will automatically build a .lib file if we build a DLL.
5953
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5954
# FIXME: Should let the user specify the lib program.
5955
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5956
fix_srcfile_path='`cygpath -w "$srcfile"`'
5957
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5960
darwin* | rhapsody*)
5961
if test "$GXX" = yes ; then
5962
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5964
rhapsody* | darwin1.[[012]])
5965
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5968
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5969
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5971
case ${MACOSX_DEPLOYMENT_TARGET} in
5973
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5976
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5982
lt_int_apple_cc_single_mod=no
5983
output_verbose_link_cmd='echo'
5984
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5985
lt_int_apple_cc_single_mod=yes
5987
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5988
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5990
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
5992
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5993
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5994
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5995
_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}'
5997
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
5999
_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}'
6000
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6001
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6002
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6003
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6004
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6006
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6011
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6013
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6017
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6020
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6021
# support. Future versions do this automatically, but an explicit c++rt0.o
6022
# does not break anything, and helps significantly (at the cost of a little
6025
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6026
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6027
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6028
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6031
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6033
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6034
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6035
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6036
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6039
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6040
freebsd* | kfreebsd*-gnu)
6041
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6042
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6043
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6044
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6048
if test "$GCC" = yes; then
6049
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6051
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6053
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6054
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6055
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6057
# hardcode_minus_L: Not really in the search PATH,
6058
# but as the default location of the library.
6059
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6060
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6064
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6067
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6070
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6076
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6079
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6083
if test "$with_gnu_ld" = no; then
6086
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6087
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6088
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6089
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6090
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6093
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6094
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6095
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6097
# hardcode_minus_L: Not really in the search PATH,
6098
# but as the default location of the library.
6099
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6102
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6103
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6104
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6105
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6107
# hardcode_minus_L: Not really in the search PATH,
6108
# but as the default location of the library.
6109
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6115
irix5* | irix6* | nonstopux*)
6116
if test "$GCC" = yes; then
6117
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6119
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6120
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6122
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6123
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6124
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6127
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6128
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6129
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6131
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6133
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6134
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6135
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6139
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6140
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6141
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6142
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6143
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6147
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6148
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6149
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6150
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6151
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6152
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6155
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6156
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6157
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6160
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6161
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6168
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6169
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6170
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6171
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6172
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6176
if test "$GCC" = yes; then
6177
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6178
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6180
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6181
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6183
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6184
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6187
osf4* | osf5*) # as osf3* with the addition of -msym flag
6188
if test "$GCC" = yes; then
6189
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6193
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6194
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6195
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6196
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6198
# Both c and cxx compiler support -rpath directly
6199
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6201
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6205
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6206
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6207
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6208
runpath_var=LD_RUN_PATH
6209
hardcode_runpath_var=yes
6213
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6214
if test "$GCC" = yes; then
6215
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6216
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6217
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6219
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6221
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6224
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6226
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6227
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6228
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6230
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6234
if test "x$host_vendor" = xsequent; then
6235
# Use $CC to link under sequent, because it throws in some extra .o
6236
# files that make .init and .fini sections work.
6237
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6239
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6241
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6242
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6243
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6248
case $host_vendor in
6250
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6251
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6254
## LD is ld it makes a PLAMLIB
6255
## CC just makes a GrossModule.
6256
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6257
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6258
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6261
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6262
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6265
runpath_var='LD_RUN_PATH'
6266
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6270
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6272
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6276
if test -d /usr/nec; then
6277
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6279
runpath_var=LD_RUN_PATH
6280
hardcode_runpath_var=yes
6281
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6286
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6287
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6288
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6289
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6290
hardcode_runpath_var=yes
6291
runpath_var=LD_RUN_PATH
6294
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6295
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6296
if test "$GCC" = yes; then
6297
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6299
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6301
runpath_var='LD_RUN_PATH'
6302
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6306
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6307
# $CC -shared without GNU ld will not create a library from C++
6308
# object files and a static libstdc++, better avoid it by now
6309
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6310
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6311
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6313
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6314
runpath_var='LD_RUN_PATH'
6318
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6319
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6320
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6324
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6329
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6330
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6332
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6333
if test "$GCC" = yes; then
6334
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6338
# Do we need to explicitly link libc?
6340
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6342
# Assume -lc should be added
6343
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6345
if test "$enable_shared" = yes && test "$GCC" = yes; then
6346
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6348
# FIXME: we may have to deal with multi-command sequences.
6351
# Test whether the compiler implicitly links with -lc since on some
6352
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6353
# to ld, don't add -lc before -lgcc.
6354
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6356
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6358
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6361
libobjs=conftest.$ac_objext
6363
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6369
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6370
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6371
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6373
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6375
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6377
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6379
cat conftest.err 1>&5
6382
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6388
])# AC_LIBTOOL_PROG_LD_SHLIBS
6391
# _LT_AC_FILE_LTDLL_C
6392
# -------------------
6393
# Be careful that the start marker always follows a newline.
6394
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6395
# /* ltdll.c starts here */
6396
# #define WIN32_LEAN_AND_MEAN
6397
# #include <windows.h>
6398
# #undef WIN32_LEAN_AND_MEAN
6399
# #include <stdio.h>
6401
# #ifndef __CYGWIN__
6402
# # ifdef __CYGWIN32__
6403
# # define __CYGWIN__ __CYGWIN32__
6407
# #ifdef __cplusplus
6410
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6411
# #ifdef __cplusplus
6416
# #include <cygwin/cygwin_dll.h>
6417
# DECLARE_CYGWIN_DLL( DllMain );
6419
# HINSTANCE __hDllInstance_base;
6422
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6424
# __hDllInstance_base = hInst;
6427
# /* ltdll.c ends here */
6428
])# _LT_AC_FILE_LTDLL_C
6431
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6432
# ---------------------------------
6433
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6437
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6438
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6439
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6440
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6441
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6442
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6443
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6445
# This is just to silence aclocal about the macro not being used
6446
ifelse([AC_DISABLE_FAST_INSTALL])
6448
AC_DEFUN([LT_AC_PROG_GCJ],
6449
[AC_CHECK_TOOL(GCJ, gcj, no)
6450
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6454
AC_DEFUN([LT_AC_PROG_RC],
6455
[AC_CHECK_TOOL(RC, windres, no)
6458
# NOTE: This macro has been submitted for inclusion into #
6459
# GNU Autoconf as AC_PROG_SED. When it is available in #
6460
# a released version of Autoconf we should remove this #
6461
# macro and use it instead. #
6464
# Check for a fully-functional sed program, that truncates
6465
# as few characters as possible. Prefer GNU sed if found.
6466
AC_DEFUN([LT_AC_PROG_SED],
6467
[AC_MSG_CHECKING([for a sed that does not truncate output])
6468
AC_CACHE_VAL(lt_cv_path_SED,
6469
[# Loop through the user's path and test for sed and gsed.
6470
# Then use that list of sed's as ones to test for truncation.
6471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475
test -z "$as_dir" && as_dir=.
6476
for lt_ac_prog in sed gsed; do
6477
for ac_exec_ext in '' $ac_executable_extensions; do
6478
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6479
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6486
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6487
# along with /bin/sed that truncates output.
6488
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6489
test ! -f $lt_ac_sed && break
6490
cat /dev/null > conftest.in
6492
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6493
# Check for GNU sed and select it if it is found.
6494
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6495
lt_cv_path_SED=$lt_ac_sed
6499
cat conftest.in conftest.in >conftest.tmp
6500
mv conftest.tmp conftest.in
6501
cp conftest.in conftest.nl
6503
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6504
cmp -s conftest.out conftest.nl || break
6505
# 10000 chars as input seems more than enough
6506
test $lt_ac_count -gt 10 && break
6507
lt_ac_count=`expr $lt_ac_count + 1`
6508
if test $lt_ac_count -gt $lt_ac_max; then
6509
lt_ac_max=$lt_ac_count
6510
lt_cv_path_SED=$lt_ac_sed
6516
AC_MSG_RESULT([$SED])
6520
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6521
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6522
dnl also defines GSTUFF_PKG_ERRORS on error
6523
AC_DEFUN(PKG_CHECK_MODULES, [
6526
if test -z "$PKG_CONFIG"; then
6527
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6530
if test "$PKG_CONFIG" = "no" ; then
6531
echo "*** The pkg-config script could not be found. Make sure it is"
6532
echo "*** in your path, or set the PKG_CONFIG environment variable"
6533
echo "*** to the full path to pkg-config."
6534
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6536
PKG_CONFIG_MIN_VERSION=0.9.0
6537
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6538
AC_MSG_CHECKING(for $2)
6540
if $PKG_CONFIG --exists "$2" ; then
6544
AC_MSG_CHECKING($1_CFLAGS)
6545
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6546
AC_MSG_RESULT($$1_CFLAGS)
6548
AC_MSG_CHECKING($1_LIBS)
6549
$1_LIBS=`$PKG_CONFIG --libs "$2"`
6550
AC_MSG_RESULT($$1_LIBS)
6554
## If we have a custom action on failure, don't print errors, but
6555
## do set a variable so people can do so.
6556
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6557
ifelse([$4], ,echo $$1_PKG_ERRORS,)
6563
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6564
echo "*** See http://www.freedesktop.org/software/pkgconfig"
6568
if test $succeeded = yes; then
6569
ifelse([$3], , :, [$3])
6571
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
6578
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
6579
# Generated from amversion.in; do not edit by hand.
6581
# This program is free software; you can redistribute it and/or modify
6582
# it under the terms of the GNU General Public License as published by
6583
# the Free Software Foundation; either version 2, or (at your option)
6584
# any later version.
6586
# This program is distributed in the hope that it will be useful,
6587
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6588
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6589
# GNU General Public License for more details.
6591
# You should have received a copy of the GNU General Public License
6592
# along with this program; if not, write to the Free Software
6593
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6595
# AM_AUTOMAKE_VERSION(VERSION)
6596
# ----------------------------
6597
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6598
# generated from the m4 files accompanying Automake X.Y.
6599
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6601
# AM_SET_CURRENT_AUTOMAKE_VERSION
6602
# -------------------------------
6603
# Call AM_AUTOMAKE_VERSION so it can be traced.
6604
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6605
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6606
[AM_AUTOMAKE_VERSION([1.8.5])])
6610
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6612
# This program is free software; you can redistribute it and/or modify
6613
# it under the terms of the GNU General Public License as published by
6614
# the Free Software Foundation; either version 2, or (at your option)
6615
# any later version.
6617
# This program is distributed in the hope that it will be useful,
6618
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6619
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6620
# GNU General Public License for more details.
6622
# You should have received a copy of the GNU General Public License
6623
# along with this program; if not, write to the Free Software
6624
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6627
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6628
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6629
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6631
# Of course, Automake must honor this variable whenever it calls a
6632
# tool from the auxiliary directory. The problem is that $srcdir (and
6633
# therefore $ac_aux_dir as well) can be either absolute or relative,
6634
# depending on how configure is run. This is pretty annoying, since
6635
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6636
# source directory, any form will work fine, but in subdirectories a
6637
# relative path needs to be adjusted first.
6639
# $ac_aux_dir/missing
6640
# fails when called from a subdirectory if $ac_aux_dir is relative
6641
# $top_srcdir/$ac_aux_dir/missing
6642
# fails if $ac_aux_dir is absolute,
6643
# fails when called from a subdirectory in a VPATH build with
6644
# a relative $ac_aux_dir
6646
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6647
# are both prefixed by $srcdir. In an in-source build this is usually
6648
# harmless because $srcdir is `.', but things will broke when you
6649
# start a VPATH build or use an absolute $srcdir.
6651
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6652
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6653
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6654
# and then we would define $MISSING as
6655
# MISSING="\${SHELL} $am_aux_dir/missing"
6656
# This will work as long as MISSING is not called from configure, because
6657
# unfortunately $(top_srcdir) has no meaning in configure.
6658
# However there are other variables, like CC, which are often used in
6659
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6661
# Another solution, used here, is to always expand $ac_aux_dir to an
6662
# absolute PATH. The drawback is that using absolute paths prevent a
6663
# configured tree to be moved without reconfiguration.
6665
AC_DEFUN([AM_AUX_DIR_EXPAND],
6666
[dnl Rely on autoconf to set up CDPATH properly.
6667
AC_PREREQ([2.50])dnl
6668
# expand $ac_aux_dir to an absolute path
6669
am_aux_dir=`cd $ac_aux_dir && pwd`
6673
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
6674
# Free Software Foundation, Inc.
6676
# This program is free software; you can redistribute it and/or modify
6677
# it under the terms of the GNU General Public License as published by
6678
# the Free Software Foundation; either version 2, or (at your option)
6679
# any later version.
6681
# This program is distributed in the hope that it will be useful,
6682
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6683
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6684
# GNU General Public License for more details.
6686
# You should have received a copy of the GNU General Public License
6687
# along with this program; if not, write to the Free Software
6688
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6693
# This was merged into AC_PROG_CC in Autoconf.
6695
AU_DEFUN([AM_PROG_CC_STDC],
6697
AC_DIAGNOSE([obsolete], [$0:
6698
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
6699
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
6700
you adjust the code. You can also remove the above call to
6701
AC_PROG_CC if you already called it elsewhere.])
6702
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6704
AU_DEFUN([fp_PROG_CC_STDC])
6706
# AM_CONDITIONAL -*- Autoconf -*-
6708
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6710
# This program is free software; you can redistribute it and/or modify
6711
# it under the terms of the GNU General Public License as published by
6712
# the Free Software Foundation; either version 2, or (at your option)
6713
# any later version.
6715
# This program is distributed in the hope that it will be useful,
6716
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6717
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6718
# GNU General Public License for more details.
6720
# You should have received a copy of the GNU General Public License
6721
# along with this program; if not, write to the Free Software
6722
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6727
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6728
# -------------------------------------
6729
# Define a conditional.
6730
AC_DEFUN([AM_CONDITIONAL],
6732
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6733
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6735
AC_SUBST([$1_FALSE])
6743
AC_CONFIG_COMMANDS_PRE(
6744
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6745
AC_MSG_ERROR([conditional "$1" was never defined.
6746
Usually this means the macro was only invoked conditionally.])
6749
# serial 7 -*- Autoconf -*-
6751
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6752
# Free Software Foundation, Inc.
6754
# This program is free software; you can redistribute it and/or modify
6755
# it under the terms of the GNU General Public License as published by
6756
# the Free Software Foundation; either version 2, or (at your option)
6757
# any later version.
6759
# This program is distributed in the hope that it will be useful,
6760
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6761
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6762
# GNU General Public License for more details.
6764
# You should have received a copy of the GNU General Public License
6765
# along with this program; if not, write to the Free Software
6766
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6770
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6771
# written in clear, in which case automake, when reading aclocal.m4,
6772
# will think it sees a *use*, and therefore will trigger all it's
6773
# C support machinery. Also note that it means that autoscan, seeing
6774
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6778
# _AM_DEPENDENCIES(NAME)
6779
# ----------------------
6780
# See how the compiler implements dependency checking.
6781
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6782
# We try a few techniques and use that to set a single cache variable.
6784
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6785
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6786
# dependency, and given that the user is not expected to run this macro,
6787
# just rely on AC_PROG_CC.
6788
AC_DEFUN([_AM_DEPENDENCIES],
6789
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6790
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6791
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6792
AC_REQUIRE([AM_DEP_TRACK])dnl
6794
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6795
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6796
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6797
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6798
[depcc="$$1" am_compiler_list=])
6800
AC_CACHE_CHECK([dependency style of $depcc],
6801
[am_cv_$1_dependencies_compiler_type],
6802
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6803
# We make a subdir and do the tests there. Otherwise we can end up
6804
# making bogus files that we don't know about and never remove. For
6805
# instance it was reported that on HP-UX the gcc test will end up
6806
# making a dummy file named `D' -- because `-MD' means `put the output
6809
# Copy depcomp to subdir because otherwise we won't find it if we're
6810
# using a relative directory.
6811
cp "$am_depcomp" conftest.dir
6813
# We will build objects and dependencies in a subdirectory because
6814
# it helps to detect inapplicable dependency modes. For instance
6815
# both Tru64's cc and ICC support -MD to output dependencies as a
6816
# side effect of compilation, but ICC will put the dependencies in
6817
# the current directory while Tru64 will put them in the object
6821
am_cv_$1_dependencies_compiler_type=none
6822
if test "$am_compiler_list" = ""; then
6823
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6825
for depmode in $am_compiler_list; do
6826
# Setup a source with many dependencies, because some compilers
6827
# like to wrap large dependency lists on column 80 (with \), and
6828
# we should not choose a depcomp mode which is confused by this.
6830
# We need to recreate these files for each test, as the compiler may
6831
# overwrite some of them when testing with obscure command lines.
6832
# This happens at least with the AIX C compiler.
6834
for i in 1 2 3 4 5 6; do
6835
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6836
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6837
# Solaris 8's {/usr,}/bin/sh.
6838
touch sub/conftst$i.h
6840
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6844
# after this tag, mechanisms are not by side-effect, so they'll
6845
# only be used when explicitly requested
6846
if test "x$enable_dependency_tracking" = xyes; then
6854
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6855
# mode. It turns out that the SunPro C++ compiler does not properly
6856
# handle `-M -o', and we need to detect this.
6857
if depmode=$depmode \
6858
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6859
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6860
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6861
>/dev/null 2>conftest.err &&
6862
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6863
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6864
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6865
# icc doesn't choke on unknown options, it will just issue warnings
6866
# or remarks (even with -Werror). So we grep stderr for any message
6867
# that says an option was ignored or not supported.
6868
# When given -MP, icc 7.0 and 7.1 complain thusly:
6869
# icc: Command line warning: ignoring option '-M'; no argument required
6870
# The diagnosis changed in icc 8.0:
6871
# icc: Command line remark: option '-MP' not supported
6872
if (grep 'ignoring option' conftest.err ||
6873
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6874
am_cv_$1_dependencies_compiler_type=$depmode
6883
am_cv_$1_dependencies_compiler_type=none
6886
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6887
AM_CONDITIONAL([am__fastdep$1], [
6888
test "x$enable_dependency_tracking" != xno \
6889
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6895
# Choose a directory name for dependency files.
6896
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6897
AC_DEFUN([AM_SET_DEPDIR],
6898
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6899
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6905
AC_DEFUN([AM_DEP_TRACK],
6906
[AC_ARG_ENABLE(dependency-tracking,
6907
[ --disable-dependency-tracking speeds up one-time build
6908
--enable-dependency-tracking do not reject slow dependency extractors])
6909
if test "x$enable_dependency_tracking" != xno; then
6910
am_depcomp="$ac_aux_dir/depcomp"
6913
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6914
AC_SUBST([AMDEPBACKSLASH])
6917
# Generate code to set up dependency tracking. -*- Autoconf -*-
6919
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6921
# This program is free software; you can redistribute it and/or modify
6922
# it under the terms of the GNU General Public License as published by
6923
# the Free Software Foundation; either version 2, or (at your option)
6924
# any later version.
6926
# This program is distributed in the hope that it will be useful,
6927
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6928
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6929
# GNU General Public License for more details.
6931
# You should have received a copy of the GNU General Public License
6932
# along with this program; if not, write to the Free Software
6933
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6938
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6939
# ------------------------------
6940
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6941
[for mf in $CONFIG_FILES; do
6942
# Strip MF so we end up with the name of the file.
6943
mf=`echo "$mf" | sed -e 's/:.*$//'`
6944
# Check whether this is an Automake generated Makefile or not.
6945
# We used to match only the files named `Makefile.in', but
6946
# some people rename them; so instead we look at the file content.
6947
# Grep'ing the first line is not enough: some people post-process
6948
# each Makefile.in and add a new line on top of each file to say so.
6949
# So let's grep whole file.
6950
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6951
dirpart=`AS_DIRNAME("$mf")`
6955
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6956
# Extract the definition of DEP_FILES from the Makefile without
6958
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6959
test -z "$DEPDIR" && continue
6960
# When using ansi2knr, U may be empty or an underscore; expand it
6961
U=`sed -n 's/^U = //p' < "$mf"`
6962
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6963
# We invoke sed twice because it is the simplest approach to
6964
# changing $(DEPDIR) to its actual value in the expansion.
6965
for file in `sed -n '
6966
/^DEP_FILES = .*\\\\$/ {
6975
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6976
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6977
# Make sure the directory exists.
6978
test -f "$dirpart/$file" && continue
6979
fdir=`AS_DIRNAME(["$file"])`
6980
AS_MKDIR_P([$dirpart/$fdir])
6981
# echo "creating $dirpart/$file"
6982
echo '# dummy' > "$dirpart/$file"
6985
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6988
# AM_OUTPUT_DEPENDENCY_COMMANDS
6989
# -----------------------------
6990
# This macro should only be invoked once -- use via AC_REQUIRE.
6992
# This code is only required when automatic dependency tracking
6993
# is enabled. FIXME. This creates each `.P' file that we will
6994
# need in order to bootstrap the dependency handling code.
6995
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6996
[AC_CONFIG_COMMANDS([depfiles],
6997
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6998
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7001
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
7003
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7005
# This program is free software; you can redistribute it and/or modify
7006
# it under the terms of the GNU General Public License as published by
7007
# the Free Software Foundation; either version 2, or (at your option)
7008
# any later version.
7010
# This program is distributed in the hope that it will be useful,
7011
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7012
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7013
# GNU General Public License for more details.
7015
# You should have received a copy of the GNU General Public License
7016
# along with this program; if not, write to the Free Software
7017
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7022
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7023
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7025
# Do all the work for Automake. -*- Autoconf -*-
7027
# This macro actually does too much some checks are only needed if
7028
# your package does certain things. But this isn't really a big deal.
7030
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
7031
# Free Software Foundation, Inc.
7033
# This program is free software; you can redistribute it and/or modify
7034
# it under the terms of the GNU General Public License as published by
7035
# the Free Software Foundation; either version 2, or (at your option)
7036
# any later version.
7038
# This program is distributed in the hope that it will be useful,
7039
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7040
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7041
# GNU General Public License for more details.
7043
# You should have received a copy of the GNU General Public License
7044
# along with this program; if not, write to the Free Software
7045
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7050
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7051
# AM_INIT_AUTOMAKE([OPTIONS])
7052
# -----------------------------------------------
7053
# The call with PACKAGE and VERSION arguments is the old style
7054
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7055
# and VERSION should now be passed to AC_INIT and removed from
7056
# the call to AM_INIT_AUTOMAKE.
7057
# We support both call styles for the transition. After
7058
# the next Automake release, Autoconf can make the AC_INIT
7059
# arguments mandatory, and then we can depend on a new Autoconf
7060
# release and drop the old call support.
7061
AC_DEFUN([AM_INIT_AUTOMAKE],
7062
[AC_PREREQ([2.58])dnl
7063
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7064
dnl the ones we care about.
7065
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7066
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7067
AC_REQUIRE([AC_PROG_INSTALL])dnl
7068
# test to see if srcdir already configured
7069
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7070
test -f $srcdir/config.status; then
7071
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7074
# test whether we have cygpath
7075
if test -z "$CYGPATH_W"; then
7076
if (cygpath --version) >/dev/null 2>/dev/null; then
7077
CYGPATH_W='cygpath -w'
7082
AC_SUBST([CYGPATH_W])
7084
# Define the identity of the package.
7085
dnl Distinguish between old-style and new-style calls.
7087
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7088
AC_SUBST([PACKAGE], [$1])dnl
7089
AC_SUBST([VERSION], [$2])],
7090
[_AM_SET_OPTIONS([$1])dnl
7091
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7092
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7094
_AM_IF_OPTION([no-define],,
7095
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7096
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7098
# Some tools Automake needs.
7099
AC_REQUIRE([AM_SANITY_CHECK])dnl
7100
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7101
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7102
AM_MISSING_PROG(AUTOCONF, autoconf)
7103
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7104
AM_MISSING_PROG(AUTOHEADER, autoheader)
7105
AM_MISSING_PROG(MAKEINFO, makeinfo)
7106
AM_MISSING_PROG(AMTAR, tar)
7108
AM_PROG_INSTALL_STRIP
7109
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7110
# We need awk for the "check" target. The system "awk" is bad on
7112
AC_REQUIRE([AC_PROG_AWK])dnl
7113
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7114
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7116
_AM_IF_OPTION([no-dependencies],,
7117
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7118
[_AM_DEPENDENCIES(CC)],
7119
[define([AC_PROG_CC],
7120
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7121
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7122
[_AM_DEPENDENCIES(CXX)],
7123
[define([AC_PROG_CXX],
7124
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7129
# When config.status generates a header, we must update the stamp-h file.
7130
# This file resides in the same directory as the config header
7131
# that is generated. The stamp files are numbered to have different names.
7133
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7134
# loop where config.status creates the headers, so we can generate
7135
# our stamp files there.
7136
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7137
[# Compute $1's index in $config_headers.
7139
for _am_header in $config_headers :; do
7144
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7147
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7149
# AM_PROG_INSTALL_SH
7150
# ------------------
7151
# Define $install_sh.
7153
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7155
# This program is free software; you can redistribute it and/or modify
7156
# it under the terms of the GNU General Public License as published by
7157
# the Free Software Foundation; either version 2, or (at your option)
7158
# any later version.
7160
# This program is distributed in the hope that it will be useful,
7161
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7162
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7163
# GNU General Public License for more details.
7165
# You should have received a copy of the GNU General Public License
7166
# along with this program; if not, write to the Free Software
7167
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7170
AC_DEFUN([AM_PROG_INSTALL_SH],
7171
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7172
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7173
AC_SUBST(install_sh)])
7176
# Copyright (C) 2003 Free Software Foundation, Inc.
7178
# This program is free software; you can redistribute it and/or modify
7179
# it under the terms of the GNU General Public License as published by
7180
# the Free Software Foundation; either version 2, or (at your option)
7181
# any later version.
7183
# This program is distributed in the hope that it will be useful,
7184
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7185
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7186
# GNU General Public License for more details.
7188
# You should have received a copy of the GNU General Public License
7189
# along with this program; if not, write to the Free Software
7190
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7195
# Check whether the underlying file-system supports filenames
7196
# with a leading dot. For instance MS-DOS doesn't.
7197
AC_DEFUN([AM_SET_LEADING_DOT],
7198
[rm -rf .tst 2>/dev/null
7199
mkdir .tst 2>/dev/null
7200
if test -d .tst; then
7205
rmdir .tst 2>/dev/null
7206
AC_SUBST([am__leading_dot])])
7208
# Add --enable-maintainer-mode option to configure.
7211
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
7212
# Free Software Foundation, Inc.
7214
# This program is free software; you can redistribute it and/or modify
7215
# it under the terms of the GNU General Public License as published by
7216
# the Free Software Foundation; either version 2, or (at your option)
7217
# any later version.
7219
# This program is distributed in the hope that it will be useful,
7220
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7221
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7222
# GNU General Public License for more details.
7224
# You should have received a copy of the GNU General Public License
7225
# along with this program; if not, write to the Free Software
7226
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7231
AC_DEFUN([AM_MAINTAINER_MODE],
7232
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7233
dnl maintainer-mode is disabled by default
7234
AC_ARG_ENABLE(maintainer-mode,
7235
[ --enable-maintainer-mode enable make rules and dependencies not useful
7236
(and sometimes confusing) to the casual installer],
7237
USE_MAINTAINER_MODE=$enableval,
7238
USE_MAINTAINER_MODE=no)
7239
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7240
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7241
MAINT=$MAINTAINER_MODE_TRUE
7246
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7248
# Check to see how 'make' treats includes. -*- Autoconf -*-
7250
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7252
# This program is free software; you can redistribute it and/or modify
7253
# it under the terms of the GNU General Public License as published by
7254
# the Free Software Foundation; either version 2, or (at your option)
7255
# any later version.
7257
# This program is distributed in the hope that it will be useful,
7258
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7259
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7260
# GNU General Public License for more details.
7262
# You should have received a copy of the GNU General Public License
7263
# along with this program; if not, write to the Free Software
7264
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7271
# Check to see how make treats includes.
7272
AC_DEFUN([AM_MAKE_INCLUDE],
7273
[am_make=${MAKE-make}
7274
cat > confinc << 'END'
7279
# If we don't find an include directive, just comment out the code.
7280
AC_MSG_CHECKING([for style of include used by $am_make])
7284
# First try GNU make style include.
7285
echo "include confinc" > confmf
7286
# We grep out `Entering directory' and `Leaving directory'
7287
# messages which can occur if `w' ends up in MAKEFLAGS.
7288
# In particular we don't look at `^make:' because GNU make might
7289
# be invoked under some other name (usually "gmake"), in which
7290
# case it prints its new name instead of `make'.
7291
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7296
# Now try BSD make style include.
7297
if test "$am__include" = "#"; then
7298
echo '.include "confinc"' > confmf
7299
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7300
am__include=.include
7305
AC_SUBST([am__include])
7306
AC_SUBST([am__quote])
7307
AC_MSG_RESULT([$_am_result])
7308
rm -f confinc confmf
7314
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7316
# This program is free software; you can redistribute it and/or modify
7317
# it under the terms of the GNU General Public License as published by
7318
# the Free Software Foundation; either version 2, or (at your option)
7319
# any later version.
7321
# This program is distributed in the hope that it will be useful,
7322
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7323
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7324
# GNU General Public License for more details.
7326
# You should have received a copy of the GNU General Public License
7327
# along with this program; if not, write to the Free Software
7328
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7333
# AM_MISSING_PROG(NAME, PROGRAM)
7334
# ------------------------------
7335
AC_DEFUN([AM_MISSING_PROG],
7336
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7337
$1=${$1-"${am_missing_run}$2"}
7341
# AM_MISSING_HAS_RUN
7342
# ------------------
7343
# Define MISSING if not defined so far and test if it supports --run.
7344
# If it does, set am_missing_run to use it, otherwise, to nothing.
7345
AC_DEFUN([AM_MISSING_HAS_RUN],
7346
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7347
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7348
# Use eval to expand $SHELL
7349
if eval "$MISSING --run true"; then
7350
am_missing_run="$MISSING --run "
7353
AC_MSG_WARN([`missing' script is too old or missing])
7359
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7361
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
7363
# This program is free software; you can redistribute it and/or modify
7364
# it under the terms of the GNU General Public License as published by
7365
# the Free Software Foundation; either version 2, or (at your option)
7366
# any later version.
7368
# This program is distributed in the hope that it will be useful,
7369
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7370
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7371
# GNU General Public License for more details.
7373
# You should have received a copy of the GNU General Public License
7374
# along with this program; if not, write to the Free Software
7375
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7378
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7379
# created by `make install' are always world readable, even if the
7380
# installer happens to have an overly restrictive umask (e.g. 077).
7381
# This was a mistake. There are at least two reasons why we must not
7383
# - it causes special bits like SGID to be ignored,
7384
# - it may be too restrictive (some setups expect 775 directories).
7386
# Do not use -m 0755 and let people choose whatever they expect by
7389
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7390
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7391
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7392
# concurrently, both version can detect that a/ is missing, but only
7393
# one can create it and the other will error out. Consequently we
7394
# restrict ourselves to GNU make (using the --version option ensures
7396
AC_DEFUN([AM_PROG_MKDIR_P],
7397
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7398
# Keeping the `.' argument allows $(mkdir_p) to be used without
7399
# argument. Indeed, we sometimes output rules like
7400
# $(mkdir_p) $(somedir)
7401
# where $(somedir) is conditionally defined.
7402
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7403
# expensive solution, as it forces Make to start a sub-shell.)
7404
mkdir_p='mkdir -p -- .'
7406
# On NextStep and OpenStep, the `mkdir' command does not
7407
# recognize any option. It will interpret all options as
7408
# directories to create, and then abort because `.' already
7410
for d in ./-p ./--version;
7412
test -d $d && rmdir $d
7414
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7415
if test -f "$ac_aux_dir/mkinstalldirs"; then
7416
mkdir_p='$(mkinstalldirs)'
7418
mkdir_p='$(install_sh) -d'
7421
AC_SUBST([mkdir_p])])
7423
# Helper functions for option handling. -*- Autoconf -*-
7425
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7427
# This program is free software; you can redistribute it and/or modify
7428
# it under the terms of the GNU General Public License as published by
7429
# the Free Software Foundation; either version 2, or (at your option)
7430
# any later version.
7432
# This program is distributed in the hope that it will be useful,
7433
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7434
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7435
# GNU General Public License for more details.
7437
# You should have received a copy of the GNU General Public License
7438
# along with this program; if not, write to the Free Software
7439
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7444
# _AM_MANGLE_OPTION(NAME)
7445
# -----------------------
7446
AC_DEFUN([_AM_MANGLE_OPTION],
7447
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7449
# _AM_SET_OPTION(NAME)
7450
# ------------------------------
7451
# Set option NAME. Presently that only means defining a flag for this option.
7452
AC_DEFUN([_AM_SET_OPTION],
7453
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7455
# _AM_SET_OPTIONS(OPTIONS)
7456
# ----------------------------------
7457
# OPTIONS is a space-separated list of Automake options.
7458
AC_DEFUN([_AM_SET_OPTIONS],
7459
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7461
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7462
# -------------------------------------------
7463
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7464
AC_DEFUN([_AM_IF_OPTION],
7465
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7468
# Check to make sure that the build environment is sane.
7471
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7473
# This program is free software; you can redistribute it and/or modify
7474
# it under the terms of the GNU General Public License as published by
7475
# the Free Software Foundation; either version 2, or (at your option)
7476
# any later version.
7478
# This program is distributed in the hope that it will be useful,
7479
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7480
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7481
# GNU General Public License for more details.
7483
# You should have received a copy of the GNU General Public License
7484
# along with this program; if not, write to the Free Software
7485
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7492
AC_DEFUN([AM_SANITY_CHECK],
7493
[AC_MSG_CHECKING([whether build environment is sane])
7496
echo timestamp > conftest.file
7497
# Do `set' in a subshell so we don't clobber the current shell's
7498
# arguments. Must try -L first in case configure is actually a
7499
# symlink; some systems play weird games with the mod time of symlinks
7500
# (eg FreeBSD returns the mod time of the symlink's containing
7503
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7504
if test "$[*]" = "X"; then
7506
set X `ls -t $srcdir/configure conftest.file`
7509
if test "$[*]" != "X $srcdir/configure conftest.file" \
7510
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
7512
# If neither matched, then we have a broken ls. This can happen
7513
# if, for instance, CONFIG_SHELL is bash and it inherits a
7514
# broken ls alias from the environment. This has actually
7515
# happened. Such a system could not be considered "sane".
7516
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7517
alias in your environment])
7520
test "$[2]" = conftest.file
7526
AC_MSG_ERROR([newly created file is older than distributed files!
7527
Check your system clock])
7529
AC_MSG_RESULT(yes)])
7531
# AM_PROG_INSTALL_STRIP
7533
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7535
# This program is free software; you can redistribute it and/or modify
7536
# it under the terms of the GNU General Public License as published by
7537
# the Free Software Foundation; either version 2, or (at your option)
7538
# any later version.
7540
# This program is distributed in the hope that it will be useful,
7541
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7542
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7543
# GNU General Public License for more details.
7545
# You should have received a copy of the GNU General Public License
7546
# along with this program; if not, write to the Free Software
7547
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7550
# One issue with vendor `install' (even GNU) is that you can't
7551
# specify the program used to strip binaries. This is especially
7552
# annoying in cross-compiling environments, where the build's strip
7553
# is unlikely to handle the host's binaries.
7554
# Fortunately install-sh will honor a STRIPPROG variable, so we
7555
# always use install-sh in `make install-strip', and initialize
7556
# STRIPPROG with the value of the STRIP variable (set by the user).
7557
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7558
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7559
# Installed binaries are usually stripped using `strip' when the user
7560
# run `make install-strip'. However `strip' might not be the right
7561
# tool to use in cross-compilation environments, therefore Automake
7562
# will honor the `STRIP' environment variable to overrule this program.
7563
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7564
if test "$cross_compiling" != no; then
7565
AC_CHECK_TOOL([STRIP], [strip], :)
7567
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7568
AC_SUBST([INSTALL_STRIP_PROGRAM])])