~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (7.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100223220902-s3spqi1x4e190y0t
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
524
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
525
 
526
526
 
 
527
 
 
528
# Check that we are running under the correct shell.
 
529
SHELL=${CONFIG_SHELL-/bin/sh}
 
530
 
 
531
case X$lt_ECHO in
 
532
X*--fallback-echo)
 
533
  # Remove one level of quotation (which was required for Make).
 
534
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
535
  ;;
 
536
esac
 
537
 
 
538
ECHO=${lt_ECHO-echo}
 
539
if test "X$1" = X--no-reexec; then
 
540
  # Discard the --no-reexec flag, and continue.
 
541
  shift
 
542
elif test "X$1" = X--fallback-echo; then
 
543
  # Avoid inline document here, it may be left over
 
544
  :
 
545
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
546
  # Yippee, $ECHO works!
 
547
  :
 
548
else
 
549
  # Restart under the correct shell.
 
550
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
551
fi
 
552
 
 
553
if test "X$1" = X--fallback-echo; then
 
554
  # used as fallback echo
 
555
  shift
 
556
  cat <<_LT_EOF
 
557
$*
 
558
_LT_EOF
 
559
  exit 0
 
560
fi
 
561
 
 
562
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
563
# if CDPATH is set.
 
564
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
565
 
 
566
if test -z "$lt_ECHO"; then
 
567
  if test "X${echo_test_string+set}" != Xset; then
 
568
    # find a string as large as possible, as long as the shell can cope with it
 
569
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
570
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
571
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
572
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
573
      then
 
574
        break
 
575
      fi
 
576
    done
 
577
  fi
 
578
 
 
579
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
580
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
581
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
582
    :
 
583
  else
 
584
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
585
    # backslashes.  This makes it impossible to quote backslashes using
 
586
    #   echo "$something" | sed 's/\\/\\\\/g'
 
587
    #
 
588
    # So, first we look for a working echo in the user's PATH.
 
589
 
 
590
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
591
    for dir in $PATH /usr/ucb; do
 
592
      IFS="$lt_save_ifs"
 
593
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
594
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
595
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
596
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
597
        ECHO="$dir/echo"
 
598
        break
 
599
      fi
 
600
    done
 
601
    IFS="$lt_save_ifs"
 
602
 
 
603
    if test "X$ECHO" = Xecho; then
 
604
      # We didn't find a better echo, so look for alternatives.
 
605
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
606
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
607
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
        # This shell has a builtin print -r that does the trick.
 
609
        ECHO='print -r'
 
610
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
611
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
612
        # If we have ksh, try running configure again with it.
 
613
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
614
        export ORIGINAL_CONFIG_SHELL
 
615
        CONFIG_SHELL=/bin/ksh
 
616
        export CONFIG_SHELL
 
617
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
618
      else
 
619
        # Try using printf.
 
620
        ECHO='printf %s\n'
 
621
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
622
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
623
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
624
          # Cool, printf works
 
625
          :
 
626
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
627
             test "X$echo_testing_string" = 'X\t' &&
 
628
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
629
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
630
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
631
          export CONFIG_SHELL
 
632
          SHELL="$CONFIG_SHELL"
 
633
          export SHELL
 
634
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
635
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
636
             test "X$echo_testing_string" = 'X\t' &&
 
637
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
638
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        else
 
641
          # maybe with a smaller string...
 
642
          prev=:
 
643
 
 
644
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
645
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
646
            then
 
647
              break
 
648
            fi
 
649
            prev="$cmd"
 
650
          done
 
651
 
 
652
          if test "$prev" != 'sed 50q "$0"'; then
 
653
            echo_test_string=`eval $prev`
 
654
            export echo_test_string
 
655
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
656
          else
 
657
            # Oops.  We lost completely, so just stick with echo.
 
658
            ECHO=echo
 
659
          fi
 
660
        fi
 
661
      fi
 
662
    fi
 
663
  fi
 
664
fi
 
665
 
 
666
# Copy echo and quote the copy suitably for passing to libtool from
 
667
# the Makefile, instead of quoting the original, which is used later.
 
668
lt_ECHO=$ECHO
 
669
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
670
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
671
fi
 
672
 
 
673
 
 
674
 
 
675
 
527
676
exec 7<&0 </dev/null 6>&1
528
677
 
529
678
# Name of the host.
591
740
ac_subst_vars='am__EXEEXT_FALSE
592
741
am__EXEEXT_TRUE
593
742
LTLIBOBJS
 
743
CONFIGURE_DEPENDENCIES
 
744
TOLUA
 
745
TOLUA_AS_DEPENDENCY
 
746
TOLUA_LIBS
 
747
TOLUA_CFLAGS
 
748
LUA_AS_DEPENDENCY
 
749
LUA_LIBS
 
750
LUA_CFLAGS
594
751
LIBOBJS
595
 
CONFIGURE_DEPENDENCIES
 
752
VOID_UNSETENV
 
753
REPLACE_STRTOD
 
754
REPLACE_PUTENV
 
755
REPLACE_MKSTEMP
 
756
HAVE_UNSETENV
 
757
HAVE_STRTOD
 
758
HAVE_SETENV
 
759
HAVE_RPMATCH
 
760
HAVE_REALLOC_POSIX
 
761
HAVE_MKDTEMP
 
762
HAVE_MALLOC_POSIX
 
763
HAVE_GETSUBOPT
 
764
HAVE_CALLOC_POSIX
 
765
GNULIB_UNSETENV
 
766
GNULIB_STRTOD
 
767
GNULIB_SETENV
 
768
GNULIB_RPMATCH
 
769
GNULIB_PUTENV
 
770
GNULIB_MKSTEMP
 
771
GNULIB_MKDTEMP
 
772
GNULIB_GETSUBOPT
 
773
GNULIB_CALLOC_POSIX
 
774
GNULIB_REALLOC_POSIX
 
775
GNULIB_MALLOC_POSIX
596
776
SERVER_LIBS
597
777
MINGW32_FALSE
598
778
MINGW32_TRUE
602
782
FTWL_SDL_TRUE
603
783
FTWL_X11_FALSE
604
784
FTWL_X11_TRUE
 
785
CLIENT_GUI_BEOS_FALSE
 
786
CLIENT_GUI_BEOS_TRUE
605
787
CLIENT_GUI_FTWL_FALSE
606
788
CLIENT_GUI_FTWL_TRUE
607
789
CLIENT_GUI_WIN32_FALSE
608
790
CLIENT_GUI_WIN32_TRUE
609
791
CLIENT_GUI_STUB_FALSE
610
792
CLIENT_GUI_STUB_TRUE
611
 
CLIENT_GUI_BEOS_FALSE
612
 
CLIENT_GUI_BEOS_TRUE
613
793
CLIENT_GUI_XAW_FALSE
614
794
CLIENT_GUI_XAW_TRUE
615
795
CLIENT_GUI_GTK_2_0_FALSE
618
798
CLIENT_GUI_SDL_TRUE
619
799
AUDIO_SDL_FALSE
620
800
AUDIO_SDL_TRUE
 
801
HOST_PATH_SEPARATOR
621
802
VERSION_LABEL
622
803
VERSION_WITHOUT_LABEL
623
804
FTWL_CFLAGS
624
805
SOUND_LIBS
625
806
SOUND_CFLAGS
626
 
CLIENT_LDFLAGS
627
 
CLIENT_LIBS
628
 
CLIENT_CXXFLAGS
629
 
CLIENT_CFLAGS
630
 
gui_sources
 
807
GUI_beos_LDFLAGS
 
808
GUI_beos_LIBS
 
809
GUI_beos_CXXFLAGS
 
810
GUI_beos_CFLAGS
 
811
GUI_stub_LDFLAGS
 
812
GUI_stub_LIBS
 
813
GUI_stub_CXXFLAGS
 
814
GUI_stub_CFLAGS
 
815
GUI_win32_LDFLAGS
 
816
GUI_win32_LIBS
 
817
GUI_win32_CXXFLAGS
 
818
GUI_win32_CFLAGS
 
819
GUI_ftwl_LDFLAGS
 
820
GUI_ftwl_LIBS
 
821
GUI_ftwl_CXXFLAGS
 
822
GUI_ftwl_CFLAGS
 
823
GUI_xaw_LDFLAGS
 
824
GUI_xaw_LIBS
 
825
GUI_xaw_CXXFLAGS
 
826
GUI_xaw_CFLAGS
 
827
GUI_sdl_LDFLAGS
 
828
GUI_sdl_LIBS
 
829
GUI_sdl_CXXFLAGS
 
830
GUI_sdl_CFLAGS
 
831
GUI_gtk2_LDFLAGS
 
832
GUI_gtk2_LIBS
 
833
GUI_gtk2_CXXFLAGS
 
834
GUI_gtk2_CFLAGS
 
835
CLIENT_FALSE
 
836
CLIENT_TRUE
631
837
GGZ_SERVER_FALSE
632
838
GGZ_SERVER_TRUE
633
839
ggzdexecmodpath
679
885
SDL_CONFIG
680
886
GTK_LIBS
681
887
GTK_CFLAGS
682
 
PKG_CONFIG
683
888
GZIP
684
889
WINDRES
685
890
AUTO_DEPS
686
 
INTL_LIBTOOL_SUFFIX_PREFIX
687
891
MKINSTALLDIRS
688
 
GENCAT
689
 
INSTOBJEXT
690
 
DATADIRNAME
691
892
POSUB
692
893
POFILES
693
 
INTLOBJS
 
894
PO_IN_DATADIR_FALSE
 
895
PO_IN_DATADIR_TRUE
694
896
INTLLIBS
 
897
INSTOBJEXT
695
898
GMOFILES
 
899
DATADIRNAME
696
900
CATOBJEXT
697
901
CATALOGS
698
 
USE_INCLUDED_LIBINTL
699
 
BUILD_INCLUDED_LIBINTL
700
 
INTLBISON
701
902
XGETTEXT
702
903
GMSGFMT
 
904
MSGFMT_OPTS
703
905
MSGFMT
704
906
USE_NLS
705
 
GLIBC21
706
 
ALLOCA
707
907
LTLIBICONV
708
908
LIBICONV
709
909
UNAME
 
910
CXXCPP
 
911
OTOOL64
 
912
OTOOL
 
913
LIPO
 
914
NMEDIT
 
915
DSYMUTIL
 
916
lt_ECHO
 
917
RANLIB
710
918
AR
711
 
RANLIB
 
919
OBJDUMP
 
920
NM
 
921
ac_ct_DUMPBIN
 
922
DUMPBIN
 
923
LD
 
924
FGREP
 
925
LIBTOOL
712
926
LN_S
713
927
am__fastdepCXX_FALSE
714
928
am__fastdepCXX_TRUE
720
934
MAKE_CLIENT_INCLUDE_TRUE
721
935
MAKE_DATA_FALSE
722
936
MAKE_DATA_TRUE
 
937
SVNREV_FALSE
 
938
SVNREV_TRUE
 
939
CAIRO_LIBS
 
940
CAIRO_CFLAGS
 
941
PKG_CONFIG
723
942
FTWL_FALSE
724
943
FTWL_TRUE
725
 
CLIENT_FALSE
726
 
CLIENT_TRUE
 
944
SED
727
945
SERVER_FALSE
728
946
SERVER_TRUE
729
947
AUTH_LIBS
730
948
AUTH_CFLAGS
731
 
MAINT
732
 
MAINTAINER_MODE_FALSE
733
 
MAINTAINER_MODE_TRUE
734
949
am__fastdepCC_FALSE
735
950
am__fastdepCC_TRUE
736
951
CCDEPMODE
827
1042
ac_user_opts='
828
1043
enable_option_checking
829
1044
enable_dependency_tracking
830
 
enable_maintainer_mode
831
1045
enable_auth
832
1046
with_mysql_prefix
833
1047
enable_server
 
1048
enable_ipv6
834
1049
with_readline
835
1050
enable_client
836
1051
enable_ftwl
837
1052
with_xaw
838
1053
with_xaw3d
 
1054
enable_svnrev
839
1055
enable_make_data
840
1056
enable_make_include
841
1057
enable_auto_deps
842
1058
with_efence
 
1059
enable_shared
 
1060
enable_static
 
1061
with_pic
 
1062
enable_fast_install
843
1063
with_gnu_ld
 
1064
enable_libtool_lock
844
1065
enable_rpath
845
1066
with_libiconv_prefix
846
1067
enable_nls
847
 
with_included_gettext
848
1068
enable_debug
849
1069
enable_gtktest
850
1070
with_sdl_prefix
877
1097
with_ggzdmod_includes
878
1098
with_ggzdmod_libraries
879
1099
with_ggzd_confdir
 
1100
enable_largefile
880
1101
'
881
1102
      ac_precious_vars='build_alias
882
1103
host_alias
887
1108
LIBS
888
1109
CPPFLAGS
889
1110
CPP
 
1111
PKG_CONFIG
 
1112
CAIRO_CFLAGS
 
1113
CAIRO_LIBS
890
1114
CXX
891
1115
CXXFLAGS
892
1116
CCC
 
1117
CXXCPP
893
1118
XMKMF
894
 
PKG_CONFIG
895
1119
PNG_CFLAGS
896
1120
PNG_LIBS'
897
1121
 
1517
1741
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518
1742
  --disable-dependency-tracking  speeds up one-time build
1519
1743
  --enable-dependency-tracking   do not reject slow dependency extractors
1520
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1521
 
                          (and sometimes confusing) to the casual installer
1522
1744
  --enable-auth[=no/yes/try] compile in authentication [default=no]
1523
1745
  --disable-server        do not compile the server
1524
 
  --enable-client=no/yes/xaw3d/xaw/gtk/win32/sdl/ftwl
1525
 
                          compile a client default=yes (if yes, guess type)
 
1746
  --enable-ipv6=yes/no/test
 
1747
                          use IPv6 (WIP) [test]
 
1748
  --enable-client=auto/all/gtk/sdl/xaw/win32/ftwl/stub)
 
1749
                          clients to compile [auto] (or list for multiple)
1526
1750
  --enable-ftwl=no/x11/sdl/opengl
1527
1751
                          compile ftwl default=no
 
1752
  --enable-svnrev         get svn revision to version information
1528
1753
  --disable-make-data     do not recurse make into data directories
1529
1754
                          (ok to disable unless you will 'make install')
1530
1755
  --enable-make-include   force make to recurse into include directory
1531
1756
                          (useful for 'make tags')
1532
1757
  --disable-auto-deps     remove automatic deps calcs, which require gmake,gcc
 
1758
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1759
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1760
  --enable-fast-install[=PKGS]
 
1761
                          optimize for fast installation [default=yes]
 
1762
  --disable-libtool-lock  avoid locking (might break parallel builds)
1533
1763
  --disable-rpath         do not hardcode runtime library paths
1534
 
  --disable-nls           do not use Native Language Support
 
1764
  --disable-nls        do not add localization support
1535
1765
  --enable-debug[=no/some/yes]  turn on debugging [default=some]
1536
1766
  --disable-gtktest       do not try to compile and run a test GTK+ program
1537
1767
  --disable-sdltest       Do not try to compile and run a test SDL program
1539
1769
                          program
1540
1770
  --disable-sdl-mixer     do not try to use the SDL mixer
1541
1771
  --enable-noregistry     Do not register game modules.
 
1772
  --disable-largefile     omit support for large files
1542
1773
 
1543
1774
Optional Packages:
1544
1775
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548
1779
  --with-xaw              use the Xaw widget set for the xaw client
1549
1780
  --with-xaw3d            use the Xaw3d widget set for the xaw client
1550
1781
  --with-efence           use Electric Fence, malloc debugger
 
1782
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1783
                          both]
 
1784
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1551
1785
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1552
1786
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1553
1787
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1554
 
  --with-included-gettext use the GNU gettext library included here
1555
1788
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1556
1789
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1557
1790
       --with-ft-prefix=PREFIX Prefix where FreeType is installed (optional)
1599
1832
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600
1833
              you have headers in a nonstandard directory <include dir>
1601
1834
  CPP         C preprocessor
 
1835
  PKG_CONFIG  path to pkg-config utility
 
1836
  CAIRO_CFLAGS
 
1837
              C compiler flags for CAIRO, overriding pkg-config
 
1838
  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1602
1839
  CXX         C++ compiler command
1603
1840
  CXXFLAGS    C++ compiler flags
 
1841
  CXXCPP      C++ preprocessor
1604
1842
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1605
 
  PKG_CONFIG  path to pkg-config utility
1606
1843
  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1607
1844
  PNG_LIBS    linker flags for PNG, overriding pkg-config
1608
1845
 
1967
2204
 
1968
2205
} # ac_fn_c_try_link
1969
2206
 
1970
 
# ac_fn_cxx_try_compile LINENO
1971
 
# ----------------------------
1972
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1973
 
ac_fn_cxx_try_compile ()
1974
 
{
1975
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976
 
  rm -f conftest.$ac_objext
1977
 
  if { { ac_try="$ac_compile"
1978
 
case "(($ac_try" in
1979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980
 
  *) ac_try_echo=$ac_try;;
1981
 
esac
1982
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983
 
$as_echo "$ac_try_echo"; } >&5
1984
 
  (eval "$ac_compile") 2>conftest.err
1985
 
  ac_status=$?
1986
 
  if test -s conftest.err; then
1987
 
    grep -v '^ *+' conftest.err >conftest.er1
1988
 
    cat conftest.er1 >&5
1989
 
    mv -f conftest.er1 conftest.err
1990
 
  fi
1991
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992
 
  test $ac_status = 0; } && {
1993
 
         test -z "$ac_cxx_werror_flag" ||
1994
 
         test ! -s conftest.err
1995
 
       } && test -s conftest.$ac_objext; then :
1996
 
  ac_retval=0
1997
 
else
1998
 
  $as_echo "$as_me: failed program was:" >&5
1999
 
sed 's/^/| /' conftest.$ac_ext >&5
2000
 
 
2001
 
        ac_retval=1
2002
 
fi
2003
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
 
  return $ac_retval
2005
 
 
2006
 
} # ac_fn_cxx_try_compile
2007
 
 
2008
 
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009
 
# -------------------------------------------
2010
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2011
 
# variable VAR accordingly.
2012
 
ac_fn_c_check_type ()
2013
 
{
2014
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016
 
$as_echo_n "checking for $2... " >&6; }
2017
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018
 
  $as_echo_n "(cached) " >&6
2019
 
else
2020
 
  eval "$3=no"
2021
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022
 
/* end confdefs.h.  */
2023
 
$4
2024
 
int
2025
 
main ()
2026
 
{
2027
 
if (sizeof ($2))
2028
 
         return 0;
2029
 
  ;
2030
 
  return 0;
2031
 
}
2032
 
_ACEOF
2033
 
if ac_fn_c_try_compile "$LINENO"; then :
2034
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035
 
/* end confdefs.h.  */
2036
 
$4
2037
 
int
2038
 
main ()
2039
 
{
2040
 
if (sizeof (($2)))
2041
 
            return 0;
2042
 
  ;
2043
 
  return 0;
2044
 
}
2045
 
_ACEOF
2046
 
if ac_fn_c_try_compile "$LINENO"; then :
2047
 
 
2048
 
else
2049
 
  eval "$3=yes"
2050
 
fi
2051
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052
 
fi
2053
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054
 
fi
2055
 
eval ac_res=\$$3
2056
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057
 
$as_echo "$ac_res" >&6; }
2058
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
 
 
2060
 
} # ac_fn_c_check_type
2061
 
 
2062
2207
# ac_fn_c_check_func LINENO FUNC VAR
2063
2208
# ----------------------------------
2064
2209
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2125
2270
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126
2271
 
2127
2272
} # ac_fn_c_check_func
 
2273
 
 
2274
# ac_fn_cxx_try_compile LINENO
 
2275
# ----------------------------
 
2276
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2277
ac_fn_cxx_try_compile ()
 
2278
{
 
2279
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2280
  rm -f conftest.$ac_objext
 
2281
  if { { ac_try="$ac_compile"
 
2282
case "(($ac_try" in
 
2283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2284
  *) ac_try_echo=$ac_try;;
 
2285
esac
 
2286
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2287
$as_echo "$ac_try_echo"; } >&5
 
2288
  (eval "$ac_compile") 2>conftest.err
 
2289
  ac_status=$?
 
2290
  if test -s conftest.err; then
 
2291
    grep -v '^ *+' conftest.err >conftest.er1
 
2292
    cat conftest.er1 >&5
 
2293
    mv -f conftest.er1 conftest.err
 
2294
  fi
 
2295
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2296
  test $ac_status = 0; } && {
 
2297
         test -z "$ac_cxx_werror_flag" ||
 
2298
         test ! -s conftest.err
 
2299
       } && test -s conftest.$ac_objext; then :
 
2300
  ac_retval=0
 
2301
else
 
2302
  $as_echo "$as_me: failed program was:" >&5
 
2303
sed 's/^/| /' conftest.$ac_ext >&5
 
2304
 
 
2305
        ac_retval=1
 
2306
fi
 
2307
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2308
  return $ac_retval
 
2309
 
 
2310
} # ac_fn_cxx_try_compile
 
2311
 
 
2312
# ac_fn_cxx_try_cpp LINENO
 
2313
# ------------------------
 
2314
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2315
ac_fn_cxx_try_cpp ()
 
2316
{
 
2317
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2318
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2319
case "(($ac_try" in
 
2320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2321
  *) ac_try_echo=$ac_try;;
 
2322
esac
 
2323
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2324
$as_echo "$ac_try_echo"; } >&5
 
2325
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2326
  ac_status=$?
 
2327
  if test -s conftest.err; then
 
2328
    grep -v '^ *+' conftest.err >conftest.er1
 
2329
    cat conftest.er1 >&5
 
2330
    mv -f conftest.er1 conftest.err
 
2331
  fi
 
2332
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2333
  test $ac_status = 0; } >/dev/null && {
 
2334
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2335
         test ! -s conftest.err
 
2336
       }; then :
 
2337
  ac_retval=0
 
2338
else
 
2339
  $as_echo "$as_me: failed program was:" >&5
 
2340
sed 's/^/| /' conftest.$ac_ext >&5
 
2341
 
 
2342
    ac_retval=1
 
2343
fi
 
2344
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2345
  return $ac_retval
 
2346
 
 
2347
} # ac_fn_cxx_try_cpp
 
2348
 
 
2349
# ac_fn_cxx_try_link LINENO
 
2350
# -------------------------
 
2351
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2352
ac_fn_cxx_try_link ()
 
2353
{
 
2354
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2355
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2356
  if { { ac_try="$ac_link"
 
2357
case "(($ac_try" in
 
2358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2359
  *) ac_try_echo=$ac_try;;
 
2360
esac
 
2361
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2362
$as_echo "$ac_try_echo"; } >&5
 
2363
  (eval "$ac_link") 2>conftest.err
 
2364
  ac_status=$?
 
2365
  if test -s conftest.err; then
 
2366
    grep -v '^ *+' conftest.err >conftest.er1
 
2367
    cat conftest.er1 >&5
 
2368
    mv -f conftest.er1 conftest.err
 
2369
  fi
 
2370
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2371
  test $ac_status = 0; } && {
 
2372
         test -z "$ac_cxx_werror_flag" ||
 
2373
         test ! -s conftest.err
 
2374
       } && test -s conftest$ac_exeext && {
 
2375
         test "$cross_compiling" = yes ||
 
2376
         $as_test_x conftest$ac_exeext
 
2377
       }; then :
 
2378
  ac_retval=0
 
2379
else
 
2380
  $as_echo "$as_me: failed program was:" >&5
 
2381
sed 's/^/| /' conftest.$ac_ext >&5
 
2382
 
 
2383
        ac_retval=1
 
2384
fi
 
2385
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2386
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2387
  # interfere with the next link command; also delete a directory that is
 
2388
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2389
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2390
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2391
  return $ac_retval
 
2392
 
 
2393
} # ac_fn_cxx_try_link
 
2394
 
 
2395
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2396
# -------------------------------------------
 
2397
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2398
# variable VAR accordingly.
 
2399
ac_fn_c_check_type ()
 
2400
{
 
2401
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2402
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2403
$as_echo_n "checking for $2... " >&6; }
 
2404
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2405
  $as_echo_n "(cached) " >&6
 
2406
else
 
2407
  eval "$3=no"
 
2408
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2409
/* end confdefs.h.  */
 
2410
$4
 
2411
int
 
2412
main ()
 
2413
{
 
2414
if (sizeof ($2))
 
2415
         return 0;
 
2416
  ;
 
2417
  return 0;
 
2418
}
 
2419
_ACEOF
 
2420
if ac_fn_c_try_compile "$LINENO"; then :
 
2421
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2422
/* end confdefs.h.  */
 
2423
$4
 
2424
int
 
2425
main ()
 
2426
{
 
2427
if (sizeof (($2)))
 
2428
            return 0;
 
2429
  ;
 
2430
  return 0;
 
2431
}
 
2432
_ACEOF
 
2433
if ac_fn_c_try_compile "$LINENO"; then :
 
2434
 
 
2435
else
 
2436
  eval "$3=yes"
 
2437
fi
 
2438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2439
fi
 
2440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2441
fi
 
2442
eval ac_res=\$$3
 
2443
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2444
$as_echo "$ac_res" >&6; }
 
2445
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2446
 
 
2447
} # ac_fn_c_check_type
2128
2448
cat >config.log <<_ACEOF
2129
2449
This file contains any messages produced by compilers while
2130
2450
running configure, to aid debugging if configure makes a mistake.
2502
2822
 
2503
2823
 # This can't be quoted or automake will fail
2504
2824
ac_config_headers="$ac_config_headers config.h"
2505
 
 
 
2825
 # Compatible with automake 1.6 and earlier
2506
2826
# Make sure we can run config.sub.
2507
2827
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2508
2828
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3812
4132
$as_echo "#define BUG_URL \"https://gna.org/projects/freeciv/\"" >>confdefs.h
3813
4133
 
3814
4134
 
3815
 
#
3816
 
# These macros are used in version.in and they just set
3817
 
# version information to form understandable for configure.ac and
3818
 
# configure.in. Other systems define these macros differently
3819
 
# before reading version.in and thus get version information
3820
 
# in different form.
3821
 
#
3822
 
 
3823
 
 
3824
 
 
3825
 
 
3826
 
 
3827
 
 
3828
 
 
3829
 
 
3830
 
 
3831
 
 
3832
 
 
3833
 
 
3834
 
 
3835
 
 
3836
 
 
3837
 
 
3838
 
 
3839
 
 
3840
 
 
3841
 
 MAJOR_VERSION="2"
3842
 
 MINOR_VERSION="1"
3843
 
 PATCH_VERSION="10"
3844
 
 VERSION_LABEL=""""
3845
 
 
 
4135
$as_echo "#define META_URL \"http://meta.freeciv.org/metaserver.phtml\"" >>confdefs.h
 
4136
 
 
4137
 
 
4138
$as_echo "#define WIKI_URL \"http://www.freeciv.org/\"" >>confdefs.h
 
4139
 
 
4140
 
 
4141
 
 
4142
$as_echo "#define DEFAULT_SOCK_PORT 5556" >>confdefs.h
 
4143
 
 
4144
 
 
4145
#  Copyright (C) 2004-2008 Freeciv team
 
4146
 
 
4147
# Version definition for Freeciv.
 
4148
 
 
4149
MAJOR_VERSION="2"
 
4150
MINOR_VERSION="2"
 
4151
PATCH_VERSION="0"
 
4152
VERSION_LABEL=""
3846
4153
 
3847
4154
IS_DEVEL_VERSION=0
3848
4155
IS_BETA_VERSION=0
3849
4156
 
3850
 
NEXT_STABLE_VERSION="2.1.11"
3851
 
RELEASE_MONTH=5
 
4157
NEXT_STABLE_VERSION="2.2.1"
 
4158
RELEASE_MONTH=4
3852
4159
 
3853
4160
# Freeciv network capstring: see documentation in common/capstr.c
3854
4161
#
3855
 
# "+2.1g" is the base capability string.
 
4162
# +Freeciv.Devel.YYYY.MMM.DD is the base capability string.
3856
4163
#
3857
 
#   - No new manditory capabilities can be added to the release branch; doing
 
4164
#   - No new mandatory capabilities can be added to the release branch; doing
3858
4165
#     so would break network capability of supposedly "compatible" releases.
3859
4166
#
3860
 
#   - Avoid adding a new manditory capability to the development branch for
 
4167
#   - Avoid adding a new mandatory capability to the development branch for
3861
4168
#     as long as possible.  We want to maintain network compatibility with
3862
4169
#     the stable branch for as long as possible.
3863
 
NETWORK_CAPSTRING_MANDATORY="+2.1g"
3864
 
          NETWORK_CAPSTRING_OPTIONAL="CreatedName voteinfo KeepSavedSetting"
3865
 
 
 
4170
NETWORK_CAPSTRING_MANDATORY="+2.2b"
 
4171
NETWORK_CAPSTRING_OPTIONAL=""
3866
4172
 
3867
4173
 
3868
4174
VERSION_WITHOUT_LABEL=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}
4599
4905
 
4600
4906
 
4601
4907
 
4602
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4603
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4604
 
    # Check whether --enable-maintainer-mode was given.
4605
 
if test "${enable_maintainer_mode+set}" = set; then :
4606
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4607
 
else
4608
 
  USE_MAINTAINER_MODE=no
4609
 
fi
4610
 
 
4611
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4612
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4613
 
   if test $USE_MAINTAINER_MODE = yes; then
4614
 
  MAINTAINER_MODE_TRUE=
4615
 
  MAINTAINER_MODE_FALSE='#'
4616
 
else
4617
 
  MAINTAINER_MODE_TRUE='#'
4618
 
  MAINTAINER_MODE_FALSE=
4619
 
fi
4620
 
 
4621
 
  MAINT=$MAINTAINER_MODE_TRUE
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
4908
    # Check whether --enable-auth was given.
4627
4909
if test "${enable_auth+set}" = set; then :
4628
4910
  enableval=$enable_auth; case "${enableval}" in
4629
 
    yes) auth=true
4630
 
         must_auth=true ;;
4631
 
    no)  auth=false ;;
4632
 
    try) auth=true ;;
 
4911
    yes) auth=yes
 
4912
         must_auth=yes ;;
 
4913
    no)  auth=no ;;
 
4914
    try) auth=yes ;;
4633
4915
    *)   as_fn_error "bad value ${enableval} for --enable-auth" "$LINENO" 5 ;;
4634
4916
   esac
4635
4917
else
4636
 
  auth=false
 
4918
  auth=no
4637
4919
fi
4638
4920
 
4639
4921
 
4646
4928
fi
4647
4929
 
4648
4930
 
4649
 
  if test x$auth = xtrue; then
 
4931
  if test x$auth = xyes ; then
4650
4932
 
4651
 
    if test x$mysql_prefix = x; then
 
4933
    if test x$mysql_prefix = x ; then
4652
4934
      ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
4653
4935
if test "x$ac_cv_header_mysql_mysql_h" = x""yes; then :
4654
4936
 
4655
4937
else
4656
4938
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find mysql header: disabling auth" >&5
4657
4939
$as_echo "$as_me: WARNING: couldn't find mysql header: disabling auth" >&2;};
4658
 
                       auth=false
 
4940
                       auth=no
4659
4941
fi
4660
4942
 
4661
4943
 
4702
4984
else
4703
4985
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find mysql libs in normal locations" >&5
4704
4986
$as_echo "$as_me: WARNING: couldn't find mysql libs in normal locations" >&2;};
4705
 
                    auth=false
 
4987
                    auth=no
4706
4988
fi
4707
4989
 
4708
4990
 
4709
 
      if test x$auth = xfalse ; then
 
4991
      if test x$auth = xno ; then
4710
4992
        fc_preauth_LDFLAGS="$LDFLAGS"
4711
4993
        fc_mysql_lib_loc="-L/usr/lib/mysql -L/usr/local/lib/mysql"
4712
4994
 
4754
5036
  AUTH_LIBS="-lmysqlclient $AUTH_LIBS";
4755
5037
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: had to add $__ldpath to LDFLAGS" >&5
4756
5038
$as_echo "$as_me: WARNING: had to add $__ldpath to LDFLAGS" >&2;}
4757
 
                        auth=true
 
5039
                        auth=yes
4758
5040
else
4759
5041
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find mysql libs in $__ldpath" >&5
4760
5042
$as_echo "$as_me: WARNING: couldn't find mysql libs in $__ldpath" >&2;}
4761
5043
fi
4762
5044
 
4763
5045
 
4764
 
          if test x$auth = xtrue; then
 
5046
          if test x$auth = xyes; then
4765
5047
            break
4766
5048
          else
4767
5049
            LDFLAGS="$fc_preauth_LDFLAGS"
4768
5050
          fi
4769
5051
        done
4770
5052
 
4771
 
        if test x$auth = xfalse ; then
 
5053
        if test x$auth = xno ; then
4772
5054
          as_fn_error "couldn't find mysql libs at all" "$LINENO" 5
4773
5055
        fi
4774
5056
      fi
4787
5069
else
4788
5070
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find mysql header in $mysql_prefix/include" >&5
4789
5071
$as_echo "$as_me: WARNING: couldn't find mysql header in $mysql_prefix/include" >&2;};
4790
 
                       auth=false
 
5072
                       auth=no
4791
5073
fi
4792
5074
 
4793
5075
 
4794
 
      if test x$auth = xtrue; then
 
5076
      if test x$auth = xyes; then
4795
5077
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
4796
5078
$as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
4797
5079
if test "${ac_cv_lib_mysqlclient_mysql_query+set}" = set; then :
4838
5120
else
4839
5121
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find mysql libs in $mysql_prefix/lib/mysql" >&5
4840
5122
$as_echo "$as_me: WARNING: couldn't find mysql libs in $mysql_prefix/lib/mysql" >&2;};
4841
 
                      auth=false
 
5123
                      auth=no
4842
5124
fi
4843
5125
 
4844
5126
      fi
4847
5129
      LIBS="$auth_saved_libs"
4848
5130
    fi
4849
5131
 
4850
 
    if test x$auth = xfalse; then
4851
 
      if test x$must_auth = xtrue; then
 
5132
    if test x$auth = xno; then
 
5133
      if test x$must_auth = xyes; then
4852
5134
        as_fn_error "can't find mysql: cannot build authentication support" "$LINENO" 5
4853
5135
      else
4854
5136
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mysql -- disabling authentication" >&5
4862
5144
  fi
4863
5145
 
4864
5146
 
4865
 
  if test x$auth = xtrue; then
 
5147
  if test x$auth = xyes; then
4866
5148
 
4867
5149
$as_echo "#define HAVE_AUTH 1" >>confdefs.h
4868
5150
 
4873
5155
# Check whether --enable-server was given.
4874
5156
if test "${enable_server+set}" = set; then :
4875
5157
  enableval=$enable_server; case "${enableval}" in
4876
 
  yes) server=true ;;
4877
 
  no)  server=false ;;
 
5158
  yes) server=yes ;;
 
5159
  no)  server=no ;;
4878
5160
  *)   as_fn_error "bad value ${enableval} for --disable-server" "$LINENO" 5 ;;
4879
5161
esac
4880
5162
else
4881
 
  server=true
 
5163
  server=yes
4882
5164
fi
4883
5165
 
4884
 
 if test x$server = xtrue; then
 
5166
 if test x$server = xyes; then
4885
5167
  SERVER_TRUE=
4886
5168
  SERVER_FALSE='#'
4887
5169
else
4890
5172
fi
4891
5173
 
4892
5174
 
 
5175
# Check whether --enable-ipv6 was given.
 
5176
if test "${enable_ipv6+set}" = set; then :
 
5177
  enableval=$enable_ipv6; case "${enableval}" in
 
5178
  yes|no|test) ipv6=${enableval} ;;
 
5179
  *)   as_fn_error "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
 
5180
esac
 
5181
else
 
5182
  ipv6=test
 
5183
fi
 
5184
 
 
5185
if test x$ipv6 != xno ; then
 
5186
  ipv6_possible=true
 
5187
  for ac_func in gethostbyname2 inet_pton inet_ntop getnameinfo
 
5188
do :
 
5189
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5190
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5191
eval as_val=\$$as_ac_var
 
5192
   if test "x$as_val" = x""yes; then :
 
5193
  cat >>confdefs.h <<_ACEOF
 
5194
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5195
_ACEOF
 
5196
 
 
5197
else
 
5198
  ipv6_possible=false
 
5199
fi
 
5200
done
 
5201
 
 
5202
  if test x$ipv6_possible = xtrue ; then
 
5203
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
 
5204
$as_echo_n "checking for AF_INET6... " >&6; }
 
5205
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5206
/* end confdefs.h.  */
 
5207
#include <sys/socket.h>
 
5208
int
 
5209
main ()
 
5210
{
 
5211
return AF_INET6;
 
5212
  ;
 
5213
  return 0;
 
5214
}
 
5215
_ACEOF
 
5216
if ac_fn_c_try_compile "$LINENO"; then :
 
5217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5218
$as_echo "yes" >&6; }
 
5219
else
 
5220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5221
$as_echo "no" >&6; }
 
5222
        ipv6_possible=false
 
5223
fi
 
5224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5225
  fi
 
5226
  if test x$ipv6_possible = xfalse && test x$ipv6 = xyes ; then
 
5227
    as_fn_error "Cannot enable IPv6 functionality" "$LINENO" 5
 
5228
  fi
 
5229
  if test x$ipv6_possible = xtrue ; then
 
5230
 
 
5231
$as_echo "#define IPV6_SUPPORT 1" >>confdefs.h
 
5232
 
 
5233
  fi
 
5234
fi
 
5235
 
4893
5236
 
4894
5237
# Check whether --with-readline was given.
4895
5238
if test "${with_readline+set}" = set; then :
4901
5244
 
4902
5245
# Check whether --enable-client was given.
4903
5246
if test "${enable_client+set}" = set; then :
4904
 
  enableval=$enable_client; case "${enableval}" in
4905
 
  yes)    client=yes ;;
4906
 
  no)     client=no ;;
4907
 
  xaw3d)  client=xaw
4908
 
          WITH_XAW3D=1 ;;
4909
 
  ftwl)   client=ftwl ;;
4910
 
  gtk)    client=gtk-2.0 ;;
4911
 
  gtk2)   client=gtk-2.0 ;;
4912
 
  gtk2.0) client=gtk-2.0 ;;
4913
 
  gtk20)  client=gtk-2.0 ;;
4914
 
  *)      client="${enableval}"
4915
 
          if test ! -d "${srcdir}/client/gui-$client" ; then
4916
 
            as_fn_error "bad value ${enableval} for --enable-client" "$LINENO" 5
4917
 
          fi ;;
 
5247
  enableval=$enable_client; clients=${enableval}
 
5248
else
 
5249
  client=auto
 
5250
fi
 
5251
 
 
5252
 
 
5253
gui_gtk2=no
 
5254
gui_sdl=no
 
5255
gui_xaw=no
 
5256
gui_win32=no
 
5257
gui_ftwl=no
 
5258
gui_beos=no
 
5259
gui_stub=no
 
5260
 
 
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5262
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5263
if test "${ac_cv_path_SED+set}" = set; then :
 
5264
  $as_echo_n "(cached) " >&6
 
5265
else
 
5266
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5267
     for ac_i in 1 2 3 4 5 6 7; do
 
5268
       ac_script="$ac_script$as_nl$ac_script"
 
5269
     done
 
5270
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5271
     { ac_script=; unset ac_script;}
 
5272
     if test -z "$SED"; then
 
5273
  ac_path_SED_found=false
 
5274
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5275
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5276
for as_dir in $PATH
 
5277
do
 
5278
  IFS=$as_save_IFS
 
5279
  test -z "$as_dir" && as_dir=.
 
5280
    for ac_prog in sed gsed; do
 
5281
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5282
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5283
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5284
# Check for GNU ac_path_SED and select it if it is found.
 
5285
  # Check for GNU $ac_path_SED
 
5286
case `"$ac_path_SED" --version 2>&1` in
 
5287
*GNU*)
 
5288
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5289
*)
 
5290
  ac_count=0
 
5291
  $as_echo_n 0123456789 >"conftest.in"
 
5292
  while :
 
5293
  do
 
5294
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5295
    mv "conftest.tmp" "conftest.in"
 
5296
    cp "conftest.in" "conftest.nl"
 
5297
    $as_echo '' >> "conftest.nl"
 
5298
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5299
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5300
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5301
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5302
      # Best one so far, save it but keep looking for a better one
 
5303
      ac_cv_path_SED="$ac_path_SED"
 
5304
      ac_path_SED_max=$ac_count
 
5305
    fi
 
5306
    # 10*(2^10) chars as input seems more than enough
 
5307
    test $ac_count -gt 10 && break
 
5308
  done
 
5309
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918
5310
esac
4919
 
else
4920
 
  client=yes
4921
 
fi
4922
 
 
4923
 
 if test x$client != xno; then
4924
 
  CLIENT_TRUE=
4925
 
  CLIENT_FALSE='#'
4926
 
else
4927
 
  CLIENT_TRUE='#'
4928
 
  CLIENT_FALSE=
4929
 
fi
4930
 
 
 
5311
 
 
5312
      $ac_path_SED_found && break 3
 
5313
    done
 
5314
  done
 
5315
  done
 
5316
IFS=$as_save_IFS
 
5317
  if test -z "$ac_cv_path_SED"; then
 
5318
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5319
  fi
 
5320
else
 
5321
  ac_cv_path_SED=$SED
 
5322
fi
 
5323
 
 
5324
fi
 
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5326
$as_echo "$ac_cv_path_SED" >&6; }
 
5327
 SED="$ac_cv_path_SED"
 
5328
  rm -f conftest.sed
 
5329
 
 
5330
 
 
5331
for gui in $(echo $clients | $SED 's/,/ /g') ; do
 
5332
  if test "x$gui" = "xno" ; then
 
5333
    client=no
 
5334
  elif test "x$gui" = "xauto" ; then
 
5335
    client=auto
 
5336
  elif test "x$gui" = "xall" ; then
 
5337
    client=all
 
5338
  else
 
5339
    if test "x$gui" = "xgtk"    ||
 
5340
       test "x$gui" = "xgtk2"   ||
 
5341
       test "x$gui" = "xgtk2.0" ||
 
5342
       test "x$gui" = "xgtk20"  ||
 
5343
       test "x$gui" = "xgtk-2.0" ; then
 
5344
      gui_gtk2=yes
 
5345
    else
 
5346
      if test ! -d "${srcdir}/client/gui-$gui" ; then
 
5347
        as_fn_error "bad value ${gui} for --enable-client" "$LINENO" 5
 
5348
      fi
 
5349
      eval "gui_$gui=yes"
 
5350
    fi
 
5351
    client=yes
 
5352
  fi
 
5353
done
4931
5354
 
4932
5355
# Check whether --enable-ftwl was given.
4933
5356
if test "${enable_ftwl+set}" = set; then :
4949
5372
  FTWL_FALSE=
4950
5373
fi
4951
5374
 
4952
 
if test "$ftwl" = no && test "$client" = ftwl ; then
4953
 
  as_fn_error "You must use --enable-ftwl to use the ftwl client" "$LINENO" 5
 
5375
if test "x$ftwl" != "xno" ; then
 
5376
 
 
5377
 
 
5378
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
5379
        if test -n "$ac_tool_prefix"; then
 
5380
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
5381
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5383
$as_echo_n "checking for $ac_word... " >&6; }
 
5384
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
5385
  $as_echo_n "(cached) " >&6
 
5386
else
 
5387
  case $PKG_CONFIG in
 
5388
  [\\/]* | ?:[\\/]*)
 
5389
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5390
  ;;
 
5391
  *)
 
5392
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5393
for as_dir in $PATH
 
5394
do
 
5395
  IFS=$as_save_IFS
 
5396
  test -z "$as_dir" && as_dir=.
 
5397
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5399
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5401
    break 2
 
5402
  fi
 
5403
done
 
5404
  done
 
5405
IFS=$as_save_IFS
 
5406
 
 
5407
  ;;
 
5408
esac
 
5409
fi
 
5410
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
5411
if test -n "$PKG_CONFIG"; then
 
5412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
5413
$as_echo "$PKG_CONFIG" >&6; }
 
5414
else
 
5415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5416
$as_echo "no" >&6; }
 
5417
fi
 
5418
 
 
5419
 
 
5420
fi
 
5421
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
5422
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
5423
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
5424
set dummy pkg-config; ac_word=$2
 
5425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5426
$as_echo_n "checking for $ac_word... " >&6; }
 
5427
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
5428
  $as_echo_n "(cached) " >&6
 
5429
else
 
5430
  case $ac_pt_PKG_CONFIG in
 
5431
  [\\/]* | ?:[\\/]*)
 
5432
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
5433
  ;;
 
5434
  *)
 
5435
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5436
for as_dir in $PATH
 
5437
do
 
5438
  IFS=$as_save_IFS
 
5439
  test -z "$as_dir" && as_dir=.
 
5440
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5442
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5443
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5444
    break 2
 
5445
  fi
 
5446
done
 
5447
  done
 
5448
IFS=$as_save_IFS
 
5449
 
 
5450
  ;;
 
5451
esac
 
5452
fi
 
5453
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
5454
if test -n "$ac_pt_PKG_CONFIG"; then
 
5455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
5456
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
5457
else
 
5458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5459
$as_echo "no" >&6; }
 
5460
fi
 
5461
 
 
5462
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
5463
    PKG_CONFIG=""
 
5464
  else
 
5465
    case $cross_compiling:$ac_tool_warned in
 
5466
yes:)
 
5467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5468
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5469
ac_tool_warned=yes ;;
 
5470
esac
 
5471
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
5472
  fi
 
5473
else
 
5474
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
5475
fi
 
5476
 
 
5477
fi
 
5478
if test -n "$PKG_CONFIG"; then
 
5479
        _pkg_min_version=0.9.0
 
5480
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
5481
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
5482
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
5483
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5484
$as_echo "yes" >&6; }
 
5485
        else
 
5486
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5487
$as_echo "no" >&6; }
 
5488
                PKG_CONFIG=""
 
5489
        fi
 
5490
 
 
5491
fi
 
5492
 
 
5493
pkg_failed=no
 
5494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
 
5495
$as_echo_n "checking for CAIRO... " >&6; }
 
5496
 
 
5497
if test -n "$PKG_CONFIG"; then
 
5498
    if test -n "$CAIRO_CFLAGS"; then
 
5499
        pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
 
5500
    else
 
5501
        if test -n "$PKG_CONFIG" && \
 
5502
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
 
5503
  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
 
5504
  ac_status=$?
 
5505
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5506
  test $ac_status = 0; }; then
 
5507
  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
 
5508
else
 
5509
  pkg_failed=yes
 
5510
fi
 
5511
    fi
 
5512
else
 
5513
        pkg_failed=untried
 
5514
fi
 
5515
if test -n "$PKG_CONFIG"; then
 
5516
    if test -n "$CAIRO_LIBS"; then
 
5517
        pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
 
5518
    else
 
5519
        if test -n "$PKG_CONFIG" && \
 
5520
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
 
5521
  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
 
5522
  ac_status=$?
 
5523
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5524
  test $ac_status = 0; }; then
 
5525
  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
 
5526
else
 
5527
  pkg_failed=yes
 
5528
fi
 
5529
    fi
 
5530
else
 
5531
        pkg_failed=untried
 
5532
fi
 
5533
 
 
5534
 
 
5535
 
 
5536
if test $pkg_failed = yes; then
 
5537
 
 
5538
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
5539
        _pkg_short_errors_supported=yes
 
5540
else
 
5541
        _pkg_short_errors_supported=no
 
5542
fi
 
5543
        if test $_pkg_short_errors_supported = yes; then
 
5544
                CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
 
5545
        else
 
5546
                CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
 
5547
        fi
 
5548
        # Put the nasty error message in config.log where it belongs
 
5549
        echo "$CAIRO_PKG_ERRORS" >&5
 
5550
 
 
5551
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5552
$as_echo "no" >&6; }
 
5553
                as_fn_error "--enable-ftwl requires cairo" "$LINENO" 5
 
5554
elif test $pkg_failed = untried; then
 
5555
        as_fn_error "--enable-ftwl requires cairo" "$LINENO" 5
 
5556
else
 
5557
        CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
 
5558
        CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
 
5559
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5560
$as_echo "yes" >&6; }
 
5561
        :
 
5562
fi
 
5563
  FTWL_CFLAGS="$FTWL_CFLAGS $CAIRO_CFLAGS"
 
5564
  FTWL_LIBS="$FTWL_LIBS $CAIRO_LIBS"
4954
5565
fi
4955
5566
 
4956
5567
 
4969
5580
fi
4970
5581
 
4971
5582
 
 
5583
if test "x$WITH_XAW" != "x" && test "x$WITH_XAW3D" != "x" ; then
 
5584
  as_fn_error "Cannot use both --with-xaw and --with-xaw3d at the same time" "$LINENO" 5
 
5585
fi
 
5586
 
 
5587
# Check whether --enable-svnrev was given.
 
5588
if test "${enable_svnrev+set}" = set; then :
 
5589
  enableval=$enable_svnrev; case "${enableval}" in
 
5590
  yes) svnrev=true  ;;
 
5591
  no)  svnrev=false ;;
 
5592
  *)   as_fn_error "bad value ${enableval} for --enable-svnrev" "$LINENO" 5 ;;
 
5593
esac
 
5594
else
 
5595
  svnrev=false
 
5596
fi
 
5597
 
 
5598
 if test x$svnrev = xtrue; then
 
5599
  SVNREV_TRUE=
 
5600
  SVNREV_FALSE='#'
 
5601
else
 
5602
  SVNREV_TRUE='#'
 
5603
  SVNREV_FALSE=
 
5604
fi
 
5605
 
 
5606
if test x$svnrev = xtrue ; then
 
5607
 
 
5608
$as_echo "#define SVNREV 1" >>confdefs.h
 
5609
 
 
5610
fi
 
5611
 
4972
5612
# Check whether --enable-make_data was given.
4973
5613
if test "${enable_make_data+set}" = set; then :
4974
5614
  enableval=$enable_make_data; case "${enableval}" in
6133
6773
fi
6134
6774
 
6135
6775
 
 
6776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
6777
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
6778
ac_ext=cpp
 
6779
ac_cpp='$CXXCPP $CPPFLAGS'
 
6780
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6781
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6782
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6783
 
 
6784
 
 
6785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6786
/* end confdefs.h.  */
 
6787
 
 
6788
int
 
6789
main ()
 
6790
{
 
6791
 
 
6792
  ;
 
6793
  return 0;
 
6794
}
 
6795
_ACEOF
 
6796
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6798
$as_echo "yes" >&6; }
 
6799
else
 
6800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6801
$as_echo "no" >&6; }
 
6802
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6803
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6804
as_fn_error "no acceptable C++ compiler found in \$PATH
 
6805
See \`config.log' for more details." "$LINENO" 5; }
 
6806
 
 
6807
fi
 
6808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6809
ac_ext=c
 
6810
ac_cpp='$CPP $CPPFLAGS'
 
6811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6812
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6813
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6814
 
6136
6815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6137
6816
$as_echo_n "checking whether ln -s works... " >&6; }
6138
6817
LN_S=$as_ln_s
6144
6823
$as_echo "no, using $LN_S" >&6; }
6145
6824
fi
6146
6825
 
 
6826
# Check whether --enable-shared was given.
 
6827
if test "${enable_shared+set}" = set; then :
 
6828
  enableval=$enable_shared; p=${PACKAGE-default}
 
6829
    case $enableval in
 
6830
    yes) enable_shared=yes ;;
 
6831
    no) enable_shared=no ;;
 
6832
    *)
 
6833
      enable_shared=no
 
6834
      # Look at the argument we got.  We use all the common list separators.
 
6835
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6836
      for pkg in $enableval; do
 
6837
        IFS="$lt_save_ifs"
 
6838
        if test "X$pkg" = "X$p"; then
 
6839
          enable_shared=yes
 
6840
        fi
 
6841
      done
 
6842
      IFS="$lt_save_ifs"
 
6843
      ;;
 
6844
    esac
 
6845
else
 
6846
  enable_shared=no
 
6847
fi
 
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
case `pwd` in
 
6858
  *\ * | *\     *)
 
6859
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
6860
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
6861
esac
 
6862
 
 
6863
 
 
6864
 
 
6865
macro_version='2.2.6'
 
6866
macro_revision='1.3012'
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
ltmain="$ac_aux_dir/ltmain.sh"
 
6881
 
 
6882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
6883
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
6884
if test "${ac_cv_path_SED+set}" = set; then :
 
6885
  $as_echo_n "(cached) " >&6
 
6886
else
 
6887
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
6888
     for ac_i in 1 2 3 4 5 6 7; do
 
6889
       ac_script="$ac_script$as_nl$ac_script"
 
6890
     done
 
6891
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
6892
     { ac_script=; unset ac_script;}
 
6893
     if test -z "$SED"; then
 
6894
  ac_path_SED_found=false
 
6895
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6896
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6897
for as_dir in $PATH
 
6898
do
 
6899
  IFS=$as_save_IFS
 
6900
  test -z "$as_dir" && as_dir=.
 
6901
    for ac_prog in sed gsed; do
 
6902
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6903
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
6904
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
6905
# Check for GNU ac_path_SED and select it if it is found.
 
6906
  # Check for GNU $ac_path_SED
 
6907
case `"$ac_path_SED" --version 2>&1` in
 
6908
*GNU*)
 
6909
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
6910
*)
 
6911
  ac_count=0
 
6912
  $as_echo_n 0123456789 >"conftest.in"
 
6913
  while :
 
6914
  do
 
6915
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6916
    mv "conftest.tmp" "conftest.in"
 
6917
    cp "conftest.in" "conftest.nl"
 
6918
    $as_echo '' >> "conftest.nl"
 
6919
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6920
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6921
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6922
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
6923
      # Best one so far, save it but keep looking for a better one
 
6924
      ac_cv_path_SED="$ac_path_SED"
 
6925
      ac_path_SED_max=$ac_count
 
6926
    fi
 
6927
    # 10*(2^10) chars as input seems more than enough
 
6928
    test $ac_count -gt 10 && break
 
6929
  done
 
6930
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6931
esac
 
6932
 
 
6933
      $ac_path_SED_found && break 3
 
6934
    done
 
6935
  done
 
6936
  done
 
6937
IFS=$as_save_IFS
 
6938
  if test -z "$ac_cv_path_SED"; then
 
6939
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
6940
  fi
 
6941
else
 
6942
  ac_cv_path_SED=$SED
 
6943
fi
 
6944
 
 
6945
fi
 
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
6947
$as_echo "$ac_cv_path_SED" >&6; }
 
6948
 SED="$ac_cv_path_SED"
 
6949
  rm -f conftest.sed
 
6950
 
 
6951
test -z "$SED" && SED=sed
 
6952
Xsed="$SED -e 1s/^X//"
 
6953
 
 
6954
 
 
6955
 
 
6956
 
 
6957
 
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
6965
$as_echo_n "checking for fgrep... " >&6; }
 
6966
if test "${ac_cv_path_FGREP+set}" = set; then :
 
6967
  $as_echo_n "(cached) " >&6
 
6968
else
 
6969
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
6970
   then ac_cv_path_FGREP="$GREP -F"
 
6971
   else
 
6972
     if test -z "$FGREP"; then
 
6973
  ac_path_FGREP_found=false
 
6974
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6975
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6976
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6977
do
 
6978
  IFS=$as_save_IFS
 
6979
  test -z "$as_dir" && as_dir=.
 
6980
    for ac_prog in fgrep; do
 
6981
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6982
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
6983
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
6984
# Check for GNU ac_path_FGREP and select it if it is found.
 
6985
  # Check for GNU $ac_path_FGREP
 
6986
case `"$ac_path_FGREP" --version 2>&1` in
 
6987
*GNU*)
 
6988
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
6989
*)
 
6990
  ac_count=0
 
6991
  $as_echo_n 0123456789 >"conftest.in"
 
6992
  while :
 
6993
  do
 
6994
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6995
    mv "conftest.tmp" "conftest.in"
 
6996
    cp "conftest.in" "conftest.nl"
 
6997
    $as_echo 'FGREP' >> "conftest.nl"
 
6998
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6999
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7000
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
7001
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
7002
      # Best one so far, save it but keep looking for a better one
 
7003
      ac_cv_path_FGREP="$ac_path_FGREP"
 
7004
      ac_path_FGREP_max=$ac_count
 
7005
    fi
 
7006
    # 10*(2^10) chars as input seems more than enough
 
7007
    test $ac_count -gt 10 && break
 
7008
  done
 
7009
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7010
esac
 
7011
 
 
7012
      $ac_path_FGREP_found && break 3
 
7013
    done
 
7014
  done
 
7015
  done
 
7016
IFS=$as_save_IFS
 
7017
  if test -z "$ac_cv_path_FGREP"; then
 
7018
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
7019
  fi
 
7020
else
 
7021
  ac_cv_path_FGREP=$FGREP
 
7022
fi
 
7023
 
 
7024
   fi
 
7025
fi
 
7026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
7027
$as_echo "$ac_cv_path_FGREP" >&6; }
 
7028
 FGREP="$ac_cv_path_FGREP"
 
7029
 
 
7030
 
 
7031
test -z "$GREP" && GREP=grep
 
7032
 
 
7033
 
 
7034
 
 
7035
 
 
7036
 
 
7037
 
 
7038
 
 
7039
 
 
7040
 
 
7041
 
 
7042
 
 
7043
 
 
7044
 
 
7045
 
 
7046
 
 
7047
 
 
7048
 
 
7049
 
 
7050
 
 
7051
# Check whether --with-gnu-ld was given.
 
7052
if test "${with_gnu_ld+set}" = set; then :
 
7053
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
7054
else
 
7055
  with_gnu_ld=no
 
7056
fi
 
7057
 
 
7058
ac_prog=ld
 
7059
if test "$GCC" = yes; then
 
7060
  # Check if gcc -print-prog-name=ld gives a path.
 
7061
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
7062
$as_echo_n "checking for ld used by $CC... " >&6; }
 
7063
  case $host in
 
7064
  *-*-mingw*)
 
7065
    # gcc leaves a trailing carriage return which upsets mingw
 
7066
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7067
  *)
 
7068
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7069
  esac
 
7070
  case $ac_prog in
 
7071
    # Accept absolute paths.
 
7072
    [\\/]* | ?:[\\/]*)
 
7073
      re_direlt='/[^/][^/]*/\.\./'
 
7074
      # Canonicalize the pathname of ld
 
7075
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
7076
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
7077
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
7078
      done
 
7079
      test -z "$LD" && LD="$ac_prog"
 
7080
      ;;
 
7081
  "")
 
7082
    # If it fails, then pretend we aren't using GCC.
 
7083
    ac_prog=ld
 
7084
    ;;
 
7085
  *)
 
7086
    # If it is relative, then search for the first ld in PATH.
 
7087
    with_gnu_ld=unknown
 
7088
    ;;
 
7089
  esac
 
7090
elif test "$with_gnu_ld" = yes; then
 
7091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
7092
$as_echo_n "checking for GNU ld... " >&6; }
 
7093
else
 
7094
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
7095
$as_echo_n "checking for non-GNU ld... " >&6; }
 
7096
fi
 
7097
if test "${lt_cv_path_LD+set}" = set; then :
 
7098
  $as_echo_n "(cached) " >&6
 
7099
else
 
7100
  if test -z "$LD"; then
 
7101
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7102
  for ac_dir in $PATH; do
 
7103
    IFS="$lt_save_ifs"
 
7104
    test -z "$ac_dir" && ac_dir=.
 
7105
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7106
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
7107
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7108
      # but apparently some variants of GNU ld only accept -v.
 
7109
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7110
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
7111
      *GNU* | *'with BFD'*)
 
7112
        test "$with_gnu_ld" != no && break
 
7113
        ;;
 
7114
      *)
 
7115
        test "$with_gnu_ld" != yes && break
 
7116
        ;;
 
7117
      esac
 
7118
    fi
 
7119
  done
 
7120
  IFS="$lt_save_ifs"
 
7121
else
 
7122
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
7123
fi
 
7124
fi
 
7125
 
 
7126
LD="$lt_cv_path_LD"
 
7127
if test -n "$LD"; then
 
7128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
7129
$as_echo "$LD" >&6; }
 
7130
else
 
7131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7132
$as_echo "no" >&6; }
 
7133
fi
 
7134
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
7135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
7136
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
7137
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
7138
  $as_echo_n "(cached) " >&6
 
7139
else
 
7140
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
7141
case `$LD -v 2>&1 </dev/null` in
 
7142
*GNU* | *'with BFD'*)
 
7143
  lt_cv_prog_gnu_ld=yes
 
7144
  ;;
 
7145
*)
 
7146
  lt_cv_prog_gnu_ld=no
 
7147
  ;;
 
7148
esac
 
7149
fi
 
7150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
7151
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
7152
with_gnu_ld=$lt_cv_prog_gnu_ld
 
7153
 
 
7154
 
 
7155
 
 
7156
 
 
7157
 
 
7158
 
 
7159
 
 
7160
 
 
7161
 
 
7162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
7163
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
7164
if test "${lt_cv_path_NM+set}" = set; then :
 
7165
  $as_echo_n "(cached) " >&6
 
7166
else
 
7167
  if test -n "$NM"; then
 
7168
  # Let the user override the test.
 
7169
  lt_cv_path_NM="$NM"
 
7170
else
 
7171
  lt_nm_to_check="${ac_tool_prefix}nm"
 
7172
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
7173
    lt_nm_to_check="$lt_nm_to_check nm"
 
7174
  fi
 
7175
  for lt_tmp_nm in $lt_nm_to_check; do
 
7176
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7177
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
7178
      IFS="$lt_save_ifs"
 
7179
      test -z "$ac_dir" && ac_dir=.
 
7180
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
7181
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
7182
        # Check to see if the nm accepts a BSD-compat flag.
 
7183
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
7184
        #   nm: unknown option "B" ignored
 
7185
        # Tru64's nm complains that /dev/null is an invalid object file
 
7186
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
7187
        */dev/null* | *'Invalid file or object type'*)
 
7188
          lt_cv_path_NM="$tmp_nm -B"
 
7189
          break
 
7190
          ;;
 
7191
        *)
 
7192
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
7193
          */dev/null*)
 
7194
            lt_cv_path_NM="$tmp_nm -p"
 
7195
            break
 
7196
            ;;
 
7197
          *)
 
7198
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
7199
            continue # so that we can try to find one that supports BSD flags
 
7200
            ;;
 
7201
          esac
 
7202
          ;;
 
7203
        esac
 
7204
      fi
 
7205
    done
 
7206
    IFS="$lt_save_ifs"
 
7207
  done
 
7208
  : ${lt_cv_path_NM=no}
 
7209
fi
 
7210
fi
 
7211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
7212
$as_echo "$lt_cv_path_NM" >&6; }
 
7213
if test "$lt_cv_path_NM" != "no"; then
 
7214
  NM="$lt_cv_path_NM"
 
7215
else
 
7216
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
7217
  if test -n "$ac_tool_prefix"; then
 
7218
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
7219
  do
 
7220
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7223
$as_echo_n "checking for $ac_word... " >&6; }
 
7224
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
7225
  $as_echo_n "(cached) " >&6
 
7226
else
 
7227
  if test -n "$DUMPBIN"; then
 
7228
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
7229
else
 
7230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7231
for as_dir in $PATH
 
7232
do
 
7233
  IFS=$as_save_IFS
 
7234
  test -z "$as_dir" && as_dir=.
 
7235
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7236
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7237
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
7238
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7239
    break 2
 
7240
  fi
 
7241
done
 
7242
  done
 
7243
IFS=$as_save_IFS
 
7244
 
 
7245
fi
 
7246
fi
 
7247
DUMPBIN=$ac_cv_prog_DUMPBIN
 
7248
if test -n "$DUMPBIN"; then
 
7249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
7250
$as_echo "$DUMPBIN" >&6; }
 
7251
else
 
7252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7253
$as_echo "no" >&6; }
 
7254
fi
 
7255
 
 
7256
 
 
7257
    test -n "$DUMPBIN" && break
 
7258
  done
 
7259
fi
 
7260
if test -z "$DUMPBIN"; then
 
7261
  ac_ct_DUMPBIN=$DUMPBIN
 
7262
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
7263
do
 
7264
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7265
set dummy $ac_prog; ac_word=$2
 
7266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7267
$as_echo_n "checking for $ac_word... " >&6; }
 
7268
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
7269
  $as_echo_n "(cached) " >&6
 
7270
else
 
7271
  if test -n "$ac_ct_DUMPBIN"; then
 
7272
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
7273
else
 
7274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7275
for as_dir in $PATH
 
7276
do
 
7277
  IFS=$as_save_IFS
 
7278
  test -z "$as_dir" && as_dir=.
 
7279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7281
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
7282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7283
    break 2
 
7284
  fi
 
7285
done
 
7286
  done
 
7287
IFS=$as_save_IFS
 
7288
 
 
7289
fi
 
7290
fi
 
7291
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
7292
if test -n "$ac_ct_DUMPBIN"; then
 
7293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
7294
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
7295
else
 
7296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7297
$as_echo "no" >&6; }
 
7298
fi
 
7299
 
 
7300
 
 
7301
  test -n "$ac_ct_DUMPBIN" && break
 
7302
done
 
7303
 
 
7304
  if test "x$ac_ct_DUMPBIN" = x; then
 
7305
    DUMPBIN=":"
 
7306
  else
 
7307
    case $cross_compiling:$ac_tool_warned in
 
7308
yes:)
 
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7311
ac_tool_warned=yes ;;
 
7312
esac
 
7313
    DUMPBIN=$ac_ct_DUMPBIN
 
7314
  fi
 
7315
fi
 
7316
 
 
7317
 
 
7318
  if test "$DUMPBIN" != ":"; then
 
7319
    NM="$DUMPBIN"
 
7320
  fi
 
7321
fi
 
7322
test -z "$NM" && NM=nm
 
7323
 
 
7324
 
 
7325
 
 
7326
 
 
7327
 
 
7328
 
 
7329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
7330
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
7331
if test "${lt_cv_nm_interface+set}" = set; then :
 
7332
  $as_echo_n "(cached) " >&6
 
7333
else
 
7334
  lt_cv_nm_interface="BSD nm"
 
7335
  echo "int some_variable = 0;" > conftest.$ac_ext
 
7336
  (eval echo "\"\$as_me:7336: $ac_compile\"" >&5)
 
7337
  (eval "$ac_compile" 2>conftest.err)
 
7338
  cat conftest.err >&5
 
7339
  (eval echo "\"\$as_me:7339: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
7340
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
7341
  cat conftest.err >&5
 
7342
  (eval echo "\"\$as_me:7342: output\"" >&5)
 
7343
  cat conftest.out >&5
 
7344
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
7345
    lt_cv_nm_interface="MS dumpbin"
 
7346
  fi
 
7347
  rm -f conftest*
 
7348
fi
 
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
7350
$as_echo "$lt_cv_nm_interface" >&6; }
 
7351
 
 
7352
# find the maximum length of command line arguments
 
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
7354
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
7355
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
7356
  $as_echo_n "(cached) " >&6
 
7357
else
 
7358
    i=0
 
7359
  teststring="ABCD"
 
7360
 
 
7361
  case $build_os in
 
7362
  msdosdjgpp*)
 
7363
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7364
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7365
    # during glob expansion).  Even if it were fixed, the result of this
 
7366
    # check would be larger than it should be.
 
7367
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7368
    ;;
 
7369
 
 
7370
  gnu*)
 
7371
    # Under GNU Hurd, this test is not required because there is
 
7372
    # no limit to the length of command line arguments.
 
7373
    # Libtool will interpret -1 as no limit whatsoever
 
7374
    lt_cv_sys_max_cmd_len=-1;
 
7375
    ;;
 
7376
 
 
7377
  cygwin* | mingw* | cegcc*)
 
7378
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7379
    # about 5 minutes as the teststring grows exponentially.
 
7380
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7381
    # you end up with a "frozen" computer, even though with patience
 
7382
    # the test eventually succeeds (with a max line length of 256k).
 
7383
    # Instead, let's just punt: use the minimum linelength reported by
 
7384
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7385
    lt_cv_sys_max_cmd_len=8192;
 
7386
    ;;
 
7387
 
 
7388
  amigaos*)
 
7389
    # On AmigaOS with pdksh, this test takes hours, literally.
 
7390
    # So we just punt and use a minimum line length of 8192.
 
7391
    lt_cv_sys_max_cmd_len=8192;
 
7392
    ;;
 
7393
 
 
7394
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
7395
    # This has been around since 386BSD, at least.  Likely further.
 
7396
    if test -x /sbin/sysctl; then
 
7397
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7398
    elif test -x /usr/sbin/sysctl; then
 
7399
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7400
    else
 
7401
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
7402
    fi
 
7403
    # And add a safety zone
 
7404
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7405
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7406
    ;;
 
7407
 
 
7408
  interix*)
 
7409
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
7410
    lt_cv_sys_max_cmd_len=196608
 
7411
    ;;
 
7412
 
 
7413
  osf*)
 
7414
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7415
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7416
    # nice to cause kernel panics so lets avoid the loop below.
 
7417
    # First set a reasonable default.
 
7418
    lt_cv_sys_max_cmd_len=16384
 
7419
    #
 
7420
    if test -x /sbin/sysconfig; then
 
7421
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7422
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7423
      esac
 
7424
    fi
 
7425
    ;;
 
7426
  sco3.2v5*)
 
7427
    lt_cv_sys_max_cmd_len=102400
 
7428
    ;;
 
7429
  sysv5* | sco5v6* | sysv4.2uw2*)
 
7430
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
7431
    if test -n "$kargmax"; then
 
7432
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
7433
    else
 
7434
      lt_cv_sys_max_cmd_len=32768
 
7435
    fi
 
7436
    ;;
 
7437
  *)
 
7438
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
7439
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
7440
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7441
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7442
    else
 
7443
      # Make teststring a little bigger before we do anything with it.
 
7444
      # a 1K string should be a reasonable start.
 
7445
      for i in 1 2 3 4 5 6 7 8 ; do
 
7446
        teststring=$teststring$teststring
 
7447
      done
 
7448
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7449
      # If test is not a shell built-in, we'll probably end up computing a
 
7450
      # maximum length that is only half of the actual maximum length, but
 
7451
      # we can't tell.
 
7452
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
7453
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
7454
              test $i != 17 # 1/2 MB should be enough
 
7455
      do
 
7456
        i=`expr $i + 1`
 
7457
        teststring=$teststring$teststring
 
7458
      done
 
7459
      # Only check the string length outside the loop.
 
7460
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
7461
      teststring=
 
7462
      # Add a significant safety factor because C++ compilers can tack on
 
7463
      # massive amounts of additional arguments before passing them to the
 
7464
      # linker.  It appears as though 1/2 is a usable value.
 
7465
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7466
    fi
 
7467
    ;;
 
7468
  esac
 
7469
 
 
7470
fi
 
7471
 
 
7472
if test -n $lt_cv_sys_max_cmd_len ; then
 
7473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
7474
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
7475
else
 
7476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
7477
$as_echo "none" >&6; }
 
7478
fi
 
7479
max_cmd_len=$lt_cv_sys_max_cmd_len
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
: ${CP="cp -f"}
 
7487
: ${MV="mv -f"}
 
7488
: ${RM="rm -f"}
 
7489
 
 
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
7491
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
7492
# Try some XSI features
 
7493
xsi_shell=no
 
7494
( _lt_dummy="a/b/c"
 
7495
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7496
      = c,a/b,, \
 
7497
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7498
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7499
  && xsi_shell=yes
 
7500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
7501
$as_echo "$xsi_shell" >&6; }
 
7502
 
 
7503
 
 
7504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
7505
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
7506
lt_shell_append=no
 
7507
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
7508
    >/dev/null 2>&1 \
 
7509
  && lt_shell_append=yes
 
7510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
7511
$as_echo "$lt_shell_append" >&6; }
 
7512
 
 
7513
 
 
7514
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7515
  lt_unset=unset
 
7516
else
 
7517
  lt_unset=false
 
7518
fi
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
# test EBCDIC or ASCII
 
7525
case `echo X|tr X '\101'` in
 
7526
 A) # ASCII based system
 
7527
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7528
  lt_SP2NL='tr \040 \012'
 
7529
  lt_NL2SP='tr \015\012 \040\040'
 
7530
  ;;
 
7531
 *) # EBCDIC based system
 
7532
  lt_SP2NL='tr \100 \n'
 
7533
  lt_NL2SP='tr \r\n \100\100'
 
7534
  ;;
 
7535
esac
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
7546
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
7547
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
7548
  $as_echo_n "(cached) " >&6
 
7549
else
 
7550
  lt_cv_ld_reload_flag='-r'
 
7551
fi
 
7552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
7553
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
7554
reload_flag=$lt_cv_ld_reload_flag
 
7555
case $reload_flag in
 
7556
"" | " "*) ;;
 
7557
*) reload_flag=" $reload_flag" ;;
 
7558
esac
 
7559
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7560
case $host_os in
 
7561
  darwin*)
 
7562
    if test "$GCC" = yes; then
 
7563
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
7564
    else
 
7565
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7566
    fi
 
7567
    ;;
 
7568
esac
 
7569
 
 
7570
 
 
7571
 
 
7572
 
 
7573
 
 
7574
 
 
7575
 
 
7576
 
 
7577
 
 
7578
if test -n "$ac_tool_prefix"; then
 
7579
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7580
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7582
$as_echo_n "checking for $ac_word... " >&6; }
 
7583
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
7584
  $as_echo_n "(cached) " >&6
 
7585
else
 
7586
  if test -n "$OBJDUMP"; then
 
7587
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7588
else
 
7589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7590
for as_dir in $PATH
 
7591
do
 
7592
  IFS=$as_save_IFS
 
7593
  test -z "$as_dir" && as_dir=.
 
7594
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7595
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7596
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7597
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7598
    break 2
 
7599
  fi
 
7600
done
 
7601
  done
 
7602
IFS=$as_save_IFS
 
7603
 
 
7604
fi
 
7605
fi
 
7606
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7607
if test -n "$OBJDUMP"; then
 
7608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
7609
$as_echo "$OBJDUMP" >&6; }
 
7610
else
 
7611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7612
$as_echo "no" >&6; }
 
7613
fi
 
7614
 
 
7615
 
 
7616
fi
 
7617
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7618
  ac_ct_OBJDUMP=$OBJDUMP
 
7619
  # Extract the first word of "objdump", so it can be a program name with args.
 
7620
set dummy objdump; ac_word=$2
 
7621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7622
$as_echo_n "checking for $ac_word... " >&6; }
 
7623
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
7624
  $as_echo_n "(cached) " >&6
 
7625
else
 
7626
  if test -n "$ac_ct_OBJDUMP"; then
 
7627
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7628
else
 
7629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7630
for as_dir in $PATH
 
7631
do
 
7632
  IFS=$as_save_IFS
 
7633
  test -z "$as_dir" && as_dir=.
 
7634
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7635
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7636
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7637
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7638
    break 2
 
7639
  fi
 
7640
done
 
7641
  done
 
7642
IFS=$as_save_IFS
 
7643
 
 
7644
fi
 
7645
fi
 
7646
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7647
if test -n "$ac_ct_OBJDUMP"; then
 
7648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
7649
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7650
else
 
7651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7652
$as_echo "no" >&6; }
 
7653
fi
 
7654
 
 
7655
  if test "x$ac_ct_OBJDUMP" = x; then
 
7656
    OBJDUMP="false"
 
7657
  else
 
7658
    case $cross_compiling:$ac_tool_warned in
 
7659
yes:)
 
7660
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7661
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7662
ac_tool_warned=yes ;;
 
7663
esac
 
7664
    OBJDUMP=$ac_ct_OBJDUMP
 
7665
  fi
 
7666
else
 
7667
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7668
fi
 
7669
 
 
7670
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
 
 
7679
 
 
7680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
7681
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
7682
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
7683
  $as_echo_n "(cached) " >&6
 
7684
else
 
7685
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
7686
lt_cv_file_magic_test_file=
 
7687
lt_cv_deplibs_check_method='unknown'
 
7688
# Need to set the preceding variable on all platforms that support
 
7689
# interlibrary dependencies.
 
7690
# 'none' -- dependencies not supported.
 
7691
# `unknown' -- same as none, but documents that we really don't know.
 
7692
# 'pass_all' -- all dependencies passed with no checks.
 
7693
# 'test_compile' -- check by making test program.
 
7694
# 'file_magic [[regex]]' -- check by looking for files in library path
 
7695
# which responds to the $file_magic_cmd with a given extended regex.
 
7696
# If you have `file' or equivalent on your system and you're not sure
 
7697
# whether `pass_all' will *always* work, you probably want this one.
 
7698
 
 
7699
case $host_os in
 
7700
aix[4-9]*)
 
7701
  lt_cv_deplibs_check_method=pass_all
 
7702
  ;;
 
7703
 
 
7704
beos*)
 
7705
  lt_cv_deplibs_check_method=pass_all
 
7706
  ;;
 
7707
 
 
7708
bsdi[45]*)
 
7709
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
7710
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7711
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7712
  ;;
 
7713
 
 
7714
cygwin*)
 
7715
  # func_win32_libid is a shell function defined in ltmain.sh
 
7716
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7717
  lt_cv_file_magic_cmd='func_win32_libid'
 
7718
  ;;
 
7719
 
 
7720
mingw* | pw32*)
 
7721
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
7722
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
7723
  # unless we find 'file', for example because we are cross-compiling.
 
7724
  if ( file / ) >/dev/null 2>&1; then
 
7725
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7726
    lt_cv_file_magic_cmd='func_win32_libid'
 
7727
  else
 
7728
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
7729
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
7730
  fi
 
7731
  ;;
 
7732
 
 
7733
cegcc)
 
7734
  # use the weaker test based on 'objdump'. See mingw*.
 
7735
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
7736
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
7737
  ;;
 
7738
 
 
7739
darwin* | rhapsody*)
 
7740
  lt_cv_deplibs_check_method=pass_all
 
7741
  ;;
 
7742
 
 
7743
freebsd* | dragonfly*)
 
7744
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
7745
    case $host_cpu in
 
7746
    i*86 )
 
7747
      # Not sure whether the presence of OpenBSD here was a mistake.
 
7748
      # Let's accept both of them until this is cleared up.
 
7749
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
7750
      lt_cv_file_magic_cmd=/usr/bin/file
 
7751
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
7752
      ;;
 
7753
    esac
 
7754
  else
 
7755
    lt_cv_deplibs_check_method=pass_all
 
7756
  fi
 
7757
  ;;
 
7758
 
 
7759
gnu*)
 
7760
  lt_cv_deplibs_check_method=pass_all
 
7761
  ;;
 
7762
 
 
7763
hpux10.20* | hpux11*)
 
7764
  lt_cv_file_magic_cmd=/usr/bin/file
 
7765
  case $host_cpu in
 
7766
  ia64*)
 
7767
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
7768
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
7769
    ;;
 
7770
  hppa*64*)
 
7771
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
7772
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
7773
    ;;
 
7774
  *)
 
7775
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
7776
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
7777
    ;;
 
7778
  esac
 
7779
  ;;
 
7780
 
 
7781
interix[3-9]*)
 
7782
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
7783
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
7784
  ;;
 
7785
 
 
7786
irix5* | irix6* | nonstopux*)
 
7787
  case $LD in
 
7788
  *-32|*"-32 ") libmagic=32-bit;;
 
7789
  *-n32|*"-n32 ") libmagic=N32;;
 
7790
  *-64|*"-64 ") libmagic=64-bit;;
 
7791
  *) libmagic=never-match;;
 
7792
  esac
 
7793
  lt_cv_deplibs_check_method=pass_all
 
7794
  ;;
 
7795
 
 
7796
# This must be Linux ELF.
 
7797
linux* | k*bsd*-gnu)
 
7798
  lt_cv_deplibs_check_method=pass_all
 
7799
  ;;
 
7800
 
 
7801
netbsd*)
 
7802
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
7803
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7804
  else
 
7805
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
7806
  fi
 
7807
  ;;
 
7808
 
 
7809
newos6*)
 
7810
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
7811
  lt_cv_file_magic_cmd=/usr/bin/file
 
7812
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
7813
  ;;
 
7814
 
 
7815
*nto* | *qnx*)
 
7816
  lt_cv_deplibs_check_method=pass_all
 
7817
  ;;
 
7818
 
 
7819
openbsd*)
 
7820
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7821
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
7822
  else
 
7823
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7824
  fi
 
7825
  ;;
 
7826
 
 
7827
osf3* | osf4* | osf5*)
 
7828
  lt_cv_deplibs_check_method=pass_all
 
7829
  ;;
 
7830
 
 
7831
rdos*)
 
7832
  lt_cv_deplibs_check_method=pass_all
 
7833
  ;;
 
7834
 
 
7835
solaris*)
 
7836
  lt_cv_deplibs_check_method=pass_all
 
7837
  ;;
 
7838
 
 
7839
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
7840
  lt_cv_deplibs_check_method=pass_all
 
7841
  ;;
 
7842
 
 
7843
sysv4 | sysv4.3*)
 
7844
  case $host_vendor in
 
7845
  motorola)
 
7846
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
7847
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
7848
    ;;
 
7849
  ncr)
 
7850
    lt_cv_deplibs_check_method=pass_all
 
7851
    ;;
 
7852
  sequent)
 
7853
    lt_cv_file_magic_cmd='/bin/file'
 
7854
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
7855
    ;;
 
7856
  sni)
 
7857
    lt_cv_file_magic_cmd='/bin/file'
 
7858
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
7859
    lt_cv_file_magic_test_file=/lib/libc.so
 
7860
    ;;
 
7861
  siemens)
 
7862
    lt_cv_deplibs_check_method=pass_all
 
7863
    ;;
 
7864
  pc)
 
7865
    lt_cv_deplibs_check_method=pass_all
 
7866
    ;;
 
7867
  esac
 
7868
  ;;
 
7869
 
 
7870
tpf*)
 
7871
  lt_cv_deplibs_check_method=pass_all
 
7872
  ;;
 
7873
esac
 
7874
 
 
7875
fi
 
7876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
7877
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
7878
file_magic_cmd=$lt_cv_file_magic_cmd
 
7879
deplibs_check_method=$lt_cv_deplibs_check_method
 
7880
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
 
 
7892
 
 
7893
if test -n "$ac_tool_prefix"; then
 
7894
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7895
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7897
$as_echo_n "checking for $ac_word... " >&6; }
 
7898
if test "${ac_cv_prog_AR+set}" = set; then :
 
7899
  $as_echo_n "(cached) " >&6
 
7900
else
 
7901
  if test -n "$AR"; then
 
7902
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7903
else
 
7904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7905
for as_dir in $PATH
 
7906
do
 
7907
  IFS=$as_save_IFS
 
7908
  test -z "$as_dir" && as_dir=.
 
7909
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7911
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7913
    break 2
 
7914
  fi
 
7915
done
 
7916
  done
 
7917
IFS=$as_save_IFS
 
7918
 
 
7919
fi
 
7920
fi
 
7921
AR=$ac_cv_prog_AR
 
7922
if test -n "$AR"; then
 
7923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
7924
$as_echo "$AR" >&6; }
 
7925
else
 
7926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7927
$as_echo "no" >&6; }
 
7928
fi
 
7929
 
 
7930
 
 
7931
fi
 
7932
if test -z "$ac_cv_prog_AR"; then
 
7933
  ac_ct_AR=$AR
 
7934
  # Extract the first word of "ar", so it can be a program name with args.
 
7935
set dummy ar; ac_word=$2
 
7936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7937
$as_echo_n "checking for $ac_word... " >&6; }
 
7938
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
7939
  $as_echo_n "(cached) " >&6
 
7940
else
 
7941
  if test -n "$ac_ct_AR"; then
 
7942
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7943
else
 
7944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7945
for as_dir in $PATH
 
7946
do
 
7947
  IFS=$as_save_IFS
 
7948
  test -z "$as_dir" && as_dir=.
 
7949
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7951
    ac_cv_prog_ac_ct_AR="ar"
 
7952
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7953
    break 2
 
7954
  fi
 
7955
done
 
7956
  done
 
7957
IFS=$as_save_IFS
 
7958
 
 
7959
fi
 
7960
fi
 
7961
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7962
if test -n "$ac_ct_AR"; then
 
7963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
7964
$as_echo "$ac_ct_AR" >&6; }
 
7965
else
 
7966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7967
$as_echo "no" >&6; }
 
7968
fi
 
7969
 
 
7970
  if test "x$ac_ct_AR" = x; then
 
7971
    AR="false"
 
7972
  else
 
7973
    case $cross_compiling:$ac_tool_warned in
 
7974
yes:)
 
7975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7977
ac_tool_warned=yes ;;
 
7978
esac
 
7979
    AR=$ac_ct_AR
 
7980
  fi
 
7981
else
 
7982
  AR="$ac_cv_prog_AR"
 
7983
fi
 
7984
 
 
7985
test -z "$AR" && AR=ar
 
7986
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7987
 
 
7988
 
 
7989
 
 
7990
 
 
7991
 
 
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
 
 
7997
 
 
7998
if test -n "$ac_tool_prefix"; then
 
7999
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8000
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8002
$as_echo_n "checking for $ac_word... " >&6; }
 
8003
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
8004
  $as_echo_n "(cached) " >&6
 
8005
else
 
8006
  if test -n "$STRIP"; then
 
8007
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8008
else
 
8009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8010
for as_dir in $PATH
 
8011
do
 
8012
  IFS=$as_save_IFS
 
8013
  test -z "$as_dir" && as_dir=.
 
8014
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8015
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8016
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8017
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8018
    break 2
 
8019
  fi
 
8020
done
 
8021
  done
 
8022
IFS=$as_save_IFS
 
8023
 
 
8024
fi
 
8025
fi
 
8026
STRIP=$ac_cv_prog_STRIP
 
8027
if test -n "$STRIP"; then
 
8028
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
8029
$as_echo "$STRIP" >&6; }
 
8030
else
 
8031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8032
$as_echo "no" >&6; }
 
8033
fi
 
8034
 
 
8035
 
 
8036
fi
 
8037
if test -z "$ac_cv_prog_STRIP"; then
 
8038
  ac_ct_STRIP=$STRIP
 
8039
  # Extract the first word of "strip", so it can be a program name with args.
 
8040
set dummy strip; ac_word=$2
 
8041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8042
$as_echo_n "checking for $ac_word... " >&6; }
 
8043
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
8044
  $as_echo_n "(cached) " >&6
 
8045
else
 
8046
  if test -n "$ac_ct_STRIP"; then
 
8047
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8048
else
 
8049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8050
for as_dir in $PATH
 
8051
do
 
8052
  IFS=$as_save_IFS
 
8053
  test -z "$as_dir" && as_dir=.
 
8054
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8055
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8056
    ac_cv_prog_ac_ct_STRIP="strip"
 
8057
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8058
    break 2
 
8059
  fi
 
8060
done
 
8061
  done
 
8062
IFS=$as_save_IFS
 
8063
 
 
8064
fi
 
8065
fi
 
8066
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8067
if test -n "$ac_ct_STRIP"; then
 
8068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
8069
$as_echo "$ac_ct_STRIP" >&6; }
 
8070
else
 
8071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8072
$as_echo "no" >&6; }
 
8073
fi
 
8074
 
 
8075
  if test "x$ac_ct_STRIP" = x; then
 
8076
    STRIP=":"
 
8077
  else
 
8078
    case $cross_compiling:$ac_tool_warned in
 
8079
yes:)
 
8080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8081
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8082
ac_tool_warned=yes ;;
 
8083
esac
 
8084
    STRIP=$ac_ct_STRIP
 
8085
  fi
 
8086
else
 
8087
  STRIP="$ac_cv_prog_STRIP"
 
8088
fi
 
8089
 
 
8090
test -z "$STRIP" && STRIP=:
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
 
8096
 
6147
8097
if test -n "$ac_tool_prefix"; then
6148
8098
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6149
8099
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6236
8186
  RANLIB="$ac_cv_prog_RANLIB"
6237
8187
fi
6238
8188
 
 
8189
test -z "$RANLIB" && RANLIB=:
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
 
 
8196
# Determine commands to create old-style static archives.
 
8197
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
8198
old_postinstall_cmds='chmod 644 $oldlib'
 
8199
old_postuninstall_cmds=
 
8200
 
 
8201
if test -n "$RANLIB"; then
 
8202
  case $host_os in
 
8203
  openbsd*)
 
8204
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
8205
    ;;
 
8206
  *)
 
8207
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
8208
    ;;
 
8209
  esac
 
8210
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8211
fi
 
8212
 
 
8213
 
 
8214
 
 
8215
 
 
8216
 
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
 
 
8222
 
 
8223
 
 
8224
 
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
 
 
8234
 
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
 
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
# If no C compiler was specified, use CC.
 
8247
LTCC=${LTCC-"$CC"}
 
8248
 
 
8249
# If no C compiler flags were specified, use CFLAGS.
 
8250
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8251
 
 
8252
# Allow CC to be a program name with arguments.
 
8253
compiler=$CC
 
8254
 
 
8255
 
 
8256
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
8258
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
8259
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
8260
  $as_echo_n "(cached) " >&6
 
8261
else
 
8262
 
 
8263
# These are sane defaults that work on at least a few old systems.
 
8264
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8265
 
 
8266
# Character class describing NM global symbol codes.
 
8267
symcode='[BCDEGRST]'
 
8268
 
 
8269
# Regexp to match symbols that can be accessed directly from C.
 
8270
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8271
 
 
8272
# Define system-specific variables.
 
8273
case $host_os in
 
8274
aix*)
 
8275
  symcode='[BCDT]'
 
8276
  ;;
 
8277
cygwin* | mingw* | pw32* | cegcc*)
 
8278
  symcode='[ABCDGISTW]'
 
8279
  ;;
 
8280
hpux*)
 
8281
  if test "$host_cpu" = ia64; then
 
8282
    symcode='[ABCDEGRST]'
 
8283
  fi
 
8284
  ;;
 
8285
irix* | nonstopux*)
 
8286
  symcode='[BCDEGRST]'
 
8287
  ;;
 
8288
osf*)
 
8289
  symcode='[BCDEGQRST]'
 
8290
  ;;
 
8291
solaris*)
 
8292
  symcode='[BDRT]'
 
8293
  ;;
 
8294
sco3.2v5*)
 
8295
  symcode='[DT]'
 
8296
  ;;
 
8297
sysv4.2uw2*)
 
8298
  symcode='[DT]'
 
8299
  ;;
 
8300
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
8301
  symcode='[ABDT]'
 
8302
  ;;
 
8303
sysv4)
 
8304
  symcode='[DFNSTU]'
 
8305
  ;;
 
8306
esac
 
8307
 
 
8308
# If we're using GNU nm, then use its standard symbol codes.
 
8309
case `$NM -V 2>&1` in
 
8310
*GNU* | *'with BFD'*)
 
8311
  symcode='[ABCDGIRSTW]' ;;
 
8312
esac
 
8313
 
 
8314
# Transform an extracted symbol line into a proper C declaration.
 
8315
# Some systems (esp. on ia64) link data and code symbols differently,
 
8316
# so use this general approach.
 
8317
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8318
 
 
8319
# Transform an extracted symbol line into symbol name and symbol address
 
8320
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
8321
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
8322
 
 
8323
# Handle CRLF in mingw tool chain
 
8324
opt_cr=
 
8325
case $build_os in
 
8326
mingw*)
 
8327
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8328
  ;;
 
8329
esac
 
8330
 
 
8331
# Try without a prefix underscore, then with it.
 
8332
for ac_symprfx in "" "_"; do
 
8333
 
 
8334
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
8335
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
8336
 
 
8337
  # Write the raw and C identifiers.
 
8338
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
8339
    # Fake it for dumpbin and say T for any non-static function
 
8340
    # and D for any global variable.
 
8341
    # Also find C++ and __fastcall symbols from MSVC++,
 
8342
    # which start with @ or ?.
 
8343
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
8344
"     {last_section=section; section=\$ 3};"\
 
8345
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
8346
"     \$ 0!~/External *\|/{next};"\
 
8347
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
8348
"     {if(hide[section]) next};"\
 
8349
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
8350
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
8351
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
8352
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
8353
"     ' prfx=^$ac_symprfx"
 
8354
  else
 
8355
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
8356
  fi
 
8357
 
 
8358
  # Check to see that the pipe works correctly.
 
8359
  pipe_works=no
 
8360
 
 
8361
  rm -f conftest*
 
8362
  cat > conftest.$ac_ext <<_LT_EOF
 
8363
#ifdef __cplusplus
 
8364
extern "C" {
 
8365
#endif
 
8366
char nm_test_var;
 
8367
void nm_test_func(void);
 
8368
void nm_test_func(void){}
 
8369
#ifdef __cplusplus
 
8370
}
 
8371
#endif
 
8372
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8373
_LT_EOF
 
8374
 
 
8375
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8376
  (eval $ac_compile) 2>&5
 
8377
  ac_status=$?
 
8378
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8379
  test $ac_status = 0; }; then
 
8380
    # Now try to grab the symbols.
 
8381
    nlist=conftest.nm
 
8382
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
8383
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8384
  ac_status=$?
 
8385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8386
  test $ac_status = 0; } && test -s "$nlist"; then
 
8387
      # Try sorting and uniquifying the output.
 
8388
      if sort "$nlist" | uniq > "$nlist"T; then
 
8389
        mv -f "$nlist"T "$nlist"
 
8390
      else
 
8391
        rm -f "$nlist"T
 
8392
      fi
 
8393
 
 
8394
      # Make sure that we snagged all the symbols we need.
 
8395
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
8396
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
8397
          cat <<_LT_EOF > conftest.$ac_ext
 
8398
#ifdef __cplusplus
 
8399
extern "C" {
 
8400
#endif
 
8401
 
 
8402
_LT_EOF
 
8403
          # Now generate the symbol file.
 
8404
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
8405
 
 
8406
          cat <<_LT_EOF >> conftest.$ac_ext
 
8407
 
 
8408
/* The mapping between symbol names and symbols.  */
 
8409
const struct {
 
8410
  const char *name;
 
8411
  void       *address;
 
8412
}
 
8413
lt__PROGRAM__LTX_preloaded_symbols[] =
 
8414
{
 
8415
  { "@PROGRAM@", (void *) 0 },
 
8416
_LT_EOF
 
8417
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
8418
          cat <<\_LT_EOF >> conftest.$ac_ext
 
8419
  {0, (void *) 0}
 
8420
};
 
8421
 
 
8422
/* This works around a problem in FreeBSD linker */
 
8423
#ifdef FREEBSD_WORKAROUND
 
8424
static const void *lt_preloaded_setup() {
 
8425
  return lt__PROGRAM__LTX_preloaded_symbols;
 
8426
}
 
8427
#endif
 
8428
 
 
8429
#ifdef __cplusplus
 
8430
}
 
8431
#endif
 
8432
_LT_EOF
 
8433
          # Now try linking the two files.
 
8434
          mv conftest.$ac_objext conftstm.$ac_objext
 
8435
          lt_save_LIBS="$LIBS"
 
8436
          lt_save_CFLAGS="$CFLAGS"
 
8437
          LIBS="conftstm.$ac_objext"
 
8438
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8439
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
8440
  (eval $ac_link) 2>&5
 
8441
  ac_status=$?
 
8442
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8443
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
8444
            pipe_works=yes
 
8445
          fi
 
8446
          LIBS="$lt_save_LIBS"
 
8447
          CFLAGS="$lt_save_CFLAGS"
 
8448
        else
 
8449
          echo "cannot find nm_test_func in $nlist" >&5
 
8450
        fi
 
8451
      else
 
8452
        echo "cannot find nm_test_var in $nlist" >&5
 
8453
      fi
 
8454
    else
 
8455
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8456
    fi
 
8457
  else
 
8458
    echo "$progname: failed program was:" >&5
 
8459
    cat conftest.$ac_ext >&5
 
8460
  fi
 
8461
  rm -rf conftest* conftst*
 
8462
 
 
8463
  # Do not use the global_symbol_pipe unless it works.
 
8464
  if test "$pipe_works" = yes; then
 
8465
    break
 
8466
  else
 
8467
    lt_cv_sys_global_symbol_pipe=
 
8468
  fi
 
8469
done
 
8470
 
 
8471
fi
 
8472
 
 
8473
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8474
  lt_cv_sys_global_symbol_to_cdecl=
 
8475
fi
 
8476
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8477
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
8478
$as_echo "failed" >&6; }
 
8479
else
 
8480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
8481
$as_echo "ok" >&6; }
 
8482
fi
 
8483
 
 
8484
 
 
8485
 
 
8486
 
 
8487
 
 
8488
 
 
8489
 
 
8490
 
 
8491
 
 
8492
 
 
8493
 
 
8494
 
 
8495
 
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
 
8501
 
 
8502
 
 
8503
 
 
8504
 
 
8505
# Check whether --enable-libtool-lock was given.
 
8506
if test "${enable_libtool_lock+set}" = set; then :
 
8507
  enableval=$enable_libtool_lock;
 
8508
fi
 
8509
 
 
8510
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8511
 
 
8512
# Some flags need to be propagated to the compiler or linker for good
 
8513
# libtool support.
 
8514
case $host in
 
8515
ia64-*-hpux*)
 
8516
  # Find out which ABI we are using.
 
8517
  echo 'int i;' > conftest.$ac_ext
 
8518
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8519
  (eval $ac_compile) 2>&5
 
8520
  ac_status=$?
 
8521
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8522
  test $ac_status = 0; }; then
 
8523
    case `/usr/bin/file conftest.$ac_objext` in
 
8524
      *ELF-32*)
 
8525
        HPUX_IA64_MODE="32"
 
8526
        ;;
 
8527
      *ELF-64*)
 
8528
        HPUX_IA64_MODE="64"
 
8529
        ;;
 
8530
    esac
 
8531
  fi
 
8532
  rm -rf conftest*
 
8533
  ;;
 
8534
*-*-irix6*)
 
8535
  # Find out which ABI we are using.
 
8536
  echo '#line 8536 "configure"' > conftest.$ac_ext
 
8537
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8538
  (eval $ac_compile) 2>&5
 
8539
  ac_status=$?
 
8540
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8541
  test $ac_status = 0; }; then
 
8542
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
8543
      case `/usr/bin/file conftest.$ac_objext` in
 
8544
        *32-bit*)
 
8545
          LD="${LD-ld} -melf32bsmip"
 
8546
          ;;
 
8547
        *N32*)
 
8548
          LD="${LD-ld} -melf32bmipn32"
 
8549
          ;;
 
8550
        *64-bit*)
 
8551
          LD="${LD-ld} -melf64bmip"
 
8552
        ;;
 
8553
      esac
 
8554
    else
 
8555
      case `/usr/bin/file conftest.$ac_objext` in
 
8556
        *32-bit*)
 
8557
          LD="${LD-ld} -32"
 
8558
          ;;
 
8559
        *N32*)
 
8560
          LD="${LD-ld} -n32"
 
8561
          ;;
 
8562
        *64-bit*)
 
8563
          LD="${LD-ld} -64"
 
8564
          ;;
 
8565
      esac
 
8566
    fi
 
8567
  fi
 
8568
  rm -rf conftest*
 
8569
  ;;
 
8570
 
 
8571
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
8572
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
8573
  # Find out which ABI we are using.
 
8574
  echo 'int i;' > conftest.$ac_ext
 
8575
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8576
  (eval $ac_compile) 2>&5
 
8577
  ac_status=$?
 
8578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8579
  test $ac_status = 0; }; then
 
8580
    case `/usr/bin/file conftest.o` in
 
8581
      *32-bit*)
 
8582
        case $host in
 
8583
          x86_64-*kfreebsd*-gnu)
 
8584
            LD="${LD-ld} -m elf_i386_fbsd"
 
8585
            ;;
 
8586
          x86_64-*linux*)
 
8587
            LD="${LD-ld} -m elf_i386"
 
8588
            ;;
 
8589
          ppc64-*linux*|powerpc64-*linux*)
 
8590
            LD="${LD-ld} -m elf32ppclinux"
 
8591
            ;;
 
8592
          s390x-*linux*)
 
8593
            LD="${LD-ld} -m elf_s390"
 
8594
            ;;
 
8595
          sparc64-*linux*)
 
8596
            LD="${LD-ld} -m elf32_sparc"
 
8597
            ;;
 
8598
        esac
 
8599
        ;;
 
8600
      *64-bit*)
 
8601
        case $host in
 
8602
          x86_64-*kfreebsd*-gnu)
 
8603
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
8604
            ;;
 
8605
          x86_64-*linux*)
 
8606
            LD="${LD-ld} -m elf_x86_64"
 
8607
            ;;
 
8608
          ppc*-*linux*|powerpc*-*linux*)
 
8609
            LD="${LD-ld} -m elf64ppc"
 
8610
            ;;
 
8611
          s390*-*linux*|s390*-*tpf*)
 
8612
            LD="${LD-ld} -m elf64_s390"
 
8613
            ;;
 
8614
          sparc*-*linux*)
 
8615
            LD="${LD-ld} -m elf64_sparc"
 
8616
            ;;
 
8617
        esac
 
8618
        ;;
 
8619
    esac
 
8620
  fi
 
8621
  rm -rf conftest*
 
8622
  ;;
 
8623
 
 
8624
*-*-sco3.2v5*)
 
8625
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
8626
  SAVE_CFLAGS="$CFLAGS"
 
8627
  CFLAGS="$CFLAGS -belf"
 
8628
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
8629
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
8630
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
8631
  $as_echo_n "(cached) " >&6
 
8632
else
 
8633
  ac_ext=c
 
8634
ac_cpp='$CPP $CPPFLAGS'
 
8635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8638
 
 
8639
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8640
/* end confdefs.h.  */
 
8641
 
 
8642
int
 
8643
main ()
 
8644
{
 
8645
 
 
8646
  ;
 
8647
  return 0;
 
8648
}
 
8649
_ACEOF
 
8650
if ac_fn_c_try_link "$LINENO"; then :
 
8651
  lt_cv_cc_needs_belf=yes
 
8652
else
 
8653
  lt_cv_cc_needs_belf=no
 
8654
fi
 
8655
rm -f core conftest.err conftest.$ac_objext \
 
8656
    conftest$ac_exeext conftest.$ac_ext
 
8657
     ac_ext=c
 
8658
ac_cpp='$CPP $CPPFLAGS'
 
8659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8662
 
 
8663
fi
 
8664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
8665
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
8666
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
8667
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
8668
    CFLAGS="$SAVE_CFLAGS"
 
8669
  fi
 
8670
  ;;
 
8671
sparc*-*solaris*)
 
8672
  # Find out which ABI we are using.
 
8673
  echo 'int i;' > conftest.$ac_ext
 
8674
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8675
  (eval $ac_compile) 2>&5
 
8676
  ac_status=$?
 
8677
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8678
  test $ac_status = 0; }; then
 
8679
    case `/usr/bin/file conftest.o` in
 
8680
    *64-bit*)
 
8681
      case $lt_cv_prog_gnu_ld in
 
8682
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
8683
      *)
 
8684
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
8685
          LD="${LD-ld} -64"
 
8686
        fi
 
8687
        ;;
 
8688
      esac
 
8689
      ;;
 
8690
    esac
 
8691
  fi
 
8692
  rm -rf conftest*
 
8693
  ;;
 
8694
esac
 
8695
 
 
8696
need_locks="$enable_libtool_lock"
 
8697
 
 
8698
 
 
8699
  case $host_os in
 
8700
    rhapsody* | darwin*)
 
8701
    if test -n "$ac_tool_prefix"; then
 
8702
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
8703
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
8704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8705
$as_echo_n "checking for $ac_word... " >&6; }
 
8706
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
8707
  $as_echo_n "(cached) " >&6
 
8708
else
 
8709
  if test -n "$DSYMUTIL"; then
 
8710
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
8711
else
 
8712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8713
for as_dir in $PATH
 
8714
do
 
8715
  IFS=$as_save_IFS
 
8716
  test -z "$as_dir" && as_dir=.
 
8717
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8719
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
8720
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8721
    break 2
 
8722
  fi
 
8723
done
 
8724
  done
 
8725
IFS=$as_save_IFS
 
8726
 
 
8727
fi
 
8728
fi
 
8729
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
8730
if test -n "$DSYMUTIL"; then
 
8731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
8732
$as_echo "$DSYMUTIL" >&6; }
 
8733
else
 
8734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8735
$as_echo "no" >&6; }
 
8736
fi
 
8737
 
 
8738
 
 
8739
fi
 
8740
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
8741
  ac_ct_DSYMUTIL=$DSYMUTIL
 
8742
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
8743
set dummy dsymutil; ac_word=$2
 
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8745
$as_echo_n "checking for $ac_word... " >&6; }
 
8746
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
8747
  $as_echo_n "(cached) " >&6
 
8748
else
 
8749
  if test -n "$ac_ct_DSYMUTIL"; then
 
8750
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
8751
else
 
8752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8753
for as_dir in $PATH
 
8754
do
 
8755
  IFS=$as_save_IFS
 
8756
  test -z "$as_dir" && as_dir=.
 
8757
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8758
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8759
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
8760
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8761
    break 2
 
8762
  fi
 
8763
done
 
8764
  done
 
8765
IFS=$as_save_IFS
 
8766
 
 
8767
fi
 
8768
fi
 
8769
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
8770
if test -n "$ac_ct_DSYMUTIL"; then
 
8771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
8772
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
8773
else
 
8774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8775
$as_echo "no" >&6; }
 
8776
fi
 
8777
 
 
8778
  if test "x$ac_ct_DSYMUTIL" = x; then
 
8779
    DSYMUTIL=":"
 
8780
  else
 
8781
    case $cross_compiling:$ac_tool_warned in
 
8782
yes:)
 
8783
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8784
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8785
ac_tool_warned=yes ;;
 
8786
esac
 
8787
    DSYMUTIL=$ac_ct_DSYMUTIL
 
8788
  fi
 
8789
else
 
8790
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
8791
fi
 
8792
 
 
8793
    if test -n "$ac_tool_prefix"; then
 
8794
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
8795
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
8796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8797
$as_echo_n "checking for $ac_word... " >&6; }
 
8798
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
8799
  $as_echo_n "(cached) " >&6
 
8800
else
 
8801
  if test -n "$NMEDIT"; then
 
8802
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
8803
else
 
8804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8805
for as_dir in $PATH
 
8806
do
 
8807
  IFS=$as_save_IFS
 
8808
  test -z "$as_dir" && as_dir=.
 
8809
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8810
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8811
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
8812
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8813
    break 2
 
8814
  fi
 
8815
done
 
8816
  done
 
8817
IFS=$as_save_IFS
 
8818
 
 
8819
fi
 
8820
fi
 
8821
NMEDIT=$ac_cv_prog_NMEDIT
 
8822
if test -n "$NMEDIT"; then
 
8823
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
8824
$as_echo "$NMEDIT" >&6; }
 
8825
else
 
8826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8827
$as_echo "no" >&6; }
 
8828
fi
 
8829
 
 
8830
 
 
8831
fi
 
8832
if test -z "$ac_cv_prog_NMEDIT"; then
 
8833
  ac_ct_NMEDIT=$NMEDIT
 
8834
  # Extract the first word of "nmedit", so it can be a program name with args.
 
8835
set dummy nmedit; ac_word=$2
 
8836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8837
$as_echo_n "checking for $ac_word... " >&6; }
 
8838
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
8839
  $as_echo_n "(cached) " >&6
 
8840
else
 
8841
  if test -n "$ac_ct_NMEDIT"; then
 
8842
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
8843
else
 
8844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8845
for as_dir in $PATH
 
8846
do
 
8847
  IFS=$as_save_IFS
 
8848
  test -z "$as_dir" && as_dir=.
 
8849
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8850
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8851
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
8852
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8853
    break 2
 
8854
  fi
 
8855
done
 
8856
  done
 
8857
IFS=$as_save_IFS
 
8858
 
 
8859
fi
 
8860
fi
 
8861
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
8862
if test -n "$ac_ct_NMEDIT"; then
 
8863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
8864
$as_echo "$ac_ct_NMEDIT" >&6; }
 
8865
else
 
8866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8867
$as_echo "no" >&6; }
 
8868
fi
 
8869
 
 
8870
  if test "x$ac_ct_NMEDIT" = x; then
 
8871
    NMEDIT=":"
 
8872
  else
 
8873
    case $cross_compiling:$ac_tool_warned in
 
8874
yes:)
 
8875
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8876
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8877
ac_tool_warned=yes ;;
 
8878
esac
 
8879
    NMEDIT=$ac_ct_NMEDIT
 
8880
  fi
 
8881
else
 
8882
  NMEDIT="$ac_cv_prog_NMEDIT"
 
8883
fi
 
8884
 
 
8885
    if test -n "$ac_tool_prefix"; then
 
8886
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
8887
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
8888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8889
$as_echo_n "checking for $ac_word... " >&6; }
 
8890
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
8891
  $as_echo_n "(cached) " >&6
 
8892
else
 
8893
  if test -n "$LIPO"; then
 
8894
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
8895
else
 
8896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8897
for as_dir in $PATH
 
8898
do
 
8899
  IFS=$as_save_IFS
 
8900
  test -z "$as_dir" && as_dir=.
 
8901
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8902
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8903
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
8904
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8905
    break 2
 
8906
  fi
 
8907
done
 
8908
  done
 
8909
IFS=$as_save_IFS
 
8910
 
 
8911
fi
 
8912
fi
 
8913
LIPO=$ac_cv_prog_LIPO
 
8914
if test -n "$LIPO"; then
 
8915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
8916
$as_echo "$LIPO" >&6; }
 
8917
else
 
8918
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8919
$as_echo "no" >&6; }
 
8920
fi
 
8921
 
 
8922
 
 
8923
fi
 
8924
if test -z "$ac_cv_prog_LIPO"; then
 
8925
  ac_ct_LIPO=$LIPO
 
8926
  # Extract the first word of "lipo", so it can be a program name with args.
 
8927
set dummy lipo; ac_word=$2
 
8928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8929
$as_echo_n "checking for $ac_word... " >&6; }
 
8930
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
8931
  $as_echo_n "(cached) " >&6
 
8932
else
 
8933
  if test -n "$ac_ct_LIPO"; then
 
8934
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
8935
else
 
8936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8937
for as_dir in $PATH
 
8938
do
 
8939
  IFS=$as_save_IFS
 
8940
  test -z "$as_dir" && as_dir=.
 
8941
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8943
    ac_cv_prog_ac_ct_LIPO="lipo"
 
8944
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8945
    break 2
 
8946
  fi
 
8947
done
 
8948
  done
 
8949
IFS=$as_save_IFS
 
8950
 
 
8951
fi
 
8952
fi
 
8953
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
8954
if test -n "$ac_ct_LIPO"; then
 
8955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8956
$as_echo "$ac_ct_LIPO" >&6; }
 
8957
else
 
8958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8959
$as_echo "no" >&6; }
 
8960
fi
 
8961
 
 
8962
  if test "x$ac_ct_LIPO" = x; then
 
8963
    LIPO=":"
 
8964
  else
 
8965
    case $cross_compiling:$ac_tool_warned in
 
8966
yes:)
 
8967
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8968
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8969
ac_tool_warned=yes ;;
 
8970
esac
 
8971
    LIPO=$ac_ct_LIPO
 
8972
  fi
 
8973
else
 
8974
  LIPO="$ac_cv_prog_LIPO"
 
8975
fi
 
8976
 
 
8977
    if test -n "$ac_tool_prefix"; then
 
8978
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8979
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8981
$as_echo_n "checking for $ac_word... " >&6; }
 
8982
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
8983
  $as_echo_n "(cached) " >&6
 
8984
else
 
8985
  if test -n "$OTOOL"; then
 
8986
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8987
else
 
8988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8989
for as_dir in $PATH
 
8990
do
 
8991
  IFS=$as_save_IFS
 
8992
  test -z "$as_dir" && as_dir=.
 
8993
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8995
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8996
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8997
    break 2
 
8998
  fi
 
8999
done
 
9000
  done
 
9001
IFS=$as_save_IFS
 
9002
 
 
9003
fi
 
9004
fi
 
9005
OTOOL=$ac_cv_prog_OTOOL
 
9006
if test -n "$OTOOL"; then
 
9007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
9008
$as_echo "$OTOOL" >&6; }
 
9009
else
 
9010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9011
$as_echo "no" >&6; }
 
9012
fi
 
9013
 
 
9014
 
 
9015
fi
 
9016
if test -z "$ac_cv_prog_OTOOL"; then
 
9017
  ac_ct_OTOOL=$OTOOL
 
9018
  # Extract the first word of "otool", so it can be a program name with args.
 
9019
set dummy otool; ac_word=$2
 
9020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9021
$as_echo_n "checking for $ac_word... " >&6; }
 
9022
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
9023
  $as_echo_n "(cached) " >&6
 
9024
else
 
9025
  if test -n "$ac_ct_OTOOL"; then
 
9026
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
9027
else
 
9028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9029
for as_dir in $PATH
 
9030
do
 
9031
  IFS=$as_save_IFS
 
9032
  test -z "$as_dir" && as_dir=.
 
9033
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9034
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9035
    ac_cv_prog_ac_ct_OTOOL="otool"
 
9036
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9037
    break 2
 
9038
  fi
 
9039
done
 
9040
  done
 
9041
IFS=$as_save_IFS
 
9042
 
 
9043
fi
 
9044
fi
 
9045
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
9046
if test -n "$ac_ct_OTOOL"; then
 
9047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
9048
$as_echo "$ac_ct_OTOOL" >&6; }
 
9049
else
 
9050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9051
$as_echo "no" >&6; }
 
9052
fi
 
9053
 
 
9054
  if test "x$ac_ct_OTOOL" = x; then
 
9055
    OTOOL=":"
 
9056
  else
 
9057
    case $cross_compiling:$ac_tool_warned in
 
9058
yes:)
 
9059
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
9060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
9061
ac_tool_warned=yes ;;
 
9062
esac
 
9063
    OTOOL=$ac_ct_OTOOL
 
9064
  fi
 
9065
else
 
9066
  OTOOL="$ac_cv_prog_OTOOL"
 
9067
fi
 
9068
 
 
9069
    if test -n "$ac_tool_prefix"; then
 
9070
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
9071
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
9072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9073
$as_echo_n "checking for $ac_word... " >&6; }
 
9074
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
9075
  $as_echo_n "(cached) " >&6
 
9076
else
 
9077
  if test -n "$OTOOL64"; then
 
9078
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
9079
else
 
9080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9081
for as_dir in $PATH
 
9082
do
 
9083
  IFS=$as_save_IFS
 
9084
  test -z "$as_dir" && as_dir=.
 
9085
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9087
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
9088
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9089
    break 2
 
9090
  fi
 
9091
done
 
9092
  done
 
9093
IFS=$as_save_IFS
 
9094
 
 
9095
fi
 
9096
fi
 
9097
OTOOL64=$ac_cv_prog_OTOOL64
 
9098
if test -n "$OTOOL64"; then
 
9099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
9100
$as_echo "$OTOOL64" >&6; }
 
9101
else
 
9102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9103
$as_echo "no" >&6; }
 
9104
fi
 
9105
 
 
9106
 
 
9107
fi
 
9108
if test -z "$ac_cv_prog_OTOOL64"; then
 
9109
  ac_ct_OTOOL64=$OTOOL64
 
9110
  # Extract the first word of "otool64", so it can be a program name with args.
 
9111
set dummy otool64; ac_word=$2
 
9112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9113
$as_echo_n "checking for $ac_word... " >&6; }
 
9114
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
9115
  $as_echo_n "(cached) " >&6
 
9116
else
 
9117
  if test -n "$ac_ct_OTOOL64"; then
 
9118
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
9119
else
 
9120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9121
for as_dir in $PATH
 
9122
do
 
9123
  IFS=$as_save_IFS
 
9124
  test -z "$as_dir" && as_dir=.
 
9125
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9126
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9127
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
9128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9129
    break 2
 
9130
  fi
 
9131
done
 
9132
  done
 
9133
IFS=$as_save_IFS
 
9134
 
 
9135
fi
 
9136
fi
 
9137
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
9138
if test -n "$ac_ct_OTOOL64"; then
 
9139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
9140
$as_echo "$ac_ct_OTOOL64" >&6; }
 
9141
else
 
9142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9143
$as_echo "no" >&6; }
 
9144
fi
 
9145
 
 
9146
  if test "x$ac_ct_OTOOL64" = x; then
 
9147
    OTOOL64=":"
 
9148
  else
 
9149
    case $cross_compiling:$ac_tool_warned in
 
9150
yes:)
 
9151
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
9152
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
9153
ac_tool_warned=yes ;;
 
9154
esac
 
9155
    OTOOL64=$ac_ct_OTOOL64
 
9156
  fi
 
9157
else
 
9158
  OTOOL64="$ac_cv_prog_OTOOL64"
 
9159
fi
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
 
9172
 
 
9173
 
 
9174
 
 
9175
 
 
9176
 
 
9177
 
 
9178
 
 
9179
 
 
9180
 
 
9181
 
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
9188
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
9189
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
9190
  $as_echo_n "(cached) " >&6
 
9191
else
 
9192
  lt_cv_apple_cc_single_mod=no
 
9193
      if test -z "${LT_MULTI_MODULE}"; then
 
9194
        # By default we will add the -single_module flag. You can override
 
9195
        # by either setting the environment variable LT_MULTI_MODULE
 
9196
        # non-empty at configure time, or by adding -multi_module to the
 
9197
        # link flags.
 
9198
        rm -rf libconftest.dylib*
 
9199
        echo "int foo(void){return 1;}" > conftest.c
 
9200
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
9201
-dynamiclib -Wl,-single_module conftest.c" >&5
 
9202
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
9203
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
9204
        _lt_result=$?
 
9205
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
9206
          lt_cv_apple_cc_single_mod=yes
 
9207
        else
 
9208
          cat conftest.err >&5
 
9209
        fi
 
9210
        rm -rf libconftest.dylib*
 
9211
        rm -f conftest.*
 
9212
      fi
 
9213
fi
 
9214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
9215
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
9216
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
9217
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
9218
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
9219
  $as_echo_n "(cached) " >&6
 
9220
else
 
9221
  lt_cv_ld_exported_symbols_list=no
 
9222
      save_LDFLAGS=$LDFLAGS
 
9223
      echo "_main" > conftest.sym
 
9224
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
9225
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9226
/* end confdefs.h.  */
 
9227
 
 
9228
int
 
9229
main ()
 
9230
{
 
9231
 
 
9232
  ;
 
9233
  return 0;
 
9234
}
 
9235
_ACEOF
 
9236
if ac_fn_c_try_link "$LINENO"; then :
 
9237
  lt_cv_ld_exported_symbols_list=yes
 
9238
else
 
9239
  lt_cv_ld_exported_symbols_list=no
 
9240
fi
 
9241
rm -f core conftest.err conftest.$ac_objext \
 
9242
    conftest$ac_exeext conftest.$ac_ext
 
9243
        LDFLAGS="$save_LDFLAGS"
 
9244
 
 
9245
fi
 
9246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
9247
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
9248
    case $host_os in
 
9249
    rhapsody* | darwin1.[012])
 
9250
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
9251
    darwin1.*)
 
9252
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
9253
    darwin*) # darwin 5.x on
 
9254
      # if running on 10.5 or later, the deployment target defaults
 
9255
      # to the OS version, if on x86, and 10.4, the deployment
 
9256
      # target defaults to 10.4. Don't you love it?
 
9257
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
9258
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
9259
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
9260
        10.[012]*)
 
9261
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
9262
        10.*)
 
9263
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
9264
      esac
 
9265
    ;;
 
9266
  esac
 
9267
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
9268
      _lt_dar_single_mod='$single_module'
 
9269
    fi
 
9270
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
9271
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
9272
    else
 
9273
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9274
    fi
 
9275
    if test "$DSYMUTIL" != ":"; then
 
9276
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
9277
    else
 
9278
      _lt_dsymutil=
 
9279
    fi
 
9280
    ;;
 
9281
  esac
 
9282
 
 
9283
for ac_header in dlfcn.h
 
9284
do :
 
9285
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
9286
"
 
9287
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
9288
  cat >>confdefs.h <<_ACEOF
 
9289
#define HAVE_DLFCN_H 1
 
9290
_ACEOF
 
9291
 
 
9292
fi
 
9293
 
 
9294
done
 
9295
 
 
9296
 
 
9297
 
 
9298
ac_ext=cpp
 
9299
ac_cpp='$CXXCPP $CPPFLAGS'
 
9300
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9301
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9302
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9303
if test -z "$CXX"; then
 
9304
  if test -n "$CCC"; then
 
9305
    CXX=$CCC
 
9306
  else
 
9307
    if test -n "$ac_tool_prefix"; then
 
9308
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
9309
  do
 
9310
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
9311
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
9312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9313
$as_echo_n "checking for $ac_word... " >&6; }
 
9314
if test "${ac_cv_prog_CXX+set}" = set; then :
 
9315
  $as_echo_n "(cached) " >&6
 
9316
else
 
9317
  if test -n "$CXX"; then
 
9318
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
9319
else
 
9320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9321
for as_dir in $PATH
 
9322
do
 
9323
  IFS=$as_save_IFS
 
9324
  test -z "$as_dir" && as_dir=.
 
9325
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9326
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9327
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
9328
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9329
    break 2
 
9330
  fi
 
9331
done
 
9332
  done
 
9333
IFS=$as_save_IFS
 
9334
 
 
9335
fi
 
9336
fi
 
9337
CXX=$ac_cv_prog_CXX
 
9338
if test -n "$CXX"; then
 
9339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
9340
$as_echo "$CXX" >&6; }
 
9341
else
 
9342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9343
$as_echo "no" >&6; }
 
9344
fi
 
9345
 
 
9346
 
 
9347
    test -n "$CXX" && break
 
9348
  done
 
9349
fi
 
9350
if test -z "$CXX"; then
 
9351
  ac_ct_CXX=$CXX
 
9352
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
9353
do
 
9354
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9355
set dummy $ac_prog; ac_word=$2
 
9356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9357
$as_echo_n "checking for $ac_word... " >&6; }
 
9358
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
9359
  $as_echo_n "(cached) " >&6
 
9360
else
 
9361
  if test -n "$ac_ct_CXX"; then
 
9362
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
9363
else
 
9364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9365
for as_dir in $PATH
 
9366
do
 
9367
  IFS=$as_save_IFS
 
9368
  test -z "$as_dir" && as_dir=.
 
9369
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9370
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9371
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
9372
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9373
    break 2
 
9374
  fi
 
9375
done
 
9376
  done
 
9377
IFS=$as_save_IFS
 
9378
 
 
9379
fi
 
9380
fi
 
9381
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
9382
if test -n "$ac_ct_CXX"; then
 
9383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
9384
$as_echo "$ac_ct_CXX" >&6; }
 
9385
else
 
9386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9387
$as_echo "no" >&6; }
 
9388
fi
 
9389
 
 
9390
 
 
9391
  test -n "$ac_ct_CXX" && break
 
9392
done
 
9393
 
 
9394
  if test "x$ac_ct_CXX" = x; then
 
9395
    CXX="g++"
 
9396
  else
 
9397
    case $cross_compiling:$ac_tool_warned in
 
9398
yes:)
 
9399
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
9400
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
9401
ac_tool_warned=yes ;;
 
9402
esac
 
9403
    CXX=$ac_ct_CXX
 
9404
  fi
 
9405
fi
 
9406
 
 
9407
  fi
 
9408
fi
 
9409
# Provide some information about the compiler.
 
9410
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
9411
set X $ac_compile
 
9412
ac_compiler=$2
 
9413
for ac_option in --version -v -V -qversion; do
 
9414
  { { ac_try="$ac_compiler $ac_option >&5"
 
9415
case "(($ac_try" in
 
9416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9417
  *) ac_try_echo=$ac_try;;
 
9418
esac
 
9419
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
9420
$as_echo "$ac_try_echo"; } >&5
 
9421
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
9422
  ac_status=$?
 
9423
  if test -s conftest.err; then
 
9424
    sed '10a\
 
9425
... rest of stderr output deleted ...
 
9426
         10q' conftest.err >conftest.er1
 
9427
    cat conftest.er1 >&5
 
9428
    rm -f conftest.er1 conftest.err
 
9429
  fi
 
9430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9431
  test $ac_status = 0; }
 
9432
done
 
9433
 
 
9434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
9435
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
9436
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
9437
  $as_echo_n "(cached) " >&6
 
9438
else
 
9439
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9440
/* end confdefs.h.  */
 
9441
 
 
9442
int
 
9443
main ()
 
9444
{
 
9445
#ifndef __GNUC__
 
9446
       choke me
 
9447
#endif
 
9448
 
 
9449
  ;
 
9450
  return 0;
 
9451
}
 
9452
_ACEOF
 
9453
if ac_fn_cxx_try_compile "$LINENO"; then :
 
9454
  ac_compiler_gnu=yes
 
9455
else
 
9456
  ac_compiler_gnu=no
 
9457
fi
 
9458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9459
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
9460
 
 
9461
fi
 
9462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
9463
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
9464
if test $ac_compiler_gnu = yes; then
 
9465
  GXX=yes
 
9466
else
 
9467
  GXX=
 
9468
fi
 
9469
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
9470
ac_save_CXXFLAGS=$CXXFLAGS
 
9471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
9472
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
9473
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
9474
  $as_echo_n "(cached) " >&6
 
9475
else
 
9476
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
9477
   ac_cxx_werror_flag=yes
 
9478
   ac_cv_prog_cxx_g=no
 
9479
   CXXFLAGS="-g"
 
9480
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9481
/* end confdefs.h.  */
 
9482
 
 
9483
int
 
9484
main ()
 
9485
{
 
9486
 
 
9487
  ;
 
9488
  return 0;
 
9489
}
 
9490
_ACEOF
 
9491
if ac_fn_cxx_try_compile "$LINENO"; then :
 
9492
  ac_cv_prog_cxx_g=yes
 
9493
else
 
9494
  CXXFLAGS=""
 
9495
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9496
/* end confdefs.h.  */
 
9497
 
 
9498
int
 
9499
main ()
 
9500
{
 
9501
 
 
9502
  ;
 
9503
  return 0;
 
9504
}
 
9505
_ACEOF
 
9506
if ac_fn_cxx_try_compile "$LINENO"; then :
 
9507
 
 
9508
else
 
9509
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
9510
         CXXFLAGS="-g"
 
9511
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9512
/* end confdefs.h.  */
 
9513
 
 
9514
int
 
9515
main ()
 
9516
{
 
9517
 
 
9518
  ;
 
9519
  return 0;
 
9520
}
 
9521
_ACEOF
 
9522
if ac_fn_cxx_try_compile "$LINENO"; then :
 
9523
  ac_cv_prog_cxx_g=yes
 
9524
fi
 
9525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9526
fi
 
9527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9528
fi
 
9529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9530
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
9531
fi
 
9532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
9533
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
9534
if test "$ac_test_CXXFLAGS" = set; then
 
9535
  CXXFLAGS=$ac_save_CXXFLAGS
 
9536
elif test $ac_cv_prog_cxx_g = yes; then
 
9537
  if test "$GXX" = yes; then
 
9538
    CXXFLAGS="-g -O2"
 
9539
  else
 
9540
    CXXFLAGS="-g"
 
9541
  fi
 
9542
else
 
9543
  if test "$GXX" = yes; then
 
9544
    CXXFLAGS="-O2"
 
9545
  else
 
9546
    CXXFLAGS=
 
9547
  fi
 
9548
fi
 
9549
ac_ext=c
 
9550
ac_cpp='$CPP $CPPFLAGS'
 
9551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9554
 
 
9555
depcc="$CXX"  am_compiler_list=
 
9556
 
 
9557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
9558
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
9559
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
9560
  $as_echo_n "(cached) " >&6
 
9561
else
 
9562
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9563
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9564
  # making bogus files that we don't know about and never remove.  For
 
9565
  # instance it was reported that on HP-UX the gcc test will end up
 
9566
  # making a dummy file named `D' -- because `-MD' means `put the output
 
9567
  # in D'.
 
9568
  mkdir conftest.dir
 
9569
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9570
  # using a relative directory.
 
9571
  cp "$am_depcomp" conftest.dir
 
9572
  cd conftest.dir
 
9573
  # We will build objects and dependencies in a subdirectory because
 
9574
  # it helps to detect inapplicable dependency modes.  For instance
 
9575
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9576
  # side effect of compilation, but ICC will put the dependencies in
 
9577
  # the current directory while Tru64 will put them in the object
 
9578
  # directory.
 
9579
  mkdir sub
 
9580
 
 
9581
  am_cv_CXX_dependencies_compiler_type=none
 
9582
  if test "$am_compiler_list" = ""; then
 
9583
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
9584
  fi
 
9585
  am__universal=false
 
9586
  case " $depcc " in #(
 
9587
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9588
     esac
 
9589
 
 
9590
  for depmode in $am_compiler_list; do
 
9591
    # Setup a source with many dependencies, because some compilers
 
9592
    # like to wrap large dependency lists on column 80 (with \), and
 
9593
    # we should not choose a depcomp mode which is confused by this.
 
9594
    #
 
9595
    # We need to recreate these files for each test, as the compiler may
 
9596
    # overwrite some of them when testing with obscure command lines.
 
9597
    # This happens at least with the AIX C compiler.
 
9598
    : > sub/conftest.c
 
9599
    for i in 1 2 3 4 5 6; do
 
9600
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9601
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
9602
      # Solaris 8's {/usr,}/bin/sh.
 
9603
      touch sub/conftst$i.h
 
9604
    done
 
9605
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9606
 
 
9607
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9608
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9609
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
9610
    # versions had trouble with output in subdirs
 
9611
    am__obj=sub/conftest.${OBJEXT-o}
 
9612
    am__minus_obj="-o $am__obj"
 
9613
    case $depmode in
 
9614
    gcc)
 
9615
      # This depmode causes a compiler race in universal mode.
 
9616
      test "$am__universal" = false || continue
 
9617
      ;;
 
9618
    nosideeffect)
 
9619
      # after this tag, mechanisms are not by side-effect, so they'll
 
9620
      # only be used when explicitly requested
 
9621
      if test "x$enable_dependency_tracking" = xyes; then
 
9622
        continue
 
9623
      else
 
9624
        break
 
9625
      fi
 
9626
      ;;
 
9627
    msvisualcpp | msvcmsys)
 
9628
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9629
      # not run yet.  These depmodes are late enough in the game, and
 
9630
      # so weak that their functioning should not be impacted.
 
9631
      am__obj=conftest.${OBJEXT-o}
 
9632
      am__minus_obj=
 
9633
      ;;
 
9634
    none) break ;;
 
9635
    esac
 
9636
    if depmode=$depmode \
 
9637
       source=sub/conftest.c object=$am__obj \
 
9638
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9639
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
9640
         >/dev/null 2>conftest.err &&
 
9641
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9642
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9643
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
9644
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9645
      # icc doesn't choke on unknown options, it will just issue warnings
 
9646
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9647
      # that says an option was ignored or not supported.
 
9648
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9649
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9650
      # The diagnosis changed in icc 8.0:
 
9651
      #   icc: Command line remark: option '-MP' not supported
 
9652
      if (grep 'ignoring option' conftest.err ||
 
9653
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9654
        am_cv_CXX_dependencies_compiler_type=$depmode
 
9655
        break
 
9656
      fi
 
9657
    fi
 
9658
  done
 
9659
 
 
9660
  cd ..
 
9661
  rm -rf conftest.dir
 
9662
else
 
9663
  am_cv_CXX_dependencies_compiler_type=none
 
9664
fi
 
9665
 
 
9666
fi
 
9667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
9668
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
9669
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
9670
 
 
9671
 if
 
9672
  test "x$enable_dependency_tracking" != xno \
 
9673
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
9674
  am__fastdepCXX_TRUE=
 
9675
  am__fastdepCXX_FALSE='#'
 
9676
else
 
9677
  am__fastdepCXX_TRUE='#'
 
9678
  am__fastdepCXX_FALSE=
 
9679
fi
 
9680
 
 
9681
 
 
9682
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9683
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9684
    (test "X$CXX" != "Xg++"))) ; then
 
9685
  ac_ext=cpp
 
9686
ac_cpp='$CXXCPP $CPPFLAGS'
 
9687
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9688
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9689
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
9691
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
9692
if test -z "$CXXCPP"; then
 
9693
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
9694
  $as_echo_n "(cached) " >&6
 
9695
else
 
9696
      # Double quotes because CXXCPP needs to be expanded
 
9697
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
9698
    do
 
9699
      ac_preproc_ok=false
 
9700
for ac_cxx_preproc_warn_flag in '' yes
 
9701
do
 
9702
  # Use a header file that comes with gcc, so configuring glibc
 
9703
  # with a fresh cross-compiler works.
 
9704
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9705
  # <limits.h> exists even on freestanding compilers.
 
9706
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
9707
  # not just through cpp. "Syntax error" is here to catch this case.
 
9708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9709
/* end confdefs.h.  */
 
9710
#ifdef __STDC__
 
9711
# include <limits.h>
 
9712
#else
 
9713
# include <assert.h>
 
9714
#endif
 
9715
                     Syntax error
 
9716
_ACEOF
 
9717
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
9718
 
 
9719
else
 
9720
  # Broken: fails on valid input.
 
9721
continue
 
9722
fi
 
9723
rm -f conftest.err conftest.$ac_ext
 
9724
 
 
9725
  # OK, works on sane cases.  Now check whether nonexistent headers
 
9726
  # can be detected and how.
 
9727
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9728
/* end confdefs.h.  */
 
9729
#include <ac_nonexistent.h>
 
9730
_ACEOF
 
9731
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
9732
  # Broken: success on invalid input.
 
9733
continue
 
9734
else
 
9735
  # Passes both tests.
 
9736
ac_preproc_ok=:
 
9737
break
 
9738
fi
 
9739
rm -f conftest.err conftest.$ac_ext
 
9740
 
 
9741
done
 
9742
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
9743
rm -f conftest.err conftest.$ac_ext
 
9744
if $ac_preproc_ok; then :
 
9745
  break
 
9746
fi
 
9747
 
 
9748
    done
 
9749
    ac_cv_prog_CXXCPP=$CXXCPP
 
9750
 
 
9751
fi
 
9752
  CXXCPP=$ac_cv_prog_CXXCPP
 
9753
else
 
9754
  ac_cv_prog_CXXCPP=$CXXCPP
 
9755
fi
 
9756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
9757
$as_echo "$CXXCPP" >&6; }
 
9758
ac_preproc_ok=false
 
9759
for ac_cxx_preproc_warn_flag in '' yes
 
9760
do
 
9761
  # Use a header file that comes with gcc, so configuring glibc
 
9762
  # with a fresh cross-compiler works.
 
9763
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9764
  # <limits.h> exists even on freestanding compilers.
 
9765
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
9766
  # not just through cpp. "Syntax error" is here to catch this case.
 
9767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9768
/* end confdefs.h.  */
 
9769
#ifdef __STDC__
 
9770
# include <limits.h>
 
9771
#else
 
9772
# include <assert.h>
 
9773
#endif
 
9774
                     Syntax error
 
9775
_ACEOF
 
9776
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
9777
 
 
9778
else
 
9779
  # Broken: fails on valid input.
 
9780
continue
 
9781
fi
 
9782
rm -f conftest.err conftest.$ac_ext
 
9783
 
 
9784
  # OK, works on sane cases.  Now check whether nonexistent headers
 
9785
  # can be detected and how.
 
9786
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9787
/* end confdefs.h.  */
 
9788
#include <ac_nonexistent.h>
 
9789
_ACEOF
 
9790
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
9791
  # Broken: success on invalid input.
 
9792
continue
 
9793
else
 
9794
  # Passes both tests.
 
9795
ac_preproc_ok=:
 
9796
break
 
9797
fi
 
9798
rm -f conftest.err conftest.$ac_ext
 
9799
 
 
9800
done
 
9801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
9802
rm -f conftest.err conftest.$ac_ext
 
9803
if $ac_preproc_ok; then :
 
9804
 
 
9805
else
 
9806
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
9807
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9808
_lt_caught_CXX_error=yes; }
 
9809
fi
 
9810
 
 
9811
ac_ext=c
 
9812
ac_cpp='$CPP $CPPFLAGS'
 
9813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9816
 
 
9817
else
 
9818
  _lt_caught_CXX_error=yes
 
9819
fi
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
# Set options
 
9825
 
 
9826
 
 
9827
 
 
9828
        enable_dlopen=no
 
9829
 
 
9830
 
 
9831
  enable_win32_dll=no
 
9832
 
 
9833
 
 
9834
 
 
9835
  # Check whether --enable-static was given.
 
9836
if test "${enable_static+set}" = set; then :
 
9837
  enableval=$enable_static; p=${PACKAGE-default}
 
9838
    case $enableval in
 
9839
    yes) enable_static=yes ;;
 
9840
    no) enable_static=no ;;
 
9841
    *)
 
9842
     enable_static=no
 
9843
      # Look at the argument we got.  We use all the common list separators.
 
9844
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9845
      for pkg in $enableval; do
 
9846
        IFS="$lt_save_ifs"
 
9847
        if test "X$pkg" = "X$p"; then
 
9848
          enable_static=yes
 
9849
        fi
 
9850
      done
 
9851
      IFS="$lt_save_ifs"
 
9852
      ;;
 
9853
    esac
 
9854
else
 
9855
  enable_static=yes
 
9856
fi
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
# Check whether --with-pic was given.
 
9868
if test "${with_pic+set}" = set; then :
 
9869
  withval=$with_pic; pic_mode="$withval"
 
9870
else
 
9871
  pic_mode=default
 
9872
fi
 
9873
 
 
9874
 
 
9875
test -z "$pic_mode" && pic_mode=default
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
  # Check whether --enable-fast-install was given.
 
9884
if test "${enable_fast_install+set}" = set; then :
 
9885
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
9886
    case $enableval in
 
9887
    yes) enable_fast_install=yes ;;
 
9888
    no) enable_fast_install=no ;;
 
9889
    *)
 
9890
      enable_fast_install=no
 
9891
      # Look at the argument we got.  We use all the common list separators.
 
9892
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9893
      for pkg in $enableval; do
 
9894
        IFS="$lt_save_ifs"
 
9895
        if test "X$pkg" = "X$p"; then
 
9896
          enable_fast_install=yes
 
9897
        fi
 
9898
      done
 
9899
      IFS="$lt_save_ifs"
 
9900
      ;;
 
9901
    esac
 
9902
else
 
9903
  enable_fast_install=yes
 
9904
fi
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
# This can be used to rebuild libtool when needed
 
9917
LIBTOOL_DEPS="$ltmain"
 
9918
 
 
9919
# Always use our own libtool.
 
9920
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
test -z "$LN_S" && LN_S="ln -s"
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
if test -n "${ZSH_VERSION+set}" ; then
 
9962
   setopt NO_GLOB_SUBST
 
9963
fi
 
9964
 
 
9965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
9966
$as_echo_n "checking for objdir... " >&6; }
 
9967
if test "${lt_cv_objdir+set}" = set; then :
 
9968
  $as_echo_n "(cached) " >&6
 
9969
else
 
9970
  rm -f .libs 2>/dev/null
 
9971
mkdir .libs 2>/dev/null
 
9972
if test -d .libs; then
 
9973
  lt_cv_objdir=.libs
 
9974
else
 
9975
  # MS-DOS does not allow filenames that begin with a dot.
 
9976
  lt_cv_objdir=_libs
 
9977
fi
 
9978
rmdir .libs 2>/dev/null
 
9979
fi
 
9980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
9981
$as_echo "$lt_cv_objdir" >&6; }
 
9982
objdir=$lt_cv_objdir
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
cat >>confdefs.h <<_ACEOF
 
9989
#define LT_OBJDIR "$lt_cv_objdir/"
 
9990
_ACEOF
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
case $host_os in
 
10009
aix3*)
 
10010
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
10011
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
10012
  # vanish in a puff of smoke.
 
10013
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
10014
    COLLECT_NAMES=
 
10015
    export COLLECT_NAMES
 
10016
  fi
 
10017
  ;;
 
10018
esac
 
10019
 
 
10020
# Sed substitution that helps us do robust quoting.  It backslashifies
 
10021
# metacharacters that are still active within double-quoted strings.
 
10022
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
10023
 
 
10024
# Same as above, but do not quote variable references.
 
10025
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
10026
 
 
10027
# Sed substitution to delay expansion of an escaped shell variable in a
 
10028
# double_quote_subst'ed string.
 
10029
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
10030
 
 
10031
# Sed substitution to delay expansion of an escaped single quote.
 
10032
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
10033
 
 
10034
# Sed substitution to avoid accidental globbing in evaled expressions
 
10035
no_glob_subst='s/\*/\\\*/g'
 
10036
 
 
10037
# Global variables:
 
10038
ofile=libtool
 
10039
can_build_shared=yes
 
10040
 
 
10041
# All known linkers require a `.a' archive for static linking (except MSVC,
 
10042
# which needs '.lib').
 
10043
libext=a
 
10044
 
 
10045
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
10046
 
 
10047
old_CC="$CC"
 
10048
old_CFLAGS="$CFLAGS"
 
10049
 
 
10050
# Set sane defaults for various variables
 
10051
test -z "$CC" && CC=cc
 
10052
test -z "$LTCC" && LTCC=$CC
 
10053
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
10054
test -z "$LD" && LD=ld
 
10055
test -z "$ac_objext" && ac_objext=o
 
10056
 
 
10057
for cc_temp in $compiler""; do
 
10058
  case $cc_temp in
 
10059
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10060
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10061
    \-*) ;;
 
10062
    *) break;;
 
10063
  esac
 
10064
done
 
10065
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10066
 
 
10067
 
 
10068
# Only perform the check for file, if the check method requires it
 
10069
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
10070
case $deplibs_check_method in
 
10071
file_magic*)
 
10072
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
10073
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
10074
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
10075
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
10076
  $as_echo_n "(cached) " >&6
 
10077
else
 
10078
  case $MAGIC_CMD in
 
10079
[\\/*] |  ?:[\\/]*)
 
10080
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
10081
  ;;
 
10082
*)
 
10083
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
10084
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10085
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
10086
  for ac_dir in $ac_dummy; do
 
10087
    IFS="$lt_save_ifs"
 
10088
    test -z "$ac_dir" && ac_dir=.
 
10089
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
10090
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
10091
      if test -n "$file_magic_test_file"; then
 
10092
        case $deplibs_check_method in
 
10093
        "file_magic "*)
 
10094
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
10095
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10096
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
10097
            $EGREP "$file_magic_regex" > /dev/null; then
 
10098
            :
 
10099
          else
 
10100
            cat <<_LT_EOF 1>&2
 
10101
 
 
10102
*** Warning: the command libtool uses to detect shared libraries,
 
10103
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
10104
*** The result is that libtool may fail to recognize shared libraries
 
10105
*** as such.  This will affect the creation of libtool libraries that
 
10106
*** depend on shared libraries, but programs linked with such libtool
 
10107
*** libraries will work regardless of this problem.  Nevertheless, you
 
10108
*** may want to report the problem to your system manager and/or to
 
10109
*** bug-libtool@gnu.org
 
10110
 
 
10111
_LT_EOF
 
10112
          fi ;;
 
10113
        esac
 
10114
      fi
 
10115
      break
 
10116
    fi
 
10117
  done
 
10118
  IFS="$lt_save_ifs"
 
10119
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
10120
  ;;
 
10121
esac
 
10122
fi
 
10123
 
 
10124
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10125
if test -n "$MAGIC_CMD"; then
 
10126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
10127
$as_echo "$MAGIC_CMD" >&6; }
 
10128
else
 
10129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10130
$as_echo "no" >&6; }
 
10131
fi
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
10138
  if test -n "$ac_tool_prefix"; then
 
10139
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
10140
$as_echo_n "checking for file... " >&6; }
 
10141
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
10142
  $as_echo_n "(cached) " >&6
 
10143
else
 
10144
  case $MAGIC_CMD in
 
10145
[\\/*] |  ?:[\\/]*)
 
10146
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
10147
  ;;
 
10148
*)
 
10149
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
10150
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10151
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
10152
  for ac_dir in $ac_dummy; do
 
10153
    IFS="$lt_save_ifs"
 
10154
    test -z "$ac_dir" && ac_dir=.
 
10155
    if test -f $ac_dir/file; then
 
10156
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
10157
      if test -n "$file_magic_test_file"; then
 
10158
        case $deplibs_check_method in
 
10159
        "file_magic "*)
 
10160
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
10161
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10162
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
10163
            $EGREP "$file_magic_regex" > /dev/null; then
 
10164
            :
 
10165
          else
 
10166
            cat <<_LT_EOF 1>&2
 
10167
 
 
10168
*** Warning: the command libtool uses to detect shared libraries,
 
10169
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
10170
*** The result is that libtool may fail to recognize shared libraries
 
10171
*** as such.  This will affect the creation of libtool libraries that
 
10172
*** depend on shared libraries, but programs linked with such libtool
 
10173
*** libraries will work regardless of this problem.  Nevertheless, you
 
10174
*** may want to report the problem to your system manager and/or to
 
10175
*** bug-libtool@gnu.org
 
10176
 
 
10177
_LT_EOF
 
10178
          fi ;;
 
10179
        esac
 
10180
      fi
 
10181
      break
 
10182
    fi
 
10183
  done
 
10184
  IFS="$lt_save_ifs"
 
10185
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
10186
  ;;
 
10187
esac
 
10188
fi
 
10189
 
 
10190
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10191
if test -n "$MAGIC_CMD"; then
 
10192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
10193
$as_echo "$MAGIC_CMD" >&6; }
 
10194
else
 
10195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10196
$as_echo "no" >&6; }
 
10197
fi
 
10198
 
 
10199
 
 
10200
  else
 
10201
    MAGIC_CMD=:
 
10202
  fi
 
10203
fi
 
10204
 
 
10205
  fi
 
10206
  ;;
 
10207
esac
 
10208
 
 
10209
# Use C for the default configuration in the libtool script
 
10210
 
 
10211
lt_save_CC="$CC"
 
10212
ac_ext=c
 
10213
ac_cpp='$CPP $CPPFLAGS'
 
10214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10217
 
 
10218
 
 
10219
# Source file extension for C test sources.
 
10220
ac_ext=c
 
10221
 
 
10222
# Object file extension for compiled C test sources.
 
10223
objext=o
 
10224
objext=$objext
 
10225
 
 
10226
# Code to be used in simple compile tests
 
10227
lt_simple_compile_test_code="int some_variable = 0;"
 
10228
 
 
10229
# Code to be used in simple link tests
 
10230
lt_simple_link_test_code='int main(){return(0);}'
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
 
 
10236
 
 
10237
 
 
10238
# If no C compiler was specified, use CC.
 
10239
LTCC=${LTCC-"$CC"}
 
10240
 
 
10241
# If no C compiler flags were specified, use CFLAGS.
 
10242
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10243
 
 
10244
# Allow CC to be a program name with arguments.
 
10245
compiler=$CC
 
10246
 
 
10247
# Save the default compiler, since it gets overwritten when the other
 
10248
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
10249
compiler_DEFAULT=$CC
 
10250
 
 
10251
# save warnings/boilerplate of simple test code
 
10252
ac_outfile=conftest.$ac_objext
 
10253
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10254
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10255
_lt_compiler_boilerplate=`cat conftest.err`
 
10256
$RM conftest*
 
10257
 
 
10258
ac_outfile=conftest.$ac_objext
 
10259
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10260
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10261
_lt_linker_boilerplate=`cat conftest.err`
 
10262
$RM -r conftest*
 
10263
 
 
10264
 
 
10265
if test -n "$compiler"; then
 
10266
 
 
10267
lt_prog_compiler_no_builtin_flag=
 
10268
 
 
10269
if test "$GCC" = yes; then
 
10270
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
10271
 
 
10272
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
10273
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
10274
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
10275
  $as_echo_n "(cached) " >&6
 
10276
else
 
10277
  lt_cv_prog_compiler_rtti_exceptions=no
 
10278
   ac_outfile=conftest.$ac_objext
 
10279
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10280
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
10281
   # Insert the option either (1) after the last *FLAGS variable, or
 
10282
   # (2) before a word containing "conftest.", or (3) at the end.
 
10283
   # Note that $ac_compile itself does not contain backslashes and begins
 
10284
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10285
   # The option is referenced via a variable to avoid confusing sed.
 
10286
   lt_compile=`echo "$ac_compile" | $SED \
 
10287
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10289
   -e 's:$: $lt_compiler_flag:'`
 
10290
   (eval echo "\"\$as_me:10290: $lt_compile\"" >&5)
 
10291
   (eval "$lt_compile" 2>conftest.err)
 
10292
   ac_status=$?
 
10293
   cat conftest.err >&5
 
10294
   echo "$as_me:10294: \$? = $ac_status" >&5
 
10295
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10296
     # The compiler can only warn and ignore the option if not recognized
 
10297
     # So say no if there are warnings other than the usual output.
 
10298
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
10299
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10300
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
10301
       lt_cv_prog_compiler_rtti_exceptions=yes
 
10302
     fi
 
10303
   fi
 
10304
   $RM conftest*
 
10305
 
 
10306
fi
 
10307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
10308
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
10309
 
 
10310
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
10311
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
10312
else
 
10313
    :
 
10314
fi
 
10315
 
 
10316
fi
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
  lt_prog_compiler_wl=
 
10324
lt_prog_compiler_pic=
 
10325
lt_prog_compiler_static=
 
10326
 
 
10327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
10328
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
10329
 
 
10330
  if test "$GCC" = yes; then
 
10331
    lt_prog_compiler_wl='-Wl,'
 
10332
    lt_prog_compiler_static='-static'
 
10333
 
 
10334
    case $host_os in
 
10335
      aix*)
 
10336
      # All AIX code is PIC.
 
10337
      if test "$host_cpu" = ia64; then
 
10338
        # AIX 5 now supports IA64 processor
 
10339
        lt_prog_compiler_static='-Bstatic'
 
10340
      fi
 
10341
      ;;
 
10342
 
 
10343
    amigaos*)
 
10344
      case $host_cpu in
 
10345
      powerpc)
 
10346
            # see comment about AmigaOS4 .so support
 
10347
            lt_prog_compiler_pic='-fPIC'
 
10348
        ;;
 
10349
      m68k)
 
10350
            # FIXME: we need at least 68020 code to build shared libraries, but
 
10351
            # adding the `-m68020' flag to GCC prevents building anything better,
 
10352
            # like `-m68040'.
 
10353
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
10354
        ;;
 
10355
      esac
 
10356
      ;;
 
10357
 
 
10358
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10359
      # PIC is the default for these OSes.
 
10360
      ;;
 
10361
 
 
10362
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
10363
      # This hack is so that the source file can tell whether it is being
 
10364
      # built for inclusion in a dll (and should export symbols for example).
 
10365
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
10366
      # (--disable-auto-import) libraries
 
10367
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10368
      ;;
 
10369
 
 
10370
    darwin* | rhapsody*)
 
10371
      # PIC is the default on this platform
 
10372
      # Common symbols not allowed in MH_DYLIB files
 
10373
      lt_prog_compiler_pic='-fno-common'
 
10374
      ;;
 
10375
 
 
10376
    hpux*)
 
10377
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
10378
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
10379
      # sets the default TLS model and affects inlining.
 
10380
      case $host_cpu in
 
10381
      hppa*64*)
 
10382
        # +Z the default
 
10383
        ;;
 
10384
      *)
 
10385
        lt_prog_compiler_pic='-fPIC'
 
10386
        ;;
 
10387
      esac
 
10388
      ;;
 
10389
 
 
10390
    interix[3-9]*)
 
10391
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
10392
      # Instead, we relocate shared libraries at runtime.
 
10393
      ;;
 
10394
 
 
10395
    msdosdjgpp*)
 
10396
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
10397
      # on systems that don't support them.
 
10398
      lt_prog_compiler_can_build_shared=no
 
10399
      enable_shared=no
 
10400
      ;;
 
10401
 
 
10402
    *nto* | *qnx*)
 
10403
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
10404
      # it will coredump.
 
10405
      lt_prog_compiler_pic='-fPIC -shared'
 
10406
      ;;
 
10407
 
 
10408
    sysv4*MP*)
 
10409
      if test -d /usr/nec; then
 
10410
        lt_prog_compiler_pic=-Kconform_pic
 
10411
      fi
 
10412
      ;;
 
10413
 
 
10414
    *)
 
10415
      lt_prog_compiler_pic='-fPIC'
 
10416
      ;;
 
10417
    esac
 
10418
  else
 
10419
    # PORTME Check for flag to pass linker flags through the system compiler.
 
10420
    case $host_os in
 
10421
    aix*)
 
10422
      lt_prog_compiler_wl='-Wl,'
 
10423
      if test "$host_cpu" = ia64; then
 
10424
        # AIX 5 now supports IA64 processor
 
10425
        lt_prog_compiler_static='-Bstatic'
 
10426
      else
 
10427
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
10428
      fi
 
10429
      ;;
 
10430
 
 
10431
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
10432
      # This hack is so that the source file can tell whether it is being
 
10433
      # built for inclusion in a dll (and should export symbols for example).
 
10434
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10435
      ;;
 
10436
 
 
10437
    hpux9* | hpux10* | hpux11*)
 
10438
      lt_prog_compiler_wl='-Wl,'
 
10439
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10440
      # not for PA HP-UX.
 
10441
      case $host_cpu in
 
10442
      hppa*64*|ia64*)
 
10443
        # +Z the default
 
10444
        ;;
 
10445
      *)
 
10446
        lt_prog_compiler_pic='+Z'
 
10447
        ;;
 
10448
      esac
 
10449
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
10450
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
10451
      ;;
 
10452
 
 
10453
    irix5* | irix6* | nonstopux*)
 
10454
      lt_prog_compiler_wl='-Wl,'
 
10455
      # PIC (with -KPIC) is the default.
 
10456
      lt_prog_compiler_static='-non_shared'
 
10457
      ;;
 
10458
 
 
10459
    linux* | k*bsd*-gnu)
 
10460
      case $cc_basename in
 
10461
      # old Intel for x86_64 which still supported -KPIC.
 
10462
      ecc*)
 
10463
        lt_prog_compiler_wl='-Wl,'
 
10464
        lt_prog_compiler_pic='-KPIC'
 
10465
        lt_prog_compiler_static='-static'
 
10466
        ;;
 
10467
      # icc used to be incompatible with GCC.
 
10468
      # ICC 10 doesn't accept -KPIC any more.
 
10469
      icc* | ifort*)
 
10470
        lt_prog_compiler_wl='-Wl,'
 
10471
        lt_prog_compiler_pic='-fPIC'
 
10472
        lt_prog_compiler_static='-static'
 
10473
        ;;
 
10474
      # Lahey Fortran 8.1.
 
10475
      lf95*)
 
10476
        lt_prog_compiler_wl='-Wl,'
 
10477
        lt_prog_compiler_pic='--shared'
 
10478
        lt_prog_compiler_static='--static'
 
10479
        ;;
 
10480
      pgcc* | pgf77* | pgf90* | pgf95*)
 
10481
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
10482
        # which looks to be a dead project)
 
10483
        lt_prog_compiler_wl='-Wl,'
 
10484
        lt_prog_compiler_pic='-fpic'
 
10485
        lt_prog_compiler_static='-Bstatic'
 
10486
        ;;
 
10487
      ccc*)
 
10488
        lt_prog_compiler_wl='-Wl,'
 
10489
        # All Alpha code is PIC.
 
10490
        lt_prog_compiler_static='-non_shared'
 
10491
        ;;
 
10492
      xl*)
 
10493
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
10494
        lt_prog_compiler_wl='-Wl,'
 
10495
        lt_prog_compiler_pic='-qpic'
 
10496
        lt_prog_compiler_static='-qstaticlink'
 
10497
        ;;
 
10498
      *)
 
10499
        case `$CC -V 2>&1 | sed 5q` in
 
10500
        *Sun\ C*)
 
10501
          # Sun C 5.9
 
10502
          lt_prog_compiler_pic='-KPIC'
 
10503
          lt_prog_compiler_static='-Bstatic'
 
10504
          lt_prog_compiler_wl='-Wl,'
 
10505
          ;;
 
10506
        *Sun\ F*)
 
10507
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
10508
          lt_prog_compiler_pic='-KPIC'
 
10509
          lt_prog_compiler_static='-Bstatic'
 
10510
          lt_prog_compiler_wl=''
 
10511
          ;;
 
10512
        esac
 
10513
        ;;
 
10514
      esac
 
10515
      ;;
 
10516
 
 
10517
    newsos6)
 
10518
      lt_prog_compiler_pic='-KPIC'
 
10519
      lt_prog_compiler_static='-Bstatic'
 
10520
      ;;
 
10521
 
 
10522
    *nto* | *qnx*)
 
10523
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
10524
      # it will coredump.
 
10525
      lt_prog_compiler_pic='-fPIC -shared'
 
10526
      ;;
 
10527
 
 
10528
    osf3* | osf4* | osf5*)
 
10529
      lt_prog_compiler_wl='-Wl,'
 
10530
      # All OSF/1 code is PIC.
 
10531
      lt_prog_compiler_static='-non_shared'
 
10532
      ;;
 
10533
 
 
10534
    rdos*)
 
10535
      lt_prog_compiler_static='-non_shared'
 
10536
      ;;
 
10537
 
 
10538
    solaris*)
 
10539
      lt_prog_compiler_pic='-KPIC'
 
10540
      lt_prog_compiler_static='-Bstatic'
 
10541
      case $cc_basename in
 
10542
      f77* | f90* | f95*)
 
10543
        lt_prog_compiler_wl='-Qoption ld ';;
 
10544
      *)
 
10545
        lt_prog_compiler_wl='-Wl,';;
 
10546
      esac
 
10547
      ;;
 
10548
 
 
10549
    sunos4*)
 
10550
      lt_prog_compiler_wl='-Qoption ld '
 
10551
      lt_prog_compiler_pic='-PIC'
 
10552
      lt_prog_compiler_static='-Bstatic'
 
10553
      ;;
 
10554
 
 
10555
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
10556
      lt_prog_compiler_wl='-Wl,'
 
10557
      lt_prog_compiler_pic='-KPIC'
 
10558
      lt_prog_compiler_static='-Bstatic'
 
10559
      ;;
 
10560
 
 
10561
    sysv4*MP*)
 
10562
      if test -d /usr/nec ;then
 
10563
        lt_prog_compiler_pic='-Kconform_pic'
 
10564
        lt_prog_compiler_static='-Bstatic'
 
10565
      fi
 
10566
      ;;
 
10567
 
 
10568
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
10569
      lt_prog_compiler_wl='-Wl,'
 
10570
      lt_prog_compiler_pic='-KPIC'
 
10571
      lt_prog_compiler_static='-Bstatic'
 
10572
      ;;
 
10573
 
 
10574
    unicos*)
 
10575
      lt_prog_compiler_wl='-Wl,'
 
10576
      lt_prog_compiler_can_build_shared=no
 
10577
      ;;
 
10578
 
 
10579
    uts4*)
 
10580
      lt_prog_compiler_pic='-pic'
 
10581
      lt_prog_compiler_static='-Bstatic'
 
10582
      ;;
 
10583
 
 
10584
    *)
 
10585
      lt_prog_compiler_can_build_shared=no
 
10586
      ;;
 
10587
    esac
 
10588
  fi
 
10589
 
 
10590
case $host_os in
 
10591
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10592
  *djgpp*)
 
10593
    lt_prog_compiler_pic=
 
10594
    ;;
 
10595
  *)
 
10596
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
10597
    ;;
 
10598
esac
 
10599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
10600
$as_echo "$lt_prog_compiler_pic" >&6; }
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
#
 
10608
# Check to make sure the PIC flag actually works.
 
10609
#
 
10610
if test -n "$lt_prog_compiler_pic"; then
 
10611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
10612
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
10613
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
10614
  $as_echo_n "(cached) " >&6
 
10615
else
 
10616
  lt_cv_prog_compiler_pic_works=no
 
10617
   ac_outfile=conftest.$ac_objext
 
10618
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10619
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
10620
   # Insert the option either (1) after the last *FLAGS variable, or
 
10621
   # (2) before a word containing "conftest.", or (3) at the end.
 
10622
   # Note that $ac_compile itself does not contain backslashes and begins
 
10623
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10624
   # The option is referenced via a variable to avoid confusing sed.
 
10625
   lt_compile=`echo "$ac_compile" | $SED \
 
10626
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10627
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10628
   -e 's:$: $lt_compiler_flag:'`
 
10629
   (eval echo "\"\$as_me:10629: $lt_compile\"" >&5)
 
10630
   (eval "$lt_compile" 2>conftest.err)
 
10631
   ac_status=$?
 
10632
   cat conftest.err >&5
 
10633
   echo "$as_me:10633: \$? = $ac_status" >&5
 
10634
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10635
     # The compiler can only warn and ignore the option if not recognized
 
10636
     # So say no if there are warnings other than the usual output.
 
10637
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
10638
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10639
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
10640
       lt_cv_prog_compiler_pic_works=yes
 
10641
     fi
 
10642
   fi
 
10643
   $RM conftest*
 
10644
 
 
10645
fi
 
10646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
10647
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
10648
 
 
10649
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
10650
    case $lt_prog_compiler_pic in
 
10651
     "" | " "*) ;;
 
10652
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
10653
     esac
 
10654
else
 
10655
    lt_prog_compiler_pic=
 
10656
     lt_prog_compiler_can_build_shared=no
 
10657
fi
 
10658
 
 
10659
fi
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
#
 
10667
# Check to make sure the static flag actually works.
 
10668
#
 
10669
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
10670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
10671
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
10672
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
10673
  $as_echo_n "(cached) " >&6
 
10674
else
 
10675
  lt_cv_prog_compiler_static_works=no
 
10676
   save_LDFLAGS="$LDFLAGS"
 
10677
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
10678
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10679
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10680
     # The linker can only warn and ignore the option if not recognized
 
10681
     # So say no if there are warnings
 
10682
     if test -s conftest.err; then
 
10683
       # Append any errors to the config.log.
 
10684
       cat conftest.err 1>&5
 
10685
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
10686
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10687
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10688
         lt_cv_prog_compiler_static_works=yes
 
10689
       fi
 
10690
     else
 
10691
       lt_cv_prog_compiler_static_works=yes
 
10692
     fi
 
10693
   fi
 
10694
   $RM -r conftest*
 
10695
   LDFLAGS="$save_LDFLAGS"
 
10696
 
 
10697
fi
 
10698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
10699
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
10700
 
 
10701
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
10702
    :
 
10703
else
 
10704
    lt_prog_compiler_static=
 
10705
fi
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10714
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
10715
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
10716
  $as_echo_n "(cached) " >&6
 
10717
else
 
10718
  lt_cv_prog_compiler_c_o=no
 
10719
   $RM -r conftest 2>/dev/null
 
10720
   mkdir conftest
 
10721
   cd conftest
 
10722
   mkdir out
 
10723
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10724
 
 
10725
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10726
   # Insert the option either (1) after the last *FLAGS variable, or
 
10727
   # (2) before a word containing "conftest.", or (3) at the end.
 
10728
   # Note that $ac_compile itself does not contain backslashes and begins
 
10729
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10730
   lt_compile=`echo "$ac_compile" | $SED \
 
10731
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10732
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10733
   -e 's:$: $lt_compiler_flag:'`
 
10734
   (eval echo "\"\$as_me:10734: $lt_compile\"" >&5)
 
10735
   (eval "$lt_compile" 2>out/conftest.err)
 
10736
   ac_status=$?
 
10737
   cat out/conftest.err >&5
 
10738
   echo "$as_me:10738: \$? = $ac_status" >&5
 
10739
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10740
   then
 
10741
     # The compiler can only warn and ignore the option if not recognized
 
10742
     # So say no if there are warnings
 
10743
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
10744
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
10745
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
10746
       lt_cv_prog_compiler_c_o=yes
 
10747
     fi
 
10748
   fi
 
10749
   chmod u+w . 2>&5
 
10750
   $RM conftest*
 
10751
   # SGI C++ compiler will create directory out/ii_files/ for
 
10752
   # template instantiation
 
10753
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
10754
   $RM out/* && rmdir out
 
10755
   cd ..
 
10756
   $RM -r conftest
 
10757
   $RM conftest*
 
10758
 
 
10759
fi
 
10760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
10761
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
10762
 
 
10763
 
 
10764
 
 
10765
 
 
10766
 
 
10767
 
 
10768
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10769
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
10770
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
10771
  $as_echo_n "(cached) " >&6
 
10772
else
 
10773
  lt_cv_prog_compiler_c_o=no
 
10774
   $RM -r conftest 2>/dev/null
 
10775
   mkdir conftest
 
10776
   cd conftest
 
10777
   mkdir out
 
10778
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10779
 
 
10780
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10781
   # Insert the option either (1) after the last *FLAGS variable, or
 
10782
   # (2) before a word containing "conftest.", or (3) at the end.
 
10783
   # Note that $ac_compile itself does not contain backslashes and begins
 
10784
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10785
   lt_compile=`echo "$ac_compile" | $SED \
 
10786
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10787
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10788
   -e 's:$: $lt_compiler_flag:'`
 
10789
   (eval echo "\"\$as_me:10789: $lt_compile\"" >&5)
 
10790
   (eval "$lt_compile" 2>out/conftest.err)
 
10791
   ac_status=$?
 
10792
   cat out/conftest.err >&5
 
10793
   echo "$as_me:10793: \$? = $ac_status" >&5
 
10794
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10795
   then
 
10796
     # The compiler can only warn and ignore the option if not recognized
 
10797
     # So say no if there are warnings
 
10798
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
10799
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
10800
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
10801
       lt_cv_prog_compiler_c_o=yes
 
10802
     fi
 
10803
   fi
 
10804
   chmod u+w . 2>&5
 
10805
   $RM conftest*
 
10806
   # SGI C++ compiler will create directory out/ii_files/ for
 
10807
   # template instantiation
 
10808
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
10809
   $RM out/* && rmdir out
 
10810
   cd ..
 
10811
   $RM -r conftest
 
10812
   $RM conftest*
 
10813
 
 
10814
fi
 
10815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
10816
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
10817
 
 
10818
 
 
10819
 
 
10820
 
 
10821
hard_links="nottested"
 
10822
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
10823
  # do not overwrite the value of need_locks provided by the user
 
10824
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
10825
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
10826
  hard_links=yes
 
10827
  $RM conftest*
 
10828
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10829
  touch conftest.a
 
10830
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10831
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
10833
$as_echo "$hard_links" >&6; }
 
10834
  if test "$hard_links" = no; then
 
10835
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10836
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10837
    need_locks=warn
 
10838
  fi
 
10839
else
 
10840
  need_locks=no
 
10841
fi
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10849
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
10850
 
 
10851
  runpath_var=
 
10852
  allow_undefined_flag=
 
10853
  always_export_symbols=no
 
10854
  archive_cmds=
 
10855
  archive_expsym_cmds=
 
10856
  compiler_needs_object=no
 
10857
  enable_shared_with_static_runtimes=no
 
10858
  export_dynamic_flag_spec=
 
10859
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10860
  hardcode_automatic=no
 
10861
  hardcode_direct=no
 
10862
  hardcode_direct_absolute=no
 
10863
  hardcode_libdir_flag_spec=
 
10864
  hardcode_libdir_flag_spec_ld=
 
10865
  hardcode_libdir_separator=
 
10866
  hardcode_minus_L=no
 
10867
  hardcode_shlibpath_var=unsupported
 
10868
  inherit_rpath=no
 
10869
  link_all_deplibs=unknown
 
10870
  module_cmds=
 
10871
  module_expsym_cmds=
 
10872
  old_archive_from_new_cmds=
 
10873
  old_archive_from_expsyms_cmds=
 
10874
  thread_safe_flag_spec=
 
10875
  whole_archive_flag_spec=
 
10876
  # include_expsyms should be a list of space-separated symbols to be *always*
 
10877
  # included in the symbol list
 
10878
  include_expsyms=
 
10879
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
10880
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
10881
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
10882
  # as well as any symbol that contains `d'.
 
10883
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
10884
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
10885
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
10886
  # the symbol is explicitly referenced.  Since portable code cannot
 
10887
  # rely on this symbol name, it's probably fine to never include it in
 
10888
  # preloaded symbol tables.
 
10889
  # Exclude shared library initialization/finalization symbols.
 
10890
  extract_expsyms_cmds=
 
10891
 
 
10892
  case $host_os in
 
10893
  cygwin* | mingw* | pw32* | cegcc*)
 
10894
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
10895
    # When not using gcc, we currently assume that we are using
 
10896
    # Microsoft Visual C++.
 
10897
    if test "$GCC" != yes; then
 
10898
      with_gnu_ld=no
 
10899
    fi
 
10900
    ;;
 
10901
  interix*)
 
10902
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
10903
    with_gnu_ld=yes
 
10904
    ;;
 
10905
  openbsd*)
 
10906
    with_gnu_ld=no
 
10907
    ;;
 
10908
  esac
 
10909
 
 
10910
  ld_shlibs=yes
 
10911
  if test "$with_gnu_ld" = yes; then
 
10912
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10913
    wlarc='${wl}'
 
10914
 
 
10915
    # Set some defaults for GNU ld with shared library support. These
 
10916
    # are reset later if shared libraries are not supported. Putting them
 
10917
    # here allows them to be overridden if necessary.
 
10918
    runpath_var=LD_RUN_PATH
 
10919
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10920
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
10921
    # ancient GNU ld didn't support --whole-archive et. al.
 
10922
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
10923
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10924
    else
 
10925
      whole_archive_flag_spec=
 
10926
    fi
 
10927
    supports_anon_versioning=no
 
10928
    case `$LD -v 2>&1` in
 
10929
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
10930
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
10931
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
10932
      *\ 2.11.*) ;; # other 2.11 versions
 
10933
      *) supports_anon_versioning=yes ;;
 
10934
    esac
 
10935
 
 
10936
    # See if GNU ld supports shared libraries.
 
10937
    case $host_os in
 
10938
    aix[3-9]*)
 
10939
      # On AIX/PPC, the GNU linker is very broken
 
10940
      if test "$host_cpu" != ia64; then
 
10941
        ld_shlibs=no
 
10942
        cat <<_LT_EOF 1>&2
 
10943
 
 
10944
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
10945
*** to be unable to reliably create shared libraries on AIX.
 
10946
*** Therefore, libtool is disabling shared libraries support.  If you
 
10947
*** really care for shared libraries, you may want to modify your PATH
 
10948
*** so that a non-GNU linker is found, and then restart.
 
10949
 
 
10950
_LT_EOF
 
10951
      fi
 
10952
      ;;
 
10953
 
 
10954
    amigaos*)
 
10955
      case $host_cpu in
 
10956
      powerpc)
 
10957
            # see comment about AmigaOS4 .so support
 
10958
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10959
            archive_expsym_cmds=''
 
10960
        ;;
 
10961
      m68k)
 
10962
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
10963
            hardcode_libdir_flag_spec='-L$libdir'
 
10964
            hardcode_minus_L=yes
 
10965
        ;;
 
10966
      esac
 
10967
      ;;
 
10968
 
 
10969
    beos*)
 
10970
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10971
        allow_undefined_flag=unsupported
 
10972
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10973
        # support --undefined.  This deserves some investigation.  FIXME
 
10974
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10975
      else
 
10976
        ld_shlibs=no
 
10977
      fi
 
10978
      ;;
 
10979
 
 
10980
    cygwin* | mingw* | pw32* | cegcc*)
 
10981
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10982
      # as there is no search path for DLLs.
 
10983
      hardcode_libdir_flag_spec='-L$libdir'
 
10984
      allow_undefined_flag=unsupported
 
10985
      always_export_symbols=no
 
10986
      enable_shared_with_static_runtimes=yes
 
10987
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10988
 
 
10989
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10990
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10991
        # If the export-symbols file already is a .def file (1st line
 
10992
        # is EXPORTS), use it as is; otherwise, prepend...
 
10993
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10994
          cp $export_symbols $output_objdir/$soname.def;
 
10995
        else
 
10996
          echo EXPORTS > $output_objdir/$soname.def;
 
10997
          cat $export_symbols >> $output_objdir/$soname.def;
 
10998
        fi~
 
10999
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11000
      else
 
11001
        ld_shlibs=no
 
11002
      fi
 
11003
      ;;
 
11004
 
 
11005
    interix[3-9]*)
 
11006
      hardcode_direct=no
 
11007
      hardcode_shlibpath_var=no
 
11008
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
11009
      export_dynamic_flag_spec='${wl}-E'
 
11010
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11011
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11012
      # default) and relocated if they conflict, which is a slow very memory
 
11013
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
11014
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11015
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11016
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11017
      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'
 
11018
      ;;
 
11019
 
 
11020
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
11021
      tmp_diet=no
 
11022
      if test "$host_os" = linux-dietlibc; then
 
11023
        case $cc_basename in
 
11024
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
11025
        esac
 
11026
      fi
 
11027
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
11028
         && test "$tmp_diet" = no
 
11029
      then
 
11030
        tmp_addflag=
 
11031
        tmp_sharedflag='-shared'
 
11032
        case $cc_basename,$host_cpu in
 
11033
        pgcc*)                          # Portland Group C compiler
 
11034
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
11035
          tmp_addflag=' $pic_flag'
 
11036
          ;;
 
11037
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
11038
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
11039
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
11040
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
11041
          tmp_addflag=' -i_dynamic' ;;
 
11042
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
11043
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
11044
        ifc* | ifort*)                  # Intel Fortran compiler
 
11045
          tmp_addflag=' -nofor_main' ;;
 
11046
        lf95*)                          # Lahey Fortran 8.1
 
11047
          whole_archive_flag_spec=
 
11048
          tmp_sharedflag='--shared' ;;
 
11049
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
11050
          tmp_sharedflag='-qmkshrobj'
 
11051
          tmp_addflag= ;;
 
11052
        esac
 
11053
        case `$CC -V 2>&1 | sed 5q` in
 
11054
        *Sun\ C*)                       # Sun C 5.9
 
11055
          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'
 
11056
          compiler_needs_object=yes
 
11057
          tmp_sharedflag='-G' ;;
 
11058
        *Sun\ F*)                       # Sun Fortran 8.3
 
11059
          tmp_sharedflag='-G' ;;
 
11060
        esac
 
11061
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11062
 
 
11063
        if test "x$supports_anon_versioning" = xyes; then
 
11064
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
11065
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
11066
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
11067
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
11068
        fi
 
11069
 
 
11070
        case $cc_basename in
 
11071
        xlf*)
 
11072
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
11073
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
11074
          hardcode_libdir_flag_spec=
 
11075
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
11076
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
11077
          if test "x$supports_anon_versioning" = xyes; then
 
11078
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
11079
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
11080
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
11081
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
11082
          fi
 
11083
          ;;
 
11084
        esac
 
11085
      else
 
11086
        ld_shlibs=no
 
11087
      fi
 
11088
      ;;
 
11089
 
 
11090
    netbsd*)
 
11091
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11092
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
11093
        wlarc=
 
11094
      else
 
11095
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11096
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11097
      fi
 
11098
      ;;
 
11099
 
 
11100
    solaris*)
 
11101
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
11102
        ld_shlibs=no
 
11103
        cat <<_LT_EOF 1>&2
 
11104
 
 
11105
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
11106
*** create shared libraries on Solaris systems.  Therefore, libtool
 
11107
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
11108
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
11109
*** your PATH or compiler configuration so that the native linker is
 
11110
*** used, and then restart.
 
11111
 
 
11112
_LT_EOF
 
11113
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11114
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11115
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11116
      else
 
11117
        ld_shlibs=no
 
11118
      fi
 
11119
      ;;
 
11120
 
 
11121
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
11122
      case `$LD -v 2>&1` in
 
11123
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
11124
        ld_shlibs=no
 
11125
        cat <<_LT_EOF 1>&2
 
11126
 
 
11127
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
11128
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
11129
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
11130
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
11131
*** your PATH or compiler configuration so that the native linker is
 
11132
*** used, and then restart.
 
11133
 
 
11134
_LT_EOF
 
11135
        ;;
 
11136
        *)
 
11137
          # For security reasons, it is highly recommended that you always
 
11138
          # use absolute paths for naming shared libraries, and exclude the
 
11139
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
11140
          # requires that you compile everything twice, which is a pain.
 
11141
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11142
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11143
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11144
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11145
          else
 
11146
            ld_shlibs=no
 
11147
          fi
 
11148
        ;;
 
11149
      esac
 
11150
      ;;
 
11151
 
 
11152
    sunos4*)
 
11153
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11154
      wlarc=
 
11155
      hardcode_direct=yes
 
11156
      hardcode_shlibpath_var=no
 
11157
      ;;
 
11158
 
 
11159
    *)
 
11160
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11161
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11162
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11163
      else
 
11164
        ld_shlibs=no
 
11165
      fi
 
11166
      ;;
 
11167
    esac
 
11168
 
 
11169
    if test "$ld_shlibs" = no; then
 
11170
      runpath_var=
 
11171
      hardcode_libdir_flag_spec=
 
11172
      export_dynamic_flag_spec=
 
11173
      whole_archive_flag_spec=
 
11174
    fi
 
11175
  else
 
11176
    # PORTME fill in a description of your system's linker (not GNU ld)
 
11177
    case $host_os in
 
11178
    aix3*)
 
11179
      allow_undefined_flag=unsupported
 
11180
      always_export_symbols=yes
 
11181
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
11182
      # Note: this linker hardcodes the directories in LIBPATH if there
 
11183
      # are no directories specified by -L.
 
11184
      hardcode_minus_L=yes
 
11185
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
11186
        # Neither direct hardcoding nor static linking is supported with a
 
11187
        # broken collect2.
 
11188
        hardcode_direct=unsupported
 
11189
      fi
 
11190
      ;;
 
11191
 
 
11192
    aix[4-9]*)
 
11193
      if test "$host_cpu" = ia64; then
 
11194
        # On IA64, the linker does run time linking by default, so we don't
 
11195
        # have to do anything special.
 
11196
        aix_use_runtimelinking=no
 
11197
        exp_sym_flag='-Bexport'
 
11198
        no_entry_flag=""
 
11199
      else
 
11200
        # If we're using GNU nm, then we don't want the "-C" option.
 
11201
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11202
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
11203
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
11204
        else
 
11205
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
11206
        fi
 
11207
        aix_use_runtimelinking=no
 
11208
 
 
11209
        # Test if we are trying to use run time linking or normal
 
11210
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11211
        # need to do runtime linking.
 
11212
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11213
          for ld_flag in $LDFLAGS; do
 
11214
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
11215
            aix_use_runtimelinking=yes
 
11216
            break
 
11217
          fi
 
11218
          done
 
11219
          ;;
 
11220
        esac
 
11221
 
 
11222
        exp_sym_flag='-bexport'
 
11223
        no_entry_flag='-bnoentry'
 
11224
      fi
 
11225
 
 
11226
      # When large executables or shared objects are built, AIX ld can
 
11227
      # have problems creating the table of contents.  If linking a library
 
11228
      # or program results in "error TOC overflow" add -mminimal-toc to
 
11229
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11230
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11231
 
 
11232
      archive_cmds=''
 
11233
      hardcode_direct=yes
 
11234
      hardcode_direct_absolute=yes
 
11235
      hardcode_libdir_separator=':'
 
11236
      link_all_deplibs=yes
 
11237
      file_list_spec='${wl}-f,'
 
11238
 
 
11239
      if test "$GCC" = yes; then
 
11240
        case $host_os in aix4.[012]|aix4.[012].*)
 
11241
        # We only want to do this on AIX 4.2 and lower, the check
 
11242
        # below for broken collect2 doesn't work under 4.3+
 
11243
          collect2name=`${CC} -print-prog-name=collect2`
 
11244
          if test -f "$collect2name" &&
 
11245
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
11246
          then
 
11247
          # We have reworked collect2
 
11248
          :
 
11249
          else
 
11250
          # We have old collect2
 
11251
          hardcode_direct=unsupported
 
11252
          # It fails to find uninstalled libraries when the uninstalled
 
11253
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11254
          # to unsupported forces relinking
 
11255
          hardcode_minus_L=yes
 
11256
          hardcode_libdir_flag_spec='-L$libdir'
 
11257
          hardcode_libdir_separator=
 
11258
          fi
 
11259
          ;;
 
11260
        esac
 
11261
        shared_flag='-shared'
 
11262
        if test "$aix_use_runtimelinking" = yes; then
 
11263
          shared_flag="$shared_flag "'${wl}-G'
 
11264
        fi
 
11265
      else
 
11266
        # not using gcc
 
11267
        if test "$host_cpu" = ia64; then
 
11268
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11269
        # chokes on -Wl,-G. The following line is correct:
 
11270
          shared_flag='-G'
 
11271
        else
 
11272
          if test "$aix_use_runtimelinking" = yes; then
 
11273
            shared_flag='${wl}-G'
 
11274
          else
 
11275
            shared_flag='${wl}-bM:SRE'
 
11276
          fi
 
11277
        fi
 
11278
      fi
 
11279
 
 
11280
      export_dynamic_flag_spec='${wl}-bexpall'
 
11281
      # It seems that -bexpall does not export symbols beginning with
 
11282
      # underscore (_), so it is better to generate a list of symbols to export.
 
11283
      always_export_symbols=yes
 
11284
      if test "$aix_use_runtimelinking" = yes; then
 
11285
        # Warning - without using the other runtime loading flags (-brtl),
 
11286
        # -berok will link without error, but may produce a broken library.
 
11287
        allow_undefined_flag='-berok'
 
11288
        # Determine the default libpath from the value encoded in an
 
11289
        # empty executable.
 
11290
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11291
/* end confdefs.h.  */
 
11292
 
 
11293
int
 
11294
main ()
 
11295
{
 
11296
 
 
11297
  ;
 
11298
  return 0;
 
11299
}
 
11300
_ACEOF
 
11301
if ac_fn_c_try_link "$LINENO"; then :
 
11302
 
 
11303
lt_aix_libpath_sed='
 
11304
    /Import File Strings/,/^$/ {
 
11305
        /^0/ {
 
11306
            s/^0  *\(.*\)$/\1/
 
11307
            p
 
11308
        }
 
11309
    }'
 
11310
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11311
# Check for a 64-bit object if we didn't find anything.
 
11312
if test -z "$aix_libpath"; then
 
11313
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11314
fi
 
11315
fi
 
11316
rm -f core conftest.err conftest.$ac_objext \
 
11317
    conftest$ac_exeext conftest.$ac_ext
 
11318
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11319
 
 
11320
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11321
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11322
      else
 
11323
        if test "$host_cpu" = ia64; then
 
11324
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
11325
          allow_undefined_flag="-z nodefs"
 
11326
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11327
        else
 
11328
         # Determine the default libpath from the value encoded in an
 
11329
         # empty executable.
 
11330
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11331
/* end confdefs.h.  */
 
11332
 
 
11333
int
 
11334
main ()
 
11335
{
 
11336
 
 
11337
  ;
 
11338
  return 0;
 
11339
}
 
11340
_ACEOF
 
11341
if ac_fn_c_try_link "$LINENO"; then :
 
11342
 
 
11343
lt_aix_libpath_sed='
 
11344
    /Import File Strings/,/^$/ {
 
11345
        /^0/ {
 
11346
            s/^0  *\(.*\)$/\1/
 
11347
            p
 
11348
        }
 
11349
    }'
 
11350
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11351
# Check for a 64-bit object if we didn't find anything.
 
11352
if test -z "$aix_libpath"; then
 
11353
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11354
fi
 
11355
fi
 
11356
rm -f core conftest.err conftest.$ac_objext \
 
11357
    conftest$ac_exeext conftest.$ac_ext
 
11358
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11359
 
 
11360
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11361
          # Warning - without using the other run time loading flags,
 
11362
          # -berok will link without error, but may produce a broken library.
 
11363
          no_undefined_flag=' ${wl}-bernotok'
 
11364
          allow_undefined_flag=' ${wl}-berok'
 
11365
          # Exported symbols can be pulled into shared objects from archives
 
11366
          whole_archive_flag_spec='$convenience'
 
11367
          archive_cmds_need_lc=yes
 
11368
          # This is similar to how AIX traditionally builds its shared libraries.
 
11369
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11370
        fi
 
11371
      fi
 
11372
      ;;
 
11373
 
 
11374
    amigaos*)
 
11375
      case $host_cpu in
 
11376
      powerpc)
 
11377
            # see comment about AmigaOS4 .so support
 
11378
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11379
            archive_expsym_cmds=''
 
11380
        ;;
 
11381
      m68k)
 
11382
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
11383
            hardcode_libdir_flag_spec='-L$libdir'
 
11384
            hardcode_minus_L=yes
 
11385
        ;;
 
11386
      esac
 
11387
      ;;
 
11388
 
 
11389
    bsdi[45]*)
 
11390
      export_dynamic_flag_spec=-rdynamic
 
11391
      ;;
 
11392
 
 
11393
    cygwin* | mingw* | pw32* | cegcc*)
 
11394
      # When not using gcc, we currently assume that we are using
 
11395
      # Microsoft Visual C++.
 
11396
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
11397
      # no search path for DLLs.
 
11398
      hardcode_libdir_flag_spec=' '
 
11399
      allow_undefined_flag=unsupported
 
11400
      # Tell ltmain to make .lib files, not .a files.
 
11401
      libext=lib
 
11402
      # Tell ltmain to make .dll files, not .so files.
 
11403
      shrext_cmds=".dll"
 
11404
      # FIXME: Setting linknames here is a bad hack.
 
11405
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
11406
      # The linker will automatically build a .lib file if we build a DLL.
 
11407
      old_archive_from_new_cmds='true'
 
11408
      # FIXME: Should let the user specify the lib program.
 
11409
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
11410
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
11411
      enable_shared_with_static_runtimes=yes
 
11412
      ;;
 
11413
 
 
11414
    darwin* | rhapsody*)
 
11415
 
 
11416
 
 
11417
  archive_cmds_need_lc=no
 
11418
  hardcode_direct=no
 
11419
  hardcode_automatic=yes
 
11420
  hardcode_shlibpath_var=unsupported
 
11421
  whole_archive_flag_spec=''
 
11422
  link_all_deplibs=yes
 
11423
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
11424
  case $cc_basename in
 
11425
     ifort*) _lt_dar_can_shared=yes ;;
 
11426
     *) _lt_dar_can_shared=$GCC ;;
 
11427
  esac
 
11428
  if test "$_lt_dar_can_shared" = "yes"; then
 
11429
    output_verbose_link_cmd=echo
 
11430
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11431
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11432
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11433
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11434
 
 
11435
  else
 
11436
  ld_shlibs=no
 
11437
  fi
 
11438
 
 
11439
      ;;
 
11440
 
 
11441
    dgux*)
 
11442
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11443
      hardcode_libdir_flag_spec='-L$libdir'
 
11444
      hardcode_shlibpath_var=no
 
11445
      ;;
 
11446
 
 
11447
    freebsd1*)
 
11448
      ld_shlibs=no
 
11449
      ;;
 
11450
 
 
11451
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
11452
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
11453
    # does not break anything, and helps significantly (at the cost of a little
 
11454
    # extra space).
 
11455
    freebsd2.2*)
 
11456
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
11457
      hardcode_libdir_flag_spec='-R$libdir'
 
11458
      hardcode_direct=yes
 
11459
      hardcode_shlibpath_var=no
 
11460
      ;;
 
11461
 
 
11462
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
11463
    freebsd2*)
 
11464
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11465
      hardcode_direct=yes
 
11466
      hardcode_minus_L=yes
 
11467
      hardcode_shlibpath_var=no
 
11468
      ;;
 
11469
 
 
11470
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
11471
    freebsd* | dragonfly*)
 
11472
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
11473
      hardcode_libdir_flag_spec='-R$libdir'
 
11474
      hardcode_direct=yes
 
11475
      hardcode_shlibpath_var=no
 
11476
      ;;
 
11477
 
 
11478
    hpux9*)
 
11479
      if test "$GCC" = yes; then
 
11480
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11481
      else
 
11482
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11483
      fi
 
11484
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11485
      hardcode_libdir_separator=:
 
11486
      hardcode_direct=yes
 
11487
 
 
11488
      # hardcode_minus_L: Not really in the search PATH,
 
11489
      # but as the default location of the library.
 
11490
      hardcode_minus_L=yes
 
11491
      export_dynamic_flag_spec='${wl}-E'
 
11492
      ;;
 
11493
 
 
11494
    hpux10*)
 
11495
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
11496
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11497
      else
 
11498
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
11499
      fi
 
11500
      if test "$with_gnu_ld" = no; then
 
11501
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11502
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
11503
        hardcode_libdir_separator=:
 
11504
        hardcode_direct=yes
 
11505
        hardcode_direct_absolute=yes
 
11506
        export_dynamic_flag_spec='${wl}-E'
 
11507
        # hardcode_minus_L: Not really in the search PATH,
 
11508
        # but as the default location of the library.
 
11509
        hardcode_minus_L=yes
 
11510
      fi
 
11511
      ;;
 
11512
 
 
11513
    hpux11*)
 
11514
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
11515
        case $host_cpu in
 
11516
        hppa*64*)
 
11517
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11518
          ;;
 
11519
        ia64*)
 
11520
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
11521
          ;;
 
11522
        *)
 
11523
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11524
          ;;
 
11525
        esac
 
11526
      else
 
11527
        case $host_cpu in
 
11528
        hppa*64*)
 
11529
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11530
          ;;
 
11531
        ia64*)
 
11532
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
11533
          ;;
 
11534
        *)
 
11535
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11536
          ;;
 
11537
        esac
 
11538
      fi
 
11539
      if test "$with_gnu_ld" = no; then
 
11540
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11541
        hardcode_libdir_separator=:
 
11542
 
 
11543
        case $host_cpu in
 
11544
        hppa*64*|ia64*)
 
11545
          hardcode_direct=no
 
11546
          hardcode_shlibpath_var=no
 
11547
          ;;
 
11548
        *)
 
11549
          hardcode_direct=yes
 
11550
          hardcode_direct_absolute=yes
 
11551
          export_dynamic_flag_spec='${wl}-E'
 
11552
 
 
11553
          # hardcode_minus_L: Not really in the search PATH,
 
11554
          # but as the default location of the library.
 
11555
          hardcode_minus_L=yes
 
11556
          ;;
 
11557
        esac
 
11558
      fi
 
11559
      ;;
 
11560
 
 
11561
    irix5* | irix6* | nonstopux*)
 
11562
      if test "$GCC" = yes; then
 
11563
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11564
        # Try to use the -exported_symbol ld option, if it does not
 
11565
        # work, assume that -exports_file does not work either and
 
11566
        # implicitly export all symbols.
 
11567
        save_LDFLAGS="$LDFLAGS"
 
11568
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
11569
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11570
/* end confdefs.h.  */
 
11571
int foo(void) {}
 
11572
_ACEOF
 
11573
if ac_fn_c_try_link "$LINENO"; then :
 
11574
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
11575
 
 
11576
fi
 
11577
rm -f core conftest.err conftest.$ac_objext \
 
11578
    conftest$ac_exeext conftest.$ac_ext
 
11579
        LDFLAGS="$save_LDFLAGS"
 
11580
      else
 
11581
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
11582
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
11583
      fi
 
11584
      archive_cmds_need_lc='no'
 
11585
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11586
      hardcode_libdir_separator=:
 
11587
      inherit_rpath=yes
 
11588
      link_all_deplibs=yes
 
11589
      ;;
 
11590
 
 
11591
    netbsd*)
 
11592
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11593
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
11594
      else
 
11595
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
11596
      fi
 
11597
      hardcode_libdir_flag_spec='-R$libdir'
 
11598
      hardcode_direct=yes
 
11599
      hardcode_shlibpath_var=no
 
11600
      ;;
 
11601
 
 
11602
    newsos6)
 
11603
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11604
      hardcode_direct=yes
 
11605
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11606
      hardcode_libdir_separator=:
 
11607
      hardcode_shlibpath_var=no
 
11608
      ;;
 
11609
 
 
11610
    *nto* | *qnx*)
 
11611
      ;;
 
11612
 
 
11613
    openbsd*)
 
11614
      if test -f /usr/libexec/ld.so; then
 
11615
        hardcode_direct=yes
 
11616
        hardcode_shlibpath_var=no
 
11617
        hardcode_direct_absolute=yes
 
11618
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11619
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11620
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
11621
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
11622
          export_dynamic_flag_spec='${wl}-E'
 
11623
        else
 
11624
          case $host_os in
 
11625
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
11626
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11627
             hardcode_libdir_flag_spec='-R$libdir'
 
11628
             ;;
 
11629
           *)
 
11630
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11631
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
11632
             ;;
 
11633
          esac
 
11634
        fi
 
11635
      else
 
11636
        ld_shlibs=no
 
11637
      fi
 
11638
      ;;
 
11639
 
 
11640
    os2*)
 
11641
      hardcode_libdir_flag_spec='-L$libdir'
 
11642
      hardcode_minus_L=yes
 
11643
      allow_undefined_flag=unsupported
 
11644
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
11645
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
11646
      ;;
 
11647
 
 
11648
    osf3*)
 
11649
      if test "$GCC" = yes; then
 
11650
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11651
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11652
      else
 
11653
        allow_undefined_flag=' -expect_unresolved \*'
 
11654
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
11655
      fi
 
11656
      archive_cmds_need_lc='no'
 
11657
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11658
      hardcode_libdir_separator=:
 
11659
      ;;
 
11660
 
 
11661
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
11662
      if test "$GCC" = yes; then
 
11663
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11664
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11665
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11666
      else
 
11667
        allow_undefined_flag=' -expect_unresolved \*'
 
11668
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
11669
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
11670
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
11671
 
 
11672
        # Both c and cxx compiler support -rpath directly
 
11673
        hardcode_libdir_flag_spec='-rpath $libdir'
 
11674
      fi
 
11675
      archive_cmds_need_lc='no'
 
11676
      hardcode_libdir_separator=:
 
11677
      ;;
 
11678
 
 
11679
    solaris*)
 
11680
      no_undefined_flag=' -z defs'
 
11681
      if test "$GCC" = yes; then
 
11682
        wlarc='${wl}'
 
11683
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11684
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11685
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11686
      else
 
11687
        case `$CC -V 2>&1` in
 
11688
        *"Compilers 5.0"*)
 
11689
          wlarc=''
 
11690
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11691
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11692
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
11693
          ;;
 
11694
        *)
 
11695
          wlarc='${wl}'
 
11696
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11697
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
11698
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11699
          ;;
 
11700
        esac
 
11701
      fi
 
11702
      hardcode_libdir_flag_spec='-R$libdir'
 
11703
      hardcode_shlibpath_var=no
 
11704
      case $host_os in
 
11705
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11706
      *)
 
11707
        # The compiler driver will combine and reorder linker options,
 
11708
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
11709
        # but is careful enough not to reorder.
 
11710
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11711
        if test "$GCC" = yes; then
 
11712
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11713
        else
 
11714
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
11715
        fi
 
11716
        ;;
 
11717
      esac
 
11718
      link_all_deplibs=yes
 
11719
      ;;
 
11720
 
 
11721
    sunos4*)
 
11722
      if test "x$host_vendor" = xsequent; then
 
11723
        # Use $CC to link under sequent, because it throws in some extra .o
 
11724
        # files that make .init and .fini sections work.
 
11725
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11726
      else
 
11727
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
11728
      fi
 
11729
      hardcode_libdir_flag_spec='-L$libdir'
 
11730
      hardcode_direct=yes
 
11731
      hardcode_minus_L=yes
 
11732
      hardcode_shlibpath_var=no
 
11733
      ;;
 
11734
 
 
11735
    sysv4)
 
11736
      case $host_vendor in
 
11737
        sni)
 
11738
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11739
          hardcode_direct=yes # is this really true???
 
11740
        ;;
 
11741
        siemens)
 
11742
          ## LD is ld it makes a PLAMLIB
 
11743
          ## CC just makes a GrossModule.
 
11744
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11745
          reload_cmds='$CC -r -o $output$reload_objs'
 
11746
          hardcode_direct=no
 
11747
        ;;
 
11748
        motorola)
 
11749
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11750
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
11751
        ;;
 
11752
      esac
 
11753
      runpath_var='LD_RUN_PATH'
 
11754
      hardcode_shlibpath_var=no
 
11755
      ;;
 
11756
 
 
11757
    sysv4.3*)
 
11758
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11759
      hardcode_shlibpath_var=no
 
11760
      export_dynamic_flag_spec='-Bexport'
 
11761
      ;;
 
11762
 
 
11763
    sysv4*MP*)
 
11764
      if test -d /usr/nec; then
 
11765
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11766
        hardcode_shlibpath_var=no
 
11767
        runpath_var=LD_RUN_PATH
 
11768
        hardcode_runpath_var=yes
 
11769
        ld_shlibs=yes
 
11770
      fi
 
11771
      ;;
 
11772
 
 
11773
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11774
      no_undefined_flag='${wl}-z,text'
 
11775
      archive_cmds_need_lc=no
 
11776
      hardcode_shlibpath_var=no
 
11777
      runpath_var='LD_RUN_PATH'
 
11778
 
 
11779
      if test "$GCC" = yes; then
 
11780
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11781
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11782
      else
 
11783
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11784
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11785
      fi
 
11786
      ;;
 
11787
 
 
11788
    sysv5* | sco3.2v5* | sco5v6*)
 
11789
      # Note: We can NOT use -z defs as we might desire, because we do not
 
11790
      # link with -lc, and that would cause any symbols used from libc to
 
11791
      # always be unresolved, which means just about no library would
 
11792
      # ever link correctly.  If we're not using GNU ld we use -z text
 
11793
      # though, which does catch some bad symbols but isn't as heavy-handed
 
11794
      # as -z defs.
 
11795
      no_undefined_flag='${wl}-z,text'
 
11796
      allow_undefined_flag='${wl}-z,nodefs'
 
11797
      archive_cmds_need_lc=no
 
11798
      hardcode_shlibpath_var=no
 
11799
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
11800
      hardcode_libdir_separator=':'
 
11801
      link_all_deplibs=yes
 
11802
      export_dynamic_flag_spec='${wl}-Bexport'
 
11803
      runpath_var='LD_RUN_PATH'
 
11804
 
 
11805
      if test "$GCC" = yes; then
 
11806
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11807
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11808
      else
 
11809
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11810
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11811
      fi
 
11812
      ;;
 
11813
 
 
11814
    uts4*)
 
11815
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11816
      hardcode_libdir_flag_spec='-L$libdir'
 
11817
      hardcode_shlibpath_var=no
 
11818
      ;;
 
11819
 
 
11820
    *)
 
11821
      ld_shlibs=no
 
11822
      ;;
 
11823
    esac
 
11824
 
 
11825
    if test x$host_vendor = xsni; then
 
11826
      case $host in
 
11827
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11828
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11829
        ;;
 
11830
      esac
 
11831
    fi
 
11832
  fi
 
11833
 
 
11834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
11835
$as_echo "$ld_shlibs" >&6; }
 
11836
test "$ld_shlibs" = no && can_build_shared=no
 
11837
 
 
11838
with_gnu_ld=$with_gnu_ld
 
11839
 
 
11840
 
 
11841
 
 
11842
 
 
11843
 
 
11844
 
 
11845
 
 
11846
 
 
11847
 
 
11848
 
 
11849
 
 
11850
 
 
11851
 
 
11852
 
 
11853
 
 
11854
#
 
11855
# Do we need to explicitly link libc?
 
11856
#
 
11857
case "x$archive_cmds_need_lc" in
 
11858
x|xyes)
 
11859
  # Assume -lc should be added
 
11860
  archive_cmds_need_lc=yes
 
11861
 
 
11862
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11863
    case $archive_cmds in
 
11864
    *'~'*)
 
11865
      # FIXME: we may have to deal with multi-command sequences.
 
11866
      ;;
 
11867
    '$CC '*)
 
11868
      # Test whether the compiler implicitly links with -lc since on some
 
11869
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11870
      # to ld, don't add -lc before -lgcc.
 
11871
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
11872
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
11873
      $RM conftest*
 
11874
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11875
 
 
11876
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11877
  (eval $ac_compile) 2>&5
 
11878
  ac_status=$?
 
11879
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11880
  test $ac_status = 0; } 2>conftest.err; then
 
11881
        soname=conftest
 
11882
        lib=conftest
 
11883
        libobjs=conftest.$ac_objext
 
11884
        deplibs=
 
11885
        wl=$lt_prog_compiler_wl
 
11886
        pic_flag=$lt_prog_compiler_pic
 
11887
        compiler_flags=-v
 
11888
        linker_flags=-v
 
11889
        verstring=
 
11890
        output_objdir=.
 
11891
        libname=conftest
 
11892
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
11893
        allow_undefined_flag=
 
11894
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11895
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11896
  ac_status=$?
 
11897
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11898
  test $ac_status = 0; }
 
11899
        then
 
11900
          archive_cmds_need_lc=no
 
11901
        else
 
11902
          archive_cmds_need_lc=yes
 
11903
        fi
 
11904
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
11905
      else
 
11906
        cat conftest.err 1>&5
 
11907
      fi
 
11908
      $RM conftest*
 
11909
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
11910
$as_echo "$archive_cmds_need_lc" >&6; }
 
11911
      ;;
 
11912
    esac
 
11913
  fi
 
11914
  ;;
 
11915
esac
 
11916
 
 
11917
 
 
11918
 
 
11919
 
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
 
 
11931
 
 
11932
 
 
11933
 
 
11934
 
 
11935
 
 
11936
 
 
11937
 
 
11938
 
 
11939
 
 
11940
 
 
11941
 
 
11942
 
 
11943
 
 
11944
 
 
11945
 
 
11946
 
 
11947
 
 
11948
 
 
11949
 
 
11950
 
 
11951
 
 
11952
 
 
11953
 
 
11954
 
 
11955
 
 
11956
 
 
11957
 
 
11958
 
 
11959
 
 
11960
 
 
11961
 
 
11962
 
 
11963
 
 
11964
 
 
11965
 
 
11966
 
 
11967
 
 
11968
 
 
11969
 
 
11970
 
 
11971
 
 
11972
 
 
11973
 
 
11974
 
 
11975
 
 
11976
 
 
11977
 
 
11978
 
 
11979
 
 
11980
 
 
11981
 
 
11982
 
 
11983
 
 
11984
 
 
11985
 
 
11986
 
 
11987
 
 
11988
 
 
11989
 
 
11990
 
 
11991
 
 
11992
 
 
11993
 
 
11994
 
 
11995
 
 
11996
 
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
 
12004
 
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
 
 
12010
 
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
 
 
12025
 
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
 
 
12063
 
 
12064
 
 
12065
 
 
12066
 
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
 
 
12072
 
 
12073
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
12074
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
12075
 
 
12076
if test "$GCC" = yes; then
 
12077
  case $host_os in
 
12078
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
12079
    *) lt_awk_arg="/^libraries:/" ;;
 
12080
  esac
 
12081
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12082
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
12083
    # if the path contains ";" then we assume it to be the separator
 
12084
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12085
    # assumed that no part of a normal pathname contains ";" but that should
 
12086
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12087
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
12088
  else
 
12089
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12090
  fi
 
12091
  # Ok, now we have the path, separated by spaces, we can step through it
 
12092
  # and add multilib dir if necessary.
 
12093
  lt_tmp_lt_search_path_spec=
 
12094
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
12095
  for lt_sys_path in $lt_search_path_spec; do
 
12096
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
12097
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
12098
    else
 
12099
      test -d "$lt_sys_path" && \
 
12100
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
12101
    fi
 
12102
  done
 
12103
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
12104
BEGIN {RS=" "; FS="/|\n";} {
 
12105
  lt_foo="";
 
12106
  lt_count=0;
 
12107
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
12108
    if ($lt_i != "" && $lt_i != ".") {
 
12109
      if ($lt_i == "..") {
 
12110
        lt_count++;
 
12111
      } else {
 
12112
        if (lt_count == 0) {
 
12113
          lt_foo="/" $lt_i lt_foo;
 
12114
        } else {
 
12115
          lt_count--;
 
12116
        }
 
12117
      }
 
12118
    }
 
12119
  }
 
12120
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
12121
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
12122
}'`
 
12123
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
12124
else
 
12125
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12126
fi
 
12127
library_names_spec=
 
12128
libname_spec='lib$name'
 
12129
soname_spec=
 
12130
shrext_cmds=".so"
 
12131
postinstall_cmds=
 
12132
postuninstall_cmds=
 
12133
finish_cmds=
 
12134
finish_eval=
 
12135
shlibpath_var=
 
12136
shlibpath_overrides_runpath=unknown
 
12137
version_type=none
 
12138
dynamic_linker="$host_os ld.so"
 
12139
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12140
need_lib_prefix=unknown
 
12141
hardcode_into_libs=no
 
12142
 
 
12143
# when you set need_version to no, make sure it does not cause -set_version
 
12144
# flags to be left without arguments
 
12145
need_version=unknown
 
12146
 
 
12147
case $host_os in
 
12148
aix3*)
 
12149
  version_type=linux
 
12150
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12151
  shlibpath_var=LIBPATH
 
12152
 
 
12153
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12154
  soname_spec='${libname}${release}${shared_ext}$major'
 
12155
  ;;
 
12156
 
 
12157
aix[4-9]*)
 
12158
  version_type=linux
 
12159
  need_lib_prefix=no
 
12160
  need_version=no
 
12161
  hardcode_into_libs=yes
 
12162
  if test "$host_cpu" = ia64; then
 
12163
    # AIX 5 supports IA64
 
12164
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12165
    shlibpath_var=LD_LIBRARY_PATH
 
12166
  else
 
12167
    # With GCC up to 2.95.x, collect2 would create an import file
 
12168
    # for dependence libraries.  The import file would start with
 
12169
    # the line `#! .'.  This would cause the generated library to
 
12170
    # depend on `.', always an invalid library.  This was fixed in
 
12171
    # development snapshots of GCC prior to 3.0.
 
12172
    case $host_os in
 
12173
      aix4 | aix4.[01] | aix4.[01].*)
 
12174
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12175
           echo ' yes '
 
12176
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
12177
        :
 
12178
      else
 
12179
        can_build_shared=no
 
12180
      fi
 
12181
      ;;
 
12182
    esac
 
12183
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12184
    # soname into executable. Probably we can add versioning support to
 
12185
    # collect2, so additional links can be useful in future.
 
12186
    if test "$aix_use_runtimelinking" = yes; then
 
12187
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12188
      # instead of lib<name>.a to let people know that these are not
 
12189
      # typical AIX shared libraries.
 
12190
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12191
    else
 
12192
      # We preserve .a as extension for shared libraries through AIX4.2
 
12193
      # and later when we are not doing run time linking.
 
12194
      library_names_spec='${libname}${release}.a $libname.a'
 
12195
      soname_spec='${libname}${release}${shared_ext}$major'
 
12196
    fi
 
12197
    shlibpath_var=LIBPATH
 
12198
  fi
 
12199
  ;;
 
12200
 
 
12201
amigaos*)
 
12202
  case $host_cpu in
 
12203
  powerpc)
 
12204
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
12205
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
12206
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12207
    ;;
 
12208
  m68k)
 
12209
    library_names_spec='$libname.ixlibrary $libname.a'
 
12210
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12211
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12212
    ;;
 
12213
  esac
 
12214
  ;;
 
12215
 
 
12216
beos*)
 
12217
  library_names_spec='${libname}${shared_ext}'
 
12218
  dynamic_linker="$host_os ld.so"
 
12219
  shlibpath_var=LIBRARY_PATH
 
12220
  ;;
 
12221
 
 
12222
bsdi[45]*)
 
12223
  version_type=linux
 
12224
  need_version=no
 
12225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12226
  soname_spec='${libname}${release}${shared_ext}$major'
 
12227
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12228
  shlibpath_var=LD_LIBRARY_PATH
 
12229
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12230
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12231
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12232
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12233
  # libtool to hard-code these into programs
 
12234
  ;;
 
12235
 
 
12236
cygwin* | mingw* | pw32* | cegcc*)
 
12237
  version_type=windows
 
12238
  shrext_cmds=".dll"
 
12239
  need_version=no
 
12240
  need_lib_prefix=no
 
12241
 
 
12242
  case $GCC,$host_os in
 
12243
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
12244
    library_names_spec='$libname.dll.a'
 
12245
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12246
    postinstall_cmds='base_file=`basename \${file}`~
 
12247
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
12248
      dldir=$destdir/`dirname \$dlpath`~
 
12249
      test -d \$dldir || mkdir -p \$dldir~
 
12250
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12251
      chmod a+x \$dldir/$dlname~
 
12252
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
12253
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
12254
      fi'
 
12255
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12256
      dlpath=$dir/\$dldll~
 
12257
       $RM \$dlpath'
 
12258
    shlibpath_overrides_runpath=yes
 
12259
 
 
12260
    case $host_os in
 
12261
    cygwin*)
 
12262
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12263
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12264
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12265
      ;;
 
12266
    mingw* | cegcc*)
 
12267
      # MinGW DLLs use traditional 'lib' prefix
 
12268
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12269
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12270
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
12271
        # It is most probably a Windows format PATH printed by
 
12272
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12273
        # path with ; separators, and with drive letters. We can handle the
 
12274
        # drive letters (cygwin fileutils understands them), so leave them,
 
12275
        # especially as we might pass files found there to a mingw objdump,
 
12276
        # which wouldn't understand a cygwinified path. Ahh.
 
12277
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12278
      else
 
12279
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12280
      fi
 
12281
      ;;
 
12282
    pw32*)
 
12283
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12284
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12285
      ;;
 
12286
    esac
 
12287
    ;;
 
12288
 
 
12289
  *)
 
12290
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12291
    ;;
 
12292
  esac
 
12293
  dynamic_linker='Win32 ld.exe'
 
12294
  # FIXME: first we should search . and the directory the executable is in
 
12295
  shlibpath_var=PATH
 
12296
  ;;
 
12297
 
 
12298
darwin* | rhapsody*)
 
12299
  dynamic_linker="$host_os dyld"
 
12300
  version_type=darwin
 
12301
  need_lib_prefix=no
 
12302
  need_version=no
 
12303
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12304
  soname_spec='${libname}${release}${major}$shared_ext'
 
12305
  shlibpath_overrides_runpath=yes
 
12306
  shlibpath_var=DYLD_LIBRARY_PATH
 
12307
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12308
 
 
12309
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
12310
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12311
  ;;
 
12312
 
 
12313
dgux*)
 
12314
  version_type=linux
 
12315
  need_lib_prefix=no
 
12316
  need_version=no
 
12317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12318
  soname_spec='${libname}${release}${shared_ext}$major'
 
12319
  shlibpath_var=LD_LIBRARY_PATH
 
12320
  ;;
 
12321
 
 
12322
freebsd1*)
 
12323
  dynamic_linker=no
 
12324
  ;;
 
12325
 
 
12326
freebsd* | dragonfly*)
 
12327
  # DragonFly does not have aout.  When/if they implement a new
 
12328
  # versioning mechanism, adjust this.
 
12329
  if test -x /usr/bin/objformat; then
 
12330
    objformat=`/usr/bin/objformat`
 
12331
  else
 
12332
    case $host_os in
 
12333
    freebsd[123]*) objformat=aout ;;
 
12334
    *) objformat=elf ;;
 
12335
    esac
 
12336
  fi
 
12337
  version_type=freebsd-$objformat
 
12338
  case $version_type in
 
12339
    freebsd-elf*)
 
12340
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12341
      need_version=no
 
12342
      need_lib_prefix=no
 
12343
      ;;
 
12344
    freebsd-*)
 
12345
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12346
      need_version=yes
 
12347
      ;;
 
12348
  esac
 
12349
  shlibpath_var=LD_LIBRARY_PATH
 
12350
  case $host_os in
 
12351
  freebsd2*)
 
12352
    shlibpath_overrides_runpath=yes
 
12353
    ;;
 
12354
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12355
    shlibpath_overrides_runpath=yes
 
12356
    hardcode_into_libs=yes
 
12357
    ;;
 
12358
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12359
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12360
    shlibpath_overrides_runpath=no
 
12361
    hardcode_into_libs=yes
 
12362
    ;;
 
12363
  *) # from 4.6 on, and DragonFly
 
12364
    shlibpath_overrides_runpath=yes
 
12365
    hardcode_into_libs=yes
 
12366
    ;;
 
12367
  esac
 
12368
  ;;
 
12369
 
 
12370
gnu*)
 
12371
  version_type=linux
 
12372
  need_lib_prefix=no
 
12373
  need_version=no
 
12374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12375
  soname_spec='${libname}${release}${shared_ext}$major'
 
12376
  shlibpath_var=LD_LIBRARY_PATH
 
12377
  hardcode_into_libs=yes
 
12378
  ;;
 
12379
 
 
12380
hpux9* | hpux10* | hpux11*)
 
12381
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12382
  # link against other versions.
 
12383
  version_type=sunos
 
12384
  need_lib_prefix=no
 
12385
  need_version=no
 
12386
  case $host_cpu in
 
12387
  ia64*)
 
12388
    shrext_cmds='.so'
 
12389
    hardcode_into_libs=yes
 
12390
    dynamic_linker="$host_os dld.so"
 
12391
    shlibpath_var=LD_LIBRARY_PATH
 
12392
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12393
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12394
    soname_spec='${libname}${release}${shared_ext}$major'
 
12395
    if test "X$HPUX_IA64_MODE" = X32; then
 
12396
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12397
    else
 
12398
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12399
    fi
 
12400
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12401
    ;;
 
12402
  hppa*64*)
 
12403
    shrext_cmds='.sl'
 
12404
    hardcode_into_libs=yes
 
12405
    dynamic_linker="$host_os dld.sl"
 
12406
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12407
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12408
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12409
    soname_spec='${libname}${release}${shared_ext}$major'
 
12410
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12411
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12412
    ;;
 
12413
  *)
 
12414
    shrext_cmds='.sl'
 
12415
    dynamic_linker="$host_os dld.sl"
 
12416
    shlibpath_var=SHLIB_PATH
 
12417
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12418
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12419
    soname_spec='${libname}${release}${shared_ext}$major'
 
12420
    ;;
 
12421
  esac
 
12422
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12423
  postinstall_cmds='chmod 555 $lib'
 
12424
  ;;
 
12425
 
 
12426
interix[3-9]*)
 
12427
  version_type=linux
 
12428
  need_lib_prefix=no
 
12429
  need_version=no
 
12430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12431
  soname_spec='${libname}${release}${shared_ext}$major'
 
12432
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12433
  shlibpath_var=LD_LIBRARY_PATH
 
12434
  shlibpath_overrides_runpath=no
 
12435
  hardcode_into_libs=yes
 
12436
  ;;
 
12437
 
 
12438
irix5* | irix6* | nonstopux*)
 
12439
  case $host_os in
 
12440
    nonstopux*) version_type=nonstopux ;;
 
12441
    *)
 
12442
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12443
                version_type=linux
 
12444
        else
 
12445
                version_type=irix
 
12446
        fi ;;
 
12447
  esac
 
12448
  need_lib_prefix=no
 
12449
  need_version=no
 
12450
  soname_spec='${libname}${release}${shared_ext}$major'
 
12451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12452
  case $host_os in
 
12453
  irix5* | nonstopux*)
 
12454
    libsuff= shlibsuff=
 
12455
    ;;
 
12456
  *)
 
12457
    case $LD in # libtool.m4 will add one of these switches to LD
 
12458
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12459
      libsuff= shlibsuff= libmagic=32-bit;;
 
12460
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12461
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12462
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12463
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12464
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12465
    esac
 
12466
    ;;
 
12467
  esac
 
12468
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12469
  shlibpath_overrides_runpath=no
 
12470
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12471
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12472
  hardcode_into_libs=yes
 
12473
  ;;
 
12474
 
 
12475
# No shared lib support for Linux oldld, aout, or coff.
 
12476
linux*oldld* | linux*aout* | linux*coff*)
 
12477
  dynamic_linker=no
 
12478
  ;;
 
12479
 
 
12480
# This must be Linux ELF.
 
12481
linux* | k*bsd*-gnu)
 
12482
  version_type=linux
 
12483
  need_lib_prefix=no
 
12484
  need_version=no
 
12485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12486
  soname_spec='${libname}${release}${shared_ext}$major'
 
12487
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12488
  shlibpath_var=LD_LIBRARY_PATH
 
12489
  shlibpath_overrides_runpath=no
 
12490
  # Some binutils ld are patched to set DT_RUNPATH
 
12491
  save_LDFLAGS=$LDFLAGS
 
12492
  save_libdir=$libdir
 
12493
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
12494
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
12495
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12496
/* end confdefs.h.  */
 
12497
 
 
12498
int
 
12499
main ()
 
12500
{
 
12501
 
 
12502
  ;
 
12503
  return 0;
 
12504
}
 
12505
_ACEOF
 
12506
if ac_fn_c_try_link "$LINENO"; then :
 
12507
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
12508
  shlibpath_overrides_runpath=yes
 
12509
fi
 
12510
fi
 
12511
rm -f core conftest.err conftest.$ac_objext \
 
12512
    conftest$ac_exeext conftest.$ac_ext
 
12513
  LDFLAGS=$save_LDFLAGS
 
12514
  libdir=$save_libdir
 
12515
 
 
12516
  # This implies no fast_install, which is unacceptable.
 
12517
  # Some rework will be needed to allow for fast_install
 
12518
  # before this can be enabled.
 
12519
  hardcode_into_libs=yes
 
12520
 
 
12521
  # Append ld.so.conf contents to the search path
 
12522
  if test -f /etc/ld.so.conf; then
 
12523
    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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12524
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12525
  fi
 
12526
 
 
12527
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12528
  # powerpc, because MkLinux only supported shared libraries with the
 
12529
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12530
  # most powerpc-linux boxes support dynamic linking these days and
 
12531
  # people can always --disable-shared, the test was removed, and we
 
12532
  # assume the GNU/Linux dynamic linker is in use.
 
12533
  dynamic_linker='GNU/Linux ld.so'
 
12534
  ;;
 
12535
 
 
12536
netbsd*)
 
12537
  version_type=sunos
 
12538
  need_lib_prefix=no
 
12539
  need_version=no
 
12540
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12541
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12542
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12543
    dynamic_linker='NetBSD (a.out) ld.so'
 
12544
  else
 
12545
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12546
    soname_spec='${libname}${release}${shared_ext}$major'
 
12547
    dynamic_linker='NetBSD ld.elf_so'
 
12548
  fi
 
12549
  shlibpath_var=LD_LIBRARY_PATH
 
12550
  shlibpath_overrides_runpath=yes
 
12551
  hardcode_into_libs=yes
 
12552
  ;;
 
12553
 
 
12554
newsos6)
 
12555
  version_type=linux
 
12556
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12557
  shlibpath_var=LD_LIBRARY_PATH
 
12558
  shlibpath_overrides_runpath=yes
 
12559
  ;;
 
12560
 
 
12561
*nto* | *qnx*)
 
12562
  version_type=qnx
 
12563
  need_lib_prefix=no
 
12564
  need_version=no
 
12565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12566
  soname_spec='${libname}${release}${shared_ext}$major'
 
12567
  shlibpath_var=LD_LIBRARY_PATH
 
12568
  shlibpath_overrides_runpath=no
 
12569
  hardcode_into_libs=yes
 
12570
  dynamic_linker='ldqnx.so'
 
12571
  ;;
 
12572
 
 
12573
openbsd*)
 
12574
  version_type=sunos
 
12575
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12576
  need_lib_prefix=no
 
12577
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12578
  case $host_os in
 
12579
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
12580
    *)                          need_version=no  ;;
 
12581
  esac
 
12582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12583
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12584
  shlibpath_var=LD_LIBRARY_PATH
 
12585
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12586
    case $host_os in
 
12587
      openbsd2.[89] | openbsd2.[89].*)
 
12588
        shlibpath_overrides_runpath=no
 
12589
        ;;
 
12590
      *)
 
12591
        shlibpath_overrides_runpath=yes
 
12592
        ;;
 
12593
      esac
 
12594
  else
 
12595
    shlibpath_overrides_runpath=yes
 
12596
  fi
 
12597
  ;;
 
12598
 
 
12599
os2*)
 
12600
  libname_spec='$name'
 
12601
  shrext_cmds=".dll"
 
12602
  need_lib_prefix=no
 
12603
  library_names_spec='$libname${shared_ext} $libname.a'
 
12604
  dynamic_linker='OS/2 ld.exe'
 
12605
  shlibpath_var=LIBPATH
 
12606
  ;;
 
12607
 
 
12608
osf3* | osf4* | osf5*)
 
12609
  version_type=osf
 
12610
  need_lib_prefix=no
 
12611
  need_version=no
 
12612
  soname_spec='${libname}${release}${shared_ext}$major'
 
12613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12614
  shlibpath_var=LD_LIBRARY_PATH
 
12615
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12616
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12617
  ;;
 
12618
 
 
12619
rdos*)
 
12620
  dynamic_linker=no
 
12621
  ;;
 
12622
 
 
12623
solaris*)
 
12624
  version_type=linux
 
12625
  need_lib_prefix=no
 
12626
  need_version=no
 
12627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12628
  soname_spec='${libname}${release}${shared_ext}$major'
 
12629
  shlibpath_var=LD_LIBRARY_PATH
 
12630
  shlibpath_overrides_runpath=yes
 
12631
  hardcode_into_libs=yes
 
12632
  # ldd complains unless libraries are executable
 
12633
  postinstall_cmds='chmod +x $lib'
 
12634
  ;;
 
12635
 
 
12636
sunos4*)
 
12637
  version_type=sunos
 
12638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12639
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12640
  shlibpath_var=LD_LIBRARY_PATH
 
12641
  shlibpath_overrides_runpath=yes
 
12642
  if test "$with_gnu_ld" = yes; then
 
12643
    need_lib_prefix=no
 
12644
  fi
 
12645
  need_version=yes
 
12646
  ;;
 
12647
 
 
12648
sysv4 | sysv4.3*)
 
12649
  version_type=linux
 
12650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12651
  soname_spec='${libname}${release}${shared_ext}$major'
 
12652
  shlibpath_var=LD_LIBRARY_PATH
 
12653
  case $host_vendor in
 
12654
    sni)
 
12655
      shlibpath_overrides_runpath=no
 
12656
      need_lib_prefix=no
 
12657
      runpath_var=LD_RUN_PATH
 
12658
      ;;
 
12659
    siemens)
 
12660
      need_lib_prefix=no
 
12661
      ;;
 
12662
    motorola)
 
12663
      need_lib_prefix=no
 
12664
      need_version=no
 
12665
      shlibpath_overrides_runpath=no
 
12666
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12667
      ;;
 
12668
  esac
 
12669
  ;;
 
12670
 
 
12671
sysv4*MP*)
 
12672
  if test -d /usr/nec ;then
 
12673
    version_type=linux
 
12674
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12675
    soname_spec='$libname${shared_ext}.$major'
 
12676
    shlibpath_var=LD_LIBRARY_PATH
 
12677
  fi
 
12678
  ;;
 
12679
 
 
12680
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12681
  version_type=freebsd-elf
 
12682
  need_lib_prefix=no
 
12683
  need_version=no
 
12684
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12685
  soname_spec='${libname}${release}${shared_ext}$major'
 
12686
  shlibpath_var=LD_LIBRARY_PATH
 
12687
  shlibpath_overrides_runpath=yes
 
12688
  hardcode_into_libs=yes
 
12689
  if test "$with_gnu_ld" = yes; then
 
12690
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12691
  else
 
12692
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12693
    case $host_os in
 
12694
      sco3.2v5*)
 
12695
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12696
        ;;
 
12697
    esac
 
12698
  fi
 
12699
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12700
  ;;
 
12701
 
 
12702
tpf*)
 
12703
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
12704
  version_type=linux
 
12705
  need_lib_prefix=no
 
12706
  need_version=no
 
12707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12708
  shlibpath_var=LD_LIBRARY_PATH
 
12709
  shlibpath_overrides_runpath=no
 
12710
  hardcode_into_libs=yes
 
12711
  ;;
 
12712
 
 
12713
uts4*)
 
12714
  version_type=linux
 
12715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12716
  soname_spec='${libname}${release}${shared_ext}$major'
 
12717
  shlibpath_var=LD_LIBRARY_PATH
 
12718
  ;;
 
12719
 
 
12720
*)
 
12721
  dynamic_linker=no
 
12722
  ;;
 
12723
esac
 
12724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
12725
$as_echo "$dynamic_linker" >&6; }
 
12726
test "$dynamic_linker" = no && can_build_shared=no
 
12727
 
 
12728
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12729
if test "$GCC" = yes; then
 
12730
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12731
fi
 
12732
 
 
12733
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
12734
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
12735
fi
 
12736
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
12737
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
12738
fi
 
12739
 
 
12740
 
 
12741
 
 
12742
 
 
12743
 
 
12744
 
 
12745
 
 
12746
 
 
12747
 
 
12748
 
 
12749
 
 
12750
 
 
12751
 
 
12752
 
 
12753
 
 
12754
 
 
12755
 
 
12756
 
 
12757
 
 
12758
 
 
12759
 
 
12760
 
 
12761
 
 
12762
 
 
12763
 
 
12764
 
 
12765
 
 
12766
 
 
12767
 
 
12768
 
 
12769
 
 
12770
 
 
12771
 
 
12772
 
 
12773
 
 
12774
 
 
12775
 
 
12776
 
 
12777
 
 
12778
 
 
12779
 
 
12780
 
 
12781
 
 
12782
 
 
12783
 
 
12784
 
 
12785
 
 
12786
 
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
 
12811
 
 
12812
 
 
12813
 
 
12814
 
 
12815
 
 
12816
 
 
12817
 
 
12818
 
 
12819
 
 
12820
 
 
12821
 
 
12822
 
 
12823
 
 
12824
 
 
12825
 
 
12826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
12827
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
12828
hardcode_action=
 
12829
if test -n "$hardcode_libdir_flag_spec" ||
 
12830
   test -n "$runpath_var" ||
 
12831
   test "X$hardcode_automatic" = "Xyes" ; then
 
12832
 
 
12833
  # We can hardcode non-existent directories.
 
12834
  if test "$hardcode_direct" != no &&
 
12835
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12836
     # have to relink, otherwise we might link with an installed library
 
12837
     # when we should be linking with a yet-to-be-installed one
 
12838
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
12839
     test "$hardcode_minus_L" != no; then
 
12840
    # Linking always hardcodes the temporary library directory.
 
12841
    hardcode_action=relink
 
12842
  else
 
12843
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12844
    hardcode_action=immediate
 
12845
  fi
 
12846
else
 
12847
  # We cannot hardcode anything, or else we can only hardcode existing
 
12848
  # directories.
 
12849
  hardcode_action=unsupported
 
12850
fi
 
12851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
12852
$as_echo "$hardcode_action" >&6; }
 
12853
 
 
12854
if test "$hardcode_action" = relink ||
 
12855
   test "$inherit_rpath" = yes; then
 
12856
  # Fast installation is not supported
 
12857
  enable_fast_install=no
 
12858
elif test "$shlibpath_overrides_runpath" = yes ||
 
12859
     test "$enable_shared" = no; then
 
12860
  # Fast installation is not necessary
 
12861
  enable_fast_install=needless
 
12862
fi
 
12863
 
 
12864
 
 
12865
 
 
12866
 
 
12867
 
 
12868
 
 
12869
  if test "x$enable_dlopen" != xyes; then
 
12870
  enable_dlopen=unknown
 
12871
  enable_dlopen_self=unknown
 
12872
  enable_dlopen_self_static=unknown
 
12873
else
 
12874
  lt_cv_dlopen=no
 
12875
  lt_cv_dlopen_libs=
 
12876
 
 
12877
  case $host_os in
 
12878
  beos*)
 
12879
    lt_cv_dlopen="load_add_on"
 
12880
    lt_cv_dlopen_libs=
 
12881
    lt_cv_dlopen_self=yes
 
12882
    ;;
 
12883
 
 
12884
  mingw* | pw32* | cegcc*)
 
12885
    lt_cv_dlopen="LoadLibrary"
 
12886
    lt_cv_dlopen_libs=
 
12887
    ;;
 
12888
 
 
12889
  cygwin*)
 
12890
    lt_cv_dlopen="dlopen"
 
12891
    lt_cv_dlopen_libs=
 
12892
    ;;
 
12893
 
 
12894
  darwin*)
 
12895
  # if libdl is installed we need to link against it
 
12896
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12897
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12898
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12899
  $as_echo_n "(cached) " >&6
 
12900
else
 
12901
  ac_check_lib_save_LIBS=$LIBS
 
12902
LIBS="-ldl  $LIBS"
 
12903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12904
/* end confdefs.h.  */
 
12905
 
 
12906
/* Override any GCC internal prototype to avoid an error.
 
12907
   Use char because int might match the return type of a GCC
 
12908
   builtin and then its argument prototype would still apply.  */
 
12909
#ifdef __cplusplus
 
12910
extern "C"
 
12911
#endif
 
12912
char dlopen ();
 
12913
int
 
12914
main ()
 
12915
{
 
12916
return dlopen ();
 
12917
  ;
 
12918
  return 0;
 
12919
}
 
12920
_ACEOF
 
12921
if ac_fn_c_try_link "$LINENO"; then :
 
12922
  ac_cv_lib_dl_dlopen=yes
 
12923
else
 
12924
  ac_cv_lib_dl_dlopen=no
 
12925
fi
 
12926
rm -f core conftest.err conftest.$ac_objext \
 
12927
    conftest$ac_exeext conftest.$ac_ext
 
12928
LIBS=$ac_check_lib_save_LIBS
 
12929
fi
 
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12931
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12932
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12933
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12934
else
 
12935
 
 
12936
    lt_cv_dlopen="dyld"
 
12937
    lt_cv_dlopen_libs=
 
12938
    lt_cv_dlopen_self=yes
 
12939
 
 
12940
fi
 
12941
 
 
12942
    ;;
 
12943
 
 
12944
  *)
 
12945
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12946
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
12947
  lt_cv_dlopen="shl_load"
 
12948
else
 
12949
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12950
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12951
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
12952
  $as_echo_n "(cached) " >&6
 
12953
else
 
12954
  ac_check_lib_save_LIBS=$LIBS
 
12955
LIBS="-ldld  $LIBS"
 
12956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12957
/* end confdefs.h.  */
 
12958
 
 
12959
/* Override any GCC internal prototype to avoid an error.
 
12960
   Use char because int might match the return type of a GCC
 
12961
   builtin and then its argument prototype would still apply.  */
 
12962
#ifdef __cplusplus
 
12963
extern "C"
 
12964
#endif
 
12965
char shl_load ();
 
12966
int
 
12967
main ()
 
12968
{
 
12969
return shl_load ();
 
12970
  ;
 
12971
  return 0;
 
12972
}
 
12973
_ACEOF
 
12974
if ac_fn_c_try_link "$LINENO"; then :
 
12975
  ac_cv_lib_dld_shl_load=yes
 
12976
else
 
12977
  ac_cv_lib_dld_shl_load=no
 
12978
fi
 
12979
rm -f core conftest.err conftest.$ac_objext \
 
12980
    conftest$ac_exeext conftest.$ac_ext
 
12981
LIBS=$ac_check_lib_save_LIBS
 
12982
fi
 
12983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12984
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12985
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
12986
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12987
else
 
12988
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12989
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
12990
  lt_cv_dlopen="dlopen"
 
12991
else
 
12992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12993
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12994
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12995
  $as_echo_n "(cached) " >&6
 
12996
else
 
12997
  ac_check_lib_save_LIBS=$LIBS
 
12998
LIBS="-ldl  $LIBS"
 
12999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13000
/* end confdefs.h.  */
 
13001
 
 
13002
/* Override any GCC internal prototype to avoid an error.
 
13003
   Use char because int might match the return type of a GCC
 
13004
   builtin and then its argument prototype would still apply.  */
 
13005
#ifdef __cplusplus
 
13006
extern "C"
 
13007
#endif
 
13008
char dlopen ();
 
13009
int
 
13010
main ()
 
13011
{
 
13012
return dlopen ();
 
13013
  ;
 
13014
  return 0;
 
13015
}
 
13016
_ACEOF
 
13017
if ac_fn_c_try_link "$LINENO"; then :
 
13018
  ac_cv_lib_dl_dlopen=yes
 
13019
else
 
13020
  ac_cv_lib_dl_dlopen=no
 
13021
fi
 
13022
rm -f core conftest.err conftest.$ac_objext \
 
13023
    conftest$ac_exeext conftest.$ac_ext
 
13024
LIBS=$ac_check_lib_save_LIBS
 
13025
fi
 
13026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
13027
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
13028
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
13029
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13030
else
 
13031
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
13032
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
13033
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
13034
  $as_echo_n "(cached) " >&6
 
13035
else
 
13036
  ac_check_lib_save_LIBS=$LIBS
 
13037
LIBS="-lsvld  $LIBS"
 
13038
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13039
/* end confdefs.h.  */
 
13040
 
 
13041
/* Override any GCC internal prototype to avoid an error.
 
13042
   Use char because int might match the return type of a GCC
 
13043
   builtin and then its argument prototype would still apply.  */
 
13044
#ifdef __cplusplus
 
13045
extern "C"
 
13046
#endif
 
13047
char dlopen ();
 
13048
int
 
13049
main ()
 
13050
{
 
13051
return dlopen ();
 
13052
  ;
 
13053
  return 0;
 
13054
}
 
13055
_ACEOF
 
13056
if ac_fn_c_try_link "$LINENO"; then :
 
13057
  ac_cv_lib_svld_dlopen=yes
 
13058
else
 
13059
  ac_cv_lib_svld_dlopen=no
 
13060
fi
 
13061
rm -f core conftest.err conftest.$ac_objext \
 
13062
    conftest$ac_exeext conftest.$ac_ext
 
13063
LIBS=$ac_check_lib_save_LIBS
 
13064
fi
 
13065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
13066
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
13067
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
13068
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13069
else
 
13070
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
13071
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
13072
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
13073
  $as_echo_n "(cached) " >&6
 
13074
else
 
13075
  ac_check_lib_save_LIBS=$LIBS
 
13076
LIBS="-ldld  $LIBS"
 
13077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13078
/* end confdefs.h.  */
 
13079
 
 
13080
/* Override any GCC internal prototype to avoid an error.
 
13081
   Use char because int might match the return type of a GCC
 
13082
   builtin and then its argument prototype would still apply.  */
 
13083
#ifdef __cplusplus
 
13084
extern "C"
 
13085
#endif
 
13086
char dld_link ();
 
13087
int
 
13088
main ()
 
13089
{
 
13090
return dld_link ();
 
13091
  ;
 
13092
  return 0;
 
13093
}
 
13094
_ACEOF
 
13095
if ac_fn_c_try_link "$LINENO"; then :
 
13096
  ac_cv_lib_dld_dld_link=yes
 
13097
else
 
13098
  ac_cv_lib_dld_dld_link=no
 
13099
fi
 
13100
rm -f core conftest.err conftest.$ac_objext \
 
13101
    conftest$ac_exeext conftest.$ac_ext
 
13102
LIBS=$ac_check_lib_save_LIBS
 
13103
fi
 
13104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
13105
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
13106
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
13107
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
13108
fi
 
13109
 
 
13110
 
 
13111
fi
 
13112
 
 
13113
 
 
13114
fi
 
13115
 
 
13116
 
 
13117
fi
 
13118
 
 
13119
 
 
13120
fi
 
13121
 
 
13122
 
 
13123
fi
 
13124
 
 
13125
    ;;
 
13126
  esac
 
13127
 
 
13128
  if test "x$lt_cv_dlopen" != xno; then
 
13129
    enable_dlopen=yes
 
13130
  else
 
13131
    enable_dlopen=no
 
13132
  fi
 
13133
 
 
13134
  case $lt_cv_dlopen in
 
13135
  dlopen)
 
13136
    save_CPPFLAGS="$CPPFLAGS"
 
13137
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13138
 
 
13139
    save_LDFLAGS="$LDFLAGS"
 
13140
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13141
 
 
13142
    save_LIBS="$LIBS"
 
13143
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13144
 
 
13145
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
13146
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
13147
if test "${lt_cv_dlopen_self+set}" = set; then :
 
13148
  $as_echo_n "(cached) " >&6
 
13149
else
 
13150
          if test "$cross_compiling" = yes; then :
 
13151
  lt_cv_dlopen_self=cross
 
13152
else
 
13153
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13154
  lt_status=$lt_dlunknown
 
13155
  cat > conftest.$ac_ext <<_LT_EOF
 
13156
#line 13156 "configure"
 
13157
#include "confdefs.h"
 
13158
 
 
13159
#if HAVE_DLFCN_H
 
13160
#include <dlfcn.h>
 
13161
#endif
 
13162
 
 
13163
#include <stdio.h>
 
13164
 
 
13165
#ifdef RTLD_GLOBAL
 
13166
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13167
#else
 
13168
#  ifdef DL_GLOBAL
 
13169
#    define LT_DLGLOBAL         DL_GLOBAL
 
13170
#  else
 
13171
#    define LT_DLGLOBAL         0
 
13172
#  endif
 
13173
#endif
 
13174
 
 
13175
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13176
   find out it does not work in some platform. */
 
13177
#ifndef LT_DLLAZY_OR_NOW
 
13178
#  ifdef RTLD_LAZY
 
13179
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13180
#  else
 
13181
#    ifdef DL_LAZY
 
13182
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13183
#    else
 
13184
#      ifdef RTLD_NOW
 
13185
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13186
#      else
 
13187
#        ifdef DL_NOW
 
13188
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13189
#        else
 
13190
#          define LT_DLLAZY_OR_NOW      0
 
13191
#        endif
 
13192
#      endif
 
13193
#    endif
 
13194
#  endif
 
13195
#endif
 
13196
 
 
13197
void fnord() { int i=42;}
 
13198
int main ()
 
13199
{
 
13200
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13201
  int status = $lt_dlunknown;
 
13202
 
 
13203
  if (self)
 
13204
    {
 
13205
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13206
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13207
      /* dlclose (self); */
 
13208
    }
 
13209
  else
 
13210
    puts (dlerror ());
 
13211
 
 
13212
  return status;
 
13213
}
 
13214
_LT_EOF
 
13215
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
13216
  (eval $ac_link) 2>&5
 
13217
  ac_status=$?
 
13218
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13219
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13220
    (./conftest; exit; ) >&5 2>/dev/null
 
13221
    lt_status=$?
 
13222
    case x$lt_status in
 
13223
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13224
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13225
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
13226
    esac
 
13227
  else :
 
13228
    # compilation failed
 
13229
    lt_cv_dlopen_self=no
 
13230
  fi
 
13231
fi
 
13232
rm -fr conftest*
 
13233
 
 
13234
 
 
13235
fi
 
13236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
13237
$as_echo "$lt_cv_dlopen_self" >&6; }
 
13238
 
 
13239
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13240
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
13241
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
13242
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
13243
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
13244
  $as_echo_n "(cached) " >&6
 
13245
else
 
13246
          if test "$cross_compiling" = yes; then :
 
13247
  lt_cv_dlopen_self_static=cross
 
13248
else
 
13249
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13250
  lt_status=$lt_dlunknown
 
13251
  cat > conftest.$ac_ext <<_LT_EOF
 
13252
#line 13252 "configure"
 
13253
#include "confdefs.h"
 
13254
 
 
13255
#if HAVE_DLFCN_H
 
13256
#include <dlfcn.h>
 
13257
#endif
 
13258
 
 
13259
#include <stdio.h>
 
13260
 
 
13261
#ifdef RTLD_GLOBAL
 
13262
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13263
#else
 
13264
#  ifdef DL_GLOBAL
 
13265
#    define LT_DLGLOBAL         DL_GLOBAL
 
13266
#  else
 
13267
#    define LT_DLGLOBAL         0
 
13268
#  endif
 
13269
#endif
 
13270
 
 
13271
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13272
   find out it does not work in some platform. */
 
13273
#ifndef LT_DLLAZY_OR_NOW
 
13274
#  ifdef RTLD_LAZY
 
13275
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13276
#  else
 
13277
#    ifdef DL_LAZY
 
13278
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13279
#    else
 
13280
#      ifdef RTLD_NOW
 
13281
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13282
#      else
 
13283
#        ifdef DL_NOW
 
13284
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13285
#        else
 
13286
#          define LT_DLLAZY_OR_NOW      0
 
13287
#        endif
 
13288
#      endif
 
13289
#    endif
 
13290
#  endif
 
13291
#endif
 
13292
 
 
13293
void fnord() { int i=42;}
 
13294
int main ()
 
13295
{
 
13296
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13297
  int status = $lt_dlunknown;
 
13298
 
 
13299
  if (self)
 
13300
    {
 
13301
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13302
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13303
      /* dlclose (self); */
 
13304
    }
 
13305
  else
 
13306
    puts (dlerror ());
 
13307
 
 
13308
  return status;
 
13309
}
 
13310
_LT_EOF
 
13311
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
13312
  (eval $ac_link) 2>&5
 
13313
  ac_status=$?
 
13314
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13315
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13316
    (./conftest; exit; ) >&5 2>/dev/null
 
13317
    lt_status=$?
 
13318
    case x$lt_status in
 
13319
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13320
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13321
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
13322
    esac
 
13323
  else :
 
13324
    # compilation failed
 
13325
    lt_cv_dlopen_self_static=no
 
13326
  fi
 
13327
fi
 
13328
rm -fr conftest*
 
13329
 
 
13330
 
 
13331
fi
 
13332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
13333
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
13334
    fi
 
13335
 
 
13336
    CPPFLAGS="$save_CPPFLAGS"
 
13337
    LDFLAGS="$save_LDFLAGS"
 
13338
    LIBS="$save_LIBS"
 
13339
    ;;
 
13340
  esac
 
13341
 
 
13342
  case $lt_cv_dlopen_self in
 
13343
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13344
  *) enable_dlopen_self=unknown ;;
 
13345
  esac
 
13346
 
 
13347
  case $lt_cv_dlopen_self_static in
 
13348
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13349
  *) enable_dlopen_self_static=unknown ;;
 
13350
  esac
 
13351
fi
 
13352
 
 
13353
 
 
13354
 
 
13355
 
 
13356
 
 
13357
 
 
13358
 
 
13359
 
 
13360
 
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
 
 
13366
 
 
13367
 
 
13368
 
 
13369
striplib=
 
13370
old_striplib=
 
13371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
13372
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
13373
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
13374
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13375
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13377
$as_echo "yes" >&6; }
 
13378
else
 
13379
# FIXME - insert some real tests, host_os isn't really good enough
 
13380
  case $host_os in
 
13381
  darwin*)
 
13382
    if test -n "$STRIP" ; then
 
13383
      striplib="$STRIP -x"
 
13384
      old_striplib="$STRIP -S"
 
13385
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13386
$as_echo "yes" >&6; }
 
13387
    else
 
13388
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13389
$as_echo "no" >&6; }
 
13390
    fi
 
13391
    ;;
 
13392
  *)
 
13393
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13394
$as_echo "no" >&6; }
 
13395
    ;;
 
13396
  esac
 
13397
fi
 
13398
 
 
13399
 
 
13400
 
 
13401
 
 
13402
 
 
13403
 
 
13404
 
 
13405
 
 
13406
 
 
13407
 
 
13408
 
 
13409
 
 
13410
  # Report which library types will actually be built
 
13411
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
13412
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
13413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
13414
$as_echo "$can_build_shared" >&6; }
 
13415
 
 
13416
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
13417
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
13418
  test "$can_build_shared" = "no" && enable_shared=no
 
13419
 
 
13420
  # On AIX, shared libraries and static libraries use the same namespace, and
 
13421
  # are all built from PIC.
 
13422
  case $host_os in
 
13423
  aix3*)
 
13424
    test "$enable_shared" = yes && enable_static=no
 
13425
    if test -n "$RANLIB"; then
 
13426
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13427
      postinstall_cmds='$RANLIB $lib'
 
13428
    fi
 
13429
    ;;
 
13430
 
 
13431
  aix[4-9]*)
 
13432
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13433
      test "$enable_shared" = yes && enable_static=no
 
13434
    fi
 
13435
    ;;
 
13436
  esac
 
13437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
13438
$as_echo "$enable_shared" >&6; }
 
13439
 
 
13440
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
13441
$as_echo_n "checking whether to build static libraries... " >&6; }
 
13442
  # Make sure either enable_shared or enable_static is yes.
 
13443
  test "$enable_shared" = yes || enable_static=yes
 
13444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
13445
$as_echo "$enable_static" >&6; }
 
13446
 
 
13447
 
 
13448
 
 
13449
 
 
13450
fi
 
13451
ac_ext=c
 
13452
ac_cpp='$CPP $CPPFLAGS'
 
13453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13456
 
 
13457
CC="$lt_save_CC"
 
13458
 
 
13459
 
 
13460
ac_ext=cpp
 
13461
ac_cpp='$CXXCPP $CPPFLAGS'
 
13462
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13463
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13464
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13465
 
 
13466
archive_cmds_need_lc_CXX=no
 
13467
allow_undefined_flag_CXX=
 
13468
always_export_symbols_CXX=no
 
13469
archive_expsym_cmds_CXX=
 
13470
compiler_needs_object_CXX=no
 
13471
export_dynamic_flag_spec_CXX=
 
13472
hardcode_direct_CXX=no
 
13473
hardcode_direct_absolute_CXX=no
 
13474
hardcode_libdir_flag_spec_CXX=
 
13475
hardcode_libdir_flag_spec_ld_CXX=
 
13476
hardcode_libdir_separator_CXX=
 
13477
hardcode_minus_L_CXX=no
 
13478
hardcode_shlibpath_var_CXX=unsupported
 
13479
hardcode_automatic_CXX=no
 
13480
inherit_rpath_CXX=no
 
13481
module_cmds_CXX=
 
13482
module_expsym_cmds_CXX=
 
13483
link_all_deplibs_CXX=unknown
 
13484
old_archive_cmds_CXX=$old_archive_cmds
 
13485
no_undefined_flag_CXX=
 
13486
whole_archive_flag_spec_CXX=
 
13487
enable_shared_with_static_runtimes_CXX=no
 
13488
 
 
13489
# Source file extension for C++ test sources.
 
13490
ac_ext=cpp
 
13491
 
 
13492
# Object file extension for compiled C++ test sources.
 
13493
objext=o
 
13494
objext_CXX=$objext
 
13495
 
 
13496
# No sense in running all these tests if we already determined that
 
13497
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
13498
# are currently assumed to apply to all compilers on this platform,
 
13499
# and will be corrupted by setting them based on a non-working compiler.
 
13500
if test "$_lt_caught_CXX_error" != yes; then
 
13501
  # Code to be used in simple compile tests
 
13502
  lt_simple_compile_test_code="int some_variable = 0;"
 
13503
 
 
13504
  # Code to be used in simple link tests
 
13505
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
13506
 
 
13507
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
 
 
13514
# If no C compiler was specified, use CC.
 
13515
LTCC=${LTCC-"$CC"}
 
13516
 
 
13517
# If no C compiler flags were specified, use CFLAGS.
 
13518
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13519
 
 
13520
# Allow CC to be a program name with arguments.
 
13521
compiler=$CC
 
13522
 
 
13523
 
 
13524
  # save warnings/boilerplate of simple test code
 
13525
  ac_outfile=conftest.$ac_objext
 
13526
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13527
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13528
_lt_compiler_boilerplate=`cat conftest.err`
 
13529
$RM conftest*
 
13530
 
 
13531
  ac_outfile=conftest.$ac_objext
 
13532
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13533
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13534
_lt_linker_boilerplate=`cat conftest.err`
 
13535
$RM -r conftest*
 
13536
 
 
13537
 
 
13538
  # Allow CC to be a program name with arguments.
 
13539
  lt_save_CC=$CC
 
13540
  lt_save_LD=$LD
 
13541
  lt_save_GCC=$GCC
 
13542
  GCC=$GXX
 
13543
  lt_save_with_gnu_ld=$with_gnu_ld
 
13544
  lt_save_path_LD=$lt_cv_path_LD
 
13545
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
13546
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
13547
  else
 
13548
    $as_unset lt_cv_prog_gnu_ld
 
13549
  fi
 
13550
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
13551
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
13552
  else
 
13553
    $as_unset lt_cv_path_LD
 
13554
  fi
 
13555
  test -z "${LDCXX+set}" || LD=$LDCXX
 
13556
  CC=${CXX-"c++"}
 
13557
  compiler=$CC
 
13558
  compiler_CXX=$CC
 
13559
  for cc_temp in $compiler""; do
 
13560
  case $cc_temp in
 
13561
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13562
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13563
    \-*) ;;
 
13564
    *) break;;
 
13565
  esac
 
13566
done
 
13567
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13568
 
 
13569
 
 
13570
  if test -n "$compiler"; then
 
13571
    # We don't want -fno-exception when compiling C++ code, so set the
 
13572
    # no_builtin_flag separately
 
13573
    if test "$GXX" = yes; then
 
13574
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
13575
    else
 
13576
      lt_prog_compiler_no_builtin_flag_CXX=
 
13577
    fi
 
13578
 
 
13579
    if test "$GXX" = yes; then
 
13580
      # Set up default GNU C++ configuration
 
13581
 
 
13582
 
 
13583
 
 
13584
# Check whether --with-gnu-ld was given.
 
13585
if test "${with_gnu_ld+set}" = set; then :
 
13586
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
13587
else
 
13588
  with_gnu_ld=no
 
13589
fi
 
13590
 
 
13591
ac_prog=ld
 
13592
if test "$GCC" = yes; then
 
13593
  # Check if gcc -print-prog-name=ld gives a path.
 
13594
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
13595
$as_echo_n "checking for ld used by $CC... " >&6; }
 
13596
  case $host in
 
13597
  *-*-mingw*)
 
13598
    # gcc leaves a trailing carriage return which upsets mingw
 
13599
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
13600
  *)
 
13601
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
13602
  esac
 
13603
  case $ac_prog in
 
13604
    # Accept absolute paths.
 
13605
    [\\/]* | ?:[\\/]*)
 
13606
      re_direlt='/[^/][^/]*/\.\./'
 
13607
      # Canonicalize the pathname of ld
 
13608
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
13609
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
13610
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
13611
      done
 
13612
      test -z "$LD" && LD="$ac_prog"
 
13613
      ;;
 
13614
  "")
 
13615
    # If it fails, then pretend we aren't using GCC.
 
13616
    ac_prog=ld
 
13617
    ;;
 
13618
  *)
 
13619
    # If it is relative, then search for the first ld in PATH.
 
13620
    with_gnu_ld=unknown
 
13621
    ;;
 
13622
  esac
 
13623
elif test "$with_gnu_ld" = yes; then
 
13624
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
13625
$as_echo_n "checking for GNU ld... " >&6; }
 
13626
else
 
13627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
13628
$as_echo_n "checking for non-GNU ld... " >&6; }
 
13629
fi
 
13630
if test "${lt_cv_path_LD+set}" = set; then :
 
13631
  $as_echo_n "(cached) " >&6
 
13632
else
 
13633
  if test -z "$LD"; then
 
13634
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13635
  for ac_dir in $PATH; do
 
13636
    IFS="$lt_save_ifs"
 
13637
    test -z "$ac_dir" && ac_dir=.
 
13638
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
13639
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
13640
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
13641
      # but apparently some variants of GNU ld only accept -v.
 
13642
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
13643
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
13644
      *GNU* | *'with BFD'*)
 
13645
        test "$with_gnu_ld" != no && break
 
13646
        ;;
 
13647
      *)
 
13648
        test "$with_gnu_ld" != yes && break
 
13649
        ;;
 
13650
      esac
 
13651
    fi
 
13652
  done
 
13653
  IFS="$lt_save_ifs"
 
13654
else
 
13655
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
13656
fi
 
13657
fi
 
13658
 
 
13659
LD="$lt_cv_path_LD"
 
13660
if test -n "$LD"; then
 
13661
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
13662
$as_echo "$LD" >&6; }
 
13663
else
 
13664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13665
$as_echo "no" >&6; }
 
13666
fi
 
13667
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
13668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
13669
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
13670
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
13671
  $as_echo_n "(cached) " >&6
 
13672
else
 
13673
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
13674
case `$LD -v 2>&1 </dev/null` in
 
13675
*GNU* | *'with BFD'*)
 
13676
  lt_cv_prog_gnu_ld=yes
 
13677
  ;;
 
13678
*)
 
13679
  lt_cv_prog_gnu_ld=no
 
13680
  ;;
 
13681
esac
 
13682
fi
 
13683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
13684
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
13685
with_gnu_ld=$lt_cv_prog_gnu_ld
 
13686
 
 
13687
 
 
13688
 
 
13689
 
 
13690
 
 
13691
 
 
13692
 
 
13693
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
13694
      # archiving commands below assume that GNU ld is being used.
 
13695
      if test "$with_gnu_ld" = yes; then
 
13696
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13697
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13698
 
 
13699
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13700
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13701
 
 
13702
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
13703
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
13704
        #     investigate it a little bit more. (MM)
 
13705
        wlarc='${wl}'
 
13706
 
 
13707
        # ancient GNU ld didn't support --whole-archive et. al.
 
13708
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
13709
          $GREP 'no-whole-archive' > /dev/null; then
 
13710
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13711
        else
 
13712
          whole_archive_flag_spec_CXX=
 
13713
        fi
 
13714
      else
 
13715
        with_gnu_ld=no
 
13716
        wlarc=
 
13717
 
 
13718
        # A generic and very simple default shared library creation
 
13719
        # command for GNU C++ for the case where it uses the native
 
13720
        # linker, instead of GNU ld.  If possible, this setting should
 
13721
        # overridden to take advantage of the native linker features on
 
13722
        # the platform it is being used on.
 
13723
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13724
      fi
 
13725
 
 
13726
      # Commands to make compiler produce verbose output that lists
 
13727
      # what "hidden" libraries, object files and flags are used when
 
13728
      # linking a shared library.
 
13729
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13730
 
 
13731
    else
 
13732
      GXX=no
 
13733
      with_gnu_ld=no
 
13734
      wlarc=
 
13735
    fi
 
13736
 
 
13737
    # PORTME: fill in a description of your system's C++ link characteristics
 
13738
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13739
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13740
    ld_shlibs_CXX=yes
 
13741
    case $host_os in
 
13742
      aix3*)
 
13743
        # FIXME: insert proper C++ library support
 
13744
        ld_shlibs_CXX=no
 
13745
        ;;
 
13746
      aix[4-9]*)
 
13747
        if test "$host_cpu" = ia64; then
 
13748
          # On IA64, the linker does run time linking by default, so we don't
 
13749
          # have to do anything special.
 
13750
          aix_use_runtimelinking=no
 
13751
          exp_sym_flag='-Bexport'
 
13752
          no_entry_flag=""
 
13753
        else
 
13754
          aix_use_runtimelinking=no
 
13755
 
 
13756
          # Test if we are trying to use run time linking or normal
 
13757
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13758
          # need to do runtime linking.
 
13759
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
13760
            for ld_flag in $LDFLAGS; do
 
13761
              case $ld_flag in
 
13762
              *-brtl*)
 
13763
                aix_use_runtimelinking=yes
 
13764
                break
 
13765
                ;;
 
13766
              esac
 
13767
            done
 
13768
            ;;
 
13769
          esac
 
13770
 
 
13771
          exp_sym_flag='-bexport'
 
13772
          no_entry_flag='-bnoentry'
 
13773
        fi
 
13774
 
 
13775
        # When large executables or shared objects are built, AIX ld can
 
13776
        # have problems creating the table of contents.  If linking a library
 
13777
        # or program results in "error TOC overflow" add -mminimal-toc to
 
13778
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13779
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13780
 
 
13781
        archive_cmds_CXX=''
 
13782
        hardcode_direct_CXX=yes
 
13783
        hardcode_direct_absolute_CXX=yes
 
13784
        hardcode_libdir_separator_CXX=':'
 
13785
        link_all_deplibs_CXX=yes
 
13786
        file_list_spec_CXX='${wl}-f,'
 
13787
 
 
13788
        if test "$GXX" = yes; then
 
13789
          case $host_os in aix4.[012]|aix4.[012].*)
 
13790
          # We only want to do this on AIX 4.2 and lower, the check
 
13791
          # below for broken collect2 doesn't work under 4.3+
 
13792
          collect2name=`${CC} -print-prog-name=collect2`
 
13793
          if test -f "$collect2name" &&
 
13794
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
13795
          then
 
13796
            # We have reworked collect2
 
13797
            :
 
13798
          else
 
13799
            # We have old collect2
 
13800
            hardcode_direct_CXX=unsupported
 
13801
            # It fails to find uninstalled libraries when the uninstalled
 
13802
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
13803
            # to unsupported forces relinking
 
13804
            hardcode_minus_L_CXX=yes
 
13805
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13806
            hardcode_libdir_separator_CXX=
 
13807
          fi
 
13808
          esac
 
13809
          shared_flag='-shared'
 
13810
          if test "$aix_use_runtimelinking" = yes; then
 
13811
            shared_flag="$shared_flag "'${wl}-G'
 
13812
          fi
 
13813
        else
 
13814
          # not using gcc
 
13815
          if test "$host_cpu" = ia64; then
 
13816
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13817
          # chokes on -Wl,-G. The following line is correct:
 
13818
          shared_flag='-G'
 
13819
          else
 
13820
            if test "$aix_use_runtimelinking" = yes; then
 
13821
              shared_flag='${wl}-G'
 
13822
            else
 
13823
              shared_flag='${wl}-bM:SRE'
 
13824
            fi
 
13825
          fi
 
13826
        fi
 
13827
 
 
13828
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
13829
        # It seems that -bexpall does not export symbols beginning with
 
13830
        # underscore (_), so it is better to generate a list of symbols to
 
13831
        # export.
 
13832
        always_export_symbols_CXX=yes
 
13833
        if test "$aix_use_runtimelinking" = yes; then
 
13834
          # Warning - without using the other runtime loading flags (-brtl),
 
13835
          # -berok will link without error, but may produce a broken library.
 
13836
          allow_undefined_flag_CXX='-berok'
 
13837
          # Determine the default libpath from the value encoded in an empty
 
13838
          # executable.
 
13839
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13840
/* end confdefs.h.  */
 
13841
 
 
13842
int
 
13843
main ()
 
13844
{
 
13845
 
 
13846
  ;
 
13847
  return 0;
 
13848
}
 
13849
_ACEOF
 
13850
if ac_fn_cxx_try_link "$LINENO"; then :
 
13851
 
 
13852
lt_aix_libpath_sed='
 
13853
    /Import File Strings/,/^$/ {
 
13854
        /^0/ {
 
13855
            s/^0  *\(.*\)$/\1/
 
13856
            p
 
13857
        }
 
13858
    }'
 
13859
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13860
# Check for a 64-bit object if we didn't find anything.
 
13861
if test -z "$aix_libpath"; then
 
13862
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13863
fi
 
13864
fi
 
13865
rm -f core conftest.err conftest.$ac_objext \
 
13866
    conftest$ac_exeext conftest.$ac_ext
 
13867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13868
 
 
13869
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13870
 
 
13871
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13872
        else
 
13873
          if test "$host_cpu" = ia64; then
 
13874
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13875
            allow_undefined_flag_CXX="-z nodefs"
 
13876
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13877
          else
 
13878
            # Determine the default libpath from the value encoded in an
 
13879
            # empty executable.
 
13880
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13881
/* end confdefs.h.  */
 
13882
 
 
13883
int
 
13884
main ()
 
13885
{
 
13886
 
 
13887
  ;
 
13888
  return 0;
 
13889
}
 
13890
_ACEOF
 
13891
if ac_fn_cxx_try_link "$LINENO"; then :
 
13892
 
 
13893
lt_aix_libpath_sed='
 
13894
    /Import File Strings/,/^$/ {
 
13895
        /^0/ {
 
13896
            s/^0  *\(.*\)$/\1/
 
13897
            p
 
13898
        }
 
13899
    }'
 
13900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13901
# Check for a 64-bit object if we didn't find anything.
 
13902
if test -z "$aix_libpath"; then
 
13903
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13904
fi
 
13905
fi
 
13906
rm -f core conftest.err conftest.$ac_objext \
 
13907
    conftest$ac_exeext conftest.$ac_ext
 
13908
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13909
 
 
13910
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13911
            # Warning - without using the other run time loading flags,
 
13912
            # -berok will link without error, but may produce a broken library.
 
13913
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13914
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13915
            # Exported symbols can be pulled into shared objects from archives
 
13916
            whole_archive_flag_spec_CXX='$convenience'
 
13917
            archive_cmds_need_lc_CXX=yes
 
13918
            # This is similar to how AIX traditionally builds its shared
 
13919
            # libraries.
 
13920
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13921
          fi
 
13922
        fi
 
13923
        ;;
 
13924
 
 
13925
      beos*)
 
13926
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13927
          allow_undefined_flag_CXX=unsupported
 
13928
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13929
          # support --undefined.  This deserves some investigation.  FIXME
 
13930
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13931
        else
 
13932
          ld_shlibs_CXX=no
 
13933
        fi
 
13934
        ;;
 
13935
 
 
13936
      chorus*)
 
13937
        case $cc_basename in
 
13938
          *)
 
13939
          # FIXME: insert proper C++ library support
 
13940
          ld_shlibs_CXX=no
 
13941
          ;;
 
13942
        esac
 
13943
        ;;
 
13944
 
 
13945
      cygwin* | mingw* | pw32* | cegcc*)
 
13946
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13947
        # as there is no search path for DLLs.
 
13948
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13949
        allow_undefined_flag_CXX=unsupported
 
13950
        always_export_symbols_CXX=no
 
13951
        enable_shared_with_static_runtimes_CXX=yes
 
13952
 
 
13953
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13954
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13955
          # If the export-symbols file already is a .def file (1st line
 
13956
          # is EXPORTS), use it as is; otherwise, prepend...
 
13957
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13958
            cp $export_symbols $output_objdir/$soname.def;
 
13959
          else
 
13960
            echo EXPORTS > $output_objdir/$soname.def;
 
13961
            cat $export_symbols >> $output_objdir/$soname.def;
 
13962
          fi~
 
13963
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13964
        else
 
13965
          ld_shlibs_CXX=no
 
13966
        fi
 
13967
        ;;
 
13968
      darwin* | rhapsody*)
 
13969
 
 
13970
 
 
13971
  archive_cmds_need_lc_CXX=no
 
13972
  hardcode_direct_CXX=no
 
13973
  hardcode_automatic_CXX=yes
 
13974
  hardcode_shlibpath_var_CXX=unsupported
 
13975
  whole_archive_flag_spec_CXX=''
 
13976
  link_all_deplibs_CXX=yes
 
13977
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13978
  case $cc_basename in
 
13979
     ifort*) _lt_dar_can_shared=yes ;;
 
13980
     *) _lt_dar_can_shared=$GCC ;;
 
13981
  esac
 
13982
  if test "$_lt_dar_can_shared" = "yes"; then
 
13983
    output_verbose_link_cmd=echo
 
13984
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
13985
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13986
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
13987
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
13988
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13989
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
13990
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
13991
    fi
 
13992
 
 
13993
  else
 
13994
  ld_shlibs_CXX=no
 
13995
  fi
 
13996
 
 
13997
        ;;
 
13998
 
 
13999
      dgux*)
 
14000
        case $cc_basename in
 
14001
          ec++*)
 
14002
            # FIXME: insert proper C++ library support
 
14003
            ld_shlibs_CXX=no
 
14004
            ;;
 
14005
          ghcx*)
 
14006
            # Green Hills C++ Compiler
 
14007
            # FIXME: insert proper C++ library support
 
14008
            ld_shlibs_CXX=no
 
14009
            ;;
 
14010
          *)
 
14011
            # FIXME: insert proper C++ library support
 
14012
            ld_shlibs_CXX=no
 
14013
            ;;
 
14014
        esac
 
14015
        ;;
 
14016
 
 
14017
      freebsd[12]*)
 
14018
        # C++ shared libraries reported to be fairly broken before
 
14019
        # switch to ELF
 
14020
        ld_shlibs_CXX=no
 
14021
        ;;
 
14022
 
 
14023
      freebsd-elf*)
 
14024
        archive_cmds_need_lc_CXX=no
 
14025
        ;;
 
14026
 
 
14027
      freebsd* | dragonfly*)
 
14028
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
14029
        # conventions
 
14030
        ld_shlibs_CXX=yes
 
14031
        ;;
 
14032
 
 
14033
      gnu*)
 
14034
        ;;
 
14035
 
 
14036
      hpux9*)
 
14037
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14038
        hardcode_libdir_separator_CXX=:
 
14039
        export_dynamic_flag_spec_CXX='${wl}-E'
 
14040
        hardcode_direct_CXX=yes
 
14041
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
14042
                                             # but as the default
 
14043
                                             # location of the library.
 
14044
 
 
14045
        case $cc_basename in
 
14046
          CC*)
 
14047
            # FIXME: insert proper C++ library support
 
14048
            ld_shlibs_CXX=no
 
14049
            ;;
 
14050
          aCC*)
 
14051
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14052
            # Commands to make compiler produce verbose output that lists
 
14053
            # what "hidden" libraries, object files and flags are used when
 
14054
            # linking a shared library.
 
14055
            #
 
14056
            # There doesn't appear to be a way to prevent this compiler from
 
14057
            # explicitly linking system object files so we need to strip them
 
14058
            # from the output so that they don't get included in the library
 
14059
            # dependencies.
 
14060
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
14061
            ;;
 
14062
          *)
 
14063
            if test "$GXX" = yes; then
 
14064
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14065
            else
 
14066
              # FIXME: insert proper C++ library support
 
14067
              ld_shlibs_CXX=no
 
14068
            fi
 
14069
            ;;
 
14070
        esac
 
14071
        ;;
 
14072
 
 
14073
      hpux10*|hpux11*)
 
14074
        if test $with_gnu_ld = no; then
 
14075
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14076
          hardcode_libdir_separator_CXX=:
 
14077
 
 
14078
          case $host_cpu in
 
14079
            hppa*64*|ia64*)
 
14080
              ;;
 
14081
            *)
 
14082
              export_dynamic_flag_spec_CXX='${wl}-E'
 
14083
              ;;
 
14084
          esac
 
14085
        fi
 
14086
        case $host_cpu in
 
14087
          hppa*64*|ia64*)
 
14088
            hardcode_direct_CXX=no
 
14089
            hardcode_shlibpath_var_CXX=no
 
14090
            ;;
 
14091
          *)
 
14092
            hardcode_direct_CXX=yes
 
14093
            hardcode_direct_absolute_CXX=yes
 
14094
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
14095
                                                 # but as the default
 
14096
                                                 # location of the library.
 
14097
            ;;
 
14098
        esac
 
14099
 
 
14100
        case $cc_basename in
 
14101
          CC*)
 
14102
            # FIXME: insert proper C++ library support
 
14103
            ld_shlibs_CXX=no
 
14104
            ;;
 
14105
          aCC*)
 
14106
            case $host_cpu in
 
14107
              hppa*64*)
 
14108
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14109
                ;;
 
14110
              ia64*)
 
14111
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14112
                ;;
 
14113
              *)
 
14114
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14115
                ;;
 
14116
            esac
 
14117
            # Commands to make compiler produce verbose output that lists
 
14118
            # what "hidden" libraries, object files and flags are used when
 
14119
            # linking a shared library.
 
14120
            #
 
14121
            # There doesn't appear to be a way to prevent this compiler from
 
14122
            # explicitly linking system object files so we need to strip them
 
14123
            # from the output so that they don't get included in the library
 
14124
            # dependencies.
 
14125
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
14126
            ;;
 
14127
          *)
 
14128
            if test "$GXX" = yes; then
 
14129
              if test $with_gnu_ld = no; then
 
14130
                case $host_cpu in
 
14131
                  hppa*64*)
 
14132
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14133
                    ;;
 
14134
                  ia64*)
 
14135
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14136
                    ;;
 
14137
                  *)
 
14138
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14139
                    ;;
 
14140
                esac
 
14141
              fi
 
14142
            else
 
14143
              # FIXME: insert proper C++ library support
 
14144
              ld_shlibs_CXX=no
 
14145
            fi
 
14146
            ;;
 
14147
        esac
 
14148
        ;;
 
14149
 
 
14150
      interix[3-9]*)
 
14151
        hardcode_direct_CXX=no
 
14152
        hardcode_shlibpath_var_CXX=no
 
14153
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14154
        export_dynamic_flag_spec_CXX='${wl}-E'
 
14155
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14156
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14157
        # default) and relocated if they conflict, which is a slow very memory
 
14158
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
14159
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14160
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14161
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14162
        archive_expsym_cmds_CXX='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'
 
14163
        ;;
 
14164
      irix5* | irix6*)
 
14165
        case $cc_basename in
 
14166
          CC*)
 
14167
            # SGI C++
 
14168
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
14169
 
 
14170
            # Archives containing C++ object files must be created using
 
14171
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
14172
            # necessary to make sure instantiated templates are included
 
14173
            # in the archive.
 
14174
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
14175
            ;;
 
14176
          *)
 
14177
            if test "$GXX" = yes; then
 
14178
              if test "$with_gnu_ld" = no; then
 
14179
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14180
              else
 
14181
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
14182
              fi
 
14183
            fi
 
14184
            link_all_deplibs_CXX=yes
 
14185
            ;;
 
14186
        esac
 
14187
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14188
        hardcode_libdir_separator_CXX=:
 
14189
        inherit_rpath_CXX=yes
 
14190
        ;;
 
14191
 
 
14192
      linux* | k*bsd*-gnu)
 
14193
        case $cc_basename in
 
14194
          KCC*)
 
14195
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
14196
 
 
14197
            # KCC will only create a shared library if the output file
 
14198
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
14199
            # to its proper name (with version) after linking.
 
14200
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
14201
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
14202
            # Commands to make compiler produce verbose output that lists
 
14203
            # what "hidden" libraries, object files and flags are used when
 
14204
            # linking a shared library.
 
14205
            #
 
14206
            # There doesn't appear to be a way to prevent this compiler from
 
14207
            # explicitly linking system object files so we need to strip them
 
14208
            # from the output so that they don't get included in the library
 
14209
            # dependencies.
 
14210
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
14211
 
 
14212
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14213
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14214
 
 
14215
            # Archives containing C++ object files must be created using
 
14216
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
14217
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
14218
            ;;
 
14219
          icpc* | ecpc* )
 
14220
            # Intel C++
 
14221
            with_gnu_ld=yes
 
14222
            # version 8.0 and above of icpc choke on multiply defined symbols
 
14223
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
14224
            # earlier do not add the objects themselves.
 
14225
            case `$CC -V 2>&1` in
 
14226
              *"Version 7."*)
 
14227
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14228
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14229
                ;;
 
14230
              *)  # Version 8.0 or newer
 
14231
                tmp_idyn=
 
14232
                case $host_cpu in
 
14233
                  ia64*) tmp_idyn=' -i_dynamic';;
 
14234
                esac
 
14235
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14236
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14237
                ;;
 
14238
            esac
 
14239
            archive_cmds_need_lc_CXX=no
 
14240
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14241
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14242
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
14243
            ;;
 
14244
          pgCC* | pgcpp*)
 
14245
            # Portland Group C++ compiler
 
14246
            case `$CC -V` in
 
14247
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
14248
              prelink_cmds_CXX='tpldir=Template.dir~
 
14249
                rm -rf $tpldir~
 
14250
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
14251
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
14252
              old_archive_cmds_CXX='tpldir=Template.dir~
 
14253
                rm -rf $tpldir~
 
14254
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
14255
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
14256
                $RANLIB $oldlib'
 
14257
              archive_cmds_CXX='tpldir=Template.dir~
 
14258
                rm -rf $tpldir~
 
14259
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
14260
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
14261
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
14262
                rm -rf $tpldir~
 
14263
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
14264
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
14265
              ;;
 
14266
            *) # Version 6 will use weak symbols
 
14267
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
14268
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
14269
              ;;
 
14270
            esac
 
14271
 
 
14272
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
14273
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14274
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
14275
            ;;
 
14276
          cxx*)
 
14277
            # Compaq C++
 
14278
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14279
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
14280
 
 
14281
            runpath_var=LD_RUN_PATH
 
14282
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
14283
            hardcode_libdir_separator_CXX=:
 
14284
 
 
14285
            # Commands to make compiler produce verbose output that lists
 
14286
            # what "hidden" libraries, object files and flags are used when
 
14287
            # linking a shared library.
 
14288
            #
 
14289
            # There doesn't appear to be a way to prevent this compiler from
 
14290
            # explicitly linking system object files so we need to strip them
 
14291
            # from the output so that they don't get included in the library
 
14292
            # dependencies.
 
14293
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
14294
            ;;
 
14295
          xl*)
 
14296
            # IBM XL 8.0 on PPC, with GNU ld
 
14297
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14298
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14299
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14300
            if test "x$supports_anon_versioning" = xyes; then
 
14301
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
14302
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14303
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
14304
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14305
            fi
 
14306
            ;;
 
14307
          *)
 
14308
            case `$CC -V 2>&1 | sed 5q` in
 
14309
            *Sun\ C*)
 
14310
              # Sun C++ 5.9
 
14311
              no_undefined_flag_CXX=' -zdefs'
 
14312
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14313
              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'
 
14314
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14315
              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'
 
14316
              compiler_needs_object_CXX=yes
 
14317
 
 
14318
              # Not sure whether something based on
 
14319
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
14320
              # would be better.
 
14321
              output_verbose_link_cmd='echo'
 
14322
 
 
14323
              # Archives containing C++ object files must be created using
 
14324
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
14325
              # necessary to make sure instantiated templates are included
 
14326
              # in the archive.
 
14327
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
14328
              ;;
 
14329
            esac
 
14330
            ;;
 
14331
        esac
 
14332
        ;;
 
14333
 
 
14334
      lynxos*)
 
14335
        # FIXME: insert proper C++ library support
 
14336
        ld_shlibs_CXX=no
 
14337
        ;;
 
14338
 
 
14339
      m88k*)
 
14340
        # FIXME: insert proper C++ library support
 
14341
        ld_shlibs_CXX=no
 
14342
        ;;
 
14343
 
 
14344
      mvs*)
 
14345
        case $cc_basename in
 
14346
          cxx*)
 
14347
            # FIXME: insert proper C++ library support
 
14348
            ld_shlibs_CXX=no
 
14349
            ;;
 
14350
          *)
 
14351
            # FIXME: insert proper C++ library support
 
14352
            ld_shlibs_CXX=no
 
14353
            ;;
 
14354
        esac
 
14355
        ;;
 
14356
 
 
14357
      netbsd*)
 
14358
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14359
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
14360
          wlarc=
 
14361
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14362
          hardcode_direct_CXX=yes
 
14363
          hardcode_shlibpath_var_CXX=no
 
14364
        fi
 
14365
        # Workaround some broken pre-1.5 toolchains
 
14366
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
14367
        ;;
 
14368
 
 
14369
      *nto* | *qnx*)
 
14370
        ld_shlibs_CXX=yes
 
14371
        ;;
 
14372
 
 
14373
      openbsd2*)
 
14374
        # C++ shared libraries are fairly broken
 
14375
        ld_shlibs_CXX=no
 
14376
        ;;
 
14377
 
 
14378
      openbsd*)
 
14379
        if test -f /usr/libexec/ld.so; then
 
14380
          hardcode_direct_CXX=yes
 
14381
          hardcode_shlibpath_var_CXX=no
 
14382
          hardcode_direct_absolute_CXX=yes
 
14383
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
14384
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14385
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14386
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
14387
            export_dynamic_flag_spec_CXX='${wl}-E'
 
14388
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14389
          fi
 
14390
          output_verbose_link_cmd=echo
 
14391
        else
 
14392
          ld_shlibs_CXX=no
 
14393
        fi
 
14394
        ;;
 
14395
 
 
14396
      osf3* | osf4* | osf5*)
 
14397
        case $cc_basename in
 
14398
          KCC*)
 
14399
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
14400
 
 
14401
            # KCC will only create a shared library if the output file
 
14402
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
14403
            # to its proper name (with version) after linking.
 
14404
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
14405
 
 
14406
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14407
            hardcode_libdir_separator_CXX=:
 
14408
 
 
14409
            # Archives containing C++ object files must be created using
 
14410
            # the KAI C++ compiler.
 
14411
            case $host in
 
14412
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
14413
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
14414
            esac
 
14415
            ;;
 
14416
          RCC*)
 
14417
            # Rational C++ 2.4.1
 
14418
            # FIXME: insert proper C++ library support
 
14419
            ld_shlibs_CXX=no
 
14420
            ;;
 
14421
          cxx*)
 
14422
            case $host in
 
14423
              osf3*)
 
14424
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14425
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
14426
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14427
                ;;
 
14428
              *)
 
14429
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
14430
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
14431
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
14432
                  echo "-hidden">> $lib.exp~
 
14433
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
14434
                  $RM $lib.exp'
 
14435
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
14436
                ;;
 
14437
            esac
 
14438
 
 
14439
            hardcode_libdir_separator_CXX=:
 
14440
 
 
14441
            # Commands to make compiler produce verbose output that lists
 
14442
            # what "hidden" libraries, object files and flags are used when
 
14443
            # linking a shared library.
 
14444
            #
 
14445
            # There doesn't appear to be a way to prevent this compiler from
 
14446
            # explicitly linking system object files so we need to strip them
 
14447
            # from the output so that they don't get included in the library
 
14448
            # dependencies.
 
14449
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
14450
            ;;
 
14451
          *)
 
14452
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14453
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14454
              case $host in
 
14455
                osf3*)
 
14456
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14457
                  ;;
 
14458
                *)
 
14459
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14460
                  ;;
 
14461
              esac
 
14462
 
 
14463
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14464
              hardcode_libdir_separator_CXX=:
 
14465
 
 
14466
              # Commands to make compiler produce verbose output that lists
 
14467
              # what "hidden" libraries, object files and flags are used when
 
14468
              # linking a shared library.
 
14469
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14470
 
 
14471
            else
 
14472
              # FIXME: insert proper C++ library support
 
14473
              ld_shlibs_CXX=no
 
14474
            fi
 
14475
            ;;
 
14476
        esac
 
14477
        ;;
 
14478
 
 
14479
      psos*)
 
14480
        # FIXME: insert proper C++ library support
 
14481
        ld_shlibs_CXX=no
 
14482
        ;;
 
14483
 
 
14484
      sunos4*)
 
14485
        case $cc_basename in
 
14486
          CC*)
 
14487
            # Sun C++ 4.x
 
14488
            # FIXME: insert proper C++ library support
 
14489
            ld_shlibs_CXX=no
 
14490
            ;;
 
14491
          lcc*)
 
14492
            # Lucid
 
14493
            # FIXME: insert proper C++ library support
 
14494
            ld_shlibs_CXX=no
 
14495
            ;;
 
14496
          *)
 
14497
            # FIXME: insert proper C++ library support
 
14498
            ld_shlibs_CXX=no
 
14499
            ;;
 
14500
        esac
 
14501
        ;;
 
14502
 
 
14503
      solaris*)
 
14504
        case $cc_basename in
 
14505
          CC*)
 
14506
            # Sun C++ 4.2, 5.x and Centerline C++
 
14507
            archive_cmds_need_lc_CXX=yes
 
14508
            no_undefined_flag_CXX=' -zdefs'
 
14509
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14510
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14511
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14512
 
 
14513
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14514
            hardcode_shlibpath_var_CXX=no
 
14515
            case $host_os in
 
14516
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14517
              *)
 
14518
                # The compiler driver will combine and reorder linker options,
 
14519
                # but understands `-z linker_flag'.
 
14520
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14521
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
14522
                ;;
 
14523
            esac
 
14524
            link_all_deplibs_CXX=yes
 
14525
 
 
14526
            output_verbose_link_cmd='echo'
 
14527
 
 
14528
            # Archives containing C++ object files must be created using
 
14529
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
14530
            # necessary to make sure instantiated templates are included
 
14531
            # in the archive.
 
14532
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
14533
            ;;
 
14534
          gcx*)
 
14535
            # Green Hills C++ Compiler
 
14536
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14537
 
 
14538
            # The C++ compiler must be used to create the archive.
 
14539
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
14540
            ;;
 
14541
          *)
 
14542
            # GNU C++ compiler with Solaris linker
 
14543
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14544
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
14545
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
14546
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14547
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14548
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14549
 
 
14550
                # Commands to make compiler produce verbose output that lists
 
14551
                # what "hidden" libraries, object files and flags are used when
 
14552
                # linking a shared library.
 
14553
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14554
              else
 
14555
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
14556
                # platform.
 
14557
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14558
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14559
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14560
 
 
14561
                # Commands to make compiler produce verbose output that lists
 
14562
                # what "hidden" libraries, object files and flags are used when
 
14563
                # linking a shared library.
 
14564
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14565
              fi
 
14566
 
 
14567
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
14568
              case $host_os in
 
14569
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14570
                *)
 
14571
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14572
                  ;;
 
14573
              esac
 
14574
            fi
 
14575
            ;;
 
14576
        esac
 
14577
        ;;
 
14578
 
 
14579
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
14580
      no_undefined_flag_CXX='${wl}-z,text'
 
14581
      archive_cmds_need_lc_CXX=no
 
14582
      hardcode_shlibpath_var_CXX=no
 
14583
      runpath_var='LD_RUN_PATH'
 
14584
 
 
14585
      case $cc_basename in
 
14586
        CC*)
 
14587
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14588
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14589
          ;;
 
14590
        *)
 
14591
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14592
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14593
          ;;
 
14594
      esac
 
14595
      ;;
 
14596
 
 
14597
      sysv5* | sco3.2v5* | sco5v6*)
 
14598
        # Note: We can NOT use -z defs as we might desire, because we do not
 
14599
        # link with -lc, and that would cause any symbols used from libc to
 
14600
        # always be unresolved, which means just about no library would
 
14601
        # ever link correctly.  If we're not using GNU ld we use -z text
 
14602
        # though, which does catch some bad symbols but isn't as heavy-handed
 
14603
        # as -z defs.
 
14604
        no_undefined_flag_CXX='${wl}-z,text'
 
14605
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
14606
        archive_cmds_need_lc_CXX=no
 
14607
        hardcode_shlibpath_var_CXX=no
 
14608
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
14609
        hardcode_libdir_separator_CXX=':'
 
14610
        link_all_deplibs_CXX=yes
 
14611
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
14612
        runpath_var='LD_RUN_PATH'
 
14613
 
 
14614
        case $cc_basename in
 
14615
          CC*)
 
14616
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14617
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14618
            ;;
 
14619
          *)
 
14620
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14621
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14622
            ;;
 
14623
        esac
 
14624
      ;;
 
14625
 
 
14626
      tandem*)
 
14627
        case $cc_basename in
 
14628
          NCC*)
 
14629
            # NonStop-UX NCC 3.20
 
14630
            # FIXME: insert proper C++ library support
 
14631
            ld_shlibs_CXX=no
 
14632
            ;;
 
14633
          *)
 
14634
            # FIXME: insert proper C++ library support
 
14635
            ld_shlibs_CXX=no
 
14636
            ;;
 
14637
        esac
 
14638
        ;;
 
14639
 
 
14640
      vxworks*)
 
14641
        # FIXME: insert proper C++ library support
 
14642
        ld_shlibs_CXX=no
 
14643
        ;;
 
14644
 
 
14645
      *)
 
14646
        # FIXME: insert proper C++ library support
 
14647
        ld_shlibs_CXX=no
 
14648
        ;;
 
14649
    esac
 
14650
 
 
14651
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14652
$as_echo "$ld_shlibs_CXX" >&6; }
 
14653
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14654
 
 
14655
    GCC_CXX="$GXX"
 
14656
    LD_CXX="$LD"
 
14657
 
 
14658
    ## CAVEAT EMPTOR:
 
14659
    ## There is no encapsulation within the following macros, do not change
 
14660
    ## the running order or otherwise move them around unless you know exactly
 
14661
    ## what you are doing...
 
14662
    # Dependencies to place before and after the object being linked:
 
14663
predep_objects_CXX=
 
14664
postdep_objects_CXX=
 
14665
predeps_CXX=
 
14666
postdeps_CXX=
 
14667
compiler_lib_search_path_CXX=
 
14668
 
 
14669
cat > conftest.$ac_ext <<_LT_EOF
 
14670
class Foo
 
14671
{
 
14672
public:
 
14673
  Foo (void) { a = 0; }
 
14674
private:
 
14675
  int a;
 
14676
};
 
14677
_LT_EOF
 
14678
 
 
14679
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14680
  (eval $ac_compile) 2>&5
 
14681
  ac_status=$?
 
14682
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14683
  test $ac_status = 0; }; then
 
14684
  # Parse the compiler output and extract the necessary
 
14685
  # objects, libraries and library flags.
 
14686
 
 
14687
  # Sentinel used to keep track of whether or not we are before
 
14688
  # the conftest object file.
 
14689
  pre_test_object_deps_done=no
 
14690
 
 
14691
  for p in `eval "$output_verbose_link_cmd"`; do
 
14692
    case $p in
 
14693
 
 
14694
    -L* | -R* | -l*)
 
14695
       # Some compilers place space between "-{L,R}" and the path.
 
14696
       # Remove the space.
 
14697
       if test $p = "-L" ||
 
14698
          test $p = "-R"; then
 
14699
         prev=$p
 
14700
         continue
 
14701
       else
 
14702
         prev=
 
14703
       fi
 
14704
 
 
14705
       if test "$pre_test_object_deps_done" = no; then
 
14706
         case $p in
 
14707
         -L* | -R*)
 
14708
           # Internal compiler library paths should come after those
 
14709
           # provided the user.  The postdeps already come after the
 
14710
           # user supplied libs so there is no need to process them.
 
14711
           if test -z "$compiler_lib_search_path_CXX"; then
 
14712
             compiler_lib_search_path_CXX="${prev}${p}"
 
14713
           else
 
14714
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14715
           fi
 
14716
           ;;
 
14717
         # The "-l" case would never come before the object being
 
14718
         # linked, so don't bother handling this case.
 
14719
         esac
 
14720
       else
 
14721
         if test -z "$postdeps_CXX"; then
 
14722
           postdeps_CXX="${prev}${p}"
 
14723
         else
 
14724
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14725
         fi
 
14726
       fi
 
14727
       ;;
 
14728
 
 
14729
    *.$objext)
 
14730
       # This assumes that the test object file only shows up
 
14731
       # once in the compiler output.
 
14732
       if test "$p" = "conftest.$objext"; then
 
14733
         pre_test_object_deps_done=yes
 
14734
         continue
 
14735
       fi
 
14736
 
 
14737
       if test "$pre_test_object_deps_done" = no; then
 
14738
         if test -z "$predep_objects_CXX"; then
 
14739
           predep_objects_CXX="$p"
 
14740
         else
 
14741
           predep_objects_CXX="$predep_objects_CXX $p"
 
14742
         fi
 
14743
       else
 
14744
         if test -z "$postdep_objects_CXX"; then
 
14745
           postdep_objects_CXX="$p"
 
14746
         else
 
14747
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14748
         fi
 
14749
       fi
 
14750
       ;;
 
14751
 
 
14752
    *) ;; # Ignore the rest.
 
14753
 
 
14754
    esac
 
14755
  done
 
14756
 
 
14757
  # Clean up.
 
14758
  rm -f a.out a.exe
 
14759
else
 
14760
  echo "libtool.m4: error: problem compiling CXX test program"
 
14761
fi
 
14762
 
 
14763
$RM -f confest.$objext
 
14764
 
 
14765
# PORTME: override above test on systems where it is broken
 
14766
case $host_os in
 
14767
interix[3-9]*)
 
14768
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14769
  # hack all around it, let's just trust "g++" to DTRT.
 
14770
  predep_objects_CXX=
 
14771
  postdep_objects_CXX=
 
14772
  postdeps_CXX=
 
14773
  ;;
 
14774
 
 
14775
linux*)
 
14776
  case `$CC -V 2>&1 | sed 5q` in
 
14777
  *Sun\ C*)
 
14778
    # Sun C++ 5.9
 
14779
 
 
14780
    # The more standards-conforming stlport4 library is
 
14781
    # incompatible with the Cstd library. Avoid specifying
 
14782
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14783
    # -library=stlport4 depends on it.
 
14784
    case " $CXX $CXXFLAGS " in
 
14785
    *" -library=stlport4 "*)
 
14786
      solaris_use_stlport4=yes
 
14787
      ;;
 
14788
    esac
 
14789
 
 
14790
    if test "$solaris_use_stlport4" != yes; then
 
14791
      postdeps_CXX='-library=Cstd -library=Crun'
 
14792
    fi
 
14793
    ;;
 
14794
  esac
 
14795
  ;;
 
14796
 
 
14797
solaris*)
 
14798
  case $cc_basename in
 
14799
  CC*)
 
14800
    # The more standards-conforming stlport4 library is
 
14801
    # incompatible with the Cstd library. Avoid specifying
 
14802
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14803
    # -library=stlport4 depends on it.
 
14804
    case " $CXX $CXXFLAGS " in
 
14805
    *" -library=stlport4 "*)
 
14806
      solaris_use_stlport4=yes
 
14807
      ;;
 
14808
    esac
 
14809
 
 
14810
    # Adding this requires a known-good setup of shared libraries for
 
14811
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14812
    # archive will be linked into the output, leading to subtle bugs.
 
14813
    if test "$solaris_use_stlport4" != yes; then
 
14814
      postdeps_CXX='-library=Cstd -library=Crun'
 
14815
    fi
 
14816
    ;;
 
14817
  esac
 
14818
  ;;
 
14819
esac
 
14820
 
 
14821
 
 
14822
case " $postdeps_CXX " in
 
14823
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14824
esac
 
14825
 compiler_lib_search_dirs_CXX=
 
14826
if test -n "${compiler_lib_search_path_CXX}"; then
 
14827
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14828
fi
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
 
14846
 
 
14847
 
 
14848
 
 
14849
 
 
14850
 
 
14851
 
 
14852
 
 
14853
 
 
14854
 
 
14855
 
 
14856
 
 
14857
 
 
14858
 
 
14859
 
 
14860
    lt_prog_compiler_wl_CXX=
 
14861
lt_prog_compiler_pic_CXX=
 
14862
lt_prog_compiler_static_CXX=
 
14863
 
 
14864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14865
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14866
 
 
14867
  # C++ specific cases for pic, static, wl, etc.
 
14868
  if test "$GXX" = yes; then
 
14869
    lt_prog_compiler_wl_CXX='-Wl,'
 
14870
    lt_prog_compiler_static_CXX='-static'
 
14871
 
 
14872
    case $host_os in
 
14873
    aix*)
 
14874
      # All AIX code is PIC.
 
14875
      if test "$host_cpu" = ia64; then
 
14876
        # AIX 5 now supports IA64 processor
 
14877
        lt_prog_compiler_static_CXX='-Bstatic'
 
14878
      fi
 
14879
      ;;
 
14880
 
 
14881
    amigaos*)
 
14882
      case $host_cpu in
 
14883
      powerpc)
 
14884
            # see comment about AmigaOS4 .so support
 
14885
            lt_prog_compiler_pic_CXX='-fPIC'
 
14886
        ;;
 
14887
      m68k)
 
14888
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14889
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14890
            # like `-m68040'.
 
14891
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14892
        ;;
 
14893
      esac
 
14894
      ;;
 
14895
 
 
14896
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14897
      # PIC is the default for these OSes.
 
14898
      ;;
 
14899
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14900
      # This hack is so that the source file can tell whether it is being
 
14901
      # built for inclusion in a dll (and should export symbols for example).
 
14902
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14903
      # (--disable-auto-import) libraries
 
14904
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14905
      ;;
 
14906
    darwin* | rhapsody*)
 
14907
      # PIC is the default on this platform
 
14908
      # Common symbols not allowed in MH_DYLIB files
 
14909
      lt_prog_compiler_pic_CXX='-fno-common'
 
14910
      ;;
 
14911
    *djgpp*)
 
14912
      # DJGPP does not support shared libraries at all
 
14913
      lt_prog_compiler_pic_CXX=
 
14914
      ;;
 
14915
    interix[3-9]*)
 
14916
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14917
      # Instead, we relocate shared libraries at runtime.
 
14918
      ;;
 
14919
    sysv4*MP*)
 
14920
      if test -d /usr/nec; then
 
14921
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14922
      fi
 
14923
      ;;
 
14924
    hpux*)
 
14925
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14926
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14927
      # sets the default TLS model and affects inlining.
 
14928
      case $host_cpu in
 
14929
      hppa*64*)
 
14930
        ;;
 
14931
      *)
 
14932
        lt_prog_compiler_pic_CXX='-fPIC'
 
14933
        ;;
 
14934
      esac
 
14935
      ;;
 
14936
    *qnx* | *nto*)
 
14937
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14938
      # it will coredump.
 
14939
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14940
      ;;
 
14941
    *)
 
14942
      lt_prog_compiler_pic_CXX='-fPIC'
 
14943
      ;;
 
14944
    esac
 
14945
  else
 
14946
    case $host_os in
 
14947
      aix[4-9]*)
 
14948
        # All AIX code is PIC.
 
14949
        if test "$host_cpu" = ia64; then
 
14950
          # AIX 5 now supports IA64 processor
 
14951
          lt_prog_compiler_static_CXX='-Bstatic'
 
14952
        else
 
14953
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14954
        fi
 
14955
        ;;
 
14956
      chorus*)
 
14957
        case $cc_basename in
 
14958
        cxch68*)
 
14959
          # Green Hills C++ Compiler
 
14960
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
14961
          ;;
 
14962
        esac
 
14963
        ;;
 
14964
      dgux*)
 
14965
        case $cc_basename in
 
14966
          ec++*)
 
14967
            lt_prog_compiler_pic_CXX='-KPIC'
 
14968
            ;;
 
14969
          ghcx*)
 
14970
            # Green Hills C++ Compiler
 
14971
            lt_prog_compiler_pic_CXX='-pic'
 
14972
            ;;
 
14973
          *)
 
14974
            ;;
 
14975
        esac
 
14976
        ;;
 
14977
      freebsd* | dragonfly*)
 
14978
        # FreeBSD uses GNU C++
 
14979
        ;;
 
14980
      hpux9* | hpux10* | hpux11*)
 
14981
        case $cc_basename in
 
14982
          CC*)
 
14983
            lt_prog_compiler_wl_CXX='-Wl,'
 
14984
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14985
            if test "$host_cpu" != ia64; then
 
14986
              lt_prog_compiler_pic_CXX='+Z'
 
14987
            fi
 
14988
            ;;
 
14989
          aCC*)
 
14990
            lt_prog_compiler_wl_CXX='-Wl,'
 
14991
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14992
            case $host_cpu in
 
14993
            hppa*64*|ia64*)
 
14994
              # +Z the default
 
14995
              ;;
 
14996
            *)
 
14997
              lt_prog_compiler_pic_CXX='+Z'
 
14998
              ;;
 
14999
            esac
 
15000
            ;;
 
15001
          *)
 
15002
            ;;
 
15003
        esac
 
15004
        ;;
 
15005
      interix*)
 
15006
        # This is c89, which is MS Visual C++ (no shared libs)
 
15007
        # Anyone wants to do a port?
 
15008
        ;;
 
15009
      irix5* | irix6* | nonstopux*)
 
15010
        case $cc_basename in
 
15011
          CC*)
 
15012
            lt_prog_compiler_wl_CXX='-Wl,'
 
15013
            lt_prog_compiler_static_CXX='-non_shared'
 
15014
            # CC pic flag -KPIC is the default.
 
15015
            ;;
 
15016
          *)
 
15017
            ;;
 
15018
        esac
 
15019
        ;;
 
15020
      linux* | k*bsd*-gnu)
 
15021
        case $cc_basename in
 
15022
          KCC*)
 
15023
            # KAI C++ Compiler
 
15024
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
15025
            lt_prog_compiler_pic_CXX='-fPIC'
 
15026
            ;;
 
15027
          ecpc* )
 
15028
            # old Intel C++ for x86_64 which still supported -KPIC.
 
15029
            lt_prog_compiler_wl_CXX='-Wl,'
 
15030
            lt_prog_compiler_pic_CXX='-KPIC'
 
15031
            lt_prog_compiler_static_CXX='-static'
 
15032
            ;;
 
15033
          icpc* )
 
15034
            # Intel C++, used to be incompatible with GCC.
 
15035
            # ICC 10 doesn't accept -KPIC any more.
 
15036
            lt_prog_compiler_wl_CXX='-Wl,'
 
15037
            lt_prog_compiler_pic_CXX='-fPIC'
 
15038
            lt_prog_compiler_static_CXX='-static'
 
15039
            ;;
 
15040
          pgCC* | pgcpp*)
 
15041
            # Portland Group C++ compiler
 
15042
            lt_prog_compiler_wl_CXX='-Wl,'
 
15043
            lt_prog_compiler_pic_CXX='-fpic'
 
15044
            lt_prog_compiler_static_CXX='-Bstatic'
 
15045
            ;;
 
15046
          cxx*)
 
15047
            # Compaq C++
 
15048
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
15049
            # Linux and Compaq Tru64 Unix objects are PIC.
 
15050
            lt_prog_compiler_pic_CXX=
 
15051
            lt_prog_compiler_static_CXX='-non_shared'
 
15052
            ;;
 
15053
          xlc* | xlC*)
 
15054
            # IBM XL 8.0 on PPC
 
15055
            lt_prog_compiler_wl_CXX='-Wl,'
 
15056
            lt_prog_compiler_pic_CXX='-qpic'
 
15057
            lt_prog_compiler_static_CXX='-qstaticlink'
 
15058
            ;;
 
15059
          *)
 
15060
            case `$CC -V 2>&1 | sed 5q` in
 
15061
            *Sun\ C*)
 
15062
              # Sun C++ 5.9
 
15063
              lt_prog_compiler_pic_CXX='-KPIC'
 
15064
              lt_prog_compiler_static_CXX='-Bstatic'
 
15065
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
15066
              ;;
 
15067
            esac
 
15068
            ;;
 
15069
        esac
 
15070
        ;;
 
15071
      lynxos*)
 
15072
        ;;
 
15073
      m88k*)
 
15074
        ;;
 
15075
      mvs*)
 
15076
        case $cc_basename in
 
15077
          cxx*)
 
15078
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
15079
            ;;
 
15080
          *)
 
15081
            ;;
 
15082
        esac
 
15083
        ;;
 
15084
      netbsd*)
 
15085
        ;;
 
15086
      *qnx* | *nto*)
 
15087
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
15088
        # it will coredump.
 
15089
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
15090
        ;;
 
15091
      osf3* | osf4* | osf5*)
 
15092
        case $cc_basename in
 
15093
          KCC*)
 
15094
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
15095
            ;;
 
15096
          RCC*)
 
15097
            # Rational C++ 2.4.1
 
15098
            lt_prog_compiler_pic_CXX='-pic'
 
15099
            ;;
 
15100
          cxx*)
 
15101
            # Digital/Compaq C++
 
15102
            lt_prog_compiler_wl_CXX='-Wl,'
 
15103
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
15104
            # Linux and Compaq Tru64 Unix objects are PIC.
 
15105
            lt_prog_compiler_pic_CXX=
 
15106
            lt_prog_compiler_static_CXX='-non_shared'
 
15107
            ;;
 
15108
          *)
 
15109
            ;;
 
15110
        esac
 
15111
        ;;
 
15112
      psos*)
 
15113
        ;;
 
15114
      solaris*)
 
15115
        case $cc_basename in
 
15116
          CC*)
 
15117
            # Sun C++ 4.2, 5.x and Centerline C++
 
15118
            lt_prog_compiler_pic_CXX='-KPIC'
 
15119
            lt_prog_compiler_static_CXX='-Bstatic'
 
15120
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
15121
            ;;
 
15122
          gcx*)
 
15123
            # Green Hills C++ Compiler
 
15124
            lt_prog_compiler_pic_CXX='-PIC'
 
15125
            ;;
 
15126
          *)
 
15127
            ;;
 
15128
        esac
 
15129
        ;;
 
15130
      sunos4*)
 
15131
        case $cc_basename in
 
15132
          CC*)
 
15133
            # Sun C++ 4.x
 
15134
            lt_prog_compiler_pic_CXX='-pic'
 
15135
            lt_prog_compiler_static_CXX='-Bstatic'
 
15136
            ;;
 
15137
          lcc*)
 
15138
            # Lucid
 
15139
            lt_prog_compiler_pic_CXX='-pic'
 
15140
            ;;
 
15141
          *)
 
15142
            ;;
 
15143
        esac
 
15144
        ;;
 
15145
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15146
        case $cc_basename in
 
15147
          CC*)
 
15148
            lt_prog_compiler_wl_CXX='-Wl,'
 
15149
            lt_prog_compiler_pic_CXX='-KPIC'
 
15150
            lt_prog_compiler_static_CXX='-Bstatic'
 
15151
            ;;
 
15152
        esac
 
15153
        ;;
 
15154
      tandem*)
 
15155
        case $cc_basename in
 
15156
          NCC*)
 
15157
            # NonStop-UX NCC 3.20
 
15158
            lt_prog_compiler_pic_CXX='-KPIC'
 
15159
            ;;
 
15160
          *)
 
15161
            ;;
 
15162
        esac
 
15163
        ;;
 
15164
      vxworks*)
 
15165
        ;;
 
15166
      *)
 
15167
        lt_prog_compiler_can_build_shared_CXX=no
 
15168
        ;;
 
15169
    esac
 
15170
  fi
 
15171
 
 
15172
case $host_os in
 
15173
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15174
  *djgpp*)
 
15175
    lt_prog_compiler_pic_CXX=
 
15176
    ;;
 
15177
  *)
 
15178
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
15179
    ;;
 
15180
esac
 
15181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
 
15182
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
15183
 
 
15184
 
 
15185
 
 
15186
#
 
15187
# Check to make sure the PIC flag actually works.
 
15188
#
 
15189
if test -n "$lt_prog_compiler_pic_CXX"; then
 
15190
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
15191
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
15192
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
15193
  $as_echo_n "(cached) " >&6
 
15194
else
 
15195
  lt_cv_prog_compiler_pic_works_CXX=no
 
15196
   ac_outfile=conftest.$ac_objext
 
15197
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15198
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
15199
   # Insert the option either (1) after the last *FLAGS variable, or
 
15200
   # (2) before a word containing "conftest.", or (3) at the end.
 
15201
   # Note that $ac_compile itself does not contain backslashes and begins
 
15202
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15203
   # The option is referenced via a variable to avoid confusing sed.
 
15204
   lt_compile=`echo "$ac_compile" | $SED \
 
15205
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15206
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15207
   -e 's:$: $lt_compiler_flag:'`
 
15208
   (eval echo "\"\$as_me:15208: $lt_compile\"" >&5)
 
15209
   (eval "$lt_compile" 2>conftest.err)
 
15210
   ac_status=$?
 
15211
   cat conftest.err >&5
 
15212
   echo "$as_me:15212: \$? = $ac_status" >&5
 
15213
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15214
     # The compiler can only warn and ignore the option if not recognized
 
15215
     # So say no if there are warnings other than the usual output.
 
15216
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15217
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15218
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15219
       lt_cv_prog_compiler_pic_works_CXX=yes
 
15220
     fi
 
15221
   fi
 
15222
   $RM conftest*
 
15223
 
 
15224
fi
 
15225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
15226
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
15227
 
 
15228
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
15229
    case $lt_prog_compiler_pic_CXX in
 
15230
     "" | " "*) ;;
 
15231
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
15232
     esac
 
15233
else
 
15234
    lt_prog_compiler_pic_CXX=
 
15235
     lt_prog_compiler_can_build_shared_CXX=no
 
15236
fi
 
15237
 
 
15238
fi
 
15239
 
 
15240
 
 
15241
 
 
15242
#
 
15243
# Check to make sure the static flag actually works.
 
15244
#
 
15245
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
15246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15247
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
15248
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
15249
  $as_echo_n "(cached) " >&6
 
15250
else
 
15251
  lt_cv_prog_compiler_static_works_CXX=no
 
15252
   save_LDFLAGS="$LDFLAGS"
 
15253
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15254
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
15255
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15256
     # The linker can only warn and ignore the option if not recognized
 
15257
     # So say no if there are warnings
 
15258
     if test -s conftest.err; then
 
15259
       # Append any errors to the config.log.
 
15260
       cat conftest.err 1>&5
 
15261
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15262
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15263
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15264
         lt_cv_prog_compiler_static_works_CXX=yes
 
15265
       fi
 
15266
     else
 
15267
       lt_cv_prog_compiler_static_works_CXX=yes
 
15268
     fi
 
15269
   fi
 
15270
   $RM -r conftest*
 
15271
   LDFLAGS="$save_LDFLAGS"
 
15272
 
 
15273
fi
 
15274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
15275
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
15276
 
 
15277
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
15278
    :
 
15279
else
 
15280
    lt_prog_compiler_static_CXX=
 
15281
fi
 
15282
 
 
15283
 
 
15284
 
 
15285
 
 
15286
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15287
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
15288
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
15289
  $as_echo_n "(cached) " >&6
 
15290
else
 
15291
  lt_cv_prog_compiler_c_o_CXX=no
 
15292
   $RM -r conftest 2>/dev/null
 
15293
   mkdir conftest
 
15294
   cd conftest
 
15295
   mkdir out
 
15296
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15297
 
 
15298
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15299
   # Insert the option either (1) after the last *FLAGS variable, or
 
15300
   # (2) before a word containing "conftest.", or (3) at the end.
 
15301
   # Note that $ac_compile itself does not contain backslashes and begins
 
15302
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15303
   lt_compile=`echo "$ac_compile" | $SED \
 
15304
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15305
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15306
   -e 's:$: $lt_compiler_flag:'`
 
15307
   (eval echo "\"\$as_me:15307: $lt_compile\"" >&5)
 
15308
   (eval "$lt_compile" 2>out/conftest.err)
 
15309
   ac_status=$?
 
15310
   cat out/conftest.err >&5
 
15311
   echo "$as_me:15311: \$? = $ac_status" >&5
 
15312
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15313
   then
 
15314
     # The compiler can only warn and ignore the option if not recognized
 
15315
     # So say no if there are warnings
 
15316
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15317
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15318
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15319
       lt_cv_prog_compiler_c_o_CXX=yes
 
15320
     fi
 
15321
   fi
 
15322
   chmod u+w . 2>&5
 
15323
   $RM conftest*
 
15324
   # SGI C++ compiler will create directory out/ii_files/ for
 
15325
   # template instantiation
 
15326
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
15327
   $RM out/* && rmdir out
 
15328
   cd ..
 
15329
   $RM -r conftest
 
15330
   $RM conftest*
 
15331
 
 
15332
fi
 
15333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
15334
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
15335
 
 
15336
 
 
15337
 
 
15338
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15339
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
15340
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
15341
  $as_echo_n "(cached) " >&6
 
15342
else
 
15343
  lt_cv_prog_compiler_c_o_CXX=no
 
15344
   $RM -r conftest 2>/dev/null
 
15345
   mkdir conftest
 
15346
   cd conftest
 
15347
   mkdir out
 
15348
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15349
 
 
15350
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15351
   # Insert the option either (1) after the last *FLAGS variable, or
 
15352
   # (2) before a word containing "conftest.", or (3) at the end.
 
15353
   # Note that $ac_compile itself does not contain backslashes and begins
 
15354
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15355
   lt_compile=`echo "$ac_compile" | $SED \
 
15356
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15357
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15358
   -e 's:$: $lt_compiler_flag:'`
 
15359
   (eval echo "\"\$as_me:15359: $lt_compile\"" >&5)
 
15360
   (eval "$lt_compile" 2>out/conftest.err)
 
15361
   ac_status=$?
 
15362
   cat out/conftest.err >&5
 
15363
   echo "$as_me:15363: \$? = $ac_status" >&5
 
15364
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15365
   then
 
15366
     # The compiler can only warn and ignore the option if not recognized
 
15367
     # So say no if there are warnings
 
15368
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15369
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15370
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15371
       lt_cv_prog_compiler_c_o_CXX=yes
 
15372
     fi
 
15373
   fi
 
15374
   chmod u+w . 2>&5
 
15375
   $RM conftest*
 
15376
   # SGI C++ compiler will create directory out/ii_files/ for
 
15377
   # template instantiation
 
15378
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
15379
   $RM out/* && rmdir out
 
15380
   cd ..
 
15381
   $RM -r conftest
 
15382
   $RM conftest*
 
15383
 
 
15384
fi
 
15385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
15386
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
15387
 
 
15388
 
 
15389
 
 
15390
 
 
15391
hard_links="nottested"
 
15392
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
15393
  # do not overwrite the value of need_locks provided by the user
 
15394
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
15395
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
15396
  hard_links=yes
 
15397
  $RM conftest*
 
15398
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15399
  touch conftest.a
 
15400
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15401
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
15403
$as_echo "$hard_links" >&6; }
 
15404
  if test "$hard_links" = no; then
 
15405
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15406
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15407
    need_locks=warn
 
15408
  fi
 
15409
else
 
15410
  need_locks=no
 
15411
fi
 
15412
 
 
15413
 
 
15414
 
 
15415
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15416
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
15417
 
 
15418
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15419
  case $host_os in
 
15420
  aix[4-9]*)
 
15421
    # If we're using GNU nm, then we don't want the "-C" option.
 
15422
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15423
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
15424
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
15425
    else
 
15426
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
15427
    fi
 
15428
    ;;
 
15429
  pw32*)
 
15430
    export_symbols_cmds_CXX="$ltdll_cmds"
 
15431
  ;;
 
15432
  cygwin* | mingw* | cegcc*)
 
15433
    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'
 
15434
  ;;
 
15435
  *)
 
15436
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15437
  ;;
 
15438
  esac
 
15439
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15440
 
 
15441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
15442
$as_echo "$ld_shlibs_CXX" >&6; }
 
15443
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15444
 
 
15445
with_gnu_ld_CXX=$with_gnu_ld
 
15446
 
 
15447
 
 
15448
 
 
15449
 
 
15450
 
 
15451
 
 
15452
#
 
15453
# Do we need to explicitly link libc?
 
15454
#
 
15455
case "x$archive_cmds_need_lc_CXX" in
 
15456
x|xyes)
 
15457
  # Assume -lc should be added
 
15458
  archive_cmds_need_lc_CXX=yes
 
15459
 
 
15460
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15461
    case $archive_cmds_CXX in
 
15462
    *'~'*)
 
15463
      # FIXME: we may have to deal with multi-command sequences.
 
15464
      ;;
 
15465
    '$CC '*)
 
15466
      # Test whether the compiler implicitly links with -lc since on some
 
15467
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15468
      # to ld, don't add -lc before -lgcc.
 
15469
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
15470
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15471
      $RM conftest*
 
15472
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15473
 
 
15474
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
15475
  (eval $ac_compile) 2>&5
 
15476
  ac_status=$?
 
15477
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15478
  test $ac_status = 0; } 2>conftest.err; then
 
15479
        soname=conftest
 
15480
        lib=conftest
 
15481
        libobjs=conftest.$ac_objext
 
15482
        deplibs=
 
15483
        wl=$lt_prog_compiler_wl_CXX
 
15484
        pic_flag=$lt_prog_compiler_pic_CXX
 
15485
        compiler_flags=-v
 
15486
        linker_flags=-v
 
15487
        verstring=
 
15488
        output_objdir=.
 
15489
        libname=conftest
 
15490
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
15491
        allow_undefined_flag_CXX=
 
15492
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
15493
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15494
  ac_status=$?
 
15495
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15496
  test $ac_status = 0; }
 
15497
        then
 
15498
          archive_cmds_need_lc_CXX=no
 
15499
        else
 
15500
          archive_cmds_need_lc_CXX=yes
 
15501
        fi
 
15502
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
15503
      else
 
15504
        cat conftest.err 1>&5
 
15505
      fi
 
15506
      $RM conftest*
 
15507
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
 
15508
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
15509
      ;;
 
15510
    esac
 
15511
  fi
 
15512
  ;;
 
15513
esac
 
15514
 
 
15515
 
 
15516
 
 
15517
 
 
15518
 
 
15519
 
 
15520
 
 
15521
 
 
15522
 
 
15523
 
 
15524
 
 
15525
 
 
15526
 
 
15527
 
 
15528
 
 
15529
 
 
15530
 
 
15531
 
 
15532
 
 
15533
 
 
15534
 
 
15535
 
 
15536
 
 
15537
 
 
15538
 
 
15539
 
 
15540
 
 
15541
 
 
15542
 
 
15543
 
 
15544
 
 
15545
 
 
15546
 
 
15547
 
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
 
 
15553
 
 
15554
 
 
15555
 
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
 
 
15567
 
 
15568
 
 
15569
 
 
15570
 
 
15571
 
 
15572
 
 
15573
 
 
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
15579
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15580
 
 
15581
library_names_spec=
 
15582
libname_spec='lib$name'
 
15583
soname_spec=
 
15584
shrext_cmds=".so"
 
15585
postinstall_cmds=
 
15586
postuninstall_cmds=
 
15587
finish_cmds=
 
15588
finish_eval=
 
15589
shlibpath_var=
 
15590
shlibpath_overrides_runpath=unknown
 
15591
version_type=none
 
15592
dynamic_linker="$host_os ld.so"
 
15593
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15594
need_lib_prefix=unknown
 
15595
hardcode_into_libs=no
 
15596
 
 
15597
# when you set need_version to no, make sure it does not cause -set_version
 
15598
# flags to be left without arguments
 
15599
need_version=unknown
 
15600
 
 
15601
case $host_os in
 
15602
aix3*)
 
15603
  version_type=linux
 
15604
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15605
  shlibpath_var=LIBPATH
 
15606
 
 
15607
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15608
  soname_spec='${libname}${release}${shared_ext}$major'
 
15609
  ;;
 
15610
 
 
15611
aix[4-9]*)
 
15612
  version_type=linux
 
15613
  need_lib_prefix=no
 
15614
  need_version=no
 
15615
  hardcode_into_libs=yes
 
15616
  if test "$host_cpu" = ia64; then
 
15617
    # AIX 5 supports IA64
 
15618
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15619
    shlibpath_var=LD_LIBRARY_PATH
 
15620
  else
 
15621
    # With GCC up to 2.95.x, collect2 would create an import file
 
15622
    # for dependence libraries.  The import file would start with
 
15623
    # the line `#! .'.  This would cause the generated library to
 
15624
    # depend on `.', always an invalid library.  This was fixed in
 
15625
    # development snapshots of GCC prior to 3.0.
 
15626
    case $host_os in
 
15627
      aix4 | aix4.[01] | aix4.[01].*)
 
15628
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15629
           echo ' yes '
 
15630
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15631
        :
 
15632
      else
 
15633
        can_build_shared=no
 
15634
      fi
 
15635
      ;;
 
15636
    esac
 
15637
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15638
    # soname into executable. Probably we can add versioning support to
 
15639
    # collect2, so additional links can be useful in future.
 
15640
    if test "$aix_use_runtimelinking" = yes; then
 
15641
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15642
      # instead of lib<name>.a to let people know that these are not
 
15643
      # typical AIX shared libraries.
 
15644
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15645
    else
 
15646
      # We preserve .a as extension for shared libraries through AIX4.2
 
15647
      # and later when we are not doing run time linking.
 
15648
      library_names_spec='${libname}${release}.a $libname.a'
 
15649
      soname_spec='${libname}${release}${shared_ext}$major'
 
15650
    fi
 
15651
    shlibpath_var=LIBPATH
 
15652
  fi
 
15653
  ;;
 
15654
 
 
15655
amigaos*)
 
15656
  case $host_cpu in
 
15657
  powerpc)
 
15658
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
15659
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
15660
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15661
    ;;
 
15662
  m68k)
 
15663
    library_names_spec='$libname.ixlibrary $libname.a'
 
15664
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15665
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15666
    ;;
 
15667
  esac
 
15668
  ;;
 
15669
 
 
15670
beos*)
 
15671
  library_names_spec='${libname}${shared_ext}'
 
15672
  dynamic_linker="$host_os ld.so"
 
15673
  shlibpath_var=LIBRARY_PATH
 
15674
  ;;
 
15675
 
 
15676
bsdi[45]*)
 
15677
  version_type=linux
 
15678
  need_version=no
 
15679
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15680
  soname_spec='${libname}${release}${shared_ext}$major'
 
15681
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15682
  shlibpath_var=LD_LIBRARY_PATH
 
15683
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15684
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15685
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15686
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15687
  # libtool to hard-code these into programs
 
15688
  ;;
 
15689
 
 
15690
cygwin* | mingw* | pw32* | cegcc*)
 
15691
  version_type=windows
 
15692
  shrext_cmds=".dll"
 
15693
  need_version=no
 
15694
  need_lib_prefix=no
 
15695
 
 
15696
  case $GCC,$host_os in
 
15697
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
15698
    library_names_spec='$libname.dll.a'
 
15699
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15700
    postinstall_cmds='base_file=`basename \${file}`~
 
15701
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15702
      dldir=$destdir/`dirname \$dlpath`~
 
15703
      test -d \$dldir || mkdir -p \$dldir~
 
15704
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15705
      chmod a+x \$dldir/$dlname~
 
15706
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15707
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15708
      fi'
 
15709
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15710
      dlpath=$dir/\$dldll~
 
15711
       $RM \$dlpath'
 
15712
    shlibpath_overrides_runpath=yes
 
15713
 
 
15714
    case $host_os in
 
15715
    cygwin*)
 
15716
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15717
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15718
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15719
      ;;
 
15720
    mingw* | cegcc*)
 
15721
      # MinGW DLLs use traditional 'lib' prefix
 
15722
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15723
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15724
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15725
        # It is most probably a Windows format PATH printed by
 
15726
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15727
        # path with ; separators, and with drive letters. We can handle the
 
15728
        # drive letters (cygwin fileutils understands them), so leave them,
 
15729
        # especially as we might pass files found there to a mingw objdump,
 
15730
        # which wouldn't understand a cygwinified path. Ahh.
 
15731
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15732
      else
 
15733
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15734
      fi
 
15735
      ;;
 
15736
    pw32*)
 
15737
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15738
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15739
      ;;
 
15740
    esac
 
15741
    ;;
 
15742
 
 
15743
  *)
 
15744
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15745
    ;;
 
15746
  esac
 
15747
  dynamic_linker='Win32 ld.exe'
 
15748
  # FIXME: first we should search . and the directory the executable is in
 
15749
  shlibpath_var=PATH
 
15750
  ;;
 
15751
 
 
15752
darwin* | rhapsody*)
 
15753
  dynamic_linker="$host_os dyld"
 
15754
  version_type=darwin
 
15755
  need_lib_prefix=no
 
15756
  need_version=no
 
15757
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15758
  soname_spec='${libname}${release}${major}$shared_ext'
 
15759
  shlibpath_overrides_runpath=yes
 
15760
  shlibpath_var=DYLD_LIBRARY_PATH
 
15761
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15762
 
 
15763
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15764
  ;;
 
15765
 
 
15766
dgux*)
 
15767
  version_type=linux
 
15768
  need_lib_prefix=no
 
15769
  need_version=no
 
15770
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15771
  soname_spec='${libname}${release}${shared_ext}$major'
 
15772
  shlibpath_var=LD_LIBRARY_PATH
 
15773
  ;;
 
15774
 
 
15775
freebsd1*)
 
15776
  dynamic_linker=no
 
15777
  ;;
 
15778
 
 
15779
freebsd* | dragonfly*)
 
15780
  # DragonFly does not have aout.  When/if they implement a new
 
15781
  # versioning mechanism, adjust this.
 
15782
  if test -x /usr/bin/objformat; then
 
15783
    objformat=`/usr/bin/objformat`
 
15784
  else
 
15785
    case $host_os in
 
15786
    freebsd[123]*) objformat=aout ;;
 
15787
    *) objformat=elf ;;
 
15788
    esac
 
15789
  fi
 
15790
  version_type=freebsd-$objformat
 
15791
  case $version_type in
 
15792
    freebsd-elf*)
 
15793
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15794
      need_version=no
 
15795
      need_lib_prefix=no
 
15796
      ;;
 
15797
    freebsd-*)
 
15798
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15799
      need_version=yes
 
15800
      ;;
 
15801
  esac
 
15802
  shlibpath_var=LD_LIBRARY_PATH
 
15803
  case $host_os in
 
15804
  freebsd2*)
 
15805
    shlibpath_overrides_runpath=yes
 
15806
    ;;
 
15807
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15808
    shlibpath_overrides_runpath=yes
 
15809
    hardcode_into_libs=yes
 
15810
    ;;
 
15811
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15812
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15813
    shlibpath_overrides_runpath=no
 
15814
    hardcode_into_libs=yes
 
15815
    ;;
 
15816
  *) # from 4.6 on, and DragonFly
 
15817
    shlibpath_overrides_runpath=yes
 
15818
    hardcode_into_libs=yes
 
15819
    ;;
 
15820
  esac
 
15821
  ;;
 
15822
 
 
15823
gnu*)
 
15824
  version_type=linux
 
15825
  need_lib_prefix=no
 
15826
  need_version=no
 
15827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15828
  soname_spec='${libname}${release}${shared_ext}$major'
 
15829
  shlibpath_var=LD_LIBRARY_PATH
 
15830
  hardcode_into_libs=yes
 
15831
  ;;
 
15832
 
 
15833
hpux9* | hpux10* | hpux11*)
 
15834
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15835
  # link against other versions.
 
15836
  version_type=sunos
 
15837
  need_lib_prefix=no
 
15838
  need_version=no
 
15839
  case $host_cpu in
 
15840
  ia64*)
 
15841
    shrext_cmds='.so'
 
15842
    hardcode_into_libs=yes
 
15843
    dynamic_linker="$host_os dld.so"
 
15844
    shlibpath_var=LD_LIBRARY_PATH
 
15845
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15846
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15847
    soname_spec='${libname}${release}${shared_ext}$major'
 
15848
    if test "X$HPUX_IA64_MODE" = X32; then
 
15849
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15850
    else
 
15851
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15852
    fi
 
15853
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15854
    ;;
 
15855
  hppa*64*)
 
15856
    shrext_cmds='.sl'
 
15857
    hardcode_into_libs=yes
 
15858
    dynamic_linker="$host_os dld.sl"
 
15859
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15860
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15862
    soname_spec='${libname}${release}${shared_ext}$major'
 
15863
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15864
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15865
    ;;
 
15866
  *)
 
15867
    shrext_cmds='.sl'
 
15868
    dynamic_linker="$host_os dld.sl"
 
15869
    shlibpath_var=SHLIB_PATH
 
15870
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15871
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15872
    soname_spec='${libname}${release}${shared_ext}$major'
 
15873
    ;;
 
15874
  esac
 
15875
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15876
  postinstall_cmds='chmod 555 $lib'
 
15877
  ;;
 
15878
 
 
15879
interix[3-9]*)
 
15880
  version_type=linux
 
15881
  need_lib_prefix=no
 
15882
  need_version=no
 
15883
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15884
  soname_spec='${libname}${release}${shared_ext}$major'
 
15885
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15886
  shlibpath_var=LD_LIBRARY_PATH
 
15887
  shlibpath_overrides_runpath=no
 
15888
  hardcode_into_libs=yes
 
15889
  ;;
 
15890
 
 
15891
irix5* | irix6* | nonstopux*)
 
15892
  case $host_os in
 
15893
    nonstopux*) version_type=nonstopux ;;
 
15894
    *)
 
15895
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15896
                version_type=linux
 
15897
        else
 
15898
                version_type=irix
 
15899
        fi ;;
 
15900
  esac
 
15901
  need_lib_prefix=no
 
15902
  need_version=no
 
15903
  soname_spec='${libname}${release}${shared_ext}$major'
 
15904
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15905
  case $host_os in
 
15906
  irix5* | nonstopux*)
 
15907
    libsuff= shlibsuff=
 
15908
    ;;
 
15909
  *)
 
15910
    case $LD in # libtool.m4 will add one of these switches to LD
 
15911
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15912
      libsuff= shlibsuff= libmagic=32-bit;;
 
15913
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15914
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15915
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15916
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15917
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15918
    esac
 
15919
    ;;
 
15920
  esac
 
15921
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15922
  shlibpath_overrides_runpath=no
 
15923
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15924
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15925
  hardcode_into_libs=yes
 
15926
  ;;
 
15927
 
 
15928
# No shared lib support for Linux oldld, aout, or coff.
 
15929
linux*oldld* | linux*aout* | linux*coff*)
 
15930
  dynamic_linker=no
 
15931
  ;;
 
15932
 
 
15933
# This must be Linux ELF.
 
15934
linux* | k*bsd*-gnu)
 
15935
  version_type=linux
 
15936
  need_lib_prefix=no
 
15937
  need_version=no
 
15938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15939
  soname_spec='${libname}${release}${shared_ext}$major'
 
15940
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15941
  shlibpath_var=LD_LIBRARY_PATH
 
15942
  shlibpath_overrides_runpath=no
 
15943
  # Some binutils ld are patched to set DT_RUNPATH
 
15944
  save_LDFLAGS=$LDFLAGS
 
15945
  save_libdir=$libdir
 
15946
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15947
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15948
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15949
/* end confdefs.h.  */
 
15950
 
 
15951
int
 
15952
main ()
 
15953
{
 
15954
 
 
15955
  ;
 
15956
  return 0;
 
15957
}
 
15958
_ACEOF
 
15959
if ac_fn_cxx_try_link "$LINENO"; then :
 
15960
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15961
  shlibpath_overrides_runpath=yes
 
15962
fi
 
15963
fi
 
15964
rm -f core conftest.err conftest.$ac_objext \
 
15965
    conftest$ac_exeext conftest.$ac_ext
 
15966
  LDFLAGS=$save_LDFLAGS
 
15967
  libdir=$save_libdir
 
15968
 
 
15969
  # This implies no fast_install, which is unacceptable.
 
15970
  # Some rework will be needed to allow for fast_install
 
15971
  # before this can be enabled.
 
15972
  hardcode_into_libs=yes
 
15973
 
 
15974
  # Append ld.so.conf contents to the search path
 
15975
  if test -f /etc/ld.so.conf; then
 
15976
    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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15977
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15978
  fi
 
15979
 
 
15980
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15981
  # powerpc, because MkLinux only supported shared libraries with the
 
15982
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15983
  # most powerpc-linux boxes support dynamic linking these days and
 
15984
  # people can always --disable-shared, the test was removed, and we
 
15985
  # assume the GNU/Linux dynamic linker is in use.
 
15986
  dynamic_linker='GNU/Linux ld.so'
 
15987
  ;;
 
15988
 
 
15989
netbsd*)
 
15990
  version_type=sunos
 
15991
  need_lib_prefix=no
 
15992
  need_version=no
 
15993
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15994
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15995
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15996
    dynamic_linker='NetBSD (a.out) ld.so'
 
15997
  else
 
15998
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15999
    soname_spec='${libname}${release}${shared_ext}$major'
 
16000
    dynamic_linker='NetBSD ld.elf_so'
 
16001
  fi
 
16002
  shlibpath_var=LD_LIBRARY_PATH
 
16003
  shlibpath_overrides_runpath=yes
 
16004
  hardcode_into_libs=yes
 
16005
  ;;
 
16006
 
 
16007
newsos6)
 
16008
  version_type=linux
 
16009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16010
  shlibpath_var=LD_LIBRARY_PATH
 
16011
  shlibpath_overrides_runpath=yes
 
16012
  ;;
 
16013
 
 
16014
*nto* | *qnx*)
 
16015
  version_type=qnx
 
16016
  need_lib_prefix=no
 
16017
  need_version=no
 
16018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16019
  soname_spec='${libname}${release}${shared_ext}$major'
 
16020
  shlibpath_var=LD_LIBRARY_PATH
 
16021
  shlibpath_overrides_runpath=no
 
16022
  hardcode_into_libs=yes
 
16023
  dynamic_linker='ldqnx.so'
 
16024
  ;;
 
16025
 
 
16026
openbsd*)
 
16027
  version_type=sunos
 
16028
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16029
  need_lib_prefix=no
 
16030
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16031
  case $host_os in
 
16032
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
16033
    *)                          need_version=no  ;;
 
16034
  esac
 
16035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16036
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16037
  shlibpath_var=LD_LIBRARY_PATH
 
16038
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16039
    case $host_os in
 
16040
      openbsd2.[89] | openbsd2.[89].*)
 
16041
        shlibpath_overrides_runpath=no
 
16042
        ;;
 
16043
      *)
 
16044
        shlibpath_overrides_runpath=yes
 
16045
        ;;
 
16046
      esac
 
16047
  else
 
16048
    shlibpath_overrides_runpath=yes
 
16049
  fi
 
16050
  ;;
 
16051
 
 
16052
os2*)
 
16053
  libname_spec='$name'
 
16054
  shrext_cmds=".dll"
 
16055
  need_lib_prefix=no
 
16056
  library_names_spec='$libname${shared_ext} $libname.a'
 
16057
  dynamic_linker='OS/2 ld.exe'
 
16058
  shlibpath_var=LIBPATH
 
16059
  ;;
 
16060
 
 
16061
osf3* | osf4* | osf5*)
 
16062
  version_type=osf
 
16063
  need_lib_prefix=no
 
16064
  need_version=no
 
16065
  soname_spec='${libname}${release}${shared_ext}$major'
 
16066
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16067
  shlibpath_var=LD_LIBRARY_PATH
 
16068
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16069
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16070
  ;;
 
16071
 
 
16072
rdos*)
 
16073
  dynamic_linker=no
 
16074
  ;;
 
16075
 
 
16076
solaris*)
 
16077
  version_type=linux
 
16078
  need_lib_prefix=no
 
16079
  need_version=no
 
16080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16081
  soname_spec='${libname}${release}${shared_ext}$major'
 
16082
  shlibpath_var=LD_LIBRARY_PATH
 
16083
  shlibpath_overrides_runpath=yes
 
16084
  hardcode_into_libs=yes
 
16085
  # ldd complains unless libraries are executable
 
16086
  postinstall_cmds='chmod +x $lib'
 
16087
  ;;
 
16088
 
 
16089
sunos4*)
 
16090
  version_type=sunos
 
16091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16092
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16093
  shlibpath_var=LD_LIBRARY_PATH
 
16094
  shlibpath_overrides_runpath=yes
 
16095
  if test "$with_gnu_ld" = yes; then
 
16096
    need_lib_prefix=no
 
16097
  fi
 
16098
  need_version=yes
 
16099
  ;;
 
16100
 
 
16101
sysv4 | sysv4.3*)
 
16102
  version_type=linux
 
16103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16104
  soname_spec='${libname}${release}${shared_ext}$major'
 
16105
  shlibpath_var=LD_LIBRARY_PATH
 
16106
  case $host_vendor in
 
16107
    sni)
 
16108
      shlibpath_overrides_runpath=no
 
16109
      need_lib_prefix=no
 
16110
      runpath_var=LD_RUN_PATH
 
16111
      ;;
 
16112
    siemens)
 
16113
      need_lib_prefix=no
 
16114
      ;;
 
16115
    motorola)
 
16116
      need_lib_prefix=no
 
16117
      need_version=no
 
16118
      shlibpath_overrides_runpath=no
 
16119
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16120
      ;;
 
16121
  esac
 
16122
  ;;
 
16123
 
 
16124
sysv4*MP*)
 
16125
  if test -d /usr/nec ;then
 
16126
    version_type=linux
 
16127
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16128
    soname_spec='$libname${shared_ext}.$major'
 
16129
    shlibpath_var=LD_LIBRARY_PATH
 
16130
  fi
 
16131
  ;;
 
16132
 
 
16133
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16134
  version_type=freebsd-elf
 
16135
  need_lib_prefix=no
 
16136
  need_version=no
 
16137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16138
  soname_spec='${libname}${release}${shared_ext}$major'
 
16139
  shlibpath_var=LD_LIBRARY_PATH
 
16140
  shlibpath_overrides_runpath=yes
 
16141
  hardcode_into_libs=yes
 
16142
  if test "$with_gnu_ld" = yes; then
 
16143
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16144
  else
 
16145
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16146
    case $host_os in
 
16147
      sco3.2v5*)
 
16148
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16149
        ;;
 
16150
    esac
 
16151
  fi
 
16152
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16153
  ;;
 
16154
 
 
16155
tpf*)
 
16156
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
16157
  version_type=linux
 
16158
  need_lib_prefix=no
 
16159
  need_version=no
 
16160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16161
  shlibpath_var=LD_LIBRARY_PATH
 
16162
  shlibpath_overrides_runpath=no
 
16163
  hardcode_into_libs=yes
 
16164
  ;;
 
16165
 
 
16166
uts4*)
 
16167
  version_type=linux
 
16168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16169
  soname_spec='${libname}${release}${shared_ext}$major'
 
16170
  shlibpath_var=LD_LIBRARY_PATH
 
16171
  ;;
 
16172
 
 
16173
*)
 
16174
  dynamic_linker=no
 
16175
  ;;
 
16176
esac
 
16177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
16178
$as_echo "$dynamic_linker" >&6; }
 
16179
test "$dynamic_linker" = no && can_build_shared=no
 
16180
 
 
16181
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16182
if test "$GCC" = yes; then
 
16183
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16184
fi
 
16185
 
 
16186
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16187
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16188
fi
 
16189
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16190
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16191
fi
 
16192
 
 
16193
 
 
16194
 
 
16195
 
 
16196
 
 
16197
 
 
16198
 
 
16199
 
 
16200
 
 
16201
 
 
16202
 
 
16203
 
 
16204
 
 
16205
 
 
16206
 
 
16207
 
 
16208
 
 
16209
 
 
16210
 
 
16211
 
 
16212
 
 
16213
 
 
16214
 
 
16215
 
 
16216
 
 
16217
 
 
16218
 
 
16219
 
 
16220
 
 
16221
 
 
16222
 
 
16223
 
 
16224
 
 
16225
 
 
16226
 
 
16227
 
 
16228
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
16229
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16230
hardcode_action_CXX=
 
16231
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
16232
   test -n "$runpath_var_CXX" ||
 
16233
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
16234
 
 
16235
  # We can hardcode non-existent directories.
 
16236
  if test "$hardcode_direct_CXX" != no &&
 
16237
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16238
     # have to relink, otherwise we might link with an installed library
 
16239
     # when we should be linking with a yet-to-be-installed one
 
16240
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
16241
     test "$hardcode_minus_L_CXX" != no; then
 
16242
    # Linking always hardcodes the temporary library directory.
 
16243
    hardcode_action_CXX=relink
 
16244
  else
 
16245
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16246
    hardcode_action_CXX=immediate
 
16247
  fi
 
16248
else
 
16249
  # We cannot hardcode anything, or else we can only hardcode existing
 
16250
  # directories.
 
16251
  hardcode_action_CXX=unsupported
 
16252
fi
 
16253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
16254
$as_echo "$hardcode_action_CXX" >&6; }
 
16255
 
 
16256
if test "$hardcode_action_CXX" = relink ||
 
16257
   test "$inherit_rpath_CXX" = yes; then
 
16258
  # Fast installation is not supported
 
16259
  enable_fast_install=no
 
16260
elif test "$shlibpath_overrides_runpath" = yes ||
 
16261
     test "$enable_shared" = no; then
 
16262
  # Fast installation is not necessary
 
16263
  enable_fast_install=needless
 
16264
fi
 
16265
 
 
16266
 
 
16267
 
 
16268
 
 
16269
 
 
16270
 
 
16271
 
 
16272
  fi # test -n "$compiler"
 
16273
 
 
16274
  CC=$lt_save_CC
 
16275
  LDCXX=$LD
 
16276
  LD=$lt_save_LD
 
16277
  GCC=$lt_save_GCC
 
16278
  with_gnu_ld=$lt_save_with_gnu_ld
 
16279
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
16280
  lt_cv_path_LD=$lt_save_path_LD
 
16281
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
16282
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
16283
fi # test "$_lt_caught_CXX_error" != yes
 
16284
 
 
16285
ac_ext=c
 
16286
ac_cpp='$CPP $CPPFLAGS'
 
16287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16290
 
 
16291
 
 
16292
 
 
16293
 
 
16294
 
 
16295
 
 
16296
 
 
16297
 
 
16298
 
 
16299
 
 
16300
 
 
16301
 
 
16302
 
 
16303
        ac_config_commands="$ac_config_commands libtool"
 
16304
 
 
16305
 
 
16306
 
 
16307
 
 
16308
# Only expand once:
 
16309
 
 
16310
 
 
16311
LIBTOOL="$LIBTOOL --preserve-dup-deps"
 
16312
 
6239
16313
if test -n "$ac_tool_prefix"; then
6240
16314
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241
16315
set dummy ${ac_tool_prefix}ar; ac_word=$2
7329
17403
 
7330
17404
fi
7331
17405
 
7332
 
ALL_LINGUAS="ar cs ca da de el en_GB eo es et fa fi fr he hu it ja ko lt nl
7333
 
nb no pl pt pt_BR ro ru sv tr uk zh_CN"
7334
 
 
7335
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7336
 
$as_echo_n "checking for strerror in -lcposix... " >&6; }
7337
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
7338
 
  $as_echo_n "(cached) " >&6
7339
 
else
7340
 
  ac_check_lib_save_LIBS=$LIBS
7341
 
LIBS="-lcposix  $LIBS"
7342
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343
 
/* end confdefs.h.  */
7344
 
 
7345
 
/* Override any GCC internal prototype to avoid an error.
7346
 
   Use char because int might match the return type of a GCC
7347
 
   builtin and then its argument prototype would still apply.  */
7348
 
#ifdef __cplusplus
7349
 
extern "C"
7350
 
#endif
7351
 
char strerror ();
7352
 
int
7353
 
main ()
7354
 
{
7355
 
return strerror ();
7356
 
  ;
7357
 
  return 0;
7358
 
}
7359
 
_ACEOF
7360
 
if ac_fn_c_try_link "$LINENO"; then :
7361
 
  ac_cv_lib_cposix_strerror=yes
7362
 
else
7363
 
  ac_cv_lib_cposix_strerror=no
7364
 
fi
7365
 
rm -f core conftest.err conftest.$ac_objext \
7366
 
    conftest$ac_exeext conftest.$ac_ext
7367
 
LIBS=$ac_check_lib_save_LIBS
7368
 
fi
7369
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7370
 
$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7371
 
if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
7372
 
  LIBS="$LIBS -lcposix"
7373
 
fi
7374
 
 
7375
 
 
7376
 
 
7377
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7378
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7379
 
if test "${ac_cv_c_const+set}" = set; then :
7380
 
  $as_echo_n "(cached) " >&6
7381
 
else
7382
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383
 
/* end confdefs.h.  */
7384
 
 
7385
 
int
7386
 
main ()
7387
 
{
7388
 
/* FIXME: Include the comments suggested by Paul. */
7389
 
#ifndef __cplusplus
7390
 
  /* Ultrix mips cc rejects this.  */
7391
 
  typedef int charset[2];
7392
 
  const charset cs;
7393
 
  /* SunOS 4.1.1 cc rejects this.  */
7394
 
  char const *const *pcpcc;
7395
 
  char **ppc;
7396
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
7397
 
  struct point {int x, y;};
7398
 
  static struct point const zero = {0,0};
7399
 
  /* AIX XL C 1.02.0.0 rejects this.
7400
 
     It does not let you subtract one const X* pointer from another in
7401
 
     an arm of an if-expression whose if-part is not a constant
7402
 
     expression */
7403
 
  const char *g = "string";
7404
 
  pcpcc = &g + (g ? g-g : 0);
7405
 
  /* HPUX 7.0 cc rejects these. */
7406
 
  ++pcpcc;
7407
 
  ppc = (char**) pcpcc;
7408
 
  pcpcc = (char const *const *) ppc;
7409
 
  { /* SCO 3.2v4 cc rejects this.  */
7410
 
    char *t;
7411
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
7412
 
 
7413
 
    *t++ = 0;
7414
 
    if (s) return 0;
7415
 
  }
7416
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7417
 
    int x[] = {25, 17};
7418
 
    const int *foo = &x[0];
7419
 
    ++foo;
7420
 
  }
7421
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7422
 
    typedef const int *iptr;
7423
 
    iptr p = 0;
7424
 
    ++p;
7425
 
  }
7426
 
  { /* AIX XL C 1.02.0.0 rejects this saying
7427
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7428
 
    struct s { int j; const int *ap[3]; };
7429
 
    struct s *b; b->j = 5;
7430
 
  }
7431
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7432
 
    const int foo = 10;
7433
 
    if (!foo) return 0;
7434
 
  }
7435
 
  return !cs[0] && !zero.x;
7436
 
#endif
7437
 
 
7438
 
  ;
7439
 
  return 0;
7440
 
}
7441
 
_ACEOF
7442
 
if ac_fn_c_try_compile "$LINENO"; then :
7443
 
  ac_cv_c_const=yes
7444
 
else
7445
 
  ac_cv_c_const=no
7446
 
fi
7447
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448
 
fi
7449
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7450
 
$as_echo "$ac_cv_c_const" >&6; }
7451
 
if test $ac_cv_c_const = no; then
7452
 
 
7453
 
$as_echo "#define const /**/" >>confdefs.h
7454
 
 
7455
 
fi
7456
 
 
7457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7458
 
$as_echo_n "checking for inline... " >&6; }
7459
 
if test "${ac_cv_c_inline+set}" = set; then :
7460
 
  $as_echo_n "(cached) " >&6
7461
 
else
7462
 
  ac_cv_c_inline=no
7463
 
for ac_kw in inline __inline__ __inline; do
7464
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465
 
/* end confdefs.h.  */
7466
 
#ifndef __cplusplus
7467
 
typedef int foo_t;
7468
 
static $ac_kw foo_t static_foo () {return 0; }
7469
 
$ac_kw foo_t foo () {return 0; }
7470
 
#endif
7471
 
 
7472
 
_ACEOF
7473
 
if ac_fn_c_try_compile "$LINENO"; then :
7474
 
  ac_cv_c_inline=$ac_kw
7475
 
fi
7476
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477
 
  test "$ac_cv_c_inline" != no && break
7478
 
done
7479
 
 
7480
 
fi
7481
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7482
 
$as_echo "$ac_cv_c_inline" >&6; }
7483
 
 
7484
 
case $ac_cv_c_inline in
7485
 
  inline | yes) ;;
7486
 
  *)
7487
 
    case $ac_cv_c_inline in
7488
 
      no) ac_val=;;
7489
 
      *) ac_val=$ac_cv_c_inline;;
7490
 
    esac
7491
 
    cat >>confdefs.h <<_ACEOF
7492
 
#ifndef __cplusplus
7493
 
#define inline $ac_val
7494
 
#endif
7495
 
_ACEOF
7496
 
    ;;
 
17406
ALL_LINGUAS="ar cs ca da de el en_GB eo es et fa fi fr he hu it ja ko lt
 
17407
nl nb no pl pt pt_BR ro ru sv tr uk zh_CN"
 
17408
 
 
17409
# Check whether --enable-nls was given.
 
17410
if test "${enable_nls+set}" = set; then :
 
17411
  enableval=$enable_nls; case "${enableval}" in
 
17412
  yes) USE_NLS=yes ;;
 
17413
  no)  USE_NLS=no  ;;
 
17414
 
 
17415
      no-gmo-dist) USE_NLS=no
 
17416
               FORCE_DIST=yes ;;
 
17417
  *)   as_fn_error "bad value ${enableval} for --enable-nls" "$LINENO" 5 ;;
7497
17418
esac
7498
 
 
7499
 
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7500
 
if test "x$ac_cv_type_off_t" = x""yes; then :
7501
 
 
7502
 
else
7503
 
 
7504
 
cat >>confdefs.h <<_ACEOF
7505
 
#define off_t long int
7506
 
_ACEOF
7507
 
 
7508
 
fi
7509
 
 
7510
 
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7511
 
if test "x$ac_cv_type_size_t" = x""yes; then :
7512
 
 
7513
 
else
7514
 
 
7515
 
cat >>confdefs.h <<_ACEOF
7516
 
#define size_t unsigned int
7517
 
_ACEOF
7518
 
 
7519
 
fi
7520
 
 
7521
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7522
 
# for constant arguments.  Useless!
7523
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7524
 
$as_echo_n "checking for working alloca.h... " >&6; }
7525
 
if test "${ac_cv_working_alloca_h+set}" = set; then :
7526
 
  $as_echo_n "(cached) " >&6
7527
 
else
7528
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529
 
/* end confdefs.h.  */
7530
 
#include <alloca.h>
7531
 
int
7532
 
main ()
7533
 
{
7534
 
char *p = (char *) alloca (2 * sizeof (int));
7535
 
                          if (p) return 0;
7536
 
  ;
7537
 
  return 0;
7538
 
}
7539
 
_ACEOF
7540
 
if ac_fn_c_try_link "$LINENO"; then :
7541
 
  ac_cv_working_alloca_h=yes
7542
 
else
7543
 
  ac_cv_working_alloca_h=no
7544
 
fi
7545
 
rm -f core conftest.err conftest.$ac_objext \
7546
 
    conftest$ac_exeext conftest.$ac_ext
7547
 
fi
7548
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7549
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
7550
 
if test $ac_cv_working_alloca_h = yes; then
7551
 
 
7552
 
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7553
 
 
7554
 
fi
7555
 
 
7556
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7557
 
$as_echo_n "checking for alloca... " >&6; }
7558
 
if test "${ac_cv_func_alloca_works+set}" = set; then :
7559
 
  $as_echo_n "(cached) " >&6
7560
 
else
7561
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562
 
/* end confdefs.h.  */
7563
 
#ifdef __GNUC__
7564
 
# define alloca __builtin_alloca
7565
 
#else
7566
 
# ifdef _MSC_VER
7567
 
#  include <malloc.h>
7568
 
#  define alloca _alloca
7569
 
# else
7570
 
#  ifdef HAVE_ALLOCA_H
7571
 
#   include <alloca.h>
7572
 
#  else
7573
 
#   ifdef _AIX
7574
 
 #pragma alloca
7575
 
#   else
7576
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
7577
 
char *alloca ();
7578
 
#    endif
7579
 
#   endif
7580
 
#  endif
7581
 
# endif
7582
 
#endif
7583
 
 
7584
 
int
7585
 
main ()
7586
 
{
7587
 
char *p = (char *) alloca (1);
7588
 
                                    if (p) return 0;
7589
 
  ;
7590
 
  return 0;
7591
 
}
7592
 
_ACEOF
7593
 
if ac_fn_c_try_link "$LINENO"; then :
7594
 
  ac_cv_func_alloca_works=yes
7595
 
else
7596
 
  ac_cv_func_alloca_works=no
7597
 
fi
7598
 
rm -f core conftest.err conftest.$ac_objext \
7599
 
    conftest$ac_exeext conftest.$ac_ext
7600
 
fi
7601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7602
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
7603
 
 
7604
 
if test $ac_cv_func_alloca_works = yes; then
7605
 
 
7606
 
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7607
 
 
7608
 
else
7609
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7610
 
# that cause trouble.  Some versions do not even contain alloca or
7611
 
# contain a buggy version.  If you still want to use their alloca,
7612
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
7613
 
 
7614
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7615
 
 
7616
 
$as_echo "#define C_ALLOCA 1" >>confdefs.h
7617
 
 
7618
 
 
7619
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7620
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7621
 
if test "${ac_cv_os_cray+set}" = set; then :
7622
 
  $as_echo_n "(cached) " >&6
7623
 
else
7624
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625
 
/* end confdefs.h.  */
7626
 
#if defined CRAY && ! defined CRAY2
7627
 
webecray
7628
 
#else
7629
 
wenotbecray
7630
 
#endif
7631
 
 
7632
 
_ACEOF
7633
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634
 
  $EGREP "webecray" >/dev/null 2>&1; then :
7635
 
  ac_cv_os_cray=yes
7636
 
else
7637
 
  ac_cv_os_cray=no
7638
 
fi
7639
 
rm -f conftest*
7640
 
 
7641
 
fi
7642
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7643
 
$as_echo "$ac_cv_os_cray" >&6; }
7644
 
if test $ac_cv_os_cray = yes; then
7645
 
  for ac_func in _getb67 GETB67 getb67; do
7646
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7648
 
eval as_val=\$$as_ac_var
7649
 
   if test "x$as_val" = x""yes; then :
7650
 
 
7651
 
cat >>confdefs.h <<_ACEOF
7652
 
#define CRAY_STACKSEG_END $ac_func
7653
 
_ACEOF
7654
 
 
7655
 
    break
7656
 
fi
7657
 
 
7658
 
  done
7659
 
fi
7660
 
 
7661
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7662
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
7663
 
if test "${ac_cv_c_stack_direction+set}" = set; then :
7664
 
  $as_echo_n "(cached) " >&6
7665
 
else
7666
 
  if test "$cross_compiling" = yes; then :
7667
 
  ac_cv_c_stack_direction=0
7668
 
else
7669
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670
 
/* end confdefs.h.  */
7671
 
$ac_includes_default
7672
 
int
7673
 
find_stack_direction ()
7674
 
{
7675
 
  static char *addr = 0;
7676
 
  auto char dummy;
7677
 
  if (addr == 0)
7678
 
    {
7679
 
      addr = &dummy;
7680
 
      return find_stack_direction ();
7681
 
    }
7682
 
  else
7683
 
    return (&dummy > addr) ? 1 : -1;
7684
 
}
7685
 
 
7686
 
int
7687
 
main ()
7688
 
{
7689
 
  return find_stack_direction () < 0;
7690
 
}
7691
 
_ACEOF
7692
 
if ac_fn_c_try_run "$LINENO"; then :
7693
 
  ac_cv_c_stack_direction=1
7694
 
else
7695
 
  ac_cv_c_stack_direction=-1
7696
 
fi
7697
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7698
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7699
 
fi
7700
 
 
7701
 
fi
7702
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7703
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
7704
 
cat >>confdefs.h <<_ACEOF
7705
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
7706
 
_ACEOF
7707
 
 
7708
 
 
7709
 
fi
7710
 
 
7711
 
for ac_header in stdlib.h unistd.h
7712
 
do :
7713
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7715
 
eval as_val=\$$as_ac_Header
7716
 
   if test "x$as_val" = x""yes; then :
7717
 
  cat >>confdefs.h <<_ACEOF
7718
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7719
 
_ACEOF
7720
 
 
7721
 
fi
7722
 
 
7723
 
done
7724
 
 
7725
 
for ac_func in getpagesize
7726
 
do :
7727
 
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7728
 
if test "x$ac_cv_func_getpagesize" = x""yes; then :
7729
 
  cat >>confdefs.h <<_ACEOF
7730
 
#define HAVE_GETPAGESIZE 1
7731
 
_ACEOF
7732
 
 
7733
 
fi
7734
 
done
7735
 
 
7736
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7737
 
$as_echo_n "checking for working mmap... " >&6; }
7738
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7739
 
  $as_echo_n "(cached) " >&6
7740
 
else
7741
 
  if test "$cross_compiling" = yes; then :
7742
 
  ac_cv_func_mmap_fixed_mapped=no
7743
 
else
7744
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745
 
/* end confdefs.h.  */
7746
 
$ac_includes_default
7747
 
/* malloc might have been renamed as rpl_malloc. */
7748
 
#undef malloc
7749
 
 
7750
 
/* Thanks to Mike Haertel and Jim Avera for this test.
7751
 
   Here is a matrix of mmap possibilities:
7752
 
        mmap private not fixed
7753
 
        mmap private fixed at somewhere currently unmapped
7754
 
        mmap private fixed at somewhere already mapped
7755
 
        mmap shared not fixed
7756
 
        mmap shared fixed at somewhere currently unmapped
7757
 
        mmap shared fixed at somewhere already mapped
7758
 
   For private mappings, we should verify that changes cannot be read()
7759
 
   back from the file, nor mmap's back from the file at a different
7760
 
   address.  (There have been systems where private was not correctly
7761
 
   implemented like the infamous i386 svr4.0, and systems where the
7762
 
   VM page cache was not coherent with the file system buffer cache
7763
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
7764
 
   For shared mappings, we should conversely verify that changes get
7765
 
   propagated back to all the places they're supposed to be.
7766
 
 
7767
 
   Grep wants private fixed already mapped.
7768
 
   The main things grep needs to know about mmap are:
7769
 
   * does it exist and is it safe to write into the mmap'd area
7770
 
   * how to use it (BSD variants)  */
7771
 
 
7772
 
#include <fcntl.h>
7773
 
#include <sys/mman.h>
7774
 
 
7775
 
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7776
 
char *malloc ();
7777
 
#endif
7778
 
 
7779
 
/* This mess was copied from the GNU getpagesize.h.  */
7780
 
#ifndef HAVE_GETPAGESIZE
7781
 
/* Assume that all systems that can run configure have sys/param.h.  */
7782
 
# ifndef HAVE_SYS_PARAM_H
7783
 
#  define HAVE_SYS_PARAM_H 1
7784
 
# endif
7785
 
 
7786
 
# ifdef _SC_PAGESIZE
7787
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
7788
 
# else /* no _SC_PAGESIZE */
7789
 
#  ifdef HAVE_SYS_PARAM_H
7790
 
#   include <sys/param.h>
7791
 
#   ifdef EXEC_PAGESIZE
7792
 
#    define getpagesize() EXEC_PAGESIZE
7793
 
#   else /* no EXEC_PAGESIZE */
7794
 
#    ifdef NBPG
7795
 
#     define getpagesize() NBPG * CLSIZE
7796
 
#     ifndef CLSIZE
7797
 
#      define CLSIZE 1
7798
 
#     endif /* no CLSIZE */
7799
 
#    else /* no NBPG */
7800
 
#     ifdef NBPC
7801
 
#      define getpagesize() NBPC
7802
 
#     else /* no NBPC */
7803
 
#      ifdef PAGESIZE
7804
 
#       define getpagesize() PAGESIZE
7805
 
#      endif /* PAGESIZE */
7806
 
#     endif /* no NBPC */
7807
 
#    endif /* no NBPG */
7808
 
#   endif /* no EXEC_PAGESIZE */
7809
 
#  else /* no HAVE_SYS_PARAM_H */
7810
 
#   define getpagesize() 8192   /* punt totally */
7811
 
#  endif /* no HAVE_SYS_PARAM_H */
7812
 
# endif /* no _SC_PAGESIZE */
7813
 
 
7814
 
#endif /* no HAVE_GETPAGESIZE */
7815
 
 
7816
 
int
7817
 
main ()
7818
 
{
7819
 
  char *data, *data2, *data3;
7820
 
  int i, pagesize;
7821
 
  int fd;
7822
 
 
7823
 
  pagesize = getpagesize ();
7824
 
 
7825
 
  /* First, make a file with some known garbage in it. */
7826
 
  data = (char *) malloc (pagesize);
7827
 
  if (!data)
7828
 
    return 1;
7829
 
  for (i = 0; i < pagesize; ++i)
7830
 
    *(data + i) = rand ();
7831
 
  umask (0);
7832
 
  fd = creat ("conftest.mmap", 0600);
7833
 
  if (fd < 0)
7834
 
    return 1;
7835
 
  if (write (fd, data, pagesize) != pagesize)
7836
 
    return 1;
7837
 
  close (fd);
7838
 
 
7839
 
  /* Next, try to mmap the file at a fixed address which already has
7840
 
     something else allocated at it.  If we can, also make sure that
7841
 
     we see the same garbage.  */
7842
 
  fd = open ("conftest.mmap", O_RDWR);
7843
 
  if (fd < 0)
7844
 
    return 1;
7845
 
  data2 = (char *) malloc (2 * pagesize);
7846
 
  if (!data2)
7847
 
    return 1;
7848
 
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7849
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7850
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
7851
 
    return 1;
7852
 
  for (i = 0; i < pagesize; ++i)
7853
 
    if (*(data + i) != *(data2 + i))
7854
 
      return 1;
7855
 
 
7856
 
  /* Finally, make sure that changes to the mapped area do not
7857
 
     percolate back to the file as seen by read().  (This is a bug on
7858
 
     some variants of i386 svr4.0.)  */
7859
 
  for (i = 0; i < pagesize; ++i)
7860
 
    *(data2 + i) = *(data2 + i) + 1;
7861
 
  data3 = (char *) malloc (pagesize);
7862
 
  if (!data3)
7863
 
    return 1;
7864
 
  if (read (fd, data3, pagesize) != pagesize)
7865
 
    return 1;
7866
 
  for (i = 0; i < pagesize; ++i)
7867
 
    if (*(data + i) != *(data3 + i))
7868
 
      return 1;
7869
 
  close (fd);
7870
 
  return 0;
7871
 
}
7872
 
_ACEOF
7873
 
if ac_fn_c_try_run "$LINENO"; then :
7874
 
  ac_cv_func_mmap_fixed_mapped=yes
7875
 
else
7876
 
  ac_cv_func_mmap_fixed_mapped=no
7877
 
fi
7878
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7879
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7880
 
fi
7881
 
 
7882
 
fi
7883
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7884
 
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7885
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
7886
 
 
7887
 
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
7888
 
 
7889
 
fi
7890
 
rm -f conftest.mmap
7891
 
 
7892
 
 
7893
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7894
 
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7895
 
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7896
 
  $as_echo_n "(cached) " >&6
7897
 
else
7898
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899
 
/* end confdefs.h.  */
7900
 
 
7901
 
#include <features.h>
7902
 
#ifdef __GNU_LIBRARY__
7903
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7904
 
  Lucky GNU user
7905
 
 #endif
7906
 
#endif
7907
 
 
7908
 
_ACEOF
7909
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910
 
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7911
 
  ac_cv_gnu_library_2_1=yes
7912
 
else
7913
 
  ac_cv_gnu_library_2_1=no
7914
 
fi
7915
 
rm -f conftest*
7916
 
 
7917
 
 
7918
 
 
7919
 
fi
7920
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7921
 
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
7922
 
 
7923
 
    GLIBC21="$ac_cv_gnu_library_2_1"
7924
 
 
7925
 
 
7926
 
 
7927
 
   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7928
 
stdlib.h string.h unistd.h sys/param.h
7929
 
do :
7930
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7931
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7932
 
eval as_val=\$$as_ac_Header
7933
 
   if test "x$as_val" = x""yes; then :
7934
 
  cat >>confdefs.h <<_ACEOF
7935
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936
 
_ACEOF
7937
 
 
7938
 
fi
7939
 
 
7940
 
done
7941
 
 
7942
 
   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7943
 
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7944
 
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7945
 
do :
7946
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7947
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7948
 
eval as_val=\$$as_ac_var
7949
 
   if test "x$as_val" = x""yes; then :
7950
 
  cat >>confdefs.h <<_ACEOF
7951
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7952
 
_ACEOF
7953
 
 
7954
 
fi
7955
 
done
7956
 
 
7957
 
 
7958
 
 
7959
 
 
7960
 
 
7961
 
 
7962
 
 
7963
 
          am_save_CPPFLAGS="$CPPFLAGS"
7964
 
 
7965
 
  for element in $INCICONV; do
7966
 
    haveit=
7967
 
    for x in $CPPFLAGS; do
7968
 
 
7969
 
  acl_save_prefix="$prefix"
7970
 
  prefix="$acl_final_prefix"
7971
 
  acl_save_exec_prefix="$exec_prefix"
7972
 
  exec_prefix="$acl_final_exec_prefix"
7973
 
  eval x=\"$x\"
7974
 
  exec_prefix="$acl_save_exec_prefix"
7975
 
  prefix="$acl_save_prefix"
7976
 
 
7977
 
      if test "X$x" = "X$element"; then
7978
 
        haveit=yes
7979
 
        break
7980
 
      fi
7981
 
    done
7982
 
    if test -z "$haveit"; then
7983
 
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7984
 
    fi
7985
 
  done
7986
 
 
7987
 
 
7988
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7989
 
$as_echo_n "checking for iconv... " >&6; }
7990
 
if test "${am_cv_func_iconv+set}" = set; then :
7991
 
  $as_echo_n "(cached) " >&6
7992
 
else
7993
 
 
7994
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
7995
 
    am_cv_lib_iconv=no
7996
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997
 
/* end confdefs.h.  */
7998
 
#include <stdlib.h>
7999
 
#include <iconv.h>
8000
 
int
8001
 
main ()
8002
 
{
8003
 
iconv_t cd = iconv_open("","");
8004
 
       iconv(cd,NULL,NULL,NULL,NULL);
8005
 
       iconv_close(cd);
8006
 
  ;
8007
 
  return 0;
8008
 
}
8009
 
_ACEOF
8010
 
if ac_fn_c_try_link "$LINENO"; then :
8011
 
  am_cv_func_iconv=yes
8012
 
fi
8013
 
rm -f core conftest.err conftest.$ac_objext \
8014
 
    conftest$ac_exeext conftest.$ac_ext
8015
 
    if test "$am_cv_func_iconv" != yes; then
8016
 
      am_save_LIBS="$LIBS"
8017
 
      LIBS="$LIBS $LIBICONV"
8018
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019
 
/* end confdefs.h.  */
8020
 
#include <stdlib.h>
8021
 
#include <iconv.h>
8022
 
int
8023
 
main ()
8024
 
{
8025
 
iconv_t cd = iconv_open("","");
8026
 
         iconv(cd,NULL,NULL,NULL,NULL);
8027
 
         iconv_close(cd);
8028
 
  ;
8029
 
  return 0;
8030
 
}
8031
 
_ACEOF
8032
 
if ac_fn_c_try_link "$LINENO"; then :
8033
 
  am_cv_lib_iconv=yes
8034
 
        am_cv_func_iconv=yes
8035
 
fi
8036
 
rm -f core conftest.err conftest.$ac_objext \
8037
 
    conftest$ac_exeext conftest.$ac_ext
8038
 
      LIBS="$am_save_LIBS"
8039
 
    fi
8040
 
 
8041
 
fi
8042
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8043
 
$as_echo "$am_cv_func_iconv" >&6; }
8044
 
  if test "$am_cv_func_iconv" = yes; then
8045
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8046
 
$as_echo_n "checking for working iconv... " >&6; }
8047
 
if test "${am_cv_func_iconv_works+set}" = set; then :
8048
 
  $as_echo_n "(cached) " >&6
8049
 
else
8050
 
 
8051
 
            am_save_LIBS="$LIBS"
8052
 
      if test $am_cv_lib_iconv = yes; then
8053
 
        LIBS="$LIBS $LIBICONV"
8054
 
      fi
8055
 
      if test "$cross_compiling" = yes; then :
8056
 
  case "$host_os" in
8057
 
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8058
 
           *)            am_cv_func_iconv_works="guessing yes" ;;
8059
 
         esac
8060
 
else
8061
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062
 
/* end confdefs.h.  */
8063
 
 
8064
 
#include <iconv.h>
8065
 
#include <string.h>
8066
 
int main ()
8067
 
{
8068
 
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8069
 
     returns.  */
8070
 
  {
8071
 
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8072
 
    if (cd_utf8_to_88591 != (iconv_t)(-1))
8073
 
      {
8074
 
        static const char input[] = "\342\202\254"; /* EURO SIGN */
8075
 
        char buf[10];
8076
 
        const char *inptr = input;
8077
 
        size_t inbytesleft = strlen (input);
8078
 
        char *outptr = buf;
8079
 
        size_t outbytesleft = sizeof (buf);
8080
 
        size_t res = iconv (cd_utf8_to_88591,
8081
 
                            (char **) &inptr, &inbytesleft,
8082
 
                            &outptr, &outbytesleft);
8083
 
        if (res == 0)
8084
 
          return 1;
8085
 
      }
8086
 
  }
8087
 
#if 0 /* This bug could be worked around by the caller.  */
8088
 
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8089
 
  {
8090
 
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8091
 
    if (cd_88591_to_utf8 != (iconv_t)(-1))
8092
 
      {
8093
 
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8094
 
        char buf[50];
8095
 
        const char *inptr = input;
8096
 
        size_t inbytesleft = strlen (input);
8097
 
        char *outptr = buf;
8098
 
        size_t outbytesleft = sizeof (buf);
8099
 
        size_t res = iconv (cd_88591_to_utf8,
8100
 
                            (char **) &inptr, &inbytesleft,
8101
 
                            &outptr, &outbytesleft);
8102
 
        if ((int)res > 0)
8103
 
          return 1;
8104
 
      }
8105
 
  }
8106
 
#endif
8107
 
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8108
 
     provided.  */
8109
 
  if (/* Try standardized names.  */
8110
 
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8111
 
      /* Try IRIX, OSF/1 names.  */
8112
 
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8113
 
      /* Try AIX names.  */
8114
 
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8115
 
      /* Try HP-UX names.  */
8116
 
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8117
 
    return 1;
8118
 
  return 0;
8119
 
}
8120
 
_ACEOF
8121
 
if ac_fn_c_try_run "$LINENO"; then :
8122
 
  am_cv_func_iconv_works=yes
8123
 
else
8124
 
  am_cv_func_iconv_works=no
8125
 
fi
8126
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8127
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
8128
 
fi
8129
 
 
8130
 
      LIBS="$am_save_LIBS"
8131
 
 
8132
 
fi
8133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8134
 
$as_echo "$am_cv_func_iconv_works" >&6; }
8135
 
    case "$am_cv_func_iconv_works" in
8136
 
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8137
 
      *)   am_func_iconv=yes ;;
8138
 
    esac
8139
 
  else
8140
 
    am_func_iconv=no am_cv_lib_iconv=no
8141
 
  fi
8142
 
  if test "$am_func_iconv" = yes; then
8143
 
 
8144
 
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8145
 
 
8146
 
  fi
8147
 
  if test "$am_cv_lib_iconv" = yes; then
8148
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8149
 
$as_echo_n "checking how to link with libiconv... " >&6; }
8150
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8151
 
$as_echo "$LIBICONV" >&6; }
8152
 
  else
8153
 
            CPPFLAGS="$am_save_CPPFLAGS"
8154
 
    LIBICONV=
8155
 
    LTLIBICONV=
8156
 
  fi
8157
 
 
8158
 
 
8159
 
 
8160
 
  if test "$am_cv_func_iconv" = yes; then
8161
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8162
 
$as_echo_n "checking for iconv declaration... " >&6; }
8163
 
    if test "${am_cv_proto_iconv+set}" = set; then :
8164
 
  $as_echo_n "(cached) " >&6
8165
 
else
8166
 
 
8167
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168
 
/* end confdefs.h.  */
8169
 
 
8170
 
#include <stdlib.h>
8171
 
#include <iconv.h>
8172
 
extern
8173
 
#ifdef __cplusplus
8174
 
"C"
8175
 
#endif
8176
 
#if defined(__STDC__) || defined(__cplusplus)
8177
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8178
 
#else
8179
 
size_t iconv();
8180
 
#endif
8181
 
 
8182
 
int
8183
 
main ()
8184
 
{
8185
 
 
8186
 
  ;
8187
 
  return 0;
8188
 
}
8189
 
_ACEOF
8190
 
if ac_fn_c_try_compile "$LINENO"; then :
8191
 
  am_cv_proto_iconv_arg1=""
8192
 
else
8193
 
  am_cv_proto_iconv_arg1="const"
8194
 
fi
8195
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196
 
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8197
 
fi
8198
 
 
8199
 
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8200
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8201
 
         }$am_cv_proto_iconv" >&5
8202
 
$as_echo "${ac_t:-
8203
 
         }$am_cv_proto_iconv" >&6; }
8204
 
 
8205
 
cat >>confdefs.h <<_ACEOF
8206
 
#define ICONV_CONST $am_cv_proto_iconv_arg1
8207
 
_ACEOF
8208
 
 
8209
 
  fi
8210
 
 
8211
 
 
8212
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8213
 
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8214
 
if test "${am_cv_langinfo_codeset+set}" = set; then :
8215
 
  $as_echo_n "(cached) " >&6
8216
 
else
8217
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218
 
/* end confdefs.h.  */
8219
 
#include <langinfo.h>
8220
 
int
8221
 
main ()
8222
 
{
8223
 
char* cs = nl_langinfo(CODESET); return !cs;
8224
 
  ;
8225
 
  return 0;
8226
 
}
8227
 
_ACEOF
8228
 
if ac_fn_c_try_link "$LINENO"; then :
8229
 
  am_cv_langinfo_codeset=yes
8230
 
else
8231
 
  am_cv_langinfo_codeset=no
8232
 
fi
8233
 
rm -f core conftest.err conftest.$ac_objext \
8234
 
    conftest$ac_exeext conftest.$ac_ext
8235
 
 
8236
 
fi
8237
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8238
 
$as_echo "$am_cv_langinfo_codeset" >&6; }
8239
 
  if test $am_cv_langinfo_codeset = yes; then
8240
 
 
8241
 
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8242
 
 
8243
 
  fi
8244
 
 
8245
 
   if test $ac_cv_header_locale_h = yes; then
 
17419
else
 
17420
  USE_NLS=yes
 
17421
fi
 
17422
 
 
17423
 
 
17424
if test "$USE_NLS" = "yes" ; then
 
17425
 
 
17426
   for ac_header in locale.h
 
17427
do :
 
17428
  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
17429
if test "x$ac_cv_header_locale_h" = x""yes; then :
 
17430
  cat >>confdefs.h <<_ACEOF
 
17431
#define HAVE_LOCALE_H 1
 
17432
_ACEOF
 
17433
 
 
17434
fi
 
17435
 
 
17436
done
 
17437
 
 
17438
    if test $ac_cv_header_locale_h = yes; then
8246
17439
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8247
17440
$as_echo_n "checking for LC_MESSAGES... " >&6; }
8248
17441
if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8275
17468
 
8276
17469
    fi
8277
17470
  fi
8278
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8279
 
$as_echo_n "checking whether NLS is requested... " >&6; }
8280
 
        # Check whether --enable-nls was given.
8281
 
if test "${enable_nls+set}" = set; then :
8282
 
  enableval=$enable_nls; USE_NLS=$enableval
8283
 
else
8284
 
  USE_NLS=yes
8285
 
fi
8286
 
 
8287
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8288
 
$as_echo "$USE_NLS" >&6; }
8289
 
 
8290
 
 
8291
 
    BUILD_INCLUDED_LIBINTL=no
8292
 
    USE_INCLUDED_LIBINTL=no
 
17471
         USE_NLS=yes
 
17472
 
 
17473
 
 
17474
    gt_cv_have_gettext=no
 
17475
 
 
17476
    CATOBJEXT=NONE
 
17477
    XGETTEXT=:
8293
17478
    INTLLIBS=
8294
17479
 
8295
 
        if test "$USE_NLS" = "yes"; then
8296
 
 
8297
 
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8298
 
 
8299
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8300
 
$as_echo_n "checking whether included gettext is requested... " >&6; }
8301
 
 
8302
 
# Check whether --with-included-gettext was given.
8303
 
if test "${with_included_gettext+set}" = set; then :
8304
 
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8305
 
else
8306
 
  nls_cv_force_use_gnu_gettext=no
8307
 
fi
8308
 
 
8309
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8310
 
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8311
 
 
8312
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8313
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8314
 
                                CATOBJEXT=NONE
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
        ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
17480
    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8320
17481
if test "x$ac_cv_header_libintl_h" = x""yes; then :
8321
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8322
 
$as_echo_n "checking for GNU gettext in libc... " >&6; }
8323
 
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
8324
 
  $as_echo_n "(cached) " >&6
8325
 
else
8326
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327
 
/* end confdefs.h.  */
8328
 
#include <libintl.h>
8329
 
extern int _nl_msg_cat_cntr;
8330
 
int
8331
 
main ()
8332
 
{
8333
 
bindtextdomain ("", "");
8334
 
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8335
 
  ;
8336
 
  return 0;
8337
 
}
8338
 
_ACEOF
8339
 
if ac_fn_c_try_link "$LINENO"; then :
8340
 
  gt_cv_func_gnugettext2_libc=yes
8341
 
else
8342
 
  gt_cv_func_gnugettext2_libc=no
8343
 
fi
8344
 
rm -f core conftest.err conftest.$ac_objext \
8345
 
    conftest$ac_exeext conftest.$ac_ext
8346
 
fi
8347
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8348
 
$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8349
 
 
8350
 
           if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8351
 
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8352
 
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8353
 
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
8354
 
  $as_echo_n "(cached) " >&6
8355
 
else
8356
 
  gt_save_LIBS="$LIBS"
8357
 
                LIBS="$LIBS -lintl $LIBICONV"
8358
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359
 
/* end confdefs.h.  */
8360
 
#include <libintl.h>
8361
 
extern int _nl_msg_cat_cntr;
8362
 
int
8363
 
main ()
8364
 
{
8365
 
bindtextdomain ("", "");
8366
 
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8367
 
  ;
8368
 
  return 0;
8369
 
}
8370
 
_ACEOF
8371
 
if ac_fn_c_try_link "$LINENO"; then :
8372
 
  gt_cv_func_gnugettext2_libintl=yes
8373
 
else
8374
 
  gt_cv_func_gnugettext2_libintl=no
8375
 
fi
8376
 
rm -f core conftest.err conftest.$ac_objext \
8377
 
    conftest$ac_exeext conftest.$ac_ext
8378
 
                LIBS="$gt_save_LIBS"
8379
 
fi
8380
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8381
 
$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8382
 
           fi
8383
 
 
8384
 
                                           if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8385
 
              || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8386
 
                   && test "$PACKAGE" != gettext; }; then
 
17482
  gt_cv_func_dgettext_libintl="no"
 
17483
      libintl_extra_libs=""
 
17484
 
 
17485
      #
 
17486
      # First check in libc
 
17487
      #
 
17488
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
 
17489
$as_echo_n "checking for ngettext in libc... " >&6; }
 
17490
if test "${gt_cv_func_ngettext_libc+set}" = set; then :
 
17491
  $as_echo_n "(cached) " >&6
 
17492
else
 
17493
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17494
/* end confdefs.h.  */
 
17495
 
 
17496
#include <libintl.h>
 
17497
 
 
17498
int
 
17499
main ()
 
17500
{
 
17501
return !ngettext ("","", 1)
 
17502
  ;
 
17503
  return 0;
 
17504
}
 
17505
_ACEOF
 
17506
if ac_fn_c_try_link "$LINENO"; then :
 
17507
  gt_cv_func_ngettext_libc=yes
 
17508
else
 
17509
  gt_cv_func_ngettext_libc=no
 
17510
fi
 
17511
rm -f core conftest.err conftest.$ac_objext \
 
17512
    conftest$ac_exeext conftest.$ac_ext
 
17513
 
 
17514
fi
 
17515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
 
17516
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
 
17517
 
 
17518
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
17519
              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
 
17520
$as_echo_n "checking for dgettext in libc... " >&6; }
 
17521
if test "${gt_cv_func_dgettext_libc+set}" = set; then :
 
17522
  $as_echo_n "(cached) " >&6
 
17523
else
 
17524
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17525
/* end confdefs.h.  */
 
17526
 
 
17527
#include <libintl.h>
 
17528
 
 
17529
int
 
17530
main ()
 
17531
{
 
17532
return !dgettext ("","")
 
17533
  ;
 
17534
  return 0;
 
17535
}
 
17536
_ACEOF
 
17537
if ac_fn_c_try_link "$LINENO"; then :
 
17538
  gt_cv_func_dgettext_libc=yes
 
17539
else
 
17540
  gt_cv_func_dgettext_libc=no
 
17541
fi
 
17542
rm -f core conftest.err conftest.$ac_objext \
 
17543
    conftest$ac_exeext conftest.$ac_ext
 
17544
 
 
17545
fi
 
17546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
 
17547
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
 
17548
      fi
 
17549
 
 
17550
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
17551
        for ac_func in bind_textdomain_codeset
 
17552
do :
 
17553
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
17554
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
 
17555
  cat >>confdefs.h <<_ACEOF
 
17556
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
17557
_ACEOF
 
17558
 
 
17559
fi
 
17560
done
 
17561
 
 
17562
      fi
 
17563
 
 
17564
      #
 
17565
      # If we don't have everything we want, check in libintl
 
17566
      #
 
17567
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
17568
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
17569
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
17570
 
 
17571
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
 
17572
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 
17573
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
 
17574
  $as_echo_n "(cached) " >&6
 
17575
else
 
17576
  ac_check_lib_save_LIBS=$LIBS
 
17577
LIBS="-lintl  $LIBS"
 
17578
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17579
/* end confdefs.h.  */
 
17580
 
 
17581
/* Override any GCC internal prototype to avoid an error.
 
17582
   Use char because int might match the return type of a GCC
 
17583
   builtin and then its argument prototype would still apply.  */
 
17584
#ifdef __cplusplus
 
17585
extern "C"
 
17586
#endif
 
17587
char bindtextdomain ();
 
17588
int
 
17589
main ()
 
17590
{
 
17591
return bindtextdomain ();
 
17592
  ;
 
17593
  return 0;
 
17594
}
 
17595
_ACEOF
 
17596
if ac_fn_c_try_link "$LINENO"; then :
 
17597
  ac_cv_lib_intl_bindtextdomain=yes
 
17598
else
 
17599
  ac_cv_lib_intl_bindtextdomain=no
 
17600
fi
 
17601
rm -f core conftest.err conftest.$ac_objext \
 
17602
    conftest$ac_exeext conftest.$ac_ext
 
17603
LIBS=$ac_check_lib_save_LIBS
 
17604
fi
 
17605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
17606
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 
17607
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
 
17608
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
17609
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
17610
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
 
17611
  $as_echo_n "(cached) " >&6
 
17612
else
 
17613
  ac_check_lib_save_LIBS=$LIBS
 
17614
LIBS="-lintl  $LIBS"
 
17615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17616
/* end confdefs.h.  */
 
17617
 
 
17618
/* Override any GCC internal prototype to avoid an error.
 
17619
   Use char because int might match the return type of a GCC
 
17620
   builtin and then its argument prototype would still apply.  */
 
17621
#ifdef __cplusplus
 
17622
extern "C"
 
17623
#endif
 
17624
char ngettext ();
 
17625
int
 
17626
main ()
 
17627
{
 
17628
return ngettext ();
 
17629
  ;
 
17630
  return 0;
 
17631
}
 
17632
_ACEOF
 
17633
if ac_fn_c_try_link "$LINENO"; then :
 
17634
  ac_cv_lib_intl_ngettext=yes
 
17635
else
 
17636
  ac_cv_lib_intl_ngettext=no
 
17637
fi
 
17638
rm -f core conftest.err conftest.$ac_objext \
 
17639
    conftest$ac_exeext conftest.$ac_ext
 
17640
LIBS=$ac_check_lib_save_LIBS
 
17641
fi
 
17642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
17643
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
17644
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
 
17645
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
 
17646
$as_echo_n "checking for dgettext in -lintl... " >&6; }
 
17647
if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
 
17648
  $as_echo_n "(cached) " >&6
 
17649
else
 
17650
  ac_check_lib_save_LIBS=$LIBS
 
17651
LIBS="-lintl  $LIBS"
 
17652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17653
/* end confdefs.h.  */
 
17654
 
 
17655
/* Override any GCC internal prototype to avoid an error.
 
17656
   Use char because int might match the return type of a GCC
 
17657
   builtin and then its argument prototype would still apply.  */
 
17658
#ifdef __cplusplus
 
17659
extern "C"
 
17660
#endif
 
17661
char dgettext ();
 
17662
int
 
17663
main ()
 
17664
{
 
17665
return dgettext ();
 
17666
  ;
 
17667
  return 0;
 
17668
}
 
17669
_ACEOF
 
17670
if ac_fn_c_try_link "$LINENO"; then :
 
17671
  ac_cv_lib_intl_dgettext=yes
 
17672
else
 
17673
  ac_cv_lib_intl_dgettext=no
 
17674
fi
 
17675
rm -f core conftest.err conftest.$ac_objext \
 
17676
    conftest$ac_exeext conftest.$ac_ext
 
17677
LIBS=$ac_check_lib_save_LIBS
 
17678
fi
 
17679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
 
17680
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 
17681
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
 
17682
  gt_cv_func_dgettext_libintl=yes
 
17683
fi
 
17684
 
 
17685
fi
 
17686
 
 
17687
fi
 
17688
 
 
17689
 
 
17690
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
17691
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
 
17692
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 
17693
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
17694
$as_echo "" >&6; }
 
17695
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
17696
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
17697
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
 
17698
  $as_echo_n "(cached) " >&6
 
17699
else
 
17700
  ac_check_lib_save_LIBS=$LIBS
 
17701
LIBS="-lintl -liconv $LIBS"
 
17702
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17703
/* end confdefs.h.  */
 
17704
 
 
17705
/* Override any GCC internal prototype to avoid an error.
 
17706
   Use char because int might match the return type of a GCC
 
17707
   builtin and then its argument prototype would still apply.  */
 
17708
#ifdef __cplusplus
 
17709
extern "C"
 
17710
#endif
 
17711
char ngettext ();
 
17712
int
 
17713
main ()
 
17714
{
 
17715
return ngettext ();
 
17716
  ;
 
17717
  return 0;
 
17718
}
 
17719
_ACEOF
 
17720
if ac_fn_c_try_link "$LINENO"; then :
 
17721
  ac_cv_lib_intl_ngettext=yes
 
17722
else
 
17723
  ac_cv_lib_intl_ngettext=no
 
17724
fi
 
17725
rm -f core conftest.err conftest.$ac_objext \
 
17726
    conftest$ac_exeext conftest.$ac_ext
 
17727
LIBS=$ac_check_lib_save_LIBS
 
17728
fi
 
17729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
17730
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
17731
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
 
17732
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
 
17733
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
 
17734
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
 
17735
  $as_echo_n "(cached) " >&6
 
17736
else
 
17737
  ac_check_lib_save_LIBS=$LIBS
 
17738
LIBS="-lintl -liconv $LIBS"
 
17739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17740
/* end confdefs.h.  */
 
17741
 
 
17742
/* Override any GCC internal prototype to avoid an error.
 
17743
   Use char because int might match the return type of a GCC
 
17744
   builtin and then its argument prototype would still apply.  */
 
17745
#ifdef __cplusplus
 
17746
extern "C"
 
17747
#endif
 
17748
char dcgettext ();
 
17749
int
 
17750
main ()
 
17751
{
 
17752
return dcgettext ();
 
17753
  ;
 
17754
  return 0;
 
17755
}
 
17756
_ACEOF
 
17757
if ac_fn_c_try_link "$LINENO"; then :
 
17758
  ac_cv_lib_intl_dcgettext=yes
 
17759
else
 
17760
  ac_cv_lib_intl_dcgettext=no
 
17761
fi
 
17762
rm -f core conftest.err conftest.$ac_objext \
 
17763
    conftest$ac_exeext conftest.$ac_ext
 
17764
LIBS=$ac_check_lib_save_LIBS
 
17765
fi
 
17766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
 
17767
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 
17768
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
 
17769
  gt_cv_func_dgettext_libintl=yes
 
17770
                        libintl_extra_libs=-liconv
 
17771
else
 
17772
  :
 
17773
fi
 
17774
 
 
17775
else
 
17776
  :
 
17777
fi
 
17778
 
 
17779
        fi
 
17780
 
 
17781
        #
 
17782
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
17783
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
17784
        # and both have dgettext and ngettext
 
17785
        #
 
17786
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
17787
          glib_save_LIBS="$LIBS"
 
17788
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
17789
          unset ac_cv_func_bind_textdomain_codeset
 
17790
          for ac_func in bind_textdomain_codeset
 
17791
do :
 
17792
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
17793
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
 
17794
  cat >>confdefs.h <<_ACEOF
 
17795
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
17796
_ACEOF
 
17797
 
 
17798
fi
 
17799
done
 
17800
 
 
17801
          LIBS="$glib_save_LIBS"
 
17802
 
 
17803
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
17804
            gt_cv_func_dgettext_libc=no
 
17805
          else
 
17806
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
17807
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
17808
              gt_cv_func_dgettext_libintl=no
 
17809
            fi
 
17810
          fi
 
17811
        fi
 
17812
      fi
 
17813
 
 
17814
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
17815
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
17816
        gt_cv_have_gettext=yes
 
17817
      fi
 
17818
 
 
17819
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
17820
        INTLLIBS="-lintl $libintl_extra_libs"
 
17821
      fi
 
17822
 
 
17823
      if test "$gt_cv_have_gettext" = "yes"; then
8387
17824
 
8388
17825
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8389
17826
 
8390
 
 
8391
 
             if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8392
 
                                       INTLLIBS="-lintl $LIBICONV"
8393
 
             fi
8394
 
 
8395
 
             gt_save_LIBS="$LIBS"
8396
 
             LIBS="$LIBS $INTLLIBS"
8397
 
             for ac_func in dcgettext
 
17827
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
17828
set dummy msgfmt; ac_word=$2
 
17829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17830
$as_echo_n "checking for $ac_word... " >&6; }
 
17831
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
17832
  $as_echo_n "(cached) " >&6
 
17833
else
 
17834
  case "$MSGFMT" in
 
17835
  /*)
 
17836
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
17837
  ;;
 
17838
  *)
 
17839
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
17840
  for ac_dir in $PATH; do
 
17841
    test -z "$ac_dir" && ac_dir=.
 
17842
    if test -f $ac_dir/$ac_word; then
 
17843
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
17844
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
17845
        break
 
17846
      fi
 
17847
    fi
 
17848
  done
 
17849
  IFS="$ac_save_ifs"
 
17850
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
17851
  ;;
 
17852
esac
 
17853
fi
 
17854
MSGFMT="$ac_cv_path_MSGFMT"
 
17855
if test "$MSGFMT" != "no"; then
 
17856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
17857
$as_echo "$MSGFMT" >&6; }
 
17858
else
 
17859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17860
$as_echo "no" >&6; }
 
17861
fi
 
17862
        if test "$MSGFMT" != "no"; then
 
17863
          glib_save_LIBS="$LIBS"
 
17864
          LIBS="$LIBS $INTLLIBS"
 
17865
          for ac_func in dcgettext
8398
17866
do :
8399
17867
  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8400
17868
if test "x$ac_cv_func_dcgettext" = x""yes; then :
8405
17873
fi
8406
17874
done
8407
17875
 
8408
 
             LIBS="$gt_save_LIBS"
8409
 
 
8410
 
                     # Extract the first word of "msgfmt", so it can be a program name with args.
8411
 
set dummy msgfmt; ac_word=$2
8412
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413
 
$as_echo_n "checking for $ac_word... " >&6; }
8414
 
if test "${ac_cv_path_MSGFMT+set}" = set; then :
8415
 
  $as_echo_n "(cached) " >&6
8416
 
else
8417
 
  case "$MSGFMT" in
8418
 
  /*)
8419
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8420
 
  ;;
8421
 
  *)
8422
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8423
 
  for ac_dir in $PATH; do
8424
 
    test -z "$ac_dir" && ac_dir=.
8425
 
    if test -f $ac_dir/$ac_word; then
8426
 
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8427
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8428
 
        break
8429
 
      fi
8430
 
    fi
8431
 
  done
8432
 
  IFS="$ac_save_ifs"
8433
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8434
 
  ;;
8435
 
esac
8436
 
fi
8437
 
MSGFMT="$ac_cv_path_MSGFMT"
8438
 
if test "$MSGFMT" != ":"; then
8439
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8440
 
$as_echo "$MSGFMT" >&6; }
8441
 
else
8442
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443
 
$as_echo "no" >&6; }
8444
 
fi
8445
 
 
8446
 
             # Extract the first word of "gmsgfmt", so it can be a program name with args.
8447
 
set dummy gmsgfmt; ac_word=$2
8448
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449
 
$as_echo_n "checking for $ac_word... " >&6; }
8450
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
8451
 
  $as_echo_n "(cached) " >&6
8452
 
else
8453
 
  case $GMSGFMT in
8454
 
  [\\/]* | ?:[\\/]*)
8455
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8456
 
  ;;
8457
 
  *)
8458
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459
 
for as_dir in $PATH
8460
 
do
8461
 
  IFS=$as_save_IFS
8462
 
  test -z "$as_dir" && as_dir=.
8463
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8464
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8466
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467
 
    break 2
8468
 
  fi
8469
 
done
8470
 
  done
8471
 
IFS=$as_save_IFS
8472
 
 
8473
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8474
 
  ;;
8475
 
esac
8476
 
fi
8477
 
GMSGFMT=$ac_cv_path_GMSGFMT
8478
 
if test -n "$GMSGFMT"; then
8479
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8480
 
$as_echo "$GMSGFMT" >&6; }
8481
 
else
8482
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483
 
$as_echo "no" >&6; }
8484
 
fi
8485
 
 
8486
 
 
8487
 
 
8488
 
                     # Extract the first word of "xgettext", so it can be a program name with args.
8489
 
set dummy xgettext; ac_word=$2
8490
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491
 
$as_echo_n "checking for $ac_word... " >&6; }
8492
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
8493
 
  $as_echo_n "(cached) " >&6
8494
 
else
8495
 
  case "$XGETTEXT" in
8496
 
  /*)
8497
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8498
 
  ;;
8499
 
  *)
8500
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8501
 
  for ac_dir in $PATH; do
8502
 
    test -z "$ac_dir" && ac_dir=.
8503
 
    if test -f $ac_dir/$ac_word; then
8504
 
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8505
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8506
 
        break
8507
 
      fi
8508
 
    fi
8509
 
  done
8510
 
  IFS="$ac_save_ifs"
8511
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8512
 
  ;;
8513
 
esac
8514
 
fi
8515
 
XGETTEXT="$ac_cv_path_XGETTEXT"
8516
 
if test "$XGETTEXT" != ":"; then
8517
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8518
 
$as_echo "$XGETTEXT" >&6; }
8519
 
else
8520
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521
 
$as_echo "no" >&6; }
8522
 
fi
8523
 
 
8524
 
 
8525
 
             CATOBJEXT=.gmo
8526
 
           fi
8527
 
 
8528
 
fi
8529
 
 
8530
 
 
8531
 
 
8532
 
        if test "$CATOBJEXT" = "NONE"; then
8533
 
                          nls_cv_use_gnu_gettext=yes
8534
 
        fi
8535
 
      fi
8536
 
 
8537
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
8538
 
                INTLOBJS="\$(GETTOBJS)"
8539
 
        # Extract the first word of "msgfmt", so it can be a program name with args.
8540
 
set dummy msgfmt; ac_word=$2
8541
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542
 
$as_echo_n "checking for $ac_word... " >&6; }
8543
 
if test "${ac_cv_path_MSGFMT+set}" = set; then :
8544
 
  $as_echo_n "(cached) " >&6
8545
 
else
8546
 
  case "$MSGFMT" in
8547
 
  /*)
8548
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8549
 
  ;;
8550
 
  *)
8551
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8552
 
  for ac_dir in $PATH; do
8553
 
    test -z "$ac_dir" && ac_dir=.
8554
 
    if test -f $ac_dir/$ac_word; then
8555
 
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8556
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8557
 
        break
8558
 
      fi
8559
 
    fi
8560
 
  done
8561
 
  IFS="$ac_save_ifs"
8562
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8563
 
  ;;
8564
 
esac
8565
 
fi
8566
 
MSGFMT="$ac_cv_path_MSGFMT"
8567
 
if test "$MSGFMT" != ":"; then
8568
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8569
 
$as_echo "$MSGFMT" >&6; }
8570
 
else
8571
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572
 
$as_echo "no" >&6; }
8573
 
fi
8574
 
 
8575
 
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
8576
 
set dummy gmsgfmt; ac_word=$2
8577
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578
 
$as_echo_n "checking for $ac_word... " >&6; }
8579
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
8580
 
  $as_echo_n "(cached) " >&6
8581
 
else
8582
 
  case $GMSGFMT in
8583
 
  [\\/]* | ?:[\\/]*)
8584
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8585
 
  ;;
8586
 
  *)
8587
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588
 
for as_dir in $PATH
8589
 
do
8590
 
  IFS=$as_save_IFS
8591
 
  test -z "$as_dir" && as_dir=.
8592
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8593
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8595
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596
 
    break 2
8597
 
  fi
8598
 
done
8599
 
  done
8600
 
IFS=$as_save_IFS
8601
 
 
8602
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8603
 
  ;;
8604
 
esac
8605
 
fi
8606
 
GMSGFMT=$ac_cv_path_GMSGFMT
8607
 
if test -n "$GMSGFMT"; then
8608
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8609
 
$as_echo "$GMSGFMT" >&6; }
8610
 
else
8611
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612
 
$as_echo "no" >&6; }
8613
 
fi
8614
 
 
8615
 
 
8616
 
        # Extract the first word of "xgettext", so it can be a program name with args.
8617
 
set dummy xgettext; ac_word=$2
8618
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619
 
$as_echo_n "checking for $ac_word... " >&6; }
8620
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
8621
 
  $as_echo_n "(cached) " >&6
8622
 
else
8623
 
  case "$XGETTEXT" in
8624
 
  /*)
8625
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8626
 
  ;;
8627
 
  *)
8628
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8629
 
  for ac_dir in $PATH; do
8630
 
    test -z "$ac_dir" && ac_dir=.
8631
 
    if test -f $ac_dir/$ac_word; then
8632
 
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8633
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8634
 
        break
8635
 
      fi
8636
 
    fi
8637
 
  done
8638
 
  IFS="$ac_save_ifs"
8639
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8640
 
  ;;
8641
 
esac
8642
 
fi
8643
 
XGETTEXT="$ac_cv_path_XGETTEXT"
8644
 
if test "$XGETTEXT" != ":"; then
8645
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8646
 
$as_echo "$XGETTEXT" >&6; }
8647
 
else
8648
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649
 
$as_echo "no" >&6; }
8650
 
fi
8651
 
 
8652
 
 
8653
 
        BUILD_INCLUDED_LIBINTL=yes
8654
 
        USE_INCLUDED_LIBINTL=yes
8655
 
        CATOBJEXT=.gmo
8656
 
        INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8657
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8658
 
      fi
8659
 
 
8660
 
                  if test "$GMSGFMT" != ":"; then
8661
 
                        if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8662
 
          : ;
 
17876
          MSGFMT_OPTS=
 
17877
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
 
17878
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
 
17879
          cat >conftest.foo <<_ACEOF
 
17880
 
 
17881
msgid ""
 
17882
msgstr ""
 
17883
"Content-Type: text/plain; charset=UTF-8\n"
 
17884
"Project-Id-Version: test 1.0\n"
 
17885
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
17886
"Last-Translator: test <foo@bar.xx>\n"
 
17887
"Language-Team: C <LL@li.org>\n"
 
17888
"MIME-Version: 1.0\n"
 
17889
"Content-Transfer-Encoding: 8bit\n"
 
17890
 
 
17891
_ACEOF
 
17892
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
 
17893
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 
17894
  ac_status=$?
 
17895
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17896
  test $ac_status = 0; }; then
 
17897
  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17898
$as_echo "yes" >&6; }
 
17899
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17900
$as_echo "no" >&6; }
 
17901
echo "$as_me: failed input was:" >&5
 
17902
sed 's/^/| /' conftest.foo >&5
 
17903
fi
 
17904
 
 
17905
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
17906
set dummy gmsgfmt; ac_word=$2
 
17907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17908
$as_echo_n "checking for $ac_word... " >&6; }
 
17909
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
17910
  $as_echo_n "(cached) " >&6
 
17911
else
 
17912
  case $GMSGFMT in
 
17913
  [\\/]* | ?:[\\/]*)
 
17914
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
17915
  ;;
 
17916
  *)
 
17917
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17918
for as_dir in $PATH
 
17919
do
 
17920
  IFS=$as_save_IFS
 
17921
  test -z "$as_dir" && as_dir=.
 
17922
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17923
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17924
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
17925
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17926
    break 2
 
17927
  fi
 
17928
done
 
17929
  done
 
17930
IFS=$as_save_IFS
 
17931
 
 
17932
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
17933
  ;;
 
17934
esac
 
17935
fi
 
17936
GMSGFMT=$ac_cv_path_GMSGFMT
 
17937
if test -n "$GMSGFMT"; then
 
17938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
17939
$as_echo "$GMSGFMT" >&6; }
 
17940
else
 
17941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17942
$as_echo "no" >&6; }
 
17943
fi
 
17944
 
 
17945
 
 
17946
          # Extract the first word of "xgettext", so it can be a program name with args.
 
17947
set dummy xgettext; ac_word=$2
 
17948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17949
$as_echo_n "checking for $ac_word... " >&6; }
 
17950
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
17951
  $as_echo_n "(cached) " >&6
 
17952
else
 
17953
  case "$XGETTEXT" in
 
17954
  /*)
 
17955
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
17956
  ;;
 
17957
  *)
 
17958
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
17959
  for ac_dir in $PATH; do
 
17960
    test -z "$ac_dir" && ac_dir=.
 
17961
    if test -f $ac_dir/$ac_word; then
 
17962
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
17963
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
17964
        break
 
17965
      fi
 
17966
    fi
 
17967
  done
 
17968
  IFS="$ac_save_ifs"
 
17969
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
17970
  ;;
 
17971
esac
 
17972
fi
 
17973
XGETTEXT="$ac_cv_path_XGETTEXT"
 
17974
if test "$XGETTEXT" != ":"; then
 
17975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
17976
$as_echo "$XGETTEXT" >&6; }
 
17977
else
 
17978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17979
$as_echo "no" >&6; }
 
17980
fi
 
17981
 
 
17982
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17983
/* end confdefs.h.  */
 
17984
 
 
17985
int
 
17986
main ()
 
17987
{
 
17988
extern int _nl_msg_cat_cntr;
 
17989
                         return _nl_msg_cat_cntr
 
17990
  ;
 
17991
  return 0;
 
17992
}
 
17993
_ACEOF
 
17994
if ac_fn_c_try_link "$LINENO"; then :
 
17995
  CATOBJEXT=.gmo
 
17996
             DATADIRNAME=share
 
17997
else
 
17998
  case $host in
 
17999
            *-*-solaris*)
 
18000
                                                                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
18001
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
 
18002
  CATOBJEXT=.gmo
 
18003
               DATADIRNAME=share
 
18004
else
 
18005
  CATOBJEXT=.mo
 
18006
               DATADIRNAME=lib
 
18007
fi
 
18008
 
 
18009
            ;;
 
18010
            *)
 
18011
            CATOBJEXT=.mo
 
18012
            DATADIRNAME=lib
 
18013
            ;;
 
18014
            esac
 
18015
fi
 
18016
rm -f core conftest.err conftest.$ac_objext \
 
18017
    conftest$ac_exeext conftest.$ac_ext
 
18018
          LIBS="$glib_save_LIBS"
 
18019
          INSTOBJEXT=.mo
8663
18020
        else
8664
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8665
 
$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; }
8666
 
          GMSGFMT=":"
 
18021
          gt_cv_have_gettext=no
8667
18022
        fi
8668
18023
      fi
8669
18024
 
8670
 
                  if test "$XGETTEXT" != ":"; then
8671
 
                        if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8672
 
          : ;
8673
 
        else
8674
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
18025
fi
 
18026
 
 
18027
 
 
18028
 
 
18029
    if test "$gt_cv_have_gettext" = "yes" ; then
 
18030
 
 
18031
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
18032
 
 
18033
    fi
 
18034
 
 
18035
        if test "$XGETTEXT" != ":"; then
 
18036
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
18037
        : ;
 
18038
      else
 
18039
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8675
18040
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8676
 
          XGETTEXT=":"
8677
 
        fi
 
18041
        XGETTEXT=":"
8678
18042
      fi
8679
 
 
8680
 
            POSUB=po
8681
18043
    fi
 
18044
 
 
18045
    # We need to process the po/ directory.
 
18046
    POSUB=po
 
18047
 
8682
18048
    ac_config_commands="$ac_config_commands default-1"
8683
18049
 
8684
18050
 
8685
 
 
8686
 
            if test "$PACKAGE" = gettext; then
8687
 
      BUILD_INCLUDED_LIBINTL=yes
8688
 
    fi
8689
 
 
8690
 
                                            for ac_prog in bison
8691
 
do
8692
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
8693
 
set dummy $ac_prog; ac_word=$2
8694
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695
 
$as_echo_n "checking for $ac_word... " >&6; }
8696
 
if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8697
 
  $as_echo_n "(cached) " >&6
8698
 
else
8699
 
  if test -n "$INTLBISON"; then
8700
 
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8701
 
else
8702
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703
 
for as_dir in $PATH
8704
 
do
8705
 
  IFS=$as_save_IFS
8706
 
  test -z "$as_dir" && as_dir=.
8707
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8708
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709
 
    ac_cv_prog_INTLBISON="$ac_prog"
8710
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711
 
    break 2
8712
 
  fi
8713
 
done
8714
 
  done
8715
 
IFS=$as_save_IFS
8716
 
 
8717
 
fi
8718
 
fi
8719
 
INTLBISON=$ac_cv_prog_INTLBISON
8720
 
if test -n "$INTLBISON"; then
8721
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8722
 
$as_echo "$INTLBISON" >&6; }
8723
 
else
8724
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725
 
$as_echo "no" >&6; }
8726
 
fi
8727
 
 
8728
 
 
8729
 
  test -n "$INTLBISON" && break
8730
 
done
8731
 
 
8732
 
    if test -z "$INTLBISON"; then
8733
 
      ac_verc_fail=yes
8734
 
    else
8735
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8736
 
$as_echo_n "checking version of bison... " >&6; }
8737
 
      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8738
 
      case $ac_prog_version in
8739
 
        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8740
 
        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8741
 
           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8742
 
        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8743
 
      esac
8744
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8745
 
$as_echo "$ac_prog_version" >&6; }
8746
 
    fi
8747
 
    if test $ac_verc_fail = yes; then
8748
 
      INTLBISON=:
8749
 
    fi
8750
 
 
8751
18051
                for lang in $ALL_LINGUAS; do
8752
18052
      GMOFILES="$GMOFILES $lang.gmo"
8753
18053
      POFILES="$POFILES $lang.po"
8763
18063
 
8764
18064
 
8765
18065
 
8766
 
        nls_cv_header_intl=
8767
 
    nls_cv_header_libgt=
8768
 
 
8769
 
        DATADIRNAME=share
8770
 
 
8771
 
 
8772
 
        INSTOBJEXT=.mo
8773
 
 
8774
 
 
8775
 
        GENCAT=gencat
8776
 
 
8777
 
 
8778
 
 
8779
 
   if test "x$CATOBJEXT" != "x"; then
 
18066
 
 
18067
 
 
18068
   if test "$gt_cv_have_gettext" = "yes"; then
8780
18069
     if test "x$ALL_LINGUAS" = "x"; then
8781
18070
       LINGUAS=
8782
18071
     else
8785
18074
       NEW_LINGUAS=
8786
18075
       for presentlang in $ALL_LINGUAS; do
8787
18076
         useit=no
8788
 
         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8789
 
           # Use the presentlang catalog if desiredlang is
 
18077
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
18078
           desiredlanguages="$LINGUAS"
 
18079
         else
 
18080
           desiredlanguages="$ALL_LINGUAS"
 
18081
         fi
 
18082
         for desiredlang in $desiredlanguages; do
 
18083
           # Use the presentlang catalog if desiredlang is
8790
18084
           #   a. equal to presentlang, or
8791
18085
           #   b. a variant of presentlang (because in this case,
8792
18086
           #      presentlang can be used as a fallback for messages
8818
18112
   fi
8819
18113
 
8820
18114
 
8821
 
      INTL_LIBTOOL_SUFFIX_PREFIX=
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
if test "$USE_NLS" = "yes"; then
8827
 
 
8828
 
  if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8829
 
    have_working_ngettext=0
8830
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lc" >&5
 
18115
         test -d po || mkdir po
 
18116
   if test "x$srcdir" != "x."; then
 
18117
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
18118
       posrcprefix="$srcdir/"
 
18119
     else
 
18120
       posrcprefix="../$srcdir/"
 
18121
     fi
 
18122
   else
 
18123
     posrcprefix="../"
 
18124
   fi
 
18125
   rm -f po/POTFILES
 
18126
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
18127
        < $srcdir/po/POTFILES.in > po/POTFILES
 
18128
 
 
18129
 
 
18130
 
 
18131
  have_working_ngettext=0
 
18132
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lc" >&5
8831
18133
$as_echo_n "checking for ngettext in -lc... " >&6; }
8832
18134
if test "${ac_cv_lib_c_ngettext+set}" = set; then :
8833
18135
  $as_echo_n "(cached) " >&6
8921
18223
fi
8922
18224
 
8923
18225
 
8924
 
    if test "$have_working_ngettext" = "0"; then
8925
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
18226
  if test "$have_working_ngettext" = "0"; then
 
18227
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8926
18228
$as_echo_n "checking for ngettext in -lintl... " >&6; }
8927
18229
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
8928
18230
  $as_echo_n "(cached) " >&6
9015
18317
 
9016
18318
fi
9017
18319
 
9018
 
    fi
 
18320
  fi
9019
18321
 
9020
 
    if test "$have_working_ngettext" = "0"; then
9021
 
      as_fn_error "I haven't found a working ngettext function in your system.
9022
 
Try --with-included-gettext or --disable-nls. Read ABOUT-NLS." "$LINENO" 5
9023
 
    fi
 
18322
  if test "$have_working_ngettext" = "0"; then
 
18323
    as_fn_error "I haven't found a working ngettext function in your system.
 
18324
Try --disable-nls. Read ABOUT-NLS." "$LINENO" 5
9024
18325
  fi
9025
18326
 
9026
18327
  if test "$IS_BETA_VERSION" = "1" || test "$IS_DEVEL_VERSION" = "1"; then
9129
18430
fi
9130
18431
 
9131
18432
  fi
 
18433
else
 
18434
      for lang in $ALL_LINGUAS; do
 
18435
    POFILES="$POFILES $lang.po"
 
18436
  done
 
18437
 
9132
18438
fi
9133
18439
 
9134
18440
EXTRA_DEBUG_CFLAGS=""
9185
18491
 
9186
18492
 
9187
18493
 
9188
 
 
9189
18494
ac_ext=cpp
9190
18495
ac_cpp='$CXXCPP $CPPFLAGS'
9191
18496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504
18809
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505
18810
/* end confdefs.h.  */
9506
18811
 
 
18812
#include <string.h>
 
18813
#include <stdio.h>
 
18814
 
9507
18815
int
9508
18816
main ()
9509
18817
{
9619
18927
 
9620
18928
MINGW32=no
9621
18929
AMIGA=no
 
18930
HOST_PATH_SEPARATOR=":"
9622
18931
 
9623
18932
case "$host_os" in
9624
18933
 
9720
19029
          as_fn_error "*** 'windres' missing.  Install binutils, fix your \$PATH, or set \$WINDRES manually. ***" "$LINENO" 5
9721
19030
    fi
9722
19031
 
 
19032
    HOST_PATH_SEPARATOR=";"
 
19033
 
9723
19034
 
9724
19035
$as_echo "#define SOCKET_ZERO_ISNT_STDIN 1" >>confdefs.h
9725
19036
 
9760
19071
 
9761
19072
esac
9762
19073
 
 
19074
if test x$build = x$host ; then
 
19075
  HOST_PATH_SEPARATOR=$PATH_SEPARATOR
 
19076
fi
 
19077
 
9763
19078
if test x"$MINGW32" != "xyes"; then
9764
19079
  CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$localedir\\\"\""
9765
19080
else
9822
19137
 
9823
19138
else
9824
19139
  as_fn_error "zlib found but not zlib.h.
9825
 
You may need to install a zlib \"development\" package." "$LINENO" 5
 
19140
You may need to install a zlib devel package." "$LINENO" 5
9826
19141
fi
9827
19142
 
9828
19143
 
9871
19186
  as_fn_error "You need the gzip program for compilation." "$LINENO" 5
9872
19187
fi
9873
19188
 
 
19189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzReadOpen in -lbz2" >&5
 
19190
$as_echo_n "checking for BZ2_bzReadOpen in -lbz2... " >&6; }
 
19191
if test "${ac_cv_lib_bz2_BZ2_bzReadOpen+set}" = set; then :
 
19192
  $as_echo_n "(cached) " >&6
 
19193
else
 
19194
  ac_check_lib_save_LIBS=$LIBS
 
19195
LIBS="-lbz2  $LIBS"
 
19196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19197
/* end confdefs.h.  */
 
19198
 
 
19199
/* Override any GCC internal prototype to avoid an error.
 
19200
   Use char because int might match the return type of a GCC
 
19201
   builtin and then its argument prototype would still apply.  */
 
19202
#ifdef __cplusplus
 
19203
extern "C"
 
19204
#endif
 
19205
char BZ2_bzReadOpen ();
 
19206
int
 
19207
main ()
 
19208
{
 
19209
return BZ2_bzReadOpen ();
 
19210
  ;
 
19211
  return 0;
 
19212
}
 
19213
_ACEOF
 
19214
if ac_fn_c_try_link "$LINENO"; then :
 
19215
  ac_cv_lib_bz2_BZ2_bzReadOpen=yes
 
19216
else
 
19217
  ac_cv_lib_bz2_BZ2_bzReadOpen=no
 
19218
fi
 
19219
rm -f core conftest.err conftest.$ac_objext \
 
19220
    conftest$ac_exeext conftest.$ac_ext
 
19221
LIBS=$ac_check_lib_save_LIBS
 
19222
fi
 
19223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5
 
19224
$as_echo "$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6; }
 
19225
if test "x$ac_cv_lib_bz2_BZ2_bzReadOpen" = x""yes; then :
 
19226
  cat >>confdefs.h <<_ACEOF
 
19227
#define HAVE_LIBBZ2 1
 
19228
_ACEOF
 
19229
 
 
19230
  LIBS="-lbz2 $LIBS"
 
19231
 
 
19232
fi
 
19233
 
 
19234
for ac_header in bzlib.h
 
19235
do :
 
19236
  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
 
19237
if test "x$ac_cv_header_bzlib_h" = x""yes; then :
 
19238
  cat >>confdefs.h <<_ACEOF
 
19239
#define HAVE_BZLIB_H 1
 
19240
_ACEOF
 
19241
 
 
19242
fi
 
19243
 
 
19244
done
 
19245
 
 
19246
 
9874
19247
if test "$ftwl" = x11 ; then
9875
 
     FTWL_CFLAGS=`freetype-config --cflags`
9876
 
     FTWL_LIBS="-L/usr/X11R6/lib -lX11 -lpng "`freetype-config --libs`
 
19248
     FTWL_CFLAGS="$FTWL_CFLAGS "`freetype-config --cflags`
 
19249
     FTWL_LIBS="$FTWL_LIBS -L/usr/X11R6/lib -lX11 -lpng "`freetype-config --libs`
9877
19250
fi
9878
19251
 
9879
19252
if test "$ftwl" = sdl ; then
9880
 
     FTWL_CFLAGS=`sdl-config --cflags`" "`freetype-config --cflags`
9881
 
     FTWL_LIBS=`sdl-config --libs`" -lpng "`freetype-config --libs`
 
19253
     FTWL_CFLAGS="$FTWL_CFLAGS "`sdl-config --cflags`" "`freetype-config --cflags`
 
19254
     FTWL_LIBS="$FTWL_LIBS "`sdl-config --libs`" -lpng "`freetype-config --libs`
9882
19255
 
9883
19256
$as_echo "#define SDL 1" >>confdefs.h
9884
19257
 
9885
19258
fi
9886
19259
 
9887
19260
if test "$ftwl" = opengl ; then
9888
 
     FTWL_CFLAGS=`sdl-config --cflags`" "`freetype-config --cflags`
9889
 
     FTWL_LIBS=`sdl-config --libs`" -lpng "`freetype-config --libs -lGL -lGLU`
 
19261
     FTWL_CFLAGS="$FTWL_CFLAGS "`sdl-config --cflags`" "`freetype-config --cflags`
 
19262
     FTWL_LIBS="$FTWL_LIBS "`sdl-config --libs`" -lpng "`freetype-config --libs -lGL -lGLU`
9890
19263
fi
9891
19264
 
9892
 
if test x$client != xno; then
 
19265
if test "x$client" != "xno"; then
9893
19266
 
9894
 
    if test x$client = xyes; then
9895
19267
    if test -n "$WITH_XAW" || test -n "$WITH_XAW3D"; then
9896
 
      client=xaw
 
19268
    if test "x$client" = "xauto" ; then
 
19269
      gui_xaw=yes
 
19270
      client=yes
 
19271
    elif test "x$client" = "xall" ; then
 
19272
      gui_xaw=yes
9897
19273
    fi
9898
19274
  fi
9899
19275
 
9900
 
    if test x$client = xyes; then
 
19276
    if test "x$client" = "xauto"; then
9901
19277
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which client to compile:..." >&5
9902
19278
$as_echo "$as_me: checking for which client to compile:..." >&6;}
 
19279
  elif test "x$client" = "xall" ; then
 
19280
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which clients to compile:..." >&5
 
19281
$as_echo "$as_me: checking for which clients to compile:..." >&6;}
9903
19282
  fi
9904
19283
 
9905
19284
 
9906
 
  if test "$client" = "gtk-2.0" || test "$client" = yes ; then
 
19285
  if test "x$gui_gtk2" = "xyes" || test "x$client" = "xauto" ||
 
19286
     test "x$client" = "xall" ; then
9907
19287
    # Check whether --enable-gtktest was given.
9908
19288
if test "${enable_gtktest+set}" = set; then :
9909
19289
  enableval=$enable_gtktest;
10106
19486
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
10107
19487
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
10108
19488
 
10109
 
        client="gtk-2.0"
10110
 
        CLIENT_CFLAGS="$GTK_CFLAGS"
10111
 
        CLIENT_LIBS="$GTK_LIBS"
10112
 
        if test x"$MINGW32" = "xyes"; then
10113
 
                    CFLAGS="$CFLAGS -mms-bitfields"
10114
 
          CLIENT_LDFLAGS="$LDFLAGS -mwindows"
 
19489
        gui_gtk2=yes
 
19490
        if test "x$client" = "xauto" ; then
 
19491
          client=yes
 
19492
        fi
 
19493
        GUI_gtk2_CFLAGS="$GTK_CFLAGS"
 
19494
        GUI_gtk2_LIBS="$GTK_LIBS"
 
19495
        if test "x$MINGW32" = "xyes"; then
 
19496
                    GUI_gtk2_CFLAGS="$GUI_gtk2_CFLAGS -mms-bitfields"
 
19497
          GUI_gtk2_LDFLAGS="$GUI_gtk2_LDFLAGS -mwindows"
10115
19498
        fi
10116
19499
 
10117
19500
  else
10167
19550
     GTK_LIBS=""
10168
19551
 
10169
19552
 
10170
 
  if test "$client" = "gtk-2.0"; then
10171
 
    as_fn_error "specified client 'gtk-2.0' not configurable (GTK+-2.0 libraries not found)" "$LINENO" 5
 
19553
  if test "x`eval echo '$'gui_gtk2`" = "xyes"; then
 
19554
    as_fn_error "specified client 'gtk2' not configurable (GTK+-2.0 libraries not found)" "$LINENO" 5
10172
19555
  fi
10173
19556
 
10174
19557
 
10181
19564
 
10182
19565
 
10183
19566
 
10184
 
  if test "$client" = yes; then
10185
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not checking for SDL; use --enable-client=sdl to enable" >&5
10186
 
$as_echo "$as_me: WARNING: Not checking for SDL; use --enable-client=sdl to enable" >&2;}
10187
 
  elif test "$client" = sdl ; then
 
19567
  if test "x$gui_sdl" = "xyes" || test "x$client" = "xall" ||
 
19568
     test "x$client" = "xauto" ; then
10188
19569
 
10189
19570
# Check whether --with-sdl-prefix was given.
10190
19571
if test "${with_sdl_prefix+set}" = set; then :
10748
20129
 
10749
20130
 
10750
20131
          if test "$freetype_found" = yes; then
10751
 
            CLIENT_CFLAGS="$SDL_CFLAGS $FT2_CFLAGS"
10752
 
            CLIENT_LIBS="-lSDL_image $SDL_LIBS $FT2_LIBS"
10753
 
 
10754
 
$as_echo "#define SDL 1" >>confdefs.h
10755
 
 
 
20132
            GUI_sdl_CFLAGS="$SDL_CFLAGS $FT2_CFLAGS"
 
20133
            GUI_sdl_LIBS="-lSDL_image $SDL_LIBS $FT2_LIBS"
10756
20134
            found_client=yes
10757
 
          elif test "$client" = "sdl"; then
 
20135
          elif test "x$gui_sdl" = "xyes"; then
10758
20136
            as_fn_error "specified client 'sdl' not configurable (FreeType2 >= 2.1.3 is needed (www.freetype.org))" "$LINENO" 5
10759
20137
          fi
10760
 
        elif test "$client" = "sdl"; then
 
20138
        elif test "x$gui_sdl" = "xyes"; then
10761
20139
            as_fn_error "specified client 'sdl' not configurable (SDL_image-devel is needed (www.libsdl.org))" "$LINENO" 5
10762
20140
        fi
10763
 
      elif test "$client" = "sdl"; then
 
20141
      elif test "x$gui_sdl" = "xyes"; then
10764
20142
        as_fn_error "specified client 'sdl' not configurable (SDL_image is needed (www.libsdl.org))" "$LINENO" 5
10765
20143
      fi
10766
20144
    fi
10767
20145
 
10768
20146
    if test "$found_client" = yes; then
10769
 
      client=sdl
 
20147
      gui_sdl=yes
 
20148
      if test "x$client" = "xauto" ; then
 
20149
        client=yes
 
20150
      fi
10770
20151
 
10771
20152
 
10772
20153
 
11092
20473
 
11093
20474
  fi
11094
20475
 
11095
 
      CLIENT_LIBS="$LIBICONV $CLIENT_LIBS"
 
20476
      GUI_sdl_LIBS="$LIBICONV $GUI_sdl_LIBS"
11096
20477
 
11097
20478
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11098
20479
$as_echo_n "checking for connect in -lsocket... " >&6; }
11131
20512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11132
20513
$as_echo "$ac_cv_lib_socket_connect" >&6; }
11133
20514
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
11134
 
  CLIENT_LIBS="-lsocket $CLIENT_LIBS"
 
20515
  GUI_sdl_LIBS="-lsocket $GUI_sdl_LIBS"
11135
20516
fi
11136
20517
 
11137
20518
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5
11171
20552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5
11172
20553
$as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; }
11173
20554
if test "x$ac_cv_lib_bind_gethostbyaddr" = x""yes; then :
11174
 
  CLIENT_LIBS="-lbind $CLIENT_LIBS"
 
20555
  GUI_sdl_LIBS="-lbind $GUI_sdl_LIBS"
11175
20556
fi
11176
20557
 
11177
20558
 
11178
 
    elif test "$client" = "sdl"; then
 
20559
    elif test "x$gui_sdl" = "xyes"; then
11179
20560
      as_fn_error "specified client 'sdl' not configurable (SDL >= 1.1.4 is needed (www.libsdl.org))" "$LINENO" 5
11180
20561
    fi
11181
20562
  fi
12085
21466
 
12086
21467
 
12087
21468
 
12088
 
  if test "$client" = yes ; then
12089
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not checking for XAW; use --enable-client=xaw to enable" >&5
12090
 
$as_echo "$as_me: WARNING: Not checking for XAW; use --enable-client=xaw to enable" >&2;}
12091
 
  elif test "$client" = xaw ; then
 
21469
  if test "x$gui_xaw" = "xyes" || test "x$client" = "xall" ||
 
21470
     test "x$client" = "xauto" ; then
12092
21471
        if test "$no_x" = yes; then
12093
21472
  # Not all programs may use this symbol, but it does not hurt to define it.
12094
21473
 
12894
22273
  X_LIBS="$X_LIBS -lpng -lm"
12895
22274
else
12896
22275
 
12897
 
          as_fn_error "Could not find PNG library." "$LINENO" 5
 
22276
 
 
22277
  if test "x`eval echo '$'gui_xaw`" = "xyes"; then
 
22278
    as_fn_error "specified client 'xaw' not configurable (Could not find PNG library.)" "$LINENO" 5
 
22279
  fi
 
22280
 
 
22281
          no_png=yes
12898
22282
 
12899
22283
fi
12900
22284
 
12906
22290
 
12907
22291
else
12908
22292
 
12909
 
        as_fn_error "libpng found but not png.h.
12910
 
You may need to install a libpng \"development\" package." "$LINENO" 5
 
22293
 
 
22294
  if test "x`eval echo '$'gui_xaw`" = "xyes"; then
 
22295
    as_fn_error "specified client 'xaw' not configurable (libpng found but not png.h.
 
22296
You may need to install a libpng \"development\" package.)" "$LINENO" 5
 
22297
  fi
 
22298
 
 
22299
        no_png=yes
12911
22300
 
12912
22301
fi
12913
22302
 
12995
22384
  X_LIBS="$X_LIBS -lpng -lm"
12996
22385
else
12997
22386
 
12998
 
          as_fn_error "Could not find PNG library." "$LINENO" 5
 
22387
 
 
22388
  if test "x`eval echo '$'gui_xaw`" = "xyes"; then
 
22389
    as_fn_error "specified client 'xaw' not configurable (Could not find PNG library.)" "$LINENO" 5
 
22390
  fi
 
22391
 
 
22392
          no_png=yes
12999
22393
 
13000
22394
fi
13001
22395
 
13007
22401
 
13008
22402
else
13009
22403
 
13010
 
        as_fn_error "libpng found but not png.h.
13011
 
You may need to install a libpng \"development\" package." "$LINENO" 5
 
22404
 
 
22405
  if test "x`eval echo '$'gui_xaw`" = "xyes"; then
 
22406
    as_fn_error "specified client 'xaw' not configurable (libpng found but not png.h.
 
22407
You may need to install a libpng \"development\" package.)" "$LINENO" 5
 
22408
  fi
 
22409
 
 
22410
        no_png=yes
13012
22411
 
13013
22412
fi
13014
22413
 
13543
22942
 as_fn_error "did not find Xaw3d library" "$LINENO" 5
13544
22943
  fi
13545
22944
 
13546
 
        elif test "$client" = "xaw"; then
 
22945
        else
13547
22946
 
13548
22947
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXaw" >&5
13549
22948
$as_echo_n "checking for main in X library -lXaw... " >&6; }
13614
23013
 as_fn_error "did not find Xaw library" "$LINENO" 5
13615
23014
  fi
13616
23015
 
13617
 
        else
13618
 
 
13619
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXaw3d" >&5
13620
 
$as_echo_n "checking for main in X library -lXaw3d... " >&6; }
13621
 
 
13622
 
 
13623
 
 ac_lib_var=`echo Xaw3d'_'main | sed 'y%./+-%__p_%'`
13624
 
 if { as_var=ac_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13625
 
  $as_echo_n "(cached) " >&6
13626
 
else
13627
 
  ac_save_LIBS="$LIBS"
13628
 
   LIBS="$X_LIBS -lXaw3d $X_EXTRA_LIBS $LIBS"
13629
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630
 
/* end confdefs.h.  */
13631
 
 
13632
 
 
13633
 
int
13634
 
main ()
13635
 
{
13636
 
main()
13637
 
  ;
13638
 
  return 0;
13639
 
}
13640
 
_ACEOF
13641
 
if ac_fn_c_try_link "$LINENO"; then :
13642
 
  eval "ac_cv_lib_$ac_lib_var=yes"
13643
 
else
13644
 
  eval "ac_cv_lib_$ac_lib_var=no"
13645
 
fi
13646
 
rm -f core conftest.err conftest.$ac_objext \
13647
 
    conftest$ac_exeext conftest.$ac_ext
13648
 
   LIBS="$ac_save_LIBS"
13649
 
 
13650
 
fi
13651
 
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13652
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653
 
$as_echo "yes" >&6; }
13654
 
      ac_tr_lib=HAVE_LIB`echo Xaw3d | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13655
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13656
 
 
13657
 
    # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an
13658
 
    # AH_TEMPLATE for them so that autoheader will know about them.
13659
 
 
13660
 
 
13661
 
 
13662
 
 
13663
 
 
13664
 
 
13665
 
 
13666
 
    if (test $ac_tr_lib == HAVE_LIBX11     \
13667
 
        || test $ac_tr_lib == HAVE_LIBXEXT \
13668
 
        || test $ac_tr_lib == HAVE_LIBXT   \
13669
 
        || test $ac_tr_lib == HAVE_LIBXMU  \
13670
 
        || test $ac_tr_lib == HAVE_LIBXPM  \
13671
 
        || test $ac_tr_lib == HAVE_LIBXAW  \
13672
 
        || test $ac_tr_lib == HAVE_LIBXAW3D); then
13673
 
      cat >>confdefs.h <<_ACEOF
13674
 
#define $ac_tr_lib 1
13675
 
_ACEOF
13676
 
 
13677
 
      X_EXTRA_LIBS="-lXaw3d $X_EXTRA_LIBS"
13678
 
    else
13679
 
      as_fn_error "Invalid define of $ac_tr_lib in Xaw3d" "$LINENO" 5
13680
 
    fi
13681
 
 
13682
 
 else
13683
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684
 
$as_echo "no" >&6; }
13685
 
 noXaw3d=1
13686
 
  fi
13687
 
 
13688
 
          if test -n "$noXaw3d"; then
13689
 
 
13690
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXaw" >&5
13691
 
$as_echo_n "checking for main in X library -lXaw... " >&6; }
13692
 
 
13693
 
 
13694
 
 ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
13695
 
 if { as_var=ac_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13696
 
  $as_echo_n "(cached) " >&6
13697
 
else
13698
 
  ac_save_LIBS="$LIBS"
13699
 
   LIBS="$X_LIBS -lXaw $X_EXTRA_LIBS $LIBS"
13700
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701
 
/* end confdefs.h.  */
13702
 
 
13703
 
 
13704
 
int
13705
 
main ()
13706
 
{
13707
 
main()
13708
 
  ;
13709
 
  return 0;
13710
 
}
13711
 
_ACEOF
13712
 
if ac_fn_c_try_link "$LINENO"; then :
13713
 
  eval "ac_cv_lib_$ac_lib_var=yes"
13714
 
else
13715
 
  eval "ac_cv_lib_$ac_lib_var=no"
13716
 
fi
13717
 
rm -f core conftest.err conftest.$ac_objext \
13718
 
    conftest$ac_exeext conftest.$ac_ext
13719
 
   LIBS="$ac_save_LIBS"
13720
 
 
13721
 
fi
13722
 
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13723
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13724
 
$as_echo "yes" >&6; }
13725
 
      ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13726
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13727
 
 
13728
 
    # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an
13729
 
    # AH_TEMPLATE for them so that autoheader will know about them.
13730
 
 
13731
 
 
13732
 
 
13733
 
 
13734
 
 
13735
 
 
13736
 
 
13737
 
    if (test $ac_tr_lib == HAVE_LIBX11     \
13738
 
        || test $ac_tr_lib == HAVE_LIBXEXT \
13739
 
        || test $ac_tr_lib == HAVE_LIBXT   \
13740
 
        || test $ac_tr_lib == HAVE_LIBXMU  \
13741
 
        || test $ac_tr_lib == HAVE_LIBXPM  \
13742
 
        || test $ac_tr_lib == HAVE_LIBXAW  \
13743
 
        || test $ac_tr_lib == HAVE_LIBXAW3D); then
13744
 
      cat >>confdefs.h <<_ACEOF
13745
 
#define $ac_tr_lib 1
13746
 
_ACEOF
13747
 
 
13748
 
      X_EXTRA_LIBS="-lXaw $X_EXTRA_LIBS"
13749
 
    else
13750
 
      as_fn_error "Invalid define of $ac_tr_lib in Xaw" "$LINENO" 5
13751
 
    fi
13752
 
 
13753
 
 else
13754
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755
 
$as_echo "no" >&6; }
13756
 
 as_fn_error "did not find either Xaw or Xaw3d library" "$LINENO" 5
13757
 
  fi
13758
 
 
13759
 
          fi
13760
23016
        fi
13761
23017
 
13762
 
        CLIENT_CFLAGS="$X_CFLAGS"
13763
 
        CLIENT_LIBS="$X_LIBS $X_EXTRA_LIBS"
 
23018
        GUI_xaw_CFLAGS="$X_CFLAGS"
 
23019
        GUI_xaw_LIBS="$X_LIBS $X_EXTRA_LIBS"
13764
23020
 
13765
23021
        found_client=yes
13766
23022
      fi
13767
23023
    fi
13768
23024
 
13769
 
    if test "x$found_client" = "xyes"; then
13770
 
      client=xaw
13771
 
    elif test "$client" = "xaw"; then
 
23025
    if test "x$found_client" = "xyes" && test "x$no_png" != "xyes"; then
 
23026
      gui_xaw=yes
 
23027
      if test "x$client" = "xauto" ; then
 
23028
        client=yes
 
23029
      fi
 
23030
    elif test "x$gui_xaw" = "xyes"; then
13772
23031
      if test "x$haveXpm" = "xno"; then
13773
23032
        as_fn_error "specified client 'xaw' not configurable -- need Xpm library and development headers; perhaps try/adjust --with-xpm-lib" "$LINENO" 5
13774
23033
      else
13778
23037
  fi
13779
23038
 
13780
23039
 
13781
 
  if test "$client" = ftwl ; then
13782
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking will compile gui-ftwl" >&5
 
23040
  if test "x$gui_ftwl" = "xyes" || test "x$client" = "xall" ||
 
23041
     test "x$client" = "xauto" ; then
 
23042
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking will compile gui-ftwl" >&5
13783
23043
$as_echo_n "checking will compile gui-ftwl... " >&6; }
 
23044
    if test "x$ftwl" = "xno" ; then
 
23045
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23046
$as_echo "no" >&6; }
 
23047
      if test "x$gui_ftwl" = "xyes" ; then
 
23048
        as_fn_error "You must use --enable-ftwl to compile the ftwl client" "$LINENO" 5
 
23049
      fi
 
23050
    else
13784
23051
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13785
23052
$as_echo "yes" >&6; }
13786
 
      CLIENT_CFLAGS="$CLIENT_CFLAGS $FTWL_CFLAGS"
13787
 
      CLIENT_LIBS="$CLIENT_LIBS $FTWL_LIBS"
 
23053
      gui_ftwl=yes
 
23054
      if test "x$client" = "xauto" ; then
 
23055
        client=yes
 
23056
      fi
 
23057
      GUI_ftwl_CFLAGS="$GUI_ftwl_CFLAGS $FTWL_CFLAGS"
 
23058
      GUI_ftwl_LIBS="$GUI_ftwl_LIBS $FTWL_LIBS"
 
23059
    fi
13788
23060
  fi
13789
23061
 
13790
 
    if test "$client" = beos || test "$client" = yes ; then
 
23062
    if test "x$gui_beos" = "xyes" || test "x$client" = "xall"
 
23063
     test "x$client" = "xauto" ; then
 
23064
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking will compile gui-beos" >&5
 
23065
$as_echo_n "checking will compile gui-beos... " >&6; }
13791
23066
    if test x`$UNAME -s` = xBeOS ; then
13792
 
      CLIENT_CFLAGS=
13793
 
      CLIENT_LIBS="-Lgui-beos/lib -lBdhGame -lBdhDialog -lBdh -ltranslation -lbe -lroot"
13794
 
      found_client=yes
13795
 
    fi
13796
 
 
13797
 
    if test "x$found_client" = "xyes"; then
13798
 
      client=beos
13799
 
    elif test "$client" = "beos"; then
13800
 
      as_fn_error "specified client 'beos' not configurable" "$LINENO" 5
 
23067
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
23068
$as_echo "yes" >&6; }
 
23069
      gui_beos=yes
 
23070
      if test "x$client" = "xauto" ; then
 
23071
        client=yes
 
23072
      fi
 
23073
      GUI_beos_CFLAGS=
 
23074
      GUI_beos_LIBS="-Lgui-beos/lib -lBdhGame -lBdhDialog -lBdh -ltranslation -lbe -lroot"
 
23075
    else
 
23076
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23077
$as_echo "no" >&6; }
 
23078
      if test "x$gui_beos" = "xyes" ; then
 
23079
        as_fn_error "The BeOS client is only available on BeOS." "$LINENO" 5
 
23080
      fi
13801
23081
    fi
13802
23082
  fi
13803
23083
 
13804
23084
 
13805
 
  if test "$client" = "win32" || test "$client" = "yes" ; then
 
23085
  if test "x$gui_win32" = "xyes" || test "x$client" = "xauto" ||
 
23086
     test "x$client" = "xall" ; then
13806
23087
    if test "$MINGW32" = "yes"; then
13807
23088
 
13808
23089
 
14116
23397
else
14117
23398
 
14118
23399
 
14119
 
  if test "$client" = "win32"; then
 
23400
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14120
23401
    as_fn_error "specified client 'win32' not configurable (libpng is needed)" "$LINENO" 5
14121
23402
  fi
14122
23403
 
14131
23412
if test "x$ac_cv_header_png_h" = x""yes; then :
14132
23413
 
14133
23414
              found_client=yes
14134
 
              client=win32
14135
 
              CLIENT_LIBS="-lwsock32 -lcomctl32  -lpng -mwindows"
 
23415
              gui_win32=yes
 
23416
              if test "x$client" = "xauto" ; then
 
23417
                client=yes
 
23418
              fi
 
23419
              GUI_win32_LIBS="-lwsock32 -lcomctl32  -lpng -mwindows"
14136
23420
 
14137
23421
else
14138
23422
 
14139
23423
 
14140
 
  if test "$client" = "win32"; then
 
23424
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14141
23425
    as_fn_error "specified client 'win32' not configurable (libpng-dev is needed)" "$LINENO" 5
14142
23426
  fi
14143
23427
 
14149
23433
else
14150
23434
 
14151
23435
 
14152
 
  if test "$client" = "win32"; then
 
23436
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14153
23437
    as_fn_error "specified client 'win32' not configurable (zlib-dev is needed)" "$LINENO" 5
14154
23438
  fi
14155
23439
 
14161
23445
else
14162
23446
 
14163
23447
 
14164
 
  if test "$client" = "win32"; then
 
23448
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14165
23449
    as_fn_error "specified client 'win32' not configurable (zlib is needed)" "$LINENO" 5
14166
23450
  fi
14167
23451
 
14303
23587
else
14304
23588
 
14305
23589
 
14306
 
  if test "$client" = "win32"; then
 
23590
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14307
23591
    as_fn_error "specified client 'win32' not configurable (libpng is needed)" "$LINENO" 5
14308
23592
  fi
14309
23593
 
14318
23602
if test "x$ac_cv_header_png_h" = x""yes; then :
14319
23603
 
14320
23604
              found_client=yes
14321
 
              client=win32
14322
 
              CLIENT_LIBS="-lwsock32 -lcomctl32  -lpng -mwindows"
 
23605
              gui_win32=yes
 
23606
              if test "x$client" = "xauto" ; then
 
23607
                client=yes
 
23608
              fi
 
23609
              GUI_win32_LIBS="-lwsock32 -lcomctl32  -lpng -mwindows"
14323
23610
 
14324
23611
else
14325
23612
 
14326
23613
 
14327
 
  if test "$client" = "win32"; then
 
23614
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14328
23615
    as_fn_error "specified client 'win32' not configurable (libpng-dev is needed)" "$LINENO" 5
14329
23616
  fi
14330
23617
 
14336
23623
else
14337
23624
 
14338
23625
 
14339
 
  if test "$client" = "win32"; then
 
23626
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14340
23627
    as_fn_error "specified client 'win32' not configurable (zlib-dev is needed)" "$LINENO" 5
14341
23628
  fi
14342
23629
 
14348
23635
else
14349
23636
 
14350
23637
 
14351
 
  if test "$client" = "win32"; then
 
23638
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14352
23639
    as_fn_error "specified client 'win32' not configurable (zlib is needed)" "$LINENO" 5
14353
23640
  fi
14354
23641
 
14362
23649
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363
23650
$as_echo "yes" >&6; }
14364
23651
 
14365
 
        CLIENT_LIBS="-lwsock32 -lcomctl32 -mwindows $PNG_LIBS"
14366
 
        CLIENT_CFLAGS="$PNG_CFLAGS"
 
23652
        GUI_win32_LIBS="-lwsock32 -lcomctl32 -mwindows $PNG_LIBS"
 
23653
        GUI_win32_CFLAGS="$PNG_CFLAGS"
14367
23654
 
14368
23655
fi
14369
23656
    else
14370
23657
 
14371
 
  if test "$client" = "win32"; then
 
23658
  if test "x`eval echo '$'gui_win32`" = "xyes"; then
14372
23659
    as_fn_error "specified client 'win32' not configurable (mingw32 is needed)" "$LINENO" 5
14373
23660
  fi
14374
23661
 
14376
23663
  fi
14377
23664
 
14378
23665
 
14379
 
    if test "$client" = stub ; then
 
23666
    if test "x$gui_stub" = "xyes" || test "x$client" = "xall" ; then
14380
23667
    found_client=yes
14381
23668
 
14382
23669
    if test "x$found_client" = "xyes"; then
14383
 
      client=stub
14384
 
      CLIENT_LIBS="-lm"
14385
 
    elif test "$client" = "stub"; then
 
23670
      gui_stub=yes
 
23671
      if test "x$client" = "xauto" ; then
 
23672
        client=yes
 
23673
      fi
 
23674
      GUI_stub_LIBS="-lm"
 
23675
    elif test "x$gui_stub" = "xyes"; then
14386
23676
      as_fn_error "specified client 'stub' not configurable" "$LINENO" 5
14387
23677
    fi
14388
23678
  fi
14389
23679
 
14390
 
    if test "$client" = yes ; then
 
23680
    if test "x$client" = "xauto" ; then
14391
23681
    as_fn_error "could not guess which client to compile" "$LINENO" 5
14392
23682
  fi
14393
23683
 
14728
24018
 
14729
24019
$as_echo "#define AUDIO_SDL 1" >>confdefs.h
14730
24020
 
14731
 
 
14732
 
$as_echo "#define SDL 1" >>confdefs.h
14733
 
 
14734
24021
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735
24022
$as_echo "yes" >&6; }
14736
24023
        SOUND_SDL_OK=true
14749
24036
  fi
14750
24037
 fi
14751
24038
 
14752
 
 
14753
 
  gui_sources="gui-$client"
14754
 
fi
14755
 
 
14756
 
if test "$client" = "gtk-2.0" ; then
 
24039
fi
 
24040
 
 
24041
if test "x$client" = "xall" ; then
 
24042
  if test "x$gui_gtk2" = "xyes" ||
 
24043
     test "x$gui_sdl" = "xyes" ||
 
24044
     test "x$gui_xaw" = "xyes" ||
 
24045
     test "x$gui_ftwl" = "xyes" ||
 
24046
     test "x$gui_win32" = "xyes" ||
 
24047
     test "x$gui_beos" = "xyes" ||
 
24048
     test "x$gui_stub" = "xyes" ; then
 
24049
    client=yes
 
24050
  else
 
24051
    client=no
 
24052
  fi
 
24053
fi
 
24054
 
 
24055
if test "x$gui_gtk2" = "xyes" ; then
14757
24056
 
14758
24057
 
14759
24058
if test "x$prefix" = "xNONE"; then
14931
24230
do
14932
24231
  for j in $libggz_header;
14933
24232
  do
14934
 
    echo "configure: 14934: $i/$j" >&5
 
24233
    echo "configure: 24233: $i/$j" >&5
14935
24234
    if test -r "$i/$j"; then
14936
24235
      echo "taking that" >&5
14937
24236
      libggz_incdir=$i
15187
24486
do
15188
24487
  for j in $ggzmod_header;
15189
24488
  do
15190
 
    echo "configure: 15190: $i/$j" >&5
 
24489
    echo "configure: 24489: $i/$j" >&5
15191
24490
    if test -r "$i/$j"; then
15192
24491
      echo "taking that" >&5
15193
24492
      ggzmod_incdir=$i
15317
24616
do
15318
24617
  for j in ggz-config;
15319
24618
  do
15320
 
    echo "configure: 15320: $i/$j" >&5
 
24619
    echo "configure: 24619: $i/$j" >&5
15321
24620
    if test -r "$i/$j"; then
15322
24621
      echo "taking that" >&5
15323
24622
      ggz_config_dir=$i
15546
24845
do
15547
24846
  for j in $ggz_gtk_header;
15548
24847
  do
15549
 
    echo "configure: 15549: $i/$j" >&5
 
24848
    echo "configure: 24848: $i/$j" >&5
15550
24849
    if test -r "$i/$j"; then
15551
24850
      echo "taking that" >&5
15552
24851
      ggz_gtk_incdir=$i
15738
25037
do
15739
25038
  for j in $libggz_header;
15740
25039
  do
15741
 
    echo "configure: 15741: $i/$j" >&5
 
25040
    echo "configure: 25040: $i/$j" >&5
15742
25041
    if test -r "$i/$j"; then
15743
25042
      echo "taking that" >&5
15744
25043
      libggz_incdir=$i
15990
25289
do
15991
25290
  for j in $ggzdmod_header;
15992
25291
  do
15993
 
    echo "configure: 15993: $i/$j" >&5
 
25292
    echo "configure: 25292: $i/$j" >&5
15994
25293
    if test -r "$i/$j"; then
15995
25294
      echo "taking that" >&5
15996
25295
      ggzdmod_incdir=$i
16241
25540
 
16242
25541
 
16243
25542
 
16244
 
  CLIENT_LIBS="$CLIENT_LIBS $LIB_GGZ_GTK"
 
25543
  GUI_gtk2_LIBS="$GUI_gtk2_LIBS $LIB_GGZ_GTK"
16245
25544
else
16246
25545
 
16247
25546
 
16420
25719
do
16421
25720
  for j in $libggz_header;
16422
25721
  do
16423
 
    echo "configure: 16423: $i/$j" >&5
 
25722
    echo "configure: 25722: $i/$j" >&5
16424
25723
    if test -r "$i/$j"; then
16425
25724
      echo "taking that" >&5
16426
25725
      libggz_incdir=$i
16676
25975
do
16677
25976
  for j in $ggzmod_header;
16678
25977
  do
16679
 
    echo "configure: 16679: $i/$j" >&5
 
25978
    echo "configure: 25978: $i/$j" >&5
16680
25979
    if test -r "$i/$j"; then
16681
25980
      echo "taking that" >&5
16682
25981
      ggzmod_incdir=$i
16806
26105
do
16807
26106
  for j in ggz-config;
16808
26107
  do
16809
 
    echo "configure: 16809: $i/$j" >&5
 
26108
    echo "configure: 26108: $i/$j" >&5
16810
26109
    if test -r "$i/$j"; then
16811
26110
      echo "taking that" >&5
16812
26111
      ggz_config_dir=$i
17035
26334
do
17036
26335
  for j in $ggz_gtk_header;
17037
26336
  do
17038
 
    echo "configure: 17038: $i/$j" >&5
 
26337
    echo "configure: 26337: $i/$j" >&5
17039
26338
    if test -r "$i/$j"; then
17040
26339
      echo "taking that" >&5
17041
26340
      ggz_gtk_incdir=$i
17227
26526
do
17228
26527
  for j in $libggz_header;
17229
26528
  do
17230
 
    echo "configure: 17230: $i/$j" >&5
 
26529
    echo "configure: 26529: $i/$j" >&5
17231
26530
    if test -r "$i/$j"; then
17232
26531
      echo "taking that" >&5
17233
26532
      libggz_incdir=$i
17479
26778
do
17480
26779
  for j in $ggzdmod_header;
17481
26780
  do
17482
 
    echo "configure: 17482: $i/$j" >&5
 
26781
    echo "configure: 26781: $i/$j" >&5
17483
26782
    if test -r "$i/$j"; then
17484
26783
      echo "taking that" >&5
17485
26784
      ggzdmod_incdir=$i
17748
27047
fi
17749
27048
 
17750
27049
 
 
27050
flags_save=$LDFLAGS
 
27051
accepted_flags=""
 
27052
 
 
27053
for flag in "-Wl,-rpath=${lib_prefix}"
 
27054
do
 
27055
  LDFLAGS="$flags_save $accepted_flags $flag "
 
27056
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27057
/* end confdefs.h.  */
 
27058
 
 
27059
int
 
27060
main ()
 
27061
{
 
27062
int a;
 
27063
  ;
 
27064
  return 0;
 
27065
}
 
27066
_ACEOF
 
27067
if ac_fn_c_try_link "$LINENO"; then :
 
27068
 
 
27069
old_value="`eval echo '$'accepted_flags`"
 
27070
if test "x$old_value" = "x" ; then
 
27071
  accepted_flags="$flag"
 
27072
elif test "x$flag" != "x" ; then
 
27073
  accepted_flags="$old_value $flag"
 
27074
fi
 
27075
 
 
27076
fi
 
27077
rm -f core conftest.err conftest.$ac_objext \
 
27078
    conftest$ac_exeext conftest.$ac_ext
 
27079
done
 
27080
 
 
27081
old_value="`eval echo '$'LDFLAGS`"
 
27082
if test "x$old_value" = "x" ; then
 
27083
  LDFLAGS="$accepted_flags"
 
27084
elif test "x$accepted_flags" != "x" ; then
 
27085
  LDFLAGS="$old_value $accepted_flags"
 
27086
fi
 
27087
 
 
27088
 
 
27089
LDFLAGS="$flags_save"
 
27090
 
 
27091
 
 
27092
 if test "x$client" = "xyes"; then
 
27093
  CLIENT_TRUE=
 
27094
  CLIENT_FALSE='#'
 
27095
else
 
27096
  CLIENT_TRUE='#'
 
27097
  CLIENT_FALSE=
 
27098
fi
 
27099
 
 
27100
 
 
27101
 
 
27102
 
 
27103
 
 
27104
 
 
27105
 
 
27106
 
 
27107
 
 
27108
 
 
27109
 
 
27110
 
 
27111
 
 
27112
 
 
27113
 
 
27114
 
 
27115
 
 
27116
 
 
27117
 
 
27118
 
 
27119
 
 
27120
 
 
27121
 
 
27122
 
 
27123
 
 
27124
 
 
27125
 
17751
27126
 
17752
27127
 
17753
27128
 
17765
27140
  AUDIO_SDL_FALSE=
17766
27141
fi
17767
27142
 
17768
 
 if test "$gui_sources" = "gui-sdl"; then
 
27143
 if test "x$gui_sdl" = "xyes"; then
17769
27144
  CLIENT_GUI_SDL_TRUE=
17770
27145
  CLIENT_GUI_SDL_FALSE='#'
17771
27146
else
17773
27148
  CLIENT_GUI_SDL_FALSE=
17774
27149
fi
17775
27150
 
17776
 
 if test "$gui_sources" = "gui-gtk-2.0"; then
 
27151
 if test "x$gui_gtk2" = "xyes"; then
17777
27152
  CLIENT_GUI_GTK_2_0_TRUE=
17778
27153
  CLIENT_GUI_GTK_2_0_FALSE='#'
17779
27154
else
17781
27156
  CLIENT_GUI_GTK_2_0_FALSE=
17782
27157
fi
17783
27158
 
17784
 
 if test "$gui_sources" = "gui-xaw"; then
 
27159
 if test "x$gui_xaw" = "xyes"; then
17785
27160
  CLIENT_GUI_XAW_TRUE=
17786
27161
  CLIENT_GUI_XAW_FALSE='#'
17787
27162
else
17789
27164
  CLIENT_GUI_XAW_FALSE=
17790
27165
fi
17791
27166
 
17792
 
 if test "$gui_sources" = "gui-beos"; then
17793
 
  CLIENT_GUI_BEOS_TRUE=
17794
 
  CLIENT_GUI_BEOS_FALSE='#'
17795
 
else
17796
 
  CLIENT_GUI_BEOS_TRUE='#'
17797
 
  CLIENT_GUI_BEOS_FALSE=
17798
 
fi
17799
 
 
17800
 
 if test "$gui_sources" = "gui-stub"; then
 
27167
 if test "x$gui_stub" = "xyes"; then
17801
27168
  CLIENT_GUI_STUB_TRUE=
17802
27169
  CLIENT_GUI_STUB_FALSE='#'
17803
27170
else
17805
27172
  CLIENT_GUI_STUB_FALSE=
17806
27173
fi
17807
27174
 
17808
 
 if test "$gui_sources" = "gui-win32"; then
 
27175
 if test "x$gui_win32" = "xyes"; then
17809
27176
  CLIENT_GUI_WIN32_TRUE=
17810
27177
  CLIENT_GUI_WIN32_FALSE='#'
17811
27178
else
17813
27180
  CLIENT_GUI_WIN32_FALSE=
17814
27181
fi
17815
27182
 
17816
 
 if test "$gui_sources" = "gui-ftwl"; then
 
27183
 if test "x$gui_ftwl" = "xyes"; then
17817
27184
  CLIENT_GUI_FTWL_TRUE=
17818
27185
  CLIENT_GUI_FTWL_FALSE='#'
17819
27186
else
17821
27188
  CLIENT_GUI_FTWL_FALSE=
17822
27189
fi
17823
27190
 
 
27191
 if test "x$gui_beos" = "xyes"; then
 
27192
  CLIENT_GUI_BEOS_TRUE=
 
27193
  CLIENT_GUI_BEOS_FALSE='#'
 
27194
else
 
27195
  CLIENT_GUI_BEOS_TRUE='#'
 
27196
  CLIENT_GUI_BEOS_FALSE=
 
27197
fi
 
27198
 
17824
27199
 if test "$ftwl" != "no"; then
17825
27200
  FTWL_TRUE=
17826
27201
  FTWL_FALSE='#'
17862
27237
fi
17863
27238
 
17864
27239
 
17865
 
if test x$server = xtrue; then
 
27240
if test "x$server" = "xyes"; then
17866
27241
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5
17867
27242
$as_echo_n "checking for gethostbyaddr in -lbind... " >&6; }
17868
27243
if test "${ac_cv_lib_bind_gethostbyaddr+set}" = set; then :
18896
28271
done
18897
28272
 
18898
28273
fi
18899
 
if test x$client = xxaw; then
 
28274
if test "x$gui_xaw" = "xyes" ; then
18900
28275
    fc_save_CPPFLAGS="$CPPFLAGS"
18901
 
  CPPFLAGS="$CPPFLAGS $CLIENT_CFLAGS"
 
28276
  CPPFLAGS="$CPPFLAGS $GUI_xaw_CFLAGS"
18902
28277
  ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
18903
28278
if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
18904
28279
 
19477
28852
 
19478
28853
fi
19479
28854
 
19480
 
for ac_func in fileno ftime gethostname getpwuid inet_aton \
19481
 
                select snooze strerror strcasecmp strncasecmp \
19482
 
                strlcat strlcpy strstr usleep uname flock \
19483
 
                gethostbyname connect bind getline
 
28855
for ac_func in bind connect fileno flock ftime gethostbyname gethostname \
 
28856
                getpwuid inet_aton select snooze strcasecmp strcasestr \
 
28857
                strerror strlcat strlcpy strncasecmp strstr uname usleep \
 
28858
                getline
19484
28859
do :
19485
28860
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19486
28861
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19874
29249
 
19875
29250
fi
19876
29251
 
 
29252
 
 
29253
  GNULIB_MALLOC_POSIX=0;
 
29254
  GNULIB_REALLOC_POSIX=0;
 
29255
  GNULIB_CALLOC_POSIX=0;
 
29256
  GNULIB_GETSUBOPT=0;
 
29257
  GNULIB_MKDTEMP=0;
 
29258
  GNULIB_MKSTEMP=0;
 
29259
  GNULIB_PUTENV=0;
 
29260
  GNULIB_RPMATCH=0;
 
29261
  GNULIB_SETENV=0;
 
29262
  GNULIB_STRTOD=0;
 
29263
  GNULIB_UNSETENV=0;
 
29264
    HAVE_CALLOC_POSIX=1;
 
29265
  HAVE_GETSUBOPT=1;
 
29266
  HAVE_MALLOC_POSIX=1;
 
29267
  HAVE_MKDTEMP=1;
 
29268
  HAVE_REALLOC_POSIX=1;
 
29269
  HAVE_RPMATCH=1;
 
29270
  HAVE_SETENV=1;
 
29271
  HAVE_STRTOD=1;
 
29272
  HAVE_UNSETENV=1;
 
29273
  REPLACE_MKSTEMP=0;
 
29274
  REPLACE_PUTENV=0;
 
29275
  REPLACE_STRTOD=0;
 
29276
  VOID_UNSETENV=0;
 
29277
 
 
29278
# Check whether --enable-largefile was given.
 
29279
if test "${enable_largefile+set}" = set; then :
 
29280
  enableval=$enable_largefile;
 
29281
fi
 
29282
 
 
29283
if test "$enable_largefile" != no; then
 
29284
 
 
29285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
29286
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
29287
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
29288
  $as_echo_n "(cached) " >&6
 
29289
else
 
29290
  ac_cv_sys_largefile_CC=no
 
29291
     if test "$GCC" != yes; then
 
29292
       ac_save_CC=$CC
 
29293
       while :; do
 
29294
         # IRIX 6.2 and later do not support large files by default,
 
29295
         # so use the C compiler's -n32 option if that helps.
 
29296
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29297
/* end confdefs.h.  */
 
29298
#include <sys/types.h>
 
29299
 /* Check that off_t can represent 2**63 - 1 correctly.
 
29300
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
29301
    since some C++ compilers masquerading as C compilers
 
29302
    incorrectly reject 9223372036854775807.  */
 
29303
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
29304
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
29305
                       && LARGE_OFF_T % 2147483647 == 1)
 
29306
                      ? 1 : -1];
 
29307
int
 
29308
main ()
 
29309
{
 
29310
 
 
29311
  ;
 
29312
  return 0;
 
29313
}
 
29314
_ACEOF
 
29315
         if ac_fn_c_try_compile "$LINENO"; then :
 
29316
  break
 
29317
fi
 
29318
rm -f core conftest.err conftest.$ac_objext
 
29319
         CC="$CC -n32"
 
29320
         if ac_fn_c_try_compile "$LINENO"; then :
 
29321
  ac_cv_sys_largefile_CC=' -n32'; break
 
29322
fi
 
29323
rm -f core conftest.err conftest.$ac_objext
 
29324
         break
 
29325
       done
 
29326
       CC=$ac_save_CC
 
29327
       rm -f conftest.$ac_ext
 
29328
    fi
 
29329
fi
 
29330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
29331
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
29332
  if test "$ac_cv_sys_largefile_CC" != no; then
 
29333
    CC=$CC$ac_cv_sys_largefile_CC
 
29334
  fi
 
29335
 
 
29336
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
29337
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
29338
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
29339
  $as_echo_n "(cached) " >&6
 
29340
else
 
29341
  while :; do
 
29342
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29343
/* end confdefs.h.  */
 
29344
#include <sys/types.h>
 
29345
 /* Check that off_t can represent 2**63 - 1 correctly.
 
29346
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
29347
    since some C++ compilers masquerading as C compilers
 
29348
    incorrectly reject 9223372036854775807.  */
 
29349
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
29350
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
29351
                       && LARGE_OFF_T % 2147483647 == 1)
 
29352
                      ? 1 : -1];
 
29353
int
 
29354
main ()
 
29355
{
 
29356
 
 
29357
  ;
 
29358
  return 0;
 
29359
}
 
29360
_ACEOF
 
29361
if ac_fn_c_try_compile "$LINENO"; then :
 
29362
  ac_cv_sys_file_offset_bits=no; break
 
29363
fi
 
29364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29365
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29366
/* end confdefs.h.  */
 
29367
#define _FILE_OFFSET_BITS 64
 
29368
#include <sys/types.h>
 
29369
 /* Check that off_t can represent 2**63 - 1 correctly.
 
29370
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
29371
    since some C++ compilers masquerading as C compilers
 
29372
    incorrectly reject 9223372036854775807.  */
 
29373
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
29374
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
29375
                       && LARGE_OFF_T % 2147483647 == 1)
 
29376
                      ? 1 : -1];
 
29377
int
 
29378
main ()
 
29379
{
 
29380
 
 
29381
  ;
 
29382
  return 0;
 
29383
}
 
29384
_ACEOF
 
29385
if ac_fn_c_try_compile "$LINENO"; then :
 
29386
  ac_cv_sys_file_offset_bits=64; break
 
29387
fi
 
29388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29389
  ac_cv_sys_file_offset_bits=unknown
 
29390
  break
 
29391
done
 
29392
fi
 
29393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
29394
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
29395
case $ac_cv_sys_file_offset_bits in #(
 
29396
  no | unknown) ;;
 
29397
  *)
 
29398
cat >>confdefs.h <<_ACEOF
 
29399
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
29400
_ACEOF
 
29401
;;
 
29402
esac
 
29403
rm -rf conftest*
 
29404
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
29405
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
29406
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
29407
if test "${ac_cv_sys_large_files+set}" = set; then :
 
29408
  $as_echo_n "(cached) " >&6
 
29409
else
 
29410
  while :; do
 
29411
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29412
/* end confdefs.h.  */
 
29413
#include <sys/types.h>
 
29414
 /* Check that off_t can represent 2**63 - 1 correctly.
 
29415
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
29416
    since some C++ compilers masquerading as C compilers
 
29417
    incorrectly reject 9223372036854775807.  */
 
29418
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
29419
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
29420
                       && LARGE_OFF_T % 2147483647 == 1)
 
29421
                      ? 1 : -1];
 
29422
int
 
29423
main ()
 
29424
{
 
29425
 
 
29426
  ;
 
29427
  return 0;
 
29428
}
 
29429
_ACEOF
 
29430
if ac_fn_c_try_compile "$LINENO"; then :
 
29431
  ac_cv_sys_large_files=no; break
 
29432
fi
 
29433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29435
/* end confdefs.h.  */
 
29436
#define _LARGE_FILES 1
 
29437
#include <sys/types.h>
 
29438
 /* Check that off_t can represent 2**63 - 1 correctly.
 
29439
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
29440
    since some C++ compilers masquerading as C compilers
 
29441
    incorrectly reject 9223372036854775807.  */
 
29442
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
29443
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
29444
                       && LARGE_OFF_T % 2147483647 == 1)
 
29445
                      ? 1 : -1];
 
29446
int
 
29447
main ()
 
29448
{
 
29449
 
 
29450
  ;
 
29451
  return 0;
 
29452
}
 
29453
_ACEOF
 
29454
if ac_fn_c_try_compile "$LINENO"; then :
 
29455
  ac_cv_sys_large_files=1; break
 
29456
fi
 
29457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29458
  ac_cv_sys_large_files=unknown
 
29459
  break
 
29460
done
 
29461
fi
 
29462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
29463
$as_echo "$ac_cv_sys_large_files" >&6; }
 
29464
case $ac_cv_sys_large_files in #(
 
29465
  no | unknown) ;;
 
29466
  *)
 
29467
cat >>confdefs.h <<_ACEOF
 
29468
#define _LARGE_FILES $ac_cv_sys_large_files
 
29469
_ACEOF
 
29470
;;
 
29471
esac
 
29472
rm -rf conftest*
 
29473
  fi
 
29474
fi
 
29475
 
 
29476
 
 
29477
 
 
29478
 
 
29479
 
 
29480
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
 
29481
$as_echo_n "checking for working mkstemp... " >&6; }
 
29482
if test "${gl_cv_func_working_mkstemp+set}" = set; then :
 
29483
  $as_echo_n "(cached) " >&6
 
29484
else
 
29485
 
 
29486
      mkdir conftest.mkstemp
 
29487
      if test "$cross_compiling" = yes; then :
 
29488
  gl_cv_func_working_mkstemp=no
 
29489
else
 
29490
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
29491
/* end confdefs.h.  */
 
29492
$ac_includes_default
 
29493
int
 
29494
main ()
 
29495
{
 
29496
int i;
 
29497
            off_t large = (off_t) 4294967295u;
 
29498
            if (large < 0)
 
29499
              large = 2147483647;
 
29500
            for (i = 0; i < 70; i++)
 
29501
              {
 
29502
                char templ[] = "conftest.mkstemp/coXXXXXX";
 
29503
                int (*mkstemp_function) (char *) = mkstemp;
 
29504
                int fd = mkstemp_function (templ);
 
29505
                if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
 
29506
                  return 1;
 
29507
                close (fd);
 
29508
              }
 
29509
            return 0;
 
29510
  ;
 
29511
  return 0;
 
29512
}
 
29513
_ACEOF
 
29514
if ac_fn_c_try_run "$LINENO"; then :
 
29515
  gl_cv_func_working_mkstemp=yes
 
29516
else
 
29517
  gl_cv_func_working_mkstemp=no
 
29518
fi
 
29519
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29520
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29521
fi
 
29522
 
 
29523
      rm -rf conftest.mkstemp
 
29524
 
 
29525
fi
 
29526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
 
29527
$as_echo "$gl_cv_func_working_mkstemp" >&6; }
 
29528
 
 
29529
  if test $gl_cv_func_working_mkstemp != yes; then
 
29530
    REPLACE_MKSTEMP=1
 
29531
    case " $LIBOBJS " in
 
29532
  *" mkstemp.$ac_objext "* ) ;;
 
29533
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
 
29534
 ;;
 
29535
esac
 
29536
 
 
29537
 
 
29538
 
 
29539
  fi
 
29540
 
 
29541
if test x$gl_cv_func_working_mkstemp = xyes ; then
 
29542
 
 
29543
$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
 
29544
 
 
29545
fi
 
29546
for ac_func in isatty popen _longjmp
 
29547
do :
 
29548
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29549
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
29550
eval as_val=\$$as_ac_var
 
29551
   if test "x$as_val" = x""yes; then :
 
29552
  cat >>confdefs.h <<_ACEOF
 
29553
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
29554
_ACEOF
 
29555
 
 
29556
fi
 
29557
done
 
29558
 
 
29559
 
 
29560
LUA_CFLAGS="-I\$(top_srcdir)/dependencies/lua-5.1/src"
 
29561
LUA_LIBS="\$(top_builddir)/dependencies/lua-5.1/src/liblua.a"
 
29562
LUA_AS_DEPENDENCY="$LUA_LIBS"
 
29563
 
 
29564
 
 
29565
 
 
29566
 
 
29567
 
 
29568
TOLUA_CFLAGS="-I\$(top_srcdir)/dependencies/toluaxx/include"
 
29569
TOLUA_LIBS="\$(top_builddir)/dependencies/toluaxx/src/lib/libtolua.a"
 
29570
TOLUA_AS_DEPENDENCY="$TOLUA_LIBS"
 
29571
 
 
29572
 
 
29573
 
 
29574
 
 
29575
TOLUA="\$(top_builddir)/dependencies/toluaxx/src/bin/tolua$EXEEXT"
 
29576
 
 
29577
 
19877
29578
ac_config_commands="$ac_config_commands fc_default-1"
19878
29579
 
19879
29580
 
19908
29609
_ACEOF
19909
29610
 
19910
29611
 
19911
 
ac_config_files="$ac_config_files Makefile data/Makefile data/civclient.dsc data/civserver.dsc data/civserver.room data/hex2t/Makefile data/amplio/Makefile data/buildings/Makefile data/flags/Makefile data/misc/Makefile data/trident/Makefile data/isophex/Makefile data/isotrident/Makefile data/stdsounds/Makefile data/default/Makefile data/civ1/Makefile data/civ2/Makefile data/scenario/Makefile data/nation/Makefile data/themes/Makefile data/themes/gui-gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile data/themes/gui-sdl/Makefile data/themes/gui-sdl/human/Makefile data/wonders/Makefile data/icons/Makefile utility/Makefile utility/ftwl/Makefile dependencies/Makefile dependencies/lua/Makefile dependencies/tolua/Makefile dependencies/lua/src/Makefile dependencies/lua/src/lib/Makefile common/Makefile common/aicore/Makefile ai/Makefile tests/Makefile win32/Makefile client/Makefile client/agents/Makefile client/include/Makefile client/gui-sdl/Makefile client/gui-gtk-2.0/Makefile client/gui-xaw/Makefile client/gui-win32/Makefile client/gui-ftwl/Makefile client/gui-stub/Makefile server/Makefile server/generator/Makefile server/scripting/Makefile manual/Makefile intl/Makefile po/Makefile.in doc/Makefile doc/man/Makefile doc/ca/Makefile doc/de/Makefile doc/fr/Makefile doc/it/Makefile doc/ja/Makefile doc/nl/Makefile doc/sv/Makefile freeciv.spec:bootstrap/freeciv.spec.in bootstrap/undep.sh data/Freeciv client/freeciv.desktop:bootstrap/freeciv.desktop.in server/freeciv-server.desktop:bootstrap/freeciv-server.desktop.in"
 
29612
ac_config_files="$ac_config_files Makefile data/Makefile data/civclient.dsc data/civserver.dsc data/civserver.room data/hex2t/Makefile data/amplio/Makefile data/buildings/Makefile data/flags/Makefile data/misc/Makefile data/trident/Makefile data/isophex/Makefile data/isotrident/Makefile data/stdsounds/Makefile data/default/Makefile data/civ1/Makefile data/civ2/Makefile data/scenario/Makefile data/nation/Makefile data/themes/Makefile data/themes/gui-gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile data/themes/gui-sdl/Makefile data/themes/gui-sdl/human/Makefile data/wonders/Makefile data/icons/Makefile utility/Makefile utility/ftwl/Makefile dependencies/Makefile dependencies/lua-5.1/Makefile dependencies/lua-5.1/src/Makefile dependencies/toluaxx/Makefile dependencies/toluaxx/src/Makefile dependencies/toluaxx/src/lib/Makefile dependencies/toluaxx/src/bin/Makefile common/Makefile common/aicore/Makefile ai/Makefile tests/Makefile win32/Makefile client/Makefile client/agents/Makefile client/include/Makefile client/gui-sdl/Makefile client/gui-gtk-2.0/Makefile client/gui-xaw/Makefile client/gui-win32/Makefile client/gui-ftwl/Makefile client/gui-stub/Makefile server/Makefile server/generator/Makefile server/scripting/Makefile manual/Makefile po/Makefile.in doc/Makefile doc/man/Makefile doc/ca/Makefile doc/de/Makefile doc/fr/Makefile doc/it/Makefile doc/ja/Makefile doc/nl/Makefile doc/sv/Makefile freeciv.spec:bootstrap/freeciv.spec.in bootstrap/undep.sh data/Freeciv client/freeciv.desktop:bootstrap/freeciv.desktop.in server/freeciv-server.desktop:bootstrap/freeciv-server.desktop.in"
19912
29613
 
19913
29614
ac_config_files="$ac_config_files civ:bootstrap/civ.in"
19914
29615
 
19916
29617
 
19917
29618
ac_config_commands="$ac_config_commands default"
19918
29619
 
 
29620
 
 
29621
if test "$USE_NLS" != "yes" ; then
 
29622
 
 
29623
        ac_config_commands="$ac_config_commands po/Makefile"
 
29624
 
 
29625
fi
 
29626
 
19919
29627
cat >confcache <<\_ACEOF
19920
29628
# This file is a shell script that caches the results of configure
19921
29629
# tests run on this system so they can be shared between configure
20029
29737
  am__EXEEXT_FALSE=
20030
29738
fi
20031
29739
 
20032
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20033
 
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20034
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20035
 
fi
20036
29740
if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
20037
29741
  as_fn_error "conditional \"SERVER\" was never defined.
20038
29742
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039
29743
fi
20040
 
if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
20041
 
  as_fn_error "conditional \"CLIENT\" was never defined.
20042
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20043
 
fi
20044
29744
if test -z "${FTWL_TRUE}" && test -z "${FTWL_FALSE}"; then
20045
29745
  as_fn_error "conditional \"FTWL\" was never defined.
20046
29746
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20047
29747
fi
 
29748
if test -z "${SVNREV_TRUE}" && test -z "${SVNREV_FALSE}"; then
 
29749
  as_fn_error "conditional \"SVNREV\" was never defined.
 
29750
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29751
fi
20048
29752
if test -z "${MAKE_DATA_TRUE}" && test -z "${MAKE_DATA_FALSE}"; then
20049
29753
  as_fn_error "conditional \"MAKE_DATA\" was never defined.
20050
29754
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20057
29761
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20058
29762
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20059
29763
fi
20060
 
if test -z "${GGZ_CLIENT_TRUE}" && test -z "${GGZ_CLIENT_FALSE}"; then
20061
 
  as_fn_error "conditional \"GGZ_CLIENT\" was never defined.
20062
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20063
 
fi
20064
 
if test -z "${GGZ_GTK_TRUE}" && test -z "${GGZ_GTK_FALSE}"; then
20065
 
  as_fn_error "conditional \"GGZ_GTK\" was never defined.
20066
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20067
 
fi
20068
 
if test -z "${GGZ_SERVER_TRUE}" && test -z "${GGZ_SERVER_FALSE}"; then
20069
 
  as_fn_error "conditional \"GGZ_SERVER\" was never defined.
20070
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20071
 
fi
20072
 
if test -z "${GGZ_CLIENT_TRUE}" && test -z "${GGZ_CLIENT_FALSE}"; then
20073
 
  as_fn_error "conditional \"GGZ_CLIENT\" was never defined.
20074
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20075
 
fi
20076
 
if test -z "${GGZ_GTK_TRUE}" && test -z "${GGZ_GTK_FALSE}"; then
20077
 
  as_fn_error "conditional \"GGZ_GTK\" was never defined.
20078
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20079
 
fi
20080
 
if test -z "${GGZ_SERVER_TRUE}" && test -z "${GGZ_SERVER_FALSE}"; then
20081
 
  as_fn_error "conditional \"GGZ_SERVER\" was never defined.
 
29764
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
29765
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
29766
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29767
fi
 
29768
if test -z "${GGZ_CLIENT_TRUE}" && test -z "${GGZ_CLIENT_FALSE}"; then
 
29769
  as_fn_error "conditional \"GGZ_CLIENT\" was never defined.
 
29770
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29771
fi
 
29772
if test -z "${GGZ_GTK_TRUE}" && test -z "${GGZ_GTK_FALSE}"; then
 
29773
  as_fn_error "conditional \"GGZ_GTK\" was never defined.
 
29774
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29775
fi
 
29776
if test -z "${GGZ_SERVER_TRUE}" && test -z "${GGZ_SERVER_FALSE}"; then
 
29777
  as_fn_error "conditional \"GGZ_SERVER\" was never defined.
 
29778
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29779
fi
 
29780
if test -z "${GGZ_CLIENT_TRUE}" && test -z "${GGZ_CLIENT_FALSE}"; then
 
29781
  as_fn_error "conditional \"GGZ_CLIENT\" was never defined.
 
29782
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29783
fi
 
29784
if test -z "${GGZ_GTK_TRUE}" && test -z "${GGZ_GTK_FALSE}"; then
 
29785
  as_fn_error "conditional \"GGZ_GTK\" was never defined.
 
29786
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29787
fi
 
29788
if test -z "${GGZ_SERVER_TRUE}" && test -z "${GGZ_SERVER_FALSE}"; then
 
29789
  as_fn_error "conditional \"GGZ_SERVER\" was never defined.
 
29790
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29791
fi
 
29792
if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
 
29793
  as_fn_error "conditional \"CLIENT\" was never defined.
20082
29794
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20083
29795
fi
20084
29796
if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
20097
29809
  as_fn_error "conditional \"CLIENT_GUI_XAW\" was never defined.
20098
29810
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20099
29811
fi
20100
 
if test -z "${CLIENT_GUI_BEOS_TRUE}" && test -z "${CLIENT_GUI_BEOS_FALSE}"; then
20101
 
  as_fn_error "conditional \"CLIENT_GUI_BEOS\" was never defined.
20102
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20103
 
fi
20104
29812
if test -z "${CLIENT_GUI_STUB_TRUE}" && test -z "${CLIENT_GUI_STUB_FALSE}"; then
20105
29813
  as_fn_error "conditional \"CLIENT_GUI_STUB\" was never defined.
20106
29814
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20113
29821
  as_fn_error "conditional \"CLIENT_GUI_FTWL\" was never defined.
20114
29822
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20115
29823
fi
 
29824
if test -z "${CLIENT_GUI_BEOS_TRUE}" && test -z "${CLIENT_GUI_BEOS_FALSE}"; then
 
29825
  as_fn_error "conditional \"CLIENT_GUI_BEOS\" was never defined.
 
29826
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
29827
fi
20116
29828
if test -z "${FTWL_TRUE}" && test -z "${FTWL_FALSE}"; then
20117
29829
  as_fn_error "conditional \"FTWL\" was never defined.
20118
29830
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20719
30431
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20720
30432
 
20721
30433
 
20722
 
 
20723
 
 
20724
 
 
20725
 
 
 
30434
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
30435
# if CDPATH is set.
 
30436
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
30437
 
 
30438
sed_quote_subst='$sed_quote_subst'
 
30439
double_quote_subst='$double_quote_subst'
 
30440
delay_variable_subst='$delay_variable_subst'
 
30441
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
30442
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
30443
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
30444
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
30445
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
30446
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
30447
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
30448
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
30449
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
30450
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
30451
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
30452
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
30453
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
30454
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
30455
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
30456
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
30457
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
30458
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
30459
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
30460
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
30461
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
30462
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
30463
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
30464
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
30465
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
30466
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
30467
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
30468
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30469
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
30470
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
30471
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
30472
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
30473
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
30474
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
30475
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
30476
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30477
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30478
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30479
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
30480
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
30481
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
30482
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
30483
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
30484
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
30485
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
30486
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
30487
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
30488
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
30489
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
30490
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
30491
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
30492
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
30493
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
30494
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
30495
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
30496
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
30497
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
30498
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
30499
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
30500
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
30501
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
30502
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
30503
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30504
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30505
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
30506
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
30507
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30508
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30509
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
30510
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30511
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30512
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30513
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30514
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30515
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30516
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
30517
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
30518
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
30519
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30520
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
30521
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
30522
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
30523
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
30524
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
30525
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
30526
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
30527
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
30528
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
30529
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
30530
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
30531
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30532
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
30533
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
30534
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30535
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30536
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
30537
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
30538
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
30539
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
30540
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
30541
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
30542
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
30543
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30544
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30545
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30546
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30547
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30548
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
30549
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
30550
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
30551
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30552
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
30553
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
30554
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
30555
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
30556
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
30557
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
30558
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
30559
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
30560
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
30561
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
30562
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
30563
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
30564
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
30565
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30566
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30567
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30568
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30569
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30570
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30571
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30572
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30573
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30574
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30575
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30576
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30577
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30578
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30579
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30580
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30581
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30582
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30583
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30584
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30585
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30586
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30587
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30588
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30589
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30590
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30591
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30592
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30593
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30594
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30595
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30596
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30597
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30598
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30599
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30600
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30601
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30602
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30603
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30604
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30605
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30606
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30607
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30608
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30609
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30610
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30611
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
30612
 
 
30613
LTCC='$LTCC'
 
30614
LTCFLAGS='$LTCFLAGS'
 
30615
compiler='$compiler_DEFAULT'
 
30616
 
 
30617
# Quote evaled strings.
 
30618
for var in SED \
 
30619
GREP \
 
30620
EGREP \
 
30621
FGREP \
 
30622
LD \
 
30623
NM \
 
30624
LN_S \
 
30625
lt_SP2NL \
 
30626
lt_NL2SP \
 
30627
reload_flag \
 
30628
OBJDUMP \
 
30629
deplibs_check_method \
 
30630
file_magic_cmd \
 
30631
AR \
 
30632
AR_FLAGS \
 
30633
STRIP \
 
30634
RANLIB \
 
30635
CC \
 
30636
CFLAGS \
 
30637
compiler \
 
30638
lt_cv_sys_global_symbol_pipe \
 
30639
lt_cv_sys_global_symbol_to_cdecl \
 
30640
lt_cv_sys_global_symbol_to_c_name_address \
 
30641
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
30642
SHELL \
 
30643
ECHO \
 
30644
lt_prog_compiler_no_builtin_flag \
 
30645
lt_prog_compiler_wl \
 
30646
lt_prog_compiler_pic \
 
30647
lt_prog_compiler_static \
 
30648
lt_cv_prog_compiler_c_o \
 
30649
need_locks \
 
30650
DSYMUTIL \
 
30651
NMEDIT \
 
30652
LIPO \
 
30653
OTOOL \
 
30654
OTOOL64 \
 
30655
shrext_cmds \
 
30656
export_dynamic_flag_spec \
 
30657
whole_archive_flag_spec \
 
30658
compiler_needs_object \
 
30659
with_gnu_ld \
 
30660
allow_undefined_flag \
 
30661
no_undefined_flag \
 
30662
hardcode_libdir_flag_spec \
 
30663
hardcode_libdir_flag_spec_ld \
 
30664
hardcode_libdir_separator \
 
30665
fix_srcfile_path \
 
30666
exclude_expsyms \
 
30667
include_expsyms \
 
30668
file_list_spec \
 
30669
variables_saved_for_relink \
 
30670
libname_spec \
 
30671
library_names_spec \
 
30672
soname_spec \
 
30673
finish_eval \
 
30674
old_striplib \
 
30675
striplib \
 
30676
compiler_lib_search_dirs \
 
30677
predep_objects \
 
30678
postdep_objects \
 
30679
predeps \
 
30680
postdeps \
 
30681
compiler_lib_search_path \
 
30682
LD_CXX \
 
30683
compiler_CXX \
 
30684
lt_prog_compiler_no_builtin_flag_CXX \
 
30685
lt_prog_compiler_wl_CXX \
 
30686
lt_prog_compiler_pic_CXX \
 
30687
lt_prog_compiler_static_CXX \
 
30688
lt_cv_prog_compiler_c_o_CXX \
 
30689
export_dynamic_flag_spec_CXX \
 
30690
whole_archive_flag_spec_CXX \
 
30691
compiler_needs_object_CXX \
 
30692
with_gnu_ld_CXX \
 
30693
allow_undefined_flag_CXX \
 
30694
no_undefined_flag_CXX \
 
30695
hardcode_libdir_flag_spec_CXX \
 
30696
hardcode_libdir_flag_spec_ld_CXX \
 
30697
hardcode_libdir_separator_CXX \
 
30698
fix_srcfile_path_CXX \
 
30699
exclude_expsyms_CXX \
 
30700
include_expsyms_CXX \
 
30701
file_list_spec_CXX \
 
30702
compiler_lib_search_dirs_CXX \
 
30703
predep_objects_CXX \
 
30704
postdep_objects_CXX \
 
30705
predeps_CXX \
 
30706
postdeps_CXX \
 
30707
compiler_lib_search_path_CXX; do
 
30708
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
30709
    *[\\\\\\\`\\"\\\$]*)
 
30710
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
30711
      ;;
 
30712
    *)
 
30713
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
30714
      ;;
 
30715
    esac
 
30716
done
 
30717
 
 
30718
# Double-quote double-evaled strings.
 
30719
for var in reload_cmds \
 
30720
old_postinstall_cmds \
 
30721
old_postuninstall_cmds \
 
30722
old_archive_cmds \
 
30723
extract_expsyms_cmds \
 
30724
old_archive_from_new_cmds \
 
30725
old_archive_from_expsyms_cmds \
 
30726
archive_cmds \
 
30727
archive_expsym_cmds \
 
30728
module_cmds \
 
30729
module_expsym_cmds \
 
30730
export_symbols_cmds \
 
30731
prelink_cmds \
 
30732
postinstall_cmds \
 
30733
postuninstall_cmds \
 
30734
finish_cmds \
 
30735
sys_lib_search_path_spec \
 
30736
sys_lib_dlsearch_path_spec \
 
30737
old_archive_cmds_CXX \
 
30738
old_archive_from_new_cmds_CXX \
 
30739
old_archive_from_expsyms_cmds_CXX \
 
30740
archive_cmds_CXX \
 
30741
archive_expsym_cmds_CXX \
 
30742
module_cmds_CXX \
 
30743
module_expsym_cmds_CXX \
 
30744
export_symbols_cmds_CXX \
 
30745
prelink_cmds_CXX; do
 
30746
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
30747
    *[\\\\\\\`\\"\\\$]*)
 
30748
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
30749
      ;;
 
30750
    *)
 
30751
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
30752
      ;;
 
30753
    esac
 
30754
done
 
30755
 
 
30756
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
30757
case \$lt_ECHO in
 
30758
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
30759
  ;;
 
30760
esac
 
30761
 
 
30762
ac_aux_dir='$ac_aux_dir'
 
30763
xsi_shell='$xsi_shell'
 
30764
lt_shell_append='$lt_shell_append'
 
30765
 
 
30766
# See if we are running on zsh, and set the options which allow our
 
30767
# commands through without removal of \ escapes INIT.
 
30768
if test -n "\${ZSH_VERSION+set}" ; then
 
30769
   setopt NO_GLOB_SUBST
 
30770
fi
 
30771
 
 
30772
 
 
30773
    PACKAGE='$PACKAGE'
 
30774
    VERSION='$VERSION'
 
30775
    TIMESTAMP='$TIMESTAMP'
 
30776
    RM='$RM'
 
30777
    ofile='$ofile'
 
30778
 
 
30779
 
 
30780
 
 
30781
 
 
30782
 
 
30783
 
 
30784
 
 
30785
 
 
30786
 
 
30787
 
 
30788
 
 
30789
FORCE_DIST=$FORCE_DIST
20726
30790
 
20727
30791
_ACEOF
20728
30792
 
20734
30798
  case $ac_config_target in
20735
30799
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20736
30800
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
30801
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20737
30802
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20738
30803
    "fc_default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS fc_default-1" ;;
20739
30804
    "fc_default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS fc_default-2" ;;
20787
30852
    "utility/Makefile") CONFIG_FILES="$CONFIG_FILES utility/Makefile" ;;
20788
30853
    "utility/ftwl/Makefile") CONFIG_FILES="$CONFIG_FILES utility/ftwl/Makefile" ;;
20789
30854
    "dependencies/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/Makefile" ;;
20790
 
    "dependencies/lua/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua/Makefile" ;;
20791
 
    "dependencies/tolua/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/tolua/Makefile" ;;
20792
 
    "dependencies/lua/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua/src/Makefile" ;;
20793
 
    "dependencies/lua/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua/src/lib/Makefile" ;;
 
30855
    "dependencies/lua-5.1/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua-5.1/Makefile" ;;
 
30856
    "dependencies/lua-5.1/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua-5.1/src/Makefile" ;;
 
30857
    "dependencies/toluaxx/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/toluaxx/Makefile" ;;
 
30858
    "dependencies/toluaxx/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/toluaxx/src/Makefile" ;;
 
30859
    "dependencies/toluaxx/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/toluaxx/src/lib/Makefile" ;;
 
30860
    "dependencies/toluaxx/src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/toluaxx/src/bin/Makefile" ;;
20794
30861
    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20795
30862
    "common/aicore/Makefile") CONFIG_FILES="$CONFIG_FILES common/aicore/Makefile" ;;
20796
30863
    "ai/Makefile") CONFIG_FILES="$CONFIG_FILES ai/Makefile" ;;
20809
30876
    "server/generator/Makefile") CONFIG_FILES="$CONFIG_FILES server/generator/Makefile" ;;
20810
30877
    "server/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES server/scripting/Makefile" ;;
20811
30878
    "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
20812
 
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20813
30879
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20814
30880
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20815
30881
    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20828
30894
    "civ") CONFIG_FILES="$CONFIG_FILES civ:bootstrap/civ.in" ;;
20829
30895
    "ser") CONFIG_FILES="$CONFIG_FILES ser:bootstrap/ser.in" ;;
20830
30896
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
30897
    "po/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS po/Makefile" ;;
20831
30898
 
20832
30899
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20833
30900
  esac
21507
31574
  done
21508
31575
}
21509
31576
 ;;
21510
 
    "default-1":C) for ac_file in $CONFIG_FILES; do
21511
 
        # Support "outfile[:infile[:infile...]]"
21512
 
        case "$ac_file" in
21513
 
          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21514
 
        esac
21515
 
        # PO directories have a Makefile.in generated from Makefile.in.in.
21516
 
        case "$ac_file" in */Makefile.in)
21517
 
          # Adjust a relative srcdir.
21518
 
          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21519
 
          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21520
 
          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21521
 
          # In autoconf-2.13 it is called $ac_given_srcdir.
21522
 
          # In autoconf-2.50 it is called $srcdir.
21523
 
          test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21524
 
          case "$ac_given_srcdir" in
21525
 
            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21526
 
            /*) top_srcdir="$ac_given_srcdir" ;;
21527
 
            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21528
 
          esac
21529
 
          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21530
 
            rm -f "$ac_dir/POTFILES"
21531
 
            test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21532
 
            sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
21533
 
            test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21534
 
            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21535
 
          fi
21536
 
          ;;
21537
 
        esac
21538
 
      done ;;
 
31577
    "libtool":C)
 
31578
 
 
31579
    # See if we are running on zsh, and set the options which allow our
 
31580
    # commands through without removal of \ escapes.
 
31581
    if test -n "${ZSH_VERSION+set}" ; then
 
31582
      setopt NO_GLOB_SUBST
 
31583
    fi
 
31584
 
 
31585
    cfgfile="${ofile}T"
 
31586
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
31587
    $RM "$cfgfile"
 
31588
 
 
31589
    cat <<_LT_EOF >> "$cfgfile"
 
31590
#! $SHELL
 
31591
 
 
31592
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
31593
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
31594
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
31595
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
31596
#
 
31597
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
31598
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
31599
#   Written by Gordon Matzigkeit, 1996
 
31600
#
 
31601
#   This file is part of GNU Libtool.
 
31602
#
 
31603
# GNU Libtool is free software; you can redistribute it and/or
 
31604
# modify it under the terms of the GNU General Public License as
 
31605
# published by the Free Software Foundation; either version 2 of
 
31606
# the License, or (at your option) any later version.
 
31607
#
 
31608
# As a special exception to the GNU General Public License,
 
31609
# if you distribute this file as part of a program or library that
 
31610
# is built using GNU Libtool, you may include this file under the
 
31611
# same distribution terms that you use for the rest of that program.
 
31612
#
 
31613
# GNU Libtool is distributed in the hope that it will be useful,
 
31614
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
31615
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
31616
# GNU General Public License for more details.
 
31617
#
 
31618
# You should have received a copy of the GNU General Public License
 
31619
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
31620
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
31621
# obtained by writing to the Free Software Foundation, Inc.,
 
31622
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
31623
 
 
31624
 
 
31625
# The names of the tagged configurations supported by this script.
 
31626
available_tags="CXX "
 
31627
 
 
31628
# ### BEGIN LIBTOOL CONFIG
 
31629
 
 
31630
# Whether or not to build shared libraries.
 
31631
build_libtool_libs=$enable_shared
 
31632
 
 
31633
# Which release of libtool.m4 was used?
 
31634
macro_version=$macro_version
 
31635
macro_revision=$macro_revision
 
31636
 
 
31637
# Whether or not to build static libraries.
 
31638
build_old_libs=$enable_static
 
31639
 
 
31640
# What type of objects to build.
 
31641
pic_mode=$pic_mode
 
31642
 
 
31643
# Whether or not to optimize for fast installation.
 
31644
fast_install=$enable_fast_install
 
31645
 
 
31646
# The host system.
 
31647
host_alias=$host_alias
 
31648
host=$host
 
31649
host_os=$host_os
 
31650
 
 
31651
# The build system.
 
31652
build_alias=$build_alias
 
31653
build=$build
 
31654
build_os=$build_os
 
31655
 
 
31656
# A sed program that does not truncate output.
 
31657
SED=$lt_SED
 
31658
 
 
31659
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
31660
Xsed="\$SED -e 1s/^X//"
 
31661
 
 
31662
# A grep program that handles long lines.
 
31663
GREP=$lt_GREP
 
31664
 
 
31665
# An ERE matcher.
 
31666
EGREP=$lt_EGREP
 
31667
 
 
31668
# A literal string matcher.
 
31669
FGREP=$lt_FGREP
 
31670
 
 
31671
# A BSD- or MS-compatible name lister.
 
31672
NM=$lt_NM
 
31673
 
 
31674
# Whether we need soft or hard links.
 
31675
LN_S=$lt_LN_S
 
31676
 
 
31677
# What is the maximum length of a command?
 
31678
max_cmd_len=$max_cmd_len
 
31679
 
 
31680
# Object file suffix (normally "o").
 
31681
objext=$ac_objext
 
31682
 
 
31683
# Executable file suffix (normally "").
 
31684
exeext=$exeext
 
31685
 
 
31686
# whether the shell understands "unset".
 
31687
lt_unset=$lt_unset
 
31688
 
 
31689
# turn spaces into newlines.
 
31690
SP2NL=$lt_lt_SP2NL
 
31691
 
 
31692
# turn newlines into spaces.
 
31693
NL2SP=$lt_lt_NL2SP
 
31694
 
 
31695
# How to create reloadable object files.
 
31696
reload_flag=$lt_reload_flag
 
31697
reload_cmds=$lt_reload_cmds
 
31698
 
 
31699
# An object symbol dumper.
 
31700
OBJDUMP=$lt_OBJDUMP
 
31701
 
 
31702
# Method to check whether dependent libraries are shared objects.
 
31703
deplibs_check_method=$lt_deplibs_check_method
 
31704
 
 
31705
# Command to use when deplibs_check_method == "file_magic".
 
31706
file_magic_cmd=$lt_file_magic_cmd
 
31707
 
 
31708
# The archiver.
 
31709
AR=$lt_AR
 
31710
AR_FLAGS=$lt_AR_FLAGS
 
31711
 
 
31712
# A symbol stripping program.
 
31713
STRIP=$lt_STRIP
 
31714
 
 
31715
# Commands used to install an old-style archive.
 
31716
RANLIB=$lt_RANLIB
 
31717
old_postinstall_cmds=$lt_old_postinstall_cmds
 
31718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
31719
 
 
31720
# A C compiler.
 
31721
LTCC=$lt_CC
 
31722
 
 
31723
# LTCC compiler flags.
 
31724
LTCFLAGS=$lt_CFLAGS
 
31725
 
 
31726
# Take the output of nm and produce a listing of raw symbols and C names.
 
31727
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
31728
 
 
31729
# Transform the output of nm in a proper C declaration.
 
31730
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
31731
 
 
31732
# Transform the output of nm in a C name address pair.
 
31733
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
31734
 
 
31735
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
31736
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
31737
 
 
31738
# The name of the directory that contains temporary libtool files.
 
31739
objdir=$objdir
 
31740
 
 
31741
# Shell to use when invoking shell scripts.
 
31742
SHELL=$lt_SHELL
 
31743
 
 
31744
# An echo program that does not interpret backslashes.
 
31745
ECHO=$lt_ECHO
 
31746
 
 
31747
# Used to examine libraries when file_magic_cmd begins with "file".
 
31748
MAGIC_CMD=$MAGIC_CMD
 
31749
 
 
31750
# Must we lock files when doing compilation?
 
31751
need_locks=$lt_need_locks
 
31752
 
 
31753
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
31754
DSYMUTIL=$lt_DSYMUTIL
 
31755
 
 
31756
# Tool to change global to local symbols on Mac OS X.
 
31757
NMEDIT=$lt_NMEDIT
 
31758
 
 
31759
# Tool to manipulate fat objects and archives on Mac OS X.
 
31760
LIPO=$lt_LIPO
 
31761
 
 
31762
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
31763
OTOOL=$lt_OTOOL
 
31764
 
 
31765
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
31766
OTOOL64=$lt_OTOOL64
 
31767
 
 
31768
# Old archive suffix (normally "a").
 
31769
libext=$libext
 
31770
 
 
31771
# Shared library suffix (normally ".so").
 
31772
shrext_cmds=$lt_shrext_cmds
 
31773
 
 
31774
# The commands to extract the exported symbol list from a shared archive.
 
31775
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
31776
 
 
31777
# Variables whose values should be saved in libtool wrapper scripts and
 
31778
# restored at link time.
 
31779
variables_saved_for_relink=$lt_variables_saved_for_relink
 
31780
 
 
31781
# Do we need the "lib" prefix for modules?
 
31782
need_lib_prefix=$need_lib_prefix
 
31783
 
 
31784
# Do we need a version for libraries?
 
31785
need_version=$need_version
 
31786
 
 
31787
# Library versioning type.
 
31788
version_type=$version_type
 
31789
 
 
31790
# Shared library runtime path variable.
 
31791
runpath_var=$runpath_var
 
31792
 
 
31793
# Shared library path variable.
 
31794
shlibpath_var=$shlibpath_var
 
31795
 
 
31796
# Is shlibpath searched before the hard-coded library search path?
 
31797
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
31798
 
 
31799
# Format of library name prefix.
 
31800
libname_spec=$lt_libname_spec
 
31801
 
 
31802
# List of archive names.  First name is the real one, the rest are links.
 
31803
# The last name is the one that the linker finds with -lNAME
 
31804
library_names_spec=$lt_library_names_spec
 
31805
 
 
31806
# The coded name of the library, if different from the real name.
 
31807
soname_spec=$lt_soname_spec
 
31808
 
 
31809
# Command to use after installation of a shared archive.
 
31810
postinstall_cmds=$lt_postinstall_cmds
 
31811
 
 
31812
# Command to use after uninstallation of a shared archive.
 
31813
postuninstall_cmds=$lt_postuninstall_cmds
 
31814
 
 
31815
# Commands used to finish a libtool library installation in a directory.
 
31816
finish_cmds=$lt_finish_cmds
 
31817
 
 
31818
# As "finish_cmds", except a single script fragment to be evaled but
 
31819
# not shown.
 
31820
finish_eval=$lt_finish_eval
 
31821
 
 
31822
# Whether we should hardcode library paths into libraries.
 
31823
hardcode_into_libs=$hardcode_into_libs
 
31824
 
 
31825
# Compile-time system search path for libraries.
 
31826
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
31827
 
 
31828
# Run-time system search path for libraries.
 
31829
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
31830
 
 
31831
# Whether dlopen is supported.
 
31832
dlopen_support=$enable_dlopen
 
31833
 
 
31834
# Whether dlopen of programs is supported.
 
31835
dlopen_self=$enable_dlopen_self
 
31836
 
 
31837
# Whether dlopen of statically linked programs is supported.
 
31838
dlopen_self_static=$enable_dlopen_self_static
 
31839
 
 
31840
# Commands to strip libraries.
 
31841
old_striplib=$lt_old_striplib
 
31842
striplib=$lt_striplib
 
31843
 
 
31844
 
 
31845
# The linker used to build libraries.
 
31846
LD=$lt_LD
 
31847
 
 
31848
# Commands used to build an old-style archive.
 
31849
old_archive_cmds=$lt_old_archive_cmds
 
31850
 
 
31851
# A language specific compiler.
 
31852
CC=$lt_compiler
 
31853
 
 
31854
# Is the compiler the GNU compiler?
 
31855
with_gcc=$GCC
 
31856
 
 
31857
# Compiler flag to turn off builtin functions.
 
31858
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
31859
 
 
31860
# How to pass a linker flag through the compiler.
 
31861
wl=$lt_lt_prog_compiler_wl
 
31862
 
 
31863
# Additional compiler flags for building library objects.
 
31864
pic_flag=$lt_lt_prog_compiler_pic
 
31865
 
 
31866
# Compiler flag to prevent dynamic linking.
 
31867
link_static_flag=$lt_lt_prog_compiler_static
 
31868
 
 
31869
# Does compiler simultaneously support -c and -o options?
 
31870
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
31871
 
 
31872
# Whether or not to add -lc for building shared libraries.
 
31873
build_libtool_need_lc=$archive_cmds_need_lc
 
31874
 
 
31875
# Whether or not to disallow shared libs when runtime libs are static.
 
31876
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
31877
 
 
31878
# Compiler flag to allow reflexive dlopens.
 
31879
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
31880
 
 
31881
# Compiler flag to generate shared objects directly from archives.
 
31882
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
31883
 
 
31884
# Whether the compiler copes with passing no objects directly.
 
31885
compiler_needs_object=$lt_compiler_needs_object
 
31886
 
 
31887
# Create an old-style archive from a shared archive.
 
31888
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
31889
 
 
31890
# Create a temporary old-style archive to link instead of a shared archive.
 
31891
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
31892
 
 
31893
# Commands used to build a shared archive.
 
31894
archive_cmds=$lt_archive_cmds
 
31895
archive_expsym_cmds=$lt_archive_expsym_cmds
 
31896
 
 
31897
# Commands used to build a loadable module if different from building
 
31898
# a shared archive.
 
31899
module_cmds=$lt_module_cmds
 
31900
module_expsym_cmds=$lt_module_expsym_cmds
 
31901
 
 
31902
# Whether we are building with GNU ld or not.
 
31903
with_gnu_ld=$lt_with_gnu_ld
 
31904
 
 
31905
# Flag that allows shared libraries with undefined symbols to be built.
 
31906
allow_undefined_flag=$lt_allow_undefined_flag
 
31907
 
 
31908
# Flag that enforces no undefined symbols.
 
31909
no_undefined_flag=$lt_no_undefined_flag
 
31910
 
 
31911
# Flag to hardcode \$libdir into a binary during linking.
 
31912
# This must work even if \$libdir does not exist
 
31913
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
31914
 
 
31915
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
31916
# during linking.  This must work even if \$libdir does not exist.
 
31917
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
31918
 
 
31919
# Whether we need a single "-rpath" flag with a separated argument.
 
31920
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
31921
 
 
31922
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
31923
# DIR into the resulting binary.
 
31924
hardcode_direct=$hardcode_direct
 
31925
 
 
31926
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
31927
# DIR into the resulting binary and the resulting library dependency is
 
31928
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
31929
# library is relocated.
 
31930
hardcode_direct_absolute=$hardcode_direct_absolute
 
31931
 
 
31932
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
31933
# into the resulting binary.
 
31934
hardcode_minus_L=$hardcode_minus_L
 
31935
 
 
31936
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
31937
# into the resulting binary.
 
31938
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
31939
 
 
31940
# Set to "yes" if building a shared library automatically hardcodes DIR
 
31941
# into the library and all subsequent libraries and executables linked
 
31942
# against it.
 
31943
hardcode_automatic=$hardcode_automatic
 
31944
 
 
31945
# Set to yes if linker adds runtime paths of dependent libraries
 
31946
# to runtime path list.
 
31947
inherit_rpath=$inherit_rpath
 
31948
 
 
31949
# Whether libtool must link a program against all its dependency libraries.
 
31950
link_all_deplibs=$link_all_deplibs
 
31951
 
 
31952
# Fix the shell variable \$srcfile for the compiler.
 
31953
fix_srcfile_path=$lt_fix_srcfile_path
 
31954
 
 
31955
# Set to "yes" if exported symbols are required.
 
31956
always_export_symbols=$always_export_symbols
 
31957
 
 
31958
# The commands to list exported symbols.
 
31959
export_symbols_cmds=$lt_export_symbols_cmds
 
31960
 
 
31961
# Symbols that should not be listed in the preloaded symbols.
 
31962
exclude_expsyms=$lt_exclude_expsyms
 
31963
 
 
31964
# Symbols that must always be exported.
 
31965
include_expsyms=$lt_include_expsyms
 
31966
 
 
31967
# Commands necessary for linking programs (against libraries) with templates.
 
31968
prelink_cmds=$lt_prelink_cmds
 
31969
 
 
31970
# Specify filename containing input files.
 
31971
file_list_spec=$lt_file_list_spec
 
31972
 
 
31973
# How to hardcode a shared library path into an executable.
 
31974
hardcode_action=$hardcode_action
 
31975
 
 
31976
# The directories searched by this compiler when creating a shared library.
 
31977
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
31978
 
 
31979
# Dependencies to place before and after the objects being linked to
 
31980
# create a shared library.
 
31981
predep_objects=$lt_predep_objects
 
31982
postdep_objects=$lt_postdep_objects
 
31983
predeps=$lt_predeps
 
31984
postdeps=$lt_postdeps
 
31985
 
 
31986
# The library search path used internally by the compiler when linking
 
31987
# a shared library.
 
31988
compiler_lib_search_path=$lt_compiler_lib_search_path
 
31989
 
 
31990
# ### END LIBTOOL CONFIG
 
31991
 
 
31992
_LT_EOF
 
31993
 
 
31994
  case $host_os in
 
31995
  aix3*)
 
31996
    cat <<\_LT_EOF >> "$cfgfile"
 
31997
# AIX sometimes has problems with the GCC collect2 program.  For some
 
31998
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
31999
# vanish in a puff of smoke.
 
32000
if test "X${COLLECT_NAMES+set}" != Xset; then
 
32001
  COLLECT_NAMES=
 
32002
  export COLLECT_NAMES
 
32003
fi
 
32004
_LT_EOF
 
32005
    ;;
 
32006
  esac
 
32007
 
 
32008
 
 
32009
ltmain="$ac_aux_dir/ltmain.sh"
 
32010
 
 
32011
 
 
32012
  # We use sed instead of cat because bash on DJGPP gets confused if
 
32013
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
32014
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
32015
  # is reportedly fixed, but why not run on old versions too?
 
32016
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
32017
    || (rm -f "$cfgfile"; exit 1)
 
32018
 
 
32019
  case $xsi_shell in
 
32020
  yes)
 
32021
    cat << \_LT_EOF >> "$cfgfile"
 
32022
 
 
32023
# func_dirname file append nondir_replacement
 
32024
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
32025
# otherwise set result to NONDIR_REPLACEMENT.
 
32026
func_dirname ()
 
32027
{
 
32028
  case ${1} in
 
32029
    */*) func_dirname_result="${1%/*}${2}" ;;
 
32030
    *  ) func_dirname_result="${3}" ;;
 
32031
  esac
 
32032
}
 
32033
 
 
32034
# func_basename file
 
32035
func_basename ()
 
32036
{
 
32037
  func_basename_result="${1##*/}"
 
32038
}
 
32039
 
 
32040
# func_dirname_and_basename file append nondir_replacement
 
32041
# perform func_basename and func_dirname in a single function
 
32042
# call:
 
32043
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
32044
#             add APPEND to the result, otherwise set result
 
32045
#             to NONDIR_REPLACEMENT.
 
32046
#             value returned in "$func_dirname_result"
 
32047
#   basename: Compute filename of FILE.
 
32048
#             value retuned in "$func_basename_result"
 
32049
# Implementation must be kept synchronized with func_dirname
 
32050
# and func_basename. For efficiency, we do not delegate to
 
32051
# those functions but instead duplicate the functionality here.
 
32052
func_dirname_and_basename ()
 
32053
{
 
32054
  case ${1} in
 
32055
    */*) func_dirname_result="${1%/*}${2}" ;;
 
32056
    *  ) func_dirname_result="${3}" ;;
 
32057
  esac
 
32058
  func_basename_result="${1##*/}"
 
32059
}
 
32060
 
 
32061
# func_stripname prefix suffix name
 
32062
# strip PREFIX and SUFFIX off of NAME.
 
32063
# PREFIX and SUFFIX must not contain globbing or regex special
 
32064
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
32065
# dot (in which case that matches only a dot).
 
32066
func_stripname ()
 
32067
{
 
32068
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
32069
  # positional parameters, so assign one to ordinary parameter first.
 
32070
  func_stripname_result=${3}
 
32071
  func_stripname_result=${func_stripname_result#"${1}"}
 
32072
  func_stripname_result=${func_stripname_result%"${2}"}
 
32073
}
 
32074
 
 
32075
# func_opt_split
 
32076
func_opt_split ()
 
32077
{
 
32078
  func_opt_split_opt=${1%%=*}
 
32079
  func_opt_split_arg=${1#*=}
 
32080
}
 
32081
 
 
32082
# func_lo2o object
 
32083
func_lo2o ()
 
32084
{
 
32085
  case ${1} in
 
32086
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
32087
    *)    func_lo2o_result=${1} ;;
 
32088
  esac
 
32089
}
 
32090
 
 
32091
# func_xform libobj-or-source
 
32092
func_xform ()
 
32093
{
 
32094
  func_xform_result=${1%.*}.lo
 
32095
}
 
32096
 
 
32097
# func_arith arithmetic-term...
 
32098
func_arith ()
 
32099
{
 
32100
  func_arith_result=$(( $* ))
 
32101
}
 
32102
 
 
32103
# func_len string
 
32104
# STRING may not start with a hyphen.
 
32105
func_len ()
 
32106
{
 
32107
  func_len_result=${#1}
 
32108
}
 
32109
 
 
32110
_LT_EOF
 
32111
    ;;
 
32112
  *) # Bourne compatible functions.
 
32113
    cat << \_LT_EOF >> "$cfgfile"
 
32114
 
 
32115
# func_dirname file append nondir_replacement
 
32116
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
32117
# otherwise set result to NONDIR_REPLACEMENT.
 
32118
func_dirname ()
 
32119
{
 
32120
  # Extract subdirectory from the argument.
 
32121
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
32122
  if test "X$func_dirname_result" = "X${1}"; then
 
32123
    func_dirname_result="${3}"
 
32124
  else
 
32125
    func_dirname_result="$func_dirname_result${2}"
 
32126
  fi
 
32127
}
 
32128
 
 
32129
# func_basename file
 
32130
func_basename ()
 
32131
{
 
32132
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
32133
}
 
32134
 
 
32135
 
 
32136
# func_stripname prefix suffix name
 
32137
# strip PREFIX and SUFFIX off of NAME.
 
32138
# PREFIX and SUFFIX must not contain globbing or regex special
 
32139
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
32140
# dot (in which case that matches only a dot).
 
32141
# func_strip_suffix prefix name
 
32142
func_stripname ()
 
32143
{
 
32144
  case ${2} in
 
32145
    .*) func_stripname_result=`$ECHO "X${3}" \
 
32146
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
32147
    *)  func_stripname_result=`$ECHO "X${3}" \
 
32148
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
32149
  esac
 
32150
}
 
32151
 
 
32152
# sed scripts:
 
32153
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
32154
my_sed_long_arg='1s/^-[^=]*=//'
 
32155
 
 
32156
# func_opt_split
 
32157
func_opt_split ()
 
32158
{
 
32159
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
32160
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
32161
}
 
32162
 
 
32163
# func_lo2o object
 
32164
func_lo2o ()
 
32165
{
 
32166
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
32167
}
 
32168
 
 
32169
# func_xform libobj-or-source
 
32170
func_xform ()
 
32171
{
 
32172
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
32173
}
 
32174
 
 
32175
# func_arith arithmetic-term...
 
32176
func_arith ()
 
32177
{
 
32178
  func_arith_result=`expr "$@"`
 
32179
}
 
32180
 
 
32181
# func_len string
 
32182
# STRING may not start with a hyphen.
 
32183
func_len ()
 
32184
{
 
32185
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
32186
}
 
32187
 
 
32188
_LT_EOF
 
32189
esac
 
32190
 
 
32191
case $lt_shell_append in
 
32192
  yes)
 
32193
    cat << \_LT_EOF >> "$cfgfile"
 
32194
 
 
32195
# func_append var value
 
32196
# Append VALUE to the end of shell variable VAR.
 
32197
func_append ()
 
32198
{
 
32199
  eval "$1+=\$2"
 
32200
}
 
32201
_LT_EOF
 
32202
    ;;
 
32203
  *)
 
32204
    cat << \_LT_EOF >> "$cfgfile"
 
32205
 
 
32206
# func_append var value
 
32207
# Append VALUE to the end of shell variable VAR.
 
32208
func_append ()
 
32209
{
 
32210
  eval "$1=\$$1\$2"
 
32211
}
 
32212
 
 
32213
_LT_EOF
 
32214
    ;;
 
32215
  esac
 
32216
 
 
32217
 
 
32218
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
32219
    || (rm -f "$cfgfile"; exit 1)
 
32220
 
 
32221
  mv -f "$cfgfile" "$ofile" ||
 
32222
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
32223
  chmod +x "$ofile"
 
32224
 
 
32225
 
 
32226
    cat <<_LT_EOF >> "$ofile"
 
32227
 
 
32228
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
32229
 
 
32230
# The linker used to build libraries.
 
32231
LD=$lt_LD_CXX
 
32232
 
 
32233
# Commands used to build an old-style archive.
 
32234
old_archive_cmds=$lt_old_archive_cmds_CXX
 
32235
 
 
32236
# A language specific compiler.
 
32237
CC=$lt_compiler_CXX
 
32238
 
 
32239
# Is the compiler the GNU compiler?
 
32240
with_gcc=$GCC_CXX
 
32241
 
 
32242
# Compiler flag to turn off builtin functions.
 
32243
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
32244
 
 
32245
# How to pass a linker flag through the compiler.
 
32246
wl=$lt_lt_prog_compiler_wl_CXX
 
32247
 
 
32248
# Additional compiler flags for building library objects.
 
32249
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
32250
 
 
32251
# Compiler flag to prevent dynamic linking.
 
32252
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
32253
 
 
32254
# Does compiler simultaneously support -c and -o options?
 
32255
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
32256
 
 
32257
# Whether or not to add -lc for building shared libraries.
 
32258
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
32259
 
 
32260
# Whether or not to disallow shared libs when runtime libs are static.
 
32261
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
32262
 
 
32263
# Compiler flag to allow reflexive dlopens.
 
32264
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
32265
 
 
32266
# Compiler flag to generate shared objects directly from archives.
 
32267
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
32268
 
 
32269
# Whether the compiler copes with passing no objects directly.
 
32270
compiler_needs_object=$lt_compiler_needs_object_CXX
 
32271
 
 
32272
# Create an old-style archive from a shared archive.
 
32273
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
32274
 
 
32275
# Create a temporary old-style archive to link instead of a shared archive.
 
32276
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
32277
 
 
32278
# Commands used to build a shared archive.
 
32279
archive_cmds=$lt_archive_cmds_CXX
 
32280
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
32281
 
 
32282
# Commands used to build a loadable module if different from building
 
32283
# a shared archive.
 
32284
module_cmds=$lt_module_cmds_CXX
 
32285
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
32286
 
 
32287
# Whether we are building with GNU ld or not.
 
32288
with_gnu_ld=$lt_with_gnu_ld_CXX
 
32289
 
 
32290
# Flag that allows shared libraries with undefined symbols to be built.
 
32291
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
32292
 
 
32293
# Flag that enforces no undefined symbols.
 
32294
no_undefined_flag=$lt_no_undefined_flag_CXX
 
32295
 
 
32296
# Flag to hardcode \$libdir into a binary during linking.
 
32297
# This must work even if \$libdir does not exist
 
32298
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
32299
 
 
32300
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
32301
# during linking.  This must work even if \$libdir does not exist.
 
32302
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
32303
 
 
32304
# Whether we need a single "-rpath" flag with a separated argument.
 
32305
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
32306
 
 
32307
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
32308
# DIR into the resulting binary.
 
32309
hardcode_direct=$hardcode_direct_CXX
 
32310
 
 
32311
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
32312
# DIR into the resulting binary and the resulting library dependency is
 
32313
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
32314
# library is relocated.
 
32315
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
32316
 
 
32317
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
32318
# into the resulting binary.
 
32319
hardcode_minus_L=$hardcode_minus_L_CXX
 
32320
 
 
32321
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
32322
# into the resulting binary.
 
32323
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
32324
 
 
32325
# Set to "yes" if building a shared library automatically hardcodes DIR
 
32326
# into the library and all subsequent libraries and executables linked
 
32327
# against it.
 
32328
hardcode_automatic=$hardcode_automatic_CXX
 
32329
 
 
32330
# Set to yes if linker adds runtime paths of dependent libraries
 
32331
# to runtime path list.
 
32332
inherit_rpath=$inherit_rpath_CXX
 
32333
 
 
32334
# Whether libtool must link a program against all its dependency libraries.
 
32335
link_all_deplibs=$link_all_deplibs_CXX
 
32336
 
 
32337
# Fix the shell variable \$srcfile for the compiler.
 
32338
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
32339
 
 
32340
# Set to "yes" if exported symbols are required.
 
32341
always_export_symbols=$always_export_symbols_CXX
 
32342
 
 
32343
# The commands to list exported symbols.
 
32344
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
32345
 
 
32346
# Symbols that should not be listed in the preloaded symbols.
 
32347
exclude_expsyms=$lt_exclude_expsyms_CXX
 
32348
 
 
32349
# Symbols that must always be exported.
 
32350
include_expsyms=$lt_include_expsyms_CXX
 
32351
 
 
32352
# Commands necessary for linking programs (against libraries) with templates.
 
32353
prelink_cmds=$lt_prelink_cmds_CXX
 
32354
 
 
32355
# Specify filename containing input files.
 
32356
file_list_spec=$lt_file_list_spec_CXX
 
32357
 
 
32358
# How to hardcode a shared library path into an executable.
 
32359
hardcode_action=$hardcode_action_CXX
 
32360
 
 
32361
# The directories searched by this compiler when creating a shared library.
 
32362
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
32363
 
 
32364
# Dependencies to place before and after the objects being linked to
 
32365
# create a shared library.
 
32366
predep_objects=$lt_predep_objects_CXX
 
32367
postdep_objects=$lt_postdep_objects_CXX
 
32368
predeps=$lt_predeps_CXX
 
32369
postdeps=$lt_postdeps_CXX
 
32370
 
 
32371
# The library search path used internally by the compiler when linking
 
32372
# a shared library.
 
32373
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
32374
 
 
32375
# ### END LIBTOOL TAG CONFIG: CXX
 
32376
_LT_EOF
 
32377
 
 
32378
 ;;
 
32379
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
32380
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
32381
      esac ;;
21539
32382
    "fc_default-1":C) if test -f po/Makefile ; then
21540
32383
     if grep 'keyword=N_ --keyword=Q_ --keyword=PL_:1,2' po/Makefile >/dev/null 2>&1 ; then
21541
32384
       # has already been extended
21580
32423
    "civ":F) chmod +x civ ;;
21581
32424
    "ser":F) chmod +x ser ;;
21582
32425
    "default":C)  chmod +x bootstrap/undep.sh ; bootstrap/undep.sh  ;;
 
32426
    "po/Makefile":C)
 
32427
                rm -f po/Makefile
 
32428
 
 
32429
                sed -e 's/^dist distdir:.*/dist distdir: nonls_warn/' \
 
32430
        -e 's/^update-po:.*/update-po:/' \
 
32431
        -e 's/^DISTFILES =.*/DISTFILES = ChangeLog Makefile.in.in POTFILES.in POTFILES.skip \$(POFILES)/' \
 
32432
        po/Makefile.in > po/Makefile
 
32433
 
 
32434
        echo >> po/Makefile
 
32435
    echo nonls_warn: >> po/Makefile
 
32436
    if test "x$FORCE_DIST" = "xyes" ; then
 
32437
      echo "    @echo Building dist without generated localization files!" >> po/Makefile
 
32438
    else
 
32439
      echo "    @echo Cannot build dist with NLS disabled! && /bin/false" >> po/Makefile
 
32440
    fi
 
32441
   ;;
21583
32442
 
21584
32443
  esac
21585
32444
done # for ac_tag
21618
32477
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21619
32478
fi
21620
32479
 
 
32480
 
 
32481
{ $as_echo "$as_me:${as_lineno-$LINENO}:
 
32482
****************** Configuration Summary ******************
 
32483
 
 
32484
  Build freeciv client: $client
 
32485
    Debugging support:  $enable_debug
 
32486
 
 
32487
  Client frontends:
 
32488
    Gtk-2.0: $gui_gtk2
 
32489
    SDL:     $gui_sdl
 
32490
    Xaw:     $gui_xaw
 
32491
    Win32:   $gui_win32
 
32492
    FTWL:    $gui_ftwl
 
32493
    Stub:    $gui_stub
 
32494
 
 
32495
  Build freeciv server:    $server
 
32496
    Debugging support:     $enable_debug
 
32497
    Auth database support: $auth
 
32498
" >&5
 
32499
$as_echo "$as_me:
 
32500
****************** Configuration Summary ******************
 
32501
 
 
32502
  Build freeciv client: $client
 
32503
    Debugging support:  $enable_debug
 
32504
 
 
32505
  Client frontends:
 
32506
    Gtk-2.0: $gui_gtk2
 
32507
    SDL:     $gui_sdl
 
32508
    Xaw:     $gui_xaw
 
32509
    Win32:   $gui_win32
 
32510
    FTWL:    $gui_ftwl
 
32511
    Stub:    $gui_stub
 
32512
 
 
32513
  Build freeciv server:    $server
 
32514
    Debugging support:     $enable_debug
 
32515
    Auth database support: $auth
 
32516
" >&6;}
 
32517