~ubuntu-branches/ubuntu/maverick/pygoocanvas/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-08-31 12:32:56 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070831123256-cacxmruft92p09kq
Tags: 0.9.0-0ubuntu1
* New upstream version (UVF exception approval on LP: #136326)
* debian/control:
  - updated libgoocanvas requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for pygoocanvas 0.8.0.
 
3
# Generated by GNU Autoconf 2.61 for pygoocanvas 0.9.0.
4
4
#
5
5
# Report bugs to <http://developer.berlios.de/projects/pygoocanvas/>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='pygoocanvas'
730
730
PACKAGE_TARNAME='pygoocanvas'
731
 
PACKAGE_VERSION='0.8.0'
732
 
PACKAGE_STRING='pygoocanvas 0.8.0'
 
731
PACKAGE_VERSION='0.9.0'
 
732
PACKAGE_STRING='pygoocanvas 0.9.0'
733
733
PACKAGE_BUGREPORT='http://developer.berlios.de/projects/pygoocanvas/'
734
734
 
735
735
ac_unique_file="./goocanvasmodule.c"
809
809
INSTALL_PROGRAM
810
810
INSTALL_SCRIPT
811
811
INSTALL_DATA
812
 
am__isrc
813
812
CYGPATH_W
814
813
PACKAGE
815
814
VERSION
856
855
CCDEPMODE
857
856
am__fastdepCC_TRUE
858
857
am__fastdepCC_FALSE
859
 
SED
860
858
GREP
861
859
EGREP
862
860
LN_S
1434
1432
  # Omit some internal or obsolete options to make the list less imposing.
1435
1433
  # This message is too long to be a string in the A/UX 3.1 sh.
1436
1434
  cat <<_ACEOF
1437
 
\`configure' configures pygoocanvas 0.8.0 to adapt to many kinds of systems.
 
1435
\`configure' configures pygoocanvas 0.9.0 to adapt to many kinds of systems.
1438
1436
 
1439
1437
Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1438
 
1504
1502
 
1505
1503
if test -n "$ac_init_help"; then
1506
1504
  case $ac_init_help in
1507
 
     short | recursive ) echo "Configuration of pygoocanvas 0.8.0:";;
 
1505
     short | recursive ) echo "Configuration of pygoocanvas 0.9.0:";;
1508
1506
   esac
1509
1507
  cat <<\_ACEOF
1510
1508
 
1618
1616
test -n "$ac_init_help" && exit $ac_status
1619
1617
if $ac_init_version; then
1620
1618
  cat <<\_ACEOF
1621
 
pygoocanvas configure 0.8.0
 
1619
pygoocanvas configure 0.9.0
1622
1620
generated by GNU Autoconf 2.61
1623
1621
 
1624
1622
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1632
1630
This file contains any messages produced by compilers while
1633
1631
running configure, to aid debugging if configure makes a mistake.
1634
1632
 
1635
 
It was created by pygoocanvas $as_me 0.8.0, which was
 
1633
It was created by pygoocanvas $as_me 0.9.0, which was
1636
1634
generated by GNU Autoconf 2.61.  Invocation command line was
1637
1635
 
1638
1636
  $ $0 $@
1993
1991
 
1994
1992
 
1995
1993
cat >>confdefs.h <<\_ACEOF
1996
 
#define PYGOOCANVAS_MINOR_VERSION 8
 
1994
#define PYGOOCANVAS_MINOR_VERSION 9
1997
1995
_ACEOF
1998
1996
 
1999
1997
 
2006
2004
ac_config_headers="$ac_config_headers config.h"
2007
2005
 
2008
2006
 
2009
 
am__api_version='1.10'
2010
 
 
 
2007
am__api_version="1.9"
2011
2008
ac_aux_dir=
2012
2009
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2013
2010
  if test -f "$ac_dir/install-sh"; then
2190
2187
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2191
2188
fi
2192
2189
 
2193
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2194
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2195
 
if test -z "$MKDIR_P"; then
2196
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2197
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2190
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2191
  # We used to keeping the `.' as first argument, in order to
 
2192
  # allow $(mkdir_p) to be used without argument.  As in
 
2193
  #   $(mkdir_p) $(somedir)
 
2194
  # where $(somedir) is conditionally defined.  However this is wrong
 
2195
  # for two reasons:
 
2196
  #  1. if the package is installed by a user who cannot write `.'
 
2197
  #     make install will fail,
 
2198
  #  2. the above comment should most certainly read
 
2199
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2200
  #     so it does not work when $(somedir) is undefined and
 
2201
  #     $(DESTDIR) is not.
 
2202
  #  To support the latter case, we have to write
 
2203
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2204
  #  so the `.' trick is pointless.
 
2205
  mkdir_p='mkdir -p --'
2198
2206
else
2199
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2201
 
do
2202
 
  IFS=$as_save_IFS
2203
 
  test -z "$as_dir" && as_dir=.
2204
 
  for ac_prog in mkdir gmkdir; do
2205
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2206
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2207
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2208
 
             'mkdir (GNU coreutils) '* | \
2209
 
             'mkdir (coreutils) '* | \
2210
 
             'mkdir (fileutils) '4.1*)
2211
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2212
 
               break 3;;
2213
 
           esac
2214
 
         done
2215
 
       done
2216
 
done
2217
 
IFS=$as_save_IFS
2218
 
 
2219
 
fi
2220
 
 
2221
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2222
 
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2207
  # On NextStep and OpenStep, the `mkdir' command does not
 
2208
  # recognize any option.  It will interpret all options as
 
2209
  # directories to create, and then abort because `.' already
 
2210
  # exists.
 
2211
  for d in ./-p ./--version;
 
2212
  do
 
2213
    test -d $d && rmdir $d
 
2214
  done
 
2215
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2216
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2217
    mkdir_p='$(mkinstalldirs)'
2223
2218
  else
2224
 
    # As a last resort, use the slow shell script.  Don't cache a
2225
 
    # value for MKDIR_P within a source directory, because that will
2226
 
    # break other packages using the cache if that directory is
2227
 
    # removed, or if the value is a relative name.
2228
 
    test -d ./--version && rmdir ./--version
2229
 
    MKDIR_P="$ac_install_sh -d"
 
2219
    mkdir_p='$(install_sh) -d'
2230
2220
  fi
2231
2221
fi
2232
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2233
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2234
 
 
2235
 
mkdir_p="$MKDIR_P"
2236
 
case $mkdir_p in
2237
 
  [\\/$]* | ?:[\\/]*) ;;
2238
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2239
 
esac
2240
2222
 
2241
2223
for ac_prog in gawk mawk nawk awk
2242
2224
do
2319
2301
fi
2320
2302
rmdir .tst 2>/dev/null
2321
2303
 
2322
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2323
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2324
 
  # is not polluted with repeated "-I."
2325
 
  am__isrc=' -I$(srcdir)'
2326
 
  # test to see if srcdir already configured
2327
 
  if test -f $srcdir/config.status; then
2328
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2304
# test to see if srcdir already configured
 
2305
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2306
   test -f $srcdir/config.status; then
 
2307
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2329
2308
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2330
2309
   { (exit 1); exit 1; }; }
2331
 
  fi
2332
2310
fi
2333
2311
 
2334
2312
# test whether we have cygpath
2343
2321
 
2344
2322
# Define the identity of the package.
2345
2323
 PACKAGE=pygoocanvas
2346
 
 VERSION=0.8.0
 
2324
 VERSION=0.9.0
2347
2325
 
2348
2326
 
2349
2327
cat >>confdefs.h <<_ACEOF
2371
2349
 
2372
2350
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2373
2351
 
2374
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2352
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2375
2353
 
2376
2354
# Installed binaries are usually stripped using `strip' when the user
2377
2355
# run `make install-strip'.  However `strip' might not be the right
2475
2453
fi
2476
2454
 
2477
2455
fi
2478
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2456
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2479
2457
 
2480
2458
# We need awk for the "check" target.  The system "awk" is bad on
2481
2459
# some platforms.
2587
2565
esac
2588
2566
{ echo "$as_me:$LINENO: result: $platform_win32" >&5
2589
2567
echo "${ECHO_T}$platform_win32" >&6; }
2590
 
 if test "$platform_win32" = "yes"; then
 
2568
 
 
2569
 
 
2570
if test "$platform_win32" = "yes"; then
2591
2571
  PLATFORM_WIN32_TRUE=
2592
2572
  PLATFORM_WIN32_FALSE='#'
2593
2573
else
2608
2588
esac
2609
2589
{ echo "$as_me:$LINENO: result: $os_win32" >&5
2610
2590
echo "${ECHO_T}$os_win32" >&6; }
2611
 
 if test "$os_win32" = "yes"; then
 
2591
 
 
2592
 
 
2593
if test "$os_win32" = "yes"; then
2612
2594
  OS_WIN32_TRUE=
2613
2595
  OS_WIN32_FALSE='#'
2614
2596
else
2745
2727
  am_depcomp="$ac_aux_dir/depcomp"
2746
2728
  AMDEPBACKSLASH='\'
2747
2729
fi
2748
 
 if test "x$enable_dependency_tracking" != xno; then
 
2730
 
 
2731
 
 
2732
if test "x$enable_dependency_tracking" != xno; then
2749
2733
  AMDEP_TRUE=
2750
2734
  AMDEP_FALSE='#'
2751
2735
else
2754
2738
fi
2755
2739
 
2756
2740
 
 
2741
 
2757
2742
ac_ext=c
2758
2743
ac_cpp='$CPP $CPPFLAGS'
2759
2744
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740
3725
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3741
3726
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3742
3727
         >/dev/null 2>conftest.err &&
3743
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3744
3728
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3745
3729
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3746
3730
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3770
3754
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3771
3755
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3772
3756
 
3773
 
 if
 
3757
 
 
3758
 
 
3759
if
3774
3760
  test "x$enable_dependency_tracking" != xno \
3775
3761
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3776
3762
  am__fastdepCC_TRUE=
3795
3781
  test -z "$as_dir" && as_dir=.
3796
3782
  for lt_ac_prog in sed gsed; do
3797
3783
    for ac_exec_ext in '' $ac_executable_extensions; do
3798
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3784
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3799
3785
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3800
3786
      fi
3801
3787
    done
3802
3788
  done
3803
3789
done
3804
 
IFS=$as_save_IFS
3805
3790
lt_ac_max=0
3806
3791
lt_ac_count=0
3807
3792
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3836
3821
fi
3837
3822
 
3838
3823
SED=$lt_cv_path_SED
3839
 
 
3840
3824
{ echo "$as_me:$LINENO: result: $SED" >&5
3841
3825
echo "${ECHO_T}$SED" >&6; }
3842
3826
 
4198
4182
echo "${ECHO_T}no, using $LN_S" >&6; }
4199
4183
fi
4200
4184
 
4201
 
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4202
 
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4185
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4186
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4203
4187
if test "${lt_cv_deplibs_check_method+set}" = set; then
4204
4188
  echo $ECHO_N "(cached) $ECHO_C" >&6
4205
4189
else
4240
4224
 
4241
4225
mingw* | pw32*)
4242
4226
  # Base MSYS/MinGW do not provide the 'file' command needed by
4243
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4244
 
  # unless we find 'file', for example because we are cross-compiling.
4245
 
  if ( file / ) >/dev/null 2>&1; then
4246
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247
 
    lt_cv_file_magic_cmd='func_win32_libid'
4248
 
  else
4249
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4250
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4251
 
  fi
 
4227
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4228
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4229
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4252
4230
  ;;
4253
4231
 
4254
4232
darwin* | rhapsody*)
4313
4291
  lt_cv_deplibs_check_method=pass_all
4314
4292
  ;;
4315
4293
 
4316
 
netbsd*)
 
4294
netbsd* | netbsdelf*-gnu)
4317
4295
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318
4296
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319
4297
  else
4343
4321
  lt_cv_deplibs_check_method=pass_all
4344
4322
  ;;
4345
4323
 
4346
 
rdos*)
4347
 
  lt_cv_deplibs_check_method=pass_all
4348
 
  ;;
4349
 
 
4350
4324
solaris*)
4351
4325
  lt_cv_deplibs_check_method=pass_all
4352
4326
  ;;
4434
4408
  ;;
4435
4409
*-*-irix6*)
4436
4410
  # Find out which ABI we are using.
4437
 
  echo '#line 4437 "configure"' > conftest.$ac_ext
 
4411
  echo '#line 4411 "configure"' > conftest.$ac_ext
4438
4412
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439
4413
  (eval $ac_compile) 2>&5
4440
4414
  ac_status=$?
4469
4443
  rm -rf conftest*
4470
4444
  ;;
4471
4445
 
4472
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4473
 
s390*-*linux*|sparc*-*linux*)
 
4446
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4474
4447
  # Find out which ABI we are using.
4475
4448
  echo 'int i;' > conftest.$ac_ext
4476
4449
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481
4454
    case `/usr/bin/file conftest.o` in
4482
4455
    *32-bit*)
4483
4456
      case $host in
4484
 
        x86_64-*kfreebsd*-gnu)
4485
 
          LD="${LD-ld} -m elf_i386_fbsd"
4486
 
          ;;
4487
4457
        x86_64-*linux*)
4488
4458
          LD="${LD-ld} -m elf_i386"
4489
4459
          ;;
4500
4470
      ;;
4501
4471
    *64-bit*)
4502
4472
      case $host in
4503
 
        x86_64-*kfreebsd*-gnu)
4504
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4505
 
          ;;
4506
4473
        x86_64-*linux*)
4507
4474
          LD="${LD-ld} -m elf_x86_64"
4508
4475
          ;;
5960
5927
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5961
5928
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5962
5929
         >/dev/null 2>conftest.err &&
5963
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5964
5930
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5965
5931
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5966
5932
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5990
5956
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5991
5957
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5992
5958
 
5993
 
 if
 
5959
 
 
5960
 
 
5961
if
5994
5962
  test "x$enable_dependency_tracking" != xno \
5995
5963
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5996
5964
  am__fastdepCXX_TRUE=
6619
6587
 
6620
6588
 
6621
6589
 
6622
 
 
6623
6590
# Check for command to grab the raw symbol name followed by C symbol from nm.
6624
6591
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6625
6592
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7390
7357
 
7391
7358
test -z "$pic_mode" && pic_mode=default
7392
7359
 
7393
 
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7394
 
#
7395
 
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7396
 
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7397
 
#        calls AC_LIBTOOL_CONFIG and creates libtool.
7398
 
#
7399
 
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7400
 
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7401
 
if test "x$ltmain" = "x" ; then
7402
 
  { echo "$as_me:$LINENO: result: no" >&5
7403
 
echo "${ECHO_T}no" >&6; }
7404
 
  { { echo "$as_me:$LINENO: error:
7405
 
 
7406
 
*** [Gentoo] sanity check failed! ***
7407
 
*** \$ltmain is not defined, please check the patch for consistency! ***
7408
 
" >&5
7409
 
echo "$as_me: error:
7410
 
 
7411
 
*** [Gentoo] sanity check failed! ***
7412
 
*** \$ltmain is not defined, please check the patch for consistency! ***
7413
 
" >&2;}
7414
 
   { (exit 1); exit 1; }; }
7415
 
fi
7416
 
gentoo_lt_version="1.5.23b"
7417
 
gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
7418
 
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7419
 
  { echo "$as_me:$LINENO: result: no" >&5
7420
 
echo "${ECHO_T}no" >&6; }
7421
 
  { { echo "$as_me:$LINENO: error:
7422
 
 
7423
 
*** [Gentoo] sanity check failed! ***
7424
 
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7425
 
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7426
 
 
7427
 
Please run:
7428
 
 
7429
 
  libtoolize --copy --force
7430
 
 
7431
 
if appropriate, please contact the maintainer of this
7432
 
package (or your distribution) for help.
7433
 
" >&5
7434
 
echo "$as_me: error:
7435
 
 
7436
 
*** [Gentoo] sanity check failed! ***
7437
 
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7438
 
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7439
 
 
7440
 
Please run:
7441
 
 
7442
 
  libtoolize --copy --force
7443
 
 
7444
 
if appropriate, please contact the maintainer of this
7445
 
package (or your distribution) for help.
7446
 
" >&2;}
7447
 
   { (exit 1); exit 1; }; }
7448
 
else
7449
 
  { echo "$as_me:$LINENO: result: yes" >&5
7450
 
echo "${ECHO_T}yes" >&6; }
7451
 
fi
7452
 
 
7453
 
 
7454
7360
# Use C for the default configuration in the libtool script
7455
7361
tagname=
7456
7362
lt_save_CC="$CC"
7469
7375
objext=$objext
7470
7376
 
7471
7377
# Code to be used in simple compile tests
7472
 
lt_simple_compile_test_code="int some_variable = 0;"
 
7378
lt_simple_compile_test_code="int some_variable = 0;\n"
7473
7379
 
7474
7380
# Code to be used in simple link tests
7475
 
lt_simple_link_test_code='int main(){return(0);}'
 
7381
lt_simple_link_test_code='int main(){return(0);}\n'
7476
7382
 
7477
7383
 
7478
7384
# If no C compiler was specified, use CC.
7487
7393
 
7488
7394
# save warnings/boilerplate of simple test code
7489
7395
ac_outfile=conftest.$ac_objext
7490
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7396
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7491
7397
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7492
7398
_lt_compiler_boilerplate=`cat conftest.err`
7493
7399
$rm conftest*
7494
7400
 
7495
7401
ac_outfile=conftest.$ac_objext
7496
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7402
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7497
7403
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7498
7404
_lt_linker_boilerplate=`cat conftest.err`
7499
7405
$rm conftest*
7513
7419
else
7514
7420
  lt_cv_prog_compiler_rtti_exceptions=no
7515
7421
  ac_outfile=conftest.$ac_objext
7516
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7422
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7517
7423
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7518
7424
   # Insert the option either (1) after the last *FLAGS variable, or
7519
7425
   # (2) before a word containing "conftest.", or (3) at the end.
7524
7430
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7525
7431
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7526
7432
   -e 's:$: $lt_compiler_flag:'`
7527
 
   (eval echo "\"\$as_me:7527: $lt_compile\"" >&5)
 
7433
   (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
7528
7434
   (eval "$lt_compile" 2>conftest.err)
7529
7435
   ac_status=$?
7530
7436
   cat conftest.err >&5
7531
 
   echo "$as_me:7531: \$? = $ac_status" >&5
 
7437
   echo "$as_me:7437: \$? = $ac_status" >&5
7532
7438
   if (exit $ac_status) && test -s "$ac_outfile"; then
7533
7439
     # The compiler can only warn and ignore the option if not recognized
7534
7440
     # So say no if there are warnings other than the usual output.
7579
7485
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7580
7486
      ;;
7581
7487
 
7582
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7488
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7583
7489
      # PIC is the default for these OSes.
7584
7490
      ;;
7585
7491
 
7586
 
    mingw* | cygwin* | pw32* | os2*)
 
7492
    mingw* | pw32* | os2*)
7587
7493
      # This hack is so that the source file can tell whether it is being
7588
7494
      # built for inclusion in a dll (and should export symbols for example).
7589
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7590
 
      # (--disable-auto-import) libraries
7591
7495
      lt_prog_compiler_pic='-DDLL_EXPORT'
7592
7496
      ;;
7593
7497
 
7655
7559
       esac
7656
7560
       ;;
7657
7561
 
7658
 
    mingw* | cygwin* | pw32* | os2*)
 
7562
    mingw* | pw32* | os2*)
7659
7563
      # This hack is so that the source file can tell whether it is being
7660
7564
      # built for inclusion in a dll (and should export symbols for example).
7661
7565
      lt_prog_compiler_pic='-DDLL_EXPORT'
7707
7611
        # All Alpha code is PIC.
7708
7612
        lt_prog_compiler_static='-non_shared'
7709
7613
        ;;
7710
 
      *)
7711
 
        case `$CC -V 2>&1 | sed 5q` in
7712
 
        *Sun\ C*)
7713
 
          # Sun C 5.9
7714
 
          lt_prog_compiler_pic='-KPIC'
7715
 
          lt_prog_compiler_static='-Bstatic'
7716
 
          lt_prog_compiler_wl='-Wl,'
7717
 
          ;;
7718
 
        *Sun\ F*)
7719
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7720
 
          lt_prog_compiler_pic='-KPIC'
7721
 
          lt_prog_compiler_static='-Bstatic'
7722
 
          lt_prog_compiler_wl=''
7723
 
          ;;
7724
 
        esac
7725
 
        ;;
7726
7614
      esac
7727
7615
      ;;
7728
7616
 
7732
7620
      lt_prog_compiler_static='-non_shared'
7733
7621
      ;;
7734
7622
 
7735
 
    rdos*)
7736
 
      lt_prog_compiler_static='-non_shared'
7737
 
      ;;
7738
 
 
7739
7623
    solaris*)
7740
7624
      lt_prog_compiler_pic='-KPIC'
7741
7625
      lt_prog_compiler_static='-Bstatic'
7803
7687
else
7804
7688
  lt_prog_compiler_pic_works=no
7805
7689
  ac_outfile=conftest.$ac_objext
7806
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7690
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7807
7691
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7808
7692
   # Insert the option either (1) after the last *FLAGS variable, or
7809
7693
   # (2) before a word containing "conftest.", or (3) at the end.
7814
7698
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
7699
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
7700
   -e 's:$: $lt_compiler_flag:'`
7817
 
   (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
 
7701
   (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
7818
7702
   (eval "$lt_compile" 2>conftest.err)
7819
7703
   ac_status=$?
7820
7704
   cat conftest.err >&5
7821
 
   echo "$as_me:7821: \$? = $ac_status" >&5
 
7705
   echo "$as_me:7705: \$? = $ac_status" >&5
7822
7706
   if (exit $ac_status) && test -s "$ac_outfile"; then
7823
7707
     # The compiler can only warn and ignore the option if not recognized
7824
7708
     # So say no if there are warnings other than the usual output.
7867
7751
  lt_prog_compiler_static_works=no
7868
7752
   save_LDFLAGS="$LDFLAGS"
7869
7753
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7870
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7754
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7871
7755
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7872
7756
     # The linker can only warn and ignore the option if not recognized
7873
7757
     # So say no if there are warnings
7907
7791
   mkdir conftest
7908
7792
   cd conftest
7909
7793
   mkdir out
7910
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7794
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7911
7795
 
7912
7796
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7913
7797
   # Insert the option either (1) after the last *FLAGS variable, or
7918
7802
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919
7803
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920
7804
   -e 's:$: $lt_compiler_flag:'`
7921
 
   (eval echo "\"\$as_me:7921: $lt_compile\"" >&5)
 
7805
   (eval echo "\"\$as_me:7805: $lt_compile\"" >&5)
7922
7806
   (eval "$lt_compile" 2>out/conftest.err)
7923
7807
   ac_status=$?
7924
7808
   cat out/conftest.err >&5
7925
 
   echo "$as_me:7925: \$? = $ac_status" >&5
 
7809
   echo "$as_me:7809: \$? = $ac_status" >&5
7926
7810
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7927
7811
   then
7928
7812
     # The compiler can only warn and ignore the option if not recognized
8114
7998
      allow_undefined_flag=unsupported
8115
7999
      always_export_symbols=no
8116
8000
      enable_shared_with_static_runtimes=yes
8117
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8001
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8118
8002
 
8119
8003
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8120
8004
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147
8031
      archive_expsym_cmds='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'
8148
8032
      ;;
8149
8033
 
8150
 
    gnu* | linux* | k*bsd*-gnu)
 
8034
    linux* | k*bsd*-gnu)
8151
8035
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152
8036
        tmp_addflag=
8153
8037
        case $cc_basename,$host_cpu in
8165
8049
        ifc* | ifort*)                  # Intel Fortran compiler
8166
8050
          tmp_addflag=' -nofor_main' ;;
8167
8051
        esac
8168
 
        case `$CC -V 2>&1 | sed 5q` in
8169
 
        *Sun\ C*)                       # Sun C 5.9
8170
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8171
 
          tmp_sharedflag='-G' ;;
8172
 
        *Sun\ F*)                       # Sun Fortran 8.3
8173
 
          tmp_sharedflag='-G' ;;
8174
 
        *)
8175
 
          tmp_sharedflag='-shared' ;;
8176
 
        esac
8177
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8052
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178
8053
 
8179
8054
        if test $supports_anon_versioning = yes; then
8180
8055
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8181
8056
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8182
8057
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8183
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8058
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8184
8059
        fi
 
8060
        link_all_deplibs=no
8185
8061
      else
8186
8062
        ld_shlibs=no
8187
8063
      fi
8188
8064
      ;;
8189
8065
 
8190
 
    netbsd*)
 
8066
    netbsd* | netbsdelf*-gnu)
8191
8067
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8192
8068
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8193
8069
        wlarc=
8339
8215
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8340
8216
          then
8341
8217
          # We have reworked collect2
8342
 
          :
 
8218
          hardcode_direct=yes
8343
8219
          else
8344
8220
          # We have old collect2
8345
8221
          hardcode_direct=unsupported
8413
8289
       } && test -s conftest$ac_exeext &&
8414
8290
       $as_test_x conftest$ac_exeext; then
8415
8291
 
8416
 
lt_aix_libpath_sed='
8417
 
    /Import File Strings/,/^$/ {
8418
 
        /^0/ {
8419
 
            s/^0  *\(.*\)$/\1/
8420
 
            p
8421
 
        }
8422
 
    }'
8423
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8292
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8293
}'`
8424
8294
# Check for a 64-bit object if we didn't find anything.
8425
 
if test -z "$aix_libpath"; then
8426
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8427
 
fi
 
8295
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8296
}'`; fi
8428
8297
else
8429
8298
  echo "$as_me: failed program was:" >&5
8430
8299
sed 's/^/| /' conftest.$ac_ext >&5
8479
8348
       } && test -s conftest$ac_exeext &&
8480
8349
       $as_test_x conftest$ac_exeext; then
8481
8350
 
8482
 
lt_aix_libpath_sed='
8483
 
    /Import File Strings/,/^$/ {
8484
 
        /^0/ {
8485
 
            s/^0  *\(.*\)$/\1/
8486
 
            p
8487
 
        }
8488
 
    }'
8489
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8352
}'`
8490
8353
# Check for a 64-bit object if we didn't find anything.
8491
 
if test -z "$aix_libpath"; then
8492
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8493
 
fi
 
8354
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8355
}'`; fi
8494
8356
else
8495
8357
  echo "$as_me: failed program was:" >&5
8496
8358
sed 's/^/| /' conftest.$ac_ext >&5
8544
8406
      # The linker will automatically build a .lib file if we build a DLL.
8545
8407
      old_archive_From_new_cmds='true'
8546
8408
      # FIXME: Should let the user specify the lib program.
8547
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8409
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8548
8410
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8549
8411
      enable_shared_with_static_runtimes=yes
8550
8412
      ;;
8731
8593
      link_all_deplibs=yes
8732
8594
      ;;
8733
8595
 
8734
 
    netbsd*)
 
8596
    netbsd* | netbsdelf*-gnu)
8735
8597
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8736
8598
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8737
8599
      else
8827
8689
      case $host_os in
8828
8690
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8829
8691
      *)
8830
 
        # The compiler driver will combine and reorder linker options,
8831
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8832
 
        # but is careful enough not to reorder.
 
8692
        # The compiler driver will combine linker options so we
 
8693
        # cannot just pass the convience library names through
 
8694
        # without $wl, iff we do not link with $LD.
 
8695
        # Luckily, gcc supports the same syntax we need for Sun Studio.
8833
8696
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8834
 
        if test "$GCC" = yes; then
8835
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8836
 
        else
8837
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8838
 
        fi
8839
 
        ;;
 
8697
        case $wlarc in
 
8698
        '')
 
8699
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8700
        *)
 
8701
          whole_archive_flag_spec='${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' ;;
 
8702
        esac ;;
8840
8703
      esac
8841
8704
      link_all_deplibs=yes
8842
8705
      ;;
8893
8756
      fi
8894
8757
      ;;
8895
8758
 
8896
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8759
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8897
8760
      no_undefined_flag='${wl}-z,text'
8898
8761
      archive_cmds_need_lc=no
8899
8762
      hardcode_shlibpath_var=no
8970
8833
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8971
8834
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8972
8835
      $rm conftest*
8973
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8836
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8974
8837
 
8975
8838
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976
8839
  (eval $ac_compile) 2>&5
9028
8891
version_type=none
9029
8892
dynamic_linker="$host_os ld.so"
9030
8893
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9031
 
 
9032
8894
if test "$GCC" = yes; then
9033
 
  case $host_os in
9034
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9035
 
    *) lt_awk_arg="/^libraries:/" ;;
9036
 
  esac
9037
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8895
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8896
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9039
8897
    # if the path contains ";" then we assume it to be the separator
9040
8898
    # otherwise default to the standard path separator (i.e. ":") - it is
9041
8899
    # assumed that no part of a normal pathname contains ";" but that should
9042
8900
    # okay in the real world where ";" in dirpaths is itself problematic.
9043
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8901
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9044
8902
  else
9045
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8903
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9046
8904
  fi
9047
 
  # Ok, now we have the path, separated by spaces, we can step through it
9048
 
  # and add multilib dir if necessary.
9049
 
  lt_tmp_lt_search_path_spec=
9050
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9051
 
  for lt_sys_path in $lt_search_path_spec; do
9052
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9053
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9054
 
    else
9055
 
      test -d "$lt_sys_path" && \
9056
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9057
 
    fi
9058
 
  done
9059
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9060
 
BEGIN {RS=" "; FS="/|\n";} {
9061
 
  lt_foo="";
9062
 
  lt_count=0;
9063
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
9064
 
    if ($lt_i != "" && $lt_i != ".") {
9065
 
      if ($lt_i == "..") {
9066
 
        lt_count++;
9067
 
      } else {
9068
 
        if (lt_count == 0) {
9069
 
          lt_foo="/" $lt_i lt_foo;
9070
 
        } else {
9071
 
          lt_count--;
9072
 
        }
9073
 
      }
9074
 
    }
9075
 
  }
9076
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9077
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9078
 
}'`
9079
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9080
8905
else
9081
8906
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9082
8907
fi
9236
9061
  shlibpath_overrides_runpath=yes
9237
9062
  shlibpath_var=DYLD_LIBRARY_PATH
9238
9063
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9239
 
 
9240
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9064
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9065
  if test "$GCC" = yes; then
 
9066
    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"`
 
9067
  else
 
9068
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9069
  fi
9241
9070
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242
9071
  ;;
9243
9072
 
9265
9094
    *) objformat=elf ;;
9266
9095
    esac
9267
9096
  fi
9268
 
  # Handle Gentoo/FreeBSD as it was Linux
9269
 
  case $host_vendor in
9270
 
    gentoo)
9271
 
      version_type=linux ;;
9272
 
    *)
9273
 
      version_type=freebsd-$objformat ;;
9274
 
  esac
9275
 
 
 
9097
  version_type=freebsd-$objformat
9276
9098
  case $version_type in
9277
9099
    freebsd-elf*)
9278
9100
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9283
9105
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9284
9106
      need_version=yes
9285
9107
      ;;
9286
 
    linux)
9287
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9288
 
      soname_spec='${libname}${release}${shared_ext}$major'
9289
 
      need_lib_prefix=no
9290
 
      need_version=no
9291
 
      ;;
9292
9108
  esac
9293
9109
  shlibpath_var=LD_LIBRARY_PATH
9294
9110
  case $host_os in
9304
9120
    shlibpath_overrides_runpath=no
9305
9121
    hardcode_into_libs=yes
9306
9122
    ;;
9307
 
  *) # from 4.6 on, and DragonFly
 
9123
  freebsd*) # from 4.6 on
9308
9124
    shlibpath_overrides_runpath=yes
9309
9125
    hardcode_into_libs=yes
9310
9126
    ;;
9438
9254
 
9439
9255
  # Append ld.so.conf contents to the search path
9440
9256
  if test -f /etc/ld.so.conf; then
9441
 
    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' ' '`
 
9257
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9442
9258
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9443
9259
  fi
9444
9260
 
9451
9267
  dynamic_linker='GNU/Linux ld.so'
9452
9268
  ;;
9453
9269
 
 
9270
netbsdelf*-gnu)
 
9271
  version_type=linux
 
9272
  need_lib_prefix=no
 
9273
  need_version=no
 
9274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9275
  soname_spec='${libname}${release}${shared_ext}$major'
 
9276
  shlibpath_var=LD_LIBRARY_PATH
 
9277
  shlibpath_overrides_runpath=no
 
9278
  hardcode_into_libs=yes
 
9279
  dynamic_linker='NetBSD ld.elf_so'
 
9280
  ;;
 
9281
 
9454
9282
netbsd*)
9455
9283
  version_type=sunos
9456
9284
  need_lib_prefix=no
9532
9360
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9533
9361
  ;;
9534
9362
 
9535
 
rdos*)
9536
 
  dynamic_linker=no
9537
 
  ;;
9538
 
 
9539
9363
solaris*)
9540
9364
  version_type=linux
9541
9365
  need_lib_prefix=no
9689
9513
   darwin*)
9690
9514
       if test -n "$STRIP" ; then
9691
9515
         striplib="$STRIP -x"
9692
 
         old_striplib="$STRIP -S"
9693
9516
         { echo "$as_me:$LINENO: result: yes" >&5
9694
9517
echo "${ECHO_T}yes" >&6; }
9695
9518
       else
10276
10099
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10277
10100
  lt_status=$lt_dlunknown
10278
10101
  cat > conftest.$ac_ext <<EOF
10279
 
#line 10279 "configure"
 
10102
#line 10102 "configure"
10280
10103
#include "confdefs.h"
10281
10104
 
10282
10105
#if HAVE_DLFCN_H
10376
10199
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10377
10200
  lt_status=$lt_dlunknown
10378
10201
  cat > conftest.$ac_ext <<EOF
10379
 
#line 10379 "configure"
 
10202
#line 10202 "configure"
10380
10203
#include "confdefs.h"
10381
10204
 
10382
10205
#if HAVE_DLFCN_H
10618
10441
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10619
10442
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10620
10443
#
10621
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
10444
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10622
10445
# Free Software Foundation, Inc.
10623
10446
#
10624
10447
# This file is part of GNU Libtool:
11111
10934
objext_CXX=$objext
11112
10935
 
11113
10936
# Code to be used in simple compile tests
11114
 
lt_simple_compile_test_code="int some_variable = 0;"
 
10937
lt_simple_compile_test_code="int some_variable = 0;\n"
11115
10938
 
11116
10939
# Code to be used in simple link tests
11117
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10940
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11118
10941
 
11119
10942
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11120
10943
 
11130
10953
 
11131
10954
# save warnings/boilerplate of simple test code
11132
10955
ac_outfile=conftest.$ac_objext
11133
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10956
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11134
10957
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11135
10958
_lt_compiler_boilerplate=`cat conftest.err`
11136
10959
$rm conftest*
11137
10960
 
11138
10961
ac_outfile=conftest.$ac_objext
11139
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10962
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11140
10963
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11141
10964
_lt_linker_boilerplate=`cat conftest.err`
11142
10965
$rm conftest*
11395
11218
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11396
11219
        then
11397
11220
          # We have reworked collect2
11398
 
          :
 
11221
          hardcode_direct_CXX=yes
11399
11222
        else
11400
11223
          # We have old collect2
11401
11224
          hardcode_direct_CXX=unsupported
11469
11292
       } && test -s conftest$ac_exeext &&
11470
11293
       $as_test_x conftest$ac_exeext; then
11471
11294
 
11472
 
lt_aix_libpath_sed='
11473
 
    /Import File Strings/,/^$/ {
11474
 
        /^0/ {
11475
 
            s/^0  *\(.*\)$/\1/
11476
 
            p
11477
 
        }
11478
 
    }'
11479
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11295
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11296
}'`
11480
11297
# Check for a 64-bit object if we didn't find anything.
11481
 
if test -z "$aix_libpath"; then
11482
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11483
 
fi
 
11298
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11299
}'`; fi
11484
11300
else
11485
11301
  echo "$as_me: failed program was:" >&5
11486
11302
sed 's/^/| /' conftest.$ac_ext >&5
11536
11352
       } && test -s conftest$ac_exeext &&
11537
11353
       $as_test_x conftest$ac_exeext; then
11538
11354
 
11539
 
lt_aix_libpath_sed='
11540
 
    /Import File Strings/,/^$/ {
11541
 
        /^0/ {
11542
 
            s/^0  *\(.*\)$/\1/
11543
 
            p
11544
 
        }
11545
 
    }'
11546
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11355
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11356
}'`
11547
11357
# Check for a 64-bit object if we didn't find anything.
11548
 
if test -z "$aix_libpath"; then
11549
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11550
 
fi
 
11358
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11359
}'`; fi
11551
11360
else
11552
11361
  echo "$as_me: failed program was:" >&5
11553
11362
sed 's/^/| /' conftest.$ac_ext >&5
11752
11561
      hardcode_libdir_separator_CXX=:
11753
11562
 
11754
11563
      case $host_cpu in
11755
 
      hppa*64*|ia64*) ;;
 
11564
      hppa*64*|ia64*)
 
11565
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11566
        ;;
11756
11567
      *)
11757
11568
        export_dynamic_flag_spec_CXX='${wl}-E'
11758
11569
        ;;
11940
11751
        # dependencies.
11941
11752
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11942
11753
        ;;
11943
 
      *)
11944
 
        case `$CC -V 2>&1 | sed 5q` in
11945
 
        *Sun\ C*)
11946
 
          # Sun C++ 5.9
11947
 
          no_undefined_flag_CXX=' -zdefs'
11948
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11949
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11950
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
11951
 
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11952
 
 
11953
 
          # Not sure whether something based on
11954
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11955
 
          # would be better.
11956
 
          output_verbose_link_cmd='echo'
11957
 
 
11958
 
          # Archives containing C++ object files must be created using
11959
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11960
 
          # necessary to make sure instantiated templates are included
11961
 
          # in the archive.
11962
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11963
 
          ;;
11964
 
        esac
11965
 
        ;;
11966
11754
    esac
11967
11755
    ;;
11968
11756
  lynxos*)
11985
11773
        ;;
11986
11774
    esac
11987
11775
    ;;
11988
 
  netbsd*)
 
11776
  netbsd* | netbsdelf*-gnu)
11989
11777
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11990
11778
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11991
11779
      wlarc=
12172
11960
        case $host_os in
12173
11961
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12174
11962
          *)
12175
 
            # The compiler driver will combine and reorder linker options,
12176
 
            # but understands `-z linker_flag'.
 
11963
            # The C++ compiler is used as linker so we must use $wl
 
11964
            # flag to pass the commands to the underlying system
 
11965
            # linker. We must also pass each convience library through
 
11966
            # to the system linker between allextract/defaultextract.
 
11967
            # The C++ compiler will combine linker options so we
 
11968
            # cannot just pass the convience library names through
 
11969
            # without $wl.
12177
11970
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12178
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
11971
            whole_archive_flag_spec_CXX='${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'
12179
11972
            ;;
12180
11973
        esac
12181
11974
        link_all_deplibs_CXX=yes
12222
12015
          fi
12223
12016
 
12224
12017
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12225
 
          case $host_os in
12226
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12227
 
          *)
12228
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12229
 
            ;;
12230
 
          esac
12231
12018
        fi
12232
12019
        ;;
12233
12020
    esac
12427
12214
  postdeps_CXX=
12428
12215
  ;;
12429
12216
 
12430
 
linux*)
12431
 
  case `$CC -V 2>&1 | sed 5q` in
12432
 
  *Sun\ C*)
12433
 
    # Sun C++ 5.9
12434
 
    #
12435
 
    # The more standards-conforming stlport4 library is
12436
 
    # incompatible with the Cstd library. Avoid specifying
12437
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12438
 
    # -library=stlport4 depends on it.
12439
 
    case " $CXX $CXXFLAGS " in
12440
 
    *" -library=stlport4 "*)
12441
 
      solaris_use_stlport4=yes
12442
 
      ;;
12443
 
    esac
12444
 
    if test "$solaris_use_stlport4" != yes; then
12445
 
      postdeps_CXX='-library=Cstd -library=Crun'
12446
 
    fi
12447
 
    ;;
12448
 
  esac
12449
 
  ;;
12450
 
 
12451
12217
solaris*)
12452
12218
  case $cc_basename in
12453
12219
  CC*)
12454
 
    # The more standards-conforming stlport4 library is
12455
 
    # incompatible with the Cstd library. Avoid specifying
12456
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12457
 
    # -library=stlport4 depends on it.
12458
 
    case " $CXX $CXXFLAGS " in
12459
 
    *" -library=stlport4 "*)
12460
 
      solaris_use_stlport4=yes
12461
 
      ;;
12462
 
    esac
12463
 
 
12464
12220
    # Adding this requires a known-good setup of shared libraries for
12465
12221
    # Sun compiler versions before 5.6, else PIC objects from an old
12466
12222
    # archive will be linked into the output, leading to subtle bugs.
12467
 
    if test "$solaris_use_stlport4" != yes; then
12468
 
      postdeps_CXX='-library=Cstd -library=Crun'
12469
 
    fi
 
12223
    postdeps_CXX='-lCstd -lCrun'
12470
12224
    ;;
12471
12225
  esac
12472
12226
  ;;
12503
12257
      # like `-m68040'.
12504
12258
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12505
12259
      ;;
12506
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12260
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12507
12261
      # PIC is the default for these OSes.
12508
12262
      ;;
12509
 
    mingw* | cygwin* | os2* | pw32*)
 
12263
    mingw* | os2* | pw32*)
12510
12264
      # This hack is so that the source file can tell whether it is being
12511
12265
      # built for inclusion in a dll (and should export symbols for example).
12512
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12513
 
      # (--disable-auto-import) libraries
12514
12266
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12515
12267
      ;;
12516
12268
    darwin* | rhapsody*)
12658
12410
            lt_prog_compiler_static_CXX='-non_shared'
12659
12411
            ;;
12660
12412
          *)
12661
 
            case `$CC -V 2>&1 | sed 5q` in
12662
 
            *Sun\ C*)
12663
 
              # Sun C++ 5.9
12664
 
              lt_prog_compiler_pic_CXX='-KPIC'
12665
 
              lt_prog_compiler_static_CXX='-Bstatic'
12666
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12667
 
              ;;
12668
 
            esac
12669
12413
            ;;
12670
12414
        esac
12671
12415
        ;;
12682
12426
            ;;
12683
12427
        esac
12684
12428
        ;;
12685
 
      netbsd*)
 
12429
      netbsd* | netbsdelf*-gnu)
12686
12430
        ;;
12687
12431
      osf3* | osf4* | osf5*)
12688
12432
        case $cc_basename in
12780
12524
else
12781
12525
  lt_prog_compiler_pic_works_CXX=no
12782
12526
  ac_outfile=conftest.$ac_objext
12783
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12527
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12784
12528
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12785
12529
   # Insert the option either (1) after the last *FLAGS variable, or
12786
12530
   # (2) before a word containing "conftest.", or (3) at the end.
12791
12535
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12792
12536
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12793
12537
   -e 's:$: $lt_compiler_flag:'`
12794
 
   (eval echo "\"\$as_me:12794: $lt_compile\"" >&5)
 
12538
   (eval echo "\"\$as_me:12538: $lt_compile\"" >&5)
12795
12539
   (eval "$lt_compile" 2>conftest.err)
12796
12540
   ac_status=$?
12797
12541
   cat conftest.err >&5
12798
 
   echo "$as_me:12798: \$? = $ac_status" >&5
 
12542
   echo "$as_me:12542: \$? = $ac_status" >&5
12799
12543
   if (exit $ac_status) && test -s "$ac_outfile"; then
12800
12544
     # The compiler can only warn and ignore the option if not recognized
12801
12545
     # So say no if there are warnings other than the usual output.
12844
12588
  lt_prog_compiler_static_works_CXX=no
12845
12589
   save_LDFLAGS="$LDFLAGS"
12846
12590
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12847
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12591
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12848
12592
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12849
12593
     # The linker can only warn and ignore the option if not recognized
12850
12594
     # So say no if there are warnings
12884
12628
   mkdir conftest
12885
12629
   cd conftest
12886
12630
   mkdir out
12887
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12631
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12888
12632
 
12889
12633
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12890
12634
   # Insert the option either (1) after the last *FLAGS variable, or
12895
12639
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12896
12640
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12897
12641
   -e 's:$: $lt_compiler_flag:'`
12898
 
   (eval echo "\"\$as_me:12898: $lt_compile\"" >&5)
 
12642
   (eval echo "\"\$as_me:12642: $lt_compile\"" >&5)
12899
12643
   (eval "$lt_compile" 2>out/conftest.err)
12900
12644
   ac_status=$?
12901
12645
   cat out/conftest.err >&5
12902
 
   echo "$as_me:12902: \$? = $ac_status" >&5
 
12646
   echo "$as_me:12646: \$? = $ac_status" >&5
12903
12647
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12904
12648
   then
12905
12649
     # The compiler can only warn and ignore the option if not recognized
12965
12709
    export_symbols_cmds_CXX="$ltdll_cmds"
12966
12710
  ;;
12967
12711
  cygwin* | mingw*)
12968
 
    export_symbols_cmds_CXX='$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'
 
12712
    export_symbols_cmds_CXX='$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'
 
12713
  ;;
 
12714
  linux* | k*bsd*-gnu)
 
12715
    link_all_deplibs_CXX=no
12969
12716
  ;;
12970
12717
  *)
12971
12718
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12996
12743
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12997
12744
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12998
12745
      $rm conftest*
12999
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12746
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13000
12747
 
13001
12748
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002
12749
  (eval $ac_compile) 2>&5
13054
12801
version_type=none
13055
12802
dynamic_linker="$host_os ld.so"
13056
12803
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13057
 
 
 
12804
if test "$GCC" = yes; then
 
12805
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12806
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12807
    # if the path contains ";" then we assume it to be the separator
 
12808
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12809
    # assumed that no part of a normal pathname contains ";" but that should
 
12810
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12811
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12812
  else
 
12813
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12814
  fi
 
12815
else
 
12816
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12817
fi
13058
12818
need_lib_prefix=unknown
13059
12819
hardcode_into_libs=no
13060
12820
 
13211
12971
  shlibpath_overrides_runpath=yes
13212
12972
  shlibpath_var=DYLD_LIBRARY_PATH
13213
12973
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13214
 
 
 
12974
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12975
  if test "$GCC" = yes; then
 
12976
    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"`
 
12977
  else
 
12978
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12979
  fi
13215
12980
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13216
12981
  ;;
13217
12982
 
13239
13004
    *) objformat=elf ;;
13240
13005
    esac
13241
13006
  fi
13242
 
  # Handle Gentoo/FreeBSD as it was Linux
13243
 
  case $host_vendor in
13244
 
    gentoo)
13245
 
      version_type=linux ;;
13246
 
    *)
13247
 
      version_type=freebsd-$objformat ;;
13248
 
  esac
13249
 
 
 
13007
  version_type=freebsd-$objformat
13250
13008
  case $version_type in
13251
13009
    freebsd-elf*)
13252
13010
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13257
13015
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13258
13016
      need_version=yes
13259
13017
      ;;
13260
 
    linux)
13261
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13262
 
      soname_spec='${libname}${release}${shared_ext}$major'
13263
 
      need_lib_prefix=no
13264
 
      need_version=no
13265
 
      ;;
13266
13018
  esac
13267
13019
  shlibpath_var=LD_LIBRARY_PATH
13268
13020
  case $host_os in
13278
13030
    shlibpath_overrides_runpath=no
13279
13031
    hardcode_into_libs=yes
13280
13032
    ;;
13281
 
  *) # from 4.6 on, and DragonFly
 
13033
  freebsd*) # from 4.6 on
13282
13034
    shlibpath_overrides_runpath=yes
13283
13035
    hardcode_into_libs=yes
13284
13036
    ;;
13412
13164
 
13413
13165
  # Append ld.so.conf contents to the search path
13414
13166
  if test -f /etc/ld.so.conf; then
13415
 
    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' ' '`
 
13167
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13416
13168
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13417
13169
  fi
13418
13170
 
13425
13177
  dynamic_linker='GNU/Linux ld.so'
13426
13178
  ;;
13427
13179
 
 
13180
netbsdelf*-gnu)
 
13181
  version_type=linux
 
13182
  need_lib_prefix=no
 
13183
  need_version=no
 
13184
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13185
  soname_spec='${libname}${release}${shared_ext}$major'
 
13186
  shlibpath_var=LD_LIBRARY_PATH
 
13187
  shlibpath_overrides_runpath=no
 
13188
  hardcode_into_libs=yes
 
13189
  dynamic_linker='NetBSD ld.elf_so'
 
13190
  ;;
 
13191
 
13428
13192
netbsd*)
13429
13193
  version_type=sunos
13430
13194
  need_lib_prefix=no
13506
13270
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13507
13271
  ;;
13508
13272
 
13509
 
rdos*)
13510
 
  dynamic_linker=no
13511
 
  ;;
13512
 
 
13513
13273
solaris*)
13514
13274
  version_type=linux
13515
13275
  need_lib_prefix=no
14115
13875
objext_F77=$objext
14116
13876
 
14117
13877
# Code to be used in simple compile tests
14118
 
lt_simple_compile_test_code="\
14119
 
      subroutine t
14120
 
      return
14121
 
      end
14122
 
"
 
13878
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14123
13879
 
14124
13880
# Code to be used in simple link tests
14125
 
lt_simple_link_test_code="\
14126
 
      program t
14127
 
      end
14128
 
"
 
13881
lt_simple_link_test_code="      program t\n      end\n"
14129
13882
 
14130
13883
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14131
13884
 
14141
13894
 
14142
13895
# save warnings/boilerplate of simple test code
14143
13896
ac_outfile=conftest.$ac_objext
14144
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13897
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14145
13898
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14146
13899
_lt_compiler_boilerplate=`cat conftest.err`
14147
13900
$rm conftest*
14148
13901
 
14149
13902
ac_outfile=conftest.$ac_objext
14150
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13903
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14151
13904
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14152
13905
_lt_linker_boilerplate=`cat conftest.err`
14153
13906
$rm conftest*
14234
13987
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14235
13988
      ;;
14236
13989
 
14237
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13990
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14238
13991
      # PIC is the default for these OSes.
14239
13992
      ;;
14240
13993
 
14241
 
    mingw* | cygwin* | pw32* | os2*)
 
13994
    mingw* | pw32* | os2*)
14242
13995
      # This hack is so that the source file can tell whether it is being
14243
13996
      # built for inclusion in a dll (and should export symbols for example).
14244
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14245
 
      # (--disable-auto-import) libraries
14246
13997
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14247
13998
      ;;
14248
13999
 
14310
14061
       esac
14311
14062
       ;;
14312
14063
 
14313
 
    mingw* | cygwin* | pw32* | os2*)
 
14064
    mingw* | pw32* | os2*)
14314
14065
      # This hack is so that the source file can tell whether it is being
14315
14066
      # built for inclusion in a dll (and should export symbols for example).
14316
14067
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14362
14113
        # All Alpha code is PIC.
14363
14114
        lt_prog_compiler_static_F77='-non_shared'
14364
14115
        ;;
14365
 
      *)
14366
 
        case `$CC -V 2>&1 | sed 5q` in
14367
 
        *Sun\ C*)
14368
 
          # Sun C 5.9
14369
 
          lt_prog_compiler_pic_F77='-KPIC'
14370
 
          lt_prog_compiler_static_F77='-Bstatic'
14371
 
          lt_prog_compiler_wl_F77='-Wl,'
14372
 
          ;;
14373
 
        *Sun\ F*)
14374
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14375
 
          lt_prog_compiler_pic_F77='-KPIC'
14376
 
          lt_prog_compiler_static_F77='-Bstatic'
14377
 
          lt_prog_compiler_wl_F77=''
14378
 
          ;;
14379
 
        esac
14380
 
        ;;
14381
14116
      esac
14382
14117
      ;;
14383
14118
 
14387
14122
      lt_prog_compiler_static_F77='-non_shared'
14388
14123
      ;;
14389
14124
 
14390
 
    rdos*)
14391
 
      lt_prog_compiler_static_F77='-non_shared'
14392
 
      ;;
14393
 
 
14394
14125
    solaris*)
14395
14126
      lt_prog_compiler_pic_F77='-KPIC'
14396
14127
      lt_prog_compiler_static_F77='-Bstatic'
14458
14189
else
14459
14190
  lt_prog_compiler_pic_works_F77=no
14460
14191
  ac_outfile=conftest.$ac_objext
14461
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14192
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14462
14193
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14463
14194
   # Insert the option either (1) after the last *FLAGS variable, or
14464
14195
   # (2) before a word containing "conftest.", or (3) at the end.
14469
14200
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14470
14201
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471
14202
   -e 's:$: $lt_compiler_flag:'`
14472
 
   (eval echo "\"\$as_me:14472: $lt_compile\"" >&5)
 
14203
   (eval echo "\"\$as_me:14203: $lt_compile\"" >&5)
14473
14204
   (eval "$lt_compile" 2>conftest.err)
14474
14205
   ac_status=$?
14475
14206
   cat conftest.err >&5
14476
 
   echo "$as_me:14476: \$? = $ac_status" >&5
 
14207
   echo "$as_me:14207: \$? = $ac_status" >&5
14477
14208
   if (exit $ac_status) && test -s "$ac_outfile"; then
14478
14209
     # The compiler can only warn and ignore the option if not recognized
14479
14210
     # So say no if there are warnings other than the usual output.
14522
14253
  lt_prog_compiler_static_works_F77=no
14523
14254
   save_LDFLAGS="$LDFLAGS"
14524
14255
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14525
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14256
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14526
14257
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14527
14258
     # The linker can only warn and ignore the option if not recognized
14528
14259
     # So say no if there are warnings
14562
14293
   mkdir conftest
14563
14294
   cd conftest
14564
14295
   mkdir out
14565
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14296
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14566
14297
 
14567
14298
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14568
14299
   # Insert the option either (1) after the last *FLAGS variable, or
14573
14304
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14574
14305
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14575
14306
   -e 's:$: $lt_compiler_flag:'`
14576
 
   (eval echo "\"\$as_me:14576: $lt_compile\"" >&5)
 
14307
   (eval echo "\"\$as_me:14307: $lt_compile\"" >&5)
14577
14308
   (eval "$lt_compile" 2>out/conftest.err)
14578
14309
   ac_status=$?
14579
14310
   cat out/conftest.err >&5
14580
 
   echo "$as_me:14580: \$? = $ac_status" >&5
 
14311
   echo "$as_me:14311: \$? = $ac_status" >&5
14581
14312
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14582
14313
   then
14583
14314
     # The compiler can only warn and ignore the option if not recognized
14769
14500
      allow_undefined_flag_F77=unsupported
14770
14501
      always_export_symbols_F77=no
14771
14502
      enable_shared_with_static_runtimes_F77=yes
14772
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14503
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14773
14504
 
14774
14505
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14775
14506
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14802
14533
      archive_expsym_cmds_F77='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'
14803
14534
      ;;
14804
14535
 
14805
 
    gnu* | linux* | k*bsd*-gnu)
 
14536
    linux* | k*bsd*-gnu)
14806
14537
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14807
14538
        tmp_addflag=
14808
14539
        case $cc_basename,$host_cpu in
14820
14551
        ifc* | ifort*)                  # Intel Fortran compiler
14821
14552
          tmp_addflag=' -nofor_main' ;;
14822
14553
        esac
14823
 
        case `$CC -V 2>&1 | sed 5q` in
14824
 
        *Sun\ C*)                       # Sun C 5.9
14825
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14826
 
          tmp_sharedflag='-G' ;;
14827
 
        *Sun\ F*)                       # Sun Fortran 8.3
14828
 
          tmp_sharedflag='-G' ;;
14829
 
        *)
14830
 
          tmp_sharedflag='-shared' ;;
14831
 
        esac
14832
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14554
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833
14555
 
14834
14556
        if test $supports_anon_versioning = yes; then
14835
14557
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14836
14558
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14837
14559
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14838
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14560
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14839
14561
        fi
 
14562
        link_all_deplibs_F77=no
14840
14563
      else
14841
14564
        ld_shlibs_F77=no
14842
14565
      fi
14843
14566
      ;;
14844
14567
 
14845
 
    netbsd*)
 
14568
    netbsd* | netbsdelf*-gnu)
14846
14569
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14847
14570
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14848
14571
        wlarc=
14994
14717
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14995
14718
          then
14996
14719
          # We have reworked collect2
14997
 
          :
 
14720
          hardcode_direct_F77=yes
14998
14721
          else
14999
14722
          # We have old collect2
15000
14723
          hardcode_direct_F77=unsupported
15058
14781
       } && test -s conftest$ac_exeext &&
15059
14782
       $as_test_x conftest$ac_exeext; then
15060
14783
 
15061
 
lt_aix_libpath_sed='
15062
 
    /Import File Strings/,/^$/ {
15063
 
        /^0/ {
15064
 
            s/^0  *\(.*\)$/\1/
15065
 
            p
15066
 
        }
15067
 
    }'
15068
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14784
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14785
}'`
15069
14786
# Check for a 64-bit object if we didn't find anything.
15070
 
if test -z "$aix_libpath"; then
15071
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15072
 
fi
 
14787
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14788
}'`; fi
15073
14789
else
15074
14790
  echo "$as_me: failed program was:" >&5
15075
14791
sed 's/^/| /' conftest.$ac_ext >&5
15114
14830
       } && test -s conftest$ac_exeext &&
15115
14831
       $as_test_x conftest$ac_exeext; then
15116
14832
 
15117
 
lt_aix_libpath_sed='
15118
 
    /Import File Strings/,/^$/ {
15119
 
        /^0/ {
15120
 
            s/^0  *\(.*\)$/\1/
15121
 
            p
15122
 
        }
15123
 
    }'
15124
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14833
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14834
}'`
15125
14835
# Check for a 64-bit object if we didn't find anything.
15126
 
if test -z "$aix_libpath"; then
15127
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15128
 
fi
 
14836
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14837
}'`; fi
15129
14838
else
15130
14839
  echo "$as_me: failed program was:" >&5
15131
14840
sed 's/^/| /' conftest.$ac_ext >&5
15179
14888
      # The linker will automatically build a .lib file if we build a DLL.
15180
14889
      old_archive_From_new_cmds_F77='true'
15181
14890
      # FIXME: Should let the user specify the lib program.
15182
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14891
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15183
14892
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15184
14893
      enable_shared_with_static_runtimes_F77=yes
15185
14894
      ;;
15366
15075
      link_all_deplibs_F77=yes
15367
15076
      ;;
15368
15077
 
15369
 
    netbsd*)
 
15078
    netbsd* | netbsdelf*-gnu)
15370
15079
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15371
15080
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15372
15081
      else
15462
15171
      case $host_os in
15463
15172
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15464
15173
      *)
15465
 
        # The compiler driver will combine and reorder linker options,
15466
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15467
 
        # but is careful enough not to reorder.
 
15174
        # The compiler driver will combine linker options so we
 
15175
        # cannot just pass the convience library names through
 
15176
        # without $wl, iff we do not link with $LD.
 
15177
        # Luckily, gcc supports the same syntax we need for Sun Studio.
15468
15178
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15469
 
        if test "$GCC" = yes; then
15470
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15471
 
        else
15472
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15473
 
        fi
15474
 
        ;;
 
15179
        case $wlarc in
 
15180
        '')
 
15181
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15182
        *)
 
15183
          whole_archive_flag_spec_F77='${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' ;;
 
15184
        esac ;;
15475
15185
      esac
15476
15186
      link_all_deplibs_F77=yes
15477
15187
      ;;
15528
15238
      fi
15529
15239
      ;;
15530
15240
 
15531
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15241
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15532
15242
      no_undefined_flag_F77='${wl}-z,text'
15533
15243
      archive_cmds_need_lc_F77=no
15534
15244
      hardcode_shlibpath_var_F77=no
15605
15315
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15606
15316
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15607
15317
      $rm conftest*
15608
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15318
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15609
15319
 
15610
15320
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611
15321
  (eval $ac_compile) 2>&5
15663
15373
version_type=none
15664
15374
dynamic_linker="$host_os ld.so"
15665
15375
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15666
 
 
 
15376
if test "$GCC" = yes; then
 
15377
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15378
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15379
    # if the path contains ";" then we assume it to be the separator
 
15380
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15381
    # assumed that no part of a normal pathname contains ";" but that should
 
15382
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15383
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15384
  else
 
15385
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15386
  fi
 
15387
else
 
15388
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15389
fi
15667
15390
need_lib_prefix=unknown
15668
15391
hardcode_into_libs=no
15669
15392
 
15820
15543
  shlibpath_overrides_runpath=yes
15821
15544
  shlibpath_var=DYLD_LIBRARY_PATH
15822
15545
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15823
 
 
 
15546
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15547
  if test "$GCC" = yes; then
 
15548
    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"`
 
15549
  else
 
15550
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15551
  fi
15824
15552
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15825
15553
  ;;
15826
15554
 
15848
15576
    *) objformat=elf ;;
15849
15577
    esac
15850
15578
  fi
15851
 
  # Handle Gentoo/FreeBSD as it was Linux
15852
 
  case $host_vendor in
15853
 
    gentoo)
15854
 
      version_type=linux ;;
15855
 
    *)
15856
 
      version_type=freebsd-$objformat ;;
15857
 
  esac
15858
 
 
 
15579
  version_type=freebsd-$objformat
15859
15580
  case $version_type in
15860
15581
    freebsd-elf*)
15861
15582
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15866
15587
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15867
15588
      need_version=yes
15868
15589
      ;;
15869
 
    linux)
15870
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15871
 
      soname_spec='${libname}${release}${shared_ext}$major'
15872
 
      need_lib_prefix=no
15873
 
      need_version=no
15874
 
      ;;
15875
15590
  esac
15876
15591
  shlibpath_var=LD_LIBRARY_PATH
15877
15592
  case $host_os in
15887
15602
    shlibpath_overrides_runpath=no
15888
15603
    hardcode_into_libs=yes
15889
15604
    ;;
15890
 
  *) # from 4.6 on, and DragonFly
 
15605
  freebsd*) # from 4.6 on
15891
15606
    shlibpath_overrides_runpath=yes
15892
15607
    hardcode_into_libs=yes
15893
15608
    ;;
16021
15736
 
16022
15737
  # Append ld.so.conf contents to the search path
16023
15738
  if test -f /etc/ld.so.conf; then
16024
 
    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' ' '`
 
15739
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16025
15740
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16026
15741
  fi
16027
15742
 
16034
15749
  dynamic_linker='GNU/Linux ld.so'
16035
15750
  ;;
16036
15751
 
 
15752
netbsdelf*-gnu)
 
15753
  version_type=linux
 
15754
  need_lib_prefix=no
 
15755
  need_version=no
 
15756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15757
  soname_spec='${libname}${release}${shared_ext}$major'
 
15758
  shlibpath_var=LD_LIBRARY_PATH
 
15759
  shlibpath_overrides_runpath=no
 
15760
  hardcode_into_libs=yes
 
15761
  dynamic_linker='NetBSD ld.elf_so'
 
15762
  ;;
 
15763
 
16037
15764
netbsd*)
16038
15765
  version_type=sunos
16039
15766
  need_lib_prefix=no
16115
15842
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16116
15843
  ;;
16117
15844
 
16118
 
rdos*)
16119
 
  dynamic_linker=no
16120
 
  ;;
16121
 
 
16122
15845
solaris*)
16123
15846
  version_type=linux
16124
15847
  need_lib_prefix=no
16691
16414
objext_GCJ=$objext
16692
16415
 
16693
16416
# Code to be used in simple compile tests
16694
 
lt_simple_compile_test_code="class foo {}"
 
16417
lt_simple_compile_test_code="class foo {}\n"
16695
16418
 
16696
16419
# Code to be used in simple link tests
16697
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16420
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16698
16421
 
16699
16422
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16700
16423
 
16710
16433
 
16711
16434
# save warnings/boilerplate of simple test code
16712
16435
ac_outfile=conftest.$ac_objext
16713
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16436
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16714
16437
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16715
16438
_lt_compiler_boilerplate=`cat conftest.err`
16716
16439
$rm conftest*
16717
16440
 
16718
16441
ac_outfile=conftest.$ac_objext
16719
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16442
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16720
16443
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16721
16444
_lt_linker_boilerplate=`cat conftest.err`
16722
16445
$rm conftest*
16757
16480
else
16758
16481
  lt_cv_prog_compiler_rtti_exceptions=no
16759
16482
  ac_outfile=conftest.$ac_objext
16760
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16483
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16761
16484
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16762
16485
   # Insert the option either (1) after the last *FLAGS variable, or
16763
16486
   # (2) before a word containing "conftest.", or (3) at the end.
16768
16491
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16769
16492
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16770
16493
   -e 's:$: $lt_compiler_flag:'`
16771
 
   (eval echo "\"\$as_me:16771: $lt_compile\"" >&5)
 
16494
   (eval echo "\"\$as_me:16494: $lt_compile\"" >&5)
16772
16495
   (eval "$lt_compile" 2>conftest.err)
16773
16496
   ac_status=$?
16774
16497
   cat conftest.err >&5
16775
 
   echo "$as_me:16775: \$? = $ac_status" >&5
 
16498
   echo "$as_me:16498: \$? = $ac_status" >&5
16776
16499
   if (exit $ac_status) && test -s "$ac_outfile"; then
16777
16500
     # The compiler can only warn and ignore the option if not recognized
16778
16501
     # So say no if there are warnings other than the usual output.
16823
16546
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16824
16547
      ;;
16825
16548
 
16826
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16549
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16827
16550
      # PIC is the default for these OSes.
16828
16551
      ;;
16829
16552
 
16830
 
    mingw* | cygwin* | pw32* | os2*)
 
16553
    mingw* | pw32* | os2*)
16831
16554
      # This hack is so that the source file can tell whether it is being
16832
16555
      # built for inclusion in a dll (and should export symbols for example).
16833
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16834
 
      # (--disable-auto-import) libraries
16835
16556
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16836
16557
      ;;
16837
16558
 
16899
16620
       esac
16900
16621
       ;;
16901
16622
 
16902
 
    mingw* | cygwin* | pw32* | os2*)
 
16623
    mingw* | pw32* | os2*)
16903
16624
      # This hack is so that the source file can tell whether it is being
16904
16625
      # built for inclusion in a dll (and should export symbols for example).
16905
16626
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16951
16672
        # All Alpha code is PIC.
16952
16673
        lt_prog_compiler_static_GCJ='-non_shared'
16953
16674
        ;;
16954
 
      *)
16955
 
        case `$CC -V 2>&1 | sed 5q` in
16956
 
        *Sun\ C*)
16957
 
          # Sun C 5.9
16958
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16959
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16960
 
          lt_prog_compiler_wl_GCJ='-Wl,'
16961
 
          ;;
16962
 
        *Sun\ F*)
16963
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
16964
 
          lt_prog_compiler_pic_GCJ='-KPIC'
16965
 
          lt_prog_compiler_static_GCJ='-Bstatic'
16966
 
          lt_prog_compiler_wl_GCJ=''
16967
 
          ;;
16968
 
        esac
16969
 
        ;;
16970
16675
      esac
16971
16676
      ;;
16972
16677
 
16976
16681
      lt_prog_compiler_static_GCJ='-non_shared'
16977
16682
      ;;
16978
16683
 
16979
 
    rdos*)
16980
 
      lt_prog_compiler_static_GCJ='-non_shared'
16981
 
      ;;
16982
 
 
16983
16684
    solaris*)
16984
16685
      lt_prog_compiler_pic_GCJ='-KPIC'
16985
16686
      lt_prog_compiler_static_GCJ='-Bstatic'
17047
16748
else
17048
16749
  lt_prog_compiler_pic_works_GCJ=no
17049
16750
  ac_outfile=conftest.$ac_objext
17050
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16751
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17051
16752
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17052
16753
   # Insert the option either (1) after the last *FLAGS variable, or
17053
16754
   # (2) before a word containing "conftest.", or (3) at the end.
17058
16759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17059
16760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17060
16761
   -e 's:$: $lt_compiler_flag:'`
17061
 
   (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
 
16762
   (eval echo "\"\$as_me:16762: $lt_compile\"" >&5)
17062
16763
   (eval "$lt_compile" 2>conftest.err)
17063
16764
   ac_status=$?
17064
16765
   cat conftest.err >&5
17065
 
   echo "$as_me:17065: \$? = $ac_status" >&5
 
16766
   echo "$as_me:16766: \$? = $ac_status" >&5
17066
16767
   if (exit $ac_status) && test -s "$ac_outfile"; then
17067
16768
     # The compiler can only warn and ignore the option if not recognized
17068
16769
     # So say no if there are warnings other than the usual output.
17111
16812
  lt_prog_compiler_static_works_GCJ=no
17112
16813
   save_LDFLAGS="$LDFLAGS"
17113
16814
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17114
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16815
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17115
16816
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17116
16817
     # The linker can only warn and ignore the option if not recognized
17117
16818
     # So say no if there are warnings
17151
16852
   mkdir conftest
17152
16853
   cd conftest
17153
16854
   mkdir out
17154
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16855
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17155
16856
 
17156
16857
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17157
16858
   # Insert the option either (1) after the last *FLAGS variable, or
17162
16863
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17163
16864
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17164
16865
   -e 's:$: $lt_compiler_flag:'`
17165
 
   (eval echo "\"\$as_me:17165: $lt_compile\"" >&5)
 
16866
   (eval echo "\"\$as_me:16866: $lt_compile\"" >&5)
17166
16867
   (eval "$lt_compile" 2>out/conftest.err)
17167
16868
   ac_status=$?
17168
16869
   cat out/conftest.err >&5
17169
 
   echo "$as_me:17169: \$? = $ac_status" >&5
 
16870
   echo "$as_me:16870: \$? = $ac_status" >&5
17170
16871
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17171
16872
   then
17172
16873
     # The compiler can only warn and ignore the option if not recognized
17358
17059
      allow_undefined_flag_GCJ=unsupported
17359
17060
      always_export_symbols_GCJ=no
17360
17061
      enable_shared_with_static_runtimes_GCJ=yes
17361
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17062
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17362
17063
 
17363
17064
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17364
17065
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17391
17092
      archive_expsym_cmds_GCJ='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'
17392
17093
      ;;
17393
17094
 
17394
 
    gnu* | linux* | k*bsd*-gnu)
 
17095
    linux* | k*bsd*-gnu)
17395
17096
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17396
17097
        tmp_addflag=
17397
17098
        case $cc_basename,$host_cpu in
17409
17110
        ifc* | ifort*)                  # Intel Fortran compiler
17410
17111
          tmp_addflag=' -nofor_main' ;;
17411
17112
        esac
17412
 
        case `$CC -V 2>&1 | sed 5q` in
17413
 
        *Sun\ C*)                       # Sun C 5.9
17414
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17415
 
          tmp_sharedflag='-G' ;;
17416
 
        *Sun\ F*)                       # Sun Fortran 8.3
17417
 
          tmp_sharedflag='-G' ;;
17418
 
        *)
17419
 
          tmp_sharedflag='-shared' ;;
17420
 
        esac
17421
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17113
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17422
17114
 
17423
17115
        if test $supports_anon_versioning = yes; then
17424
17116
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17425
17117
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17426
17118
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17427
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17119
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17428
17120
        fi
 
17121
        link_all_deplibs_GCJ=no
17429
17122
      else
17430
17123
        ld_shlibs_GCJ=no
17431
17124
      fi
17432
17125
      ;;
17433
17126
 
17434
 
    netbsd*)
 
17127
    netbsd* | netbsdelf*-gnu)
17435
17128
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17436
17129
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17437
17130
        wlarc=
17583
17276
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17584
17277
          then
17585
17278
          # We have reworked collect2
17586
 
          :
 
17279
          hardcode_direct_GCJ=yes
17587
17280
          else
17588
17281
          # We have old collect2
17589
17282
          hardcode_direct_GCJ=unsupported
17657
17350
       } && test -s conftest$ac_exeext &&
17658
17351
       $as_test_x conftest$ac_exeext; then
17659
17352
 
17660
 
lt_aix_libpath_sed='
17661
 
    /Import File Strings/,/^$/ {
17662
 
        /^0/ {
17663
 
            s/^0  *\(.*\)$/\1/
17664
 
            p
17665
 
        }
17666
 
    }'
17667
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17353
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17354
}'`
17668
17355
# Check for a 64-bit object if we didn't find anything.
17669
 
if test -z "$aix_libpath"; then
17670
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17671
 
fi
 
17356
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17357
}'`; fi
17672
17358
else
17673
17359
  echo "$as_me: failed program was:" >&5
17674
17360
sed 's/^/| /' conftest.$ac_ext >&5
17723
17409
       } && test -s conftest$ac_exeext &&
17724
17410
       $as_test_x conftest$ac_exeext; then
17725
17411
 
17726
 
lt_aix_libpath_sed='
17727
 
    /Import File Strings/,/^$/ {
17728
 
        /^0/ {
17729
 
            s/^0  *\(.*\)$/\1/
17730
 
            p
17731
 
        }
17732
 
    }'
17733
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17412
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17413
}'`
17734
17414
# Check for a 64-bit object if we didn't find anything.
17735
 
if test -z "$aix_libpath"; then
17736
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17737
 
fi
 
17415
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17416
}'`; fi
17738
17417
else
17739
17418
  echo "$as_me: failed program was:" >&5
17740
17419
sed 's/^/| /' conftest.$ac_ext >&5
17788
17467
      # The linker will automatically build a .lib file if we build a DLL.
17789
17468
      old_archive_From_new_cmds_GCJ='true'
17790
17469
      # FIXME: Should let the user specify the lib program.
17791
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17470
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17792
17471
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17793
17472
      enable_shared_with_static_runtimes_GCJ=yes
17794
17473
      ;;
17975
17654
      link_all_deplibs_GCJ=yes
17976
17655
      ;;
17977
17656
 
17978
 
    netbsd*)
 
17657
    netbsd* | netbsdelf*-gnu)
17979
17658
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17980
17659
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17981
17660
      else
18071
17750
      case $host_os in
18072
17751
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18073
17752
      *)
18074
 
        # The compiler driver will combine and reorder linker options,
18075
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18076
 
        # but is careful enough not to reorder.
 
17753
        # The compiler driver will combine linker options so we
 
17754
        # cannot just pass the convience library names through
 
17755
        # without $wl, iff we do not link with $LD.
 
17756
        # Luckily, gcc supports the same syntax we need for Sun Studio.
18077
17757
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18078
 
        if test "$GCC" = yes; then
18079
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18080
 
        else
18081
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18082
 
        fi
18083
 
        ;;
 
17758
        case $wlarc in
 
17759
        '')
 
17760
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17761
        *)
 
17762
          whole_archive_flag_spec_GCJ='${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' ;;
 
17763
        esac ;;
18084
17764
      esac
18085
17765
      link_all_deplibs_GCJ=yes
18086
17766
      ;;
18137
17817
      fi
18138
17818
      ;;
18139
17819
 
18140
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17820
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18141
17821
      no_undefined_flag_GCJ='${wl}-z,text'
18142
17822
      archive_cmds_need_lc_GCJ=no
18143
17823
      hardcode_shlibpath_var_GCJ=no
18214
17894
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18215
17895
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18216
17896
      $rm conftest*
18217
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17897
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18218
17898
 
18219
17899
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220
17900
  (eval $ac_compile) 2>&5
18272
17952
version_type=none
18273
17953
dynamic_linker="$host_os ld.so"
18274
17954
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18275
 
 
 
17955
if test "$GCC" = yes; then
 
17956
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17957
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17958
    # if the path contains ";" then we assume it to be the separator
 
17959
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17960
    # assumed that no part of a normal pathname contains ";" but that should
 
17961
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17962
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17963
  else
 
17964
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17965
  fi
 
17966
else
 
17967
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17968
fi
18276
17969
need_lib_prefix=unknown
18277
17970
hardcode_into_libs=no
18278
17971
 
18429
18122
  shlibpath_overrides_runpath=yes
18430
18123
  shlibpath_var=DYLD_LIBRARY_PATH
18431
18124
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18432
 
 
 
18125
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18126
  if test "$GCC" = yes; then
 
18127
    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"`
 
18128
  else
 
18129
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18130
  fi
18433
18131
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18434
18132
  ;;
18435
18133
 
18457
18155
    *) objformat=elf ;;
18458
18156
    esac
18459
18157
  fi
18460
 
  # Handle Gentoo/FreeBSD as it was Linux
18461
 
  case $host_vendor in
18462
 
    gentoo)
18463
 
      version_type=linux ;;
18464
 
    *)
18465
 
      version_type=freebsd-$objformat ;;
18466
 
  esac
18467
 
 
 
18158
  version_type=freebsd-$objformat
18468
18159
  case $version_type in
18469
18160
    freebsd-elf*)
18470
18161
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18475
18166
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18476
18167
      need_version=yes
18477
18168
      ;;
18478
 
    linux)
18479
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18480
 
      soname_spec='${libname}${release}${shared_ext}$major'
18481
 
      need_lib_prefix=no
18482
 
      need_version=no
18483
 
      ;;
18484
18169
  esac
18485
18170
  shlibpath_var=LD_LIBRARY_PATH
18486
18171
  case $host_os in
18496
18181
    shlibpath_overrides_runpath=no
18497
18182
    hardcode_into_libs=yes
18498
18183
    ;;
18499
 
  *) # from 4.6 on, and DragonFly
 
18184
  freebsd*) # from 4.6 on
18500
18185
    shlibpath_overrides_runpath=yes
18501
18186
    hardcode_into_libs=yes
18502
18187
    ;;
18630
18315
 
18631
18316
  # Append ld.so.conf contents to the search path
18632
18317
  if test -f /etc/ld.so.conf; then
18633
 
    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' ' '`
 
18318
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18634
18319
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18635
18320
  fi
18636
18321
 
18643
18328
  dynamic_linker='GNU/Linux ld.so'
18644
18329
  ;;
18645
18330
 
 
18331
netbsdelf*-gnu)
 
18332
  version_type=linux
 
18333
  need_lib_prefix=no
 
18334
  need_version=no
 
18335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18336
  soname_spec='${libname}${release}${shared_ext}$major'
 
18337
  shlibpath_var=LD_LIBRARY_PATH
 
18338
  shlibpath_overrides_runpath=no
 
18339
  hardcode_into_libs=yes
 
18340
  dynamic_linker='NetBSD ld.elf_so'
 
18341
  ;;
 
18342
 
18646
18343
netbsd*)
18647
18344
  version_type=sunos
18648
18345
  need_lib_prefix=no
18724
18421
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18725
18422
  ;;
18726
18423
 
18727
 
rdos*)
18728
 
  dynamic_linker=no
18729
 
  ;;
18730
 
 
18731
18424
solaris*)
18732
18425
  version_type=linux
18733
18426
  need_lib_prefix=no
19299
18992
objext_RC=$objext
19300
18993
 
19301
18994
# Code to be used in simple compile tests
19302
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
18995
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19303
18996
 
19304
18997
# Code to be used in simple link tests
19305
18998
lt_simple_link_test_code="$lt_simple_compile_test_code"
19318
19011
 
19319
19012
# save warnings/boilerplate of simple test code
19320
19013
ac_outfile=conftest.$ac_objext
19321
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19014
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19322
19015
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19323
19016
_lt_compiler_boilerplate=`cat conftest.err`
19324
19017
$rm conftest*
19325
19018
 
19326
19019
ac_outfile=conftest.$ac_objext
19327
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19020
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19328
19021
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19329
19022
_lt_linker_boilerplate=`cat conftest.err`
19330
19023
$rm conftest*
20368
20061
   fi
20369
20062
fi
20370
20063
 
20371
 
 if test x$enable_docs != xno; then
 
20064
 
 
20065
 
 
20066
if test x$enable_docs != xno; then
20372
20067
  ENABLE_DOCS_TRUE=
20373
20068
  ENABLE_DOCS_FALSE='#'
20374
20069
else
20390
20085
    else
20391
20086
        if test -n "$PKG_CONFIG" && \
20392
20087
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"                          pygtk-2.0 >= 2.10.0,
20393
 
                         goocanvas >= 0.8,
 
20088
                         goocanvas >= 0.9,
20394
20089
                         pycairo >= 1.2.0
20395
20090
                         \"") >&5
20396
20091
  ($PKG_CONFIG --exists --print-errors "                          pygtk-2.0 >= 2.10.0,
20397
 
                         goocanvas >= 0.8,
 
20092
                         goocanvas >= 0.9,
20398
20093
                         pycairo >= 1.2.0
20399
20094
                         ") 2>&5
20400
20095
  ac_status=$?
20401
20096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402
20097
  (exit $ac_status); }; then
20403
20098
  pkg_cv_PYGOOCANVAS_CFLAGS=`$PKG_CONFIG --cflags "                          pygtk-2.0 >= 2.10.0,
20404
 
                         goocanvas >= 0.8,
 
20099
                         goocanvas >= 0.9,
20405
20100
                         pycairo >= 1.2.0
20406
20101
                         " 2>/dev/null`
20407
20102
else
20417
20112
    else
20418
20113
        if test -n "$PKG_CONFIG" && \
20419
20114
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"                          pygtk-2.0 >= 2.10.0,
20420
 
                         goocanvas >= 0.8,
 
20115
                         goocanvas >= 0.9,
20421
20116
                         pycairo >= 1.2.0
20422
20117
                         \"") >&5
20423
20118
  ($PKG_CONFIG --exists --print-errors "                          pygtk-2.0 >= 2.10.0,
20424
 
                         goocanvas >= 0.8,
 
20119
                         goocanvas >= 0.9,
20425
20120
                         pycairo >= 1.2.0
20426
20121
                         ") 2>&5
20427
20122
  ac_status=$?
20428
20123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429
20124
  (exit $ac_status); }; then
20430
20125
  pkg_cv_PYGOOCANVAS_LIBS=`$PKG_CONFIG --libs "                          pygtk-2.0 >= 2.10.0,
20431
 
                         goocanvas >= 0.8,
 
20126
                         goocanvas >= 0.9,
20432
20127
                         pycairo >= 1.2.0
20433
20128
                         " 2>/dev/null`
20434
20129
else
20450
20145
fi
20451
20146
        if test $_pkg_short_errors_supported = yes; then
20452
20147
                PYGOOCANVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "                          pygtk-2.0 >= 2.10.0,
20453
 
                         goocanvas >= 0.8,
 
20148
                         goocanvas >= 0.9,
20454
20149
                         pycairo >= 1.2.0
20455
20150
                         "`
20456
20151
        else
20457
20152
                PYGOOCANVAS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "                          pygtk-2.0 >= 2.10.0,
20458
 
                         goocanvas >= 0.8,
 
20153
                         goocanvas >= 0.9,
20459
20154
                         pycairo >= 1.2.0
20460
20155
                         "`
20461
20156
        fi
20463
20158
        echo "$PYGOOCANVAS_PKG_ERRORS" >&5
20464
20159
 
20465
20160
        { { echo "$as_me:$LINENO: error: Package requirements (                          pygtk-2.0 >= 2.10.0,
20466
 
                         goocanvas >= 0.8,
 
20161
                         goocanvas >= 0.9,
20467
20162
                         pycairo >= 1.2.0
20468
20163
                         ) were not met:
20469
20164
 
20477
20172
See the pkg-config man page for more details.
20478
20173
" >&5
20479
20174
echo "$as_me: error: Package requirements (                          pygtk-2.0 >= 2.10.0,
20480
 
                         goocanvas >= 0.8,
 
20175
                         goocanvas >= 0.9,
20481
20176
                         pycairo >= 1.2.0
20482
20177
                         ) were not met:
20483
20178
 
20520
20215
echo "${ECHO_T}yes" >&6; }
20521
20216
        :
20522
20217
fi
20523
 
PYGOOCANVAS_LIBS=`echo $PYGOOCANVAS_LIBS | sed -e "s/$export_dynamic//"`
 
20218
if test -n "$export_dynamic"; then
 
20219
        PYGOOCANVAS_LIBS=`echo $PYGOOCANVAS_LIBS | sed -e "s/$export_dynamic//"`
 
20220
fi
20524
20221
PYGTK_DATADIR=`pkg-config --variable=datadir pygtk-2.0`
20525
20222
 
20526
20223
 
20807
20504
    fi
20808
20505
  fi
20809
20506
 
20810
 
   if test x$enable_gtk_doc = xyes; then
 
20507
 
 
20508
 
 
20509
if test x$enable_gtk_doc = xyes; then
20811
20510
  ENABLE_GTK_DOC_TRUE=
20812
20511
  ENABLE_GTK_DOC_FALSE='#'
20813
20512
else
20815
20514
  ENABLE_GTK_DOC_FALSE=
20816
20515
fi
20817
20516
 
20818
 
   if test -n "$LIBTOOL"; then
 
20517
 
 
20518
 
 
20519
if test -n "$LIBTOOL"; then
20819
20520
  GTK_DOC_USE_LIBTOOL_TRUE=
20820
20521
  GTK_DOC_USE_LIBTOOL_FALSE='#'
20821
20522
else
21277
20978
# report actual input values of CONFIG_FILES etc. instead of their
21278
20979
# values after options handling.
21279
20980
ac_log="
21280
 
This file was extended by pygoocanvas $as_me 0.8.0, which was
 
20981
This file was extended by pygoocanvas $as_me 0.9.0, which was
21281
20982
generated by GNU Autoconf 2.61.  Invocation command line was
21282
20983
 
21283
20984
  CONFIG_FILES    = $CONFIG_FILES
21330
21031
_ACEOF
21331
21032
cat >>$CONFIG_STATUS <<_ACEOF
21332
21033
ac_cs_version="\\
21333
 
pygoocanvas config.status 0.8.0
 
21034
pygoocanvas config.status 0.9.0
21334
21035
configured by $0, generated by GNU Autoconf 2.61,
21335
21036
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21336
21037
 
21341
21042
ac_pwd='$ac_pwd'
21342
21043
srcdir='$srcdir'
21343
21044
INSTALL='$INSTALL'
21344
 
MKDIR_P='$MKDIR_P'
21345
21045
_ACEOF
21346
21046
 
21347
21047
cat >>$CONFIG_STATUS <<\_ACEOF
21552
21252
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21553
21253
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21554
21254
INSTALL_DATA!$INSTALL_DATA$ac_delim
21555
 
am__isrc!$am__isrc$ac_delim
21556
21255
CYGPATH_W!$CYGPATH_W$ac_delim
21557
21256
PACKAGE!$PACKAGE$ac_delim
21558
21257
VERSION!$VERSION$ac_delim
21599
21298
CCDEPMODE!$CCDEPMODE$ac_delim
21600
21299
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21601
21300
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21602
 
SED!$SED$ac_delim
21603
21301
GREP!$GREP$ac_delim
21604
21302
EGREP!$EGREP$ac_delim
21605
21303
LN_S!$LN_S$ac_delim
21609
21307
DLLTOOL!$DLLTOOL$ac_delim
21610
21308
AS!$AS$ac_delim
21611
21309
OBJDUMP!$OBJDUMP$ac_delim
 
21310
CPP!$CPP$ac_delim
 
21311
CXX!$CXX$ac_delim
21612
21312
_ACEOF
21613
21313
 
21614
21314
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21650
21350
ac_delim='%!_!# '
21651
21351
for ac_last_try in false false false false false :; do
21652
21352
  cat >conf$$subs.sed <<_ACEOF
21653
 
CPP!$CPP$ac_delim
21654
 
CXX!$CXX$ac_delim
21655
21353
CXXFLAGS!$CXXFLAGS$ac_delim
21656
21354
ac_ct_CXX!$ac_ct_CXX$ac_delim
21657
21355
CXXDEPMODE!$CXXDEPMODE$ac_delim
21697
21395
LTLIBOBJS!$LTLIBOBJS$ac_delim
21698
21396
_ACEOF
21699
21397
 
21700
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
 
21398
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
21701
21399
    break
21702
21400
  elif $ac_last_try; then
21703
21401
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21924
21622
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21925
21623
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21926
21624
  esac
21927
 
  ac_MKDIR_P=$MKDIR_P
21928
 
  case $MKDIR_P in
21929
 
  [\\/$]* | ?:[\\/]* ) ;;
21930
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21931
 
  esac
21932
21625
_ACEOF
21933
21626
 
21934
21627
cat >>$CONFIG_STATUS <<\_ACEOF
21982
21675
s&@abs_builddir@&$ac_abs_builddir&;t t
21983
21676
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21984
21677
s&@INSTALL@&$ac_INSTALL&;t t
21985
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
21986
21678
$ac_datarootdir_hack
21987
21679
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21988
21680
 
22147
21839
  # some people rename them; so instead we look at the file content.
22148
21840
  # Grep'ing the first line is not enough: some people post-process
22149
21841
  # each Makefile.in and add a new line on top of each file to say so.
22150
 
  # Grep'ing the whole file is not good either: AIX grep has a line
22151
 
  # limit of 2048, but all sed's we know have understand at least 4000.
22152
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
21842
  # So let's grep whole file.
 
21843
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22153
21844
    dirpart=`$as_dirname -- "$mf" ||
22154
21845
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22155
21846
         X"$mf" : 'X\(//\)[^/]' \| \