~ubuntu-branches/ubuntu/gutsy/exif/gutsy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-05-25 14:28:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070525142803-j3jml8oeonhliemq
Tags: 0.6.15-1
* New upstream release.
* debian/compat: set to 5
* debian/control: updated debhelper build-depends to 5.0.0
* debian/control: added autotools-dev as build-depends to get newer
  config.sub and config.guess

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
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
17
 
# Debian $Rev: 203 $
 
21
# serial 48 AC_PROG_LIBTOOL
18
22
 
19
23
 
20
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
124
128
 
125
129
# Sed substitution that helps us do robust quoting.  It backslashifies
126
130
# metacharacters that are still active within double-quoted strings.
127
 
Xsed='sed -e s/^X//'
 
131
Xsed='sed -e 1s/^X//'
128
132
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129
133
 
130
134
# Same as above, but do not quote variable references.
144
148
default_ofile=libtool
145
149
can_build_shared=yes
146
150
 
147
 
# 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,
148
152
# which needs '.lib').
149
153
libext=a
150
154
ltmain="$ac_aux_dir/ltmain.sh"
164
168
test -z "$AS" && AS=as
165
169
test -z "$CC" && CC=cc
166
170
test -z "$LTCC" && LTCC=$CC
 
171
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167
172
test -z "$DLLTOOL" && DLLTOOL=dlltool
168
173
test -z "$LD" && LD=ld
169
174
test -z "$LN_S" && LN_S="ln -s"
183
188
if test -n "$RANLIB"; then
184
189
  case $host_os in
185
190
  openbsd*)
186
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
191
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187
192
    ;;
188
193
  *)
189
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
194
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190
195
    ;;
191
196
  esac
192
197
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193
198
fi
194
199
 
 
200
_LT_CC_BASENAME([$compiler])
 
201
 
195
202
# Only perform the check for file, if the check method requires it
196
203
case $deplibs_check_method in
197
204
file_magic*)
232
239
# If no C compiler was specified, use CC.
233
240
LTCC=${LTCC-"$CC"}
234
241
 
 
242
# If no C compiler flags were specified, use CFLAGS.
 
243
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
244
 
235
245
# Allow CC to be a program name with arguments.
236
246
compiler=$CC
237
247
])# _LT_AC_SYS_COMPILER
238
248
 
239
249
 
 
250
# _LT_CC_BASENAME(CC)
 
251
# -------------------
 
252
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
253
AC_DEFUN([_LT_CC_BASENAME],
 
254
[for cc_temp in $1""; do
 
255
  case $cc_temp in
 
256
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
257
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
258
    \-*) ;;
 
259
    *) break;;
 
260
  esac
 
261
done
 
262
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
263
])
 
264
 
 
265
 
 
266
# _LT_COMPILER_BOILERPLATE
 
267
# ------------------------
 
268
# Check for compiler boilerplate output or warnings with
 
269
# the simple compiler test code.
 
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
271
[ac_outfile=conftest.$ac_objext
 
272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
274
_lt_compiler_boilerplate=`cat conftest.err`
 
275
$rm conftest*
 
276
])# _LT_COMPILER_BOILERPLATE
 
277
 
 
278
 
 
279
# _LT_LINKER_BOILERPLATE
 
280
# ----------------------
 
281
# Check for linker boilerplate output or warnings with
 
282
# the simple link test code.
 
283
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
284
[ac_outfile=conftest.$ac_objext
 
285
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
286
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
287
_lt_linker_boilerplate=`cat conftest.err`
 
288
$rm conftest*
 
289
])# _LT_LINKER_BOILERPLATE
 
290
 
 
291
 
240
292
# _LT_AC_SYS_LIBPATH_AIX
241
293
# ----------------------
242
294
# Links a minimal program and checks the executable
309
361
 
310
362
# The HP-UX ksh and POSIX shell print the target directory to stdout
311
363
# if CDPATH is set.
312
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
364
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313
365
 
314
366
if test -z "$ECHO"; then
315
367
if test "X${echo_test_string+set}" != Xset; then
316
368
# find a string as large as possible, as long as the shell can cope with it
317
369
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318
370
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
320
 
       echo_test_string="`eval $cmd`" &&
 
371
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
372
       echo_test_string=`eval $cmd` &&
321
373
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322
374
    then
323
375
      break
486
538
  # Find out which ABI we are using.
487
539
  echo 'int i;' > conftest.$ac_ext
488
540
  if AC_TRY_EVAL(ac_compile); then
489
 
    case "`/usr/bin/file conftest.o`" in
 
541
    case `/usr/bin/file conftest.o` in
490
542
    *32-bit*)
491
543
      case $host in
492
544
        x86_64-*linux*)
537
589
    CFLAGS="$SAVE_CFLAGS"
538
590
  fi
539
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
 
540
608
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541
609
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542
610
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
568
636
   # with a dollar sign (not a hyphen), so the echo should work correctly.
569
637
   # The option is referenced via a variable to avoid confusing sed.
570
638
   lt_compile=`echo "$ac_compile" | $SED \
571
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
639
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572
640
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573
641
   -e 's:$: $lt_compiler_flag:'`
574
642
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
578
646
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579
647
   if (exit $ac_status) && test -s "$ac_outfile"; then
580
648
     # The compiler can only warn and ignore the option if not recognized
581
 
     # So say no if there are warnings
582
 
     if test ! -s conftest.err; then
 
649
     # So say no if there are warnings other than the usual output.
 
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
583
653
       $2=yes
584
654
     fi
585
655
   fi
605
675
   LDFLAGS="$LDFLAGS $3"
606
676
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
607
677
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608
 
     # 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
609
679
     # So say no if there are warnings
610
680
     if test -s conftest.err; then
611
681
       # Append any errors to the config.log.
612
682
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
683
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
684
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
685
       if diff conftest.exp conftest.er2 >/dev/null; then
 
686
         $2=yes
 
687
       fi
613
688
     else
614
689
       $2=yes
615
690
     fi
668
743
    lt_cv_sys_max_cmd_len=8192;
669
744
    ;;
670
745
 
671
 
 *)
 
746
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
747
    # This has been around since 386BSD, at least.  Likely further.
 
748
    if test -x /sbin/sysctl; then
 
749
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
750
    elif test -x /usr/sbin/sysctl; then
 
751
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
752
    else
 
753
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
754
    fi
 
755
    # And add a safety zone
 
756
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
757
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
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
 
 
765
  osf*)
 
766
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
767
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
768
    # nice to cause kernel panics so lets avoid the loop below.
 
769
    # First set a reasonable default.
 
770
    lt_cv_sys_max_cmd_len=16384
 
771
    #
 
772
    if test -x /sbin/sysconfig; then
 
773
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
774
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
775
      esac
 
776
    fi
 
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
    ;;
 
789
  *)
672
790
    # If test is not a shell built-in, we'll probably end up computing a
673
791
    # maximum length that is only half of the actual maximum length, but
674
792
    # we can't tell.
675
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
793
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
794
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
795
               = "XX$teststring") >/dev/null 2>&1 &&
677
796
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
797
            lt_cv_sys_max_cmd_len=$new_result &&
698
817
 
699
818
 
700
819
# _LT_AC_CHECK_DLFCN
701
 
# --------------------
 
820
# ------------------
702
821
AC_DEFUN([_LT_AC_CHECK_DLFCN],
703
822
[AC_CHECK_HEADERS(dlfcn.h)dnl
704
823
])# _LT_AC_CHECK_DLFCN
706
825
 
707
826
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708
827
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709
 
# ------------------------------------------------------------------
 
828
# ---------------------------------------------------------------------
710
829
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711
830
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712
831
if test "$cross_compiling" = yes; then :
772
891
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773
892
      /* dlclose (self); */
774
893
    }
 
894
  else
 
895
    puts (dlerror ());
775
896
 
776
897
    exit (status);
777
898
}]
778
899
EOF
779
900
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780
 
    (./conftest; exit; ) 2>/dev/null
 
901
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781
902
    lt_status=$?
782
903
    case x$lt_status in
783
904
      x$lt_dlno_uscore) $1 ;;
784
905
      x$lt_dlneed_uscore) $2 ;;
785
 
      x$lt_unknown|x*) $3 ;;
 
906
      x$lt_dlunknown|x*) $3 ;;
786
907
    esac
787
908
  else :
788
909
    # compilation failed
794
915
 
795
916
 
796
917
# AC_LIBTOOL_DLOPEN_SELF
797
 
# -------------------
 
918
# ----------------------
798
919
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799
920
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800
921
if test "x$enable_dlopen" != xyes; then
865
986
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866
987
 
867
988
    save_LDFLAGS="$LDFLAGS"
868
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
989
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869
990
 
870
991
    save_LIBS="$LIBS"
871
992
    LIBS="$lt_cv_dlopen_libs $LIBS"
878
999
    ])
879
1000
 
880
1001
    if test "x$lt_cv_dlopen_self" = xyes; then
881
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1002
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
882
1003
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883
1004
          lt_cv_dlopen_self_static, [dnl
884
1005
          _LT_AC_TRY_DLOPEN_SELF(
926
1047
   # Note that $ac_compile itself does not contain backslashes and begins
927
1048
   # with a dollar sign (not a hyphen), so the echo should work correctly.
928
1049
   lt_compile=`echo "$ac_compile" | $SED \
929
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1050
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930
1051
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931
1052
   -e 's:$: $lt_compiler_flag:'`
932
1053
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
938
1059
   then
939
1060
     # The compiler can only warn and ignore the option if not recognized
940
1061
     # So say no if there are warnings
941
 
     if test ! -s out/conftest.err; 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
942
1065
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943
1066
     fi
944
1067
   fi
945
 
   chmod u+w .
 
1068
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
946
1069
   $rm conftest*
947
1070
   # SGI C++ compiler will create directory out/ii_files/ for
948
1071
   # template instantiation
1006
1129
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007
1130
_LT_AC_TAGVAR(hardcode_action, $1)=
1008
1131
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1010
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1132
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1133
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011
1134
 
1012
1135
  # We can hardcode non-existant directories.
1013
1136
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1174
1297
  shlibpath_var=LIBRARY_PATH
1175
1298
  ;;
1176
1299
 
1177
 
bsdi4*)
 
1300
bsdi[[45]]*)
1178
1301
  version_type=linux
1179
1302
  need_version=no
1180
1303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1202
1325
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203
1326
      dldir=$destdir/`dirname \$dlpath`~
1204
1327
      test -d \$dldir || mkdir -p \$dldir~
1205
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1328
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1329
      chmod a+x \$dldir/$dlname'
1206
1330
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207
1331
      dlpath=$dir/\$dldll~
1208
1332
       $rm \$dlpath'
1232
1356
      ;;
1233
1357
    pw32*)
1234
1358
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1235
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1359
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236
1360
      ;;
1237
1361
    esac
1238
1362
    ;;
1255
1379
  soname_spec='${libname}${release}${major}$shared_ext'
1256
1380
  shlibpath_overrides_runpath=yes
1257
1381
  shlibpath_var=DYLD_LIBRARY_PATH
1258
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1382
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259
1383
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260
1384
  if test "$GCC" = yes; then
1261
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"`
1290
1414
  dynamic_linker='GNU ld.so'
1291
1415
  ;;
1292
1416
 
1293
 
freebsd*)
1294
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1417
freebsd* | dragonfly*)
 
1418
  # DragonFly does not have aout.  When/if they implement a new
 
1419
  # versioning mechanism, adjust this.
 
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
1295
1428
  version_type=freebsd-$objformat
1296
1429
  case $version_type in
1297
1430
    freebsd-elf*)
1309
1442
  freebsd2*)
1310
1443
    shlibpath_overrides_runpath=yes
1311
1444
    ;;
1312
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1445
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313
1446
    shlibpath_overrides_runpath=yes
1314
1447
    hardcode_into_libs=yes
1315
1448
    ;;
1316
 
  *) # from 3.2 on
 
1449
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1450
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1317
1451
    shlibpath_overrides_runpath=no
1318
1452
    hardcode_into_libs=yes
1319
1453
    ;;
 
1454
  freebsd*) # from 4.6 on
 
1455
    shlibpath_overrides_runpath=yes
 
1456
    hardcode_into_libs=yes
 
1457
    ;;
1320
1458
  esac
1321
1459
  ;;
1322
1460
 
1336
1474
  version_type=sunos
1337
1475
  need_lib_prefix=no
1338
1476
  need_version=no
1339
 
  case "$host_cpu" in
 
1477
  case $host_cpu in
1340
1478
  ia64*)
1341
1479
    shrext_cmds='.so'
1342
1480
    hardcode_into_libs=yes
1376
1514
  postinstall_cmds='chmod 555 $lib'
1377
1515
  ;;
1378
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
 
1379
1529
irix5* | irix6* | nonstopux*)
1380
1530
  case $host_os in
1381
1531
    nonstopux*) version_type=nonstopux ;;
1433
1583
  # before this can be enabled.
1434
1584
  hardcode_into_libs=yes
1435
1585
 
 
1586
  # find out which ABI we are using
 
1587
  libsuff=
 
1588
  case "$host_cpu" in
 
1589
  x86_64*|s390x*|powerpc64*)
 
1590
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1591
    if AC_TRY_EVAL(ac_compile); then
 
1592
      case `/usr/bin/file conftest.$ac_objext` in
 
1593
      *64-bit*)
 
1594
        libsuff=64
 
1595
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
1596
        ;;
 
1597
      esac
 
1598
    fi
 
1599
    rm -rf conftest*
 
1600
    ;;
 
1601
  esac
 
1602
 
1436
1603
  # Append ld.so.conf contents to the search path
1437
1604
  if test -f /etc/ld.so.conf; then
1438
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1439
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1605
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1606
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1440
1607
  fi
1441
1608
 
1442
1609
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1497
1664
 
1498
1665
openbsd*)
1499
1666
  version_type=sunos
 
1667
  sys_lib_dlsearch_path_spec="/usr/lib"
1500
1668
  need_lib_prefix=no
1501
 
  need_version=yes
 
1669
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1670
  case $host_os in
 
1671
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1672
    *)                         need_version=no  ;;
 
1673
  esac
1502
1674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1503
1675
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1504
1676
  shlibpath_var=LD_LIBRARY_PATH
1536
1708
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1537
1709
  ;;
1538
1710
 
1539
 
sco3.2v5*)
1540
 
  version_type=osf
1541
 
  soname_spec='${libname}${release}${shared_ext}$major'
1542
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1543
 
  shlibpath_var=LD_LIBRARY_PATH
1544
 
  ;;
1545
 
 
1546
1711
solaris*)
1547
1712
  version_type=linux
1548
1713
  need_lib_prefix=no
1568
1733
  need_version=yes
1569
1734
  ;;
1570
1735
 
1571
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1736
sysv4 | sysv4.3*)
1572
1737
  version_type=linux
1573
1738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1574
1739
  soname_spec='${libname}${release}${shared_ext}$major'
1601
1766
  fi
1602
1767
  ;;
1603
1768
 
 
1769
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1770
  version_type=freebsd-elf
 
1771
  need_lib_prefix=no
 
1772
  need_version=no
 
1773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1774
  soname_spec='${libname}${release}${shared_ext}$major'
 
1775
  shlibpath_var=LD_LIBRARY_PATH
 
1776
  hardcode_into_libs=yes
 
1777
  if test "$with_gnu_ld" = yes; then
 
1778
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1779
    shlibpath_overrides_runpath=no
 
1780
  else
 
1781
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1782
    shlibpath_overrides_runpath=yes
 
1783
    case $host_os in
 
1784
      sco3.2v5*)
 
1785
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1786
        ;;
 
1787
    esac
 
1788
  fi
 
1789
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1790
  ;;
 
1791
 
1604
1792
uts4*)
1605
1793
  version_type=linux
1606
1794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1614
1802
esac
1615
1803
AC_MSG_RESULT([$dynamic_linker])
1616
1804
test "$dynamic_linker" = no && can_build_shared=no
 
1805
 
 
1806
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1807
if test "$GCC" = yes; then
 
1808
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1809
fi
1617
1810
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1618
1811
 
1619
1812
 
1638
1831
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1639
1832
    fi
1640
1833
  fi
 
1834
  if test -z "$LTCFLAGS"; then
 
1835
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1836
  fi
1641
1837
 
1642
1838
  # Extract list of available tagged configurations in $ofile.
1643
1839
  # Note that this assumes the entire list is on one line.
1664
1860
 
1665
1861
      case $tagname in
1666
1862
      CXX)
1667
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1863
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1864
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1865
            (test "X$CXX" != "Xg++"))) ; then
1668
1866
          AC_LIBTOOL_LANG_CXX_CONFIG
1669
1867
        else
1670
1868
          tagname=""
1726
1924
 
1727
1925
# AC_LIBTOOL_WIN32_DLL
1728
1926
# --------------------
1729
 
# declare package support for building win32 dll's
 
1927
# declare package support for building win32 DLLs
1730
1928
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1731
1929
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1732
1930
])# AC_LIBTOOL_WIN32_DLL
1764
1962
 
1765
1963
# AC_DISABLE_SHARED
1766
1964
# -----------------
1767
 
#- set the default shared flag to --disable-shared
 
1965
# set the default shared flag to --disable-shared
1768
1966
AC_DEFUN([AC_DISABLE_SHARED],
1769
1967
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1770
1968
AC_ENABLE_SHARED(no)
1900
2098
      if test -n "$file_magic_test_file"; then
1901
2099
        case $deplibs_check_method in
1902
2100
        "file_magic "*)
1903
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2101
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1904
2102
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1905
2103
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1906
2104
            $EGREP "$file_magic_regex" > /dev/null; then
2010
2208
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2011
2209
      lt_cv_path_LD="$ac_dir/$ac_prog"
2012
2210
      # Check to see if the program is GNU ld.  I'd rather use --version,
2013
 
      # but apparently some GNU ld's only accept -v.
 
2211
      # but apparently some variants of GNU ld only accept -v.
2014
2212
      # Break only if it was the GNU/non-GNU ld that we prefer.
2015
2213
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2016
2214
      *GNU* | *'with BFD'*)
2042
2240
AC_DEFUN([AC_PROG_LD_GNU],
2043
2241
[AC_REQUIRE([AC_PROG_EGREP])dnl
2044
2242
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2045
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2243
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2046
2244
case `$LD -v 2>&1 </dev/null` in
2047
2245
*GNU* | *'with BFD'*)
2048
2246
  lt_cv_prog_gnu_ld=yes
2069
2267
*) reload_flag=" $reload_flag" ;;
2070
2268
esac
2071
2269
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2270
case $host_os in
 
2271
  darwin*)
 
2272
    if test "$GCC" = yes; then
 
2273
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2274
    else
 
2275
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2276
    fi
 
2277
    ;;
 
2278
esac
2072
2279
])# AC_PROG_LD_RELOAD_FLAG
2073
2280
 
2074
2281
 
2102
2309
  lt_cv_deplibs_check_method=pass_all
2103
2310
  ;;
2104
2311
 
2105
 
bsdi4*)
 
2312
bsdi[[45]]*)
2106
2313
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2107
2314
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2108
2315
  lt_cv_file_magic_test_file=/shlib/libc.so
2125
2332
  lt_cv_deplibs_check_method=pass_all
2126
2333
  ;;
2127
2334
 
2128
 
freebsd* | kfreebsd*-gnu)
 
2335
freebsd* | kfreebsd*-gnu | dragonfly*)
2129
2336
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2130
2337
    case $host_cpu in
2131
2338
    i*86 )
2132
2339
      # Not sure whether the presence of OpenBSD here was a mistake.
2133
2340
      # Let's accept both of them until this is cleared up.
2134
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2341
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2135
2342
      lt_cv_file_magic_cmd=/usr/bin/file
2136
2343
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2137
2344
      ;;
2147
2354
 
2148
2355
hpux10.20* | hpux11*)
2149
2356
  lt_cv_file_magic_cmd=/usr/bin/file
2150
 
  case "$host_cpu" in
 
2357
  case $host_cpu in
2151
2358
  ia64*)
2152
2359
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2153
2360
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2163
2370
  esac
2164
2371
  ;;
2165
2372
 
 
2373
interix3*)
 
2374
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2375
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2376
  ;;
 
2377
 
2166
2378
irix5* | irix6* | nonstopux*)
2167
2379
  case $LD in
2168
2380
  *-32|*"-32 ") libmagic=32-bit;;
2178
2390
  lt_cv_deplibs_check_method=pass_all
2179
2391
  ;;
2180
2392
 
2181
 
netbsd* | knetbsd*-gnu)
 
2393
netbsd*)
2182
2394
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2183
2395
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2184
2396
  else
2197
2409
  ;;
2198
2410
 
2199
2411
openbsd*)
2200
 
  lt_cv_file_magic_cmd=/usr/bin/file
2201
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2202
2412
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2203
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2413
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2204
2414
  else
2205
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2415
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2206
2416
  fi
2207
2417
  ;;
2208
2418
 
2210
2420
  lt_cv_deplibs_check_method=pass_all
2211
2421
  ;;
2212
2422
 
2213
 
sco3.2v5*)
2214
 
  lt_cv_deplibs_check_method=pass_all
2215
 
  ;;
2216
 
 
2217
2423
solaris*)
2218
2424
  lt_cv_deplibs_check_method=pass_all
2219
2425
  ;;
2220
2426
 
2221
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2427
sysv4 | sysv4.3*)
2222
2428
  case $host_vendor in
2223
2429
  motorola)
2224
2430
    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]]'
2239
2445
  siemens)
2240
2446
    lt_cv_deplibs_check_method=pass_all
2241
2447
    ;;
 
2448
  pc)
 
2449
    lt_cv_deplibs_check_method=pass_all
 
2450
    ;;
2242
2451
  esac
2243
2452
  ;;
2244
2453
 
2245
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2454
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2246
2455
  lt_cv_deplibs_check_method=pass_all
2247
2456
  ;;
2248
2457
esac
2262
2471
  # Let the user override the test.
2263
2472
  lt_cv_path_NM="$NM"
2264
2473
else
2265
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2266
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2267
 
    IFS="$lt_save_ifs"
2268
 
    test -z "$ac_dir" && ac_dir=.
2269
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2270
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2271
 
      # Check to see if the nm accepts a BSD-compat flag.
2272
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2273
 
      #   nm: unknown option "B" ignored
2274
 
      # Tru64's nm complains that /dev/null is an invalid object file
2275
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2276
 
      */dev/null* | *'Invalid file or object type'*)
2277
 
        lt_cv_path_NM="$tmp_nm -B"
2278
 
        break
2279
 
        ;;
2280
 
      *)
2281
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2282
 
        */dev/null*)
2283
 
          lt_cv_path_NM="$tmp_nm -p"
 
2474
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2475
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2476
    lt_nm_to_check="$lt_nm_to_check nm"
 
2477
  fi
 
2478
  for lt_tmp_nm in $lt_nm_to_check; do
 
2479
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2480
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2481
      IFS="$lt_save_ifs"
 
2482
      test -z "$ac_dir" && ac_dir=.
 
2483
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2484
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2485
        # Check to see if the nm accepts a BSD-compat flag.
 
2486
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2487
        #   nm: unknown option "B" ignored
 
2488
        # Tru64's nm complains that /dev/null is an invalid object file
 
2489
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2490
        */dev/null* | *'Invalid file or object type'*)
 
2491
          lt_cv_path_NM="$tmp_nm -B"
2284
2492
          break
2285
2493
          ;;
2286
2494
        *)
2287
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2288
 
          continue # so that we can try to find one that supports BSD flags
 
2495
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2496
          */dev/null*)
 
2497
            lt_cv_path_NM="$tmp_nm -p"
 
2498
            break
 
2499
            ;;
 
2500
          *)
 
2501
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2502
            continue # so that we can try to find one that supports BSD flags
 
2503
            ;;
 
2504
          esac
2289
2505
          ;;
2290
2506
        esac
2291
 
      esac
2292
 
    fi
 
2507
      fi
 
2508
    done
 
2509
    IFS="$lt_save_ifs"
2293
2510
  done
2294
 
  IFS="$lt_save_ifs"
2295
2511
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2296
2512
fi])
2297
2513
NM="$lt_cv_path_NM"
2323
2539
# -----------------------------------
2324
2540
# sets LIBLTDL to the link flags for the libltdl convenience library and
2325
2541
# LTDLINCL to the include flags for the libltdl header and adds
2326
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2327
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2328
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2329
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2330
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2331
 
# flat and you're not using automake, define top_builddir and
2332
 
# top_srcdir appropriately in the Makefiles.
 
2542
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2543
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2544
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2545
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2546
# (note the single quotes!).  If your package is not flat and you're not
 
2547
# using automake, define top_builddir and top_srcdir appropriately in
 
2548
# the Makefiles.
2333
2549
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2334
2550
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2335
2551
  case $enable_ltdl_convenience in
2348
2564
# -----------------------------------
2349
2565
# sets LIBLTDL to the link flags for the libltdl installable library and
2350
2566
# LTDLINCL to the include flags for the libltdl header and adds
2351
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2352
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2353
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2354
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2355
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2356
 
# quotes!).  If your package is not flat and you're not using automake,
2357
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2567
# --enable-ltdl-install to the configure arguments.  Note that
 
2568
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2569
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2570
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2571
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2572
# flat and you're not using automake, define top_builddir and top_srcdir
 
2573
# appropriately in the Makefiles.
2358
2574
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2359
2575
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2360
2576
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2392
2608
# ---------------
2393
2609
AC_DEFUN([_LT_AC_LANG_CXX],
2394
2610
[AC_REQUIRE([AC_PROG_CXX])
2395
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2611
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2396
2612
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2397
2613
])# _LT_AC_LANG_CXX
2398
2614
 
 
2615
# _LT_AC_PROG_CXXCPP
 
2616
# ------------------
 
2617
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2618
[
 
2619
AC_REQUIRE([AC_PROG_CXX])
 
2620
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2621
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2622
    (test "X$CXX" != "Xg++"))) ; then
 
2623
  AC_PROG_CXXCPP
 
2624
fi
 
2625
])# _LT_AC_PROG_CXXCPP
2399
2626
 
2400
2627
# AC_LIBTOOL_F77
2401
2628
# --------------
2435
2662
 
2436
2663
 
2437
2664
# AC_LIBTOOL_RC
2438
 
# --------------
 
2665
# -------------
2439
2666
# enable support for Windows resource files
2440
2667
AC_DEFUN([AC_LIBTOOL_RC],
2441
2668
[AC_REQUIRE([LT_AC_PROG_RC])
2468
2695
 
2469
2696
_LT_AC_SYS_COMPILER
2470
2697
 
2471
 
#
2472
 
# Check for any special shared library compilation flags.
2473
 
#
2474
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2475
 
if test "$GCC" = no; then
2476
 
  case $host_os in
2477
 
  sco3.2v5*)
2478
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2479
 
    ;;
2480
 
  esac
2481
 
fi
2482
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2483
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2484
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2485
 
  else
2486
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2487
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2488
 
  fi
2489
 
fi
2490
 
 
2491
 
 
2492
 
#
2493
 
# Check to make sure the static flag actually works.
2494
 
#
2495
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2496
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2497
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2498
 
  [],
2499
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2500
 
 
 
2698
# save warnings/boilerplate of simple test code
 
2699
_LT_COMPILER_BOILERPLATE
 
2700
_LT_LINKER_BOILERPLATE
2501
2701
 
2502
2702
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2503
2703
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2507
2707
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2508
2708
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2509
2709
AC_LIBTOOL_SYS_LIB_STRIP
2510
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2710
AC_LIBTOOL_DLOPEN_SELF
2511
2711
 
2512
 
# Report which librarie types wil actually be built
 
2712
# Report which library types will actually be built
2513
2713
AC_MSG_CHECKING([if libtool supports shared libraries])
2514
2714
AC_MSG_RESULT([$can_build_shared])
2515
2715
 
2518
2718
 
2519
2719
# On AIX, shared libraries and static libraries use the same namespace, and
2520
2720
# are all built from PIC.
2521
 
case "$host_os" in
 
2721
case $host_os in
2522
2722
aix3*)
2523
2723
  test "$enable_shared" = yes && enable_static=no
2524
2724
  if test -n "$RANLIB"; then
2531
2731
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2532
2732
    test "$enable_shared" = yes && enable_static=no
2533
2733
  fi
2534
 
  ;;
2535
 
  darwin* | rhapsody*)
2536
 
  if test "$GCC" = yes; then
2537
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2538
 
    case "$host_os" in
2539
 
    rhapsody* | darwin1.[[012]])
2540
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2541
 
      ;;
2542
 
    *) # Darwin 1.3 on
2543
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2544
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2545
 
      else
2546
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2547
 
          10.[[012]])
2548
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2549
 
            ;;
2550
 
          10.*)
2551
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2552
 
            ;;
2553
 
        esac
2554
 
      fi
2555
 
      ;;
2556
 
    esac
2557
 
    output_verbose_link_cmd='echo'
2558
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2559
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2560
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2561
 
    _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}'
2562
 
    _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}'
2563
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2564
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2565
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2566
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2567
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2568
 
  else
2569
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2570
 
  fi
2571
2734
    ;;
2572
2735
esac
2573
2736
AC_MSG_RESULT([$enable_shared])
2593
2756
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2594
2757
[AC_LANG_PUSH(C++)
2595
2758
AC_REQUIRE([AC_PROG_CXX])
2596
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2759
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2597
2760
 
2598
2761
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2599
2762
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2605
2768
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2606
2769
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2607
2770
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2771
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2608
2772
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2609
2773
_LT_AC_TAGVAR(module_cmds, $1)=
2610
2774
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2622
2786
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2623
2787
 
2624
2788
# Source file extension for C++ test sources.
2625
 
ac_ext=cc
 
2789
ac_ext=cpp
2626
2790
 
2627
2791
# Object file extension for compiled C++ test sources.
2628
2792
objext=o
2632
2796
lt_simple_compile_test_code="int some_variable = 0;\n"
2633
2797
 
2634
2798
# Code to be used in simple link tests
2635
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2799
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2636
2800
 
2637
2801
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2638
2802
_LT_AC_SYS_COMPILER
2639
2803
 
 
2804
# save warnings/boilerplate of simple test code
 
2805
_LT_COMPILER_BOILERPLATE
 
2806
_LT_LINKER_BOILERPLATE
 
2807
 
2640
2808
# Allow CC to be a program name with arguments.
2641
2809
lt_save_CC=$CC
2642
2810
lt_save_LD=$LD
2647
2815
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2648
2816
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2649
2817
else
2650
 
  unset lt_cv_prog_gnu_ld
 
2818
  $as_unset lt_cv_prog_gnu_ld
2651
2819
fi
2652
2820
if test -n "${lt_cv_path_LDCXX+set}"; then
2653
2821
  lt_cv_path_LD=$lt_cv_path_LDCXX
2654
2822
else
2655
 
  unset lt_cv_path_LD
 
2823
  $as_unset lt_cv_path_LD
2656
2824
fi
2657
2825
test -z "${LDCXX+set}" || LD=$LDCXX
2658
2826
CC=${CXX-"c++"}
2659
2827
compiler=$CC
2660
2828
_LT_AC_TAGVAR(compiler, $1)=$CC
2661
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2829
_LT_CC_BASENAME([$compiler])
2662
2830
 
2663
2831
# We don't want -fno-exception wen compiling C++ code, so set the
2664
2832
# no_builtin_flag separately
2747
2915
            ;;
2748
2916
          esac
2749
2917
        done
 
2918
        ;;
2750
2919
      esac
2751
2920
 
2752
2921
      exp_sym_flag='-bexport'
2765
2934
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2766
2935
 
2767
2936
    if test "$GXX" = yes; then
2768
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2937
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2769
2938
      # We only want to do this on AIX 4.2 and lower, the check
2770
2939
      # below for broken collect2 doesn't work under 4.3+
2771
2940
        collect2name=`${CC} -print-prog-name=collect2`
2784
2953
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2785
2954
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2786
2955
        fi
 
2956
        ;;
2787
2957
      esac
2788
2958
      shared_flag='-shared'
 
2959
      if test "$aix_use_runtimelinking" = yes; then
 
2960
        shared_flag="$shared_flag "'${wl}-G'
 
2961
      fi
2789
2962
    else
2790
2963
      # not using gcc
2791
2964
      if test "$host_cpu" = ia64; then
2812
2985
      _LT_AC_SYS_LIBPATH_AIX
2813
2986
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2814
2987
 
2815
 
      _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"
 
2988
      _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"
2816
2989
     else
2817
2990
      if test "$host_cpu" = ia64; then
2818
2991
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2819
2992
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2820
 
        _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"
 
2993
        _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"
2821
2994
      else
2822
2995
        # Determine the default libpath from the value encoded in an empty executable.
2823
2996
        _LT_AC_SYS_LIBPATH_AIX
2826
2999
        # -berok will link without error, but may produce a broken library.
2827
3000
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2828
3001
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2829
 
        # -bexpall does not export symbols beginning with underscore (_)
2830
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2831
3002
        # Exported symbols can be pulled into shared objects from archives
2832
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3003
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2833
3004
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2834
 
        # This is similar to how AIX traditionally builds it's shared libraries.
2835
 
        _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'
 
3005
        # This is similar to how AIX traditionally builds its shared libraries.
 
3006
        _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'
2836
3007
      fi
2837
3008
    fi
2838
3009
    ;;
 
3010
 
 
3011
  beos*)
 
3012
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3013
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3014
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3015
      # support --undefined.  This deserves some investigation.  FIXME
 
3016
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3017
    else
 
3018
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3019
    fi
 
3020
    ;;
 
3021
 
2839
3022
  chorus*)
2840
3023
    case $cc_basename in
2841
3024
      *)
2854
3037
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2855
3038
 
2856
3039
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2857
 
      _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'
 
3040
      _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'
2858
3041
      # If the export-symbols file already is a .def file (1st line
2859
3042
      # is EXPORTS), use it as is; otherwise, prepend...
2860
3043
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2863
3046
        echo EXPORTS > $output_objdir/$soname.def;
2864
3047
        cat $export_symbols >> $output_objdir/$soname.def;
2865
3048
      fi~
2866
 
      $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'
 
3049
      $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'
2867
3050
    else
2868
3051
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2869
3052
    fi
2870
3053
  ;;
2871
 
 
2872
 
  darwin* | rhapsody*)
2873
 
  if test "$GXX" = yes; then
2874
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2875
 
    case "$host_os" in
2876
 
    rhapsody* | darwin1.[[012]])
2877
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2878
 
      ;;
2879
 
    *) # Darwin 1.3 on
2880
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2881
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2882
 
      else
2883
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2884
 
          10.[[012]])
2885
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2886
 
            ;;
2887
 
          10.*)
2888
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2889
 
            ;;
 
3054
      darwin* | rhapsody*)
 
3055
        case $host_os in
 
3056
        rhapsody* | darwin1.[[012]])
 
3057
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3058
         ;;
 
3059
       *) # Darwin 1.3 on
 
3060
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3061
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3062
         else
 
3063
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3064
             10.[[012]])
 
3065
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3066
               ;;
 
3067
             10.*)
 
3068
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3069
               ;;
 
3070
           esac
 
3071
         fi
 
3072
         ;;
2890
3073
        esac
2891
 
      fi
2892
 
      ;;
2893
 
    esac
2894
 
    lt_int_apple_cc_single_mod=no
2895
 
    output_verbose_link_cmd='echo'
2896
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2897
 
      lt_int_apple_cc_single_mod=yes
2898
 
    fi
2899
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2900
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2901
 
    else
2902
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2903
 
    fi
2904
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3074
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3075
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3076
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3077
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3078
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3079
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2905
3080
 
2906
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2907
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2908
 
      _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}'
2909
 
    else
2910
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2911
 
    fi
2912
 
    _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}'
2913
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2914
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2915
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2916
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2917
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2918
 
  else
2919
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2920
 
  fi
2921
 
    ;;
 
3081
    if test "$GXX" = yes ; then
 
3082
      lt_int_apple_cc_single_mod=no
 
3083
      output_verbose_link_cmd='echo'
 
3084
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3085
       lt_int_apple_cc_single_mod=yes
 
3086
      fi
 
3087
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3088
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3089
      else
 
3090
          _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'
 
3091
        fi
 
3092
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3093
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3094
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3095
            _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}'
 
3096
          else
 
3097
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3098
          fi
 
3099
            _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}'
 
3100
      else
 
3101
      case $cc_basename in
 
3102
        xlc*)
 
3103
         output_verbose_link_cmd='echo'
 
3104
          _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'
 
3105
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3106
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3107
          _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}'
 
3108
          _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}'
 
3109
          ;;
 
3110
       *)
 
3111
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3112
          ;;
 
3113
      esac
 
3114
      fi
 
3115
        ;;
2922
3116
 
2923
3117
  dgux*)
2924
3118
    case $cc_basename in
2925
 
      ec++)
 
3119
      ec++*)
2926
3120
        # FIXME: insert proper C++ library support
2927
3121
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2928
3122
        ;;
2929
 
      ghcx)
 
3123
      ghcx*)
2930
3124
        # Green Hills C++ Compiler
2931
3125
        # FIXME: insert proper C++ library support
2932
3126
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2937
3131
        ;;
2938
3132
    esac
2939
3133
    ;;
2940
 
  freebsd[12]*)
 
3134
  freebsd[[12]]*)
2941
3135
    # C++ shared libraries reported to be fairly broken before switch to ELF
2942
3136
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2943
3137
    ;;
2944
3138
  freebsd-elf*)
2945
3139
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2946
3140
    ;;
2947
 
  freebsd* | kfreebsd*-gnu)
 
3141
  freebsd* | kfreebsd*-gnu | dragonfly*)
2948
3142
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2949
3143
    # conventions
2950
3144
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2961
3155
                                # location of the library.
2962
3156
 
2963
3157
    case $cc_basename in
2964
 
    CC)
 
3158
    CC*)
2965
3159
      # FIXME: insert proper C++ library support
2966
3160
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2967
3161
      ;;
2968
 
    aCC)
 
3162
    aCC*)
2969
3163
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2970
3164
      # Commands to make compiler produce verbose output that lists
2971
3165
      # what "hidden" libraries, object files and flags are used when
2975
3169
      # explicitly linking system object files so we need to strip them
2976
3170
      # from the output so that they don't get included in the library
2977
3171
      # dependencies.
2978
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3172
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2979
3173
      ;;
2980
3174
    *)
2981
3175
      if test "$GXX" = yes; then
2989
3183
    ;;
2990
3184
  hpux10*|hpux11*)
2991
3185
    if test $with_gnu_ld = no; then
2992
 
      case "$host_cpu" in
2993
 
      hppa*64*)
2994
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3186
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3187
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3188
 
 
3189
      case $host_cpu in
 
3190
      hppa*64*|ia64*)
2995
3191
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2996
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2997
 
        ;;
2998
 
      ia64*)
2999
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3000
3192
        ;;
3001
3193
      *)
3002
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3003
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3004
3194
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3005
3195
        ;;
3006
3196
      esac
3007
3197
    fi
3008
 
    case "$host_cpu" in
3009
 
    hppa*64*)
3010
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3011
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3012
 
      ;;
3013
 
    ia64*)
3014
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3015
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3016
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3017
 
                                              # but as the default
3018
 
                                              # location of the library.
 
3198
    case $host_cpu in
 
3199
    hppa*64*|ia64*)
 
3200
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3201
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3019
3202
      ;;
3020
3203
    *)
3021
3204
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3026
3209
    esac
3027
3210
 
3028
3211
    case $cc_basename in
3029
 
      CC)
 
3212
      CC*)
3030
3213
        # FIXME: insert proper C++ library support
3031
3214
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3032
3215
        ;;
3033
 
      aCC)
3034
 
        case "$host_cpu" in
3035
 
        hppa*64*|ia64*)
3036
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3216
      aCC*)
 
3217
        case $host_cpu in
 
3218
        hppa*64*)
 
3219
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3220
          ;;
 
3221
        ia64*)
 
3222
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3037
3223
          ;;
3038
3224
        *)
3039
3225
          _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'
3052
3238
      *)
3053
3239
        if test "$GXX" = yes; then
3054
3240
          if test $with_gnu_ld = no; then
3055
 
            case "$host_cpu" in
3056
 
            ia64*|hppa*64*)
3057
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3241
            case $host_cpu in
 
3242
            hppa*64*)
 
3243
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3244
              ;;
 
3245
            ia64*)
 
3246
              _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'
3058
3247
              ;;
3059
3248
            *)
3060
3249
              _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'
3068
3257
        ;;
3069
3258
    esac
3070
3259
    ;;
 
3260
  interix3*)
 
3261
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3262
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3263
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3264
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3265
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3266
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3267
    # default) and relocated if they conflict, which is a slow very memory
 
3268
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3269
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3270
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3271
    _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'
 
3272
    _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'
 
3273
    ;;
3071
3274
  irix5* | irix6*)
3072
3275
    case $cc_basename in
3073
 
      CC)
 
3276
      CC*)
3074
3277
        # SGI C++
3075
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3278
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3076
3279
 
3077
3280
        # Archives containing C++ object files must be created using
3078
3281
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3083
3286
      *)
3084
3287
        if test "$GXX" = yes; then
3085
3288
          if test "$with_gnu_ld" = no; then
3086
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3289
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3087
3290
          else
3088
3291
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3089
3292
          fi
3096
3299
    ;;
3097
3300
  linux*)
3098
3301
    case $cc_basename in
3099
 
      KCC)
 
3302
      KCC*)
3100
3303
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3101
3304
 
3102
3305
        # KCC will only create a shared library if the output file
3121
3324
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3122
3325
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3123
3326
        ;;
3124
 
      icpc)
 
3327
      icpc*)
3125
3328
        # Intel C++
3126
3329
        with_gnu_ld=yes
 
3330
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3331
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3332
        # earlier do not add the objects themselves.
 
3333
        case `$CC -V 2>&1` in
 
3334
        *"Version 7."*)
 
3335
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3336
          _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
          ;;
 
3338
        *)  # Version 8.0 or newer
 
3339
          tmp_idyn=
 
3340
          case $host_cpu in
 
3341
            ia64*) tmp_idyn=' -i_dynamic';;
 
3342
          esac
 
3343
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3344
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3345
          ;;
 
3346
        esac
3127
3347
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3128
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3129
 
        _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'
3130
3348
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3131
3349
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3132
3350
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3133
3351
        ;;
3134
 
      cxx)
 
3352
      pgCC*)
 
3353
        # Portland Group C++ compiler
 
3354
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3355
        _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'
 
3356
 
 
3357
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3358
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3359
        _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'
 
3360
        ;;
 
3361
      cxx*)
3135
3362
        # Compaq C++
3136
3363
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3137
3364
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3162
3389
    ;;
3163
3390
  mvs*)
3164
3391
    case $cc_basename in
3165
 
      cxx)
 
3392
      cxx*)
3166
3393
        # FIXME: insert proper C++ library support
3167
3394
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3168
3395
        ;;
3172
3399
        ;;
3173
3400
    esac
3174
3401
    ;;
3175
 
  netbsd* | knetbsd*-gnu)
 
3402
  netbsd*)
3176
3403
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3177
3404
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3178
3405
      wlarc=
3183
3410
    # Workaround some broken pre-1.5 toolchains
3184
3411
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3185
3412
    ;;
 
3413
  openbsd2*)
 
3414
    # C++ shared libraries are fairly broken
 
3415
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3416
    ;;
 
3417
  openbsd*)
 
3418
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3419
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3420
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3421
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3422
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3423
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3424
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3425
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3426
    fi
 
3427
    output_verbose_link_cmd='echo'
 
3428
    ;;
3186
3429
  osf3*)
3187
3430
    case $cc_basename in
3188
 
      KCC)
 
3431
      KCC*)
3189
3432
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3190
3433
 
3191
3434
        # KCC will only create a shared library if the output file
3201
3444
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3202
3445
 
3203
3446
        ;;
3204
 
      RCC)
 
3447
      RCC*)
3205
3448
        # Rational C++ 2.4.1
3206
3449
        # FIXME: insert proper C++ library support
3207
3450
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3208
3451
        ;;
3209
 
      cxx)
 
3452
      cxx*)
3210
3453
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3211
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3454
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3212
3455
 
3213
3456
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3214
3457
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3226
3469
      *)
3227
3470
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3228
3471
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3229
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3472
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3230
3473
 
3231
3474
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3232
3475
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3245
3488
    ;;
3246
3489
  osf4* | osf5*)
3247
3490
    case $cc_basename in
3248
 
      KCC)
 
3491
      KCC*)
3249
3492
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3250
3493
 
3251
3494
        # KCC will only create a shared library if the output file
3260
3503
        # the KAI C++ compiler.
3261
3504
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3262
3505
        ;;
3263
 
      RCC)
 
3506
      RCC*)
3264
3507
        # Rational C++ 2.4.1
3265
3508
        # FIXME: insert proper C++ library support
3266
3509
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3267
3510
        ;;
3268
 
      cxx)
 
3511
      cxx*)
3269
3512
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3270
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3513
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3271
3514
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3272
3515
          echo "-hidden">> $lib.exp~
3273
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3516
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3274
3517
          $rm $lib.exp'
3275
3518
 
3276
3519
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3289
3532
      *)
3290
3533
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3291
3534
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3292
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3535
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3293
3536
 
3294
3537
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3295
3538
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3310
3553
    # FIXME: insert proper C++ library support
3311
3554
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3312
3555
    ;;
3313
 
  sco*)
3314
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3315
 
    case $cc_basename in
3316
 
      CC)
3317
 
        # FIXME: insert proper C++ library support
3318
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3319
 
        ;;
3320
 
      *)
3321
 
        # FIXME: insert proper C++ library support
3322
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3323
 
        ;;
3324
 
    esac
3325
 
    ;;
3326
3556
  sunos4*)
3327
3557
    case $cc_basename in
3328
 
      CC)
 
3558
      CC*)
3329
3559
        # Sun C++ 4.x
3330
3560
        # FIXME: insert proper C++ library support
3331
3561
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3332
3562
        ;;
3333
 
      lcc)
 
3563
      lcc*)
3334
3564
        # Lucid
3335
3565
        # FIXME: insert proper C++ library support
3336
3566
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3343
3573
    ;;
3344
3574
  solaris*)
3345
3575
    case $cc_basename in
3346
 
      CC)
 
3576
      CC*)
3347
3577
        # Sun C++ 4.2, 5.x and Centerline C++
 
3578
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3348
3579
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3349
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3580
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3350
3581
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3351
 
        $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'
 
3582
        $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'
3352
3583
 
3353
3584
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3354
3585
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3355
3586
        case $host_os in
3356
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3587
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3357
3588
          *)
3358
3589
            # The C++ compiler is used as linker so we must use $wl
3359
3590
            # flag to pass the commands to the underlying system
3360
 
            # linker.
 
3591
            # linker. We must also pass each convience library through
 
3592
            # to the system linker between allextract/defaultextract.
 
3593
            # The C++ compiler will combine linker options so we
 
3594
            # cannot just pass the convience library names through
 
3595
            # without $wl.
3361
3596
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3362
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3597
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3363
3598
            ;;
3364
3599
        esac
3365
3600
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3366
3601
 
3367
 
        # Commands to make compiler produce verbose output that lists
3368
 
        # what "hidden" libraries, object files and flags are used when
3369
 
        # linking a shared library.
3370
 
        #
3371
 
        # There doesn't appear to be a way to prevent this compiler from
3372
 
        # explicitly linking system object files so we need to strip them
3373
 
        # from the output so that they don't get included in the library
3374
 
        # dependencies.
3375
 
        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'
 
3602
        output_verbose_link_cmd='echo'
3376
3603
 
3377
3604
        # Archives containing C++ object files must be created using
3378
3605
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3380
3607
        # in the archive.
3381
3608
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3382
3609
        ;;
3383
 
      gcx)
 
3610
      gcx*)
3384
3611
        # Green Hills C++ Compiler
3385
3612
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3386
3613
 
3418
3645
        ;;
3419
3646
    esac
3420
3647
    ;;
3421
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3422
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3648
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3649
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3650
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3651
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3652
    runpath_var='LD_RUN_PATH'
 
3653
 
 
3654
    case $cc_basename in
 
3655
      CC*)
 
3656
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3657
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3658
        ;;
 
3659
      *)
 
3660
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3661
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3662
        ;;
 
3663
    esac
 
3664
    ;;
 
3665
  sysv5* | sco3.2v5* | sco5v6*)
 
3666
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3667
    # link with -lc, and that would cause any symbols used from libc to
 
3668
    # always be unresolved, which means just about no library would
 
3669
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3670
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3671
    # as -z defs.
 
3672
    # For security reasons, it is highly recommended that you always
 
3673
    # use absolute paths for naming shared libraries, and exclude the
 
3674
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3675
    # requires that you compile everything twice, which is a pain.
 
3676
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3677
    # non-empty value in the environment.  Most likely only useful for
 
3678
    # creating official distributions of packages.
 
3679
    # This is a hack until libtool officially supports absolute path
 
3680
    # names for shared libraries.
 
3681
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3682
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3683
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3684
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3685
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3686
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3687
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3688
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3689
    runpath_var='LD_RUN_PATH'
 
3690
 
 
3691
    case $cc_basename in
 
3692
      CC*)
 
3693
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3694
        _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'
 
3695
        ;;
 
3696
      *)
 
3697
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3698
        _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'
 
3699
        ;;
 
3700
    esac
3423
3701
    ;;
3424
3702
  tandem*)
3425
3703
    case $cc_basename in
3426
 
      NCC)
 
3704
      NCC*)
3427
3705
        # NonStop-UX NCC 3.20
3428
3706
        # FIXME: insert proper C++ library support
3429
3707
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3456
3734
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3457
3735
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3458
3736
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3459
 
AC_LIBTOOL_SYS_LIB_STRIP
3460
 
AC_LIBTOOL_DLOPEN_SELF($1)
3461
3737
 
3462
3738
AC_LIBTOOL_CONFIG($1)
3463
3739
 
3475
3751
])# AC_LIBTOOL_LANG_CXX_CONFIG
3476
3752
 
3477
3753
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3478
 
# ------------------------
 
3754
# ------------------------------------
3479
3755
# Figure out "hidden" library dependencies from verbose
3480
3756
# compiler output when linking a shared library.
3481
3757
# Parse the compiler output and extract the necessary
3529
3805
  # The `*' in the case matches for architectures that use `case' in
3530
3806
  # $output_verbose_cmd can trigger glob expansion during the loop
3531
3807
  # eval without this substitution.
3532
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3808
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3533
3809
 
3534
3810
  for p in `eval $output_verbose_link_cmd`; do
3535
3811
    case $p in
3605
3881
 
3606
3882
$rm -f confest.$objext
3607
3883
 
 
3884
# PORTME: override above test on systems where it is broken
 
3885
ifelse([$1],[CXX],
 
3886
[case $host_os in
 
3887
interix3*)
 
3888
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3889
  # hack all around it, let's just trust "g++" to DTRT.
 
3890
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3891
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3892
  _LT_AC_TAGVAR(postdeps,$1)=
 
3893
  ;;
 
3894
 
 
3895
solaris*)
 
3896
  case $cc_basename in
 
3897
  CC*)
 
3898
    # Adding this requires a known-good setup of shared libraries for
 
3899
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3900
    # archive will be linked into the output, leading to subtle bugs.
 
3901
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3902
    ;;
 
3903
  esac
 
3904
  ;;
 
3905
esac
 
3906
])
 
3907
 
3608
3908
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3609
3909
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3610
3910
esac
3611
3911
])# AC_LIBTOOL_POSTDEP_PREDEP
3612
3912
 
3613
3913
# AC_LIBTOOL_LANG_F77_CONFIG
3614
 
# ------------------------
 
3914
# --------------------------
3615
3915
# Ensure that the configuration vars for the C compiler are
3616
3916
# suitably defined.  Those variables are subsequently used by
3617
3917
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3655
3955
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3656
3956
_LT_AC_SYS_COMPILER
3657
3957
 
 
3958
# save warnings/boilerplate of simple test code
 
3959
_LT_COMPILER_BOILERPLATE
 
3960
_LT_LINKER_BOILERPLATE
 
3961
 
3658
3962
# Allow CC to be a program name with arguments.
3659
3963
lt_save_CC="$CC"
3660
3964
CC=${F77-"f77"}
3661
3965
compiler=$CC
3662
3966
_LT_AC_TAGVAR(compiler, $1)=$CC
3663
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3967
_LT_CC_BASENAME([$compiler])
3664
3968
 
3665
3969
AC_MSG_CHECKING([if libtool supports shared libraries])
3666
3970
AC_MSG_RESULT([$can_build_shared])
3670
3974
 
3671
3975
# On AIX, shared libraries and static libraries use the same namespace, and
3672
3976
# are all built from PIC.
3673
 
case "$host_os" in
 
3977
case $host_os in
3674
3978
aix3*)
3675
3979
  test "$enable_shared" = yes && enable_static=no
3676
3980
  if test -n "$RANLIB"; then
3679
3983
  fi
3680
3984
  ;;
3681
3985
aix4* | aix5*)
3682
 
  test "$enable_shared" = yes && enable_static=no
 
3986
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3987
    test "$enable_shared" = yes && enable_static=no
 
3988
  fi
3683
3989
  ;;
3684
3990
esac
3685
3991
AC_MSG_RESULT([$enable_shared])
3689
3995
test "$enable_shared" = yes || enable_static=yes
3690
3996
AC_MSG_RESULT([$enable_static])
3691
3997
 
3692
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3693
 
 
3694
3998
_LT_AC_TAGVAR(GCC, $1)="$G77"
3695
3999
_LT_AC_TAGVAR(LD, $1)="$LD"
3696
4000
 
3700
4004
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3701
4005
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3702
4006
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3703
 
AC_LIBTOOL_SYS_LIB_STRIP
3704
 
 
3705
4007
 
3706
4008
AC_LIBTOOL_CONFIG($1)
3707
4009
 
3730
4032
lt_simple_compile_test_code="class foo {}\n"
3731
4033
 
3732
4034
# Code to be used in simple link tests
3733
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4035
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3734
4036
 
3735
4037
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3736
4038
_LT_AC_SYS_COMPILER
3737
4039
 
 
4040
# save warnings/boilerplate of simple test code
 
4041
_LT_COMPILER_BOILERPLATE
 
4042
_LT_LINKER_BOILERPLATE
 
4043
 
3738
4044
# Allow CC to be a program name with arguments.
3739
4045
lt_save_CC="$CC"
3740
4046
CC=${GCJ-"gcj"}
3741
4047
compiler=$CC
3742
4048
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4049
_LT_CC_BASENAME([$compiler])
3743
4050
 
3744
4051
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3745
4052
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3746
4053
 
 
4054
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4055
 
3747
4056
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3748
4057
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3749
4058
AC_LIBTOOL_PROG_CC_C_O($1)
3751
4060
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3752
4061
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3753
4062
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3754
 
AC_LIBTOOL_SYS_LIB_STRIP
3755
 
AC_LIBTOOL_DLOPEN_SELF($1)
3756
4063
 
3757
4064
AC_LIBTOOL_CONFIG($1)
3758
4065
 
3762
4069
 
3763
4070
 
3764
4071
# AC_LIBTOOL_LANG_RC_CONFIG
3765
 
# --------------------------
 
4072
# -------------------------
3766
4073
# Ensure that the configuration vars for the Windows resource compiler are
3767
4074
# suitably defined.  Those variables are subsequently used by
3768
4075
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3786
4093
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3787
4094
_LT_AC_SYS_COMPILER
3788
4095
 
 
4096
# save warnings/boilerplate of simple test code
 
4097
_LT_COMPILER_BOILERPLATE
 
4098
_LT_LINKER_BOILERPLATE
 
4099
 
3789
4100
# Allow CC to be a program name with arguments.
3790
4101
lt_save_CC="$CC"
3791
4102
CC=${RC-"windres"}
3792
4103
compiler=$CC
3793
4104
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4105
_LT_CC_BASENAME([$compiler])
3794
4106
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3795
4107
 
3796
4108
AC_LIBTOOL_CONFIG($1)
3820
4132
  # Now quote all the things that may contain metacharacters while being
3821
4133
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3822
4134
  # variables and quote the copies for generation of the libtool script.
3823
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4135
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3824
4136
    SED SHELL STRIP \
3825
4137
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3826
4138
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3926
4238
#
3927
4239
# You should have received a copy of the GNU General Public License
3928
4240
# along with this program; if not, write to the Free Software
3929
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4241
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3930
4242
#
3931
4243
# As a special exception to the GNU General Public License, if you
3932
4244
# distribute this file as part of a program that contains a
3937
4249
SED=$lt_SED
3938
4250
 
3939
4251
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3940
 
Xsed="$SED -e s/^X//"
 
4252
Xsed="$SED -e 1s/^X//"
3941
4253
 
3942
4254
# The HP-UX ksh and POSIX shell print the target directory to stdout
3943
4255
# if CDPATH is set.
3944
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4256
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3945
4257
 
3946
4258
# The names of the tagged configurations supported by this script.
3947
4259
available_tags=
3972
4284
# The host system.
3973
4285
host_alias=$host_alias
3974
4286
host=$host
 
4287
host_os=$host_os
 
4288
 
 
4289
# The build system.
 
4290
build_alias=$build_alias
 
4291
build=$build
 
4292
build_os=$build_os
3975
4293
 
3976
4294
# An echo program that does not interpret backslashes.
3977
4295
echo=$lt_echo
3983
4301
# A C compiler.
3984
4302
LTCC=$lt_LTCC
3985
4303
 
 
4304
# LTCC compiler flags.
 
4305
LTCFLAGS=$lt_LTCFLAGS
 
4306
 
3986
4307
# A language-specific compiler.
3987
4308
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3988
4309
 
3989
4310
# Is the compiler the GNU C compiler?
3990
4311
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
3991
4312
 
 
4313
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
 
4314
gcc_ver=\`gcc -dumpversion\`
 
4315
 
3992
4316
# An ERE matcher.
3993
4317
EGREP=$lt_EGREP
3994
4318
 
4048
4372
# Does compiler simultaneously support -c and -o options?
4049
4373
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4050
4374
 
4051
 
# Must we lock files when doing compilation ?
 
4375
# Must we lock files when doing compilation?
4052
4376
need_locks=$lt_need_locks
4053
4377
 
4054
4378
# Do we need the lib prefix for modules?
4122
4446
 
4123
4447
# Dependencies to place before the objects being linked to create a
4124
4448
# shared library.
4125
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
4449
predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
4126
4450
 
4127
4451
# Dependencies to place after the objects being linked to create a
4128
4452
# shared library.
4129
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
4453
postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
4130
4454
 
4131
4455
# Dependencies to place before the objects being linked to create a
4132
4456
# shared library.
4138
4462
 
4139
4463
# The library search path used internally by the compiler when linking
4140
4464
# a shared library.
4141
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
4465
compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
4142
4466
 
4143
4467
# Method to check whether dependent libraries are shared objects.
4144
4468
deplibs_check_method=$lt_deplibs_check_method
4218
4542
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4219
4543
 
4220
4544
# Compile-time system search path for libraries
4221
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
4545
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
4222
4546
 
4223
4547
# Run-time system search path for libraries
4224
4548
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4322
4646
# Regexp to match symbols that can be accessed directly from C.
4323
4647
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4324
4648
 
4325
 
# Transform the above into a raw symbol and a C symbol.
4326
 
symxfrm='\1 \2\3 \3'
4327
 
 
4328
4649
# Transform an extracted symbol line into a proper C declaration
4329
4650
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4330
4651
 
4346
4667
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4347
4668
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4348
4669
  ;;
 
4670
linux*)
 
4671
  if test "$host_cpu" = ia64; then
 
4672
    symcode='[[ABCDGIRSTW]]'
 
4673
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4674
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4675
  fi
 
4676
  ;;
4349
4677
irix* | nonstopux*)
4350
4678
  symcode='[[BCDEGRST]]'
4351
4679
  ;;
4352
4680
osf*)
4353
4681
  symcode='[[BCDEGQRST]]'
4354
4682
  ;;
4355
 
solaris* | sysv5*)
 
4683
solaris*)
4356
4684
  symcode='[[BDRT]]'
4357
4685
  ;;
 
4686
sco3.2v5*)
 
4687
  symcode='[[DT]]'
 
4688
  ;;
 
4689
sysv4.2uw2*)
 
4690
  symcode='[[DT]]'
 
4691
  ;;
 
4692
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4693
  symcode='[[ABDT]]'
 
4694
  ;;
4358
4695
sysv4)
4359
4696
  symcode='[[DFNSTU]]'
4360
4697
  ;;
4377
4714
# Try without a prefix undercore, then with it.
4378
4715
for ac_symprfx in "" "_"; do
4379
4716
 
 
4717
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4718
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4719
 
4380
4720
  # Write the raw and C identifiers.
4381
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4721
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4382
4722
 
4383
4723
  # Check to see that the pipe works correctly.
4384
4724
  pipe_works=no
4534
4874
      # DJGPP does not support shared libraries at all
4535
4875
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4536
4876
      ;;
 
4877
    interix3*)
 
4878
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4879
      # Instead, we relocate shared libraries at runtime.
 
4880
      ;;
4537
4881
    sysv4*MP*)
4538
4882
      if test -d /usr/nec; then
4539
4883
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4542
4886
    hpux*)
4543
4887
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4544
4888
      # not for PA HP-UX.
4545
 
      case "$host_cpu" in
 
4889
      case $host_cpu in
4546
4890
      hppa*64*|ia64*)
4547
4891
        ;;
4548
4892
      *)
4567
4911
        ;;
4568
4912
      chorus*)
4569
4913
        case $cc_basename in
4570
 
        cxch68)
 
4914
        cxch68*)
4571
4915
          # Green Hills C++ Compiler
4572
4916
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4573
4917
          ;;
4574
4918
        esac
4575
4919
        ;;
 
4920
       darwin*)
 
4921
         # PIC is the default on this platform
 
4922
         # Common symbols not allowed in MH_DYLIB files
 
4923
         case $cc_basename in
 
4924
           xlc*)
 
4925
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4926
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4927
           ;;
 
4928
         esac
 
4929
       ;;
4576
4930
      dgux*)
4577
4931
        case $cc_basename in
4578
 
          ec++)
 
4932
          ec++*)
4579
4933
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4580
4934
            ;;
4581
 
          ghcx)
 
4935
          ghcx*)
4582
4936
            # Green Hills C++ Compiler
4583
4937
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4584
4938
            ;;
4586
4940
            ;;
4587
4941
        esac
4588
4942
        ;;
4589
 
      freebsd* | kfreebsd*-gnu)
 
4943
      freebsd* | kfreebsd*-gnu | dragonfly*)
4590
4944
        # FreeBSD uses GNU C++
4591
4945
        ;;
4592
4946
      hpux9* | hpux10* | hpux11*)
4593
4947
        case $cc_basename in
4594
 
          CC)
 
4948
          CC*)
4595
4949
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4596
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4950
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4597
4951
            if test "$host_cpu" != ia64; then
4598
4952
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4599
4953
            fi
4600
4954
            ;;
4601
 
          aCC)
 
4955
          aCC*)
4602
4956
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4603
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4604
 
            case "$host_cpu" in
 
4957
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4958
            case $host_cpu in
4605
4959
            hppa*64*|ia64*)
4606
4960
              # +Z the default
4607
4961
              ;;
4614
4968
            ;;
4615
4969
        esac
4616
4970
        ;;
 
4971
      interix*)
 
4972
        # This is c89, which is MS Visual C++ (no shared libs)
 
4973
        # Anyone wants to do a port?
 
4974
        ;;
4617
4975
      irix5* | irix6* | nonstopux*)
4618
4976
        case $cc_basename in
4619
 
          CC)
 
4977
          CC*)
4620
4978
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4621
4979
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4622
4980
            # CC pic flag -KPIC is the default.
4627
4985
        ;;
4628
4986
      linux*)
4629
4987
        case $cc_basename in
4630
 
          KCC)
 
4988
          KCC*)
4631
4989
            # KAI C++ Compiler
4632
4990
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4633
4991
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4634
4992
            ;;
4635
 
          icpc)
 
4993
          icpc* | ecpc*)
4636
4994
            # Intel C++
4637
4995
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4638
4996
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4639
4997
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4640
4998
            ;;
4641
 
          cxx)
 
4999
          pgCC*)
 
5000
            # Portland Group C++ compiler.
 
5001
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5002
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5003
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5004
            ;;
 
5005
          cxx*)
4642
5006
            # Compaq C++
4643
5007
            # Make sure the PIC flag is empty.  It appears that all Alpha
4644
5008
            # Linux and Compaq Tru64 Unix objects are PIC.
4655
5019
        ;;
4656
5020
      mvs*)
4657
5021
        case $cc_basename in
4658
 
          cxx)
 
5022
          cxx*)
4659
5023
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4660
5024
            ;;
4661
5025
          *)
4662
5026
            ;;
4663
5027
        esac
4664
5028
        ;;
4665
 
      netbsd* | knetbsd*-gnu)
 
5029
      netbsd*)
4666
5030
        ;;
4667
5031
      osf3* | osf4* | osf5*)
4668
5032
        case $cc_basename in
4669
 
          KCC)
 
5033
          KCC*)
4670
5034
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4671
5035
            ;;
4672
 
          RCC)
 
5036
          RCC*)
4673
5037
            # Rational C++ 2.4.1
4674
5038
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4675
5039
            ;;
4676
 
          cxx)
 
5040
          cxx*)
4677
5041
            # Digital/Compaq C++
4678
5042
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4679
5043
            # Make sure the PIC flag is empty.  It appears that all Alpha
4687
5051
        ;;
4688
5052
      psos*)
4689
5053
        ;;
4690
 
      sco*)
4691
 
        case $cc_basename in
4692
 
          CC)
4693
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4694
 
            ;;
4695
 
          *)
4696
 
            ;;
4697
 
        esac
4698
 
        ;;
4699
5054
      solaris*)
4700
5055
        case $cc_basename in
4701
 
          CC)
 
5056
          CC*)
4702
5057
            # Sun C++ 4.2, 5.x and Centerline C++
4703
5058
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4704
5059
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4705
5060
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4706
5061
            ;;
4707
 
          gcx)
 
5062
          gcx*)
4708
5063
            # Green Hills C++ Compiler
4709
5064
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4710
5065
            ;;
4714
5069
        ;;
4715
5070
      sunos4*)
4716
5071
        case $cc_basename in
4717
 
          CC)
 
5072
          CC*)
4718
5073
            # Sun C++ 4.x
4719
5074
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4720
5075
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721
5076
            ;;
4722
 
          lcc)
 
5077
          lcc*)
4723
5078
            # Lucid
4724
5079
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4725
5080
            ;;
4729
5084
        ;;
4730
5085
      tandem*)
4731
5086
        case $cc_basename in
4732
 
          NCC)
 
5087
          NCC*)
4733
5088
            # NonStop-UX NCC 3.20
4734
5089
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4735
5090
            ;;
4737
5092
            ;;
4738
5093
        esac
4739
5094
        ;;
4740
 
      unixware*)
 
5095
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5096
        case $cc_basename in
 
5097
          CC*)
 
5098
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5099
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5100
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5101
            ;;
 
5102
        esac
4741
5103
        ;;
4742
5104
      vxworks*)
4743
5105
        ;;
4784
5146
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4785
5147
      ;;
4786
5148
 
 
5149
    interix3*)
 
5150
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5151
      # Instead, we relocate shared libraries at runtime.
 
5152
      ;;
 
5153
 
4787
5154
    msdosdjgpp*)
4788
5155
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4789
5156
      # on systems that don't support them.
4800
5167
    hpux*)
4801
5168
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4802
5169
      # not for PA HP-UX.
4803
 
      case "$host_cpu" in
 
5170
      case $host_cpu in
4804
5171
      hppa*64*|ia64*)
4805
5172
        # +Z the default
4806
5173
        ;;
4826
5193
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4827
5194
      fi
4828
5195
      ;;
 
5196
      darwin*)
 
5197
        # PIC is the default on this platform
 
5198
        # Common symbols not allowed in MH_DYLIB files
 
5199
       case $cc_basename in
 
5200
         xlc*)
 
5201
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5202
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5203
         ;;
 
5204
       esac
 
5205
       ;;
4829
5206
 
4830
5207
    mingw* | pw32* | os2*)
4831
5208
      # This hack is so that the source file can tell whether it is being
4837
5214
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4838
5215
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4839
5216
      # not for PA HP-UX.
4840
 
      case "$host_cpu" in
 
5217
      case $host_cpu in
4841
5218
      hppa*64*|ia64*)
4842
5219
        # +Z the default
4843
5220
        ;;
4861
5238
      ;;
4862
5239
 
4863
5240
    linux*)
4864
 
      case $CC in
 
5241
      case $cc_basename in
4865
5242
      icc* | ecc*)
4866
5243
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4867
5244
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4868
5245
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4869
5246
        ;;
 
5247
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5248
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5249
        # which looks to be a dead project)
 
5250
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5251
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5252
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5253
        ;;
4870
5254
      ccc*)
4871
5255
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4872
5256
        # All Alpha code is PIC.
4881
5265
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4882
5266
      ;;
4883
5267
 
4884
 
    sco3.2v5*)
4885
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4886
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4887
 
      ;;
4888
 
 
4889
5268
    solaris*)
4890
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4891
5269
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4892
5270
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5271
      case $cc_basename in
 
5272
      f77* | f90* | f95*)
 
5273
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5274
      *)
 
5275
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5276
      esac
4893
5277
      ;;
4894
5278
 
4895
5279
    sunos4*)
4898
5282
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4899
5283
      ;;
4900
5284
 
4901
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5285
    sysv4 | sysv4.2uw2* | sysv4.3*)
4902
5286
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903
5287
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904
5288
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911
5295
      fi
4912
5296
      ;;
4913
5297
 
 
5298
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5299
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5300
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5301
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5302
      ;;
 
5303
 
 
5304
    unicos*)
 
5305
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5306
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5307
      ;;
 
5308
 
4914
5309
    uts4*)
4915
5310
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4916
5311
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4938
5333
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4939
5334
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4940
5335
fi
4941
 
case "$host_os" in
 
5336
case $host_os in
4942
5337
  # For platforms which do not support PIC, -DPIC is meaningless:
4943
5338
  *djgpp*)
4944
5339
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4947
5342
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4948
5343
    ;;
4949
5344
esac
 
5345
 
 
5346
#
 
5347
# Check to make sure the static flag actually works.
 
5348
#
 
5349
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5350
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5351
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5352
  $lt_tmp_static_flag,
 
5353
  [],
 
5354
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4950
5355
])
4951
5356
 
4952
5357
 
4971
5376
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4972
5377
  ;;
4973
5378
  cygwin* | mingw*)
4974
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4975
 
  ;;
4976
 
  linux*)
4977
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5379
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4978
5380
  ;;
4979
5381
  *)
4980
5382
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5017
5419
  # rely on this symbol name, it's probably fine to never include it in
5018
5420
  # preloaded symbol tables.
5019
5421
  extract_expsyms_cmds=
5020
 
 
 
5422
  # Just being paranoid about ensuring that cc_basename is set.
 
5423
  _LT_CC_BASENAME([$compiler])
5021
5424
  case $host_os in
5022
5425
  cygwin* | mingw* | pw32*)
5023
5426
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5027
5430
      with_gnu_ld=no
5028
5431
    fi
5029
5432
    ;;
 
5433
  interix*)
 
5434
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5435
    with_gnu_ld=yes
 
5436
    ;;
5030
5437
  openbsd*)
5031
5438
    with_gnu_ld=no
5032
5439
    ;;
5037
5444
    # If archive_cmds runs LD, not CC, wlarc should be empty
5038
5445
    wlarc='${wl}'
5039
5446
 
 
5447
    # Set some defaults for GNU ld with shared library support. These
 
5448
    # are reset later if shared libraries are not supported. Putting them
 
5449
    # here allows them to be overridden if necessary.
 
5450
    runpath_var=LD_RUN_PATH
 
5451
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5452
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5453
    # ancient GNU ld didn't support --whole-archive et. al.
 
5454
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5455
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5456
      else
 
5457
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5458
    fi
 
5459
    supports_anon_versioning=no
 
5460
    case `$LD -v 2>/dev/null` in
 
5461
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5462
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5463
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5464
      *\ 2.11.*) ;; # other 2.11 versions
 
5465
      *) supports_anon_versioning=yes ;;
 
5466
    esac
 
5467
 
5040
5468
    # See if GNU ld supports shared libraries.
5041
5469
    case $host_os in
5042
5470
    aix3* | aix4* | aix5*)
5087
5515
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5088
5516
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5089
5517
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5090
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5518
      _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'
5091
5519
 
5092
5520
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5093
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5521
        _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'
5094
5522
        # If the export-symbols file already is a .def file (1st line
5095
5523
        # is EXPORTS), use it as is; otherwise, prepend...
5096
5524
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5099
5527
          echo EXPORTS > $output_objdir/$soname.def;
5100
5528
          cat $export_symbols >> $output_objdir/$soname.def;
5101
5529
        fi~
5102
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5103
 
      else
5104
 
        ld_shlibs=no
5105
 
      fi
5106
 
      ;;
5107
 
 
5108
 
    netbsd* | knetbsd*-gnu)
 
5530
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5531
      else
 
5532
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5533
      fi
 
5534
      ;;
 
5535
 
 
5536
    interix3*)
 
5537
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5538
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5539
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5540
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5541
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5542
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5543
      # default) and relocated if they conflict, which is a slow very memory
 
5544
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5545
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5546
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5547
      _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'
 
5548
      _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'
 
5549
      ;;
 
5550
 
 
5551
    linux*)
 
5552
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5553
        tmp_addflag=
 
5554
        case $cc_basename,$host_cpu in
 
5555
        pgcc*)                          # Portland Group C compiler
 
5556
          _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'
 
5557
          tmp_addflag=' $pic_flag'
 
5558
          ;;
 
5559
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5560
          _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'
 
5561
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5562
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5563
          tmp_addflag=' -i_dynamic' ;;
 
5564
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5565
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5566
        ifc* | ifort*)                  # Intel Fortran compiler
 
5567
          tmp_addflag=' -nofor_main' ;;
 
5568
        esac
 
5569
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5570
 
 
5571
        if test $supports_anon_versioning = yes; then
 
5572
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5573
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5574
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5575
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5576
        fi
 
5577
      else
 
5578
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5579
      fi
 
5580
      ;;
 
5581
 
 
5582
    netbsd*)
5109
5583
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5110
5584
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5111
5585
        wlarc=
5115
5589
      fi
5116
5590
      ;;
5117
5591
 
5118
 
    solaris* | sysv5*)
 
5592
    solaris*)
5119
5593
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5120
5594
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5121
5595
        cat <<EOF 1>&2
5136
5610
      fi
5137
5611
      ;;
5138
5612
 
 
5613
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5614
      case `$LD -v 2>&1` in
 
5615
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5616
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5617
        cat <<_LT_EOF 1>&2
 
5618
 
 
5619
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5620
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5621
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5622
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5623
*** your PATH or compiler configuration so that the native linker is
 
5624
*** used, and then restart.
 
5625
 
 
5626
_LT_EOF
 
5627
        ;;
 
5628
        *)
 
5629
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5630
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5631
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5632
            _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'
 
5633
          else
 
5634
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5635
          fi
 
5636
        ;;
 
5637
      esac
 
5638
      ;;
 
5639
 
5139
5640
    sunos4*)
5140
5641
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5141
5642
      wlarc=
5143
5644
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5144
5645
      ;;
5145
5646
 
5146
 
  linux*)
5147
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5148
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5149
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5150
 
      supports_anon_versioning=no
5151
 
      case `$LD -v 2>/dev/null` in
5152
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5153
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5154
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5155
 
        *\ 2.11.*) ;; # other 2.11 versions
5156
 
        *) supports_anon_versioning=yes ;;
5157
 
      esac
5158
 
      if test $supports_anon_versioning = yes; then
5159
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5160
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5161
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
5162
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5163
 
      else
5164
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5165
 
      fi
5166
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5167
 
    else
5168
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5169
 
    fi
5170
 
    ;;
5171
 
 
5172
5647
    *)
5173
5648
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5174
5649
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5179
5654
      ;;
5180
5655
    esac
5181
5656
 
5182
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5183
 
      runpath_var=LD_RUN_PATH
5184
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5185
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5186
 
      # ancient GNU ld didn't support --whole-archive et. al.
5187
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5188
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5189
 
      else
5190
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5191
 
      fi
 
5657
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5658
      runpath_var=
 
5659
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5660
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5661
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5192
5662
    fi
5193
5663
  else
5194
5664
    # PORTME fill in a description of your system's linker (not GNU ld)
5200
5670
      # Note: this linker hardcodes the directories in LIBPATH if there
5201
5671
      # are no directories specified by -L.
5202
5672
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5203
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5673
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5204
5674
        # Neither direct hardcoding nor static linking is supported with a
5205
5675
        # broken collect2.
5206
5676
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5234
5704
            break
5235
5705
          fi
5236
5706
          done
 
5707
          ;;
5237
5708
        esac
5238
5709
 
5239
5710
        exp_sym_flag='-bexport'
5252
5723
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5253
5724
 
5254
5725
      if test "$GCC" = yes; then
5255
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5726
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5256
5727
        # We only want to do this on AIX 4.2 and lower, the check
5257
5728
        # below for broken collect2 doesn't work under 4.3+
5258
5729
          collect2name=`${CC} -print-prog-name=collect2`
5271
5742
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5272
5743
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5273
5744
          fi
 
5745
          ;;
5274
5746
        esac
5275
5747
        shared_flag='-shared'
 
5748
        if test "$aix_use_runtimelinking" = yes; then
 
5749
          shared_flag="$shared_flag "'${wl}-G'
 
5750
        fi
5276
5751
      else
5277
5752
        # not using gcc
5278
5753
        if test "$host_cpu" = ia64; then
5280
5755
        # chokes on -Wl,-G. The following line is correct:
5281
5756
          shared_flag='-G'
5282
5757
        else
5283
 
        if test "$aix_use_runtimelinking" = yes; then
 
5758
          if test "$aix_use_runtimelinking" = yes; then
5284
5759
            shared_flag='${wl}-G'
5285
5760
          else
5286
5761
            shared_flag='${wl}-bM:SRE'
5287
 
        fi
 
5762
          fi
5288
5763
        fi
5289
5764
      fi
5290
5765
 
5298
5773
       # Determine the default libpath from the value encoded in an empty executable.
5299
5774
       _LT_AC_SYS_LIBPATH_AIX
5300
5775
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5301
 
        _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"
 
5776
        _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"
5302
5777
       else
5303
5778
        if test "$host_cpu" = ia64; then
5304
5779
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5305
5780
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5306
 
          _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"
 
5781
          _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"
5307
5782
        else
5308
5783
         # Determine the default libpath from the value encoded in an empty executable.
5309
5784
         _LT_AC_SYS_LIBPATH_AIX
5312
5787
          # -berok will link without error, but may produce a broken library.
5313
5788
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5314
5789
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5315
 
          # -bexpall does not export symbols beginning with underscore (_)
5316
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5317
5790
          # Exported symbols can be pulled into shared objects from archives
5318
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5319
5792
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5320
 
          # This is similar to how AIX traditionally builds it's shared libraries.
5321
 
          _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'
 
5793
          # This is similar to how AIX traditionally builds its shared libraries.
 
5794
          _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'
5322
5795
        fi
5323
5796
      fi
5324
5797
      ;;
5331
5804
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5332
5805
      ;;
5333
5806
 
5334
 
    bsdi4*)
 
5807
    bsdi[[45]]*)
5335
5808
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5336
5809
      ;;
5337
5810
 
5352
5825
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5353
5826
      # FIXME: Should let the user specify the lib program.
5354
5827
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5355
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5828
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
5829
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5357
5830
      ;;
5358
5831
 
5359
5832
    darwin* | rhapsody*)
5360
 
    if test "$GXX" = yes ; then
 
5833
      case $host_os in
 
5834
        rhapsody* | darwin1.[[012]])
 
5835
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5836
         ;;
 
5837
       *) # Darwin 1.3 on
 
5838
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5839
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5840
         else
 
5841
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5842
             10.[[012]])
 
5843
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5844
               ;;
 
5845
             10.*)
 
5846
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5847
               ;;
 
5848
           esac
 
5849
         fi
 
5850
         ;;
 
5851
      esac
5361
5852
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5362
 
      case "$host_os" in
5363
 
      rhapsody* | darwin1.[[012]])
5364
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5365
 
        ;;
5366
 
      *) # Darwin 1.3 on
5367
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5368
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5369
 
      else
5370
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
5371
 
          10.[[012]])
5372
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5373
 
            ;;
5374
 
          10.*)
5375
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5376
 
            ;;
5377
 
        esac
5378
 
      fi
5379
 
        ;;
5380
 
      esac
5381
 
        lt_int_apple_cc_single_mod=no
 
5853
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5854
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5855
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5856
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5857
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5858
    if test "$GCC" = yes ; then
5382
5859
        output_verbose_link_cmd='echo'
5383
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5384
 
          lt_int_apple_cc_single_mod=yes
5385
 
        fi
5386
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5387
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5388
 
        else
5389
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5390
 
      fi
5391
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5392
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5393
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5394
 
          _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}'
5395
 
        else
5396
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5397
 
        fi
 
5860
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5861
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5862
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5863
      _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}'
 
5864
      _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}'
 
5865
    else
 
5866
      case $cc_basename in
 
5867
        xlc*)
 
5868
         output_verbose_link_cmd='echo'
 
5869
         _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'
 
5870
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5871
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5872
         _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}'
5398
5873
          _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}'
5399
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5400
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5401
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5402
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5403
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5404
 
    else
5405
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5874
          ;;
 
5875
       *)
 
5876
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5877
          ;;
 
5878
      esac
5406
5879
    fi
5407
5880
      ;;
5408
5881
 
5436
5909
      ;;
5437
5910
 
5438
5911
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5439
 
    freebsd* | kfreebsd*-gnu)
 
5912
    freebsd* | kfreebsd*-gnu | dragonfly*)
5440
5913
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5441
5914
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5442
5915
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5459
5932
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5460
5933
      ;;
5461
5934
 
5462
 
    hpux10* | hpux11*)
5463
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5464
 
        case "$host_cpu" in
5465
 
        hppa*64*|ia64*)
 
5935
    hpux10*)
 
5936
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5937
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5938
      else
 
5939
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5940
      fi
 
5941
      if test "$with_gnu_ld" = no; then
 
5942
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5943
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5944
 
 
5945
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5946
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5947
 
 
5948
        # hardcode_minus_L: Not really in the search PATH,
 
5949
        # but as the default location of the library.
 
5950
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5951
      fi
 
5952
      ;;
 
5953
 
 
5954
    hpux11*)
 
5955
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5956
        case $host_cpu in
 
5957
        hppa*64*)
5466
5958
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5467
5959
          ;;
 
5960
        ia64*)
 
5961
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5962
          ;;
5468
5963
        *)
5469
5964
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5470
5965
          ;;
5471
5966
        esac
5472
5967
      else
5473
 
        case "$host_cpu" in
5474
 
        hppa*64*|ia64*)
5475
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5968
        case $host_cpu in
 
5969
        hppa*64*)
 
5970
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5971
          ;;
 
5972
        ia64*)
 
5973
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5476
5974
          ;;
5477
5975
        *)
5478
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5976
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5479
5977
          ;;
5480
5978
        esac
5481
5979
      fi
5482
5980
      if test "$with_gnu_ld" = no; then
5483
 
        case "$host_cpu" in
5484
 
        hppa*64*)
5485
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5981
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5982
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5983
 
 
5984
        case $host_cpu in
 
5985
        hppa*64*|ia64*)
5486
5986
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5487
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5488
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5489
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5490
 
          ;;
5491
 
        ia64*)
5492
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5494
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5495
 
 
5496
 
          # hardcode_minus_L: Not really in the search PATH,
5497
 
          # but as the default location of the library.
5498
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5987
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5988
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5499
5989
          ;;
5500
5990
        *)
5501
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5502
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5503
5991
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5504
5992
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5505
5993
 
5523
6011
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5524
6012
      ;;
5525
6013
 
5526
 
    netbsd* | knetbsd*-gnu)
 
6014
    netbsd*)
5527
6015
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5528
6016
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5529
6017
      else
5547
6035
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5548
6036
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5549
6037
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6038
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5550
6039
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5551
6040
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5552
6041
      else
5592
6081
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5593
6082
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5594
6083
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5595
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6084
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5596
6085
 
5597
6086
        # Both c and cxx compiler support -rpath directly
5598
6087
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5600
6089
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5601
6090
      ;;
5602
6091
 
5603
 
    sco3.2v5*)
5604
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5605
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5606
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5607
 
      runpath_var=LD_RUN_PATH
5608
 
      hardcode_runpath_var=yes
5609
 
      ;;
5610
 
 
5611
6092
    solaris*)
5612
6093
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5613
6094
      if test "$GCC" = yes; then
 
6095
        wlarc='${wl}'
5614
6096
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5615
6097
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5616
6098
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5617
6099
      else
 
6100
        wlarc=''
5618
6101
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5619
6102
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5620
6103
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5623
6106
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5624
6107
      case $host_os in
5625
6108
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5626
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5627
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6109
      *)
 
6110
        # The compiler driver will combine linker options so we
 
6111
        # cannot just pass the convience library names through
 
6112
        # without $wl, iff we do not link with $LD.
 
6113
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6114
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6115
        case $wlarc in
 
6116
        '')
 
6117
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6118
        *)
 
6119
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
6120
        esac ;;
5628
6121
      esac
5629
6122
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5630
6123
      ;;
5681
6174
      fi
5682
6175
      ;;
5683
6176
 
5684
 
    sysv4.2uw2*)
5685
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5686
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5687
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5688
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5689
 
      hardcode_runpath_var=yes
5690
 
      runpath_var=LD_RUN_PATH
5691
 
      ;;
5692
 
 
5693
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5694
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5695
 
      if test "$GCC" = yes; then
5696
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5697
 
      else
5698
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5699
 
      fi
5700
 
      runpath_var='LD_RUN_PATH'
5701
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5702
 
      ;;
5703
 
 
5704
 
    sysv5*)
5705
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5706
 
      # $CC -shared without GNU ld will not create a library from C++
5707
 
      # object files and a static libstdc++, better avoid it by now
5708
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5709
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5710
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5711
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5712
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5713
 
      runpath_var='LD_RUN_PATH'
 
6177
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6178
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6179
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6180
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6181
      runpath_var='LD_RUN_PATH'
 
6182
 
 
6183
      if test "$GCC" = yes; then
 
6184
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6185
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6186
      else
 
6187
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6188
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6189
      fi
 
6190
      ;;
 
6191
 
 
6192
    sysv5* | sco3.2v5* | sco5v6*)
 
6193
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6194
      # link with -lc, and that would cause any symbols used from libc to
 
6195
      # always be unresolved, which means just about no library would
 
6196
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6197
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6198
      # as -z defs.
 
6199
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6200
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6201
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6202
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6203
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6204
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6205
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6206
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6207
      runpath_var='LD_RUN_PATH'
 
6208
 
 
6209
      if test "$GCC" = yes; then
 
6210
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6211
        _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'
 
6212
      else
 
6213
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6214
        _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'
 
6215
      fi
5714
6216
      ;;
5715
6217
 
5716
6218
    uts4*)
5728
6230
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5729
6231
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5730
6232
 
5731
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5732
 
if test "$GCC" = yes; then
5733
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5734
 
fi
5735
 
 
5736
6233
#
5737
6234
# Do we need to explicitly link libc?
5738
6235
#
5760
6257
        libobjs=conftest.$ac_objext
5761
6258
        deplibs=
5762
6259
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6260
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5763
6261
        compiler_flags=-v
5764
6262
        linker_flags=-v
5765
6263
        verstring=
5880
6378
    done
5881
6379
  done
5882
6380
done
 
6381
IFS=$as_save_IFS
5883
6382
lt_ac_max=0
5884
6383
lt_ac_count=0
5885
6384
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5886
6385
# along with /bin/sed that truncates output.
5887
6386
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5888
 
  test ! -f $lt_ac_sed && break
 
6387
  test ! -f $lt_ac_sed && continue
5889
6388
  cat /dev/null > conftest.in
5890
6389
  lt_ac_count=0
5891
6390
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5910
6409
    fi
5911
6410
  done
5912
6411
done
 
6412
])
5913
6413
SED=$lt_cv_path_SED
5914
 
])
 
6414
AC_SUBST([SED])
5915
6415
AC_MSG_RESULT([$SED])
5916
6416
])
5917
6417
 
5918
 
 
5919
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
5920
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
5921
 
dnl also defines GSTUFF_PKG_ERRORS on error
5922
 
AC_DEFUN(PKG_CHECK_MODULES, [
5923
 
  succeeded=no
5924
 
 
5925
 
  if test -z "$PKG_CONFIG"; then
5926
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
5927
 
  fi
5928
 
 
5929
 
  if test "$PKG_CONFIG" = "no" ; then
5930
 
     echo "*** The pkg-config script could not be found. Make sure it is"
5931
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
5932
 
     echo "*** to the full path to pkg-config."
5933
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5934
 
  else
5935
 
     PKG_CONFIG_MIN_VERSION=0.9.0
5936
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5937
 
        AC_MSG_CHECKING(for $2)
5938
 
 
5939
 
        if $PKG_CONFIG --exists "$2" ; then
5940
 
            AC_MSG_RESULT(yes)
5941
 
            succeeded=yes
5942
 
 
5943
 
            AC_MSG_CHECKING($1_CFLAGS)
5944
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
5945
 
            AC_MSG_RESULT($$1_CFLAGS)
5946
 
 
5947
 
            AC_MSG_CHECKING($1_LIBS)
5948
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
5949
 
            AC_MSG_RESULT($$1_LIBS)
5950
 
        else
5951
 
            $1_CFLAGS=""
5952
 
            $1_LIBS=""
5953
 
            ## If we have a custom action on failure, don't print errors, but 
5954
 
            ## do set a variable so people can do so.
5955
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
5956
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
5957
 
        fi
5958
 
 
5959
 
        AC_SUBST($1_CFLAGS)
5960
 
        AC_SUBST($1_LIBS)
5961
 
     else
5962
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5963
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
5964
 
     fi
5965
 
  fi
5966
 
 
5967
 
  if test $succeeded = yes; then
5968
 
     ifelse([$3], , :, [$3])
5969
 
  else
5970
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
5971
 
  fi
5972
 
])
5973
 
 
5974
 
 
5975
 
 
5976
 
#                                                        -*- Autoconf -*-
5977
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
5978
 
# Generated from amversion.in; do not edit by hand.
5979
 
 
 
6418
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
6419
 
6420
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
6421
#
5980
6422
# This program is free software; you can redistribute it and/or modify
5981
6423
# it under the terms of the GNU General Public License as published by
5982
 
# the Free Software Foundation; either version 2, or (at your option)
5983
 
# any later version.
5984
 
 
5985
 
# This program is distributed in the hope that it will be useful,
5986
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5987
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5988
 
# GNU General Public License for more details.
5989
 
 
 
6424
# the Free Software Foundation; either version 2 of the License, or
 
6425
# (at your option) any later version.
 
6426
#
 
6427
# This program is distributed in the hope that it will be useful, but
 
6428
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6429
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6430
# General Public License for more details.
 
6431
#
5990
6432
# You should have received a copy of the GNU General Public License
5991
6433
# along with this program; if not, write to the Free Software
5992
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6434
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
6435
#
 
6436
# As a special exception to the GNU General Public License, if you
 
6437
# distribute this file as part of a program that contains a
 
6438
# configuration script generated by Autoconf, you may include it under
 
6439
# the same distribution terms that you use for the rest of that program.
 
6440
 
 
6441
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
6442
# ----------------------------------
 
6443
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
6444
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
6445
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
6446
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
6447
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
6448
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
6449
fi
 
6450
if test -n "$PKG_CONFIG"; then
 
6451
        _pkg_min_version=m4_default([$1], [0.9.0])
 
6452
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
6453
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
6454
                AC_MSG_RESULT([yes])
 
6455
        else
 
6456
                AC_MSG_RESULT([no])
 
6457
                PKG_CONFIG=""
 
6458
        fi
 
6459
                
 
6460
fi[]dnl
 
6461
])# PKG_PROG_PKG_CONFIG
 
6462
 
 
6463
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
6464
#
 
6465
# Check to see whether a particular set of modules exists.  Similar
 
6466
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
6467
#
 
6468
#
 
6469
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
6470
# this or PKG_CHECK_MODULES is called, or make sure to call
 
6471
# PKG_CHECK_EXISTS manually
 
6472
# --------------------------------------------------------------
 
6473
AC_DEFUN([PKG_CHECK_EXISTS],
 
6474
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6475
if test -n "$PKG_CONFIG" && \
 
6476
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
6477
  m4_ifval([$2], [$2], [:])
 
6478
m4_ifvaln([$3], [else
 
6479
  $3])dnl
 
6480
fi])
 
6481
 
 
6482
 
 
6483
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
6484
# ---------------------------------------------
 
6485
m4_define([_PKG_CONFIG],
 
6486
[if test -n "$PKG_CONFIG"; then
 
6487
    if test -n "$$1"; then
 
6488
        pkg_cv_[]$1="$$1"
 
6489
    else
 
6490
        PKG_CHECK_EXISTS([$3],
 
6491
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
6492
                         [pkg_failed=yes])
 
6493
    fi
 
6494
else
 
6495
        pkg_failed=untried
 
6496
fi[]dnl
 
6497
])# _PKG_CONFIG
 
6498
 
 
6499
# _PKG_SHORT_ERRORS_SUPPORTED
 
6500
# -----------------------------
 
6501
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
6502
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
6503
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
6504
        _pkg_short_errors_supported=yes
 
6505
else
 
6506
        _pkg_short_errors_supported=no
 
6507
fi[]dnl
 
6508
])# _PKG_SHORT_ERRORS_SUPPORTED
 
6509
 
 
6510
 
 
6511
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
6512
# [ACTION-IF-NOT-FOUND])
 
6513
#
 
6514
#
 
6515
# Note that if there is a possibility the first call to
 
6516
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
6517
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
6518
#
 
6519
#
 
6520
# --------------------------------------------------------------
 
6521
AC_DEFUN([PKG_CHECK_MODULES],
 
6522
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6523
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
6524
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
6525
 
 
6526
pkg_failed=no
 
6527
AC_MSG_CHECKING([for $1])
 
6528
 
 
6529
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
6530
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
6531
 
 
6532
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
6533
and $1[]_LIBS to avoid the need to call pkg-config.
 
6534
See the pkg-config man page for more details.])
 
6535
 
 
6536
if test $pkg_failed = yes; then
 
6537
        _PKG_SHORT_ERRORS_SUPPORTED
 
6538
        if test $_pkg_short_errors_supported = yes; then
 
6539
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
6540
        else 
 
6541
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
6542
        fi
 
6543
        # Put the nasty error message in config.log where it belongs
 
6544
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
6545
 
 
6546
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
6547
[Package requirements ($2) were not met:
 
6548
 
 
6549
$$1_PKG_ERRORS
 
6550
 
 
6551
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
6552
installed software in a non-standard prefix.
 
6553
 
 
6554
_PKG_TEXT
 
6555
])],
 
6556
                [AC_MSG_RESULT([no])
 
6557
                $4])
 
6558
elif test $pkg_failed = untried; then
 
6559
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
6560
[The pkg-config script could not be found or is too old.  Make sure it
 
6561
is in your PATH or set the PKG_CONFIG environment variable to the full
 
6562
path to pkg-config.
 
6563
 
 
6564
_PKG_TEXT
 
6565
 
 
6566
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6567
                [$4])
 
6568
else
 
6569
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
6570
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
6571
        AC_MSG_RESULT([yes])
 
6572
        ifelse([$3], , :, [$3])
 
6573
fi[]dnl
 
6574
])# PKG_CHECK_MODULES
 
6575
 
 
6576
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
6577
#
 
6578
# This file is free software; the Free Software Foundation
 
6579
# gives unlimited permission to copy and/or distribute it,
 
6580
# with or without modifications, as long as this notice is preserved.
5993
6581
 
5994
6582
# AM_AUTOMAKE_VERSION(VERSION)
5995
6583
# ----------------------------
5996
6584
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5997
6585
# generated from the m4 files accompanying Automake X.Y.
5998
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
6586
# (This private macro should not be called outside this file.)
 
6587
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6588
[am__api_version='1.10'
 
6589
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6590
dnl require some minimum version.  Point them to the right macro.
 
6591
m4_if([$1], [1.10], [],
 
6592
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6593
])
 
6594
 
 
6595
# _AM_AUTOCONF_VERSION(VERSION)
 
6596
# -----------------------------
 
6597
# aclocal traces this macro to find the Autoconf version.
 
6598
# This is a private macro too.  Using m4_define simplifies
 
6599
# the logic in aclocal, which can simply ignore this definition.
 
6600
m4_define([_AM_AUTOCONF_VERSION], [])
5999
6601
 
6000
6602
# AM_SET_CURRENT_AUTOMAKE_VERSION
6001
6603
# -------------------------------
6002
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6604
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6003
6605
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6004
6606
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6005
 
         [AM_AUTOMAKE_VERSION([1.8.5])])
6006
 
 
6007
 
# AM_AUX_DIR_EXPAND
6008
 
 
6009
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6010
 
 
6011
 
# This program is free software; you can redistribute it and/or modify
6012
 
# it under the terms of the GNU General Public License as published by
6013
 
# the Free Software Foundation; either version 2, or (at your option)
6014
 
# any later version.
6015
 
 
6016
 
# This program is distributed in the hope that it will be useful,
6017
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6018
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6019
 
# GNU General Public License for more details.
6020
 
 
6021
 
# You should have received a copy of the GNU General Public License
6022
 
# along with this program; if not, write to the Free Software
6023
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6024
 
# 02111-1307, USA.
 
6607
[AM_AUTOMAKE_VERSION([1.10])dnl
 
6608
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
6609
 
 
6610
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6611
 
 
6612
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6613
#
 
6614
# This file is free software; the Free Software Foundation
 
6615
# gives unlimited permission to copy and/or distribute it,
 
6616
# with or without modifications, as long as this notice is preserved.
6025
6617
 
6026
6618
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6027
6619
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6068
6660
am_aux_dir=`cd $ac_aux_dir && pwd`
6069
6661
])
6070
6662
 
6071
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
6072
 
 
6073
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6074
 
 
6075
 
# This program is free software; you can redistribute it and/or modify
6076
 
# it under the terms of the GNU General Public License as published by
6077
 
# the Free Software Foundation; either version 2, or (at your option)
6078
 
# any later version.
6079
 
 
6080
 
# This program is distributed in the hope that it will be useful,
6081
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6082
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6083
 
# GNU General Public License for more details.
6084
 
 
6085
 
# You should have received a copy of the GNU General Public License
6086
 
# along with this program; if not, write to the Free Software
6087
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6088
 
# 02111-1307, USA.
6089
 
 
6090
 
# serial 6
 
6663
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6664
 
 
6665
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
6666
# Free Software Foundation, Inc.
 
6667
#
 
6668
# This file is free software; the Free Software Foundation
 
6669
# gives unlimited permission to copy and/or distribute it,
 
6670
# with or without modifications, as long as this notice is preserved.
 
6671
 
 
6672
# serial 8
6091
6673
 
6092
6674
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6093
6675
# -------------------------------------
6096
6678
[AC_PREREQ(2.52)dnl
6097
6679
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6098
6680
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6099
 
AC_SUBST([$1_TRUE])
6100
 
AC_SUBST([$1_FALSE])
 
6681
AC_SUBST([$1_TRUE])dnl
 
6682
AC_SUBST([$1_FALSE])dnl
 
6683
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6684
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6101
6685
if $2; then
6102
6686
  $1_TRUE=
6103
6687
  $1_FALSE='#'
6107
6691
fi
6108
6692
AC_CONFIG_COMMANDS_PRE(
6109
6693
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6110
 
  AC_MSG_ERROR([conditional "$1" was never defined.
6111
 
Usually this means the macro was only invoked conditionally.])
 
6694
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6695
Usually this means the macro was only invoked conditionally.]])
6112
6696
fi])])
6113
6697
 
6114
 
# serial 7                                              -*- Autoconf -*-
6115
 
 
6116
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6698
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6117
6699
# Free Software Foundation, Inc.
6118
 
 
6119
 
# This program is free software; you can redistribute it and/or modify
6120
 
# it under the terms of the GNU General Public License as published by
6121
 
# the Free Software Foundation; either version 2, or (at your option)
6122
 
# any later version.
6123
 
 
6124
 
# This program is distributed in the hope that it will be useful,
6125
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6126
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6127
 
# GNU General Public License for more details.
6128
 
 
6129
 
# You should have received a copy of the GNU General Public License
6130
 
# along with this program; if not, write to the Free Software
6131
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6132
 
# 02111-1307, USA.
6133
 
 
 
6700
#
 
6701
# This file is free software; the Free Software Foundation
 
6702
# gives unlimited permission to copy and/or distribute it,
 
6703
# with or without modifications, as long as this notice is preserved.
 
6704
 
 
6705
# serial 9
6134
6706
 
6135
6707
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6136
6708
# written in clear, in which case automake, when reading aclocal.m4,
6139
6711
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6140
6712
 
6141
6713
 
6142
 
 
6143
6714
# _AM_DEPENDENCIES(NAME)
6144
6715
# ----------------------
6145
6716
# See how the compiler implements dependency checking.
6159
6730
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6160
6731
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6161
6732
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6733
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6162
6734
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6163
6735
                   [depcc="$$1"   am_compiler_list=])
6164
6736
 
6224
6796
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6225
6797
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6226
6798
         >/dev/null 2>conftest.err &&
 
6799
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6227
6800
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6228
6801
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6229
6802
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6276
6849
  AMDEPBACKSLASH='\'
6277
6850
fi
6278
6851
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6279
 
AC_SUBST([AMDEPBACKSLASH])
 
6852
AC_SUBST([AMDEPBACKSLASH])dnl
 
6853
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6280
6854
])
6281
6855
 
6282
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6283
 
 
6284
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6285
 
 
6286
 
# This program is free software; you can redistribute it and/or modify
6287
 
# it under the terms of the GNU General Public License as published by
6288
 
# the Free Software Foundation; either version 2, or (at your option)
6289
 
# any later version.
6290
 
 
6291
 
# This program is distributed in the hope that it will be useful,
6292
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6293
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6294
 
# GNU General Public License for more details.
6295
 
 
6296
 
# You should have received a copy of the GNU General Public License
6297
 
# along with this program; if not, write to the Free Software
6298
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6299
 
# 02111-1307, USA.
6300
 
 
6301
 
#serial 2
 
6856
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6857
 
 
6858
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6859
# Free Software Foundation, Inc.
 
6860
#
 
6861
# This file is free software; the Free Software Foundation
 
6862
# gives unlimited permission to copy and/or distribute it,
 
6863
# with or without modifications, as long as this notice is preserved.
 
6864
 
 
6865
#serial 3
6302
6866
 
6303
6867
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6304
6868
# ------------------------------
6311
6875
  # some people rename them; so instead we look at the file content.
6312
6876
  # Grep'ing the first line is not enough: some people post-process
6313
6877
  # each Makefile.in and add a new line on top of each file to say so.
6314
 
  # So let's grep whole file.
6315
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6878
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6879
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6880
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6316
6881
    dirpart=`AS_DIRNAME("$mf")`
6317
6882
  else
6318
6883
    continue
6319
6884
  fi
6320
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6321
 
  # Extract the definition of DEP_FILES from the Makefile without
6322
 
  # running `make'.
 
6885
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6886
  # from the Makefile without running `make'.
6323
6887
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6324
6888
  test -z "$DEPDIR" && continue
 
6889
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6890
  test -z "am__include" && continue
 
6891
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6325
6892
  # When using ansi2knr, U may be empty or an underscore; expand it
6326
6893
  U=`sed -n 's/^U = //p' < "$mf"`
6327
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6328
 
  # We invoke sed twice because it is the simplest approach to
6329
 
  # changing $(DEPDIR) to its actual value in the expansion.
6330
 
  for file in `sed -n '
6331
 
    /^DEP_FILES = .*\\\\$/ {
6332
 
      s/^DEP_FILES = //
6333
 
      :loop
6334
 
        s/\\\\$//
6335
 
        p
6336
 
        n
6337
 
        /\\\\$/ b loop
6338
 
      p
6339
 
    }
6340
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6894
  # Find all dependency output files, they are included files with
 
6895
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6896
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6897
  # expansion.
 
6898
  for file in `sed -n "
 
6899
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6341
6900
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6342
6901
    # Make sure the directory exists.
6343
6902
    test -f "$dirpart/$file" && continue
6363
6922
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6364
6923
])
6365
6924
 
6366
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6367
 
 
6368
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6369
 
 
6370
 
# This program is free software; you can redistribute it and/or modify
6371
 
# it under the terms of the GNU General Public License as published by
6372
 
# the Free Software Foundation; either version 2, or (at your option)
6373
 
# any later version.
6374
 
 
6375
 
# This program is distributed in the hope that it will be useful,
6376
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6377
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6378
 
# GNU General Public License for more details.
6379
 
 
6380
 
# You should have received a copy of the GNU General Public License
6381
 
# along with this program; if not, write to the Free Software
6382
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6383
 
# 02111-1307, USA.
6384
 
 
6385
 
# serial 7
6386
 
 
6387
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
6388
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6389
 
 
6390
 
# Do all the work for Automake.                            -*- Autoconf -*-
6391
 
 
6392
 
# This macro actually does too much some checks are only needed if
 
6925
# Do all the work for Automake.                             -*- Autoconf -*-
 
6926
 
 
6927
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
6928
# 2005, 2006 Free Software Foundation, Inc.
 
6929
#
 
6930
# This file is free software; the Free Software Foundation
 
6931
# gives unlimited permission to copy and/or distribute it,
 
6932
# with or without modifications, as long as this notice is preserved.
 
6933
 
 
6934
# serial 12
 
6935
 
 
6936
# This macro actually does too much.  Some checks are only needed if
6393
6937
# your package does certain things.  But this isn't really a big deal.
6394
6938
 
6395
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6396
 
# Free Software Foundation, Inc.
6397
 
 
6398
 
# This program is free software; you can redistribute it and/or modify
6399
 
# it under the terms of the GNU General Public License as published by
6400
 
# the Free Software Foundation; either version 2, or (at your option)
6401
 
# any later version.
6402
 
 
6403
 
# This program is distributed in the hope that it will be useful,
6404
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6405
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6406
 
# GNU General Public License for more details.
6407
 
 
6408
 
# You should have received a copy of the GNU General Public License
6409
 
# along with this program; if not, write to the Free Software
6410
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6411
 
# 02111-1307, USA.
6412
 
 
6413
 
# serial 11
6414
 
 
6415
6939
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6416
6940
# AM_INIT_AUTOMAKE([OPTIONS])
6417
6941
# -----------------------------------------------
6424
6948
# arguments mandatory, and then we can depend on a new Autoconf
6425
6949
# release and drop the old call support.
6426
6950
AC_DEFUN([AM_INIT_AUTOMAKE],
6427
 
[AC_PREREQ([2.58])dnl
 
6951
[AC_PREREQ([2.60])dnl
6428
6952
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6429
6953
dnl the ones we care about.
6430
6954
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6431
6955
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6432
6956
AC_REQUIRE([AC_PROG_INSTALL])dnl
6433
 
# test to see if srcdir already configured
6434
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6435
 
   test -f $srcdir/config.status; then
6436
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6957
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
6958
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
6959
  # is not polluted with repeated "-I."
 
6960
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
6961
  # test to see if srcdir already configured
 
6962
  if test -f $srcdir/config.status; then
 
6963
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6964
  fi
6437
6965
fi
6438
6966
 
6439
6967
# test whether we have cygpath
6453
6981
 AC_SUBST([PACKAGE], [$1])dnl
6454
6982
 AC_SUBST([VERSION], [$2])],
6455
6983
[_AM_SET_OPTIONS([$1])dnl
 
6984
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
6985
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
6986
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6456
6987
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6457
6988
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6458
6989
 
6468
6999
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6469
7000
AM_MISSING_PROG(AUTOHEADER, autoheader)
6470
7001
AM_MISSING_PROG(MAKEINFO, makeinfo)
6471
 
AM_MISSING_PROG(AMTAR, tar)
6472
7002
AM_PROG_INSTALL_SH
6473
7003
AM_PROG_INSTALL_STRIP
6474
7004
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6477
7007
AC_REQUIRE([AC_PROG_AWK])dnl
6478
7008
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6479
7009
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6480
 
 
 
7010
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7011
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7012
                             [_AM_PROG_TAR([v7])])])
6481
7013
_AM_IF_OPTION([no-dependencies],,
6482
7014
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6483
7015
                  [_AM_DEPENDENCIES(CC)],
6487
7019
                  [_AM_DEPENDENCIES(CXX)],
6488
7020
                  [define([AC_PROG_CXX],
6489
7021
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7022
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7023
                  [_AM_DEPENDENCIES(OBJC)],
 
7024
                  [define([AC_PROG_OBJC],
 
7025
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6490
7026
])
6491
7027
])
6492
7028
 
6511
7047
done
6512
7048
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6513
7049
 
 
7050
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7051
#
 
7052
# This file is free software; the Free Software Foundation
 
7053
# gives unlimited permission to copy and/or distribute it,
 
7054
# with or without modifications, as long as this notice is preserved.
 
7055
 
6514
7056
# AM_PROG_INSTALL_SH
6515
7057
# ------------------
6516
7058
# Define $install_sh.
6517
 
 
6518
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6519
 
 
6520
 
# This program is free software; you can redistribute it and/or modify
6521
 
# it under the terms of the GNU General Public License as published by
6522
 
# the Free Software Foundation; either version 2, or (at your option)
6523
 
# any later version.
6524
 
 
6525
 
# This program is distributed in the hope that it will be useful,
6526
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6527
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6528
 
# GNU General Public License for more details.
6529
 
 
6530
 
# You should have received a copy of the GNU General Public License
6531
 
# along with this program; if not, write to the Free Software
6532
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6533
 
# 02111-1307, USA.
6534
 
 
6535
7059
AC_DEFUN([AM_PROG_INSTALL_SH],
6536
7060
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6537
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7061
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6538
7062
AC_SUBST(install_sh)])
6539
7063
 
6540
 
#                                                          -*- Autoconf -*-
6541
 
# Copyright (C) 2003  Free Software Foundation, Inc.
6542
 
 
6543
 
# This program is free software; you can redistribute it and/or modify
6544
 
# it under the terms of the GNU General Public License as published by
6545
 
# the Free Software Foundation; either version 2, or (at your option)
6546
 
# any later version.
6547
 
 
6548
 
# This program is distributed in the hope that it will be useful,
6549
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6550
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6551
 
# GNU General Public License for more details.
6552
 
 
6553
 
# You should have received a copy of the GNU General Public License
6554
 
# along with this program; if not, write to the Free Software
6555
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6556
 
# 02111-1307, USA.
6557
 
 
6558
 
# serial 1
 
7064
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7065
#
 
7066
# This file is free software; the Free Software Foundation
 
7067
# gives unlimited permission to copy and/or distribute it,
 
7068
# with or without modifications, as long as this notice is preserved.
 
7069
 
 
7070
# serial 2
6559
7071
 
6560
7072
# Check whether the underlying file-system supports filenames
6561
7073
# with a leading dot.  For instance MS-DOS doesn't.
6570
7082
rmdir .tst 2>/dev/null
6571
7083
AC_SUBST([am__leading_dot])])
6572
7084
 
6573
 
# Add --enable-maintainer-mode option to configure.
6574
 
# From Jim Meyering
6575
 
 
6576
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
6577
 
# Free Software Foundation, Inc.
6578
 
 
6579
 
# This program is free software; you can redistribute it and/or modify
6580
 
# it under the terms of the GNU General Public License as published by
6581
 
# the Free Software Foundation; either version 2, or (at your option)
6582
 
# any later version.
6583
 
 
6584
 
# This program is distributed in the hope that it will be useful,
6585
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6586
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6587
 
# GNU General Public License for more details.
6588
 
 
6589
 
# You should have received a copy of the GNU General Public License
6590
 
# along with this program; if not, write to the Free Software
6591
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6592
 
# 02111-1307, USA.
 
7085
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
7086
 
 
7087
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7088
#
 
7089
# This file is free software; the Free Software Foundation
 
7090
# gives unlimited permission to copy and/or distribute it,
 
7091
# with or without modifications, as long as this notice is preserved.
6593
7092
 
6594
7093
# serial 3
6595
7094
 
6596
 
AC_DEFUN([AM_MAINTAINER_MODE],
6597
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6598
 
  dnl maintainer-mode is disabled by default
6599
 
  AC_ARG_ENABLE(maintainer-mode,
6600
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
6601
 
                          (and sometimes confusing) to the casual installer],
6602
 
      USE_MAINTAINER_MODE=$enableval,
6603
 
      USE_MAINTAINER_MODE=no)
6604
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6605
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
6606
 
  MAINT=$MAINTAINER_MODE_TRUE
6607
 
  AC_SUBST(MAINT)dnl
6608
 
]
6609
 
)
6610
 
 
6611
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6612
 
 
6613
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
6614
 
 
6615
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6616
 
 
6617
 
# This program is free software; you can redistribute it and/or modify
6618
 
# it under the terms of the GNU General Public License as published by
6619
 
# the Free Software Foundation; either version 2, or (at your option)
6620
 
# any later version.
6621
 
 
6622
 
# This program is distributed in the hope that it will be useful,
6623
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6624
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6625
 
# GNU General Public License for more details.
6626
 
 
6627
 
# You should have received a copy of the GNU General Public License
6628
 
# along with this program; if not, write to the Free Software
6629
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6630
 
# 02111-1307, USA.
6631
 
 
6632
 
# serial 2
6633
 
 
6634
7095
# AM_MAKE_INCLUDE()
6635
7096
# -----------------
6636
7097
# Check to see how make treats includes.
6673
7134
rm -f confinc confmf
6674
7135
])
6675
7136
 
6676
 
#  -*- Autoconf -*-
6677
 
 
6678
 
 
6679
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6680
 
 
6681
 
# This program is free software; you can redistribute it and/or modify
6682
 
# it under the terms of the GNU General Public License as published by
6683
 
# the Free Software Foundation; either version 2, or (at your option)
6684
 
# any later version.
6685
 
 
6686
 
# This program is distributed in the hope that it will be useful,
6687
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6688
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6689
 
# GNU General Public License for more details.
6690
 
 
6691
 
# You should have received a copy of the GNU General Public License
6692
 
# along with this program; if not, write to the Free Software
6693
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6694
 
# 02111-1307, USA.
6695
 
 
6696
 
# serial 3
 
7137
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
7138
# Free Software Foundation, Inc.
 
7139
#
 
7140
# This file is free software; the Free Software Foundation
 
7141
# gives unlimited permission to copy and/or distribute it,
 
7142
# with or without modifications, as long as this notice is preserved.
 
7143
 
 
7144
# serial 5
 
7145
 
 
7146
# AM_PROG_CC_C_O
 
7147
# --------------
 
7148
# Like AC_PROG_CC_C_O, but changed for automake.
 
7149
AC_DEFUN([AM_PROG_CC_C_O],
 
7150
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
7151
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7152
AC_REQUIRE_AUX_FILE([compile])dnl
 
7153
# FIXME: we rely on the cache variable name because
 
7154
# there is no other way.
 
7155
set dummy $CC
 
7156
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
7157
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
7158
   # Losing compiler, so override with the script.
 
7159
   # FIXME: It is wrong to rewrite CC.
 
7160
   # But if we don't then we get into trouble of one sort or another.
 
7161
   # A longer-term fix would be to have automake use am__CC in this case,
 
7162
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
7163
   CC="$am_aux_dir/compile $CC"
 
7164
fi
 
7165
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
7166
dnl setting of CC.
 
7167
m4_define([AC_PROG_CC],
 
7168
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
7169
])
 
7170
 
 
7171
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
7172
 
 
7173
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
7174
# Free Software Foundation, Inc.
 
7175
#
 
7176
# This file is free software; the Free Software Foundation
 
7177
# gives unlimited permission to copy and/or distribute it,
 
7178
# with or without modifications, as long as this notice is preserved.
 
7179
 
 
7180
# serial 5
6697
7181
 
6698
7182
# AM_MISSING_PROG(NAME, PROGRAM)
6699
7183
# ------------------------------
6709
7193
# If it does, set am_missing_run to use it, otherwise, to nothing.
6710
7194
AC_DEFUN([AM_MISSING_HAS_RUN],
6711
7195
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7196
AC_REQUIRE_AUX_FILE([missing])dnl
6712
7197
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6713
7198
# Use eval to expand $SHELL
6714
7199
if eval "$MISSING --run true"; then
6719
7204
fi
6720
7205
])
6721
7206
 
 
7207
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
7208
#
 
7209
# This file is free software; the Free Software Foundation
 
7210
# gives unlimited permission to copy and/or distribute it,
 
7211
# with or without modifications, as long as this notice is preserved.
 
7212
 
6722
7213
# AM_PROG_MKDIR_P
6723
7214
# ---------------
6724
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6725
 
 
6726
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6727
 
 
6728
 
# This program is free software; you can redistribute it and/or modify
6729
 
# it under the terms of the GNU General Public License as published by
6730
 
# the Free Software Foundation; either version 2, or (at your option)
6731
 
# any later version.
6732
 
 
6733
 
# This program is distributed in the hope that it will be useful,
6734
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6735
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6736
 
# GNU General Public License for more details.
6737
 
 
6738
 
# You should have received a copy of the GNU General Public License
6739
 
# along with this program; if not, write to the Free Software
6740
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6741
 
# 02111-1307, USA.
6742
 
 
6743
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6744
 
# created by `make install' are always world readable, even if the
6745
 
# installer happens to have an overly restrictive umask (e.g. 077).
6746
 
# This was a mistake.  There are at least two reasons why we must not
6747
 
# use `-m 0755':
6748
 
#   - it causes special bits like SGID to be ignored,
6749
 
#   - it may be too restrictive (some setups expect 775 directories).
6750
 
#
6751
 
# Do not use -m 0755 and let people choose whatever they expect by
6752
 
# setting umask.
6753
 
#
6754
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6755
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6756
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6757
 
# concurrently, both version can detect that a/ is missing, but only
6758
 
# one can create it and the other will error out.  Consequently we
6759
 
# restrict ourselves to GNU make (using the --version option ensures
6760
 
# this.)
 
7215
# Check for `mkdir -p'.
6761
7216
AC_DEFUN([AM_PROG_MKDIR_P],
6762
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6763
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
6764
 
  # argument.  Indeed, we sometimes output rules like
6765
 
  #   $(mkdir_p) $(somedir)
6766
 
  # where $(somedir) is conditionally defined.
6767
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6768
 
  # expensive solution, as it forces Make to start a sub-shell.)
6769
 
  mkdir_p='mkdir -p -- .'
6770
 
else
6771
 
  # On NextStep and OpenStep, the `mkdir' command does not
6772
 
  # recognize any option.  It will interpret all options as
6773
 
  # directories to create, and then abort because `.' already
6774
 
  # exists.
6775
 
  for d in ./-p ./--version;
6776
 
  do
6777
 
    test -d $d && rmdir $d
6778
 
  done
6779
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6780
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
6781
 
    mkdir_p='$(mkinstalldirs)'
6782
 
  else
6783
 
    mkdir_p='$(install_sh) -d'
6784
 
  fi
6785
 
fi
6786
 
AC_SUBST([mkdir_p])])
6787
 
 
6788
 
# Helper functions for option handling.                    -*- Autoconf -*-
6789
 
 
6790
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
6791
 
 
6792
 
# This program is free software; you can redistribute it and/or modify
6793
 
# it under the terms of the GNU General Public License as published by
6794
 
# the Free Software Foundation; either version 2, or (at your option)
6795
 
# any later version.
6796
 
 
6797
 
# This program is distributed in the hope that it will be useful,
6798
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6799
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6800
 
# GNU General Public License for more details.
6801
 
 
6802
 
# You should have received a copy of the GNU General Public License
6803
 
# along with this program; if not, write to the Free Software
6804
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6805
 
# 02111-1307, USA.
6806
 
 
6807
 
# serial 2
 
7217
[AC_PREREQ([2.60])dnl
 
7218
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7219
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7220
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7221
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7222
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7223
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7224
dnl adjustment using top_builddir (which is defined more often than
 
7225
dnl MKDIR_P).
 
7226
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7227
case $mkdir_p in
 
7228
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7229
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7230
esac
 
7231
])
 
7232
 
 
7233
# Helper functions for option handling.                     -*- Autoconf -*-
 
7234
 
 
7235
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7236
#
 
7237
# This file is free software; the Free Software Foundation
 
7238
# gives unlimited permission to copy and/or distribute it,
 
7239
# with or without modifications, as long as this notice is preserved.
 
7240
 
 
7241
# serial 3
6808
7242
 
6809
7243
# _AM_MANGLE_OPTION(NAME)
6810
7244
# -----------------------
6829
7263
AC_DEFUN([_AM_IF_OPTION],
6830
7264
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6831
7265
 
6832
 
#
6833
 
# Check to make sure that the build environment is sane.
6834
 
#
6835
 
 
6836
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6837
 
 
6838
 
# This program is free software; you can redistribute it and/or modify
6839
 
# it under the terms of the GNU General Public License as published by
6840
 
# the Free Software Foundation; either version 2, or (at your option)
6841
 
# any later version.
6842
 
 
6843
 
# This program is distributed in the hope that it will be useful,
6844
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6845
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6846
 
# GNU General Public License for more details.
6847
 
 
6848
 
# You should have received a copy of the GNU General Public License
6849
 
# along with this program; if not, write to the Free Software
6850
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6851
 
# 02111-1307, USA.
6852
 
 
6853
 
# serial 3
 
7266
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7267
 
 
7268
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7269
# Free Software Foundation, Inc.
 
7270
#
 
7271
# This file is free software; the Free Software Foundation
 
7272
# gives unlimited permission to copy and/or distribute it,
 
7273
# with or without modifications, as long as this notice is preserved.
 
7274
 
 
7275
# serial 4
6854
7276
 
6855
7277
# AM_SANITY_CHECK
6856
7278
# ---------------
6893
7315
fi
6894
7316
AC_MSG_RESULT(yes)])
6895
7317
 
 
7318
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7319
#
 
7320
# This file is free software; the Free Software Foundation
 
7321
# gives unlimited permission to copy and/or distribute it,
 
7322
# with or without modifications, as long as this notice is preserved.
 
7323
 
6896
7324
# AM_PROG_INSTALL_STRIP
6897
 
 
6898
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6899
 
 
6900
 
# This program is free software; you can redistribute it and/or modify
6901
 
# it under the terms of the GNU General Public License as published by
6902
 
# the Free Software Foundation; either version 2, or (at your option)
6903
 
# any later version.
6904
 
 
6905
 
# This program is distributed in the hope that it will be useful,
6906
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6907
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6908
 
# GNU General Public License for more details.
6909
 
 
6910
 
# You should have received a copy of the GNU General Public License
6911
 
# along with this program; if not, write to the Free Software
6912
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6913
 
# 02111-1307, USA.
6914
 
 
 
7325
# ---------------------
6915
7326
# One issue with vendor `install' (even GNU) is that you can't
6916
7327
# specify the program used to strip binaries.  This is especially
6917
7328
# annoying in cross-compiling environments, where the build's strip
6929
7340
if test "$cross_compiling" != no; then
6930
7341
  AC_CHECK_TOOL([STRIP], [strip], :)
6931
7342
fi
6932
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7343
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6933
7344
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6934
7345
 
6935
 
m4_include([m4/gettext.m4])
6936
 
m4_include([m4/iconv.m4])
6937
 
m4_include([m4/lib-ld.m4])
6938
 
m4_include([m4/lib-link.m4])
6939
 
m4_include([m4/lib-prefix.m4])
6940
 
m4_include([m4/nls.m4])
6941
 
m4_include([m4/po.m4])
6942
 
m4_include([m4/progtest.m4])
 
7346
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7347
#
 
7348
# This file is free software; the Free Software Foundation
 
7349
# gives unlimited permission to copy and/or distribute it,
 
7350
# with or without modifications, as long as this notice is preserved.
 
7351
 
 
7352
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7353
# ---------------------------
 
7354
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
7355
# This macro is traced by Automake.
 
7356
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7357
 
 
7358
# Check how to create a tarball.                            -*- Autoconf -*-
 
7359
 
 
7360
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7361
#
 
7362
# This file is free software; the Free Software Foundation
 
7363
# gives unlimited permission to copy and/or distribute it,
 
7364
# with or without modifications, as long as this notice is preserved.
 
7365
 
 
7366
# serial 2
 
7367
 
 
7368
# _AM_PROG_TAR(FORMAT)
 
7369
# --------------------
 
7370
# Check how to create a tarball in format FORMAT.
 
7371
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7372
#
 
7373
# Substitute a variable $(am__tar) that is a command
 
7374
# writing to stdout a FORMAT-tarball containing the directory
 
7375
# $tardir.
 
7376
#     tardir=directory && $(am__tar) > result.tar
 
7377
#
 
7378
# Substitute a variable $(am__untar) that extract such
 
7379
# a tarball read from stdin.
 
7380
#     $(am__untar) < result.tar
 
7381
AC_DEFUN([_AM_PROG_TAR],
 
7382
[# Always define AMTAR for backward compatibility.
 
7383
AM_MISSING_PROG([AMTAR], [tar])
 
7384
m4_if([$1], [v7],
 
7385
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7386
     [m4_case([$1], [ustar],, [pax],,
 
7387
              [m4_fatal([Unknown tar format])])
 
7388
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7389
# Loop over all known methods to create a tar archive until one works.
 
7390
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7391
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7392
# Do not fold the above two line into one, because Tru64 sh and
 
7393
# Solaris sh will not grok spaces in the rhs of `-'.
 
7394
for _am_tool in $_am_tools
 
7395
do
 
7396
  case $_am_tool in
 
7397
  gnutar)
 
7398
    for _am_tar in tar gnutar gtar;
 
7399
    do
 
7400
      AM_RUN_LOG([$_am_tar --version]) && break
 
7401
    done
 
7402
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7403
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7404
    am__untar="$_am_tar -xf -"
 
7405
    ;;
 
7406
  plaintar)
 
7407
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7408
    # ustar tarball either.
 
7409
    (tar --version) >/dev/null 2>&1 && continue
 
7410
    am__tar='tar chf - "$$tardir"'
 
7411
    am__tar_='tar chf - "$tardir"'
 
7412
    am__untar='tar xf -'
 
7413
    ;;
 
7414
  pax)
 
7415
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7416
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7417
    am__untar='pax -r'
 
7418
    ;;
 
7419
  cpio)
 
7420
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7421
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7422
    am__untar='cpio -i -H $1 -d'
 
7423
    ;;
 
7424
  none)
 
7425
    am__tar=false
 
7426
    am__tar_=false
 
7427
    am__untar=false
 
7428
    ;;
 
7429
  esac
 
7430
 
 
7431
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7432
  # and am__untar set.
 
7433
  test -n "${am_cv_prog_tar_$1}" && break
 
7434
 
 
7435
  # tar/untar a dummy directory, and stop if the command works
 
7436
  rm -rf conftest.dir
 
7437
  mkdir conftest.dir
 
7438
  echo GrepMe > conftest.dir/file
 
7439
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7440
  rm -rf conftest.dir
 
7441
  if test -s conftest.tar; then
 
7442
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7443
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7444
  fi
 
7445
done
 
7446
rm -rf conftest.dir
 
7447
 
 
7448
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7449
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7450
AC_SUBST([am__tar])
 
7451
AC_SUBST([am__untar])
 
7452
]) # _AM_PROG_TAR
 
7453
 
 
7454
m4_include([m4m/gp-check-library.m4])
 
7455
m4_include([m4m/gp-check-popt.m4])
 
7456
m4_include([m4m/gp-check-shell-environment.m4])
 
7457
m4_include([m4m/gp-config-msg.m4])
 
7458
m4_include([m4m/gp-gettext-hack.m4])
 
7459
m4_include([m4m/gp-pkg-config.m4])
 
7460
m4_include([auto-m4/gettext.m4])
 
7461
m4_include([auto-m4/iconv.m4])
 
7462
m4_include([auto-m4/lib-ld.m4])
 
7463
m4_include([auto-m4/lib-link.m4])
 
7464
m4_include([auto-m4/lib-prefix.m4])
 
7465
m4_include([auto-m4/nls.m4])
 
7466
m4_include([auto-m4/po.m4])
 
7467
m4_include([auto-m4/progtest.m4])