~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-05-01 13:15:59 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070501131559-y8jos9wp79uf3pp4
Tags: 1.4.15-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Add fam/gamin stat cache engine support
  - Clean environment in init.d script
  - Replace Depends: on perl with Depends: on libterm-readline-perl-perl
  - Make sure that upgrades succeed, even if we can't restart lighttpd
  - DebianMaintainerField update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
14
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
20
 
16
 
# serial 47 AC_PROG_LIBTOOL
 
21
# serial 48 AC_PROG_LIBTOOL
17
22
 
18
23
 
19
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
143
148
default_ofile=libtool
144
149
can_build_shared=yes
145
150
 
146
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
151
# All known linkers require a `.a' archive for static linking (except MSVC,
147
152
# which needs '.lib').
148
153
libext=a
149
154
ltmain="$ac_aux_dir/ltmain.sh"
163
168
test -z "$AS" && AS=as
164
169
test -z "$CC" && CC=cc
165
170
test -z "$LTCC" && LTCC=$CC
 
171
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166
172
test -z "$DLLTOOL" && DLLTOOL=dlltool
167
173
test -z "$LD" && LD=ld
168
174
test -z "$LN_S" && LN_S="ln -s"
182
188
if test -n "$RANLIB"; then
183
189
  case $host_os in
184
190
  openbsd*)
185
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
191
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186
192
    ;;
187
193
  *)
188
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
194
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189
195
    ;;
190
196
  esac
191
197
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
233
239
# If no C compiler was specified, use CC.
234
240
LTCC=${LTCC-"$CC"}
235
241
 
 
242
# If no C compiler flags were specified, use CFLAGS.
 
243
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
244
 
236
245
# Allow CC to be a program name with arguments.
237
246
compiler=$CC
238
247
])# _LT_AC_SYS_COMPILER
261
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262
271
[ac_outfile=conftest.$ac_objext
263
272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
265
274
_lt_compiler_boilerplate=`cat conftest.err`
266
275
$rm conftest*
267
276
])# _LT_COMPILER_BOILERPLATE
274
283
AC_DEFUN([_LT_LINKER_BOILERPLATE],
275
284
[ac_outfile=conftest.$ac_objext
276
285
printf "$lt_simple_link_test_code" >conftest.$ac_ext
277
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
286
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278
287
_lt_linker_boilerplate=`cat conftest.err`
279
288
$rm conftest*
280
289
])# _LT_LINKER_BOILERPLATE
359
368
# find a string as large as possible, as long as the shell can cope with it
360
369
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
361
370
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
362
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
363
 
       echo_test_string="`eval $cmd`" &&
 
371
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
372
       echo_test_string=`eval $cmd` &&
364
373
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
365
374
    then
366
375
      break
529
538
  # Find out which ABI we are using.
530
539
  echo 'int i;' > conftest.$ac_ext
531
540
  if AC_TRY_EVAL(ac_compile); then
532
 
    case "`/usr/bin/file conftest.o`" in
 
541
    case `/usr/bin/file conftest.o` in
533
542
    *32-bit*)
534
543
      case $host in
535
544
        x86_64-*linux*)
580
589
    CFLAGS="$SAVE_CFLAGS"
581
590
  fi
582
591
  ;;
 
592
sparc*-*solaris*)
 
593
  # Find out which ABI we are using.
 
594
  echo 'int i;' > conftest.$ac_ext
 
595
  if AC_TRY_EVAL(ac_compile); then
 
596
    case `/usr/bin/file conftest.o` in
 
597
    *64-bit*)
 
598
      case $lt_cv_prog_gnu_ld in
 
599
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
600
      *)    LD="${LD-ld} -64" ;;
 
601
      esac
 
602
      ;;
 
603
    esac
 
604
  fi
 
605
  rm -rf conftest*
 
606
  ;;
 
607
 
583
608
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
584
609
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
585
610
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
611
636
   # with a dollar sign (not a hyphen), so the echo should work correctly.
612
637
   # The option is referenced via a variable to avoid confusing sed.
613
638
   lt_compile=`echo "$ac_compile" | $SED \
614
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
639
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
615
640
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
616
641
   -e 's:$: $lt_compiler_flag:'`
617
642
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
622
647
   if (exit $ac_status) && test -s "$ac_outfile"; then
623
648
     # The compiler can only warn and ignore the option if not recognized
624
649
     # So say no if there are warnings other than the usual output.
625
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
626
 
     $SED '/^$/d' conftest.err >conftest.er2
627
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
650
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
651
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
652
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
628
653
       $2=yes
629
654
     fi
630
655
   fi
650
675
   LDFLAGS="$LDFLAGS $3"
651
676
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
652
677
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
653
 
     # The compiler can only warn and ignore the option if not recognized
 
678
     # The linker can only warn and ignore the option if not recognized
654
679
     # So say no if there are warnings
655
680
     if test -s conftest.err; then
656
681
       # Append any errors to the config.log.
657
682
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
658
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
659
 
       $SED '/^$/d' conftest.err >conftest.er2
 
683
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
684
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
660
685
       if diff conftest.exp conftest.er2 >/dev/null; then
661
686
         $2=yes
662
687
       fi
725
750
    elif test -x /usr/sbin/sysctl; then
726
751
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
727
752
    else
728
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
753
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
729
754
    fi
730
755
    # And add a safety zone
731
756
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
757
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
733
758
    ;;
 
759
 
 
760
  interix*)
 
761
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
762
    lt_cv_sys_max_cmd_len=196608
 
763
    ;;
 
764
 
734
765
  osf*)
735
766
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
767
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
737
768
    # nice to cause kernel panics so lets avoid the loop below.
738
769
    # First set a reasonable default.
739
770
    lt_cv_sys_max_cmd_len=16384
740
 
    # 
 
771
    #
741
772
    if test -x /sbin/sysconfig; then
742
773
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
743
774
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
744
775
      esac
745
776
    fi
746
777
    ;;
 
778
  sco3.2v5*)
 
779
    lt_cv_sys_max_cmd_len=102400
 
780
    ;;
 
781
  sysv5* | sco5v6* | sysv4.2uw2*)
 
782
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
783
    if test -n "$kargmax"; then
 
784
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
785
    else
 
786
      lt_cv_sys_max_cmd_len=32768
 
787
    fi
 
788
    ;;
747
789
  *)
748
790
    # If test is not a shell built-in, we'll probably end up computing a
749
791
    # maximum length that is only half of the actual maximum length, but
775
817
 
776
818
 
777
819
# _LT_AC_CHECK_DLFCN
778
 
# --------------------
 
820
# ------------------
779
821
AC_DEFUN([_LT_AC_CHECK_DLFCN],
780
822
[AC_CHECK_HEADERS(dlfcn.h)dnl
781
823
])# _LT_AC_CHECK_DLFCN
783
825
 
784
826
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
785
827
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
786
 
# ------------------------------------------------------------------
 
828
# ---------------------------------------------------------------------
787
829
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
788
830
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
789
831
if test "$cross_compiling" = yes; then :
849
891
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
850
892
      /* dlclose (self); */
851
893
    }
 
894
  else
 
895
    puts (dlerror ());
852
896
 
853
897
    exit (status);
854
898
}]
855
899
EOF
856
900
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
857
 
    (./conftest; exit; ) 2>/dev/null
 
901
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
858
902
    lt_status=$?
859
903
    case x$lt_status in
860
904
      x$lt_dlno_uscore) $1 ;;
861
905
      x$lt_dlneed_uscore) $2 ;;
862
 
      x$lt_unknown|x*) $3 ;;
 
906
      x$lt_dlunknown|x*) $3 ;;
863
907
    esac
864
908
  else :
865
909
    # compilation failed
871
915
 
872
916
 
873
917
# AC_LIBTOOL_DLOPEN_SELF
874
 
# -------------------
 
918
# ----------------------
875
919
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
876
920
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
877
921
if test "x$enable_dlopen" != xyes; then
942
986
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
943
987
 
944
988
    save_LDFLAGS="$LDFLAGS"
945
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
989
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
946
990
 
947
991
    save_LIBS="$LIBS"
948
992
    LIBS="$lt_cv_dlopen_libs $LIBS"
955
999
    ])
956
1000
 
957
1001
    if test "x$lt_cv_dlopen_self" = xyes; then
958
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1002
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
959
1003
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
960
1004
          lt_cv_dlopen_self_static, [dnl
961
1005
          _LT_AC_TRY_DLOPEN_SELF(
1003
1047
   # Note that $ac_compile itself does not contain backslashes and begins
1004
1048
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1005
1049
   lt_compile=`echo "$ac_compile" | $SED \
1006
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1050
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1007
1051
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1008
1052
   -e 's:$: $lt_compiler_flag:'`
1009
1053
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1015
1059
   then
1016
1060
     # The compiler can only warn and ignore the option if not recognized
1017
1061
     # So say no if there are warnings
1018
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1019
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1020
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1062
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1063
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1064
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1021
1065
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1022
1066
     fi
1023
1067
   fi
1024
 
   chmod u+w .
 
1068
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1025
1069
   $rm conftest*
1026
1070
   # SGI C++ compiler will create directory out/ii_files/ for
1027
1071
   # template instantiation
1281
1325
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1282
1326
      dldir=$destdir/`dirname \$dlpath`~
1283
1327
      test -d \$dldir || mkdir -p \$dldir~
1284
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1328
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1329
      chmod a+x \$dldir/$dlname'
1285
1330
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1286
1331
      dlpath=$dir/\$dldll~
1287
1332
       $rm \$dlpath'
1334
1379
  soname_spec='${libname}${release}${major}$shared_ext'
1335
1380
  shlibpath_overrides_runpath=yes
1336
1381
  shlibpath_var=DYLD_LIBRARY_PATH
1337
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1382
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1338
1383
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1339
1384
  if test "$GCC" = yes; then
1340
1385
    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"`
1372
1417
freebsd* | dragonfly*)
1373
1418
  # DragonFly does not have aout.  When/if they implement a new
1374
1419
  # versioning mechanism, adjust this.
1375
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1420
  if test -x /usr/bin/objformat; then
 
1421
    objformat=`/usr/bin/objformat`
 
1422
  else
 
1423
    case $host_os in
 
1424
    freebsd[[123]]*) objformat=aout ;;
 
1425
    *) objformat=elf ;;
 
1426
    esac
 
1427
  fi
1376
1428
  version_type=freebsd-$objformat
1377
1429
  case $version_type in
1378
1430
    freebsd-elf*)
1394
1446
    shlibpath_overrides_runpath=yes
1395
1447
    hardcode_into_libs=yes
1396
1448
    ;;
1397
 
  *) # from 3.2 on
 
1449
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1450
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1398
1451
    shlibpath_overrides_runpath=no
1399
1452
    hardcode_into_libs=yes
1400
1453
    ;;
 
1454
  freebsd*) # from 4.6 on
 
1455
    shlibpath_overrides_runpath=yes
 
1456
    hardcode_into_libs=yes
 
1457
    ;;
1401
1458
  esac
1402
1459
  ;;
1403
1460
 
1417
1474
  version_type=sunos
1418
1475
  need_lib_prefix=no
1419
1476
  need_version=no
1420
 
  case "$host_cpu" in
 
1477
  case $host_cpu in
1421
1478
  ia64*)
1422
1479
    shrext_cmds='.so'
1423
1480
    hardcode_into_libs=yes
1457
1514
  postinstall_cmds='chmod 555 $lib'
1458
1515
  ;;
1459
1516
 
 
1517
interix3*)
 
1518
  version_type=linux
 
1519
  need_lib_prefix=no
 
1520
  need_version=no
 
1521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1522
  soname_spec='${libname}${release}${shared_ext}$major'
 
1523
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1524
  shlibpath_var=LD_LIBRARY_PATH
 
1525
  shlibpath_overrides_runpath=no
 
1526
  hardcode_into_libs=yes
 
1527
  ;;
 
1528
 
1460
1529
irix5* | irix6* | nonstopux*)
1461
1530
  case $host_os in
1462
1531
    nonstopux*) version_type=nonstopux ;;
1514
1583
  # before this can be enabled.
1515
1584
  hardcode_into_libs=yes
1516
1585
 
1517
 
  # find out which ABI we are using
1518
 
  libsuff=
1519
 
  case "$host_cpu" in
1520
 
  x86_64*|s390x*|powerpc64*)
1521
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1522
 
    if AC_TRY_EVAL(ac_compile); then
1523
 
      case `/usr/bin/file conftest.$ac_objext` in
1524
 
      *64-bit*)
1525
 
        libsuff=64
1526
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1527
 
        ;;
1528
 
      esac
1529
 
    fi
1530
 
    rm -rf conftest*
1531
 
    ;;
1532
 
  esac
1533
 
 
1534
1586
  # Append ld.so.conf contents to the search path
1535
1587
  if test -f /etc/ld.so.conf; then
1536
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1537
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1588
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1589
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1538
1590
  fi
1539
1591
 
1540
1592
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1595
1647
 
1596
1648
openbsd*)
1597
1649
  version_type=sunos
 
1650
  sys_lib_dlsearch_path_spec="/usr/lib"
1598
1651
  need_lib_prefix=no
1599
 
  need_version=no
 
1652
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1653
  case $host_os in
 
1654
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1655
    *)                         need_version=no  ;;
 
1656
  esac
1600
1657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1601
1658
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1602
1659
  shlibpath_var=LD_LIBRARY_PATH
1634
1691
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1635
1692
  ;;
1636
1693
 
1637
 
sco3.2v5*)
1638
 
  version_type=osf
1639
 
  soname_spec='${libname}${release}${shared_ext}$major'
1640
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1641
 
  shlibpath_var=LD_LIBRARY_PATH
1642
 
  ;;
1643
 
 
1644
1694
solaris*)
1645
1695
  version_type=linux
1646
1696
  need_lib_prefix=no
1666
1716
  need_version=yes
1667
1717
  ;;
1668
1718
 
1669
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1719
sysv4 | sysv4.3*)
1670
1720
  version_type=linux
1671
1721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1672
1722
  soname_spec='${libname}${release}${shared_ext}$major'
1699
1749
  fi
1700
1750
  ;;
1701
1751
 
 
1752
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1753
  version_type=freebsd-elf
 
1754
  need_lib_prefix=no
 
1755
  need_version=no
 
1756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1757
  soname_spec='${libname}${release}${shared_ext}$major'
 
1758
  shlibpath_var=LD_LIBRARY_PATH
 
1759
  hardcode_into_libs=yes
 
1760
  if test "$with_gnu_ld" = yes; then
 
1761
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1762
    shlibpath_overrides_runpath=no
 
1763
  else
 
1764
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1765
    shlibpath_overrides_runpath=yes
 
1766
    case $host_os in
 
1767
      sco3.2v5*)
 
1768
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1769
        ;;
 
1770
    esac
 
1771
  fi
 
1772
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1773
  ;;
 
1774
 
1702
1775
uts4*)
1703
1776
  version_type=linux
1704
1777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1712
1785
esac
1713
1786
AC_MSG_RESULT([$dynamic_linker])
1714
1787
test "$dynamic_linker" = no && can_build_shared=no
 
1788
 
 
1789
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1790
if test "$GCC" = yes; then
 
1791
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1792
fi
1715
1793
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1716
1794
 
1717
1795
 
1736
1814
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1737
1815
    fi
1738
1816
  fi
 
1817
  if test -z "$LTCFLAGS"; then
 
1818
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1819
  fi
1739
1820
 
1740
1821
  # Extract list of available tagged configurations in $ofile.
1741
1822
  # Note that this assumes the entire list is on one line.
1826
1907
 
1827
1908
# AC_LIBTOOL_WIN32_DLL
1828
1909
# --------------------
1829
 
# declare package support for building win32 dll's
 
1910
# declare package support for building win32 DLLs
1830
1911
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1831
1912
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1832
1913
])# AC_LIBTOOL_WIN32_DLL
1864
1945
 
1865
1946
# AC_DISABLE_SHARED
1866
1947
# -----------------
1867
 
#- set the default shared flag to --disable-shared
 
1948
# set the default shared flag to --disable-shared
1868
1949
AC_DEFUN([AC_DISABLE_SHARED],
1869
1950
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1870
1951
AC_ENABLE_SHARED(no)
2000
2081
      if test -n "$file_magic_test_file"; then
2001
2082
        case $deplibs_check_method in
2002
2083
        "file_magic "*)
2003
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2084
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2004
2085
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2005
2086
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2006
2087
            $EGREP "$file_magic_regex" > /dev/null; then
2110
2191
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2111
2192
      lt_cv_path_LD="$ac_dir/$ac_prog"
2112
2193
      # Check to see if the program is GNU ld.  I'd rather use --version,
2113
 
      # but apparently some GNU ld's only accept -v.
 
2194
      # but apparently some variants of GNU ld only accept -v.
2114
2195
      # Break only if it was the GNU/non-GNU ld that we prefer.
2115
2196
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2116
2197
      *GNU* | *'with BFD'*)
2142
2223
AC_DEFUN([AC_PROG_LD_GNU],
2143
2224
[AC_REQUIRE([AC_PROG_EGREP])dnl
2144
2225
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2145
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2226
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2146
2227
case `$LD -v 2>&1 </dev/null` in
2147
2228
*GNU* | *'with BFD'*)
2148
2229
  lt_cv_prog_gnu_ld=yes
2172
2253
case $host_os in
2173
2254
  darwin*)
2174
2255
    if test "$GCC" = yes; then
2175
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2256
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2176
2257
    else
2177
2258
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2178
2259
    fi
2256
2337
 
2257
2338
hpux10.20* | hpux11*)
2258
2339
  lt_cv_file_magic_cmd=/usr/bin/file
2259
 
  case "$host_cpu" in
 
2340
  case $host_cpu in
2260
2341
  ia64*)
2261
2342
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2262
2343
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2272
2353
  esac
2273
2354
  ;;
2274
2355
 
 
2356
interix3*)
 
2357
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2358
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2359
  ;;
 
2360
 
2275
2361
irix5* | irix6* | nonstopux*)
2276
2362
  case $LD in
2277
2363
  *-32|*"-32 ") libmagic=32-bit;;
2317
2403
  lt_cv_deplibs_check_method=pass_all
2318
2404
  ;;
2319
2405
 
2320
 
sco3.2v5*)
2321
 
  lt_cv_deplibs_check_method=pass_all
2322
 
  ;;
2323
 
 
2324
2406
solaris*)
2325
2407
  lt_cv_deplibs_check_method=pass_all
2326
2408
  ;;
2327
2409
 
2328
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2410
sysv4 | sysv4.3*)
2329
2411
  case $host_vendor in
2330
2412
  motorola)
2331
2413
    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]]'
2346
2428
  siemens)
2347
2429
    lt_cv_deplibs_check_method=pass_all
2348
2430
    ;;
 
2431
  pc)
 
2432
    lt_cv_deplibs_check_method=pass_all
 
2433
    ;;
2349
2434
  esac
2350
2435
  ;;
2351
2436
 
2352
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2437
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2353
2438
  lt_cv_deplibs_check_method=pass_all
2354
2439
  ;;
2355
2440
esac
2369
2454
  # Let the user override the test.
2370
2455
  lt_cv_path_NM="$NM"
2371
2456
else
2372
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2373
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2374
 
    IFS="$lt_save_ifs"
2375
 
    test -z "$ac_dir" && ac_dir=.
2376
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2377
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2378
 
      # Check to see if the nm accepts a BSD-compat flag.
2379
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2380
 
      #   nm: unknown option "B" ignored
2381
 
      # Tru64's nm complains that /dev/null is an invalid object file
2382
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2383
 
      */dev/null* | *'Invalid file or object type'*)
2384
 
        lt_cv_path_NM="$tmp_nm -B"
2385
 
        break
2386
 
        ;;
2387
 
      *)
2388
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2389
 
        */dev/null*)
2390
 
          lt_cv_path_NM="$tmp_nm -p"
 
2457
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2458
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2459
    lt_nm_to_check="$lt_nm_to_check nm"
 
2460
  fi
 
2461
  for lt_tmp_nm in $lt_nm_to_check; do
 
2462
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2463
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2464
      IFS="$lt_save_ifs"
 
2465
      test -z "$ac_dir" && ac_dir=.
 
2466
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2467
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2468
        # Check to see if the nm accepts a BSD-compat flag.
 
2469
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2470
        #   nm: unknown option "B" ignored
 
2471
        # Tru64's nm complains that /dev/null is an invalid object file
 
2472
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2473
        */dev/null* | *'Invalid file or object type'*)
 
2474
          lt_cv_path_NM="$tmp_nm -B"
2391
2475
          break
2392
2476
          ;;
2393
2477
        *)
2394
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2395
 
          continue # so that we can try to find one that supports BSD flags
 
2478
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2479
          */dev/null*)
 
2480
            lt_cv_path_NM="$tmp_nm -p"
 
2481
            break
 
2482
            ;;
 
2483
          *)
 
2484
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2485
            continue # so that we can try to find one that supports BSD flags
 
2486
            ;;
 
2487
          esac
2396
2488
          ;;
2397
2489
        esac
2398
 
      esac
2399
 
    fi
 
2490
      fi
 
2491
    done
 
2492
    IFS="$lt_save_ifs"
2400
2493
  done
2401
 
  IFS="$lt_save_ifs"
2402
2494
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2403
2495
fi])
2404
2496
NM="$lt_cv_path_NM"
2430
2522
# -----------------------------------
2431
2523
# sets LIBLTDL to the link flags for the libltdl convenience library and
2432
2524
# LTDLINCL to the include flags for the libltdl header and adds
2433
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2434
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2435
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2436
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2437
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2438
 
# flat and you're not using automake, define top_builddir and
2439
 
# top_srcdir appropriately in the Makefiles.
 
2525
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2526
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2527
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2528
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2529
# (note the single quotes!).  If your package is not flat and you're not
 
2530
# using automake, define top_builddir and top_srcdir appropriately in
 
2531
# the Makefiles.
2440
2532
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2441
2533
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2442
2534
  case $enable_ltdl_convenience in
2455
2547
# -----------------------------------
2456
2548
# sets LIBLTDL to the link flags for the libltdl installable library and
2457
2549
# LTDLINCL to the include flags for the libltdl header and adds
2458
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2459
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2460
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2461
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2462
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2463
 
# quotes!).  If your package is not flat and you're not using automake,
2464
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2550
# --enable-ltdl-install to the configure arguments.  Note that
 
2551
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2552
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2553
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2554
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2555
# flat and you're not using automake, define top_builddir and top_srcdir
 
2556
# appropriately in the Makefiles.
2465
2557
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2466
2558
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2467
2559
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2504
2596
])# _LT_AC_LANG_CXX
2505
2597
 
2506
2598
# _LT_AC_PROG_CXXCPP
2507
 
# ---------------
 
2599
# ------------------
2508
2600
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2509
2601
[
2510
2602
AC_REQUIRE([AC_PROG_CXX])
2553
2645
 
2554
2646
 
2555
2647
# AC_LIBTOOL_RC
2556
 
# --------------
 
2648
# -------------
2557
2649
# enable support for Windows resource files
2558
2650
AC_DEFUN([AC_LIBTOOL_RC],
2559
2651
[AC_REQUIRE([LT_AC_PROG_RC])
2590
2682
_LT_COMPILER_BOILERPLATE
2591
2683
_LT_LINKER_BOILERPLATE
2592
2684
 
2593
 
#
2594
 
# Check for any special shared library compilation flags.
2595
 
#
2596
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2597
 
if test "$GCC" = no; then
2598
 
  case $host_os in
2599
 
  sco3.2v5*)
2600
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2601
 
    ;;
2602
 
  esac
2603
 
fi
2604
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2605
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2606
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2607
 
  else
2608
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2609
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2610
 
  fi
2611
 
fi
2612
 
 
2613
 
 
2614
 
#
2615
 
# Check to make sure the static flag actually works.
2616
 
#
2617
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2618
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2619
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2620
 
  [],
2621
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2622
 
 
2623
 
 
2624
2685
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2625
2686
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2626
2687
AC_LIBTOOL_PROG_CC_C_O($1)
2629
2690
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2630
2691
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2631
2692
AC_LIBTOOL_SYS_LIB_STRIP
2632
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2693
AC_LIBTOOL_DLOPEN_SELF
2633
2694
 
2634
 
# Report which librarie types wil actually be built
 
2695
# Report which library types will actually be built
2635
2696
AC_MSG_CHECKING([if libtool supports shared libraries])
2636
2697
AC_MSG_RESULT([$can_build_shared])
2637
2698
 
2640
2701
 
2641
2702
# On AIX, shared libraries and static libraries use the same namespace, and
2642
2703
# are all built from PIC.
2643
 
case "$host_os" in
 
2704
case $host_os in
2644
2705
aix3*)
2645
2706
  test "$enable_shared" = yes && enable_static=no
2646
2707
  if test -n "$RANLIB"; then
2690
2751
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2691
2752
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2692
2753
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2754
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2693
2755
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2694
2756
_LT_AC_TAGVAR(module_cmds, $1)=
2695
2757
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2707
2769
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2708
2770
 
2709
2771
# Source file extension for C++ test sources.
2710
 
ac_ext=cc
 
2772
ac_ext=cpp
2711
2773
 
2712
2774
# Object file extension for compiled C++ test sources.
2713
2775
objext=o
2717
2779
lt_simple_compile_test_code="int some_variable = 0;\n"
2718
2780
 
2719
2781
# Code to be used in simple link tests
2720
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2782
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2721
2783
 
2722
2784
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2723
2785
_LT_AC_SYS_COMPILER
2736
2798
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2737
2799
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2738
2800
else
2739
 
  unset lt_cv_prog_gnu_ld
 
2801
  $as_unset lt_cv_prog_gnu_ld
2740
2802
fi
2741
2803
if test -n "${lt_cv_path_LDCXX+set}"; then
2742
2804
  lt_cv_path_LD=$lt_cv_path_LDCXX
2743
2805
else
2744
 
  unset lt_cv_path_LD
 
2806
  $as_unset lt_cv_path_LD
2745
2807
fi
2746
2808
test -z "${LDCXX+set}" || LD=$LDCXX
2747
2809
CC=${CXX-"c++"}
2836
2898
            ;;
2837
2899
          esac
2838
2900
        done
 
2901
        ;;
2839
2902
      esac
2840
2903
 
2841
2904
      exp_sym_flag='-bexport'
2873
2936
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2874
2937
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2875
2938
        fi
 
2939
        ;;
2876
2940
      esac
2877
2941
      shared_flag='-shared'
2878
2942
      if test "$aix_use_runtimelinking" = yes; then
2904
2968
      _LT_AC_SYS_LIBPATH_AIX
2905
2969
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2906
2970
 
2907
 
      _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"
 
2971
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2908
2972
     else
2909
2973
      if test "$host_cpu" = ia64; then
2910
2974
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2911
2975
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2912
 
        _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"
 
2976
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2913
2977
      else
2914
2978
        # Determine the default libpath from the value encoded in an empty executable.
2915
2979
        _LT_AC_SYS_LIBPATH_AIX
2918
2982
        # -berok will link without error, but may produce a broken library.
2919
2983
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2920
2984
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2921
 
        # -bexpall does not export symbols beginning with underscore (_)
2922
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2923
2985
        # Exported symbols can be pulled into shared objects from archives
2924
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2986
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2925
2987
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2926
 
        # This is similar to how AIX traditionally builds it's shared libraries.
2927
 
        _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'
 
2988
        # This is similar to how AIX traditionally builds its shared libraries.
 
2989
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2928
2990
      fi
2929
2991
    fi
2930
2992
    ;;
 
2993
 
 
2994
  beos*)
 
2995
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2996
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2997
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
2998
      # support --undefined.  This deserves some investigation.  FIXME
 
2999
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3000
    else
 
3001
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3002
    fi
 
3003
    ;;
 
3004
 
2931
3005
  chorus*)
2932
3006
    case $cc_basename in
2933
3007
      *)
2937
3011
    esac
2938
3012
    ;;
2939
3013
 
2940
 
 
2941
3014
  cygwin* | mingw* | pw32*)
2942
3015
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2943
3016
    # as there is no search path for DLLs.
2947
3020
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2948
3021
 
2949
3022
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2950
 
      _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'
 
3023
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2951
3024
      # If the export-symbols file already is a .def file (1st line
2952
3025
      # is EXPORTS), use it as is; otherwise, prepend...
2953
3026
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2956
3029
        echo EXPORTS > $output_objdir/$soname.def;
2957
3030
        cat $export_symbols >> $output_objdir/$soname.def;
2958
3031
      fi~
2959
 
      $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'
 
3032
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2960
3033
    else
2961
3034
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2962
3035
    fi
2963
3036
  ;;
2964
3037
      darwin* | rhapsody*)
2965
 
        case "$host_os" in
 
3038
        case $host_os in
2966
3039
        rhapsody* | darwin1.[[012]])
2967
3040
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2968
3041
         ;;
3000
3073
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3001
3074
        fi
3002
3075
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3003
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3076
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3004
3077
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3005
3078
            _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}'
3006
3079
          else
3013
3086
         output_verbose_link_cmd='echo'
3014
3087
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3015
3088
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3016
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3089
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3017
3090
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3018
3091
          _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}'
3019
3092
          ;;
3093
3166
    ;;
3094
3167
  hpux10*|hpux11*)
3095
3168
    if test $with_gnu_ld = no; then
3096
 
      case "$host_cpu" in
3097
 
      hppa*64*)
3098
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3169
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3170
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3171
 
 
3172
      case $host_cpu in
 
3173
      hppa*64*|ia64*)
3099
3174
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3100
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3101
 
        ;;
3102
 
      ia64*)
3103
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3104
3175
        ;;
3105
3176
      *)
3106
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3107
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
3177
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3109
3178
        ;;
3110
3179
      esac
3111
3180
    fi
3112
 
    case "$host_cpu" in
3113
 
    hppa*64*)
3114
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3115
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3116
 
      ;;
3117
 
    ia64*)
3118
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3119
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3120
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3121
 
                                              # but as the default
3122
 
                                              # location of the library.
 
3181
    case $host_cpu in
 
3182
    hppa*64*|ia64*)
 
3183
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3184
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3123
3185
      ;;
3124
3186
    *)
3125
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3135
3197
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3136
3198
        ;;
3137
3199
      aCC*)
3138
 
        case "$host_cpu" in
3139
 
        hppa*64*|ia64*)
3140
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3200
        case $host_cpu in
 
3201
        hppa*64*)
 
3202
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3203
          ;;
 
3204
        ia64*)
 
3205
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3141
3206
          ;;
3142
3207
        *)
3143
3208
          _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'
3156
3221
      *)
3157
3222
        if test "$GXX" = yes; then
3158
3223
          if test $with_gnu_ld = no; then
3159
 
            case "$host_cpu" in
3160
 
            ia64*|hppa*64*)
3161
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3224
            case $host_cpu in
 
3225
            hppa*64*)
 
3226
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3227
              ;;
 
3228
            ia64*)
 
3229
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3162
3230
              ;;
3163
3231
            *)
3164
3232
              _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'
3172
3240
        ;;
3173
3241
    esac
3174
3242
    ;;
 
3243
  interix3*)
 
3244
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3245
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3246
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3247
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3248
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3249
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3250
    # default) and relocated if they conflict, which is a slow very memory
 
3251
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3252
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3253
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3254
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3255
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3256
    ;;
3175
3257
  irix5* | irix6*)
3176
3258
    case $cc_basename in
3177
3259
      CC*)
3252
3334
        ;;
3253
3335
      pgCC*)
3254
3336
        # Portland Group C++ compiler
3255
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3256
 
        _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'
 
3337
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3338
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3257
3339
 
3258
3340
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3259
3341
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3260
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3342
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3261
3343
        ;;
3262
3344
      cxx*)
3263
3345
        # Compaq C++
3454
3536
    # FIXME: insert proper C++ library support
3455
3537
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3456
3538
    ;;
3457
 
  sco*)
3458
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3459
 
    case $cc_basename in
3460
 
      CC*)
3461
 
        # FIXME: insert proper C++ library support
3462
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3463
 
        ;;
3464
 
      *)
3465
 
        # FIXME: insert proper C++ library support
3466
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3467
 
        ;;
3468
 
    esac
3469
 
    ;;
3470
3539
  sunos4*)
3471
3540
    case $cc_basename in
3472
3541
      CC*)
3489
3558
    case $cc_basename in
3490
3559
      CC*)
3491
3560
        # Sun C++ 4.2, 5.x and Centerline C++
 
3561
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3492
3562
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3493
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3563
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3494
3564
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3495
 
        $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'
 
3565
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3496
3566
 
3497
3567
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3498
3568
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3512
3582
        esac
3513
3583
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3514
3584
 
3515
 
        # Commands to make compiler produce verbose output that lists
3516
 
        # what "hidden" libraries, object files and flags are used when
3517
 
        # linking a shared library.
3518
 
        #
3519
 
        # There doesn't appear to be a way to prevent this compiler from
3520
 
        # explicitly linking system object files so we need to strip them
3521
 
        # from the output so that they don't get included in the library
3522
 
        # dependencies.
3523
 
        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'
 
3585
        output_verbose_link_cmd='echo'
3524
3586
 
3525
3587
        # Archives containing C++ object files must be created using
3526
3588
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3566
3628
        ;;
3567
3629
    esac
3568
3630
    ;;
3569
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3570
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3631
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3632
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3633
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3634
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3635
    runpath_var='LD_RUN_PATH'
 
3636
 
 
3637
    case $cc_basename in
 
3638
      CC*)
 
3639
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3640
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3641
        ;;
 
3642
      *)
 
3643
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3644
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3645
        ;;
 
3646
    esac
 
3647
    ;;
 
3648
  sysv5* | sco3.2v5* | sco5v6*)
 
3649
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3650
    # link with -lc, and that would cause any symbols used from libc to
 
3651
    # always be unresolved, which means just about no library would
 
3652
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3653
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3654
    # as -z defs.
 
3655
    # For security reasons, it is highly recommended that you always
 
3656
    # use absolute paths for naming shared libraries, and exclude the
 
3657
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3658
    # requires that you compile everything twice, which is a pain.
 
3659
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3660
    # non-empty value in the environment.  Most likely only useful for
 
3661
    # creating official distributions of packages.
 
3662
    # This is a hack until libtool officially supports absolute path
 
3663
    # names for shared libraries.
 
3664
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3665
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3666
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3667
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3668
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3669
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3670
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3671
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3672
    runpath_var='LD_RUN_PATH'
 
3673
 
 
3674
    case $cc_basename in
 
3675
      CC*)
 
3676
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3677
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3678
        ;;
 
3679
      *)
 
3680
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3681
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3682
        ;;
 
3683
    esac
3571
3684
    ;;
3572
3685
  tandem*)
3573
3686
    case $cc_basename in
3604
3717
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3605
3718
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3606
3719
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3607
 
AC_LIBTOOL_SYS_LIB_STRIP
3608
 
AC_LIBTOOL_DLOPEN_SELF($1)
3609
3720
 
3610
3721
AC_LIBTOOL_CONFIG($1)
3611
3722
 
3623
3734
])# AC_LIBTOOL_LANG_CXX_CONFIG
3624
3735
 
3625
3736
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3626
 
# ------------------------
 
3737
# ------------------------------------
3627
3738
# Figure out "hidden" library dependencies from verbose
3628
3739
# compiler output when linking a shared library.
3629
3740
# Parse the compiler output and extract the necessary
3677
3788
  # The `*' in the case matches for architectures that use `case' in
3678
3789
  # $output_verbose_cmd can trigger glob expansion during the loop
3679
3790
  # eval without this substitution.
3680
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3791
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3681
3792
 
3682
3793
  for p in `eval $output_verbose_link_cmd`; do
3683
3794
    case $p in
3753
3864
 
3754
3865
$rm -f confest.$objext
3755
3866
 
 
3867
# PORTME: override above test on systems where it is broken
 
3868
ifelse([$1],[CXX],
 
3869
[case $host_os in
 
3870
interix3*)
 
3871
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3872
  # hack all around it, let's just trust "g++" to DTRT.
 
3873
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3874
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3875
  _LT_AC_TAGVAR(postdeps,$1)=
 
3876
  ;;
 
3877
 
 
3878
solaris*)
 
3879
  case $cc_basename in
 
3880
  CC*)
 
3881
    # Adding this requires a known-good setup of shared libraries for
 
3882
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3883
    # archive will be linked into the output, leading to subtle bugs.
 
3884
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3885
    ;;
 
3886
  esac
 
3887
  ;;
 
3888
esac
 
3889
])
 
3890
 
3756
3891
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3757
3892
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3758
3893
esac
3759
3894
])# AC_LIBTOOL_POSTDEP_PREDEP
3760
3895
 
3761
3896
# AC_LIBTOOL_LANG_F77_CONFIG
3762
 
# ------------------------
 
3897
# --------------------------
3763
3898
# Ensure that the configuration vars for the C compiler are
3764
3899
# suitably defined.  Those variables are subsequently used by
3765
3900
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3822
3957
 
3823
3958
# On AIX, shared libraries and static libraries use the same namespace, and
3824
3959
# are all built from PIC.
3825
 
case "$host_os" in
 
3960
case $host_os in
3826
3961
aix3*)
3827
3962
  test "$enable_shared" = yes && enable_static=no
3828
3963
  if test -n "$RANLIB"; then
3843
3978
test "$enable_shared" = yes || enable_static=yes
3844
3979
AC_MSG_RESULT([$enable_static])
3845
3980
 
3846
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3847
 
 
3848
3981
_LT_AC_TAGVAR(GCC, $1)="$G77"
3849
3982
_LT_AC_TAGVAR(LD, $1)="$LD"
3850
3983
 
3854
3987
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3855
3988
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3856
3989
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3857
 
AC_LIBTOOL_SYS_LIB_STRIP
3858
 
 
3859
3990
 
3860
3991
AC_LIBTOOL_CONFIG($1)
3861
3992
 
3912
4043
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3913
4044
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3914
4045
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3915
 
AC_LIBTOOL_SYS_LIB_STRIP
3916
 
AC_LIBTOOL_DLOPEN_SELF($1)
3917
4046
 
3918
4047
AC_LIBTOOL_CONFIG($1)
3919
4048
 
3923
4052
 
3924
4053
 
3925
4054
# AC_LIBTOOL_LANG_RC_CONFIG
3926
 
# --------------------------
 
4055
# -------------------------
3927
4056
# Ensure that the configuration vars for the Windows resource compiler are
3928
4057
# suitably defined.  Those variables are subsequently used by
3929
4058
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3986
4115
  # Now quote all the things that may contain metacharacters while being
3987
4116
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3988
4117
  # variables and quote the copies for generation of the libtool script.
3989
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4118
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3990
4119
    SED SHELL STRIP \
3991
4120
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3992
4121
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4155
4284
# A C compiler.
4156
4285
LTCC=$lt_LTCC
4157
4286
 
 
4287
# LTCC compiler flags.
 
4288
LTCFLAGS=$lt_LTCFLAGS
 
4289
 
4158
4290
# A language-specific compiler.
4159
4291
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4160
4292
 
4528
4660
osf*)
4529
4661
  symcode='[[BCDEGQRST]]'
4530
4662
  ;;
4531
 
solaris* | sysv5*)
 
4663
solaris*)
4532
4664
  symcode='[[BDRT]]'
4533
4665
  ;;
 
4666
sco3.2v5*)
 
4667
  symcode='[[DT]]'
 
4668
  ;;
 
4669
sysv4.2uw2*)
 
4670
  symcode='[[DT]]'
 
4671
  ;;
 
4672
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4673
  symcode='[[ABDT]]'
 
4674
  ;;
4534
4675
sysv4)
4535
4676
  symcode='[[DFNSTU]]'
4536
4677
  ;;
4713
4854
      # DJGPP does not support shared libraries at all
4714
4855
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4715
4856
      ;;
 
4857
    interix3*)
 
4858
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4859
      # Instead, we relocate shared libraries at runtime.
 
4860
      ;;
4716
4861
    sysv4*MP*)
4717
4862
      if test -d /usr/nec; then
4718
4863
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4721
4866
    hpux*)
4722
4867
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4723
4868
      # not for PA HP-UX.
4724
 
      case "$host_cpu" in
 
4869
      case $host_cpu in
4725
4870
      hppa*64*|ia64*)
4726
4871
        ;;
4727
4872
      *)
4782
4927
        case $cc_basename in
4783
4928
          CC*)
4784
4929
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4785
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4930
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4786
4931
            if test "$host_cpu" != ia64; then
4787
4932
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4788
4933
            fi
4789
4934
            ;;
4790
4935
          aCC*)
4791
4936
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4792
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4793
 
            case "$host_cpu" in
 
4937
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4938
            case $host_cpu in
4794
4939
            hppa*64*|ia64*)
4795
4940
              # +Z the default
4796
4941
              ;;
4803
4948
            ;;
4804
4949
        esac
4805
4950
        ;;
 
4951
      interix*)
 
4952
        # This is c89, which is MS Visual C++ (no shared libs)
 
4953
        # Anyone wants to do a port?
 
4954
        ;;
4806
4955
      irix5* | irix6* | nonstopux*)
4807
4956
        case $cc_basename in
4808
4957
          CC*)
4831
4980
            # Portland Group C++ compiler.
4832
4981
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4833
4982
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4834
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4983
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4835
4984
            ;;
4836
4985
          cxx*)
4837
4986
            # Compaq C++
4882
5031
        ;;
4883
5032
      psos*)
4884
5033
        ;;
4885
 
      sco*)
4886
 
        case $cc_basename in
4887
 
          CC*)
4888
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4889
 
            ;;
4890
 
          *)
4891
 
            ;;
4892
 
        esac
4893
 
        ;;
4894
5034
      solaris*)
4895
5035
        case $cc_basename in
4896
5036
          CC*)
4932
5072
            ;;
4933
5073
        esac
4934
5074
        ;;
4935
 
      unixware*)
 
5075
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5076
        case $cc_basename in
 
5077
          CC*)
 
5078
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5079
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5080
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5081
            ;;
 
5082
        esac
4936
5083
        ;;
4937
5084
      vxworks*)
4938
5085
        ;;
4979
5126
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4980
5127
      ;;
4981
5128
 
 
5129
    interix3*)
 
5130
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5131
      # Instead, we relocate shared libraries at runtime.
 
5132
      ;;
 
5133
 
4982
5134
    msdosdjgpp*)
4983
5135
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4984
5136
      # on systems that don't support them.
4995
5147
    hpux*)
4996
5148
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4997
5149
      # not for PA HP-UX.
4998
 
      case "$host_cpu" in
 
5150
      case $host_cpu in
4999
5151
      hppa*64*|ia64*)
5000
5152
        # +Z the default
5001
5153
        ;;
5042
5194
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5043
5195
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5044
5196
      # not for PA HP-UX.
5045
 
      case "$host_cpu" in
 
5197
      case $host_cpu in
5046
5198
      hppa*64*|ia64*)
5047
5199
        # +Z the default
5048
5200
        ;;
5072
5224
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5073
5225
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5074
5226
        ;;
5075
 
      pgcc* | pgf77* | pgf90*)
 
5227
      pgcc* | pgf77* | pgf90* | pgf95*)
5076
5228
        # Portland Group compilers (*not* the Pentium gcc compiler,
5077
5229
        # which looks to be a dead project)
5078
5230
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5079
5231
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5080
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5232
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5081
5233
        ;;
5082
5234
      ccc*)
5083
5235
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5093
5245
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5094
5246
      ;;
5095
5247
 
5096
 
    sco3.2v5*)
5097
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5098
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5099
 
      ;;
5100
 
 
5101
5248
    solaris*)
5102
5249
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5103
5250
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5115
5262
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5116
5263
      ;;
5117
5264
 
5118
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5265
    sysv4 | sysv4.2uw2* | sysv4.3*)
5119
5266
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5120
5267
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5121
5268
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5128
5275
      fi
5129
5276
      ;;
5130
5277
 
 
5278
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5279
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5280
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5281
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5282
      ;;
 
5283
 
5131
5284
    unicos*)
5132
5285
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5133
5286
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5160
5313
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5161
5314
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5162
5315
fi
5163
 
case "$host_os" in
 
5316
case $host_os in
5164
5317
  # For platforms which do not support PIC, -DPIC is meaningless:
5165
5318
  *djgpp*)
5166
5319
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5169
5322
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5170
5323
    ;;
5171
5324
esac
 
5325
 
 
5326
#
 
5327
# Check to make sure the static flag actually works.
 
5328
#
 
5329
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5330
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5331
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5332
  $lt_tmp_static_flag,
 
5333
  [],
 
5334
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5172
5335
])
5173
5336
 
5174
5337
 
5247
5410
      with_gnu_ld=no
5248
5411
    fi
5249
5412
    ;;
 
5413
  interix*)
 
5414
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5415
    with_gnu_ld=yes
 
5416
    ;;
5250
5417
  openbsd*)
5251
5418
    with_gnu_ld=no
5252
5419
    ;;
5256
5423
  if test "$with_gnu_ld" = yes; then
5257
5424
    # If archive_cmds runs LD, not CC, wlarc should be empty
5258
5425
    wlarc='${wl}'
5259
 
    
 
5426
 
5260
5427
    # Set some defaults for GNU ld with shared library support. These
5261
5428
    # are reset later if shared libraries are not supported. Putting them
5262
5429
    # here allows them to be overridden if necessary.
5277
5444
      *\ 2.11.*) ;; # other 2.11 versions
5278
5445
      *) supports_anon_versioning=yes ;;
5279
5446
    esac
5280
 
    
 
5447
 
5281
5448
    # See if GNU ld supports shared libraries.
5282
5449
    case $host_os in
5283
5450
    aix3* | aix4* | aix5*)
5331
5498
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5332
5499
 
5333
5500
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5334
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5501
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5335
5502
        # If the export-symbols file already is a .def file (1st line
5336
5503
        # is EXPORTS), use it as is; otherwise, prepend...
5337
5504
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5340
5507
          echo EXPORTS > $output_objdir/$soname.def;
5341
5508
          cat $export_symbols >> $output_objdir/$soname.def;
5342
5509
        fi~
5343
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5510
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5344
5511
      else
5345
5512
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5346
5513
      fi
5347
5514
      ;;
5348
5515
 
 
5516
    interix3*)
 
5517
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5518
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5519
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5520
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5521
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5522
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5523
      # default) and relocated if they conflict, which is a slow very memory
 
5524
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5525
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5526
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5527
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5528
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5529
      ;;
 
5530
 
5349
5531
    linux*)
5350
5532
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5351
5533
        tmp_addflag=
5352
5534
        case $cc_basename,$host_cpu in
5353
5535
        pgcc*)                          # Portland Group C compiler
5354
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5536
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5537
          tmp_addflag=' $pic_flag'
5355
5538
          ;;
5356
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
5357
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5358
 
          tmp_addflag=' -fpic -Mnomain' ;;
 
5539
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5540
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5541
          tmp_addflag=' $pic_flag -Mnomain' ;;
5359
5542
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5360
5543
          tmp_addflag=' -i_dynamic' ;;
5361
5544
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5386
5569
      fi
5387
5570
      ;;
5388
5571
 
5389
 
    solaris* | sysv5*)
 
5572
    solaris*)
5390
5573
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5391
5574
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5392
5575
        cat <<EOF 1>&2
5407
5590
      fi
5408
5591
      ;;
5409
5592
 
 
5593
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5594
      case `$LD -v 2>&1` in
 
5595
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5596
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5597
        cat <<_LT_EOF 1>&2
 
5598
 
 
5599
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5600
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5601
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5602
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5603
*** your PATH or compiler configuration so that the native linker is
 
5604
*** used, and then restart.
 
5605
 
 
5606
_LT_EOF
 
5607
        ;;
 
5608
        *)
 
5609
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5610
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5611
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5612
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5613
          else
 
5614
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5615
          fi
 
5616
        ;;
 
5617
      esac
 
5618
      ;;
 
5619
 
5410
5620
    sunos4*)
5411
5621
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5412
5622
      wlarc=
5440
5650
      # Note: this linker hardcodes the directories in LIBPATH if there
5441
5651
      # are no directories specified by -L.
5442
5652
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5443
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5653
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5444
5654
        # Neither direct hardcoding nor static linking is supported with a
5445
5655
        # broken collect2.
5446
5656
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5474
5684
            break
5475
5685
          fi
5476
5686
          done
 
5687
          ;;
5477
5688
        esac
5478
5689
 
5479
5690
        exp_sym_flag='-bexport'
5511
5722
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5512
5723
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5513
5724
          fi
 
5725
          ;;
5514
5726
        esac
5515
5727
        shared_flag='-shared'
5516
5728
        if test "$aix_use_runtimelinking" = yes; then
5523
5735
        # chokes on -Wl,-G. The following line is correct:
5524
5736
          shared_flag='-G'
5525
5737
        else
5526
 
        if test "$aix_use_runtimelinking" = yes; then
 
5738
          if test "$aix_use_runtimelinking" = yes; then
5527
5739
            shared_flag='${wl}-G'
5528
5740
          else
5529
5741
            shared_flag='${wl}-bM:SRE'
5530
 
        fi
 
5742
          fi
5531
5743
        fi
5532
5744
      fi
5533
5745
 
5541
5753
       # Determine the default libpath from the value encoded in an empty executable.
5542
5754
       _LT_AC_SYS_LIBPATH_AIX
5543
5755
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5544
 
        _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"
 
5756
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5545
5757
       else
5546
5758
        if test "$host_cpu" = ia64; then
5547
5759
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5548
5760
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5549
 
          _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"
 
5761
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5550
5762
        else
5551
5763
         # Determine the default libpath from the value encoded in an empty executable.
5552
5764
         _LT_AC_SYS_LIBPATH_AIX
5555
5767
          # -berok will link without error, but may produce a broken library.
5556
5768
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5557
5769
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5558
 
          # -bexpall does not export symbols beginning with underscore (_)
5559
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5560
5770
          # Exported symbols can be pulled into shared objects from archives
5561
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5771
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5562
5772
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5563
 
          # This is similar to how AIX traditionally builds it's shared libraries.
5564
 
          _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'
 
5773
          # This is similar to how AIX traditionally builds its shared libraries.
 
5774
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5565
5775
        fi
5566
5776
      fi
5567
5777
      ;;
5600
5810
      ;;
5601
5811
 
5602
5812
    darwin* | rhapsody*)
5603
 
      case "$host_os" in
 
5813
      case $host_os in
5604
5814
        rhapsody* | darwin1.[[012]])
5605
5815
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5606
5816
         ;;
5629
5839
        output_verbose_link_cmd='echo'
5630
5840
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5631
5841
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5632
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5842
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5633
5843
      _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}'
5634
5844
      _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}'
5635
5845
    else
5638
5848
         output_verbose_link_cmd='echo'
5639
5849
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5640
5850
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5641
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5851
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5642
5852
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5643
5853
          _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}'
5644
5854
          ;;
5702
5912
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5703
5913
      ;;
5704
5914
 
5705
 
    hpux10* | hpux11*)
5706
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5707
 
        case "$host_cpu" in
5708
 
        hppa*64*|ia64*)
 
5915
    hpux10*)
 
5916
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5917
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5918
      else
 
5919
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5920
      fi
 
5921
      if test "$with_gnu_ld" = no; then
 
5922
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5923
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5924
 
 
5925
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5926
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5927
 
 
5928
        # hardcode_minus_L: Not really in the search PATH,
 
5929
        # but as the default location of the library.
 
5930
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5931
      fi
 
5932
      ;;
 
5933
 
 
5934
    hpux11*)
 
5935
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5936
        case $host_cpu in
 
5937
        hppa*64*)
5709
5938
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5710
5939
          ;;
 
5940
        ia64*)
 
5941
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5942
          ;;
5711
5943
        *)
5712
5944
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5713
5945
          ;;
5714
5946
        esac
5715
5947
      else
5716
 
        case "$host_cpu" in
5717
 
        hppa*64*|ia64*)
5718
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5948
        case $host_cpu in
 
5949
        hppa*64*)
 
5950
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5951
          ;;
 
5952
        ia64*)
 
5953
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5719
5954
          ;;
5720
5955
        *)
5721
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5956
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5722
5957
          ;;
5723
5958
        esac
5724
5959
      fi
5725
5960
      if test "$with_gnu_ld" = no; then
5726
 
        case "$host_cpu" in
5727
 
        hppa*64*)
5728
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5961
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5962
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5963
 
 
5964
        case $host_cpu in
 
5965
        hppa*64*|ia64*)
5729
5966
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5730
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5731
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5732
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5733
 
          ;;
5734
 
        ia64*)
5735
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5736
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5737
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5738
 
 
5739
 
          # hardcode_minus_L: Not really in the search PATH,
5740
 
          # but as the default location of the library.
5741
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5968
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5742
5969
          ;;
5743
5970
        *)
5744
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5745
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5746
5971
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5747
5972
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5748
5973
 
5844
6069
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5845
6070
      ;;
5846
6071
 
5847
 
    sco3.2v5*)
5848
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5849
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5850
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5851
 
      runpath_var=LD_RUN_PATH
5852
 
      hardcode_runpath_var=yes
5853
 
      ;;
5854
 
 
5855
6072
    solaris*)
5856
6073
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5857
6074
      if test "$GCC" = yes; then
5937
6154
      fi
5938
6155
      ;;
5939
6156
 
5940
 
    sysv4.2uw2*)
5941
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5942
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5943
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5944
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5945
 
      hardcode_runpath_var=yes
5946
 
      runpath_var=LD_RUN_PATH
5947
 
      ;;
5948
 
 
5949
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5950
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5951
 
      if test "$GCC" = yes; then
5952
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5953
 
      else
5954
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5955
 
      fi
5956
 
      runpath_var='LD_RUN_PATH'
5957
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5958
 
      ;;
5959
 
 
5960
 
    sysv5*)
5961
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5962
 
      # $CC -shared without GNU ld will not create a library from C++
5963
 
      # object files and a static libstdc++, better avoid it by now
5964
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5966
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5967
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5968
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5969
 
      runpath_var='LD_RUN_PATH'
 
6157
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6158
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6159
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6160
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6161
      runpath_var='LD_RUN_PATH'
 
6162
 
 
6163
      if test "$GCC" = yes; then
 
6164
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6165
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6166
      else
 
6167
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6168
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6169
      fi
 
6170
      ;;
 
6171
 
 
6172
    sysv5* | sco3.2v5* | sco5v6*)
 
6173
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6174
      # link with -lc, and that would cause any symbols used from libc to
 
6175
      # always be unresolved, which means just about no library would
 
6176
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6177
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6178
      # as -z defs.
 
6179
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6180
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6181
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6182
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6183
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6184
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6185
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6186
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6187
      runpath_var='LD_RUN_PATH'
 
6188
 
 
6189
      if test "$GCC" = yes; then
 
6190
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6191
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6192
      else
 
6193
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6194
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6195
      fi
5970
6196
      ;;
5971
6197
 
5972
6198
    uts4*)
5984
6210
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5985
6211
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5986
6212
 
5987
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5988
 
if test "$GCC" = yes; then
5989
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5990
 
fi
5991
 
 
5992
6213
#
5993
6214
# Do we need to explicitly link libc?
5994
6215
#
6016
6237
        libobjs=conftest.$ac_objext
6017
6238
        deplibs=
6018
6239
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6240
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6019
6241
        compiler_flags=-v
6020
6242
        linker_flags=-v
6021
6243
        verstring=
6328
6550
fi[]dnl
6329
6551
])# PKG_CHECK_MODULES
6330
6552
 
6331
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6553
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6332
6554
#
6333
6555
# This file is free software; the Free Software Foundation
6334
6556
# gives unlimited permission to copy and/or distribute it,
6338
6560
# ----------------------------
6339
6561
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6340
6562
# generated from the m4 files accompanying Automake X.Y.
6341
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6563
# (This private macro should not be called outside this file.)
 
6564
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6565
[am__api_version='1.10'
 
6566
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6567
dnl require some minimum version.  Point them to the right macro.
 
6568
m4_if([$1], [1.10], [],
 
6569
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6570
])
 
6571
 
 
6572
# _AM_AUTOCONF_VERSION(VERSION)
 
6573
# -----------------------------
 
6574
# aclocal traces this macro to find the Autoconf version.
 
6575
# This is a private macro too.  Using m4_define simplifies
 
6576
# the logic in aclocal, which can simply ignore this definition.
 
6577
m4_define([_AM_AUTOCONF_VERSION], [])
6342
6578
 
6343
6579
# AM_SET_CURRENT_AUTOMAKE_VERSION
6344
6580
# -------------------------------
6345
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6581
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6346
6582
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6347
6583
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6348
 
         [AM_AUTOMAKE_VERSION([1.9.5])])
 
6584
[AM_AUTOMAKE_VERSION([1.10])dnl
 
6585
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6349
6586
 
6350
6587
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6351
6588
 
6402
6639
 
6403
6640
# AM_CONDITIONAL                                            -*- Autoconf -*-
6404
6641
 
6405
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6642
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6406
6643
# Free Software Foundation, Inc.
6407
6644
#
6408
6645
# This file is free software; the Free Software Foundation
6409
6646
# gives unlimited permission to copy and/or distribute it,
6410
6647
# with or without modifications, as long as this notice is preserved.
6411
6648
 
6412
 
# serial 7
 
6649
# serial 8
6413
6650
 
6414
6651
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6415
6652
# -------------------------------------
6418
6655
[AC_PREREQ(2.52)dnl
6419
6656
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6420
6657
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6421
 
AC_SUBST([$1_TRUE])
6422
 
AC_SUBST([$1_FALSE])
 
6658
AC_SUBST([$1_TRUE])dnl
 
6659
AC_SUBST([$1_FALSE])dnl
 
6660
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6661
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6423
6662
if $2; then
6424
6663
  $1_TRUE=
6425
6664
  $1_FALSE='#'
6433
6672
Usually this means the macro was only invoked conditionally.]])
6434
6673
fi])])
6435
6674
 
6436
 
 
6437
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6675
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6438
6676
# Free Software Foundation, Inc.
6439
6677
#
6440
6678
# This file is free software; the Free Software Foundation
6441
6679
# gives unlimited permission to copy and/or distribute it,
6442
6680
# with or without modifications, as long as this notice is preserved.
6443
6681
 
6444
 
# serial 8
 
6682
# serial 9
6445
6683
 
6446
6684
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6447
6685
# written in clear, in which case automake, when reading aclocal.m4,
6469
6707
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6470
6708
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6471
6709
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6710
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6472
6711
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6473
6712
                   [depcc="$$1"   am_compiler_list=])
6474
6713
 
6534
6773
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6535
6774
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6536
6775
         >/dev/null 2>conftest.err &&
 
6776
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6537
6777
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6538
6778
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6539
6779
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6586
6826
  AMDEPBACKSLASH='\'
6587
6827
fi
6588
6828
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6589
 
AC_SUBST([AMDEPBACKSLASH])
 
6829
AC_SUBST([AMDEPBACKSLASH])dnl
 
6830
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6590
6831
])
6591
6832
 
6592
6833
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6611
6852
  # some people rename them; so instead we look at the file content.
6612
6853
  # Grep'ing the first line is not enough: some people post-process
6613
6854
  # each Makefile.in and add a new line on top of each file to say so.
6614
 
  # So let's grep whole file.
6615
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6855
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6856
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6857
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6616
6858
    dirpart=`AS_DIRNAME("$mf")`
6617
6859
  else
6618
6860
    continue
6659
6901
 
6660
6902
# Do all the work for Automake.                             -*- Autoconf -*-
6661
6903
 
6662
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6663
 
# Free Software Foundation, Inc.
 
6904
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
6905
# 2005, 2006 Free Software Foundation, Inc.
6664
6906
#
6665
6907
# This file is free software; the Free Software Foundation
6666
6908
# gives unlimited permission to copy and/or distribute it,
6683
6925
# arguments mandatory, and then we can depend on a new Autoconf
6684
6926
# release and drop the old call support.
6685
6927
AC_DEFUN([AM_INIT_AUTOMAKE],
6686
 
[AC_PREREQ([2.58])dnl
 
6928
[AC_PREREQ([2.60])dnl
6687
6929
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6688
6930
dnl the ones we care about.
6689
6931
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6690
6932
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6691
6933
AC_REQUIRE([AC_PROG_INSTALL])dnl
6692
 
# test to see if srcdir already configured
6693
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6694
 
   test -f $srcdir/config.status; then
6695
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6934
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
6935
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
6936
  # is not polluted with repeated "-I."
 
6937
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
6938
  # test to see if srcdir already configured
 
6939
  if test -f $srcdir/config.status; then
 
6940
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6941
  fi
6696
6942
fi
6697
6943
 
6698
6944
# test whether we have cygpath
6712
6958
 AC_SUBST([PACKAGE], [$1])dnl
6713
6959
 AC_SUBST([VERSION], [$2])],
6714
6960
[_AM_SET_OPTIONS([$1])dnl
 
6961
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
6962
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
6963
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6715
6964
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6716
6965
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6717
6966
 
6747
6996
                  [_AM_DEPENDENCIES(CXX)],
6748
6997
                  [define([AC_PROG_CXX],
6749
6998
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
6999
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7000
                  [_AM_DEPENDENCIES(OBJC)],
 
7001
                  [define([AC_PROG_OBJC],
 
7002
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6750
7003
])
6751
7004
])
6752
7005
 
6782
7035
# Define $install_sh.
6783
7036
AC_DEFUN([AM_PROG_INSTALL_SH],
6784
7037
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6785
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7038
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6786
7039
AC_SUBST(install_sh)])
6787
7040
 
6788
7041
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
6889
7142
 
6890
7143
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
6891
7144
 
6892
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7145
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6893
7146
# Free Software Foundation, Inc.
6894
7147
#
6895
7148
# This file is free software; the Free Software Foundation
6896
7149
# gives unlimited permission to copy and/or distribute it,
6897
7150
# with or without modifications, as long as this notice is preserved.
6898
7151
 
6899
 
# serial 4
 
7152
# serial 5
6900
7153
 
6901
7154
# AM_MISSING_PROG(NAME, PROGRAM)
6902
7155
# ------------------------------
6912
7165
# If it does, set am_missing_run to use it, otherwise, to nothing.
6913
7166
AC_DEFUN([AM_MISSING_HAS_RUN],
6914
7167
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7168
AC_REQUIRE_AUX_FILE([missing])dnl
6915
7169
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6916
7170
# Use eval to expand $SHELL
6917
7171
if eval "$MISSING --run true"; then
6922
7176
fi
6923
7177
])
6924
7178
 
6925
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7179
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6926
7180
#
6927
7181
# This file is free software; the Free Software Foundation
6928
7182
# gives unlimited permission to copy and/or distribute it,
6930
7184
 
6931
7185
# AM_PROG_MKDIR_P
6932
7186
# ---------------
6933
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6934
 
#
6935
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6936
 
# created by `make install' are always world readable, even if the
6937
 
# installer happens to have an overly restrictive umask (e.g. 077).
6938
 
# This was a mistake.  There are at least two reasons why we must not
6939
 
# use `-m 0755':
6940
 
#   - it causes special bits like SGID to be ignored,
6941
 
#   - it may be too restrictive (some setups expect 775 directories).
6942
 
#
6943
 
# Do not use -m 0755 and let people choose whatever they expect by
6944
 
# setting umask.
6945
 
#
6946
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6947
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6948
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6949
 
# concurrently, both version can detect that a/ is missing, but only
6950
 
# one can create it and the other will error out.  Consequently we
6951
 
# restrict ourselves to GNU make (using the --version option ensures
6952
 
# this.)
 
7187
# Check for `mkdir -p'.
6953
7188
AC_DEFUN([AM_PROG_MKDIR_P],
6954
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6955
 
  # We used to keeping the `.' as first argument, in order to
6956
 
  # allow $(mkdir_p) to be used without argument.  As in
6957
 
  #   $(mkdir_p) $(somedir)
6958
 
  # where $(somedir) is conditionally defined.  However this is wrong
6959
 
  # for two reasons:
6960
 
  #  1. if the package is installed by a user who cannot write `.'
6961
 
  #     make install will fail,
6962
 
  #  2. the above comment should most certainly read
6963
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
6964
 
  #     so it does not work when $(somedir) is undefined and
6965
 
  #     $(DESTDIR) is not.
6966
 
  #  To support the latter case, we have to write
6967
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6968
 
  #  so the `.' trick is pointless.
6969
 
  mkdir_p='mkdir -p --'
6970
 
else
6971
 
  # On NextStep and OpenStep, the `mkdir' command does not
6972
 
  # recognize any option.  It will interpret all options as
6973
 
  # directories to create, and then abort because `.' already
6974
 
  # exists.
6975
 
  for d in ./-p ./--version;
6976
 
  do
6977
 
    test -d $d && rmdir $d
6978
 
  done
6979
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6980
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
6981
 
    mkdir_p='$(mkinstalldirs)'
6982
 
  else
6983
 
    mkdir_p='$(install_sh) -d'
6984
 
  fi
6985
 
fi
6986
 
AC_SUBST([mkdir_p])])
 
7189
[AC_PREREQ([2.60])dnl
 
7190
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7191
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7192
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7193
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7194
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7195
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7196
dnl adjustment using top_builddir (which is defined more often than
 
7197
dnl MKDIR_P).
 
7198
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7199
case $mkdir_p in
 
7200
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7201
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7202
esac
 
7203
])
6987
7204
 
6988
7205
# Helper functions for option handling.                     -*- Autoconf -*-
6989
7206
 
7018
7235
AC_DEFUN([_AM_IF_OPTION],
7019
7236
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7020
7237
 
7021
 
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
 
7238
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
7022
7239
# Free Software Foundation, Inc.
7023
7240
#
7024
7241
# This file is free software; the Free Software Foundation
7025
7242
# gives unlimited permission to copy and/or distribute it,
7026
7243
# with or without modifications, as long as this notice is preserved.
7027
7244
 
7028
 
# serial 4
 
7245
# serial 5
7029
7246
 
7030
7247
AC_DEFUN([AM_C_PROTOTYPES],
7031
7248
[AC_REQUIRE([AC_C_PROTOTYPES])
7036
7253
fi
7037
7254
# Ensure some checks needed by ansi2knr itself.
7038
7255
AC_REQUIRE([AC_HEADER_STDC])
7039
 
AC_CHECK_HEADERS(string.h)
7040
 
AC_SUBST(U)dnl
7041
 
AC_SUBST(ANSI2KNR)dnl
 
7256
AC_CHECK_HEADERS([string.h])
 
7257
AC_SUBST([U])dnl
 
7258
AC_SUBST([ANSI2KNR])dnl
 
7259
_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
7042
7260
])
7043
7261
 
7044
7262
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
7120
7338
if test "$cross_compiling" != no; then
7121
7339
  AC_CHECK_TOOL([STRIP], [strip], :)
7122
7340
fi
7123
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7341
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7124
7342
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7125
7343
 
 
7344
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7345
#
 
7346
# This file is free software; the Free Software Foundation
 
7347
# gives unlimited permission to copy and/or distribute it,
 
7348
# with or without modifications, as long as this notice is preserved.
 
7349
 
 
7350
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7351
# ---------------------------
 
7352
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
7353
# This macro is traced by Automake.
 
7354
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7355
 
7126
7356
# Check how to create a tarball.                            -*- Autoconf -*-
7127
7357
 
7128
7358
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.