~ubuntu-branches/ubuntu/saucy/rrdtool/saucy-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for rrdtool 1.3.8.
 
3
# Generated by GNU Autoconf 2.63 for rrdtool 1.4.3.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
743
743
# Identity of this package.
744
744
PACKAGE_NAME='rrdtool'
745
745
PACKAGE_TARNAME='rrdtool'
746
 
PACKAGE_VERSION='1.3.8'
747
 
PACKAGE_STRING='rrdtool 1.3.8'
 
746
PACKAGE_VERSION='1.4.3'
 
747
PACKAGE_STRING='rrdtool 1.4.3'
748
748
PACKAGE_BUGREPORT=''
749
749
 
750
 
ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
751
750
# Factoring default headers for most tests.
752
751
ac_includes_default="\
753
752
#include <stdio.h>
784
783
# include <unistd.h>
785
784
#endif"
786
785
 
787
 
ac_subst_vars='LTLIBOBJS
 
786
ac_default_prefix=/opt/rrdtool-$PACKAGE_VERSION
 
787
gt_needs=
 
788
ac_subst_vars='am__EXEEXT_FALSE
 
789
am__EXEEXT_TRUE
 
790
LTLIBOBJS
788
791
LIBOBJS
789
792
RRDDOCDIR
790
793
TROFF
814
817
BUILD_TCL_SITE_TRUE
815
818
BUILD_TCL_FALSE
816
819
BUILD_TCL_TRUE
 
820
BUILD_LUA_FALSE
 
821
BUILD_LUA_TRUE
 
822
LUA50_FALSE
 
823
LUA50_TRUE
 
824
LUA_SITE_LINSTALL_FALSE
 
825
LUA_SITE_LINSTALL_TRUE
 
826
LUA_SITE_CINSTALL_FALSE
 
827
LUA_SITE_CINSTALL_TRUE
 
828
LUA_NEED_OUR_COMPAT51_FALSE
 
829
LUA_NEED_OUR_COMPAT51_TRUE
 
830
LUA_DEFINES
 
831
LUA_LFLAGS
 
832
LUA_CFLAGS
 
833
LUA_INSTALL_LMOD
 
834
LUA_INSTALL_CMOD
 
835
COMP_LUA
 
836
LUA
817
837
COMP_RUBY
818
838
RUBY_MAKE_OPTIONS
819
839
RUBY
833
853
PKGCONFIG
834
854
BUILD_RRDCGI_FALSE
835
855
BUILD_RRDCGI_TRUE
 
856
BUILD_LIBDBI_FALSE
 
857
BUILD_LIBDBI_TRUE
836
858
BUILD_MULTITHREAD_FALSE
837
859
BUILD_MULTITHREAD_TRUE
838
860
PTHREAD_CFLAGS
844
866
BUILD_GETOPT_FALSE
845
867
BUILD_GETOPT_TRUE
846
868
RRD_GETOPT_LONG
847
 
BUILD_LIBINTL_FALSE
848
 
BUILD_LIBINTL_TRUE
849
 
LIB_LIBINTL
850
 
ALL_LINGUAS
851
 
INTLTOOL_PERL
852
 
MSGMERGE
853
 
INTLTOOL_POLICY_RULE
854
 
INTLTOOL_SERVICE_RULE
855
 
INTLTOOL_THEME_RULE
856
 
INTLTOOL_SCHEMAS_RULE
857
 
INTLTOOL_CAVES_RULE
858
 
INTLTOOL_XML_NOMERGE_RULE
859
 
INTLTOOL_XML_RULE
860
 
INTLTOOL_KBD_RULE
861
 
INTLTOOL_XAM_RULE
862
 
INTLTOOL_UI_RULE
863
 
INTLTOOL_SOUNDLIST_RULE
864
 
INTLTOOL_SHEET_RULE
865
 
INTLTOOL_SERVER_RULE
866
 
INTLTOOL_PONG_RULE
867
 
INTLTOOL_OAF_RULE
868
 
INTLTOOL_PROP_RULE
869
 
INTLTOOL_KEYS_RULE
870
 
INTLTOOL_DIRECTORY_RULE
871
 
INTLTOOL_DESKTOP_RULE
872
 
INTLTOOL_EXTRACT
873
 
INTLTOOL_MERGE
874
 
INTLTOOL_UPDATE
875
 
MKINSTALLDIRS
876
869
POSUB
877
 
POFILES
878
 
PO_IN_DATADIR_FALSE
879
 
PO_IN_DATADIR_TRUE
 
870
LTLIBINTL
 
871
LIBINTL
880
872
INTLLIBS
 
873
INTL_LIBTOOL_SUFFIX_PREFIX
 
874
INTLOBJS
 
875
GENCAT
881
876
INSTOBJEXT
882
 
GMOFILES
883
877
DATADIRNAME
884
878
CATOBJEXT
885
 
CATALOGS
 
879
USE_INCLUDED_LIBINTL
 
880
BUILD_INCLUDED_LIBINTL
 
881
LTLIBC
 
882
WINDRES
 
883
WOE32
 
884
WOE32DLL
 
885
HAVE_WPRINTF
 
886
HAVE_SNPRINTF
 
887
HAVE_ASPRINTF
 
888
HAVE_POSIX_PRINTF
 
889
INTL_MACOSX_LIBS
 
890
GLIBC21
 
891
INTLBISON
 
892
LTLIBICONV
 
893
LIBICONV
 
894
LTLIBMULTITHREAD
 
895
LIBMULTITHREAD
 
896
LTLIBTHREAD
 
897
LIBTHREAD
 
898
LIBPTH_PREFIX
 
899
LTLIBPTH
 
900
LIBPTH
 
901
PRI_MACROS_BROKEN
 
902
ALLOCA
 
903
HAVE_VISIBILITY
 
904
CFLAG_VISIBILITY
 
905
GLIBC2
 
906
XGETTEXT_EXTRA_OPTIONS
 
907
MSGMERGE
 
908
XGETTEXT_015
886
909
XGETTEXT
 
910
GMSGFMT_015
 
911
MSGFMT_015
887
912
GMSGFMT
888
 
MSGFMT_OPTS
889
913
MSGFMT
 
914
GETTEXT_MACRO_VERSION
890
915
USE_NLS
891
 
GETTEXT_PACKAGE
892
916
RRD_DEFAULT_FONT
 
917
WERROR
893
918
OTOOL64
894
919
OTOOL
895
920
LIPO
905
930
DUMPBIN
906
931
LD
907
932
FGREP
908
 
EGREP
909
 
GREP
910
933
SED
911
934
LIBTOOL
912
 
CPP
 
935
STATIC_PROGRAMS_FALSE
 
936
STATIC_PROGRAMS_TRUE
 
937
RRDGRAPH_YLEGEND_ANGLE
 
938
AM_BACKSLASH
 
939
AM_DEFAULT_VERBOSITY
 
940
MAINT
 
941
MAINTAINER_MODE_FALSE
 
942
MAINTAINER_MODE_TRUE
913
943
am__fastdepCC_FALSE
914
944
am__fastdepCC_TRUE
915
945
CCDEPMODE
919
949
am__quote
920
950
am__include
921
951
DEPDIR
922
 
OBJEXT
923
 
EXEEXT
924
 
ac_ct_CC
925
 
CPPFLAGS
926
 
LDFLAGS
927
 
CFLAGS
928
 
CC
929
 
STATIC_PROGRAMS_FALSE
930
 
STATIC_PROGRAMS_TRUE
931
 
RRDGRAPH_YLEGEND_ANGLE
932
 
MAINT
933
 
MAINTAINER_MODE_FALSE
934
 
MAINTAINER_MODE_TRUE
935
952
am__untar
936
953
am__tar
937
954
AMTAR
955
972
INSTALL_DATA
956
973
INSTALL_SCRIPT
957
974
INSTALL_PROGRAM
 
975
EGREP
 
976
GREP
 
977
CPP
 
978
OBJEXT
 
979
EXEEXT
 
980
ac_ct_CC
 
981
CPPFLAGS
 
982
LDFLAGS
 
983
CFLAGS
 
984
CC
958
985
target_os
959
986
target_vendor
960
987
target_cpu
1010
1037
ac_subst_files=''
1011
1038
ac_user_opts='
1012
1039
enable_option_checking
 
1040
enable_dependency_tracking
1013
1041
enable_maintainer_mode
 
1042
enable_silent_rules
1014
1043
enable_rrdcgi
1015
1044
with_rrd_default_font
1016
1045
enable_mmap
1017
1046
enable_pthread
1018
1047
enable_static_programs
1019
 
enable_dependency_tracking
1020
1048
enable_shared
1021
1049
enable_static
1022
1050
with_pic
1023
1051
enable_fast_install
1024
1052
with_gnu_ld
1025
1053
enable_libtool_lock
1026
 
enable_libintl
1027
1054
enable_nls
 
1055
enable_threads
 
1056
enable_rpath
 
1057
with_libpth_prefix
 
1058
with_libiconv_prefix
 
1059
with_included_gettext
 
1060
with_libintl_prefix
 
1061
enable_libdbi
1028
1062
enable_perl
1029
1063
enable_perl_site_install
1030
1064
with_perl_options
1031
1065
enable_ruby
1032
1066
enable_ruby_site_install
1033
1067
with_ruby_options
 
1068
enable_lua
 
1069
enable_lua_site_install
1034
1070
enable_tcl
1035
1071
with_tcllib
1036
1072
enable_python
1038
1074
      ac_precious_vars='build_alias
1039
1075
host_alias
1040
1076
target_alias
1041
 
RRDGRAPH_YLEGEND_ANGLE
1042
1077
CC
1043
1078
CFLAGS
1044
1079
LDFLAGS
1045
1080
LIBS
1046
1081
CPPFLAGS
1047
1082
CPP
 
1083
RRDGRAPH_YLEGEND_ANGLE
1048
1084
PERLCC
1049
1085
PERLCCFLAGS
1050
1086
PERLLD
1602
1638
  # Omit some internal or obsolete options to make the list less imposing.
1603
1639
  # This message is too long to be a string in the A/UX 3.1 sh.
1604
1640
  cat <<_ACEOF
1605
 
\`configure' configures rrdtool 1.3.8 to adapt to many kinds of systems.
 
1641
\`configure' configures rrdtool 1.4.3 to adapt to many kinds of systems.
1606
1642
 
1607
1643
Usage: $0 [OPTION]... [VAR=VALUE]...
1608
1644
 
1673
1709
 
1674
1710
if test -n "$ac_init_help"; then
1675
1711
  case $ac_init_help in
1676
 
     short | recursive ) echo "Configuration of rrdtool 1.3.8:";;
 
1712
     short | recursive ) echo "Configuration of rrdtool 1.4.3:";;
1677
1713
   esac
1678
1714
  cat <<\_ACEOF
1679
1715
 
1681
1717
  --disable-option-checking  ignore unrecognized --enable/--with options
1682
1718
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1683
1719
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1720
  --disable-dependency-tracking  speeds up one-time build
 
1721
  --enable-dependency-tracking   do not reject slow dependency extractors
1684
1722
  --enable-maintainer-mode  enable make rules and dependencies not useful
1685
1723
                          (and sometimes confusing) to the casual installer
 
1724
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1725
  --disable-silent-rules         verbose build output (undo: `make V=0')
1686
1726
  --disable-rrdcgi        disable building of rrdcgi
1687
1727
  --disable-mmap          disable mmap in rrd_update, use seek+write instead
1688
1728
  --disable-pthread       disable multithread support
1689
 
  --enable-static-programs  Build static programs
1690
 
  --disable-dependency-tracking  speeds up one-time build
1691
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1729
  --enable-static-programs
 
1730
                          Build static programs
1692
1731
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1693
1732
  --enable-static[=PKGS]  build static libraries [default=yes]
1694
1733
  --enable-fast-install[=PKGS]
1695
1734
                          optimize for fast installation [default=yes]
1696
1735
  --disable-libtool-lock  avoid locking (might break parallel builds)
1697
 
  --disable-libintl        i18n support (libintl)
1698
1736
  --disable-nls           do not use Native Language Support
 
1737
  --enable-threads={posix|solaris|pth|win32}
 
1738
                          specify multithreading API
 
1739
  --disable-threads       build without multithread safety
 
1740
  --disable-rpath         do not hardcode runtime library paths
 
1741
  --disable-libdbi        do not build in support for libdbi
1699
1742
  --disable-perl          do not build the perl modules
1700
 
  --enable-perl-site-install   by default the rrdtool perl modules are installed
1701
 
                          together with rrdtool in $prefix/lib/perl. You have to
1702
 
                          put a 'use lib qw($prefix/lib/perl)' into your scripts
1703
 
                          when you want to use them. When you set this option
1704
 
                          the perl modules will get installed wherever
 
1743
  --enable-perl-site-install
 
1744
                          by default the rrdtool perl modules are installed
 
1745
                          together with rrdtool in $prefix/lib/perl. You have
 
1746
                          to put a 'use lib qw($prefix/lib/perl)' into your
 
1747
                          scripts when you want to use them. When you set this
 
1748
                          option the perl modules will get installed wherever
1705
1749
                          your perl setup thinks it is best.
1706
1750
  --disable-ruby          do not build the ruby modules
1707
 
  --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1708
 
                          together with rrdtool in $prefix/lib/ruby. You have to
1709
 
                          add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1710
 
                          for ruby to find the RRD.so file.
 
1751
  --enable-ruby-site-install
 
1752
                          by default the rrdtool ruby modules are installed
 
1753
                          together with rrdtool in $prefix/lib/ruby. You have
 
1754
                          to add $prefix/lib/ruby/$ruby_version/$sitearch to
 
1755
                          your $: variable for ruby to find the RRD.so file.
 
1756
  --disable-lua           do not build the lua modules
 
1757
  --enable-lua-site-install
 
1758
                          by default the lua module is installed together with
 
1759
                          rrdtool in $prefix/lib/lua/$lua_version. You have to
 
1760
                          add $prefix/lib/lua/$lua_version/?.so to
 
1761
                          package.cpath for lua to find 'rrd.so'. For lua 5.0
 
1762
                          you may also need to change LUA_PATH to the same
 
1763
                          dir, to require 'compat-5.1'. When you set this
 
1764
                          option the lua modules will get installed wherever
 
1765
                          your Lua setup thinks it is best. WARNING: if you
 
1766
                          set this option, system lua modules compat-5.1.lua
 
1767
                          and rrd.so, if any, may be overwritten.
1711
1768
  --disable-tcl           do not build the tcl modules
1712
 
  --enable-tcl-site        install the tcl extension in the tcl tree
 
1769
  --enable-tcl-site       install the tcl extension in the tcl tree
1713
1770
  --disable-python        do not build the python modules
1714
1771
 
1715
1772
Optional Packages:
1719
1776
  --with-pic              try to use only PIC/non-PIC objects [default=use
1720
1777
                          both]
1721
1778
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1779
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1780
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
 
1781
  --without-libpth-prefix     don't search for libpth in includedir and libdir
 
1782
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1783
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1784
  --with-included-gettext use the GNU gettext library included here
 
1785
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1786
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1722
1787
  --with-perl-options=OPTIONS  options to pass on command-line when
1723
1788
                          generating Makefile from Makefile.PL. If you set this
1724
1789
                          option, interesting things may happen unless you know
1730
1795
  --with-tcllib=DIR       location of the tclConfig.sh
1731
1796
 
1732
1797
Some influential environment variables:
1733
 
  RRDGRAPH_YLEGEND_ANGLE
1734
 
              Vertical label angle: -90.0 (default) or 90.0
1735
1798
  CC          C compiler command
1736
1799
  CFLAGS      C compiler flags
1737
1800
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1740
1803
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1741
1804
              you have headers in a nonstandard directory <include dir>
1742
1805
  CPP         C preprocessor
1743
 
  PERLCC      [] C compiler for Perl modules
1744
 
  PERLCCFLAGS [] CC flags for Perl modules
1745
 
  PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1746
 
  PERLLDFLAGS [] LD flags for Perl modules
 
1806
  RRDGRAPH_YLEGEND_ANGLE
 
1807
              Vertical label angle: -90.0 (default) or 90.0
 
1808
  PERLCC      C compiler for Perl modules
 
1809
  PERLCCFLAGS CC flags for Perl modules
 
1810
  PERLLD      Linker for Perl modules
 
1811
  PERLLDFLAGS LD flags for Perl modules
1747
1812
  RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1748
1813
 
1749
1814
Use these variables to override the choices made by `configure' or to help
1811
1876
test -n "$ac_init_help" && exit $ac_status
1812
1877
if $ac_init_version; then
1813
1878
  cat <<\_ACEOF
1814
 
rrdtool configure 1.3.8
 
1879
rrdtool configure 1.4.3
1815
1880
generated by GNU Autoconf 2.63
1816
1881
 
1817
1882
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1825
1890
This file contains any messages produced by compilers while
1826
1891
running configure, to aid debugging if configure makes a mistake.
1827
1892
 
1828
 
It was created by rrdtool $as_me 1.3.8, which was
 
1893
It was created by rrdtool $as_me 1.4.3, which was
1829
1894
generated by GNU Autoconf 2.63.  Invocation command line was
1830
1895
 
1831
1896
  $ $0 $@
2102
2167
  >$cache_file
2103
2168
fi
2104
2169
 
 
2170
gt_needs="$gt_needs "
2105
2171
# Check that the precious variables saved in the cache have kept the same
2106
2172
# value.
2107
2173
ac_cache_corrupted=false
2194
2260
 
2195
2261
 
2196
2262
 
2197
 
NUMVERS=1.3008
2198
 
 
2199
 
 
2200
 
LIBVERS=4:7:0
 
2263
NUMVERS=1.4003
 
2264
 
 
2265
 
 
2266
LIBVERS=5:3:1
2201
2267
 
2202
2268
 
2203
2269
ac_aux_dir=
2357
2423
  test "$program_prefix$program_suffix$program_transform_name" = \
2358
2424
    NONENONEs,x,x, &&
2359
2425
  program_prefix=${target_alias}-
2360
 
am__api_version='1.10'
 
2426
ac_ext=c
 
2427
ac_cpp='$CPP $CPPFLAGS'
 
2428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2431
if test -n "$ac_tool_prefix"; then
 
2432
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2433
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2434
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2435
$as_echo_n "checking for $ac_word... " >&6; }
 
2436
if test "${ac_cv_prog_CC+set}" = set; then
 
2437
  $as_echo_n "(cached) " >&6
 
2438
else
 
2439
  if test -n "$CC"; then
 
2440
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2441
else
 
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2443
for as_dir in $PATH
 
2444
do
 
2445
  IFS=$as_save_IFS
 
2446
  test -z "$as_dir" && as_dir=.
 
2447
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2449
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2450
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2451
    break 2
 
2452
  fi
 
2453
done
 
2454
done
 
2455
IFS=$as_save_IFS
 
2456
 
 
2457
fi
 
2458
fi
 
2459
CC=$ac_cv_prog_CC
 
2460
if test -n "$CC"; then
 
2461
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2462
$as_echo "$CC" >&6; }
 
2463
else
 
2464
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2465
$as_echo "no" >&6; }
 
2466
fi
 
2467
 
 
2468
 
 
2469
fi
 
2470
if test -z "$ac_cv_prog_CC"; then
 
2471
  ac_ct_CC=$CC
 
2472
  # Extract the first word of "gcc", so it can be a program name with args.
 
2473
set dummy gcc; ac_word=$2
 
2474
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2475
$as_echo_n "checking for $ac_word... " >&6; }
 
2476
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2477
  $as_echo_n "(cached) " >&6
 
2478
else
 
2479
  if test -n "$ac_ct_CC"; then
 
2480
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2481
else
 
2482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2483
for as_dir in $PATH
 
2484
do
 
2485
  IFS=$as_save_IFS
 
2486
  test -z "$as_dir" && as_dir=.
 
2487
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2488
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2489
    ac_cv_prog_ac_ct_CC="gcc"
 
2490
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2491
    break 2
 
2492
  fi
 
2493
done
 
2494
done
 
2495
IFS=$as_save_IFS
 
2496
 
 
2497
fi
 
2498
fi
 
2499
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2500
if test -n "$ac_ct_CC"; then
 
2501
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2502
$as_echo "$ac_ct_CC" >&6; }
 
2503
else
 
2504
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2505
$as_echo "no" >&6; }
 
2506
fi
 
2507
 
 
2508
  if test "x$ac_ct_CC" = x; then
 
2509
    CC=""
 
2510
  else
 
2511
    case $cross_compiling:$ac_tool_warned in
 
2512
yes:)
 
2513
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2515
ac_tool_warned=yes ;;
 
2516
esac
 
2517
    CC=$ac_ct_CC
 
2518
  fi
 
2519
else
 
2520
  CC="$ac_cv_prog_CC"
 
2521
fi
 
2522
 
 
2523
if test -z "$CC"; then
 
2524
          if test -n "$ac_tool_prefix"; then
 
2525
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2526
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2527
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2528
$as_echo_n "checking for $ac_word... " >&6; }
 
2529
if test "${ac_cv_prog_CC+set}" = set; then
 
2530
  $as_echo_n "(cached) " >&6
 
2531
else
 
2532
  if test -n "$CC"; then
 
2533
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2534
else
 
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2536
for as_dir in $PATH
 
2537
do
 
2538
  IFS=$as_save_IFS
 
2539
  test -z "$as_dir" && as_dir=.
 
2540
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2541
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2542
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2543
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2544
    break 2
 
2545
  fi
 
2546
done
 
2547
done
 
2548
IFS=$as_save_IFS
 
2549
 
 
2550
fi
 
2551
fi
 
2552
CC=$ac_cv_prog_CC
 
2553
if test -n "$CC"; then
 
2554
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2555
$as_echo "$CC" >&6; }
 
2556
else
 
2557
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2558
$as_echo "no" >&6; }
 
2559
fi
 
2560
 
 
2561
 
 
2562
  fi
 
2563
fi
 
2564
if test -z "$CC"; then
 
2565
  # Extract the first word of "cc", so it can be a program name with args.
 
2566
set dummy cc; ac_word=$2
 
2567
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2568
$as_echo_n "checking for $ac_word... " >&6; }
 
2569
if test "${ac_cv_prog_CC+set}" = set; then
 
2570
  $as_echo_n "(cached) " >&6
 
2571
else
 
2572
  if test -n "$CC"; then
 
2573
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2574
else
 
2575
  ac_prog_rejected=no
 
2576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2577
for as_dir in $PATH
 
2578
do
 
2579
  IFS=$as_save_IFS
 
2580
  test -z "$as_dir" && as_dir=.
 
2581
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2583
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2584
       ac_prog_rejected=yes
 
2585
       continue
 
2586
     fi
 
2587
    ac_cv_prog_CC="cc"
 
2588
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2589
    break 2
 
2590
  fi
 
2591
done
 
2592
done
 
2593
IFS=$as_save_IFS
 
2594
 
 
2595
if test $ac_prog_rejected = yes; then
 
2596
  # We found a bogon in the path, so make sure we never use it.
 
2597
  set dummy $ac_cv_prog_CC
 
2598
  shift
 
2599
  if test $# != 0; then
 
2600
    # We chose a different compiler from the bogus one.
 
2601
    # However, it has the same basename, so the bogon will be chosen
 
2602
    # first if we set CC to just the basename; use the full file name.
 
2603
    shift
 
2604
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2605
  fi
 
2606
fi
 
2607
fi
 
2608
fi
 
2609
CC=$ac_cv_prog_CC
 
2610
if test -n "$CC"; then
 
2611
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2612
$as_echo "$CC" >&6; }
 
2613
else
 
2614
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2615
$as_echo "no" >&6; }
 
2616
fi
 
2617
 
 
2618
 
 
2619
fi
 
2620
if test -z "$CC"; then
 
2621
  if test -n "$ac_tool_prefix"; then
 
2622
  for ac_prog in cl.exe
 
2623
  do
 
2624
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2625
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2626
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2627
$as_echo_n "checking for $ac_word... " >&6; }
 
2628
if test "${ac_cv_prog_CC+set}" = set; then
 
2629
  $as_echo_n "(cached) " >&6
 
2630
else
 
2631
  if test -n "$CC"; then
 
2632
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2633
else
 
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2635
for as_dir in $PATH
 
2636
do
 
2637
  IFS=$as_save_IFS
 
2638
  test -z "$as_dir" && as_dir=.
 
2639
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2640
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2641
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2642
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2643
    break 2
 
2644
  fi
 
2645
done
 
2646
done
 
2647
IFS=$as_save_IFS
 
2648
 
 
2649
fi
 
2650
fi
 
2651
CC=$ac_cv_prog_CC
 
2652
if test -n "$CC"; then
 
2653
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2654
$as_echo "$CC" >&6; }
 
2655
else
 
2656
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2657
$as_echo "no" >&6; }
 
2658
fi
 
2659
 
 
2660
 
 
2661
    test -n "$CC" && break
 
2662
  done
 
2663
fi
 
2664
if test -z "$CC"; then
 
2665
  ac_ct_CC=$CC
 
2666
  for ac_prog in cl.exe
 
2667
do
 
2668
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2669
set dummy $ac_prog; ac_word=$2
 
2670
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2671
$as_echo_n "checking for $ac_word... " >&6; }
 
2672
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2673
  $as_echo_n "(cached) " >&6
 
2674
else
 
2675
  if test -n "$ac_ct_CC"; then
 
2676
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2677
else
 
2678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2679
for as_dir in $PATH
 
2680
do
 
2681
  IFS=$as_save_IFS
 
2682
  test -z "$as_dir" && as_dir=.
 
2683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2685
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2686
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2687
    break 2
 
2688
  fi
 
2689
done
 
2690
done
 
2691
IFS=$as_save_IFS
 
2692
 
 
2693
fi
 
2694
fi
 
2695
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2696
if test -n "$ac_ct_CC"; then
 
2697
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2698
$as_echo "$ac_ct_CC" >&6; }
 
2699
else
 
2700
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2701
$as_echo "no" >&6; }
 
2702
fi
 
2703
 
 
2704
 
 
2705
  test -n "$ac_ct_CC" && break
 
2706
done
 
2707
 
 
2708
  if test "x$ac_ct_CC" = x; then
 
2709
    CC=""
 
2710
  else
 
2711
    case $cross_compiling:$ac_tool_warned in
 
2712
yes:)
 
2713
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2714
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2715
ac_tool_warned=yes ;;
 
2716
esac
 
2717
    CC=$ac_ct_CC
 
2718
  fi
 
2719
fi
 
2720
 
 
2721
fi
 
2722
 
 
2723
 
 
2724
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2726
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2727
See \`config.log' for more details." >&5
 
2728
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2729
See \`config.log' for more details." >&2;}
 
2730
   { (exit 1); exit 1; }; }; }
 
2731
 
 
2732
# Provide some information about the compiler.
 
2733
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2734
set X $ac_compile
 
2735
ac_compiler=$2
 
2736
{ (ac_try="$ac_compiler --version >&5"
 
2737
case "(($ac_try" in
 
2738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2739
  *) ac_try_echo=$ac_try;;
 
2740
esac
 
2741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2742
$as_echo "$ac_try_echo") >&5
 
2743
  (eval "$ac_compiler --version >&5") 2>&5
 
2744
  ac_status=$?
 
2745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2746
  (exit $ac_status); }
 
2747
{ (ac_try="$ac_compiler -v >&5"
 
2748
case "(($ac_try" in
 
2749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2750
  *) ac_try_echo=$ac_try;;
 
2751
esac
 
2752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2753
$as_echo "$ac_try_echo") >&5
 
2754
  (eval "$ac_compiler -v >&5") 2>&5
 
2755
  ac_status=$?
 
2756
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); }
 
2758
{ (ac_try="$ac_compiler -V >&5"
 
2759
case "(($ac_try" in
 
2760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2761
  *) ac_try_echo=$ac_try;;
 
2762
esac
 
2763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2764
$as_echo "$ac_try_echo") >&5
 
2765
  (eval "$ac_compiler -V >&5") 2>&5
 
2766
  ac_status=$?
 
2767
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2768
  (exit $ac_status); }
 
2769
 
 
2770
cat >conftest.$ac_ext <<_ACEOF
 
2771
/* confdefs.h.  */
 
2772
_ACEOF
 
2773
cat confdefs.h >>conftest.$ac_ext
 
2774
cat >>conftest.$ac_ext <<_ACEOF
 
2775
/* end confdefs.h.  */
 
2776
 
 
2777
int
 
2778
main ()
 
2779
{
 
2780
 
 
2781
  ;
 
2782
  return 0;
 
2783
}
 
2784
_ACEOF
 
2785
ac_clean_files_save=$ac_clean_files
 
2786
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2787
# Try to create an executable without -o first, disregard a.out.
 
2788
# It will help us diagnose broken compilers, and finding out an intuition
 
2789
# of exeext.
 
2790
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2791
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2792
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2793
 
 
2794
# The possible output files:
 
2795
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2796
 
 
2797
ac_rmfiles=
 
2798
for ac_file in $ac_files
 
2799
do
 
2800
  case $ac_file in
 
2801
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2802
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2803
  esac
 
2804
done
 
2805
rm -f $ac_rmfiles
 
2806
 
 
2807
if { (ac_try="$ac_link_default"
 
2808
case "(($ac_try" in
 
2809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2810
  *) ac_try_echo=$ac_try;;
 
2811
esac
 
2812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2813
$as_echo "$ac_try_echo") >&5
 
2814
  (eval "$ac_link_default") 2>&5
 
2815
  ac_status=$?
 
2816
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2817
  (exit $ac_status); }; then
 
2818
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2819
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2820
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2821
# so that the user can short-circuit this test for compilers unknown to
 
2822
# Autoconf.
 
2823
for ac_file in $ac_files ''
 
2824
do
 
2825
  test -f "$ac_file" || continue
 
2826
  case $ac_file in
 
2827
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2828
        ;;
 
2829
    [ab].out )
 
2830
        # We found the default executable, but exeext='' is most
 
2831
        # certainly right.
 
2832
        break;;
 
2833
    *.* )
 
2834
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2835
        then :; else
 
2836
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2837
        fi
 
2838
        # We set ac_cv_exeext here because the later test for it is not
 
2839
        # safe: cross compilers may not add the suffix if given an `-o'
 
2840
        # argument, so we may need to know it at that point already.
 
2841
        # Even if this section looks crufty: it has the advantage of
 
2842
        # actually working.
 
2843
        break;;
 
2844
    * )
 
2845
        break;;
 
2846
  esac
 
2847
done
 
2848
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2849
 
 
2850
else
 
2851
  ac_file=''
 
2852
fi
 
2853
 
 
2854
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
2855
$as_echo "$ac_file" >&6; }
 
2856
if test -z "$ac_file"; then
 
2857
  $as_echo "$as_me: failed program was:" >&5
 
2858
sed 's/^/| /' conftest.$ac_ext >&5
 
2859
 
 
2860
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2861
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2862
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2863
See \`config.log' for more details." >&5
 
2864
$as_echo "$as_me: error: C compiler cannot create executables
 
2865
See \`config.log' for more details." >&2;}
 
2866
   { (exit 77); exit 77; }; }; }
 
2867
fi
 
2868
 
 
2869
ac_exeext=$ac_cv_exeext
 
2870
 
 
2871
# Check that the compiler produces executables we can run.  If not, either
 
2872
# the compiler is broken, or we cross compile.
 
2873
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2874
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2875
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2876
# If not cross compiling, check that we can run a simple program.
 
2877
if test "$cross_compiling" != yes; then
 
2878
  if { ac_try='./$ac_file'
 
2879
  { (case "(($ac_try" in
 
2880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2881
  *) ac_try_echo=$ac_try;;
 
2882
esac
 
2883
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2884
$as_echo "$ac_try_echo") >&5
 
2885
  (eval "$ac_try") 2>&5
 
2886
  ac_status=$?
 
2887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2888
  (exit $ac_status); }; }; then
 
2889
    cross_compiling=no
 
2890
  else
 
2891
    if test "$cross_compiling" = maybe; then
 
2892
        cross_compiling=yes
 
2893
    else
 
2894
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2895
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2896
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2897
If you meant to cross compile, use \`--host'.
 
2898
See \`config.log' for more details." >&5
 
2899
$as_echo "$as_me: error: cannot run C compiled programs.
 
2900
If you meant to cross compile, use \`--host'.
 
2901
See \`config.log' for more details." >&2;}
 
2902
   { (exit 1); exit 1; }; }; }
 
2903
    fi
 
2904
  fi
 
2905
fi
 
2906
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2907
$as_echo "yes" >&6; }
 
2908
 
 
2909
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2910
ac_clean_files=$ac_clean_files_save
 
2911
# Check that the compiler produces executables we can run.  If not, either
 
2912
# the compiler is broken, or we cross compile.
 
2913
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2914
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2915
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2916
$as_echo "$cross_compiling" >&6; }
 
2917
 
 
2918
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2919
$as_echo_n "checking for suffix of executables... " >&6; }
 
2920
if { (ac_try="$ac_link"
 
2921
case "(($ac_try" in
 
2922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2923
  *) ac_try_echo=$ac_try;;
 
2924
esac
 
2925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2926
$as_echo "$ac_try_echo") >&5
 
2927
  (eval "$ac_link") 2>&5
 
2928
  ac_status=$?
 
2929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2930
  (exit $ac_status); }; then
 
2931
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2932
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2933
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2934
# `rm'.
 
2935
for ac_file in conftest.exe conftest conftest.*; do
 
2936
  test -f "$ac_file" || continue
 
2937
  case $ac_file in
 
2938
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2939
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2940
          break;;
 
2941
    * ) break;;
 
2942
  esac
 
2943
done
 
2944
else
 
2945
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2946
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2947
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2948
See \`config.log' for more details." >&5
 
2949
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2950
See \`config.log' for more details." >&2;}
 
2951
   { (exit 1); exit 1; }; }; }
 
2952
fi
 
2953
 
 
2954
rm -f conftest$ac_cv_exeext
 
2955
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2956
$as_echo "$ac_cv_exeext" >&6; }
 
2957
 
 
2958
rm -f conftest.$ac_ext
 
2959
EXEEXT=$ac_cv_exeext
 
2960
ac_exeext=$EXEEXT
 
2961
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2962
$as_echo_n "checking for suffix of object files... " >&6; }
 
2963
if test "${ac_cv_objext+set}" = set; then
 
2964
  $as_echo_n "(cached) " >&6
 
2965
else
 
2966
  cat >conftest.$ac_ext <<_ACEOF
 
2967
/* confdefs.h.  */
 
2968
_ACEOF
 
2969
cat confdefs.h >>conftest.$ac_ext
 
2970
cat >>conftest.$ac_ext <<_ACEOF
 
2971
/* end confdefs.h.  */
 
2972
 
 
2973
int
 
2974
main ()
 
2975
{
 
2976
 
 
2977
  ;
 
2978
  return 0;
 
2979
}
 
2980
_ACEOF
 
2981
rm -f conftest.o conftest.obj
 
2982
if { (ac_try="$ac_compile"
 
2983
case "(($ac_try" in
 
2984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2985
  *) ac_try_echo=$ac_try;;
 
2986
esac
 
2987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2988
$as_echo "$ac_try_echo") >&5
 
2989
  (eval "$ac_compile") 2>&5
 
2990
  ac_status=$?
 
2991
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2992
  (exit $ac_status); }; then
 
2993
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2994
  test -f "$ac_file" || continue;
 
2995
  case $ac_file in
 
2996
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2997
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2998
       break;;
 
2999
  esac
 
3000
done
 
3001
else
 
3002
  $as_echo "$as_me: failed program was:" >&5
 
3003
sed 's/^/| /' conftest.$ac_ext >&5
 
3004
 
 
3005
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3006
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3007
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3008
See \`config.log' for more details." >&5
 
3009
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3010
See \`config.log' for more details." >&2;}
 
3011
   { (exit 1); exit 1; }; }; }
 
3012
fi
 
3013
 
 
3014
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3015
fi
 
3016
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3017
$as_echo "$ac_cv_objext" >&6; }
 
3018
OBJEXT=$ac_cv_objext
 
3019
ac_objext=$OBJEXT
 
3020
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3021
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3022
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3023
  $as_echo_n "(cached) " >&6
 
3024
else
 
3025
  cat >conftest.$ac_ext <<_ACEOF
 
3026
/* confdefs.h.  */
 
3027
_ACEOF
 
3028
cat confdefs.h >>conftest.$ac_ext
 
3029
cat >>conftest.$ac_ext <<_ACEOF
 
3030
/* end confdefs.h.  */
 
3031
 
 
3032
int
 
3033
main ()
 
3034
{
 
3035
#ifndef __GNUC__
 
3036
       choke me
 
3037
#endif
 
3038
 
 
3039
  ;
 
3040
  return 0;
 
3041
}
 
3042
_ACEOF
 
3043
rm -f conftest.$ac_objext
 
3044
if { (ac_try="$ac_compile"
 
3045
case "(($ac_try" in
 
3046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3047
  *) ac_try_echo=$ac_try;;
 
3048
esac
 
3049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3050
$as_echo "$ac_try_echo") >&5
 
3051
  (eval "$ac_compile") 2>conftest.er1
 
3052
  ac_status=$?
 
3053
  grep -v '^ *+' conftest.er1 >conftest.err
 
3054
  rm -f conftest.er1
 
3055
  cat conftest.err >&5
 
3056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3057
  (exit $ac_status); } && {
 
3058
         test -z "$ac_c_werror_flag" ||
 
3059
         test ! -s conftest.err
 
3060
       } && test -s conftest.$ac_objext; then
 
3061
  ac_compiler_gnu=yes
 
3062
else
 
3063
  $as_echo "$as_me: failed program was:" >&5
 
3064
sed 's/^/| /' conftest.$ac_ext >&5
 
3065
 
 
3066
        ac_compiler_gnu=no
 
3067
fi
 
3068
 
 
3069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3070
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3071
 
 
3072
fi
 
3073
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3074
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3075
if test $ac_compiler_gnu = yes; then
 
3076
  GCC=yes
 
3077
else
 
3078
  GCC=
 
3079
fi
 
3080
ac_test_CFLAGS=${CFLAGS+set}
 
3081
ac_save_CFLAGS=$CFLAGS
 
3082
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3083
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3084
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3085
  $as_echo_n "(cached) " >&6
 
3086
else
 
3087
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3088
   ac_c_werror_flag=yes
 
3089
   ac_cv_prog_cc_g=no
 
3090
   CFLAGS="-g"
 
3091
   cat >conftest.$ac_ext <<_ACEOF
 
3092
/* confdefs.h.  */
 
3093
_ACEOF
 
3094
cat confdefs.h >>conftest.$ac_ext
 
3095
cat >>conftest.$ac_ext <<_ACEOF
 
3096
/* end confdefs.h.  */
 
3097
 
 
3098
int
 
3099
main ()
 
3100
{
 
3101
 
 
3102
  ;
 
3103
  return 0;
 
3104
}
 
3105
_ACEOF
 
3106
rm -f conftest.$ac_objext
 
3107
if { (ac_try="$ac_compile"
 
3108
case "(($ac_try" in
 
3109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3110
  *) ac_try_echo=$ac_try;;
 
3111
esac
 
3112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3113
$as_echo "$ac_try_echo") >&5
 
3114
  (eval "$ac_compile") 2>conftest.er1
 
3115
  ac_status=$?
 
3116
  grep -v '^ *+' conftest.er1 >conftest.err
 
3117
  rm -f conftest.er1
 
3118
  cat conftest.err >&5
 
3119
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3120
  (exit $ac_status); } && {
 
3121
         test -z "$ac_c_werror_flag" ||
 
3122
         test ! -s conftest.err
 
3123
       } && test -s conftest.$ac_objext; then
 
3124
  ac_cv_prog_cc_g=yes
 
3125
else
 
3126
  $as_echo "$as_me: failed program was:" >&5
 
3127
sed 's/^/| /' conftest.$ac_ext >&5
 
3128
 
 
3129
        CFLAGS=""
 
3130
      cat >conftest.$ac_ext <<_ACEOF
 
3131
/* confdefs.h.  */
 
3132
_ACEOF
 
3133
cat confdefs.h >>conftest.$ac_ext
 
3134
cat >>conftest.$ac_ext <<_ACEOF
 
3135
/* end confdefs.h.  */
 
3136
 
 
3137
int
 
3138
main ()
 
3139
{
 
3140
 
 
3141
  ;
 
3142
  return 0;
 
3143
}
 
3144
_ACEOF
 
3145
rm -f conftest.$ac_objext
 
3146
if { (ac_try="$ac_compile"
 
3147
case "(($ac_try" in
 
3148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3149
  *) ac_try_echo=$ac_try;;
 
3150
esac
 
3151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3152
$as_echo "$ac_try_echo") >&5
 
3153
  (eval "$ac_compile") 2>conftest.er1
 
3154
  ac_status=$?
 
3155
  grep -v '^ *+' conftest.er1 >conftest.err
 
3156
  rm -f conftest.er1
 
3157
  cat conftest.err >&5
 
3158
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3159
  (exit $ac_status); } && {
 
3160
         test -z "$ac_c_werror_flag" ||
 
3161
         test ! -s conftest.err
 
3162
       } && test -s conftest.$ac_objext; then
 
3163
  :
 
3164
else
 
3165
  $as_echo "$as_me: failed program was:" >&5
 
3166
sed 's/^/| /' conftest.$ac_ext >&5
 
3167
 
 
3168
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3169
         CFLAGS="-g"
 
3170
         cat >conftest.$ac_ext <<_ACEOF
 
3171
/* confdefs.h.  */
 
3172
_ACEOF
 
3173
cat confdefs.h >>conftest.$ac_ext
 
3174
cat >>conftest.$ac_ext <<_ACEOF
 
3175
/* end confdefs.h.  */
 
3176
 
 
3177
int
 
3178
main ()
 
3179
{
 
3180
 
 
3181
  ;
 
3182
  return 0;
 
3183
}
 
3184
_ACEOF
 
3185
rm -f conftest.$ac_objext
 
3186
if { (ac_try="$ac_compile"
 
3187
case "(($ac_try" in
 
3188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3189
  *) ac_try_echo=$ac_try;;
 
3190
esac
 
3191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3192
$as_echo "$ac_try_echo") >&5
 
3193
  (eval "$ac_compile") 2>conftest.er1
 
3194
  ac_status=$?
 
3195
  grep -v '^ *+' conftest.er1 >conftest.err
 
3196
  rm -f conftest.er1
 
3197
  cat conftest.err >&5
 
3198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3199
  (exit $ac_status); } && {
 
3200
         test -z "$ac_c_werror_flag" ||
 
3201
         test ! -s conftest.err
 
3202
       } && test -s conftest.$ac_objext; then
 
3203
  ac_cv_prog_cc_g=yes
 
3204
else
 
3205
  $as_echo "$as_me: failed program was:" >&5
 
3206
sed 's/^/| /' conftest.$ac_ext >&5
 
3207
 
 
3208
 
 
3209
fi
 
3210
 
 
3211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3212
fi
 
3213
 
 
3214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3215
fi
 
3216
 
 
3217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3218
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3219
fi
 
3220
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3221
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3222
if test "$ac_test_CFLAGS" = set; then
 
3223
  CFLAGS=$ac_save_CFLAGS
 
3224
elif test $ac_cv_prog_cc_g = yes; then
 
3225
  if test "$GCC" = yes; then
 
3226
    CFLAGS="-g -O2"
 
3227
  else
 
3228
    CFLAGS="-g"
 
3229
  fi
 
3230
else
 
3231
  if test "$GCC" = yes; then
 
3232
    CFLAGS="-O2"
 
3233
  else
 
3234
    CFLAGS=
 
3235
  fi
 
3236
fi
 
3237
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3238
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3239
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3240
  $as_echo_n "(cached) " >&6
 
3241
else
 
3242
  ac_cv_prog_cc_c89=no
 
3243
ac_save_CC=$CC
 
3244
cat >conftest.$ac_ext <<_ACEOF
 
3245
/* confdefs.h.  */
 
3246
_ACEOF
 
3247
cat confdefs.h >>conftest.$ac_ext
 
3248
cat >>conftest.$ac_ext <<_ACEOF
 
3249
/* end confdefs.h.  */
 
3250
#include <stdarg.h>
 
3251
#include <stdio.h>
 
3252
#include <sys/types.h>
 
3253
#include <sys/stat.h>
 
3254
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3255
struct buf { int x; };
 
3256
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3257
static char *e (p, i)
 
3258
     char **p;
 
3259
     int i;
 
3260
{
 
3261
  return p[i];
 
3262
}
 
3263
static char *f (char * (*g) (char **, int), char **p, ...)
 
3264
{
 
3265
  char *s;
 
3266
  va_list v;
 
3267
  va_start (v,p);
 
3268
  s = g (p, va_arg (v,int));
 
3269
  va_end (v);
 
3270
  return s;
 
3271
}
 
3272
 
 
3273
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3274
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3275
   These don't provoke an error unfortunately, instead are silently treated
 
3276
   as 'x'.  The following induces an error, until -std is added to get
 
3277
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3278
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3279
   that's true only with -std.  */
 
3280
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3281
 
 
3282
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3283
   inside strings and character constants.  */
 
3284
#define FOO(x) 'x'
 
3285
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3286
 
 
3287
int test (int i, double x);
 
3288
struct s1 {int (*f) (int a);};
 
3289
struct s2 {int (*f) (double a);};
 
3290
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3291
int argc;
 
3292
char **argv;
 
3293
int
 
3294
main ()
 
3295
{
 
3296
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3297
  ;
 
3298
  return 0;
 
3299
}
 
3300
_ACEOF
 
3301
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3302
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3303
do
 
3304
  CC="$ac_save_CC $ac_arg"
 
3305
  rm -f conftest.$ac_objext
 
3306
if { (ac_try="$ac_compile"
 
3307
case "(($ac_try" in
 
3308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3309
  *) ac_try_echo=$ac_try;;
 
3310
esac
 
3311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3312
$as_echo "$ac_try_echo") >&5
 
3313
  (eval "$ac_compile") 2>conftest.er1
 
3314
  ac_status=$?
 
3315
  grep -v '^ *+' conftest.er1 >conftest.err
 
3316
  rm -f conftest.er1
 
3317
  cat conftest.err >&5
 
3318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3319
  (exit $ac_status); } && {
 
3320
         test -z "$ac_c_werror_flag" ||
 
3321
         test ! -s conftest.err
 
3322
       } && test -s conftest.$ac_objext; then
 
3323
  ac_cv_prog_cc_c89=$ac_arg
 
3324
else
 
3325
  $as_echo "$as_me: failed program was:" >&5
 
3326
sed 's/^/| /' conftest.$ac_ext >&5
 
3327
 
 
3328
 
 
3329
fi
 
3330
 
 
3331
rm -f core conftest.err conftest.$ac_objext
 
3332
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3333
done
 
3334
rm -f conftest.$ac_ext
 
3335
CC=$ac_save_CC
 
3336
 
 
3337
fi
 
3338
# AC_CACHE_VAL
 
3339
case "x$ac_cv_prog_cc_c89" in
 
3340
  x)
 
3341
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3342
$as_echo "none needed" >&6; } ;;
 
3343
  xno)
 
3344
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3345
$as_echo "unsupported" >&6; } ;;
 
3346
  *)
 
3347
    CC="$CC $ac_cv_prog_cc_c89"
 
3348
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3349
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3350
esac
 
3351
 
 
3352
 
 
3353
ac_ext=c
 
3354
ac_cpp='$CPP $CPPFLAGS'
 
3355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3358
 
 
3359
 
 
3360
ac_ext=c
 
3361
ac_cpp='$CPP $CPPFLAGS'
 
3362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3365
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3366
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3367
# On Suns, sometimes $CPP names a directory.
 
3368
if test -n "$CPP" && test -d "$CPP"; then
 
3369
  CPP=
 
3370
fi
 
3371
if test -z "$CPP"; then
 
3372
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3373
  $as_echo_n "(cached) " >&6
 
3374
else
 
3375
      # Double quotes because CPP needs to be expanded
 
3376
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3377
    do
 
3378
      ac_preproc_ok=false
 
3379
for ac_c_preproc_warn_flag in '' yes
 
3380
do
 
3381
  # Use a header file that comes with gcc, so configuring glibc
 
3382
  # with a fresh cross-compiler works.
 
3383
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3384
  # <limits.h> exists even on freestanding compilers.
 
3385
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3386
  # not just through cpp. "Syntax error" is here to catch this case.
 
3387
  cat >conftest.$ac_ext <<_ACEOF
 
3388
/* confdefs.h.  */
 
3389
_ACEOF
 
3390
cat confdefs.h >>conftest.$ac_ext
 
3391
cat >>conftest.$ac_ext <<_ACEOF
 
3392
/* end confdefs.h.  */
 
3393
#ifdef __STDC__
 
3394
# include <limits.h>
 
3395
#else
 
3396
# include <assert.h>
 
3397
#endif
 
3398
                     Syntax error
 
3399
_ACEOF
 
3400
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3401
case "(($ac_try" in
 
3402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3403
  *) ac_try_echo=$ac_try;;
 
3404
esac
 
3405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3406
$as_echo "$ac_try_echo") >&5
 
3407
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3408
  ac_status=$?
 
3409
  grep -v '^ *+' conftest.er1 >conftest.err
 
3410
  rm -f conftest.er1
 
3411
  cat conftest.err >&5
 
3412
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3413
  (exit $ac_status); } >/dev/null && {
 
3414
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3415
         test ! -s conftest.err
 
3416
       }; then
 
3417
  :
 
3418
else
 
3419
  $as_echo "$as_me: failed program was:" >&5
 
3420
sed 's/^/| /' conftest.$ac_ext >&5
 
3421
 
 
3422
  # Broken: fails on valid input.
 
3423
continue
 
3424
fi
 
3425
 
 
3426
rm -f conftest.err conftest.$ac_ext
 
3427
 
 
3428
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3429
  # can be detected and how.
 
3430
  cat >conftest.$ac_ext <<_ACEOF
 
3431
/* confdefs.h.  */
 
3432
_ACEOF
 
3433
cat confdefs.h >>conftest.$ac_ext
 
3434
cat >>conftest.$ac_ext <<_ACEOF
 
3435
/* end confdefs.h.  */
 
3436
#include <ac_nonexistent.h>
 
3437
_ACEOF
 
3438
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3439
case "(($ac_try" in
 
3440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3441
  *) ac_try_echo=$ac_try;;
 
3442
esac
 
3443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3444
$as_echo "$ac_try_echo") >&5
 
3445
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3446
  ac_status=$?
 
3447
  grep -v '^ *+' conftest.er1 >conftest.err
 
3448
  rm -f conftest.er1
 
3449
  cat conftest.err >&5
 
3450
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3451
  (exit $ac_status); } >/dev/null && {
 
3452
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3453
         test ! -s conftest.err
 
3454
       }; then
 
3455
  # Broken: success on invalid input.
 
3456
continue
 
3457
else
 
3458
  $as_echo "$as_me: failed program was:" >&5
 
3459
sed 's/^/| /' conftest.$ac_ext >&5
 
3460
 
 
3461
  # Passes both tests.
 
3462
ac_preproc_ok=:
 
3463
break
 
3464
fi
 
3465
 
 
3466
rm -f conftest.err conftest.$ac_ext
 
3467
 
 
3468
done
 
3469
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3470
rm -f conftest.err conftest.$ac_ext
 
3471
if $ac_preproc_ok; then
 
3472
  break
 
3473
fi
 
3474
 
 
3475
    done
 
3476
    ac_cv_prog_CPP=$CPP
 
3477
 
 
3478
fi
 
3479
  CPP=$ac_cv_prog_CPP
 
3480
else
 
3481
  ac_cv_prog_CPP=$CPP
 
3482
fi
 
3483
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
3484
$as_echo "$CPP" >&6; }
 
3485
ac_preproc_ok=false
 
3486
for ac_c_preproc_warn_flag in '' yes
 
3487
do
 
3488
  # Use a header file that comes with gcc, so configuring glibc
 
3489
  # with a fresh cross-compiler works.
 
3490
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3491
  # <limits.h> exists even on freestanding compilers.
 
3492
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3493
  # not just through cpp. "Syntax error" is here to catch this case.
 
3494
  cat >conftest.$ac_ext <<_ACEOF
 
3495
/* confdefs.h.  */
 
3496
_ACEOF
 
3497
cat confdefs.h >>conftest.$ac_ext
 
3498
cat >>conftest.$ac_ext <<_ACEOF
 
3499
/* end confdefs.h.  */
 
3500
#ifdef __STDC__
 
3501
# include <limits.h>
 
3502
#else
 
3503
# include <assert.h>
 
3504
#endif
 
3505
                     Syntax error
 
3506
_ACEOF
 
3507
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3508
case "(($ac_try" in
 
3509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3510
  *) ac_try_echo=$ac_try;;
 
3511
esac
 
3512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3513
$as_echo "$ac_try_echo") >&5
 
3514
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3515
  ac_status=$?
 
3516
  grep -v '^ *+' conftest.er1 >conftest.err
 
3517
  rm -f conftest.er1
 
3518
  cat conftest.err >&5
 
3519
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3520
  (exit $ac_status); } >/dev/null && {
 
3521
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3522
         test ! -s conftest.err
 
3523
       }; then
 
3524
  :
 
3525
else
 
3526
  $as_echo "$as_me: failed program was:" >&5
 
3527
sed 's/^/| /' conftest.$ac_ext >&5
 
3528
 
 
3529
  # Broken: fails on valid input.
 
3530
continue
 
3531
fi
 
3532
 
 
3533
rm -f conftest.err conftest.$ac_ext
 
3534
 
 
3535
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3536
  # can be detected and how.
 
3537
  cat >conftest.$ac_ext <<_ACEOF
 
3538
/* confdefs.h.  */
 
3539
_ACEOF
 
3540
cat confdefs.h >>conftest.$ac_ext
 
3541
cat >>conftest.$ac_ext <<_ACEOF
 
3542
/* end confdefs.h.  */
 
3543
#include <ac_nonexistent.h>
 
3544
_ACEOF
 
3545
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3546
case "(($ac_try" in
 
3547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3548
  *) ac_try_echo=$ac_try;;
 
3549
esac
 
3550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3551
$as_echo "$ac_try_echo") >&5
 
3552
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3553
  ac_status=$?
 
3554
  grep -v '^ *+' conftest.er1 >conftest.err
 
3555
  rm -f conftest.er1
 
3556
  cat conftest.err >&5
 
3557
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3558
  (exit $ac_status); } >/dev/null && {
 
3559
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3560
         test ! -s conftest.err
 
3561
       }; then
 
3562
  # Broken: success on invalid input.
 
3563
continue
 
3564
else
 
3565
  $as_echo "$as_me: failed program was:" >&5
 
3566
sed 's/^/| /' conftest.$ac_ext >&5
 
3567
 
 
3568
  # Passes both tests.
 
3569
ac_preproc_ok=:
 
3570
break
 
3571
fi
 
3572
 
 
3573
rm -f conftest.err conftest.$ac_ext
 
3574
 
 
3575
done
 
3576
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3577
rm -f conftest.err conftest.$ac_ext
 
3578
if $ac_preproc_ok; then
 
3579
  :
 
3580
else
 
3581
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3582
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3583
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3584
See \`config.log' for more details." >&5
 
3585
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3586
See \`config.log' for more details." >&2;}
 
3587
   { (exit 1); exit 1; }; }; }
 
3588
fi
 
3589
 
 
3590
ac_ext=c
 
3591
ac_cpp='$CPP $CPPFLAGS'
 
3592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3595
 
 
3596
 
 
3597
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3598
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3599
if test "${ac_cv_path_GREP+set}" = set; then
 
3600
  $as_echo_n "(cached) " >&6
 
3601
else
 
3602
  if test -z "$GREP"; then
 
3603
  ac_path_GREP_found=false
 
3604
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3605
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3606
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3607
do
 
3608
  IFS=$as_save_IFS
 
3609
  test -z "$as_dir" && as_dir=.
 
3610
  for ac_prog in grep ggrep; do
 
3611
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3612
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3613
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3614
# Check for GNU ac_path_GREP and select it if it is found.
 
3615
  # Check for GNU $ac_path_GREP
 
3616
case `"$ac_path_GREP" --version 2>&1` in
 
3617
*GNU*)
 
3618
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3619
*)
 
3620
  ac_count=0
 
3621
  $as_echo_n 0123456789 >"conftest.in"
 
3622
  while :
 
3623
  do
 
3624
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3625
    mv "conftest.tmp" "conftest.in"
 
3626
    cp "conftest.in" "conftest.nl"
 
3627
    $as_echo 'GREP' >> "conftest.nl"
 
3628
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3629
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3630
    ac_count=`expr $ac_count + 1`
 
3631
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3632
      # Best one so far, save it but keep looking for a better one
 
3633
      ac_cv_path_GREP="$ac_path_GREP"
 
3634
      ac_path_GREP_max=$ac_count
 
3635
    fi
 
3636
    # 10*(2^10) chars as input seems more than enough
 
3637
    test $ac_count -gt 10 && break
 
3638
  done
 
3639
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3640
esac
 
3641
 
 
3642
      $ac_path_GREP_found && break 3
 
3643
    done
 
3644
  done
 
3645
done
 
3646
IFS=$as_save_IFS
 
3647
  if test -z "$ac_cv_path_GREP"; then
 
3648
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3649
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3650
   { (exit 1); exit 1; }; }
 
3651
  fi
 
3652
else
 
3653
  ac_cv_path_GREP=$GREP
 
3654
fi
 
3655
 
 
3656
fi
 
3657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3658
$as_echo "$ac_cv_path_GREP" >&6; }
 
3659
 GREP="$ac_cv_path_GREP"
 
3660
 
 
3661
 
 
3662
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3663
$as_echo_n "checking for egrep... " >&6; }
 
3664
if test "${ac_cv_path_EGREP+set}" = set; then
 
3665
  $as_echo_n "(cached) " >&6
 
3666
else
 
3667
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3668
   then ac_cv_path_EGREP="$GREP -E"
 
3669
   else
 
3670
     if test -z "$EGREP"; then
 
3671
  ac_path_EGREP_found=false
 
3672
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3673
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3674
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3675
do
 
3676
  IFS=$as_save_IFS
 
3677
  test -z "$as_dir" && as_dir=.
 
3678
  for ac_prog in egrep; do
 
3679
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3680
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3681
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3682
# Check for GNU ac_path_EGREP and select it if it is found.
 
3683
  # Check for GNU $ac_path_EGREP
 
3684
case `"$ac_path_EGREP" --version 2>&1` in
 
3685
*GNU*)
 
3686
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3687
*)
 
3688
  ac_count=0
 
3689
  $as_echo_n 0123456789 >"conftest.in"
 
3690
  while :
 
3691
  do
 
3692
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3693
    mv "conftest.tmp" "conftest.in"
 
3694
    cp "conftest.in" "conftest.nl"
 
3695
    $as_echo 'EGREP' >> "conftest.nl"
 
3696
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3697
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3698
    ac_count=`expr $ac_count + 1`
 
3699
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3700
      # Best one so far, save it but keep looking for a better one
 
3701
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3702
      ac_path_EGREP_max=$ac_count
 
3703
    fi
 
3704
    # 10*(2^10) chars as input seems more than enough
 
3705
    test $ac_count -gt 10 && break
 
3706
  done
 
3707
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3708
esac
 
3709
 
 
3710
      $ac_path_EGREP_found && break 3
 
3711
    done
 
3712
  done
 
3713
done
 
3714
IFS=$as_save_IFS
 
3715
  if test -z "$ac_cv_path_EGREP"; then
 
3716
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3717
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3718
   { (exit 1); exit 1; }; }
 
3719
  fi
 
3720
else
 
3721
  ac_cv_path_EGREP=$EGREP
 
3722
fi
 
3723
 
 
3724
   fi
 
3725
fi
 
3726
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3727
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3728
 EGREP="$ac_cv_path_EGREP"
 
3729
 
 
3730
 
 
3731
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3732
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3733
if test "${ac_cv_header_stdc+set}" = set; then
 
3734
  $as_echo_n "(cached) " >&6
 
3735
else
 
3736
  cat >conftest.$ac_ext <<_ACEOF
 
3737
/* confdefs.h.  */
 
3738
_ACEOF
 
3739
cat confdefs.h >>conftest.$ac_ext
 
3740
cat >>conftest.$ac_ext <<_ACEOF
 
3741
/* end confdefs.h.  */
 
3742
#include <stdlib.h>
 
3743
#include <stdarg.h>
 
3744
#include <string.h>
 
3745
#include <float.h>
 
3746
 
 
3747
int
 
3748
main ()
 
3749
{
 
3750
 
 
3751
  ;
 
3752
  return 0;
 
3753
}
 
3754
_ACEOF
 
3755
rm -f conftest.$ac_objext
 
3756
if { (ac_try="$ac_compile"
 
3757
case "(($ac_try" in
 
3758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3759
  *) ac_try_echo=$ac_try;;
 
3760
esac
 
3761
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3762
$as_echo "$ac_try_echo") >&5
 
3763
  (eval "$ac_compile") 2>conftest.er1
 
3764
  ac_status=$?
 
3765
  grep -v '^ *+' conftest.er1 >conftest.err
 
3766
  rm -f conftest.er1
 
3767
  cat conftest.err >&5
 
3768
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3769
  (exit $ac_status); } && {
 
3770
         test -z "$ac_c_werror_flag" ||
 
3771
         test ! -s conftest.err
 
3772
       } && test -s conftest.$ac_objext; then
 
3773
  ac_cv_header_stdc=yes
 
3774
else
 
3775
  $as_echo "$as_me: failed program was:" >&5
 
3776
sed 's/^/| /' conftest.$ac_ext >&5
 
3777
 
 
3778
        ac_cv_header_stdc=no
 
3779
fi
 
3780
 
 
3781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3782
 
 
3783
if test $ac_cv_header_stdc = yes; then
 
3784
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3785
  cat >conftest.$ac_ext <<_ACEOF
 
3786
/* confdefs.h.  */
 
3787
_ACEOF
 
3788
cat confdefs.h >>conftest.$ac_ext
 
3789
cat >>conftest.$ac_ext <<_ACEOF
 
3790
/* end confdefs.h.  */
 
3791
#include <string.h>
 
3792
 
 
3793
_ACEOF
 
3794
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3795
  $EGREP "memchr" >/dev/null 2>&1; then
 
3796
  :
 
3797
else
 
3798
  ac_cv_header_stdc=no
 
3799
fi
 
3800
rm -f conftest*
 
3801
 
 
3802
fi
 
3803
 
 
3804
if test $ac_cv_header_stdc = yes; then
 
3805
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3806
  cat >conftest.$ac_ext <<_ACEOF
 
3807
/* confdefs.h.  */
 
3808
_ACEOF
 
3809
cat confdefs.h >>conftest.$ac_ext
 
3810
cat >>conftest.$ac_ext <<_ACEOF
 
3811
/* end confdefs.h.  */
 
3812
#include <stdlib.h>
 
3813
 
 
3814
_ACEOF
 
3815
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3816
  $EGREP "free" >/dev/null 2>&1; then
 
3817
  :
 
3818
else
 
3819
  ac_cv_header_stdc=no
 
3820
fi
 
3821
rm -f conftest*
 
3822
 
 
3823
fi
 
3824
 
 
3825
if test $ac_cv_header_stdc = yes; then
 
3826
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3827
  if test "$cross_compiling" = yes; then
 
3828
  :
 
3829
else
 
3830
  cat >conftest.$ac_ext <<_ACEOF
 
3831
/* confdefs.h.  */
 
3832
_ACEOF
 
3833
cat confdefs.h >>conftest.$ac_ext
 
3834
cat >>conftest.$ac_ext <<_ACEOF
 
3835
/* end confdefs.h.  */
 
3836
#include <ctype.h>
 
3837
#include <stdlib.h>
 
3838
#if ((' ' & 0x0FF) == 0x020)
 
3839
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3840
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3841
#else
 
3842
# define ISLOWER(c) \
 
3843
                   (('a' <= (c) && (c) <= 'i') \
 
3844
                     || ('j' <= (c) && (c) <= 'r') \
 
3845
                     || ('s' <= (c) && (c) <= 'z'))
 
3846
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3847
#endif
 
3848
 
 
3849
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3850
int
 
3851
main ()
 
3852
{
 
3853
  int i;
 
3854
  for (i = 0; i < 256; i++)
 
3855
    if (XOR (islower (i), ISLOWER (i))
 
3856
        || toupper (i) != TOUPPER (i))
 
3857
      return 2;
 
3858
  return 0;
 
3859
}
 
3860
_ACEOF
 
3861
rm -f conftest$ac_exeext
 
3862
if { (ac_try="$ac_link"
 
3863
case "(($ac_try" in
 
3864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3865
  *) ac_try_echo=$ac_try;;
 
3866
esac
 
3867
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3868
$as_echo "$ac_try_echo") >&5
 
3869
  (eval "$ac_link") 2>&5
 
3870
  ac_status=$?
 
3871
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3872
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3873
  { (case "(($ac_try" in
 
3874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3875
  *) ac_try_echo=$ac_try;;
 
3876
esac
 
3877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3878
$as_echo "$ac_try_echo") >&5
 
3879
  (eval "$ac_try") 2>&5
 
3880
  ac_status=$?
 
3881
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3882
  (exit $ac_status); }; }; then
 
3883
  :
 
3884
else
 
3885
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
3886
$as_echo "$as_me: failed program was:" >&5
 
3887
sed 's/^/| /' conftest.$ac_ext >&5
 
3888
 
 
3889
( exit $ac_status )
 
3890
ac_cv_header_stdc=no
 
3891
fi
 
3892
rm -rf conftest.dSYM
 
3893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3894
fi
 
3895
 
 
3896
 
 
3897
fi
 
3898
fi
 
3899
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3900
$as_echo "$ac_cv_header_stdc" >&6; }
 
3901
if test $ac_cv_header_stdc = yes; then
 
3902
 
 
3903
cat >>confdefs.h <<\_ACEOF
 
3904
#define STDC_HEADERS 1
 
3905
_ACEOF
 
3906
 
 
3907
fi
 
3908
 
 
3909
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3910
 
 
3911
 
 
3912
 
 
3913
 
 
3914
 
 
3915
 
 
3916
 
 
3917
 
 
3918
 
 
3919
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3920
                  inttypes.h stdint.h unistd.h
 
3921
do
 
3922
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3923
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3924
$as_echo_n "checking for $ac_header... " >&6; }
 
3925
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3926
  $as_echo_n "(cached) " >&6
 
3927
else
 
3928
  cat >conftest.$ac_ext <<_ACEOF
 
3929
/* confdefs.h.  */
 
3930
_ACEOF
 
3931
cat confdefs.h >>conftest.$ac_ext
 
3932
cat >>conftest.$ac_ext <<_ACEOF
 
3933
/* end confdefs.h.  */
 
3934
$ac_includes_default
 
3935
 
 
3936
#include <$ac_header>
 
3937
_ACEOF
 
3938
rm -f conftest.$ac_objext
 
3939
if { (ac_try="$ac_compile"
 
3940
case "(($ac_try" in
 
3941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3942
  *) ac_try_echo=$ac_try;;
 
3943
esac
 
3944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3945
$as_echo "$ac_try_echo") >&5
 
3946
  (eval "$ac_compile") 2>conftest.er1
 
3947
  ac_status=$?
 
3948
  grep -v '^ *+' conftest.er1 >conftest.err
 
3949
  rm -f conftest.er1
 
3950
  cat conftest.err >&5
 
3951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3952
  (exit $ac_status); } && {
 
3953
         test -z "$ac_c_werror_flag" ||
 
3954
         test ! -s conftest.err
 
3955
       } && test -s conftest.$ac_objext; then
 
3956
  eval "$as_ac_Header=yes"
 
3957
else
 
3958
  $as_echo "$as_me: failed program was:" >&5
 
3959
sed 's/^/| /' conftest.$ac_ext >&5
 
3960
 
 
3961
        eval "$as_ac_Header=no"
 
3962
fi
 
3963
 
 
3964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3965
fi
 
3966
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
3967
                 $as_echo "$as_val"'`
 
3968
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
3969
$as_echo "$ac_res" >&6; }
 
3970
as_val=`eval 'as_val=${'$as_ac_Header'}
 
3971
                 $as_echo "$as_val"'`
 
3972
   if test "x$as_val" = x""yes; then
 
3973
  cat >>confdefs.h <<_ACEOF
 
3974
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3975
_ACEOF
 
3976
 
 
3977
fi
 
3978
 
 
3979
done
 
3980
 
 
3981
 
 
3982
 
 
3983
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3984
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3985
$as_echo_n "checking for minix/config.h... " >&6; }
 
3986
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3987
  $as_echo_n "(cached) " >&6
 
3988
fi
 
3989
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3990
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
3991
else
 
3992
  # Is the header compilable?
 
3993
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3994
$as_echo_n "checking minix/config.h usability... " >&6; }
 
3995
cat >conftest.$ac_ext <<_ACEOF
 
3996
/* confdefs.h.  */
 
3997
_ACEOF
 
3998
cat confdefs.h >>conftest.$ac_ext
 
3999
cat >>conftest.$ac_ext <<_ACEOF
 
4000
/* end confdefs.h.  */
 
4001
$ac_includes_default
 
4002
#include <minix/config.h>
 
4003
_ACEOF
 
4004
rm -f conftest.$ac_objext
 
4005
if { (ac_try="$ac_compile"
 
4006
case "(($ac_try" in
 
4007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4008
  *) ac_try_echo=$ac_try;;
 
4009
esac
 
4010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4011
$as_echo "$ac_try_echo") >&5
 
4012
  (eval "$ac_compile") 2>conftest.er1
 
4013
  ac_status=$?
 
4014
  grep -v '^ *+' conftest.er1 >conftest.err
 
4015
  rm -f conftest.er1
 
4016
  cat conftest.err >&5
 
4017
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4018
  (exit $ac_status); } && {
 
4019
         test -z "$ac_c_werror_flag" ||
 
4020
         test ! -s conftest.err
 
4021
       } && test -s conftest.$ac_objext; then
 
4022
  ac_header_compiler=yes
 
4023
else
 
4024
  $as_echo "$as_me: failed program was:" >&5
 
4025
sed 's/^/| /' conftest.$ac_ext >&5
 
4026
 
 
4027
        ac_header_compiler=no
 
4028
fi
 
4029
 
 
4030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4031
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4032
$as_echo "$ac_header_compiler" >&6; }
 
4033
 
 
4034
# Is the header present?
 
4035
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4036
$as_echo_n "checking minix/config.h presence... " >&6; }
 
4037
cat >conftest.$ac_ext <<_ACEOF
 
4038
/* confdefs.h.  */
 
4039
_ACEOF
 
4040
cat confdefs.h >>conftest.$ac_ext
 
4041
cat >>conftest.$ac_ext <<_ACEOF
 
4042
/* end confdefs.h.  */
 
4043
#include <minix/config.h>
 
4044
_ACEOF
 
4045
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4046
case "(($ac_try" in
 
4047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4048
  *) ac_try_echo=$ac_try;;
 
4049
esac
 
4050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4051
$as_echo "$ac_try_echo") >&5
 
4052
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4053
  ac_status=$?
 
4054
  grep -v '^ *+' conftest.er1 >conftest.err
 
4055
  rm -f conftest.er1
 
4056
  cat conftest.err >&5
 
4057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4058
  (exit $ac_status); } >/dev/null && {
 
4059
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4060
         test ! -s conftest.err
 
4061
       }; then
 
4062
  ac_header_preproc=yes
 
4063
else
 
4064
  $as_echo "$as_me: failed program was:" >&5
 
4065
sed 's/^/| /' conftest.$ac_ext >&5
 
4066
 
 
4067
  ac_header_preproc=no
 
4068
fi
 
4069
 
 
4070
rm -f conftest.err conftest.$ac_ext
 
4071
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4072
$as_echo "$ac_header_preproc" >&6; }
 
4073
 
 
4074
# So?  What about this header?
 
4075
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4076
  yes:no: )
 
4077
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4078
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4079
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4080
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4081
    ac_header_preproc=yes
 
4082
    ;;
 
4083
  no:yes:* )
 
4084
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4085
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4086
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4087
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4088
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4089
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4090
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4091
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4092
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4093
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4094
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4095
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4096
 
 
4097
    ;;
 
4098
esac
 
4099
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4100
$as_echo_n "checking for minix/config.h... " >&6; }
 
4101
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4102
  $as_echo_n "(cached) " >&6
 
4103
else
 
4104
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4105
fi
 
4106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4107
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
4108
 
 
4109
fi
 
4110
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
4111
  MINIX=yes
 
4112
else
 
4113
  MINIX=
 
4114
fi
 
4115
 
 
4116
 
 
4117
  if test "$MINIX" = yes; then
 
4118
 
 
4119
cat >>confdefs.h <<\_ACEOF
 
4120
#define _POSIX_SOURCE 1
 
4121
_ACEOF
 
4122
 
 
4123
 
 
4124
cat >>confdefs.h <<\_ACEOF
 
4125
#define _POSIX_1_SOURCE 2
 
4126
_ACEOF
 
4127
 
 
4128
 
 
4129
cat >>confdefs.h <<\_ACEOF
 
4130
#define _MINIX 1
 
4131
_ACEOF
 
4132
 
 
4133
  fi
 
4134
 
 
4135
 
 
4136
 
 
4137
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4138
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4139
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4140
  $as_echo_n "(cached) " >&6
 
4141
else
 
4142
  cat >conftest.$ac_ext <<_ACEOF
 
4143
/* confdefs.h.  */
 
4144
_ACEOF
 
4145
cat confdefs.h >>conftest.$ac_ext
 
4146
cat >>conftest.$ac_ext <<_ACEOF
 
4147
/* end confdefs.h.  */
 
4148
 
 
4149
#         define __EXTENSIONS__ 1
 
4150
          $ac_includes_default
 
4151
int
 
4152
main ()
 
4153
{
 
4154
 
 
4155
  ;
 
4156
  return 0;
 
4157
}
 
4158
_ACEOF
 
4159
rm -f conftest.$ac_objext
 
4160
if { (ac_try="$ac_compile"
 
4161
case "(($ac_try" in
 
4162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4163
  *) ac_try_echo=$ac_try;;
 
4164
esac
 
4165
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4166
$as_echo "$ac_try_echo") >&5
 
4167
  (eval "$ac_compile") 2>conftest.er1
 
4168
  ac_status=$?
 
4169
  grep -v '^ *+' conftest.er1 >conftest.err
 
4170
  rm -f conftest.er1
 
4171
  cat conftest.err >&5
 
4172
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4173
  (exit $ac_status); } && {
 
4174
         test -z "$ac_c_werror_flag" ||
 
4175
         test ! -s conftest.err
 
4176
       } && test -s conftest.$ac_objext; then
 
4177
  ac_cv_safe_to_define___extensions__=yes
 
4178
else
 
4179
  $as_echo "$as_me: failed program was:" >&5
 
4180
sed 's/^/| /' conftest.$ac_ext >&5
 
4181
 
 
4182
        ac_cv_safe_to_define___extensions__=no
 
4183
fi
 
4184
 
 
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4186
fi
 
4187
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
4188
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4189
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4190
    cat >>confdefs.h <<\_ACEOF
 
4191
#define __EXTENSIONS__ 1
 
4192
_ACEOF
 
4193
 
 
4194
  cat >>confdefs.h <<\_ACEOF
 
4195
#define _ALL_SOURCE 1
 
4196
_ACEOF
 
4197
 
 
4198
  cat >>confdefs.h <<\_ACEOF
 
4199
#define _GNU_SOURCE 1
 
4200
_ACEOF
 
4201
 
 
4202
  cat >>confdefs.h <<\_ACEOF
 
4203
#define _POSIX_PTHREAD_SEMANTICS 1
 
4204
_ACEOF
 
4205
 
 
4206
  cat >>confdefs.h <<\_ACEOF
 
4207
#define _TANDEM_SOURCE 1
 
4208
_ACEOF
 
4209
 
 
4210
 
 
4211
am__api_version='1.11'
2361
4212
 
2362
4213
# Find a good install program.  We prefer a C program (faster),
2363
4214
# so one script is as good as another.  But avoid the broken or
2457
4308
# Just in case
2458
4309
sleep 1
2459
4310
echo timestamp > conftest.file
 
4311
# Reject unsafe characters in $srcdir or the absolute working directory
 
4312
# name.  Accept space and tab only in the latter.
 
4313
am_lf='
 
4314
'
 
4315
case `pwd` in
 
4316
  *[\\\"\#\$\&\'\`$am_lf]*)
 
4317
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
4318
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
4319
   { (exit 1); exit 1; }; };;
 
4320
esac
 
4321
case $srcdir in
 
4322
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
4323
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
4324
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
4325
   { (exit 1); exit 1; }; };;
 
4326
esac
 
4327
 
2460
4328
# Do `set' in a subshell so we don't clobber the current shell's
2461
4329
# arguments.  Must try -L first in case configure is actually a
2462
4330
# symlink; some systems play weird games with the mod time of symlinks
2463
4331
# (eg FreeBSD returns the mod time of the symlink's containing
2464
4332
# directory).
2465
4333
if (
2466
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
4334
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467
4335
   if test "$*" = "X"; then
2468
4336
      # -L didn't work.
2469
 
      set X `ls -t $srcdir/configure conftest.file`
 
4337
      set X `ls -t "$srcdir/configure" conftest.file`
2470
4338
   fi
2471
4339
   rm -f conftest.file
2472
4340
   if test "$*" != "X $srcdir/configure conftest.file" \
2510
4378
# expand $ac_aux_dir to an absolute path
2511
4379
am_aux_dir=`cd $ac_aux_dir && pwd`
2512
4380
 
2513
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
4381
if test x"${MISSING+set}" != xset; then
 
4382
  case $am_aux_dir in
 
4383
  *\ * | *\     *)
 
4384
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
4385
  *)
 
4386
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
4387
  esac
 
4388
fi
2514
4389
# Use eval to expand $SHELL
2515
4390
if eval "$MISSING --run true"; then
2516
4391
  am_missing_run="$MISSING --run "
2520
4395
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2521
4396
fi
2522
4397
 
 
4398
if test x"${install_sh}" != xset; then
 
4399
  case $am_aux_dir in
 
4400
  *\ * | *\     *)
 
4401
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
4402
  *)
 
4403
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
4404
  esac
 
4405
fi
 
4406
 
 
4407
# Installed binaries are usually stripped using `strip' when the user
 
4408
# run `make install-strip'.  However `strip' might not be the right
 
4409
# tool to use in cross-compilation environments, therefore Automake
 
4410
# will honor the `STRIP' environment variable to overrule this program.
 
4411
if test "$cross_compiling" != no; then
 
4412
  if test -n "$ac_tool_prefix"; then
 
4413
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4414
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4415
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4416
$as_echo_n "checking for $ac_word... " >&6; }
 
4417
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4418
  $as_echo_n "(cached) " >&6
 
4419
else
 
4420
  if test -n "$STRIP"; then
 
4421
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4422
else
 
4423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4424
for as_dir in $PATH
 
4425
do
 
4426
  IFS=$as_save_IFS
 
4427
  test -z "$as_dir" && as_dir=.
 
4428
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4429
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4430
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4431
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4432
    break 2
 
4433
  fi
 
4434
done
 
4435
done
 
4436
IFS=$as_save_IFS
 
4437
 
 
4438
fi
 
4439
fi
 
4440
STRIP=$ac_cv_prog_STRIP
 
4441
if test -n "$STRIP"; then
 
4442
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
4443
$as_echo "$STRIP" >&6; }
 
4444
else
 
4445
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4446
$as_echo "no" >&6; }
 
4447
fi
 
4448
 
 
4449
 
 
4450
fi
 
4451
if test -z "$ac_cv_prog_STRIP"; then
 
4452
  ac_ct_STRIP=$STRIP
 
4453
  # Extract the first word of "strip", so it can be a program name with args.
 
4454
set dummy strip; ac_word=$2
 
4455
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4456
$as_echo_n "checking for $ac_word... " >&6; }
 
4457
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4458
  $as_echo_n "(cached) " >&6
 
4459
else
 
4460
  if test -n "$ac_ct_STRIP"; then
 
4461
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4462
else
 
4463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4464
for as_dir in $PATH
 
4465
do
 
4466
  IFS=$as_save_IFS
 
4467
  test -z "$as_dir" && as_dir=.
 
4468
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4469
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4470
    ac_cv_prog_ac_ct_STRIP="strip"
 
4471
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4472
    break 2
 
4473
  fi
 
4474
done
 
4475
done
 
4476
IFS=$as_save_IFS
 
4477
 
 
4478
fi
 
4479
fi
 
4480
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4481
if test -n "$ac_ct_STRIP"; then
 
4482
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4483
$as_echo "$ac_ct_STRIP" >&6; }
 
4484
else
 
4485
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4486
$as_echo "no" >&6; }
 
4487
fi
 
4488
 
 
4489
  if test "x$ac_ct_STRIP" = x; then
 
4490
    STRIP=":"
 
4491
  else
 
4492
    case $cross_compiling:$ac_tool_warned in
 
4493
yes:)
 
4494
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4495
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4496
ac_tool_warned=yes ;;
 
4497
esac
 
4498
    STRIP=$ac_ct_STRIP
 
4499
  fi
 
4500
else
 
4501
  STRIP="$ac_cv_prog_STRIP"
 
4502
fi
 
4503
 
 
4504
fi
 
4505
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
4506
 
2523
4507
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2524
4508
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525
4509
if test -z "$MKDIR_P"; then
2650
4634
fi
2651
4635
rmdir .tst 2>/dev/null
2652
4636
 
2653
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2654
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2655
 
  # is not polluted with repeated "-I."
2656
 
  am__isrc=' -I$(srcdir)'
2657
 
  # test to see if srcdir already configured
2658
 
  if test -f $srcdir/config.status; then
2659
 
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2660
 
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2661
 
   { (exit 1); exit 1; }; }
2662
 
  fi
2663
 
fi
2664
 
 
2665
 
# test whether we have cygpath
2666
 
if test -z "$CYGPATH_W"; then
2667
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2668
 
    CYGPATH_W='cygpath -w'
2669
 
  else
2670
 
    CYGPATH_W=echo
2671
 
  fi
2672
 
fi
2673
 
 
2674
 
 
2675
 
# Define the identity of the package.
2676
 
 PACKAGE='rrdtool'
2677
 
 VERSION='1.3.8'
2678
 
 
2679
 
 
2680
 
cat >>confdefs.h <<_ACEOF
2681
 
#define PACKAGE "$PACKAGE"
2682
 
_ACEOF
2683
 
 
2684
 
 
2685
 
cat >>confdefs.h <<_ACEOF
2686
 
#define VERSION "$VERSION"
2687
 
_ACEOF
2688
 
 
2689
 
# Some tools Automake needs.
2690
 
 
2691
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2692
 
 
2693
 
 
2694
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2695
 
 
2696
 
 
2697
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2698
 
 
2699
 
 
2700
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2701
 
 
2702
 
 
2703
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2704
 
 
2705
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2706
 
 
2707
 
# Installed binaries are usually stripped using `strip' when the user
2708
 
# run `make install-strip'.  However `strip' might not be the right
2709
 
# tool to use in cross-compilation environments, therefore Automake
2710
 
# will honor the `STRIP' environment variable to overrule this program.
2711
 
if test "$cross_compiling" != no; then
2712
 
  if test -n "$ac_tool_prefix"; then
2713
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2714
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2715
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716
 
$as_echo_n "checking for $ac_word... " >&6; }
2717
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2718
 
  $as_echo_n "(cached) " >&6
2719
 
else
2720
 
  if test -n "$STRIP"; then
2721
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722
 
else
2723
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724
 
for as_dir in $PATH
2725
 
do
2726
 
  IFS=$as_save_IFS
2727
 
  test -z "$as_dir" && as_dir=.
2728
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2729
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2731
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732
 
    break 2
2733
 
  fi
2734
 
done
2735
 
done
2736
 
IFS=$as_save_IFS
2737
 
 
2738
 
fi
2739
 
fi
2740
 
STRIP=$ac_cv_prog_STRIP
2741
 
if test -n "$STRIP"; then
2742
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2743
 
$as_echo "$STRIP" >&6; }
2744
 
else
2745
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2746
 
$as_echo "no" >&6; }
2747
 
fi
2748
 
 
2749
 
 
2750
 
fi
2751
 
if test -z "$ac_cv_prog_STRIP"; then
2752
 
  ac_ct_STRIP=$STRIP
2753
 
  # Extract the first word of "strip", so it can be a program name with args.
2754
 
set dummy strip; ac_word=$2
2755
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756
 
$as_echo_n "checking for $ac_word... " >&6; }
2757
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2758
 
  $as_echo_n "(cached) " >&6
2759
 
else
2760
 
  if test -n "$ac_ct_STRIP"; then
2761
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762
 
else
2763
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764
 
for as_dir in $PATH
2765
 
do
2766
 
  IFS=$as_save_IFS
2767
 
  test -z "$as_dir" && as_dir=.
2768
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2769
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770
 
    ac_cv_prog_ac_ct_STRIP="strip"
2771
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772
 
    break 2
2773
 
  fi
2774
 
done
2775
 
done
2776
 
IFS=$as_save_IFS
2777
 
 
2778
 
fi
2779
 
fi
2780
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781
 
if test -n "$ac_ct_STRIP"; then
2782
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2783
 
$as_echo "$ac_ct_STRIP" >&6; }
2784
 
else
2785
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2786
 
$as_echo "no" >&6; }
2787
 
fi
2788
 
 
2789
 
  if test "x$ac_ct_STRIP" = x; then
2790
 
    STRIP=":"
2791
 
  else
2792
 
    case $cross_compiling:$ac_tool_warned in
2793
 
yes:)
2794
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2795
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796
 
ac_tool_warned=yes ;;
2797
 
esac
2798
 
    STRIP=$ac_ct_STRIP
2799
 
  fi
2800
 
else
2801
 
  STRIP="$ac_cv_prog_STRIP"
2802
 
fi
2803
 
 
2804
 
fi
2805
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2806
 
 
2807
 
# We need awk for the "check" target.  The system "awk" is bad on
2808
 
# some platforms.
2809
 
# Always define AMTAR for backward compatibility.
2810
 
 
2811
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2812
 
 
2813
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2814
 
 
2815
 
 
2816
 
 
2817
 
 
2818
 
 
2819
 
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821
 
    # Check whether --enable-maintainer-mode was given.
2822
 
if test "${enable_maintainer_mode+set}" = set; then
2823
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824
 
else
2825
 
  USE_MAINTAINER_MODE=no
2826
 
fi
2827
 
 
2828
 
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2829
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2830
 
   if test $USE_MAINTAINER_MODE = yes; then
2831
 
  MAINTAINER_MODE_TRUE=
2832
 
  MAINTAINER_MODE_FALSE='#'
2833
 
else
2834
 
  MAINTAINER_MODE_TRUE='#'
2835
 
  MAINTAINER_MODE_FALSE=
2836
 
fi
2837
 
 
2838
 
  MAINT=$MAINTAINER_MODE_TRUE
2839
 
 
2840
 
 
2841
 
 
2842
 
 
2843
 
ac_config_headers="$ac_config_headers rrd_config.h"
2844
 
 
2845
 
 
2846
 
 
2847
 
 
2848
 
 
2849
 
 
2850
 
 
2851
 
 
2852
 
 
2853
 
 
2854
 
 
2855
 
 
2856
 
 
2857
 
 
2858
 
 
2859
 
 
2860
 
 
2861
 
 
2862
 
 
2863
 
 
2864
 
 
2865
 
cat >>confdefs.h <<_ACEOF
2866
 
#define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2867
 
_ACEOF
2868
 
 
2869
 
 
2870
 
# Check whether --enable-rrdcgi was given.
2871
 
if test "${enable_rrdcgi+set}" = set; then
2872
 
  enableval=$enable_rrdcgi;
2873
 
else
2874
 
  enable_rrdcgi=yes
2875
 
fi
2876
 
 
2877
 
 
2878
 
 
2879
 
# Check whether --with-rrd-default-font was given.
2880
 
if test "${with_rrd_default_font+set}" = set; then
2881
 
  withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2882
 
else
2883
 
 
2884
 
  if test -d ${WINDIR:-nodir}/cour.ttf ; then
2885
 
        RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2886
 
  else
2887
 
        RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2888
 
  fi
2889
 
 
2890
 
fi
2891
 
 
2892
 
 
2893
 
# Check whether --enable-mmap was given.
2894
 
if test "${enable_mmap+set}" = set; then
2895
 
  enableval=$enable_mmap;
2896
 
else
2897
 
  enable_mmap=yes
2898
 
fi
2899
 
 
2900
 
 
2901
 
# Check whether --enable-pthread was given.
2902
 
if test "${enable_pthread+set}" = set; then
2903
 
  enableval=$enable_pthread;
2904
 
else
2905
 
  enable_pthread=yes
2906
 
fi
2907
 
 
2908
 
 
2909
 
# Check whether --enable-static-programs was given.
2910
 
if test "${enable_static_programs+set}" = set; then
2911
 
  enableval=$enable_static_programs; case "${enableval}" in
2912
 
       yes) staticprogs=yes ;;
2913
 
       no)  staticprogs=no ;;
2914
 
       *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2915
 
$as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2916
 
   { (exit 1); exit 1; }; } ;;
2917
 
     esac
2918
 
else
2919
 
  staticprogs=no
2920
 
fi
2921
 
 
2922
 
 if test "x$staticprogs" = "xyes"; then
2923
 
  STATIC_PROGRAMS_TRUE=
2924
 
  STATIC_PROGRAMS_FALSE='#'
2925
 
else
2926
 
  STATIC_PROGRAMS_TRUE='#'
2927
 
  STATIC_PROGRAMS_FALSE=
2928
 
fi
2929
 
 
2930
 
 
2931
 
 
2932
 
 
2933
 
case $TERM in
2934
 
       #   for the most important terminal types we directly know the sequences
2935
 
       xterm|xterm*|vt220|vt220*)
2936
 
               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2937
 
               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2938
 
       ;;
2939
 
       vt100|vt100*|cygwin)
2940
 
               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2941
 
               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2942
 
       ;;
2943
 
       *)
2944
 
               T_MD=''
2945
 
               T_ME=''
2946
 
       ;;
2947
 
esac
2948
 
  { $as_echo "$as_me:$LINENO: result: " >&5
2949
 
$as_echo "" >&6; }
2950
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2951
 
$as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2952
 
 
2953
 
 
2954
 
 
2955
 
ac_ext=c
2956
 
ac_cpp='$CPP $CPPFLAGS'
2957
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
 
if test -n "$ac_tool_prefix"; then
2961
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964
 
$as_echo_n "checking for $ac_word... " >&6; }
2965
 
if test "${ac_cv_prog_CC+set}" = set; then
2966
 
  $as_echo_n "(cached) " >&6
2967
 
else
2968
 
  if test -n "$CC"; then
2969
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2970
 
else
2971
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972
 
for as_dir in $PATH
2973
 
do
2974
 
  IFS=$as_save_IFS
2975
 
  test -z "$as_dir" && as_dir=.
2976
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2977
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980
 
    break 2
2981
 
  fi
2982
 
done
2983
 
done
2984
 
IFS=$as_save_IFS
2985
 
 
2986
 
fi
2987
 
fi
2988
 
CC=$ac_cv_prog_CC
2989
 
if test -n "$CC"; then
2990
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2991
 
$as_echo "$CC" >&6; }
2992
 
else
2993
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2994
 
$as_echo "no" >&6; }
2995
 
fi
2996
 
 
2997
 
 
2998
 
fi
2999
 
if test -z "$ac_cv_prog_CC"; then
3000
 
  ac_ct_CC=$CC
3001
 
  # Extract the first word of "gcc", so it can be a program name with args.
3002
 
set dummy gcc; ac_word=$2
3003
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3004
 
$as_echo_n "checking for $ac_word... " >&6; }
3005
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3006
 
  $as_echo_n "(cached) " >&6
3007
 
else
3008
 
  if test -n "$ac_ct_CC"; then
3009
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010
 
else
3011
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012
 
for as_dir in $PATH
3013
 
do
3014
 
  IFS=$as_save_IFS
3015
 
  test -z "$as_dir" && as_dir=.
3016
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3017
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018
 
    ac_cv_prog_ac_ct_CC="gcc"
3019
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020
 
    break 2
3021
 
  fi
3022
 
done
3023
 
done
3024
 
IFS=$as_save_IFS
3025
 
 
3026
 
fi
3027
 
fi
3028
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029
 
if test -n "$ac_ct_CC"; then
3030
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3031
 
$as_echo "$ac_ct_CC" >&6; }
3032
 
else
3033
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3034
 
$as_echo "no" >&6; }
3035
 
fi
3036
 
 
3037
 
  if test "x$ac_ct_CC" = x; then
3038
 
    CC=""
3039
 
  else
3040
 
    case $cross_compiling:$ac_tool_warned in
3041
 
yes:)
3042
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3043
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044
 
ac_tool_warned=yes ;;
3045
 
esac
3046
 
    CC=$ac_ct_CC
3047
 
  fi
3048
 
else
3049
 
  CC="$ac_cv_prog_CC"
3050
 
fi
3051
 
 
3052
 
if test -z "$CC"; then
3053
 
          if test -n "$ac_tool_prefix"; then
3054
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3056
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3057
 
$as_echo_n "checking for $ac_word... " >&6; }
3058
 
if test "${ac_cv_prog_CC+set}" = set; then
3059
 
  $as_echo_n "(cached) " >&6
3060
 
else
3061
 
  if test -n "$CC"; then
3062
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3063
 
else
3064
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065
 
for as_dir in $PATH
3066
 
do
3067
 
  IFS=$as_save_IFS
3068
 
  test -z "$as_dir" && as_dir=.
3069
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3070
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3072
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073
 
    break 2
3074
 
  fi
3075
 
done
3076
 
done
3077
 
IFS=$as_save_IFS
3078
 
 
3079
 
fi
3080
 
fi
3081
 
CC=$ac_cv_prog_CC
3082
 
if test -n "$CC"; then
3083
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3084
 
$as_echo "$CC" >&6; }
3085
 
else
3086
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3087
 
$as_echo "no" >&6; }
3088
 
fi
3089
 
 
3090
 
 
3091
 
  fi
3092
 
fi
3093
 
if test -z "$CC"; then
3094
 
  # Extract the first word of "cc", so it can be a program name with args.
3095
 
set dummy cc; ac_word=$2
3096
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3097
 
$as_echo_n "checking for $ac_word... " >&6; }
3098
 
if test "${ac_cv_prog_CC+set}" = set; then
3099
 
  $as_echo_n "(cached) " >&6
3100
 
else
3101
 
  if test -n "$CC"; then
3102
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3103
 
else
3104
 
  ac_prog_rejected=no
3105
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106
 
for as_dir in $PATH
3107
 
do
3108
 
  IFS=$as_save_IFS
3109
 
  test -z "$as_dir" && as_dir=.
3110
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3111
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113
 
       ac_prog_rejected=yes
3114
 
       continue
3115
 
     fi
3116
 
    ac_cv_prog_CC="cc"
3117
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118
 
    break 2
3119
 
  fi
3120
 
done
3121
 
done
3122
 
IFS=$as_save_IFS
3123
 
 
3124
 
if test $ac_prog_rejected = yes; then
3125
 
  # We found a bogon in the path, so make sure we never use it.
3126
 
  set dummy $ac_cv_prog_CC
3127
 
  shift
3128
 
  if test $# != 0; then
3129
 
    # We chose a different compiler from the bogus one.
3130
 
    # However, it has the same basename, so the bogon will be chosen
3131
 
    # first if we set CC to just the basename; use the full file name.
3132
 
    shift
3133
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134
 
  fi
3135
 
fi
3136
 
fi
3137
 
fi
3138
 
CC=$ac_cv_prog_CC
3139
 
if test -n "$CC"; then
3140
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3141
 
$as_echo "$CC" >&6; }
3142
 
else
3143
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3144
 
$as_echo "no" >&6; }
3145
 
fi
3146
 
 
3147
 
 
3148
 
fi
3149
 
if test -z "$CC"; then
3150
 
  if test -n "$ac_tool_prefix"; then
3151
 
  for ac_prog in cl.exe
3152
 
  do
3153
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3156
 
$as_echo_n "checking for $ac_word... " >&6; }
3157
 
if test "${ac_cv_prog_CC+set}" = set; then
3158
 
  $as_echo_n "(cached) " >&6
3159
 
else
3160
 
  if test -n "$CC"; then
3161
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3162
 
else
3163
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
 
for as_dir in $PATH
3165
 
do
3166
 
  IFS=$as_save_IFS
3167
 
  test -z "$as_dir" && as_dir=.
3168
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3169
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172
 
    break 2
3173
 
  fi
3174
 
done
3175
 
done
3176
 
IFS=$as_save_IFS
3177
 
 
3178
 
fi
3179
 
fi
3180
 
CC=$ac_cv_prog_CC
3181
 
if test -n "$CC"; then
3182
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183
 
$as_echo "$CC" >&6; }
3184
 
else
3185
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3186
 
$as_echo "no" >&6; }
3187
 
fi
3188
 
 
3189
 
 
3190
 
    test -n "$CC" && break
3191
 
  done
3192
 
fi
3193
 
if test -z "$CC"; then
3194
 
  ac_ct_CC=$CC
3195
 
  for ac_prog in cl.exe
3196
 
do
3197
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3198
 
set dummy $ac_prog; ac_word=$2
3199
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3200
 
$as_echo_n "checking for $ac_word... " >&6; }
3201
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3202
 
  $as_echo_n "(cached) " >&6
3203
 
else
3204
 
  if test -n "$ac_ct_CC"; then
3205
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206
 
else
3207
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208
 
for as_dir in $PATH
3209
 
do
3210
 
  IFS=$as_save_IFS
3211
 
  test -z "$as_dir" && as_dir=.
3212
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3213
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3215
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216
 
    break 2
3217
 
  fi
3218
 
done
3219
 
done
3220
 
IFS=$as_save_IFS
3221
 
 
3222
 
fi
3223
 
fi
3224
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225
 
if test -n "$ac_ct_CC"; then
3226
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227
 
$as_echo "$ac_ct_CC" >&6; }
3228
 
else
3229
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3230
 
$as_echo "no" >&6; }
3231
 
fi
3232
 
 
3233
 
 
3234
 
  test -n "$ac_ct_CC" && break
3235
 
done
3236
 
 
3237
 
  if test "x$ac_ct_CC" = x; then
3238
 
    CC=""
3239
 
  else
3240
 
    case $cross_compiling:$ac_tool_warned in
3241
 
yes:)
3242
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3243
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244
 
ac_tool_warned=yes ;;
3245
 
esac
3246
 
    CC=$ac_ct_CC
3247
 
  fi
3248
 
fi
3249
 
 
3250
 
fi
3251
 
 
3252
 
 
3253
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3254
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3256
 
See \`config.log' for more details." >&5
3257
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3258
 
See \`config.log' for more details." >&2;}
3259
 
   { (exit 1); exit 1; }; }; }
3260
 
 
3261
 
# Provide some information about the compiler.
3262
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3263
 
set X $ac_compile
3264
 
ac_compiler=$2
3265
 
{ (ac_try="$ac_compiler --version >&5"
3266
 
case "(($ac_try" in
3267
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
 
  *) ac_try_echo=$ac_try;;
3269
 
esac
3270
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271
 
$as_echo "$ac_try_echo") >&5
3272
 
  (eval "$ac_compiler --version >&5") 2>&5
3273
 
  ac_status=$?
3274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275
 
  (exit $ac_status); }
3276
 
{ (ac_try="$ac_compiler -v >&5"
3277
 
case "(($ac_try" in
3278
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279
 
  *) ac_try_echo=$ac_try;;
3280
 
esac
3281
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282
 
$as_echo "$ac_try_echo") >&5
3283
 
  (eval "$ac_compiler -v >&5") 2>&5
3284
 
  ac_status=$?
3285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
 
  (exit $ac_status); }
3287
 
{ (ac_try="$ac_compiler -V >&5"
3288
 
case "(($ac_try" in
3289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290
 
  *) ac_try_echo=$ac_try;;
3291
 
esac
3292
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293
 
$as_echo "$ac_try_echo") >&5
3294
 
  (eval "$ac_compiler -V >&5") 2>&5
3295
 
  ac_status=$?
3296
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
 
  (exit $ac_status); }
3298
 
 
3299
 
cat >conftest.$ac_ext <<_ACEOF
3300
 
/* confdefs.h.  */
3301
 
_ACEOF
3302
 
cat confdefs.h >>conftest.$ac_ext
3303
 
cat >>conftest.$ac_ext <<_ACEOF
3304
 
/* end confdefs.h.  */
3305
 
 
3306
 
int
3307
 
main ()
3308
 
{
3309
 
 
3310
 
  ;
3311
 
  return 0;
3312
 
}
3313
 
_ACEOF
3314
 
ac_clean_files_save=$ac_clean_files
3315
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3316
 
# Try to create an executable without -o first, disregard a.out.
3317
 
# It will help us diagnose broken compilers, and finding out an intuition
3318
 
# of exeext.
3319
 
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3320
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3321
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3322
 
 
3323
 
# The possible output files:
3324
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3325
 
 
3326
 
ac_rmfiles=
3327
 
for ac_file in $ac_files
3328
 
do
3329
 
  case $ac_file in
3330
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3332
 
  esac
3333
 
done
3334
 
rm -f $ac_rmfiles
3335
 
 
3336
 
if { (ac_try="$ac_link_default"
3337
 
case "(($ac_try" in
3338
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339
 
  *) ac_try_echo=$ac_try;;
3340
 
esac
3341
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3342
 
$as_echo "$ac_try_echo") >&5
3343
 
  (eval "$ac_link_default") 2>&5
3344
 
  ac_status=$?
3345
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346
 
  (exit $ac_status); }; then
3347
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3348
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3349
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3350
 
# so that the user can short-circuit this test for compilers unknown to
3351
 
# Autoconf.
3352
 
for ac_file in $ac_files ''
3353
 
do
3354
 
  test -f "$ac_file" || continue
3355
 
  case $ac_file in
3356
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3357
 
        ;;
3358
 
    [ab].out )
3359
 
        # We found the default executable, but exeext='' is most
3360
 
        # certainly right.
3361
 
        break;;
3362
 
    *.* )
3363
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3364
 
        then :; else
3365
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366
 
        fi
3367
 
        # We set ac_cv_exeext here because the later test for it is not
3368
 
        # safe: cross compilers may not add the suffix if given an `-o'
3369
 
        # argument, so we may need to know it at that point already.
3370
 
        # Even if this section looks crufty: it has the advantage of
3371
 
        # actually working.
3372
 
        break;;
3373
 
    * )
3374
 
        break;;
3375
 
  esac
3376
 
done
3377
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3378
 
 
3379
 
else
3380
 
  ac_file=''
3381
 
fi
3382
 
 
3383
 
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3384
 
$as_echo "$ac_file" >&6; }
3385
 
if test -z "$ac_file"; then
3386
 
  $as_echo "$as_me: failed program was:" >&5
3387
 
sed 's/^/| /' conftest.$ac_ext >&5
3388
 
 
3389
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3390
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391
 
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3392
 
See \`config.log' for more details." >&5
3393
 
$as_echo "$as_me: error: C compiler cannot create executables
3394
 
See \`config.log' for more details." >&2;}
3395
 
   { (exit 77); exit 77; }; }; }
3396
 
fi
3397
 
 
3398
 
ac_exeext=$ac_cv_exeext
3399
 
 
3400
 
# Check that the compiler produces executables we can run.  If not, either
3401
 
# the compiler is broken, or we cross compile.
3402
 
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3403
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3404
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3405
 
# If not cross compiling, check that we can run a simple program.
3406
 
if test "$cross_compiling" != yes; then
3407
 
  if { ac_try='./$ac_file'
3408
 
  { (case "(($ac_try" in
3409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410
 
  *) ac_try_echo=$ac_try;;
3411
 
esac
3412
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413
 
$as_echo "$ac_try_echo") >&5
3414
 
  (eval "$ac_try") 2>&5
3415
 
  ac_status=$?
3416
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417
 
  (exit $ac_status); }; }; then
3418
 
    cross_compiling=no
3419
 
  else
3420
 
    if test "$cross_compiling" = maybe; then
3421
 
        cross_compiling=yes
3422
 
    else
3423
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3424
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425
 
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3426
 
If you meant to cross compile, use \`--host'.
3427
 
See \`config.log' for more details." >&5
3428
 
$as_echo "$as_me: error: cannot run C compiled programs.
3429
 
If you meant to cross compile, use \`--host'.
3430
 
See \`config.log' for more details." >&2;}
3431
 
   { (exit 1); exit 1; }; }; }
3432
 
    fi
3433
 
  fi
3434
 
fi
3435
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3436
 
$as_echo "yes" >&6; }
3437
 
 
3438
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439
 
ac_clean_files=$ac_clean_files_save
3440
 
# Check that the compiler produces executables we can run.  If not, either
3441
 
# the compiler is broken, or we cross compile.
3442
 
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3443
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3444
 
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3445
 
$as_echo "$cross_compiling" >&6; }
3446
 
 
3447
 
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3448
 
$as_echo_n "checking for suffix of executables... " >&6; }
3449
 
if { (ac_try="$ac_link"
3450
 
case "(($ac_try" in
3451
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452
 
  *) ac_try_echo=$ac_try;;
3453
 
esac
3454
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455
 
$as_echo "$ac_try_echo") >&5
3456
 
  (eval "$ac_link") 2>&5
3457
 
  ac_status=$?
3458
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459
 
  (exit $ac_status); }; then
3460
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3461
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3462
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3463
 
# `rm'.
3464
 
for ac_file in conftest.exe conftest conftest.*; do
3465
 
  test -f "$ac_file" || continue
3466
 
  case $ac_file in
3467
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469
 
          break;;
3470
 
    * ) break;;
3471
 
  esac
3472
 
done
3473
 
else
3474
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3475
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3477
 
See \`config.log' for more details." >&5
3478
 
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3479
 
See \`config.log' for more details." >&2;}
3480
 
   { (exit 1); exit 1; }; }; }
3481
 
fi
3482
 
 
3483
 
rm -f conftest$ac_cv_exeext
3484
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3485
 
$as_echo "$ac_cv_exeext" >&6; }
3486
 
 
3487
 
rm -f conftest.$ac_ext
3488
 
EXEEXT=$ac_cv_exeext
3489
 
ac_exeext=$EXEEXT
3490
 
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3491
 
$as_echo_n "checking for suffix of object files... " >&6; }
3492
 
if test "${ac_cv_objext+set}" = set; then
3493
 
  $as_echo_n "(cached) " >&6
3494
 
else
3495
 
  cat >conftest.$ac_ext <<_ACEOF
3496
 
/* confdefs.h.  */
3497
 
_ACEOF
3498
 
cat confdefs.h >>conftest.$ac_ext
3499
 
cat >>conftest.$ac_ext <<_ACEOF
3500
 
/* end confdefs.h.  */
3501
 
 
3502
 
int
3503
 
main ()
3504
 
{
3505
 
 
3506
 
  ;
3507
 
  return 0;
3508
 
}
3509
 
_ACEOF
3510
 
rm -f conftest.o conftest.obj
3511
 
if { (ac_try="$ac_compile"
3512
 
case "(($ac_try" in
3513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514
 
  *) ac_try_echo=$ac_try;;
3515
 
esac
3516
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517
 
$as_echo "$ac_try_echo") >&5
3518
 
  (eval "$ac_compile") 2>&5
3519
 
  ac_status=$?
3520
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
 
  (exit $ac_status); }; then
3522
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3523
 
  test -f "$ac_file" || continue;
3524
 
  case $ac_file in
3525
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3526
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3527
 
       break;;
3528
 
  esac
3529
 
done
3530
 
else
3531
 
  $as_echo "$as_me: failed program was:" >&5
3532
 
sed 's/^/| /' conftest.$ac_ext >&5
3533
 
 
3534
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3535
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3537
 
See \`config.log' for more details." >&5
3538
 
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3539
 
See \`config.log' for more details." >&2;}
3540
 
   { (exit 1); exit 1; }; }; }
3541
 
fi
3542
 
 
3543
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544
 
fi
3545
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3546
 
$as_echo "$ac_cv_objext" >&6; }
3547
 
OBJEXT=$ac_cv_objext
3548
 
ac_objext=$OBJEXT
3549
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3550
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3552
 
  $as_echo_n "(cached) " >&6
3553
 
else
3554
 
  cat >conftest.$ac_ext <<_ACEOF
3555
 
/* confdefs.h.  */
3556
 
_ACEOF
3557
 
cat confdefs.h >>conftest.$ac_ext
3558
 
cat >>conftest.$ac_ext <<_ACEOF
3559
 
/* end confdefs.h.  */
3560
 
 
3561
 
int
3562
 
main ()
3563
 
{
3564
 
#ifndef __GNUC__
3565
 
       choke me
3566
 
#endif
3567
 
 
3568
 
  ;
3569
 
  return 0;
3570
 
}
3571
 
_ACEOF
3572
 
rm -f conftest.$ac_objext
3573
 
if { (ac_try="$ac_compile"
3574
 
case "(($ac_try" in
3575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576
 
  *) ac_try_echo=$ac_try;;
3577
 
esac
3578
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3579
 
$as_echo "$ac_try_echo") >&5
3580
 
  (eval "$ac_compile") 2>conftest.er1
3581
 
  ac_status=$?
3582
 
  grep -v '^ *+' conftest.er1 >conftest.err
3583
 
  rm -f conftest.er1
3584
 
  cat conftest.err >&5
3585
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586
 
  (exit $ac_status); } && {
3587
 
         test -z "$ac_c_werror_flag" ||
3588
 
         test ! -s conftest.err
3589
 
       } && test -s conftest.$ac_objext; then
3590
 
  ac_compiler_gnu=yes
3591
 
else
3592
 
  $as_echo "$as_me: failed program was:" >&5
3593
 
sed 's/^/| /' conftest.$ac_ext >&5
3594
 
 
3595
 
        ac_compiler_gnu=no
3596
 
fi
3597
 
 
3598
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600
 
 
3601
 
fi
3602
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3603
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604
 
if test $ac_compiler_gnu = yes; then
3605
 
  GCC=yes
3606
 
else
3607
 
  GCC=
3608
 
fi
3609
 
ac_test_CFLAGS=${CFLAGS+set}
3610
 
ac_save_CFLAGS=$CFLAGS
3611
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3612
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3613
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3614
 
  $as_echo_n "(cached) " >&6
3615
 
else
3616
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3617
 
   ac_c_werror_flag=yes
3618
 
   ac_cv_prog_cc_g=no
3619
 
   CFLAGS="-g"
3620
 
   cat >conftest.$ac_ext <<_ACEOF
3621
 
/* confdefs.h.  */
3622
 
_ACEOF
3623
 
cat confdefs.h >>conftest.$ac_ext
3624
 
cat >>conftest.$ac_ext <<_ACEOF
3625
 
/* end confdefs.h.  */
3626
 
 
3627
 
int
3628
 
main ()
3629
 
{
3630
 
 
3631
 
  ;
3632
 
  return 0;
3633
 
}
3634
 
_ACEOF
3635
 
rm -f conftest.$ac_objext
3636
 
if { (ac_try="$ac_compile"
3637
 
case "(($ac_try" in
3638
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639
 
  *) ac_try_echo=$ac_try;;
3640
 
esac
3641
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642
 
$as_echo "$ac_try_echo") >&5
3643
 
  (eval "$ac_compile") 2>conftest.er1
3644
 
  ac_status=$?
3645
 
  grep -v '^ *+' conftest.er1 >conftest.err
3646
 
  rm -f conftest.er1
3647
 
  cat conftest.err >&5
3648
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
 
  (exit $ac_status); } && {
3650
 
         test -z "$ac_c_werror_flag" ||
3651
 
         test ! -s conftest.err
3652
 
       } && test -s conftest.$ac_objext; then
3653
 
  ac_cv_prog_cc_g=yes
3654
 
else
3655
 
  $as_echo "$as_me: failed program was:" >&5
3656
 
sed 's/^/| /' conftest.$ac_ext >&5
3657
 
 
3658
 
        CFLAGS=""
3659
 
      cat >conftest.$ac_ext <<_ACEOF
3660
 
/* confdefs.h.  */
3661
 
_ACEOF
3662
 
cat confdefs.h >>conftest.$ac_ext
3663
 
cat >>conftest.$ac_ext <<_ACEOF
3664
 
/* end confdefs.h.  */
3665
 
 
3666
 
int
3667
 
main ()
3668
 
{
3669
 
 
3670
 
  ;
3671
 
  return 0;
3672
 
}
3673
 
_ACEOF
3674
 
rm -f conftest.$ac_objext
3675
 
if { (ac_try="$ac_compile"
3676
 
case "(($ac_try" in
3677
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678
 
  *) ac_try_echo=$ac_try;;
3679
 
esac
3680
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3681
 
$as_echo "$ac_try_echo") >&5
3682
 
  (eval "$ac_compile") 2>conftest.er1
3683
 
  ac_status=$?
3684
 
  grep -v '^ *+' conftest.er1 >conftest.err
3685
 
  rm -f conftest.er1
3686
 
  cat conftest.err >&5
3687
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688
 
  (exit $ac_status); } && {
3689
 
         test -z "$ac_c_werror_flag" ||
3690
 
         test ! -s conftest.err
3691
 
       } && test -s conftest.$ac_objext; then
3692
 
  :
3693
 
else
3694
 
  $as_echo "$as_me: failed program was:" >&5
3695
 
sed 's/^/| /' conftest.$ac_ext >&5
3696
 
 
3697
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3698
 
         CFLAGS="-g"
3699
 
         cat >conftest.$ac_ext <<_ACEOF
3700
 
/* confdefs.h.  */
3701
 
_ACEOF
3702
 
cat confdefs.h >>conftest.$ac_ext
3703
 
cat >>conftest.$ac_ext <<_ACEOF
3704
 
/* end confdefs.h.  */
3705
 
 
3706
 
int
3707
 
main ()
3708
 
{
3709
 
 
3710
 
  ;
3711
 
  return 0;
3712
 
}
3713
 
_ACEOF
3714
 
rm -f conftest.$ac_objext
3715
 
if { (ac_try="$ac_compile"
3716
 
case "(($ac_try" in
3717
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718
 
  *) ac_try_echo=$ac_try;;
3719
 
esac
3720
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721
 
$as_echo "$ac_try_echo") >&5
3722
 
  (eval "$ac_compile") 2>conftest.er1
3723
 
  ac_status=$?
3724
 
  grep -v '^ *+' conftest.er1 >conftest.err
3725
 
  rm -f conftest.er1
3726
 
  cat conftest.err >&5
3727
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728
 
  (exit $ac_status); } && {
3729
 
         test -z "$ac_c_werror_flag" ||
3730
 
         test ! -s conftest.err
3731
 
       } && test -s conftest.$ac_objext; then
3732
 
  ac_cv_prog_cc_g=yes
3733
 
else
3734
 
  $as_echo "$as_me: failed program was:" >&5
3735
 
sed 's/^/| /' conftest.$ac_ext >&5
3736
 
 
3737
 
 
3738
 
fi
3739
 
 
3740
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741
 
fi
3742
 
 
3743
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744
 
fi
3745
 
 
3746
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3748
 
fi
3749
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3750
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
3751
 
if test "$ac_test_CFLAGS" = set; then
3752
 
  CFLAGS=$ac_save_CFLAGS
3753
 
elif test $ac_cv_prog_cc_g = yes; then
3754
 
  if test "$GCC" = yes; then
3755
 
    CFLAGS="-g -O2"
3756
 
  else
3757
 
    CFLAGS="-g"
3758
 
  fi
3759
 
else
3760
 
  if test "$GCC" = yes; then
3761
 
    CFLAGS="-O2"
3762
 
  else
3763
 
    CFLAGS=
3764
 
  fi
3765
 
fi
3766
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3767
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3769
 
  $as_echo_n "(cached) " >&6
3770
 
else
3771
 
  ac_cv_prog_cc_c89=no
3772
 
ac_save_CC=$CC
3773
 
cat >conftest.$ac_ext <<_ACEOF
3774
 
/* confdefs.h.  */
3775
 
_ACEOF
3776
 
cat confdefs.h >>conftest.$ac_ext
3777
 
cat >>conftest.$ac_ext <<_ACEOF
3778
 
/* end confdefs.h.  */
3779
 
#include <stdarg.h>
3780
 
#include <stdio.h>
3781
 
#include <sys/types.h>
3782
 
#include <sys/stat.h>
3783
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3784
 
struct buf { int x; };
3785
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786
 
static char *e (p, i)
3787
 
     char **p;
3788
 
     int i;
3789
 
{
3790
 
  return p[i];
3791
 
}
3792
 
static char *f (char * (*g) (char **, int), char **p, ...)
3793
 
{
3794
 
  char *s;
3795
 
  va_list v;
3796
 
  va_start (v,p);
3797
 
  s = g (p, va_arg (v,int));
3798
 
  va_end (v);
3799
 
  return s;
3800
 
}
3801
 
 
3802
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3803
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3804
 
   These don't provoke an error unfortunately, instead are silently treated
3805
 
   as 'x'.  The following induces an error, until -std is added to get
3806
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3807
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3808
 
   that's true only with -std.  */
3809
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3810
 
 
3811
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812
 
   inside strings and character constants.  */
3813
 
#define FOO(x) 'x'
3814
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3815
 
 
3816
 
int test (int i, double x);
3817
 
struct s1 {int (*f) (int a);};
3818
 
struct s2 {int (*f) (double a);};
3819
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820
 
int argc;
3821
 
char **argv;
3822
 
int
3823
 
main ()
3824
 
{
3825
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3826
 
  ;
3827
 
  return 0;
3828
 
}
3829
 
_ACEOF
3830
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832
 
do
3833
 
  CC="$ac_save_CC $ac_arg"
3834
 
  rm -f conftest.$ac_objext
3835
 
if { (ac_try="$ac_compile"
3836
 
case "(($ac_try" in
3837
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838
 
  *) ac_try_echo=$ac_try;;
3839
 
esac
3840
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841
 
$as_echo "$ac_try_echo") >&5
3842
 
  (eval "$ac_compile") 2>conftest.er1
3843
 
  ac_status=$?
3844
 
  grep -v '^ *+' conftest.er1 >conftest.err
3845
 
  rm -f conftest.er1
3846
 
  cat conftest.err >&5
3847
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848
 
  (exit $ac_status); } && {
3849
 
         test -z "$ac_c_werror_flag" ||
3850
 
         test ! -s conftest.err
3851
 
       } && test -s conftest.$ac_objext; then
3852
 
  ac_cv_prog_cc_c89=$ac_arg
3853
 
else
3854
 
  $as_echo "$as_me: failed program was:" >&5
3855
 
sed 's/^/| /' conftest.$ac_ext >&5
3856
 
 
3857
 
 
3858
 
fi
3859
 
 
3860
 
rm -f core conftest.err conftest.$ac_objext
3861
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3862
 
done
3863
 
rm -f conftest.$ac_ext
3864
 
CC=$ac_save_CC
3865
 
 
3866
 
fi
3867
 
# AC_CACHE_VAL
3868
 
case "x$ac_cv_prog_cc_c89" in
3869
 
  x)
3870
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3871
 
$as_echo "none needed" >&6; } ;;
3872
 
  xno)
3873
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3874
 
$as_echo "unsupported" >&6; } ;;
3875
 
  *)
3876
 
    CC="$CC $ac_cv_prog_cc_c89"
3877
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3878
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3879
 
esac
3880
 
 
3881
 
 
3882
 
ac_ext=c
3883
 
ac_cpp='$CPP $CPPFLAGS'
3884
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
4637
DEPDIR="${am__leading_dot}deps"
3888
4638
 
3889
4639
ac_config_commands="$ac_config_commands depfiles"
3892
4642
am_make=${MAKE-make}
3893
4643
cat > confinc << 'END'
3894
4644
am__doit:
3895
 
        @echo done
 
4645
        @echo this is the am__doit target
3896
4646
.PHONY: am__doit
3897
4647
END
3898
4648
# If we don't find an include directive, just comment out the code.
3903
4653
_am_result=none
3904
4654
# First try GNU make style include.
3905
4655
echo "include confinc" > confmf
3906
 
# We grep out `Entering directory' and `Leaving directory'
3907
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3908
 
# In particular we don't look at `^make:' because GNU make might
3909
 
# be invoked under some other name (usually "gmake"), in which
3910
 
# case it prints its new name instead of `make'.
3911
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3912
 
   am__include=include
3913
 
   am__quote=
3914
 
   _am_result=GNU
3915
 
fi
 
4656
# Ignore all kinds of additional output from `make'.
 
4657
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4658
*the\ am__doit\ target*)
 
4659
  am__include=include
 
4660
  am__quote=
 
4661
  _am_result=GNU
 
4662
  ;;
 
4663
esac
3916
4664
# Now try BSD make style include.
3917
4665
if test "$am__include" = "#"; then
3918
4666
   echo '.include "confinc"' > confmf
3919
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3920
 
      am__include=.include
3921
 
      am__quote="\""
3922
 
      _am_result=BSD
3923
 
   fi
 
4667
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4668
   *the\ am__doit\ target*)
 
4669
     am__include=.include
 
4670
     am__quote="\""
 
4671
     _am_result=BSD
 
4672
     ;;
 
4673
   esac
3924
4674
fi
3925
4675
 
3926
4676
 
3946
4696
fi
3947
4697
 
3948
4698
 
 
4699
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
4700
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
4701
  # is not polluted with repeated "-I."
 
4702
  am__isrc=' -I$(srcdir)'
 
4703
  # test to see if srcdir already configured
 
4704
  if test -f $srcdir/config.status; then
 
4705
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
4706
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
4707
   { (exit 1); exit 1; }; }
 
4708
  fi
 
4709
fi
 
4710
 
 
4711
# test whether we have cygpath
 
4712
if test -z "$CYGPATH_W"; then
 
4713
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
4714
    CYGPATH_W='cygpath -w'
 
4715
  else
 
4716
    CYGPATH_W=echo
 
4717
  fi
 
4718
fi
 
4719
 
 
4720
 
 
4721
# Define the identity of the package.
 
4722
 PACKAGE='rrdtool'
 
4723
 VERSION='1.4.3'
 
4724
 
 
4725
 
 
4726
cat >>confdefs.h <<_ACEOF
 
4727
#define PACKAGE "$PACKAGE"
 
4728
_ACEOF
 
4729
 
 
4730
 
 
4731
cat >>confdefs.h <<_ACEOF
 
4732
#define VERSION "$VERSION"
 
4733
_ACEOF
 
4734
 
 
4735
# Some tools Automake needs.
 
4736
 
 
4737
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
4738
 
 
4739
 
 
4740
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
4741
 
 
4742
 
 
4743
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
4744
 
 
4745
 
 
4746
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
4747
 
 
4748
 
 
4749
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
4750
 
 
4751
# We need awk for the "check" target.  The system "awk" is bad on
 
4752
# some platforms.
 
4753
# Always define AMTAR for backward compatibility.
 
4754
 
 
4755
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
4756
 
 
4757
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
4758
 
 
4759
 
 
4760
 
3949
4761
 
3950
4762
depcc="$CC"   am_compiler_list=
3951
4763
 
3977
4789
  if test "$am_compiler_list" = ""; then
3978
4790
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3979
4791
  fi
 
4792
  am__universal=false
 
4793
  case " $depcc " in #(
 
4794
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4795
     esac
 
4796
 
3980
4797
  for depmode in $am_compiler_list; do
3981
4798
    # Setup a source with many dependencies, because some compilers
3982
4799
    # like to wrap large dependency lists on column 80 (with \), and
3994
4811
    done
3995
4812
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996
4813
 
 
4814
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4815
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4816
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4817
    # versions had trouble with output in subdirs
 
4818
    am__obj=sub/conftest.${OBJEXT-o}
 
4819
    am__minus_obj="-o $am__obj"
3997
4820
    case $depmode in
 
4821
    gcc)
 
4822
      # This depmode causes a compiler race in universal mode.
 
4823
      test "$am__universal" = false || continue
 
4824
      ;;
3998
4825
    nosideeffect)
3999
4826
      # after this tag, mechanisms are not by side-effect, so they'll
4000
4827
      # only be used when explicitly requested
4004
4831
        break
4005
4832
      fi
4006
4833
      ;;
 
4834
    msvisualcpp | msvcmsys)
 
4835
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4836
      # not run yet.  These depmodes are late enough in the game, and
 
4837
      # so weak that their functioning should not be impacted.
 
4838
      am__obj=conftest.${OBJEXT-o}
 
4839
      am__minus_obj=
 
4840
      ;;
4007
4841
    none) break ;;
4008
4842
    esac
4009
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4010
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4011
 
    # handle `-M -o', and we need to detect this.
4012
4843
    if depmode=$depmode \
4013
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4844
       source=sub/conftest.c object=$am__obj \
4014
4845
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4846
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016
4847
         >/dev/null 2>conftest.err &&
4017
4848
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018
4849
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4850
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020
4851
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021
4852
      # icc doesn't choke on unknown options, it will just issue warnings
4022
4853
      # or remarks (even with -Werror).  So we grep stderr for any message
4055
4886
fi
4056
4887
 
4057
4888
 
 
4889
 
 
4890
 
 
4891
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
4892
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
4893
    # Check whether --enable-maintainer-mode was given.
 
4894
if test "${enable_maintainer_mode+set}" = set; then
 
4895
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
4896
else
 
4897
  USE_MAINTAINER_MODE=no
 
4898
fi
 
4899
 
 
4900
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
4901
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
4902
   if test $USE_MAINTAINER_MODE = yes; then
 
4903
  MAINTAINER_MODE_TRUE=
 
4904
  MAINTAINER_MODE_FALSE='#'
 
4905
else
 
4906
  MAINTAINER_MODE_TRUE='#'
 
4907
  MAINTAINER_MODE_FALSE=
 
4908
fi
 
4909
 
 
4910
  MAINT=$MAINTAINER_MODE_TRUE
 
4911
 
 
4912
 
 
4913
# Enable silent build rules by default, requires at least
 
4914
# Automake-1.11. Disable by either passing --disable-silent-rules to
 
4915
# configure or passing V=1 to make
 
4916
# Check whether --enable-silent-rules was given.
 
4917
if test "${enable_silent_rules+set}" = set; then
 
4918
  enableval=$enable_silent_rules;
 
4919
fi
 
4920
 
 
4921
case $enable_silent_rules in
 
4922
yes) AM_DEFAULT_VERBOSITY=0;;
 
4923
no)  AM_DEFAULT_VERBOSITY=1;;
 
4924
*)   AM_DEFAULT_VERBOSITY=0;;
 
4925
esac
 
4926
AM_BACKSLASH='\'
 
4927
 
 
4928
ac_config_headers="$ac_config_headers rrd_config.h"
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
cat >>confdefs.h <<_ACEOF
 
4950
#define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
 
4951
_ACEOF
 
4952
 
 
4953
 
 
4954
# Check whether --enable-rrdcgi was given.
 
4955
if test "${enable_rrdcgi+set}" = set; then
 
4956
  enableval=$enable_rrdcgi;
 
4957
else
 
4958
  enable_rrdcgi=yes
 
4959
fi
 
4960
 
 
4961
 
 
4962
 
 
4963
# Check whether --with-rrd-default-font was given.
 
4964
if test "${with_rrd_default_font+set}" = set; then
 
4965
  withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
 
4966
else
 
4967
 
 
4968
  if test -d ${WINDIR:-nodir}/cour.ttf ; then
 
4969
        RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
 
4970
  else
 
4971
        RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
 
4972
  fi
 
4973
 
 
4974
fi
 
4975
 
 
4976
 
 
4977
# Check whether --enable-mmap was given.
 
4978
if test "${enable_mmap+set}" = set; then
 
4979
  enableval=$enable_mmap;
 
4980
else
 
4981
  enable_mmap=yes
 
4982
fi
 
4983
 
 
4984
 
 
4985
# Check whether --enable-pthread was given.
 
4986
if test "${enable_pthread+set}" = set; then
 
4987
  enableval=$enable_pthread;
 
4988
else
 
4989
  enable_pthread=yes
 
4990
fi
 
4991
 
 
4992
 
 
4993
# Check whether --enable-static-programs was given.
 
4994
if test "${enable_static_programs+set}" = set; then
 
4995
  enableval=$enable_static_programs; case "${enableval}" in
 
4996
       yes) staticprogs=yes ;;
 
4997
       no)  staticprogs=no ;;
 
4998
       *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
 
4999
$as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
 
5000
   { (exit 1); exit 1; }; } ;;
 
5001
     esac
 
5002
else
 
5003
  staticprogs=no
 
5004
fi
 
5005
 
 
5006
 if test "x$staticprogs" = "xyes"; then
 
5007
  STATIC_PROGRAMS_TRUE=
 
5008
  STATIC_PROGRAMS_FALSE='#'
 
5009
else
 
5010
  STATIC_PROGRAMS_TRUE='#'
 
5011
  STATIC_PROGRAMS_FALSE=
 
5012
fi
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
case $TERM in
 
5018
       #   for the most important terminal types we directly know the sequences
 
5019
       xterm|xterm*|vt220|vt220*)
 
5020
               T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
 
5021
               T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
 
5022
       ;;
 
5023
       vt100|vt100*|cygwin)
 
5024
               T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
 
5025
               T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
 
5026
       ;;
 
5027
       *)
 
5028
               T_MD=''
 
5029
               T_ME=''
 
5030
       ;;
 
5031
esac
 
5032
  { $as_echo "$as_me:$LINENO: result: " >&5
 
5033
$as_echo "" >&6; }
 
5034
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
 
5035
$as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
 
5036
 
 
5037
 
 
5038
 
4058
5039
ac_ext=c
4059
5040
ac_cpp='$CPP $CPPFLAGS'
4060
5041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291
5272
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292
5273
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
5274
 
 
5275
ac_ext=c
 
5276
ac_cpp='$CPP $CPPFLAGS'
 
5277
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5278
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5279
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5280
if test -n "$ac_tool_prefix"; then
 
5281
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
5282
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
5283
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5284
$as_echo_n "checking for $ac_word... " >&6; }
 
5285
if test "${ac_cv_prog_CC+set}" = set; then
 
5286
  $as_echo_n "(cached) " >&6
 
5287
else
 
5288
  if test -n "$CC"; then
 
5289
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5290
else
 
5291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5292
for as_dir in $PATH
 
5293
do
 
5294
  IFS=$as_save_IFS
 
5295
  test -z "$as_dir" && as_dir=.
 
5296
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5297
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5298
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
5299
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5300
    break 2
 
5301
  fi
 
5302
done
 
5303
done
 
5304
IFS=$as_save_IFS
 
5305
 
 
5306
fi
 
5307
fi
 
5308
CC=$ac_cv_prog_CC
 
5309
if test -n "$CC"; then
 
5310
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
5311
$as_echo "$CC" >&6; }
 
5312
else
 
5313
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5314
$as_echo "no" >&6; }
 
5315
fi
 
5316
 
 
5317
 
 
5318
fi
 
5319
if test -z "$ac_cv_prog_CC"; then
 
5320
  ac_ct_CC=$CC
 
5321
  # Extract the first word of "gcc", so it can be a program name with args.
 
5322
set dummy gcc; ac_word=$2
 
5323
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5324
$as_echo_n "checking for $ac_word... " >&6; }
 
5325
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
5326
  $as_echo_n "(cached) " >&6
 
5327
else
 
5328
  if test -n "$ac_ct_CC"; then
 
5329
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5330
else
 
5331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5332
for as_dir in $PATH
 
5333
do
 
5334
  IFS=$as_save_IFS
 
5335
  test -z "$as_dir" && as_dir=.
 
5336
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5337
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5338
    ac_cv_prog_ac_ct_CC="gcc"
 
5339
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5340
    break 2
 
5341
  fi
 
5342
done
 
5343
done
 
5344
IFS=$as_save_IFS
 
5345
 
 
5346
fi
 
5347
fi
 
5348
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5349
if test -n "$ac_ct_CC"; then
 
5350
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
5351
$as_echo "$ac_ct_CC" >&6; }
 
5352
else
 
5353
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5354
$as_echo "no" >&6; }
 
5355
fi
 
5356
 
 
5357
  if test "x$ac_ct_CC" = x; then
 
5358
    CC=""
 
5359
  else
 
5360
    case $cross_compiling:$ac_tool_warned in
 
5361
yes:)
 
5362
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5363
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5364
ac_tool_warned=yes ;;
 
5365
esac
 
5366
    CC=$ac_ct_CC
 
5367
  fi
 
5368
else
 
5369
  CC="$ac_cv_prog_CC"
 
5370
fi
 
5371
 
 
5372
if test -z "$CC"; then
 
5373
          if test -n "$ac_tool_prefix"; then
 
5374
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
5375
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
5376
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5377
$as_echo_n "checking for $ac_word... " >&6; }
 
5378
if test "${ac_cv_prog_CC+set}" = set; then
 
5379
  $as_echo_n "(cached) " >&6
 
5380
else
 
5381
  if test -n "$CC"; then
 
5382
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5383
else
 
5384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5385
for as_dir in $PATH
 
5386
do
 
5387
  IFS=$as_save_IFS
 
5388
  test -z "$as_dir" && as_dir=.
 
5389
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5391
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
5392
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5393
    break 2
 
5394
  fi
 
5395
done
 
5396
done
 
5397
IFS=$as_save_IFS
 
5398
 
 
5399
fi
 
5400
fi
 
5401
CC=$ac_cv_prog_CC
 
5402
if test -n "$CC"; then
 
5403
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
5404
$as_echo "$CC" >&6; }
 
5405
else
 
5406
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5407
$as_echo "no" >&6; }
 
5408
fi
 
5409
 
 
5410
 
 
5411
  fi
 
5412
fi
 
5413
if test -z "$CC"; then
 
5414
  # Extract the first word of "cc", so it can be a program name with args.
 
5415
set dummy cc; ac_word=$2
 
5416
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5417
$as_echo_n "checking for $ac_word... " >&6; }
 
5418
if test "${ac_cv_prog_CC+set}" = set; then
 
5419
  $as_echo_n "(cached) " >&6
 
5420
else
 
5421
  if test -n "$CC"; then
 
5422
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5423
else
 
5424
  ac_prog_rejected=no
 
5425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5426
for as_dir in $PATH
 
5427
do
 
5428
  IFS=$as_save_IFS
 
5429
  test -z "$as_dir" && as_dir=.
 
5430
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5432
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
5433
       ac_prog_rejected=yes
 
5434
       continue
 
5435
     fi
 
5436
    ac_cv_prog_CC="cc"
 
5437
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5438
    break 2
 
5439
  fi
 
5440
done
 
5441
done
 
5442
IFS=$as_save_IFS
 
5443
 
 
5444
if test $ac_prog_rejected = yes; then
 
5445
  # We found a bogon in the path, so make sure we never use it.
 
5446
  set dummy $ac_cv_prog_CC
 
5447
  shift
 
5448
  if test $# != 0; then
 
5449
    # We chose a different compiler from the bogus one.
 
5450
    # However, it has the same basename, so the bogon will be chosen
 
5451
    # first if we set CC to just the basename; use the full file name.
 
5452
    shift
 
5453
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
5454
  fi
 
5455
fi
 
5456
fi
 
5457
fi
 
5458
CC=$ac_cv_prog_CC
 
5459
if test -n "$CC"; then
 
5460
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
5461
$as_echo "$CC" >&6; }
 
5462
else
 
5463
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5464
$as_echo "no" >&6; }
 
5465
fi
 
5466
 
 
5467
 
 
5468
fi
 
5469
if test -z "$CC"; then
 
5470
  if test -n "$ac_tool_prefix"; then
 
5471
  for ac_prog in cl.exe
 
5472
  do
 
5473
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5474
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5475
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5476
$as_echo_n "checking for $ac_word... " >&6; }
 
5477
if test "${ac_cv_prog_CC+set}" = set; then
 
5478
  $as_echo_n "(cached) " >&6
 
5479
else
 
5480
  if test -n "$CC"; then
 
5481
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5482
else
 
5483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5484
for as_dir in $PATH
 
5485
do
 
5486
  IFS=$as_save_IFS
 
5487
  test -z "$as_dir" && as_dir=.
 
5488
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5489
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5490
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
5491
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5492
    break 2
 
5493
  fi
 
5494
done
 
5495
done
 
5496
IFS=$as_save_IFS
 
5497
 
 
5498
fi
 
5499
fi
 
5500
CC=$ac_cv_prog_CC
 
5501
if test -n "$CC"; then
 
5502
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
5503
$as_echo "$CC" >&6; }
 
5504
else
 
5505
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5506
$as_echo "no" >&6; }
 
5507
fi
 
5508
 
 
5509
 
 
5510
    test -n "$CC" && break
 
5511
  done
 
5512
fi
 
5513
if test -z "$CC"; then
 
5514
  ac_ct_CC=$CC
 
5515
  for ac_prog in cl.exe
 
5516
do
 
5517
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5518
set dummy $ac_prog; ac_word=$2
 
5519
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5520
$as_echo_n "checking for $ac_word... " >&6; }
 
5521
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
5522
  $as_echo_n "(cached) " >&6
 
5523
else
 
5524
  if test -n "$ac_ct_CC"; then
 
5525
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5526
else
 
5527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5528
for as_dir in $PATH
 
5529
do
 
5530
  IFS=$as_save_IFS
 
5531
  test -z "$as_dir" && as_dir=.
 
5532
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5534
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
5535
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5536
    break 2
 
5537
  fi
 
5538
done
 
5539
done
 
5540
IFS=$as_save_IFS
 
5541
 
 
5542
fi
 
5543
fi
 
5544
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5545
if test -n "$ac_ct_CC"; then
 
5546
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
5547
$as_echo "$ac_ct_CC" >&6; }
 
5548
else
 
5549
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5550
$as_echo "no" >&6; }
 
5551
fi
 
5552
 
 
5553
 
 
5554
  test -n "$ac_ct_CC" && break
 
5555
done
 
5556
 
 
5557
  if test "x$ac_ct_CC" = x; then
 
5558
    CC=""
 
5559
  else
 
5560
    case $cross_compiling:$ac_tool_warned in
 
5561
yes:)
 
5562
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5564
ac_tool_warned=yes ;;
 
5565
esac
 
5566
    CC=$ac_ct_CC
 
5567
  fi
 
5568
fi
 
5569
 
 
5570
fi
 
5571
 
 
5572
 
 
5573
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5574
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5575
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
5576
See \`config.log' for more details." >&5
 
5577
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
5578
See \`config.log' for more details." >&2;}
 
5579
   { (exit 1); exit 1; }; }; }
 
5580
 
 
5581
# Provide some information about the compiler.
 
5582
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
5583
set X $ac_compile
 
5584
ac_compiler=$2
 
5585
{ (ac_try="$ac_compiler --version >&5"
 
5586
case "(($ac_try" in
 
5587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5588
  *) ac_try_echo=$ac_try;;
 
5589
esac
 
5590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5591
$as_echo "$ac_try_echo") >&5
 
5592
  (eval "$ac_compiler --version >&5") 2>&5
 
5593
  ac_status=$?
 
5594
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5595
  (exit $ac_status); }
 
5596
{ (ac_try="$ac_compiler -v >&5"
 
5597
case "(($ac_try" in
 
5598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5599
  *) ac_try_echo=$ac_try;;
 
5600
esac
 
5601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5602
$as_echo "$ac_try_echo") >&5
 
5603
  (eval "$ac_compiler -v >&5") 2>&5
 
5604
  ac_status=$?
 
5605
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5606
  (exit $ac_status); }
 
5607
{ (ac_try="$ac_compiler -V >&5"
 
5608
case "(($ac_try" in
 
5609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5610
  *) ac_try_echo=$ac_try;;
 
5611
esac
 
5612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5613
$as_echo "$ac_try_echo") >&5
 
5614
  (eval "$ac_compiler -V >&5") 2>&5
 
5615
  ac_status=$?
 
5616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5617
  (exit $ac_status); }
 
5618
 
 
5619
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
5620
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5621
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
5622
  $as_echo_n "(cached) " >&6
 
5623
else
 
5624
  cat >conftest.$ac_ext <<_ACEOF
 
5625
/* confdefs.h.  */
 
5626
_ACEOF
 
5627
cat confdefs.h >>conftest.$ac_ext
 
5628
cat >>conftest.$ac_ext <<_ACEOF
 
5629
/* end confdefs.h.  */
 
5630
 
 
5631
int
 
5632
main ()
 
5633
{
 
5634
#ifndef __GNUC__
 
5635
       choke me
 
5636
#endif
 
5637
 
 
5638
  ;
 
5639
  return 0;
 
5640
}
 
5641
_ACEOF
 
5642
rm -f conftest.$ac_objext
 
5643
if { (ac_try="$ac_compile"
 
5644
case "(($ac_try" in
 
5645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5646
  *) ac_try_echo=$ac_try;;
 
5647
esac
 
5648
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5649
$as_echo "$ac_try_echo") >&5
 
5650
  (eval "$ac_compile") 2>conftest.er1
 
5651
  ac_status=$?
 
5652
  grep -v '^ *+' conftest.er1 >conftest.err
 
5653
  rm -f conftest.er1
 
5654
  cat conftest.err >&5
 
5655
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5656
  (exit $ac_status); } && {
 
5657
         test -z "$ac_c_werror_flag" ||
 
5658
         test ! -s conftest.err
 
5659
       } && test -s conftest.$ac_objext; then
 
5660
  ac_compiler_gnu=yes
 
5661
else
 
5662
  $as_echo "$as_me: failed program was:" >&5
 
5663
sed 's/^/| /' conftest.$ac_ext >&5
 
5664
 
 
5665
        ac_compiler_gnu=no
 
5666
fi
 
5667
 
 
5668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5669
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5670
 
 
5671
fi
 
5672
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
5673
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5674
if test $ac_compiler_gnu = yes; then
 
5675
  GCC=yes
 
5676
else
 
5677
  GCC=
 
5678
fi
 
5679
ac_test_CFLAGS=${CFLAGS+set}
 
5680
ac_save_CFLAGS=$CFLAGS
 
5681
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
5682
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
5683
if test "${ac_cv_prog_cc_g+set}" = set; then
 
5684
  $as_echo_n "(cached) " >&6
 
5685
else
 
5686
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5687
   ac_c_werror_flag=yes
 
5688
   ac_cv_prog_cc_g=no
 
5689
   CFLAGS="-g"
 
5690
   cat >conftest.$ac_ext <<_ACEOF
 
5691
/* confdefs.h.  */
 
5692
_ACEOF
 
5693
cat confdefs.h >>conftest.$ac_ext
 
5694
cat >>conftest.$ac_ext <<_ACEOF
 
5695
/* end confdefs.h.  */
 
5696
 
 
5697
int
 
5698
main ()
 
5699
{
 
5700
 
 
5701
  ;
 
5702
  return 0;
 
5703
}
 
5704
_ACEOF
 
5705
rm -f conftest.$ac_objext
 
5706
if { (ac_try="$ac_compile"
 
5707
case "(($ac_try" in
 
5708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5709
  *) ac_try_echo=$ac_try;;
 
5710
esac
 
5711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5712
$as_echo "$ac_try_echo") >&5
 
5713
  (eval "$ac_compile") 2>conftest.er1
 
5714
  ac_status=$?
 
5715
  grep -v '^ *+' conftest.er1 >conftest.err
 
5716
  rm -f conftest.er1
 
5717
  cat conftest.err >&5
 
5718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5719
  (exit $ac_status); } && {
 
5720
         test -z "$ac_c_werror_flag" ||
 
5721
         test ! -s conftest.err
 
5722
       } && test -s conftest.$ac_objext; then
 
5723
  ac_cv_prog_cc_g=yes
 
5724
else
 
5725
  $as_echo "$as_me: failed program was:" >&5
 
5726
sed 's/^/| /' conftest.$ac_ext >&5
 
5727
 
 
5728
        CFLAGS=""
 
5729
      cat >conftest.$ac_ext <<_ACEOF
 
5730
/* confdefs.h.  */
 
5731
_ACEOF
 
5732
cat confdefs.h >>conftest.$ac_ext
 
5733
cat >>conftest.$ac_ext <<_ACEOF
 
5734
/* end confdefs.h.  */
 
5735
 
 
5736
int
 
5737
main ()
 
5738
{
 
5739
 
 
5740
  ;
 
5741
  return 0;
 
5742
}
 
5743
_ACEOF
 
5744
rm -f conftest.$ac_objext
 
5745
if { (ac_try="$ac_compile"
 
5746
case "(($ac_try" in
 
5747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5748
  *) ac_try_echo=$ac_try;;
 
5749
esac
 
5750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5751
$as_echo "$ac_try_echo") >&5
 
5752
  (eval "$ac_compile") 2>conftest.er1
 
5753
  ac_status=$?
 
5754
  grep -v '^ *+' conftest.er1 >conftest.err
 
5755
  rm -f conftest.er1
 
5756
  cat conftest.err >&5
 
5757
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5758
  (exit $ac_status); } && {
 
5759
         test -z "$ac_c_werror_flag" ||
 
5760
         test ! -s conftest.err
 
5761
       } && test -s conftest.$ac_objext; then
 
5762
  :
 
5763
else
 
5764
  $as_echo "$as_me: failed program was:" >&5
 
5765
sed 's/^/| /' conftest.$ac_ext >&5
 
5766
 
 
5767
        ac_c_werror_flag=$ac_save_c_werror_flag
 
5768
         CFLAGS="-g"
 
5769
         cat >conftest.$ac_ext <<_ACEOF
 
5770
/* confdefs.h.  */
 
5771
_ACEOF
 
5772
cat confdefs.h >>conftest.$ac_ext
 
5773
cat >>conftest.$ac_ext <<_ACEOF
 
5774
/* end confdefs.h.  */
 
5775
 
 
5776
int
 
5777
main ()
 
5778
{
 
5779
 
 
5780
  ;
 
5781
  return 0;
 
5782
}
 
5783
_ACEOF
 
5784
rm -f conftest.$ac_objext
 
5785
if { (ac_try="$ac_compile"
 
5786
case "(($ac_try" in
 
5787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5788
  *) ac_try_echo=$ac_try;;
 
5789
esac
 
5790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5791
$as_echo "$ac_try_echo") >&5
 
5792
  (eval "$ac_compile") 2>conftest.er1
 
5793
  ac_status=$?
 
5794
  grep -v '^ *+' conftest.er1 >conftest.err
 
5795
  rm -f conftest.er1
 
5796
  cat conftest.err >&5
 
5797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5798
  (exit $ac_status); } && {
 
5799
         test -z "$ac_c_werror_flag" ||
 
5800
         test ! -s conftest.err
 
5801
       } && test -s conftest.$ac_objext; then
 
5802
  ac_cv_prog_cc_g=yes
 
5803
else
 
5804
  $as_echo "$as_me: failed program was:" >&5
 
5805
sed 's/^/| /' conftest.$ac_ext >&5
 
5806
 
 
5807
 
 
5808
fi
 
5809
 
 
5810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5811
fi
 
5812
 
 
5813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5814
fi
 
5815
 
 
5816
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5817
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5818
fi
 
5819
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
5820
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
5821
if test "$ac_test_CFLAGS" = set; then
 
5822
  CFLAGS=$ac_save_CFLAGS
 
5823
elif test $ac_cv_prog_cc_g = yes; then
 
5824
  if test "$GCC" = yes; then
 
5825
    CFLAGS="-g -O2"
 
5826
  else
 
5827
    CFLAGS="-g"
 
5828
  fi
 
5829
else
 
5830
  if test "$GCC" = yes; then
 
5831
    CFLAGS="-O2"
 
5832
  else
 
5833
    CFLAGS=
 
5834
  fi
 
5835
fi
 
5836
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
5837
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5838
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
5839
  $as_echo_n "(cached) " >&6
 
5840
else
 
5841
  ac_cv_prog_cc_c89=no
 
5842
ac_save_CC=$CC
 
5843
cat >conftest.$ac_ext <<_ACEOF
 
5844
/* confdefs.h.  */
 
5845
_ACEOF
 
5846
cat confdefs.h >>conftest.$ac_ext
 
5847
cat >>conftest.$ac_ext <<_ACEOF
 
5848
/* end confdefs.h.  */
 
5849
#include <stdarg.h>
 
5850
#include <stdio.h>
 
5851
#include <sys/types.h>
 
5852
#include <sys/stat.h>
 
5853
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5854
struct buf { int x; };
 
5855
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5856
static char *e (p, i)
 
5857
     char **p;
 
5858
     int i;
 
5859
{
 
5860
  return p[i];
 
5861
}
 
5862
static char *f (char * (*g) (char **, int), char **p, ...)
 
5863
{
 
5864
  char *s;
 
5865
  va_list v;
 
5866
  va_start (v,p);
 
5867
  s = g (p, va_arg (v,int));
 
5868
  va_end (v);
 
5869
  return s;
 
5870
}
 
5871
 
 
5872
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5873
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5874
   These don't provoke an error unfortunately, instead are silently treated
 
5875
   as 'x'.  The following induces an error, until -std is added to get
 
5876
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5877
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5878
   that's true only with -std.  */
 
5879
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5880
 
 
5881
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5882
   inside strings and character constants.  */
 
5883
#define FOO(x) 'x'
 
5884
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5885
 
 
5886
int test (int i, double x);
 
5887
struct s1 {int (*f) (int a);};
 
5888
struct s2 {int (*f) (double a);};
 
5889
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5890
int argc;
 
5891
char **argv;
 
5892
int
 
5893
main ()
 
5894
{
 
5895
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5896
  ;
 
5897
  return 0;
 
5898
}
 
5899
_ACEOF
 
5900
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5901
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5902
do
 
5903
  CC="$ac_save_CC $ac_arg"
 
5904
  rm -f conftest.$ac_objext
 
5905
if { (ac_try="$ac_compile"
 
5906
case "(($ac_try" in
 
5907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5908
  *) ac_try_echo=$ac_try;;
 
5909
esac
 
5910
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5911
$as_echo "$ac_try_echo") >&5
 
5912
  (eval "$ac_compile") 2>conftest.er1
 
5913
  ac_status=$?
 
5914
  grep -v '^ *+' conftest.er1 >conftest.err
 
5915
  rm -f conftest.er1
 
5916
  cat conftest.err >&5
 
5917
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5918
  (exit $ac_status); } && {
 
5919
         test -z "$ac_c_werror_flag" ||
 
5920
         test ! -s conftest.err
 
5921
       } && test -s conftest.$ac_objext; then
 
5922
  ac_cv_prog_cc_c89=$ac_arg
 
5923
else
 
5924
  $as_echo "$as_me: failed program was:" >&5
 
5925
sed 's/^/| /' conftest.$ac_ext >&5
 
5926
 
 
5927
 
 
5928
fi
 
5929
 
 
5930
rm -f core conftest.err conftest.$ac_objext
 
5931
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5932
done
 
5933
rm -f conftest.$ac_ext
 
5934
CC=$ac_save_CC
 
5935
 
 
5936
fi
 
5937
# AC_CACHE_VAL
 
5938
case "x$ac_cv_prog_cc_c89" in
 
5939
  x)
 
5940
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
5941
$as_echo "none needed" >&6; } ;;
 
5942
  xno)
 
5943
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
5944
$as_echo "unsupported" >&6; } ;;
 
5945
  *)
 
5946
    CC="$CC $ac_cv_prog_cc_c89"
 
5947
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
5948
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5949
esac
 
5950
 
 
5951
 
 
5952
ac_ext=c
 
5953
ac_cpp='$CPP $CPPFLAGS'
 
5954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5957
 
 
5958
if test "x$CC" != xcc; then
 
5959
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
5960
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
5961
else
 
5962
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
5963
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
5964
fi
 
5965
set dummy $CC; ac_cc=`$as_echo "$2" |
 
5966
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
5967
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
5968
  $as_echo_n "(cached) " >&6
 
5969
else
 
5970
  cat >conftest.$ac_ext <<_ACEOF
 
5971
/* confdefs.h.  */
 
5972
_ACEOF
 
5973
cat confdefs.h >>conftest.$ac_ext
 
5974
cat >>conftest.$ac_ext <<_ACEOF
 
5975
/* end confdefs.h.  */
 
5976
 
 
5977
int
 
5978
main ()
 
5979
{
 
5980
 
 
5981
  ;
 
5982
  return 0;
 
5983
}
 
5984
_ACEOF
 
5985
# Make sure it works both with $CC and with simple cc.
 
5986
# We do the test twice because some compilers refuse to overwrite an
 
5987
# existing .o file with -o, though they will create one.
 
5988
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
5989
rm -f conftest2.*
 
5990
if { (case "(($ac_try" in
 
5991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5992
  *) ac_try_echo=$ac_try;;
 
5993
esac
 
5994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5995
$as_echo "$ac_try_echo") >&5
 
5996
  (eval "$ac_try") 2>&5
 
5997
  ac_status=$?
 
5998
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5999
  (exit $ac_status); } &&
 
6000
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
6001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6002
  *) ac_try_echo=$ac_try;;
 
6003
esac
 
6004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6005
$as_echo "$ac_try_echo") >&5
 
6006
  (eval "$ac_try") 2>&5
 
6007
  ac_status=$?
 
6008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); };
 
6010
then
 
6011
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
6012
  if test "x$CC" != xcc; then
 
6013
    # Test first that cc exists at all.
 
6014
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
6015
  { (case "(($ac_try" in
 
6016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6017
  *) ac_try_echo=$ac_try;;
 
6018
esac
 
6019
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6020
$as_echo "$ac_try_echo") >&5
 
6021
  (eval "$ac_try") 2>&5
 
6022
  ac_status=$?
 
6023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6024
  (exit $ac_status); }; }; then
 
6025
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6026
      rm -f conftest2.*
 
6027
      if { (case "(($ac_try" in
 
6028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6029
  *) ac_try_echo=$ac_try;;
 
6030
esac
 
6031
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6032
$as_echo "$ac_try_echo") >&5
 
6033
  (eval "$ac_try") 2>&5
 
6034
  ac_status=$?
 
6035
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6036
  (exit $ac_status); } &&
 
6037
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
6038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6039
  *) ac_try_echo=$ac_try;;
 
6040
esac
 
6041
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6042
$as_echo "$ac_try_echo") >&5
 
6043
  (eval "$ac_try") 2>&5
 
6044
  ac_status=$?
 
6045
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6046
  (exit $ac_status); };
 
6047
      then
 
6048
        # cc works too.
 
6049
        :
 
6050
      else
 
6051
        # cc exists but doesn't like -o.
 
6052
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6053
      fi
 
6054
    fi
 
6055
  fi
 
6056
else
 
6057
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6058
fi
 
6059
rm -f core conftest*
 
6060
 
 
6061
fi
 
6062
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
6063
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
6064
$as_echo "yes" >&6; }
 
6065
else
 
6066
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6067
$as_echo "no" >&6; }
 
6068
 
 
6069
cat >>confdefs.h <<\_ACEOF
 
6070
#define NO_MINUS_C_MINUS_O 1
 
6071
_ACEOF
 
6072
 
 
6073
fi
 
6074
 
 
6075
# FIXME: we rely on the cache variable name because
 
6076
# there is no other way.
 
6077
set dummy $CC
 
6078
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6079
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
6080
if test "$am_t" != yes; then
 
6081
   # Losing compiler, so override with the script.
 
6082
   # FIXME: It is wrong to rewrite CC.
 
6083
   # But if we don't then we get into trouble of one sort or another.
 
6084
   # A longer-term fix would be to have automake use am__CC in this case,
 
6085
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
6086
   CC="$am_aux_dir/compile $CC"
 
6087
fi
 
6088
 
 
6089
 
4294
6090
case `pwd` in
4295
6091
  *\ * | *\     *)
4296
6092
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4400
6196
 
4401
6197
 
4402
6198
 
4403
 
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4404
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4405
 
if test "${ac_cv_path_GREP+set}" = set; then
4406
 
  $as_echo_n "(cached) " >&6
4407
 
else
4408
 
  if test -z "$GREP"; then
4409
 
  ac_path_GREP_found=false
4410
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4411
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413
 
do
4414
 
  IFS=$as_save_IFS
4415
 
  test -z "$as_dir" && as_dir=.
4416
 
  for ac_prog in grep ggrep; do
4417
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4418
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4419
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4420
 
# Check for GNU ac_path_GREP and select it if it is found.
4421
 
  # Check for GNU $ac_path_GREP
4422
 
case `"$ac_path_GREP" --version 2>&1` in
4423
 
*GNU*)
4424
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4425
 
*)
4426
 
  ac_count=0
4427
 
  $as_echo_n 0123456789 >"conftest.in"
4428
 
  while :
4429
 
  do
4430
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4431
 
    mv "conftest.tmp" "conftest.in"
4432
 
    cp "conftest.in" "conftest.nl"
4433
 
    $as_echo 'GREP' >> "conftest.nl"
4434
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436
 
    ac_count=`expr $ac_count + 1`
4437
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4438
 
      # Best one so far, save it but keep looking for a better one
4439
 
      ac_cv_path_GREP="$ac_path_GREP"
4440
 
      ac_path_GREP_max=$ac_count
4441
 
    fi
4442
 
    # 10*(2^10) chars as input seems more than enough
4443
 
    test $ac_count -gt 10 && break
4444
 
  done
4445
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446
 
esac
4447
 
 
4448
 
      $ac_path_GREP_found && break 3
4449
 
    done
4450
 
  done
4451
 
done
4452
 
IFS=$as_save_IFS
4453
 
  if test -z "$ac_cv_path_GREP"; then
4454
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455
 
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456
 
   { (exit 1); exit 1; }; }
4457
 
  fi
4458
 
else
4459
 
  ac_cv_path_GREP=$GREP
4460
 
fi
4461
 
 
4462
 
fi
4463
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4464
 
$as_echo "$ac_cv_path_GREP" >&6; }
4465
 
 GREP="$ac_cv_path_GREP"
4466
 
 
4467
 
 
4468
 
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4469
 
$as_echo_n "checking for egrep... " >&6; }
4470
 
if test "${ac_cv_path_EGREP+set}" = set; then
4471
 
  $as_echo_n "(cached) " >&6
4472
 
else
4473
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474
 
   then ac_cv_path_EGREP="$GREP -E"
4475
 
   else
4476
 
     if test -z "$EGREP"; then
4477
 
  ac_path_EGREP_found=false
4478
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4479
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481
 
do
4482
 
  IFS=$as_save_IFS
4483
 
  test -z "$as_dir" && as_dir=.
4484
 
  for ac_prog in egrep; do
4485
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4486
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4487
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4488
 
# Check for GNU ac_path_EGREP and select it if it is found.
4489
 
  # Check for GNU $ac_path_EGREP
4490
 
case `"$ac_path_EGREP" --version 2>&1` in
4491
 
*GNU*)
4492
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493
 
*)
4494
 
  ac_count=0
4495
 
  $as_echo_n 0123456789 >"conftest.in"
4496
 
  while :
4497
 
  do
4498
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4499
 
    mv "conftest.tmp" "conftest.in"
4500
 
    cp "conftest.in" "conftest.nl"
4501
 
    $as_echo 'EGREP' >> "conftest.nl"
4502
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504
 
    ac_count=`expr $ac_count + 1`
4505
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506
 
      # Best one so far, save it but keep looking for a better one
4507
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4508
 
      ac_path_EGREP_max=$ac_count
4509
 
    fi
4510
 
    # 10*(2^10) chars as input seems more than enough
4511
 
    test $ac_count -gt 10 && break
4512
 
  done
4513
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514
 
esac
4515
 
 
4516
 
      $ac_path_EGREP_found && break 3
4517
 
    done
4518
 
  done
4519
 
done
4520
 
IFS=$as_save_IFS
4521
 
  if test -z "$ac_cv_path_EGREP"; then
4522
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4523
 
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4524
 
   { (exit 1); exit 1; }; }
4525
 
  fi
4526
 
else
4527
 
  ac_cv_path_EGREP=$EGREP
4528
 
fi
4529
 
 
4530
 
   fi
4531
 
fi
4532
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4533
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4534
 
 EGREP="$ac_cv_path_EGREP"
4535
 
 
4536
 
 
4537
6199
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4538
6200
$as_echo_n "checking for fgrep... " >&6; }
4539
6201
if test "${ac_cv_path_FGREP+set}" = set; then
4910
6572
else
4911
6573
  lt_cv_nm_interface="BSD nm"
4912
6574
  echo "int some_variable = 0;" > conftest.$ac_ext
4913
 
  (eval echo "\"\$as_me:4913: $ac_compile\"" >&5)
 
6575
  (eval echo "\"\$as_me:6575: $ac_compile\"" >&5)
4914
6576
  (eval "$ac_compile" 2>conftest.err)
4915
6577
  cat conftest.err >&5
4916
 
  (eval echo "\"\$as_me:4916: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6578
  (eval echo "\"\$as_me:6578: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4917
6579
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4918
6580
  cat conftest.err >&5
4919
 
  (eval echo "\"\$as_me:4919: output\"" >&5)
 
6581
  (eval echo "\"\$as_me:6581: output\"" >&5)
4920
6582
  cat conftest.out >&5
4921
6583
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4922
6584
    lt_cv_nm_interface="MS dumpbin"
5386
7048
  lt_cv_deplibs_check_method=pass_all
5387
7049
  ;;
5388
7050
 
5389
 
netbsd* | netbsdelf*-gnu)
 
7051
netbsd*)
5390
7052
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5391
7053
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5392
7054
  else
6090
7752
 
6091
7753
 
6092
7754
 
6093
 
 
6094
7755
# Check whether --enable-libtool-lock was given.
6095
7756
if test "${enable_libtool_lock+set}" = set; then
6096
7757
  enableval=$enable_libtool_lock;
6122
7783
  ;;
6123
7784
*-*-irix6*)
6124
7785
  # Find out which ABI we are using.
6125
 
  echo '#line 6125 "configure"' > conftest.$ac_ext
 
7786
  echo '#line 7786 "configure"' > conftest.$ac_ext
6126
7787
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127
7788
  (eval $ac_compile) 2>&5
6128
7789
  ac_status=$?
6928
8589
  esac
6929
8590
 
6930
8591
 
6931
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6932
 
$as_echo_n "checking for ANSI C header files... " >&6; }
6933
 
if test "${ac_cv_header_stdc+set}" = set; then
6934
 
  $as_echo_n "(cached) " >&6
6935
 
else
6936
 
  cat >conftest.$ac_ext <<_ACEOF
6937
 
/* confdefs.h.  */
6938
 
_ACEOF
6939
 
cat confdefs.h >>conftest.$ac_ext
6940
 
cat >>conftest.$ac_ext <<_ACEOF
6941
 
/* end confdefs.h.  */
6942
 
#include <stdlib.h>
6943
 
#include <stdarg.h>
6944
 
#include <string.h>
6945
 
#include <float.h>
6946
 
 
6947
 
int
6948
 
main ()
6949
 
{
6950
 
 
6951
 
  ;
6952
 
  return 0;
6953
 
}
6954
 
_ACEOF
6955
 
rm -f conftest.$ac_objext
6956
 
if { (ac_try="$ac_compile"
6957
 
case "(($ac_try" in
6958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959
 
  *) ac_try_echo=$ac_try;;
6960
 
esac
6961
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962
 
$as_echo "$ac_try_echo") >&5
6963
 
  (eval "$ac_compile") 2>conftest.er1
6964
 
  ac_status=$?
6965
 
  grep -v '^ *+' conftest.er1 >conftest.err
6966
 
  rm -f conftest.er1
6967
 
  cat conftest.err >&5
6968
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969
 
  (exit $ac_status); } && {
6970
 
         test -z "$ac_c_werror_flag" ||
6971
 
         test ! -s conftest.err
6972
 
       } && test -s conftest.$ac_objext; then
6973
 
  ac_cv_header_stdc=yes
6974
 
else
6975
 
  $as_echo "$as_me: failed program was:" >&5
6976
 
sed 's/^/| /' conftest.$ac_ext >&5
6977
 
 
6978
 
        ac_cv_header_stdc=no
6979
 
fi
6980
 
 
6981
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982
 
 
6983
 
if test $ac_cv_header_stdc = yes; then
6984
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6985
 
  cat >conftest.$ac_ext <<_ACEOF
6986
 
/* confdefs.h.  */
6987
 
_ACEOF
6988
 
cat confdefs.h >>conftest.$ac_ext
6989
 
cat >>conftest.$ac_ext <<_ACEOF
6990
 
/* end confdefs.h.  */
6991
 
#include <string.h>
6992
 
 
6993
 
_ACEOF
6994
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995
 
  $EGREP "memchr" >/dev/null 2>&1; then
6996
 
  :
6997
 
else
6998
 
  ac_cv_header_stdc=no
6999
 
fi
7000
 
rm -f conftest*
7001
 
 
7002
 
fi
7003
 
 
7004
 
if test $ac_cv_header_stdc = yes; then
7005
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7006
 
  cat >conftest.$ac_ext <<_ACEOF
7007
 
/* confdefs.h.  */
7008
 
_ACEOF
7009
 
cat confdefs.h >>conftest.$ac_ext
7010
 
cat >>conftest.$ac_ext <<_ACEOF
7011
 
/* end confdefs.h.  */
7012
 
#include <stdlib.h>
7013
 
 
7014
 
_ACEOF
7015
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016
 
  $EGREP "free" >/dev/null 2>&1; then
7017
 
  :
7018
 
else
7019
 
  ac_cv_header_stdc=no
7020
 
fi
7021
 
rm -f conftest*
7022
 
 
7023
 
fi
7024
 
 
7025
 
if test $ac_cv_header_stdc = yes; then
7026
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7027
 
  if test "$cross_compiling" = yes; then
7028
 
  :
7029
 
else
7030
 
  cat >conftest.$ac_ext <<_ACEOF
7031
 
/* confdefs.h.  */
7032
 
_ACEOF
7033
 
cat confdefs.h >>conftest.$ac_ext
7034
 
cat >>conftest.$ac_ext <<_ACEOF
7035
 
/* end confdefs.h.  */
7036
 
#include <ctype.h>
7037
 
#include <stdlib.h>
7038
 
#if ((' ' & 0x0FF) == 0x020)
7039
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7040
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041
 
#else
7042
 
# define ISLOWER(c) \
7043
 
                   (('a' <= (c) && (c) <= 'i') \
7044
 
                     || ('j' <= (c) && (c) <= 'r') \
7045
 
                     || ('s' <= (c) && (c) <= 'z'))
7046
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7047
 
#endif
7048
 
 
7049
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7050
 
int
7051
 
main ()
7052
 
{
7053
 
  int i;
7054
 
  for (i = 0; i < 256; i++)
7055
 
    if (XOR (islower (i), ISLOWER (i))
7056
 
        || toupper (i) != TOUPPER (i))
7057
 
      return 2;
7058
 
  return 0;
7059
 
}
7060
 
_ACEOF
7061
 
rm -f conftest$ac_exeext
7062
 
if { (ac_try="$ac_link"
7063
 
case "(($ac_try" in
7064
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065
 
  *) ac_try_echo=$ac_try;;
7066
 
esac
7067
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068
 
$as_echo "$ac_try_echo") >&5
7069
 
  (eval "$ac_link") 2>&5
7070
 
  ac_status=$?
7071
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7073
 
  { (case "(($ac_try" in
7074
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075
 
  *) ac_try_echo=$ac_try;;
7076
 
esac
7077
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7078
 
$as_echo "$ac_try_echo") >&5
7079
 
  (eval "$ac_try") 2>&5
7080
 
  ac_status=$?
7081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082
 
  (exit $ac_status); }; }; then
7083
 
  :
7084
 
else
7085
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
7086
 
$as_echo "$as_me: failed program was:" >&5
7087
 
sed 's/^/| /' conftest.$ac_ext >&5
7088
 
 
7089
 
( exit $ac_status )
7090
 
ac_cv_header_stdc=no
7091
 
fi
7092
 
rm -rf conftest.dSYM
7093
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094
 
fi
7095
 
 
7096
 
 
7097
 
fi
7098
 
fi
7099
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7100
 
$as_echo "$ac_cv_header_stdc" >&6; }
7101
 
if test $ac_cv_header_stdc = yes; then
7102
 
 
7103
 
cat >>confdefs.h <<\_ACEOF
7104
 
#define STDC_HEADERS 1
7105
 
_ACEOF
7106
 
 
7107
 
fi
7108
 
 
7109
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7110
 
 
7111
 
 
7112
 
 
7113
 
 
7114
 
 
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7120
 
                  inttypes.h stdint.h unistd.h
7121
 
do
7122
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7124
 
$as_echo_n "checking for $ac_header... " >&6; }
7125
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126
 
  $as_echo_n "(cached) " >&6
7127
 
else
7128
 
  cat >conftest.$ac_ext <<_ACEOF
7129
 
/* confdefs.h.  */
7130
 
_ACEOF
7131
 
cat confdefs.h >>conftest.$ac_ext
7132
 
cat >>conftest.$ac_ext <<_ACEOF
7133
 
/* end confdefs.h.  */
7134
 
$ac_includes_default
7135
 
 
7136
 
#include <$ac_header>
7137
 
_ACEOF
7138
 
rm -f conftest.$ac_objext
7139
 
if { (ac_try="$ac_compile"
7140
 
case "(($ac_try" in
7141
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142
 
  *) ac_try_echo=$ac_try;;
7143
 
esac
7144
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145
 
$as_echo "$ac_try_echo") >&5
7146
 
  (eval "$ac_compile") 2>conftest.er1
7147
 
  ac_status=$?
7148
 
  grep -v '^ *+' conftest.er1 >conftest.err
7149
 
  rm -f conftest.er1
7150
 
  cat conftest.err >&5
7151
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152
 
  (exit $ac_status); } && {
7153
 
         test -z "$ac_c_werror_flag" ||
7154
 
         test ! -s conftest.err
7155
 
       } && test -s conftest.$ac_objext; then
7156
 
  eval "$as_ac_Header=yes"
7157
 
else
7158
 
  $as_echo "$as_me: failed program was:" >&5
7159
 
sed 's/^/| /' conftest.$ac_ext >&5
7160
 
 
7161
 
        eval "$as_ac_Header=no"
7162
 
fi
7163
 
 
7164
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165
 
fi
7166
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
7167
 
                 $as_echo "$as_val"'`
7168
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7169
 
$as_echo "$ac_res" >&6; }
7170
 
as_val=`eval 'as_val=${'$as_ac_Header'}
7171
 
                 $as_echo "$as_val"'`
7172
 
   if test "x$as_val" = x""yes; then
7173
 
  cat >>confdefs.h <<_ACEOF
7174
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175
 
_ACEOF
7176
 
 
7177
 
fi
7178
 
 
7179
 
done
7180
 
 
7181
 
 
7182
 
 
7183
8592
for ac_header in dlfcn.h
7184
8593
do
7185
8594
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714
9123
$RM -r conftest*
7715
9124
 
7716
9125
 
 
9126
## CAVEAT EMPTOR:
 
9127
## There is no encapsulation within the following macros, do not change
 
9128
## the running order or otherwise move them around unless you know exactly
 
9129
## what you are doing...
7717
9130
if test -n "$compiler"; then
7718
9131
 
7719
9132
lt_prog_compiler_no_builtin_flag=
7739
9152
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7740
9153
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7741
9154
   -e 's:$: $lt_compiler_flag:'`
7742
 
   (eval echo "\"\$as_me:7742: $lt_compile\"" >&5)
 
9155
   (eval echo "\"\$as_me:9155: $lt_compile\"" >&5)
7743
9156
   (eval "$lt_compile" 2>conftest.err)
7744
9157
   ac_status=$?
7745
9158
   cat conftest.err >&5
7746
 
   echo "$as_me:7746: \$? = $ac_status" >&5
 
9159
   echo "$as_me:9159: \$? = $ac_status" >&5
7747
9160
   if (exit $ac_status) && test -s "$ac_outfile"; then
7748
9161
     # The compiler can only warn and ignore the option if not recognized
7749
9162
     # So say no if there are warnings other than the usual output.
8078
9491
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079
9492
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080
9493
   -e 's:$: $lt_compiler_flag:'`
8081
 
   (eval echo "\"\$as_me:8081: $lt_compile\"" >&5)
 
9494
   (eval echo "\"\$as_me:9494: $lt_compile\"" >&5)
8082
9495
   (eval "$lt_compile" 2>conftest.err)
8083
9496
   ac_status=$?
8084
9497
   cat conftest.err >&5
8085
 
   echo "$as_me:8085: \$? = $ac_status" >&5
 
9498
   echo "$as_me:9498: \$? = $ac_status" >&5
8086
9499
   if (exit $ac_status) && test -s "$ac_outfile"; then
8087
9500
     # The compiler can only warn and ignore the option if not recognized
8088
9501
     # So say no if there are warnings other than the usual output.
8183
9596
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8184
9597
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8185
9598
   -e 's:$: $lt_compiler_flag:'`
8186
 
   (eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
 
9599
   (eval echo "\"\$as_me:9599: $lt_compile\"" >&5)
8187
9600
   (eval "$lt_compile" 2>out/conftest.err)
8188
9601
   ac_status=$?
8189
9602
   cat out/conftest.err >&5
8190
 
   echo "$as_me:8190: \$? = $ac_status" >&5
 
9603
   echo "$as_me:9603: \$? = $ac_status" >&5
8191
9604
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8192
9605
   then
8193
9606
     # The compiler can only warn and ignore the option if not recognized
8238
9651
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239
9652
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240
9653
   -e 's:$: $lt_compiler_flag:'`
8241
 
   (eval echo "\"\$as_me:8241: $lt_compile\"" >&5)
 
9654
   (eval echo "\"\$as_me:9654: $lt_compile\"" >&5)
8242
9655
   (eval "$lt_compile" 2>out/conftest.err)
8243
9656
   ac_status=$?
8244
9657
   cat out/conftest.err >&5
8245
 
   echo "$as_me:8245: \$? = $ac_status" >&5
 
9658
   echo "$as_me:9658: \$? = $ac_status" >&5
8246
9659
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8247
9660
   then
8248
9661
     # The compiler can only warn and ignore the option if not recognized
8539
9952
      fi
8540
9953
      ;;
8541
9954
 
8542
 
    netbsd* | netbsdelf*-gnu)
 
9955
    netbsd*)
8543
9956
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544
9957
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545
9958
        wlarc=
8714
10127
        if test "$aix_use_runtimelinking" = yes; then
8715
10128
          shared_flag="$shared_flag "'${wl}-G'
8716
10129
        fi
8717
 
        link_all_deplibs=no
8718
10130
      else
8719
10131
        # not using gcc
8720
10132
        if test "$host_cpu" = ia64; then
9129
10541
      link_all_deplibs=yes
9130
10542
      ;;
9131
10543
 
9132
 
    netbsd* | netbsdelf*-gnu)
 
10544
    netbsd*)
9133
10545
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9134
10546
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9135
10547
      else
10106
11518
  dynamic_linker='GNU/Linux ld.so'
10107
11519
  ;;
10108
11520
 
10109
 
netbsdelf*-gnu)
10110
 
  version_type=linux
10111
 
  need_lib_prefix=no
10112
 
  need_version=no
10113
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10114
 
  soname_spec='${libname}${release}${shared_ext}$major'
10115
 
  shlibpath_var=LD_LIBRARY_PATH
10116
 
  shlibpath_overrides_runpath=no
10117
 
  hardcode_into_libs=yes
10118
 
  dynamic_linker='NetBSD ld.elf_so'
10119
 
  ;;
10120
 
 
10121
11521
netbsd*)
10122
11522
  version_type=sunos
10123
11523
  need_lib_prefix=no
11051
12451
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11052
12452
  lt_status=$lt_dlunknown
11053
12453
  cat > conftest.$ac_ext <<_LT_EOF
11054
 
#line 11054 "configure"
 
12454
#line 12454 "configure"
11055
12455
#include "confdefs.h"
11056
12456
 
11057
12457
#if HAVE_DLFCN_H
11147
12547
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11148
12548
  lt_status=$lt_dlunknown
11149
12549
  cat > conftest.$ac_ext <<_LT_EOF
11150
 
#line 11150 "configure"
 
12550
#line 12550 "configure"
11151
12551
#include "confdefs.h"
11152
12552
 
11153
12553
#if HAVE_DLFCN_H
11377
12777
 
11378
12778
CFLAGS="$CFLAGS -D_GNU_SOURCE"
11379
12779
 
 
12780
{ $as_echo "$as_me:$LINENO: checking if gcc likes the -Werror flag" >&5
 
12781
$as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
 
12782
if test "${rd_cv_gcc_flag__Werror+set}" = set; then
 
12783
  $as_echo_n "(cached) " >&6
 
12784
else
 
12785
  cat >conftest.$ac_ext <<_ACEOF
 
12786
/* confdefs.h.  */
 
12787
_ACEOF
 
12788
cat confdefs.h >>conftest.$ac_ext
 
12789
cat >>conftest.$ac_ext <<_ACEOF
 
12790
/* end confdefs.h.  */
 
12791
 
 
12792
int
 
12793
main ()
 
12794
{
 
12795
return 0
 
12796
  ;
 
12797
  return 0;
 
12798
}
 
12799
_ACEOF
 
12800
rm -f conftest.$ac_objext
 
12801
if { (ac_try="$ac_compile"
 
12802
case "(($ac_try" in
 
12803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12804
  *) ac_try_echo=$ac_try;;
 
12805
esac
 
12806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12807
$as_echo "$ac_try_echo") >&5
 
12808
  (eval "$ac_compile") 2>conftest.er1
 
12809
  ac_status=$?
 
12810
  grep -v '^ *+' conftest.er1 >conftest.err
 
12811
  rm -f conftest.er1
 
12812
  cat conftest.err >&5
 
12813
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12814
  (exit $ac_status); } && {
 
12815
         test -z "$ac_c_werror_flag" ||
 
12816
         test ! -s conftest.err
 
12817
       } && test -s conftest.$ac_objext; then
 
12818
  rd_cv_gcc_flag__Werror="yes"
 
12819
else
 
12820
  $as_echo "$as_me: failed program was:" >&5
 
12821
sed 's/^/| /' conftest.$ac_ext >&5
 
12822
 
 
12823
        rd_cv_gcc_flag__Werror="no"
 
12824
fi
 
12825
 
 
12826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12827
fi
 
12828
{ $as_echo "$as_me:$LINENO: result: $rd_cv_gcc_flag__Werror" >&5
 
12829
$as_echo "$rd_cv_gcc_flag__Werror" >&6; }
 
12830
if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
 
12831
  WERROR="-Werror"
 
12832
else
 
12833
  WERROR=""
 
12834
fi
 
12835
 
 
12836
 
11380
12837
if test "x$GCC" = "xyes"; then
11381
12838
  for flag in -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
11382
12839
    oCFLAGS="$CFLAGS"
11918
13375
 
11919
13376
 
11920
13377
 
11921
 
for ac_header in libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
 
13378
 
 
13379
 
 
13380
for ac_header in langinfo.h stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
11922
13381
do
11923
13382
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924
13383
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13290
14749
 
13291
14750
 
13292
14751
 
13293
 
for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
 
14752
 
 
14753
for ac_func in nl_langinfo tzset fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
13294
14754
do
13295
14755
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296
14756
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13993
15453
 
13994
15454
 
13995
15455
 
 
15456
 
 
15457
for ac_func in socket
 
15458
do
 
15459
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15460
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15461
$as_echo_n "checking for $ac_func... " >&6; }
 
15462
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15463
  $as_echo_n "(cached) " >&6
 
15464
else
 
15465
  cat >conftest.$ac_ext <<_ACEOF
 
15466
/* confdefs.h.  */
 
15467
_ACEOF
 
15468
cat confdefs.h >>conftest.$ac_ext
 
15469
cat >>conftest.$ac_ext <<_ACEOF
 
15470
/* end confdefs.h.  */
 
15471
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15472
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15473
#define $ac_func innocuous_$ac_func
 
15474
 
 
15475
/* System header to define __stub macros and hopefully few prototypes,
 
15476
    which can conflict with char $ac_func (); below.
 
15477
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15478
    <limits.h> exists even on freestanding compilers.  */
 
15479
 
 
15480
#ifdef __STDC__
 
15481
# include <limits.h>
 
15482
#else
 
15483
# include <assert.h>
 
15484
#endif
 
15485
 
 
15486
#undef $ac_func
 
15487
 
 
15488
/* Override any GCC internal prototype to avoid an error.
 
15489
   Use char because int might match the return type of a GCC
 
15490
   builtin and then its argument prototype would still apply.  */
 
15491
#ifdef __cplusplus
 
15492
extern "C"
 
15493
#endif
 
15494
char $ac_func ();
 
15495
/* The GNU C library defines this for functions which it implements
 
15496
    to always fail with ENOSYS.  Some functions are actually named
 
15497
    something starting with __ and the normal name is an alias.  */
 
15498
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15499
choke me
 
15500
#endif
 
15501
 
 
15502
int
 
15503
main ()
 
15504
{
 
15505
return $ac_func ();
 
15506
  ;
 
15507
  return 0;
 
15508
}
 
15509
_ACEOF
 
15510
rm -f conftest.$ac_objext conftest$ac_exeext
 
15511
if { (ac_try="$ac_link"
 
15512
case "(($ac_try" in
 
15513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15514
  *) ac_try_echo=$ac_try;;
 
15515
esac
 
15516
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15517
$as_echo "$ac_try_echo") >&5
 
15518
  (eval "$ac_link") 2>conftest.er1
 
15519
  ac_status=$?
 
15520
  grep -v '^ *+' conftest.er1 >conftest.err
 
15521
  rm -f conftest.er1
 
15522
  cat conftest.err >&5
 
15523
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15524
  (exit $ac_status); } && {
 
15525
         test -z "$ac_c_werror_flag" ||
 
15526
         test ! -s conftest.err
 
15527
       } && test -s conftest$ac_exeext && {
 
15528
         test "$cross_compiling" = yes ||
 
15529
         $as_test_x conftest$ac_exeext
 
15530
       }; then
 
15531
  eval "$as_ac_var=yes"
 
15532
else
 
15533
  $as_echo "$as_me: failed program was:" >&5
 
15534
sed 's/^/| /' conftest.$ac_ext >&5
 
15535
 
 
15536
        eval "$as_ac_var=no"
 
15537
fi
 
15538
 
 
15539
rm -rf conftest.dSYM
 
15540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15541
      conftest$ac_exeext conftest.$ac_ext
 
15542
fi
 
15543
ac_res=`eval 'as_val=${'$as_ac_var'}
 
15544
                 $as_echo "$as_val"'`
 
15545
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
15546
$as_echo "$ac_res" >&6; }
 
15547
as_val=`eval 'as_val=${'$as_ac_var'}
 
15548
                 $as_echo "$as_val"'`
 
15549
   if test "x$as_val" = x""yes; then
 
15550
  cat >>confdefs.h <<_ACEOF
 
15551
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15552
_ACEOF
 
15553
 
 
15554
else
 
15555
  { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
15556
$as_echo_n "checking for socket in -lsocket... " >&6; }
 
15557
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
15558
  $as_echo_n "(cached) " >&6
 
15559
else
 
15560
  ac_check_lib_save_LIBS=$LIBS
 
15561
LIBS="-lsocket  $LIBS"
 
15562
cat >conftest.$ac_ext <<_ACEOF
 
15563
/* confdefs.h.  */
 
15564
_ACEOF
 
15565
cat confdefs.h >>conftest.$ac_ext
 
15566
cat >>conftest.$ac_ext <<_ACEOF
 
15567
/* end confdefs.h.  */
 
15568
 
 
15569
/* Override any GCC internal prototype to avoid an error.
 
15570
   Use char because int might match the return type of a GCC
 
15571
   builtin and then its argument prototype would still apply.  */
 
15572
#ifdef __cplusplus
 
15573
extern "C"
 
15574
#endif
 
15575
char socket ();
 
15576
int
 
15577
main ()
 
15578
{
 
15579
return socket ();
 
15580
  ;
 
15581
  return 0;
 
15582
}
 
15583
_ACEOF
 
15584
rm -f conftest.$ac_objext conftest$ac_exeext
 
15585
if { (ac_try="$ac_link"
 
15586
case "(($ac_try" in
 
15587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15588
  *) ac_try_echo=$ac_try;;
 
15589
esac
 
15590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15591
$as_echo "$ac_try_echo") >&5
 
15592
  (eval "$ac_link") 2>conftest.er1
 
15593
  ac_status=$?
 
15594
  grep -v '^ *+' conftest.er1 >conftest.err
 
15595
  rm -f conftest.er1
 
15596
  cat conftest.err >&5
 
15597
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15598
  (exit $ac_status); } && {
 
15599
         test -z "$ac_c_werror_flag" ||
 
15600
         test ! -s conftest.err
 
15601
       } && test -s conftest$ac_exeext && {
 
15602
         test "$cross_compiling" = yes ||
 
15603
         $as_test_x conftest$ac_exeext
 
15604
       }; then
 
15605
  ac_cv_lib_socket_socket=yes
 
15606
else
 
15607
  $as_echo "$as_me: failed program was:" >&5
 
15608
sed 's/^/| /' conftest.$ac_ext >&5
 
15609
 
 
15610
        ac_cv_lib_socket_socket=no
 
15611
fi
 
15612
 
 
15613
rm -rf conftest.dSYM
 
15614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15615
      conftest$ac_exeext conftest.$ac_ext
 
15616
LIBS=$ac_check_lib_save_LIBS
 
15617
fi
 
15618
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
15619
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
15620
if test "x$ac_cv_lib_socket_socket" = x""yes; then
 
15621
  LIBS="${LIBS} -lsocket"; cat >>confdefs.h <<\_ACEOF
 
15622
#define HAVE_SOCKET 1
 
15623
_ACEOF
 
15624
 
 
15625
fi
 
15626
 
 
15627
fi
 
15628
done
 
15629
 
 
15630
 
 
15631
for ac_func in getaddrinfo
 
15632
do
 
15633
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15634
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15635
$as_echo_n "checking for $ac_func... " >&6; }
 
15636
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15637
  $as_echo_n "(cached) " >&6
 
15638
else
 
15639
  cat >conftest.$ac_ext <<_ACEOF
 
15640
/* confdefs.h.  */
 
15641
_ACEOF
 
15642
cat confdefs.h >>conftest.$ac_ext
 
15643
cat >>conftest.$ac_ext <<_ACEOF
 
15644
/* end confdefs.h.  */
 
15645
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15646
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15647
#define $ac_func innocuous_$ac_func
 
15648
 
 
15649
/* System header to define __stub macros and hopefully few prototypes,
 
15650
    which can conflict with char $ac_func (); below.
 
15651
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15652
    <limits.h> exists even on freestanding compilers.  */
 
15653
 
 
15654
#ifdef __STDC__
 
15655
# include <limits.h>
 
15656
#else
 
15657
# include <assert.h>
 
15658
#endif
 
15659
 
 
15660
#undef $ac_func
 
15661
 
 
15662
/* Override any GCC internal prototype to avoid an error.
 
15663
   Use char because int might match the return type of a GCC
 
15664
   builtin and then its argument prototype would still apply.  */
 
15665
#ifdef __cplusplus
 
15666
extern "C"
 
15667
#endif
 
15668
char $ac_func ();
 
15669
/* The GNU C library defines this for functions which it implements
 
15670
    to always fail with ENOSYS.  Some functions are actually named
 
15671
    something starting with __ and the normal name is an alias.  */
 
15672
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15673
choke me
 
15674
#endif
 
15675
 
 
15676
int
 
15677
main ()
 
15678
{
 
15679
return $ac_func ();
 
15680
  ;
 
15681
  return 0;
 
15682
}
 
15683
_ACEOF
 
15684
rm -f conftest.$ac_objext conftest$ac_exeext
 
15685
if { (ac_try="$ac_link"
 
15686
case "(($ac_try" in
 
15687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15688
  *) ac_try_echo=$ac_try;;
 
15689
esac
 
15690
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15691
$as_echo "$ac_try_echo") >&5
 
15692
  (eval "$ac_link") 2>conftest.er1
 
15693
  ac_status=$?
 
15694
  grep -v '^ *+' conftest.er1 >conftest.err
 
15695
  rm -f conftest.er1
 
15696
  cat conftest.err >&5
 
15697
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15698
  (exit $ac_status); } && {
 
15699
         test -z "$ac_c_werror_flag" ||
 
15700
         test ! -s conftest.err
 
15701
       } && test -s conftest$ac_exeext && {
 
15702
         test "$cross_compiling" = yes ||
 
15703
         $as_test_x conftest$ac_exeext
 
15704
       }; then
 
15705
  eval "$as_ac_var=yes"
 
15706
else
 
15707
  $as_echo "$as_me: failed program was:" >&5
 
15708
sed 's/^/| /' conftest.$ac_ext >&5
 
15709
 
 
15710
        eval "$as_ac_var=no"
 
15711
fi
 
15712
 
 
15713
rm -rf conftest.dSYM
 
15714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15715
      conftest$ac_exeext conftest.$ac_ext
 
15716
fi
 
15717
ac_res=`eval 'as_val=${'$as_ac_var'}
 
15718
                 $as_echo "$as_val"'`
 
15719
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
15720
$as_echo "$ac_res" >&6; }
 
15721
as_val=`eval 'as_val=${'$as_ac_var'}
 
15722
                 $as_echo "$as_val"'`
 
15723
   if test "x$as_val" = x""yes; then
 
15724
  cat >>confdefs.h <<_ACEOF
 
15725
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15726
_ACEOF
 
15727
 
 
15728
else
 
15729
  { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5
 
15730
$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
 
15731
if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then
 
15732
  $as_echo_n "(cached) " >&6
 
15733
else
 
15734
  ac_check_lib_save_LIBS=$LIBS
 
15735
LIBS="-lnsl  $LIBS"
 
15736
cat >conftest.$ac_ext <<_ACEOF
 
15737
/* confdefs.h.  */
 
15738
_ACEOF
 
15739
cat confdefs.h >>conftest.$ac_ext
 
15740
cat >>conftest.$ac_ext <<_ACEOF
 
15741
/* end confdefs.h.  */
 
15742
 
 
15743
/* Override any GCC internal prototype to avoid an error.
 
15744
   Use char because int might match the return type of a GCC
 
15745
   builtin and then its argument prototype would still apply.  */
 
15746
#ifdef __cplusplus
 
15747
extern "C"
 
15748
#endif
 
15749
char getaddrinfo ();
 
15750
int
 
15751
main ()
 
15752
{
 
15753
return getaddrinfo ();
 
15754
  ;
 
15755
  return 0;
 
15756
}
 
15757
_ACEOF
 
15758
rm -f conftest.$ac_objext conftest$ac_exeext
 
15759
if { (ac_try="$ac_link"
 
15760
case "(($ac_try" in
 
15761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15762
  *) ac_try_echo=$ac_try;;
 
15763
esac
 
15764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15765
$as_echo "$ac_try_echo") >&5
 
15766
  (eval "$ac_link") 2>conftest.er1
 
15767
  ac_status=$?
 
15768
  grep -v '^ *+' conftest.er1 >conftest.err
 
15769
  rm -f conftest.er1
 
15770
  cat conftest.err >&5
 
15771
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15772
  (exit $ac_status); } && {
 
15773
         test -z "$ac_c_werror_flag" ||
 
15774
         test ! -s conftest.err
 
15775
       } && test -s conftest$ac_exeext && {
 
15776
         test "$cross_compiling" = yes ||
 
15777
         $as_test_x conftest$ac_exeext
 
15778
       }; then
 
15779
  ac_cv_lib_nsl_getaddrinfo=yes
 
15780
else
 
15781
  $as_echo "$as_me: failed program was:" >&5
 
15782
sed 's/^/| /' conftest.$ac_ext >&5
 
15783
 
 
15784
        ac_cv_lib_nsl_getaddrinfo=no
 
15785
fi
 
15786
 
 
15787
rm -rf conftest.dSYM
 
15788
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15789
      conftest$ac_exeext conftest.$ac_ext
 
15790
LIBS=$ac_check_lib_save_LIBS
 
15791
fi
 
15792
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5
 
15793
$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
 
15794
if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then
 
15795
  LIBS="${LIBS} -lnsl"; cat >>confdefs.h <<\_ACEOF
 
15796
#define HAVE_GETADDRINFO 1
 
15797
_ACEOF
 
15798
 
 
15799
fi
 
15800
 
 
15801
fi
 
15802
done
 
15803
 
 
15804
 
 
15805
 
 
15806
 
13996
15807
if test "x$enable_mmap" = "xyes"; then
13997
15808
  case "$host" in
13998
15809
  *cygwin*)
15277
17088
 
15278
17089
 
15279
17090
 
15280
 
GETTEXT_PACKAGE=rrdtool
15281
 
 
15282
 
 
15283
 
cat >>confdefs.h <<_ACEOF
15284
 
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15285
 
_ACEOF
15286
 
 
15287
 
 
15288
 
 
15289
 
 
15290
 
for ac_header in locale.h
15291
 
do
15292
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15295
 
$as_echo_n "checking for $ac_header... " >&6; }
15296
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297
 
  $as_echo_n "(cached) " >&6
15298
 
fi
15299
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
15300
 
                 $as_echo "$as_val"'`
15301
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15302
 
$as_echo "$ac_res" >&6; }
15303
 
else
15304
 
  # Is the header compilable?
15305
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15306
 
$as_echo_n "checking $ac_header usability... " >&6; }
15307
 
cat >conftest.$ac_ext <<_ACEOF
15308
 
/* confdefs.h.  */
15309
 
_ACEOF
15310
 
cat confdefs.h >>conftest.$ac_ext
15311
 
cat >>conftest.$ac_ext <<_ACEOF
15312
 
/* end confdefs.h.  */
15313
 
$ac_includes_default
15314
 
#include <$ac_header>
15315
 
_ACEOF
15316
 
rm -f conftest.$ac_objext
15317
 
if { (ac_try="$ac_compile"
15318
 
case "(($ac_try" in
15319
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320
 
  *) ac_try_echo=$ac_try;;
15321
 
esac
15322
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15323
 
$as_echo "$ac_try_echo") >&5
15324
 
  (eval "$ac_compile") 2>conftest.er1
15325
 
  ac_status=$?
15326
 
  grep -v '^ *+' conftest.er1 >conftest.err
15327
 
  rm -f conftest.er1
15328
 
  cat conftest.err >&5
15329
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330
 
  (exit $ac_status); } && {
15331
 
         test -z "$ac_c_werror_flag" ||
15332
 
         test ! -s conftest.err
15333
 
       } && test -s conftest.$ac_objext; then
15334
 
  ac_header_compiler=yes
15335
 
else
15336
 
  $as_echo "$as_me: failed program was:" >&5
15337
 
sed 's/^/| /' conftest.$ac_ext >&5
15338
 
 
15339
 
        ac_header_compiler=no
15340
 
fi
15341
 
 
15342
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344
 
$as_echo "$ac_header_compiler" >&6; }
15345
 
 
15346
 
# Is the header present?
15347
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348
 
$as_echo_n "checking $ac_header presence... " >&6; }
15349
 
cat >conftest.$ac_ext <<_ACEOF
15350
 
/* confdefs.h.  */
15351
 
_ACEOF
15352
 
cat confdefs.h >>conftest.$ac_ext
15353
 
cat >>conftest.$ac_ext <<_ACEOF
15354
 
/* end confdefs.h.  */
15355
 
#include <$ac_header>
15356
 
_ACEOF
15357
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
15358
 
case "(($ac_try" in
15359
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360
 
  *) ac_try_echo=$ac_try;;
15361
 
esac
15362
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15363
 
$as_echo "$ac_try_echo") >&5
15364
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15365
 
  ac_status=$?
15366
 
  grep -v '^ *+' conftest.er1 >conftest.err
15367
 
  rm -f conftest.er1
15368
 
  cat conftest.err >&5
15369
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370
 
  (exit $ac_status); } >/dev/null && {
15371
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15372
 
         test ! -s conftest.err
15373
 
       }; then
15374
 
  ac_header_preproc=yes
15375
 
else
15376
 
  $as_echo "$as_me: failed program was:" >&5
15377
 
sed 's/^/| /' conftest.$ac_ext >&5
15378
 
 
15379
 
  ac_header_preproc=no
15380
 
fi
15381
 
 
15382
 
rm -f conftest.err conftest.$ac_ext
15383
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384
 
$as_echo "$ac_header_preproc" >&6; }
15385
 
 
15386
 
# So?  What about this header?
15387
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15388
 
  yes:no: )
15389
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393
 
    ac_header_preproc=yes
15394
 
    ;;
15395
 
  no:yes:* )
15396
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15399
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15400
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15403
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15404
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15408
 
 
15409
 
    ;;
15410
 
esac
15411
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15412
 
$as_echo_n "checking for $ac_header... " >&6; }
15413
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15414
 
  $as_echo_n "(cached) " >&6
15415
 
else
15416
 
  eval "$as_ac_Header=\$ac_header_preproc"
15417
 
fi
15418
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
15419
 
                 $as_echo "$as_val"'`
15420
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15421
 
$as_echo "$ac_res" >&6; }
15422
 
 
15423
 
fi
15424
 
as_val=`eval 'as_val=${'$as_ac_Header'}
15425
 
                 $as_echo "$as_val"'`
15426
 
   if test "x$as_val" = x""yes; then
15427
 
  cat >>confdefs.h <<_ACEOF
15428
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15429
 
_ACEOF
15430
 
 
15431
 
fi
15432
 
 
15433
 
done
15434
 
 
15435
 
    if test $ac_cv_header_locale_h = yes; then
15436
 
    { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15437
 
$as_echo_n "checking for LC_MESSAGES... " >&6; }
15438
 
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15439
 
  $as_echo_n "(cached) " >&6
15440
 
else
15441
 
  cat >conftest.$ac_ext <<_ACEOF
15442
 
/* confdefs.h.  */
15443
 
_ACEOF
15444
 
cat confdefs.h >>conftest.$ac_ext
15445
 
cat >>conftest.$ac_ext <<_ACEOF
15446
 
/* end confdefs.h.  */
15447
 
#include <locale.h>
15448
 
int
15449
 
main ()
15450
 
{
15451
 
return LC_MESSAGES
15452
 
  ;
15453
 
  return 0;
15454
 
}
15455
 
_ACEOF
15456
 
rm -f conftest.$ac_objext conftest$ac_exeext
15457
 
if { (ac_try="$ac_link"
15458
 
case "(($ac_try" in
15459
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460
 
  *) ac_try_echo=$ac_try;;
15461
 
esac
15462
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463
 
$as_echo "$ac_try_echo") >&5
15464
 
  (eval "$ac_link") 2>conftest.er1
15465
 
  ac_status=$?
15466
 
  grep -v '^ *+' conftest.er1 >conftest.err
15467
 
  rm -f conftest.er1
15468
 
  cat conftest.err >&5
15469
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470
 
  (exit $ac_status); } && {
15471
 
         test -z "$ac_c_werror_flag" ||
15472
 
         test ! -s conftest.err
15473
 
       } && test -s conftest$ac_exeext && {
15474
 
         test "$cross_compiling" = yes ||
15475
 
         $as_test_x conftest$ac_exeext
15476
 
       }; then
15477
 
  am_cv_val_LC_MESSAGES=yes
15478
 
else
15479
 
  $as_echo "$as_me: failed program was:" >&5
15480
 
sed 's/^/| /' conftest.$ac_ext >&5
15481
 
 
15482
 
        am_cv_val_LC_MESSAGES=no
15483
 
fi
15484
 
 
15485
 
rm -rf conftest.dSYM
15486
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15487
 
      conftest$ac_exeext conftest.$ac_ext
15488
 
fi
15489
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15490
 
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15491
 
    if test $am_cv_val_LC_MESSAGES = yes; then
15492
 
 
15493
 
cat >>confdefs.h <<\_ACEOF
15494
 
#define HAVE_LC_MESSAGES 1
15495
 
_ACEOF
15496
 
 
15497
 
    fi
15498
 
  fi
15499
 
     USE_NLS=yes
15500
 
 
15501
 
 
15502
 
    gt_cv_have_gettext=no
15503
 
 
15504
 
    CATOBJEXT=NONE
15505
 
    XGETTEXT=:
15506
 
    INTLLIBS=
15507
 
 
15508
 
    if test "${ac_cv_header_libintl_h+set}" = set; then
15509
 
  { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15510
 
$as_echo_n "checking for libintl.h... " >&6; }
15511
 
if test "${ac_cv_header_libintl_h+set}" = set; then
15512
 
  $as_echo_n "(cached) " >&6
15513
 
fi
15514
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15515
 
$as_echo "$ac_cv_header_libintl_h" >&6; }
15516
 
else
15517
 
  # Is the header compilable?
15518
 
{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
15519
 
$as_echo_n "checking libintl.h usability... " >&6; }
15520
 
cat >conftest.$ac_ext <<_ACEOF
15521
 
/* confdefs.h.  */
15522
 
_ACEOF
15523
 
cat confdefs.h >>conftest.$ac_ext
15524
 
cat >>conftest.$ac_ext <<_ACEOF
15525
 
/* end confdefs.h.  */
15526
 
$ac_includes_default
15527
 
#include <libintl.h>
15528
 
_ACEOF
15529
 
rm -f conftest.$ac_objext
15530
 
if { (ac_try="$ac_compile"
15531
 
case "(($ac_try" in
15532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533
 
  *) ac_try_echo=$ac_try;;
15534
 
esac
15535
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536
 
$as_echo "$ac_try_echo") >&5
15537
 
  (eval "$ac_compile") 2>conftest.er1
15538
 
  ac_status=$?
15539
 
  grep -v '^ *+' conftest.er1 >conftest.err
15540
 
  rm -f conftest.er1
15541
 
  cat conftest.err >&5
15542
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543
 
  (exit $ac_status); } && {
15544
 
         test -z "$ac_c_werror_flag" ||
15545
 
         test ! -s conftest.err
15546
 
       } && test -s conftest.$ac_objext; then
15547
 
  ac_header_compiler=yes
15548
 
else
15549
 
  $as_echo "$as_me: failed program was:" >&5
15550
 
sed 's/^/| /' conftest.$ac_ext >&5
15551
 
 
15552
 
        ac_header_compiler=no
15553
 
fi
15554
 
 
15555
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557
 
$as_echo "$ac_header_compiler" >&6; }
15558
 
 
15559
 
# Is the header present?
15560
 
{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
15561
 
$as_echo_n "checking libintl.h presence... " >&6; }
15562
 
cat >conftest.$ac_ext <<_ACEOF
15563
 
/* confdefs.h.  */
15564
 
_ACEOF
15565
 
cat confdefs.h >>conftest.$ac_ext
15566
 
cat >>conftest.$ac_ext <<_ACEOF
15567
 
/* end confdefs.h.  */
15568
 
#include <libintl.h>
15569
 
_ACEOF
15570
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
15571
 
case "(($ac_try" in
15572
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573
 
  *) ac_try_echo=$ac_try;;
15574
 
esac
15575
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576
 
$as_echo "$ac_try_echo") >&5
15577
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15578
 
  ac_status=$?
15579
 
  grep -v '^ *+' conftest.er1 >conftest.err
15580
 
  rm -f conftest.er1
15581
 
  cat conftest.err >&5
15582
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583
 
  (exit $ac_status); } >/dev/null && {
15584
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15585
 
         test ! -s conftest.err
15586
 
       }; then
15587
 
  ac_header_preproc=yes
15588
 
else
15589
 
  $as_echo "$as_me: failed program was:" >&5
15590
 
sed 's/^/| /' conftest.$ac_ext >&5
15591
 
 
15592
 
  ac_header_preproc=no
15593
 
fi
15594
 
 
15595
 
rm -f conftest.err conftest.$ac_ext
15596
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597
 
$as_echo "$ac_header_preproc" >&6; }
15598
 
 
15599
 
# So?  What about this header?
15600
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601
 
  yes:no: )
15602
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15603
 
$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15604
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15605
 
$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15606
 
    ac_header_preproc=yes
15607
 
    ;;
15608
 
  no:yes:* )
15609
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15610
 
$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15611
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
15612
 
$as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
15613
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15614
 
$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15615
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
15616
 
$as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15617
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15618
 
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15619
 
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15620
 
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15621
 
 
15622
 
    ;;
15623
 
esac
15624
 
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15625
 
$as_echo_n "checking for libintl.h... " >&6; }
15626
 
if test "${ac_cv_header_libintl_h+set}" = set; then
15627
 
  $as_echo_n "(cached) " >&6
15628
 
else
15629
 
  ac_cv_header_libintl_h=$ac_header_preproc
15630
 
fi
15631
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15632
 
$as_echo "$ac_cv_header_libintl_h" >&6; }
15633
 
 
15634
 
fi
15635
 
if test "x$ac_cv_header_libintl_h" = x""yes; then
15636
 
  gt_cv_func_dgettext_libintl="no"
15637
 
      libintl_extra_libs=""
15638
 
 
15639
 
      #
15640
 
      # First check in libc
15641
 
      #
15642
 
      { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
15643
 
$as_echo_n "checking for ngettext in libc... " >&6; }
15644
 
if test "${gt_cv_func_ngettext_libc+set}" = set; then
15645
 
  $as_echo_n "(cached) " >&6
15646
 
else
15647
 
  cat >conftest.$ac_ext <<_ACEOF
15648
 
/* confdefs.h.  */
15649
 
_ACEOF
15650
 
cat confdefs.h >>conftest.$ac_ext
15651
 
cat >>conftest.$ac_ext <<_ACEOF
15652
 
/* end confdefs.h.  */
15653
 
 
15654
 
#include <libintl.h>
15655
 
 
15656
 
int
15657
 
main ()
15658
 
{
15659
 
return !ngettext ("","", 1)
15660
 
  ;
15661
 
  return 0;
15662
 
}
15663
 
_ACEOF
15664
 
rm -f conftest.$ac_objext conftest$ac_exeext
15665
 
if { (ac_try="$ac_link"
15666
 
case "(($ac_try" in
15667
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668
 
  *) ac_try_echo=$ac_try;;
15669
 
esac
15670
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15671
 
$as_echo "$ac_try_echo") >&5
15672
 
  (eval "$ac_link") 2>conftest.er1
15673
 
  ac_status=$?
15674
 
  grep -v '^ *+' conftest.er1 >conftest.err
15675
 
  rm -f conftest.er1
15676
 
  cat conftest.err >&5
15677
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678
 
  (exit $ac_status); } && {
15679
 
         test -z "$ac_c_werror_flag" ||
15680
 
         test ! -s conftest.err
15681
 
       } && test -s conftest$ac_exeext && {
15682
 
         test "$cross_compiling" = yes ||
15683
 
         $as_test_x conftest$ac_exeext
15684
 
       }; then
15685
 
  gt_cv_func_ngettext_libc=yes
15686
 
else
15687
 
  $as_echo "$as_me: failed program was:" >&5
15688
 
sed 's/^/| /' conftest.$ac_ext >&5
15689
 
 
15690
 
        gt_cv_func_ngettext_libc=no
15691
 
fi
15692
 
 
15693
 
rm -rf conftest.dSYM
15694
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695
 
      conftest$ac_exeext conftest.$ac_ext
15696
 
 
15697
 
fi
15698
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
15699
 
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
15700
 
 
15701
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15702
 
              { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
15703
 
$as_echo_n "checking for dgettext in libc... " >&6; }
15704
 
if test "${gt_cv_func_dgettext_libc+set}" = set; then
15705
 
  $as_echo_n "(cached) " >&6
15706
 
else
15707
 
  cat >conftest.$ac_ext <<_ACEOF
15708
 
/* confdefs.h.  */
15709
 
_ACEOF
15710
 
cat confdefs.h >>conftest.$ac_ext
15711
 
cat >>conftest.$ac_ext <<_ACEOF
15712
 
/* end confdefs.h.  */
15713
 
 
15714
 
#include <libintl.h>
15715
 
 
15716
 
int
15717
 
main ()
15718
 
{
15719
 
return !dgettext ("","")
15720
 
  ;
15721
 
  return 0;
15722
 
}
15723
 
_ACEOF
15724
 
rm -f conftest.$ac_objext conftest$ac_exeext
15725
 
if { (ac_try="$ac_link"
15726
 
case "(($ac_try" in
15727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728
 
  *) ac_try_echo=$ac_try;;
15729
 
esac
15730
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15731
 
$as_echo "$ac_try_echo") >&5
15732
 
  (eval "$ac_link") 2>conftest.er1
15733
 
  ac_status=$?
15734
 
  grep -v '^ *+' conftest.er1 >conftest.err
15735
 
  rm -f conftest.er1
15736
 
  cat conftest.err >&5
15737
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738
 
  (exit $ac_status); } && {
15739
 
         test -z "$ac_c_werror_flag" ||
15740
 
         test ! -s conftest.err
15741
 
       } && test -s conftest$ac_exeext && {
15742
 
         test "$cross_compiling" = yes ||
15743
 
         $as_test_x conftest$ac_exeext
15744
 
       }; then
15745
 
  gt_cv_func_dgettext_libc=yes
15746
 
else
15747
 
  $as_echo "$as_me: failed program was:" >&5
15748
 
sed 's/^/| /' conftest.$ac_ext >&5
15749
 
 
15750
 
        gt_cv_func_dgettext_libc=no
15751
 
fi
15752
 
 
15753
 
rm -rf conftest.dSYM
15754
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755
 
      conftest$ac_exeext conftest.$ac_ext
15756
 
 
15757
 
fi
15758
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
15759
 
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
15760
 
      fi
15761
 
 
15762
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15763
 
 
15764
 
for ac_func in bind_textdomain_codeset
15765
 
do
15766
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15768
 
$as_echo_n "checking for $ac_func... " >&6; }
15769
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15770
 
  $as_echo_n "(cached) " >&6
15771
 
else
15772
 
  cat >conftest.$ac_ext <<_ACEOF
15773
 
/* confdefs.h.  */
15774
 
_ACEOF
15775
 
cat confdefs.h >>conftest.$ac_ext
15776
 
cat >>conftest.$ac_ext <<_ACEOF
15777
 
/* end confdefs.h.  */
15778
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15779
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15780
 
#define $ac_func innocuous_$ac_func
15781
 
 
15782
 
/* System header to define __stub macros and hopefully few prototypes,
15783
 
    which can conflict with char $ac_func (); below.
15784
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15785
 
    <limits.h> exists even on freestanding compilers.  */
15786
 
 
15787
 
#ifdef __STDC__
15788
 
# include <limits.h>
15789
 
#else
15790
 
# include <assert.h>
15791
 
#endif
15792
 
 
15793
 
#undef $ac_func
15794
 
 
15795
 
/* Override any GCC internal prototype to avoid an error.
15796
 
   Use char because int might match the return type of a GCC
15797
 
   builtin and then its argument prototype would still apply.  */
15798
 
#ifdef __cplusplus
15799
 
extern "C"
15800
 
#endif
15801
 
char $ac_func ();
15802
 
/* The GNU C library defines this for functions which it implements
15803
 
    to always fail with ENOSYS.  Some functions are actually named
15804
 
    something starting with __ and the normal name is an alias.  */
15805
 
#if defined __stub_$ac_func || defined __stub___$ac_func
15806
 
choke me
15807
 
#endif
15808
 
 
15809
 
int
15810
 
main ()
15811
 
{
15812
 
return $ac_func ();
15813
 
  ;
15814
 
  return 0;
15815
 
}
15816
 
_ACEOF
15817
 
rm -f conftest.$ac_objext conftest$ac_exeext
15818
 
if { (ac_try="$ac_link"
15819
 
case "(($ac_try" in
15820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821
 
  *) ac_try_echo=$ac_try;;
15822
 
esac
15823
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15824
 
$as_echo "$ac_try_echo") >&5
15825
 
  (eval "$ac_link") 2>conftest.er1
15826
 
  ac_status=$?
15827
 
  grep -v '^ *+' conftest.er1 >conftest.err
15828
 
  rm -f conftest.er1
15829
 
  cat conftest.err >&5
15830
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831
 
  (exit $ac_status); } && {
15832
 
         test -z "$ac_c_werror_flag" ||
15833
 
         test ! -s conftest.err
15834
 
       } && test -s conftest$ac_exeext && {
15835
 
         test "$cross_compiling" = yes ||
15836
 
         $as_test_x conftest$ac_exeext
15837
 
       }; then
15838
 
  eval "$as_ac_var=yes"
15839
 
else
15840
 
  $as_echo "$as_me: failed program was:" >&5
15841
 
sed 's/^/| /' conftest.$ac_ext >&5
15842
 
 
15843
 
        eval "$as_ac_var=no"
15844
 
fi
15845
 
 
15846
 
rm -rf conftest.dSYM
15847
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15848
 
      conftest$ac_exeext conftest.$ac_ext
15849
 
fi
15850
 
ac_res=`eval 'as_val=${'$as_ac_var'}
15851
 
                 $as_echo "$as_val"'`
15852
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15853
 
$as_echo "$ac_res" >&6; }
15854
 
as_val=`eval 'as_val=${'$as_ac_var'}
15855
 
                 $as_echo "$as_val"'`
15856
 
   if test "x$as_val" = x""yes; then
15857
 
  cat >>confdefs.h <<_ACEOF
15858
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859
 
_ACEOF
15860
 
 
15861
 
fi
15862
 
done
15863
 
 
15864
 
      fi
15865
 
 
15866
 
      #
15867
 
      # If we don't have everything we want, check in libintl
15868
 
      #
15869
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
15870
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
15871
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15872
 
 
15873
 
        { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
15874
 
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15875
 
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
15876
 
  $as_echo_n "(cached) " >&6
15877
 
else
15878
 
  ac_check_lib_save_LIBS=$LIBS
15879
 
LIBS="-lintl  $LIBS"
15880
 
cat >conftest.$ac_ext <<_ACEOF
15881
 
/* confdefs.h.  */
15882
 
_ACEOF
15883
 
cat confdefs.h >>conftest.$ac_ext
15884
 
cat >>conftest.$ac_ext <<_ACEOF
15885
 
/* end confdefs.h.  */
15886
 
 
15887
 
/* Override any GCC internal prototype to avoid an error.
15888
 
   Use char because int might match the return type of a GCC
15889
 
   builtin and then its argument prototype would still apply.  */
15890
 
#ifdef __cplusplus
15891
 
extern "C"
15892
 
#endif
15893
 
char bindtextdomain ();
15894
 
int
15895
 
main ()
15896
 
{
15897
 
return bindtextdomain ();
15898
 
  ;
15899
 
  return 0;
15900
 
}
15901
 
_ACEOF
15902
 
rm -f conftest.$ac_objext conftest$ac_exeext
15903
 
if { (ac_try="$ac_link"
15904
 
case "(($ac_try" in
15905
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906
 
  *) ac_try_echo=$ac_try;;
15907
 
esac
15908
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909
 
$as_echo "$ac_try_echo") >&5
15910
 
  (eval "$ac_link") 2>conftest.er1
15911
 
  ac_status=$?
15912
 
  grep -v '^ *+' conftest.er1 >conftest.err
15913
 
  rm -f conftest.er1
15914
 
  cat conftest.err >&5
15915
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916
 
  (exit $ac_status); } && {
15917
 
         test -z "$ac_c_werror_flag" ||
15918
 
         test ! -s conftest.err
15919
 
       } && test -s conftest$ac_exeext && {
15920
 
         test "$cross_compiling" = yes ||
15921
 
         $as_test_x conftest$ac_exeext
15922
 
       }; then
15923
 
  ac_cv_lib_intl_bindtextdomain=yes
15924
 
else
15925
 
  $as_echo "$as_me: failed program was:" >&5
15926
 
sed 's/^/| /' conftest.$ac_ext >&5
15927
 
 
15928
 
        ac_cv_lib_intl_bindtextdomain=no
15929
 
fi
15930
 
 
15931
 
rm -rf conftest.dSYM
15932
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15933
 
      conftest$ac_exeext conftest.$ac_ext
15934
 
LIBS=$ac_check_lib_save_LIBS
15935
 
fi
15936
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
15937
 
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15938
 
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
15939
 
  { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15940
 
$as_echo_n "checking for ngettext in -lintl... " >&6; }
15941
 
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15942
 
  $as_echo_n "(cached) " >&6
15943
 
else
15944
 
  ac_check_lib_save_LIBS=$LIBS
15945
 
LIBS="-lintl  $LIBS"
15946
 
cat >conftest.$ac_ext <<_ACEOF
15947
 
/* confdefs.h.  */
15948
 
_ACEOF
15949
 
cat confdefs.h >>conftest.$ac_ext
15950
 
cat >>conftest.$ac_ext <<_ACEOF
15951
 
/* end confdefs.h.  */
15952
 
 
15953
 
/* Override any GCC internal prototype to avoid an error.
15954
 
   Use char because int might match the return type of a GCC
15955
 
   builtin and then its argument prototype would still apply.  */
15956
 
#ifdef __cplusplus
15957
 
extern "C"
15958
 
#endif
15959
 
char ngettext ();
15960
 
int
15961
 
main ()
15962
 
{
15963
 
return ngettext ();
15964
 
  ;
15965
 
  return 0;
15966
 
}
15967
 
_ACEOF
15968
 
rm -f conftest.$ac_objext conftest$ac_exeext
15969
 
if { (ac_try="$ac_link"
15970
 
case "(($ac_try" in
15971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972
 
  *) ac_try_echo=$ac_try;;
15973
 
esac
15974
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15975
 
$as_echo "$ac_try_echo") >&5
15976
 
  (eval "$ac_link") 2>conftest.er1
15977
 
  ac_status=$?
15978
 
  grep -v '^ *+' conftest.er1 >conftest.err
15979
 
  rm -f conftest.er1
15980
 
  cat conftest.err >&5
15981
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982
 
  (exit $ac_status); } && {
15983
 
         test -z "$ac_c_werror_flag" ||
15984
 
         test ! -s conftest.err
15985
 
       } && test -s conftest$ac_exeext && {
15986
 
         test "$cross_compiling" = yes ||
15987
 
         $as_test_x conftest$ac_exeext
15988
 
       }; then
15989
 
  ac_cv_lib_intl_ngettext=yes
15990
 
else
15991
 
  $as_echo "$as_me: failed program was:" >&5
15992
 
sed 's/^/| /' conftest.$ac_ext >&5
15993
 
 
15994
 
        ac_cv_lib_intl_ngettext=no
15995
 
fi
15996
 
 
15997
 
rm -rf conftest.dSYM
15998
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999
 
      conftest$ac_exeext conftest.$ac_ext
16000
 
LIBS=$ac_check_lib_save_LIBS
16001
 
fi
16002
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16003
 
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16004
 
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16005
 
  { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16006
 
$as_echo_n "checking for dgettext in -lintl... " >&6; }
16007
 
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16008
 
  $as_echo_n "(cached) " >&6
16009
 
else
16010
 
  ac_check_lib_save_LIBS=$LIBS
16011
 
LIBS="-lintl  $LIBS"
16012
 
cat >conftest.$ac_ext <<_ACEOF
16013
 
/* confdefs.h.  */
16014
 
_ACEOF
16015
 
cat confdefs.h >>conftest.$ac_ext
16016
 
cat >>conftest.$ac_ext <<_ACEOF
16017
 
/* end confdefs.h.  */
16018
 
 
16019
 
/* Override any GCC internal prototype to avoid an error.
16020
 
   Use char because int might match the return type of a GCC
16021
 
   builtin and then its argument prototype would still apply.  */
16022
 
#ifdef __cplusplus
16023
 
extern "C"
16024
 
#endif
16025
 
char dgettext ();
16026
 
int
16027
 
main ()
16028
 
{
16029
 
return dgettext ();
16030
 
  ;
16031
 
  return 0;
16032
 
}
16033
 
_ACEOF
16034
 
rm -f conftest.$ac_objext conftest$ac_exeext
16035
 
if { (ac_try="$ac_link"
16036
 
case "(($ac_try" in
16037
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038
 
  *) ac_try_echo=$ac_try;;
16039
 
esac
16040
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041
 
$as_echo "$ac_try_echo") >&5
16042
 
  (eval "$ac_link") 2>conftest.er1
16043
 
  ac_status=$?
16044
 
  grep -v '^ *+' conftest.er1 >conftest.err
16045
 
  rm -f conftest.er1
16046
 
  cat conftest.err >&5
16047
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
 
  (exit $ac_status); } && {
16049
 
         test -z "$ac_c_werror_flag" ||
16050
 
         test ! -s conftest.err
16051
 
       } && test -s conftest$ac_exeext && {
16052
 
         test "$cross_compiling" = yes ||
16053
 
         $as_test_x conftest$ac_exeext
16054
 
       }; then
16055
 
  ac_cv_lib_intl_dgettext=yes
16056
 
else
16057
 
  $as_echo "$as_me: failed program was:" >&5
16058
 
sed 's/^/| /' conftest.$ac_ext >&5
16059
 
 
16060
 
        ac_cv_lib_intl_dgettext=no
16061
 
fi
16062
 
 
16063
 
rm -rf conftest.dSYM
16064
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065
 
      conftest$ac_exeext conftest.$ac_ext
16066
 
LIBS=$ac_check_lib_save_LIBS
16067
 
fi
16068
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16069
 
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16070
 
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
16071
 
  gt_cv_func_dgettext_libintl=yes
16072
 
fi
16073
 
 
16074
 
fi
16075
 
 
16076
 
fi
16077
 
 
16078
 
 
16079
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16080
 
          { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
16081
 
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
16082
 
          { $as_echo "$as_me:$LINENO: result: " >&5
16083
 
$as_echo "" >&6; }
16084
 
          { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
16085
 
$as_echo_n "checking for ngettext in -lintl... " >&6; }
16086
 
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
16087
 
  $as_echo_n "(cached) " >&6
16088
 
else
16089
 
  ac_check_lib_save_LIBS=$LIBS
16090
 
LIBS="-lintl -liconv $LIBS"
16091
 
cat >conftest.$ac_ext <<_ACEOF
16092
 
/* confdefs.h.  */
16093
 
_ACEOF
16094
 
cat confdefs.h >>conftest.$ac_ext
16095
 
cat >>conftest.$ac_ext <<_ACEOF
16096
 
/* end confdefs.h.  */
16097
 
 
16098
 
/* Override any GCC internal prototype to avoid an error.
16099
 
   Use char because int might match the return type of a GCC
16100
 
   builtin and then its argument prototype would still apply.  */
16101
 
#ifdef __cplusplus
16102
 
extern "C"
16103
 
#endif
16104
 
char ngettext ();
16105
 
int
16106
 
main ()
16107
 
{
16108
 
return ngettext ();
16109
 
  ;
16110
 
  return 0;
16111
 
}
16112
 
_ACEOF
16113
 
rm -f conftest.$ac_objext conftest$ac_exeext
16114
 
if { (ac_try="$ac_link"
16115
 
case "(($ac_try" in
16116
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117
 
  *) ac_try_echo=$ac_try;;
16118
 
esac
16119
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16120
 
$as_echo "$ac_try_echo") >&5
16121
 
  (eval "$ac_link") 2>conftest.er1
16122
 
  ac_status=$?
16123
 
  grep -v '^ *+' conftest.er1 >conftest.err
16124
 
  rm -f conftest.er1
16125
 
  cat conftest.err >&5
16126
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127
 
  (exit $ac_status); } && {
16128
 
         test -z "$ac_c_werror_flag" ||
16129
 
         test ! -s conftest.err
16130
 
       } && test -s conftest$ac_exeext && {
16131
 
         test "$cross_compiling" = yes ||
16132
 
         $as_test_x conftest$ac_exeext
16133
 
       }; then
16134
 
  ac_cv_lib_intl_ngettext=yes
16135
 
else
16136
 
  $as_echo "$as_me: failed program was:" >&5
16137
 
sed 's/^/| /' conftest.$ac_ext >&5
16138
 
 
16139
 
        ac_cv_lib_intl_ngettext=no
16140
 
fi
16141
 
 
16142
 
rm -rf conftest.dSYM
16143
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16144
 
      conftest$ac_exeext conftest.$ac_ext
16145
 
LIBS=$ac_check_lib_save_LIBS
16146
 
fi
16147
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16148
 
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16149
 
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16150
 
  { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
16151
 
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
16152
 
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
16153
 
  $as_echo_n "(cached) " >&6
16154
 
else
16155
 
  ac_check_lib_save_LIBS=$LIBS
16156
 
LIBS="-lintl -liconv $LIBS"
16157
 
cat >conftest.$ac_ext <<_ACEOF
16158
 
/* confdefs.h.  */
16159
 
_ACEOF
16160
 
cat confdefs.h >>conftest.$ac_ext
16161
 
cat >>conftest.$ac_ext <<_ACEOF
16162
 
/* end confdefs.h.  */
16163
 
 
16164
 
/* Override any GCC internal prototype to avoid an error.
16165
 
   Use char because int might match the return type of a GCC
16166
 
   builtin and then its argument prototype would still apply.  */
16167
 
#ifdef __cplusplus
16168
 
extern "C"
16169
 
#endif
16170
 
char dcgettext ();
16171
 
int
16172
 
main ()
16173
 
{
16174
 
return dcgettext ();
16175
 
  ;
16176
 
  return 0;
16177
 
}
16178
 
_ACEOF
16179
 
rm -f conftest.$ac_objext conftest$ac_exeext
16180
 
if { (ac_try="$ac_link"
16181
 
case "(($ac_try" in
16182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183
 
  *) ac_try_echo=$ac_try;;
16184
 
esac
16185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186
 
$as_echo "$ac_try_echo") >&5
16187
 
  (eval "$ac_link") 2>conftest.er1
16188
 
  ac_status=$?
16189
 
  grep -v '^ *+' conftest.er1 >conftest.err
16190
 
  rm -f conftest.er1
16191
 
  cat conftest.err >&5
16192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193
 
  (exit $ac_status); } && {
16194
 
         test -z "$ac_c_werror_flag" ||
16195
 
         test ! -s conftest.err
16196
 
       } && test -s conftest$ac_exeext && {
16197
 
         test "$cross_compiling" = yes ||
16198
 
         $as_test_x conftest$ac_exeext
16199
 
       }; then
16200
 
  ac_cv_lib_intl_dcgettext=yes
16201
 
else
16202
 
  $as_echo "$as_me: failed program was:" >&5
16203
 
sed 's/^/| /' conftest.$ac_ext >&5
16204
 
 
16205
 
        ac_cv_lib_intl_dcgettext=no
16206
 
fi
16207
 
 
16208
 
rm -rf conftest.dSYM
16209
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16210
 
      conftest$ac_exeext conftest.$ac_ext
16211
 
LIBS=$ac_check_lib_save_LIBS
16212
 
fi
16213
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
16214
 
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16215
 
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
16216
 
  gt_cv_func_dgettext_libintl=yes
16217
 
                        libintl_extra_libs=-liconv
16218
 
else
16219
 
  :
16220
 
fi
16221
 
 
16222
 
else
16223
 
  :
16224
 
fi
16225
 
 
16226
 
        fi
16227
 
 
16228
 
        #
16229
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
16230
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
16231
 
        # and both have dgettext and ngettext
16232
 
        #
16233
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16234
 
          glib_save_LIBS="$LIBS"
16235
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
16236
 
          unset ac_cv_func_bind_textdomain_codeset
16237
 
 
16238
 
for ac_func in bind_textdomain_codeset
16239
 
do
16240
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16242
 
$as_echo_n "checking for $ac_func... " >&6; }
16243
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16244
 
  $as_echo_n "(cached) " >&6
16245
 
else
16246
 
  cat >conftest.$ac_ext <<_ACEOF
16247
 
/* confdefs.h.  */
16248
 
_ACEOF
16249
 
cat confdefs.h >>conftest.$ac_ext
16250
 
cat >>conftest.$ac_ext <<_ACEOF
16251
 
/* end confdefs.h.  */
16252
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16253
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16254
 
#define $ac_func innocuous_$ac_func
16255
 
 
16256
 
/* System header to define __stub macros and hopefully few prototypes,
16257
 
    which can conflict with char $ac_func (); below.
16258
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16259
 
    <limits.h> exists even on freestanding compilers.  */
16260
 
 
16261
 
#ifdef __STDC__
16262
 
# include <limits.h>
16263
 
#else
16264
 
# include <assert.h>
16265
 
#endif
16266
 
 
16267
 
#undef $ac_func
16268
 
 
16269
 
/* Override any GCC internal prototype to avoid an error.
16270
 
   Use char because int might match the return type of a GCC
16271
 
   builtin and then its argument prototype would still apply.  */
16272
 
#ifdef __cplusplus
16273
 
extern "C"
16274
 
#endif
16275
 
char $ac_func ();
16276
 
/* The GNU C library defines this for functions which it implements
16277
 
    to always fail with ENOSYS.  Some functions are actually named
16278
 
    something starting with __ and the normal name is an alias.  */
16279
 
#if defined __stub_$ac_func || defined __stub___$ac_func
16280
 
choke me
16281
 
#endif
16282
 
 
16283
 
int
16284
 
main ()
16285
 
{
16286
 
return $ac_func ();
16287
 
  ;
16288
 
  return 0;
16289
 
}
16290
 
_ACEOF
16291
 
rm -f conftest.$ac_objext conftest$ac_exeext
16292
 
if { (ac_try="$ac_link"
16293
 
case "(($ac_try" in
16294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295
 
  *) ac_try_echo=$ac_try;;
16296
 
esac
16297
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16298
 
$as_echo "$ac_try_echo") >&5
16299
 
  (eval "$ac_link") 2>conftest.er1
16300
 
  ac_status=$?
16301
 
  grep -v '^ *+' conftest.er1 >conftest.err
16302
 
  rm -f conftest.er1
16303
 
  cat conftest.err >&5
16304
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305
 
  (exit $ac_status); } && {
16306
 
         test -z "$ac_c_werror_flag" ||
16307
 
         test ! -s conftest.err
16308
 
       } && test -s conftest$ac_exeext && {
16309
 
         test "$cross_compiling" = yes ||
16310
 
         $as_test_x conftest$ac_exeext
16311
 
       }; then
16312
 
  eval "$as_ac_var=yes"
16313
 
else
16314
 
  $as_echo "$as_me: failed program was:" >&5
16315
 
sed 's/^/| /' conftest.$ac_ext >&5
16316
 
 
16317
 
        eval "$as_ac_var=no"
16318
 
fi
16319
 
 
16320
 
rm -rf conftest.dSYM
16321
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322
 
      conftest$ac_exeext conftest.$ac_ext
16323
 
fi
16324
 
ac_res=`eval 'as_val=${'$as_ac_var'}
16325
 
                 $as_echo "$as_val"'`
16326
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16327
 
$as_echo "$ac_res" >&6; }
16328
 
as_val=`eval 'as_val=${'$as_ac_var'}
16329
 
                 $as_echo "$as_val"'`
16330
 
   if test "x$as_val" = x""yes; then
16331
 
  cat >>confdefs.h <<_ACEOF
16332
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333
 
_ACEOF
16334
 
 
16335
 
fi
16336
 
done
16337
 
 
16338
 
          LIBS="$glib_save_LIBS"
16339
 
 
16340
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16341
 
            gt_cv_func_dgettext_libc=no
16342
 
          else
16343
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
16344
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
16345
 
              gt_cv_func_dgettext_libintl=no
16346
 
            fi
16347
 
          fi
16348
 
        fi
16349
 
      fi
16350
 
 
16351
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
16352
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
16353
 
        gt_cv_have_gettext=yes
16354
 
      fi
16355
 
 
16356
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16357
 
        INTLLIBS="-lintl $libintl_extra_libs"
16358
 
      fi
16359
 
 
16360
 
      if test "$gt_cv_have_gettext" = "yes"; then
16361
 
 
16362
 
cat >>confdefs.h <<\_ACEOF
16363
 
#define HAVE_GETTEXT 1
16364
 
_ACEOF
16365
 
 
16366
 
        # Extract the first word of "msgfmt", so it can be a program name with args.
16367
 
set dummy msgfmt; ac_word=$2
16368
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16369
 
$as_echo_n "checking for $ac_word... " >&6; }
16370
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
16371
 
  $as_echo_n "(cached) " >&6
16372
 
else
16373
 
  case "$MSGFMT" in
16374
 
  /*)
16375
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16376
 
  ;;
16377
 
  *)
16378
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16379
 
  for ac_dir in $PATH; do
16380
 
    test -z "$ac_dir" && ac_dir=.
16381
 
    if test -f $ac_dir/$ac_word; then
16382
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16383
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16384
 
        break
16385
 
      fi
16386
 
    fi
16387
 
  done
16388
 
  IFS="$ac_save_ifs"
16389
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16390
 
  ;;
16391
 
esac
16392
 
fi
16393
 
MSGFMT="$ac_cv_path_MSGFMT"
16394
 
if test "$MSGFMT" != "no"; then
16395
 
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16396
 
$as_echo "$MSGFMT" >&6; }
16397
 
else
16398
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16399
 
$as_echo "no" >&6; }
16400
 
fi
16401
 
        if test "$MSGFMT" != "no"; then
16402
 
          glib_save_LIBS="$LIBS"
16403
 
          LIBS="$LIBS $INTLLIBS"
16404
 
 
16405
 
for ac_func in dcgettext
16406
 
do
16407
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16409
 
$as_echo_n "checking for $ac_func... " >&6; }
16410
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16411
 
  $as_echo_n "(cached) " >&6
16412
 
else
16413
 
  cat >conftest.$ac_ext <<_ACEOF
16414
 
/* confdefs.h.  */
16415
 
_ACEOF
16416
 
cat confdefs.h >>conftest.$ac_ext
16417
 
cat >>conftest.$ac_ext <<_ACEOF
16418
 
/* end confdefs.h.  */
16419
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16421
 
#define $ac_func innocuous_$ac_func
16422
 
 
16423
 
/* System header to define __stub macros and hopefully few prototypes,
16424
 
    which can conflict with char $ac_func (); below.
16425
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426
 
    <limits.h> exists even on freestanding compilers.  */
16427
 
 
16428
 
#ifdef __STDC__
16429
 
# include <limits.h>
16430
 
#else
16431
 
# include <assert.h>
16432
 
#endif
16433
 
 
16434
 
#undef $ac_func
16435
 
 
16436
 
/* Override any GCC internal prototype to avoid an error.
16437
 
   Use char because int might match the return type of a GCC
16438
 
   builtin and then its argument prototype would still apply.  */
16439
 
#ifdef __cplusplus
16440
 
extern "C"
16441
 
#endif
16442
 
char $ac_func ();
16443
 
/* The GNU C library defines this for functions which it implements
16444
 
    to always fail with ENOSYS.  Some functions are actually named
16445
 
    something starting with __ and the normal name is an alias.  */
16446
 
#if defined __stub_$ac_func || defined __stub___$ac_func
16447
 
choke me
16448
 
#endif
16449
 
 
16450
 
int
16451
 
main ()
16452
 
{
16453
 
return $ac_func ();
16454
 
  ;
16455
 
  return 0;
16456
 
}
16457
 
_ACEOF
16458
 
rm -f conftest.$ac_objext conftest$ac_exeext
16459
 
if { (ac_try="$ac_link"
16460
 
case "(($ac_try" in
16461
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462
 
  *) ac_try_echo=$ac_try;;
16463
 
esac
16464
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465
 
$as_echo "$ac_try_echo") >&5
16466
 
  (eval "$ac_link") 2>conftest.er1
16467
 
  ac_status=$?
16468
 
  grep -v '^ *+' conftest.er1 >conftest.err
16469
 
  rm -f conftest.er1
16470
 
  cat conftest.err >&5
16471
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472
 
  (exit $ac_status); } && {
16473
 
         test -z "$ac_c_werror_flag" ||
16474
 
         test ! -s conftest.err
16475
 
       } && test -s conftest$ac_exeext && {
16476
 
         test "$cross_compiling" = yes ||
16477
 
         $as_test_x conftest$ac_exeext
16478
 
       }; then
16479
 
  eval "$as_ac_var=yes"
16480
 
else
16481
 
  $as_echo "$as_me: failed program was:" >&5
16482
 
sed 's/^/| /' conftest.$ac_ext >&5
16483
 
 
16484
 
        eval "$as_ac_var=no"
16485
 
fi
16486
 
 
16487
 
rm -rf conftest.dSYM
16488
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489
 
      conftest$ac_exeext conftest.$ac_ext
16490
 
fi
16491
 
ac_res=`eval 'as_val=${'$as_ac_var'}
16492
 
                 $as_echo "$as_val"'`
16493
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16494
 
$as_echo "$ac_res" >&6; }
16495
 
as_val=`eval 'as_val=${'$as_ac_var'}
16496
 
                 $as_echo "$as_val"'`
16497
 
   if test "x$as_val" = x""yes; then
16498
 
  cat >>confdefs.h <<_ACEOF
16499
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500
 
_ACEOF
16501
 
 
16502
 
fi
16503
 
done
16504
 
 
16505
 
          MSGFMT_OPTS=
16506
 
          { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
16507
 
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
16508
 
          cat >conftest.foo <<_ACEOF
16509
 
 
16510
 
msgid ""
16511
 
msgstr ""
16512
 
"Content-Type: text/plain; charset=UTF-8\n"
16513
 
"Project-Id-Version: test 1.0\n"
16514
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
16515
 
"Last-Translator: test <foo@bar.xx>\n"
16516
 
"Language-Team: C <LL@li.org>\n"
16517
 
"MIME-Version: 1.0\n"
16518
 
"Content-Transfer-Encoding: 8bit\n"
16519
 
 
16520
 
_ACEOF
16521
 
if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
16522
 
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16523
 
  ac_status=$?
16524
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525
 
  (exit $ac_status); }; then
16526
 
  MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
16527
 
$as_echo "yes" >&6; }
16528
 
else { $as_echo "$as_me:$LINENO: result: no" >&5
16529
 
$as_echo "no" >&6; }
16530
 
echo "$as_me: failed input was:" >&5
16531
 
sed 's/^/| /' conftest.foo >&5
16532
 
fi
16533
 
 
16534
 
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
16535
 
set dummy gmsgfmt; ac_word=$2
16536
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16537
 
$as_echo_n "checking for $ac_word... " >&6; }
16538
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
16539
 
  $as_echo_n "(cached) " >&6
16540
 
else
16541
 
  case $GMSGFMT in
16542
 
  [\\/]* | ?:[\\/]*)
16543
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16544
 
  ;;
16545
 
  *)
16546
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547
 
for as_dir in $PATH
16548
 
do
16549
 
  IFS=$as_save_IFS
16550
 
  test -z "$as_dir" && as_dir=.
16551
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16552
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16554
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16555
 
    break 2
16556
 
  fi
16557
 
done
16558
 
done
16559
 
IFS=$as_save_IFS
16560
 
 
16561
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16562
 
  ;;
16563
 
esac
16564
 
fi
16565
 
GMSGFMT=$ac_cv_path_GMSGFMT
16566
 
if test -n "$GMSGFMT"; then
16567
 
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16568
 
$as_echo "$GMSGFMT" >&6; }
16569
 
else
16570
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16571
 
$as_echo "no" >&6; }
16572
 
fi
16573
 
 
16574
 
 
16575
 
          # Extract the first word of "xgettext", so it can be a program name with args.
16576
 
set dummy xgettext; ac_word=$2
16577
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16578
 
$as_echo_n "checking for $ac_word... " >&6; }
16579
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
16580
 
  $as_echo_n "(cached) " >&6
16581
 
else
16582
 
  case "$XGETTEXT" in
16583
 
  /*)
16584
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16585
 
  ;;
16586
 
  *)
16587
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16588
 
  for ac_dir in $PATH; do
16589
 
    test -z "$ac_dir" && ac_dir=.
16590
 
    if test -f $ac_dir/$ac_word; then
16591
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16592
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16593
 
        break
16594
 
      fi
16595
 
    fi
16596
 
  done
16597
 
  IFS="$ac_save_ifs"
16598
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16599
 
  ;;
16600
 
esac
16601
 
fi
16602
 
XGETTEXT="$ac_cv_path_XGETTEXT"
16603
 
if test "$XGETTEXT" != ":"; then
16604
 
  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16605
 
$as_echo "$XGETTEXT" >&6; }
16606
 
else
16607
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16608
 
$as_echo "no" >&6; }
16609
 
fi
16610
 
 
16611
 
          cat >conftest.$ac_ext <<_ACEOF
16612
 
/* confdefs.h.  */
16613
 
_ACEOF
16614
 
cat confdefs.h >>conftest.$ac_ext
16615
 
cat >>conftest.$ac_ext <<_ACEOF
16616
 
/* end confdefs.h.  */
16617
 
 
16618
 
int
16619
 
main ()
16620
 
{
16621
 
extern int _nl_msg_cat_cntr;
16622
 
                         return _nl_msg_cat_cntr
16623
 
  ;
16624
 
  return 0;
16625
 
}
16626
 
_ACEOF
16627
 
rm -f conftest.$ac_objext conftest$ac_exeext
16628
 
if { (ac_try="$ac_link"
16629
 
case "(($ac_try" in
16630
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631
 
  *) ac_try_echo=$ac_try;;
16632
 
esac
16633
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16634
 
$as_echo "$ac_try_echo") >&5
16635
 
  (eval "$ac_link") 2>conftest.er1
16636
 
  ac_status=$?
16637
 
  grep -v '^ *+' conftest.er1 >conftest.err
16638
 
  rm -f conftest.er1
16639
 
  cat conftest.err >&5
16640
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641
 
  (exit $ac_status); } && {
16642
 
         test -z "$ac_c_werror_flag" ||
16643
 
         test ! -s conftest.err
16644
 
       } && test -s conftest$ac_exeext && {
16645
 
         test "$cross_compiling" = yes ||
16646
 
         $as_test_x conftest$ac_exeext
16647
 
       }; then
16648
 
  CATOBJEXT=.gmo
16649
 
             DATADIRNAME=share
16650
 
else
16651
 
  $as_echo "$as_me: failed program was:" >&5
16652
 
sed 's/^/| /' conftest.$ac_ext >&5
16653
 
 
16654
 
        case $host in
16655
 
            *-*-solaris*)
16656
 
                                                                { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
16657
 
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
16658
 
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
16659
 
  $as_echo_n "(cached) " >&6
16660
 
else
16661
 
  cat >conftest.$ac_ext <<_ACEOF
16662
 
/* confdefs.h.  */
16663
 
_ACEOF
16664
 
cat confdefs.h >>conftest.$ac_ext
16665
 
cat >>conftest.$ac_ext <<_ACEOF
16666
 
/* end confdefs.h.  */
16667
 
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
16668
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16669
 
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
16670
 
 
16671
 
/* System header to define __stub macros and hopefully few prototypes,
16672
 
    which can conflict with char bind_textdomain_codeset (); below.
16673
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16674
 
    <limits.h> exists even on freestanding compilers.  */
16675
 
 
16676
 
#ifdef __STDC__
16677
 
# include <limits.h>
16678
 
#else
16679
 
# include <assert.h>
16680
 
#endif
16681
 
 
16682
 
#undef bind_textdomain_codeset
16683
 
 
16684
 
/* Override any GCC internal prototype to avoid an error.
16685
 
   Use char because int might match the return type of a GCC
16686
 
   builtin and then its argument prototype would still apply.  */
16687
 
#ifdef __cplusplus
16688
 
extern "C"
16689
 
#endif
16690
 
char bind_textdomain_codeset ();
16691
 
/* The GNU C library defines this for functions which it implements
16692
 
    to always fail with ENOSYS.  Some functions are actually named
16693
 
    something starting with __ and the normal name is an alias.  */
16694
 
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
16695
 
choke me
16696
 
#endif
16697
 
 
16698
 
int
16699
 
main ()
16700
 
{
16701
 
return bind_textdomain_codeset ();
16702
 
  ;
16703
 
  return 0;
16704
 
}
16705
 
_ACEOF
16706
 
rm -f conftest.$ac_objext conftest$ac_exeext
16707
 
if { (ac_try="$ac_link"
16708
 
case "(($ac_try" in
16709
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710
 
  *) ac_try_echo=$ac_try;;
16711
 
esac
16712
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713
 
$as_echo "$ac_try_echo") >&5
16714
 
  (eval "$ac_link") 2>conftest.er1
16715
 
  ac_status=$?
16716
 
  grep -v '^ *+' conftest.er1 >conftest.err
16717
 
  rm -f conftest.er1
16718
 
  cat conftest.err >&5
16719
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720
 
  (exit $ac_status); } && {
16721
 
         test -z "$ac_c_werror_flag" ||
16722
 
         test ! -s conftest.err
16723
 
       } && test -s conftest$ac_exeext && {
16724
 
         test "$cross_compiling" = yes ||
16725
 
         $as_test_x conftest$ac_exeext
16726
 
       }; then
16727
 
  ac_cv_func_bind_textdomain_codeset=yes
16728
 
else
16729
 
  $as_echo "$as_me: failed program was:" >&5
16730
 
sed 's/^/| /' conftest.$ac_ext >&5
16731
 
 
16732
 
        ac_cv_func_bind_textdomain_codeset=no
16733
 
fi
16734
 
 
16735
 
rm -rf conftest.dSYM
16736
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737
 
      conftest$ac_exeext conftest.$ac_ext
16738
 
fi
16739
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
16740
 
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
16741
 
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
16742
 
  CATOBJEXT=.gmo
16743
 
               DATADIRNAME=share
16744
 
else
16745
 
  CATOBJEXT=.mo
16746
 
               DATADIRNAME=lib
16747
 
fi
16748
 
 
16749
 
            ;;
16750
 
            *)
16751
 
            CATOBJEXT=.mo
16752
 
            DATADIRNAME=lib
16753
 
            ;;
16754
 
            esac
16755
 
fi
16756
 
 
16757
 
rm -rf conftest.dSYM
16758
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16759
 
      conftest$ac_exeext conftest.$ac_ext
16760
 
          LIBS="$glib_save_LIBS"
16761
 
          INSTOBJEXT=.mo
16762
 
        else
16763
 
          gt_cv_have_gettext=no
16764
 
        fi
16765
 
      fi
16766
 
 
16767
 
fi
16768
 
 
16769
 
 
16770
 
 
16771
 
    if test "$gt_cv_have_gettext" = "yes" ; then
16772
 
 
16773
 
cat >>confdefs.h <<\_ACEOF
16774
 
#define ENABLE_NLS 1
16775
 
_ACEOF
16776
 
 
16777
 
    fi
16778
 
 
16779
 
        if test "$XGETTEXT" != ":"; then
16780
 
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16781
 
        : ;
16782
 
      else
16783
 
        { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16784
 
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16785
 
        XGETTEXT=":"
16786
 
      fi
16787
 
    fi
16788
 
 
16789
 
    # We need to process the po/ directory.
16790
 
    POSUB=po
16791
 
 
16792
 
    ac_config_commands="$ac_config_commands default-1"
16793
 
 
16794
 
 
16795
 
                for lang in $ALL_LINGUAS; do
16796
 
      GMOFILES="$GMOFILES $lang.gmo"
16797
 
      POFILES="$POFILES $lang.po"
16798
 
    done
16799
 
 
16800
 
 
16801
 
 
16802
 
 
16803
 
 
16804
 
 
16805
 
 
16806
 
 
16807
 
 
16808
 
 
16809
 
 
16810
 
 
16811
 
 
16812
 
   if test "$gt_cv_have_gettext" = "yes"; then
16813
 
     if test "x$ALL_LINGUAS" = "x"; then
16814
 
       LINGUAS=
16815
 
     else
16816
 
       { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16817
 
$as_echo_n "checking for catalogs to be installed... " >&6; }
16818
 
       NEW_LINGUAS=
16819
 
       for presentlang in $ALL_LINGUAS; do
16820
 
         useit=no
16821
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16822
 
           desiredlanguages="$LINGUAS"
16823
 
         else
16824
 
           desiredlanguages="$ALL_LINGUAS"
16825
 
         fi
16826
 
         for desiredlang in $desiredlanguages; do
16827
 
           # Use the presentlang catalog if desiredlang is
16828
 
           #   a. equal to presentlang, or
16829
 
           #   b. a variant of presentlang (because in this case,
16830
 
           #      presentlang can be used as a fallback for messages
16831
 
           #      which are not translated in the desiredlang catalog).
16832
 
           case "$desiredlang" in
16833
 
             "$presentlang"*) useit=yes;;
16834
 
           esac
16835
 
         done
16836
 
         if test $useit = yes; then
16837
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16838
 
         fi
16839
 
       done
16840
 
       LINGUAS=$NEW_LINGUAS
16841
 
       { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
16842
 
$as_echo "$LINGUAS" >&6; }
16843
 
     fi
16844
 
 
16845
 
          if test -n "$LINGUAS"; then
16846
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16847
 
     fi
16848
 
   fi
16849
 
 
16850
 
            MKINSTALLDIRS=
16851
 
   if test -n "$ac_aux_dir"; then
16852
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16853
 
   fi
16854
 
   if test -z "$MKINSTALLDIRS"; then
16855
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16856
 
   fi
16857
 
 
16858
 
 
16859
 
         test -d po || mkdir po
16860
 
   if test "x$srcdir" != "x."; then
16861
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16862
 
       posrcprefix="$srcdir/"
16863
 
     else
16864
 
       posrcprefix="../$srcdir/"
16865
 
     fi
16866
 
   else
16867
 
     posrcprefix="../"
16868
 
   fi
16869
 
   rm -f po/POTFILES
16870
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16871
 
        < $srcdir/po/POTFILES.in > po/POTFILES
16872
 
 
16873
 
 
16874
 
# Check whether --enable-libintl was given.
16875
 
if test "${enable_libintl+set}" = set; then
16876
 
  enableval=$enable_libintl;
16877
 
else
16878
 
  enable_libintl=yes
16879
 
fi
16880
 
 
16881
 
 
16882
 
if test x$enable_libintl = xyes; then
16883
17091
 
16884
17092
  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16885
17093
$as_echo_n "checking whether NLS is requested... " >&6; }
16896
17104
 
16897
17105
 
16898
17106
 
16899
 
case "$am__api_version" in
16900
 
    1.01234)
16901
 
        { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
16902
 
$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
16903
 
   { (exit 1); exit 1; }; }
16904
 
    ;;
16905
 
    *)
16906
 
    ;;
16907
 
esac
16908
 
 
16909
 
if test -n "0.35.0"; then
16910
 
    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
16911
 
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
16912
 
 
16913
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16914
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16915
 
    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16916
 
 
16917
 
    { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
16918
 
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
16919
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
16920
 
        { { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
16921
 
$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
16922
 
   { (exit 1); exit 1; }; }
16923
 
fi
16924
 
 
16925
 
# Extract the first word of "intltool-update", so it can be a program name with args.
16926
 
set dummy intltool-update; ac_word=$2
16927
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16928
 
$as_echo_n "checking for $ac_word... " >&6; }
16929
 
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
16930
 
  $as_echo_n "(cached) " >&6
16931
 
else
16932
 
  case $INTLTOOL_UPDATE in
16933
 
  [\\/]* | ?:[\\/]*)
16934
 
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
16935
 
  ;;
16936
 
  *)
16937
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938
 
for as_dir in $PATH
16939
 
do
16940
 
  IFS=$as_save_IFS
16941
 
  test -z "$as_dir" && as_dir=.
16942
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16943
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16944
 
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
16945
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16946
 
    break 2
16947
 
  fi
16948
 
done
16949
 
done
16950
 
IFS=$as_save_IFS
16951
 
 
16952
 
  ;;
16953
 
esac
16954
 
fi
16955
 
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
16956
 
if test -n "$INTLTOOL_UPDATE"; then
16957
 
  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
16958
 
$as_echo "$INTLTOOL_UPDATE" >&6; }
16959
 
else
16960
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16961
 
$as_echo "no" >&6; }
16962
 
fi
16963
 
 
16964
 
 
16965
 
# Extract the first word of "intltool-merge", so it can be a program name with args.
16966
 
set dummy intltool-merge; ac_word=$2
16967
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16968
 
$as_echo_n "checking for $ac_word... " >&6; }
16969
 
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
16970
 
  $as_echo_n "(cached) " >&6
16971
 
else
16972
 
  case $INTLTOOL_MERGE in
16973
 
  [\\/]* | ?:[\\/]*)
16974
 
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
16975
 
  ;;
16976
 
  *)
16977
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16978
 
for as_dir in $PATH
16979
 
do
16980
 
  IFS=$as_save_IFS
16981
 
  test -z "$as_dir" && as_dir=.
16982
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16983
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16984
 
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
16985
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16986
 
    break 2
16987
 
  fi
16988
 
done
16989
 
done
16990
 
IFS=$as_save_IFS
16991
 
 
16992
 
  ;;
16993
 
esac
16994
 
fi
16995
 
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
16996
 
if test -n "$INTLTOOL_MERGE"; then
16997
 
  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
16998
 
$as_echo "$INTLTOOL_MERGE" >&6; }
16999
 
else
17000
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
17001
 
$as_echo "no" >&6; }
17002
 
fi
17003
 
 
17004
 
 
17005
 
# Extract the first word of "intltool-extract", so it can be a program name with args.
17006
 
set dummy intltool-extract; ac_word=$2
17007
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17008
 
$as_echo_n "checking for $ac_word... " >&6; }
17009
 
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
17010
 
  $as_echo_n "(cached) " >&6
17011
 
else
17012
 
  case $INTLTOOL_EXTRACT in
17013
 
  [\\/]* | ?:[\\/]*)
17014
 
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
17015
 
  ;;
17016
 
  *)
17017
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018
 
for as_dir in $PATH
17019
 
do
17020
 
  IFS=$as_save_IFS
17021
 
  test -z "$as_dir" && as_dir=.
17022
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17023
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17024
 
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
17025
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17026
 
    break 2
17027
 
  fi
17028
 
done
17029
 
done
17030
 
IFS=$as_save_IFS
17031
 
 
17032
 
  ;;
17033
 
esac
17034
 
fi
17035
 
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
17036
 
if test -n "$INTLTOOL_EXTRACT"; then
17037
 
  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
17038
 
$as_echo "$INTLTOOL_EXTRACT" >&6; }
17039
 
else
17040
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
17041
 
$as_echo "no" >&6; }
17042
 
fi
17043
 
 
17044
 
 
17045
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
17046
 
    { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
17047
 
$as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
17048
 
   { (exit 1); exit 1; }; }
17049
 
fi
17050
 
 
17051
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17052
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17053
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17054
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17055
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
17056
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17057
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17058
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17059
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17060
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17061
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17062
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
17063
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17064
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17065
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17066
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17067
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17068
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17069
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
17070
 
 
17071
 
 
17072
 
 
17073
 
 
17074
 
 
17075
 
 
17076
 
 
17077
 
 
17078
 
 
17079
 
 
17080
 
 
17081
 
 
17082
 
 
17083
 
 
17084
 
 
17085
 
 
17086
 
 
17087
 
 
17088
 
 
17089
 
 
17090
 
 
17091
 
 
17092
 
 
17093
 
 
17094
 
 
17095
 
 
17096
 
 
17097
 
 
17098
 
 
17099
 
 
17100
 
 
17101
 
 
17102
 
 
17103
 
 
17104
 
 
17105
 
 
17106
 
 
17107
 
 
17108
 
 
17109
 
 
17110
 
 
17111
 
 
17112
 
 
17113
 
 
17114
 
 
17115
 
 
17116
 
 
17117
 
 
17118
 
 
17119
 
 
17120
 
 
17121
 
 
17122
 
 
17123
 
 
17124
 
 
17125
 
 
17126
 
 
17127
 
 
17128
 
 
17129
 
 
17130
 
 
17131
 
 
17132
 
 
17133
 
 
17134
 
 
17135
 
 
17136
 
 
17137
 
 
17138
 
 
17139
 
 
17140
 
 
17141
 
 
17142
 
 
17143
 
 
17144
 
 
17145
 
 
17146
 
 
17147
 
 
17148
 
 
17149
 
 
17150
 
 
17151
 
 
17152
 
 
17153
 
 
17154
 
 
17155
 
 
17156
 
 
17157
 
 
17158
 
 
17159
 
 
17160
 
 
17161
 
 
17162
 
 
17163
 
 
17164
 
 
17165
 
 
17166
 
 
17167
 
# Check the gettext tools to make sure they are GNU
 
17107
      GETTEXT_MACRO_VERSION=0.17
 
17108
 
 
17109
 
 
17110
 
 
17111
 
 
17112
# Prepare PATH_SEPARATOR.
 
17113
# The user is always right.
 
17114
if test "${PATH_SEPARATOR+set}" != set; then
 
17115
  echo "#! /bin/sh" >conf$$.sh
 
17116
  echo  "exit 0"   >>conf$$.sh
 
17117
  chmod +x conf$$.sh
 
17118
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
17119
    PATH_SEPARATOR=';'
 
17120
  else
 
17121
    PATH_SEPARATOR=:
 
17122
  fi
 
17123
  rm -f conf$$.sh
 
17124
fi
 
17125
 
 
17126
# Find out how to test for executable files. Don't use a zero-byte file,
 
17127
# as systems may use methods other than mode bits to determine executability.
 
17128
cat >conf$$.file <<_ASEOF
 
17129
#! /bin/sh
 
17130
exit 0
 
17131
_ASEOF
 
17132
chmod +x conf$$.file
 
17133
if test -x conf$$.file >/dev/null 2>&1; then
 
17134
  ac_executable_p="test -x"
 
17135
else
 
17136
  ac_executable_p="test -f"
 
17137
fi
 
17138
rm -f conf$$.file
 
17139
 
 
17140
# Extract the first word of "msgfmt", so it can be a program name with args.
 
17141
set dummy msgfmt; ac_word=$2
 
17142
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17143
$as_echo_n "checking for $ac_word... " >&6; }
 
17144
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
17145
  $as_echo_n "(cached) " >&6
 
17146
else
 
17147
  case "$MSGFMT" in
 
17148
  [\\/]* | ?:[\\/]*)
 
17149
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
17150
    ;;
 
17151
  *)
 
17152
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
17153
    for ac_dir in $PATH; do
 
17154
      IFS="$ac_save_IFS"
 
17155
      test -z "$ac_dir" && ac_dir=.
 
17156
      for ac_exec_ext in '' $ac_executable_extensions; do
 
17157
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
17158
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
17159
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
17160
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
17161
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
17162
            break 2
 
17163
          fi
 
17164
        fi
 
17165
      done
 
17166
    done
 
17167
    IFS="$ac_save_IFS"
 
17168
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
17169
    ;;
 
17170
esac
 
17171
fi
 
17172
MSGFMT="$ac_cv_path_MSGFMT"
 
17173
if test "$MSGFMT" != ":"; then
 
17174
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
17175
$as_echo "$MSGFMT" >&6; }
 
17176
else
 
17177
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
17178
$as_echo "no" >&6; }
 
17179
fi
 
17180
 
 
17181
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
17182
set dummy gmsgfmt; ac_word=$2
 
17183
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17184
$as_echo_n "checking for $ac_word... " >&6; }
 
17185
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
17186
  $as_echo_n "(cached) " >&6
 
17187
else
 
17188
  case $GMSGFMT in
 
17189
  [\\/]* | ?:[\\/]*)
 
17190
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
17191
  ;;
 
17192
  *)
 
17193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17194
for as_dir in $PATH
 
17195
do
 
17196
  IFS=$as_save_IFS
 
17197
  test -z "$as_dir" && as_dir=.
 
17198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17200
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
17201
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17202
    break 2
 
17203
  fi
 
17204
done
 
17205
done
 
17206
IFS=$as_save_IFS
 
17207
 
 
17208
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
17209
  ;;
 
17210
esac
 
17211
fi
 
17212
GMSGFMT=$ac_cv_path_GMSGFMT
 
17213
if test -n "$GMSGFMT"; then
 
17214
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
17215
$as_echo "$GMSGFMT" >&6; }
 
17216
else
 
17217
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
17218
$as_echo "no" >&6; }
 
17219
fi
 
17220
 
 
17221
 
 
17222
 
 
17223
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
17224
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
17225
    *) MSGFMT_015=$MSGFMT ;;
 
17226
  esac
 
17227
 
 
17228
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
17229
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
17230
    *) GMSGFMT_015=$GMSGFMT ;;
 
17231
  esac
 
17232
 
 
17233
 
 
17234
 
 
17235
# Prepare PATH_SEPARATOR.
 
17236
# The user is always right.
 
17237
if test "${PATH_SEPARATOR+set}" != set; then
 
17238
  echo "#! /bin/sh" >conf$$.sh
 
17239
  echo  "exit 0"   >>conf$$.sh
 
17240
  chmod +x conf$$.sh
 
17241
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
17242
    PATH_SEPARATOR=';'
 
17243
  else
 
17244
    PATH_SEPARATOR=:
 
17245
  fi
 
17246
  rm -f conf$$.sh
 
17247
fi
 
17248
 
 
17249
# Find out how to test for executable files. Don't use a zero-byte file,
 
17250
# as systems may use methods other than mode bits to determine executability.
 
17251
cat >conf$$.file <<_ASEOF
 
17252
#! /bin/sh
 
17253
exit 0
 
17254
_ASEOF
 
17255
chmod +x conf$$.file
 
17256
if test -x conf$$.file >/dev/null 2>&1; then
 
17257
  ac_executable_p="test -x"
 
17258
else
 
17259
  ac_executable_p="test -f"
 
17260
fi
 
17261
rm -f conf$$.file
 
17262
 
17168
17263
# Extract the first word of "xgettext", so it can be a program name with args.
17169
17264
set dummy xgettext; ac_word=$2
17170
17265
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17172
17267
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17173
17268
  $as_echo_n "(cached) " >&6
17174
17269
else
17175
 
  case $XGETTEXT in
 
17270
  case "$XGETTEXT" in
17176
17271
  [\\/]* | ?:[\\/]*)
17177
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17178
 
  ;;
 
17272
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
17273
    ;;
17179
17274
  *)
17180
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181
 
for as_dir in $PATH
17182
 
do
17183
 
  IFS=$as_save_IFS
17184
 
  test -z "$as_dir" && as_dir=.
17185
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17186
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17187
 
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
17188
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17189
 
    break 2
17190
 
  fi
17191
 
done
17192
 
done
17193
 
IFS=$as_save_IFS
17194
 
 
17195
 
  ;;
 
17275
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
17276
    for ac_dir in $PATH; do
 
17277
      IFS="$ac_save_IFS"
 
17278
      test -z "$ac_dir" && ac_dir=.
 
17279
      for ac_exec_ext in '' $ac_executable_extensions; do
 
17280
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
17281
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
17282
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
17283
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
17284
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
17285
            break 2
 
17286
          fi
 
17287
        fi
 
17288
      done
 
17289
    done
 
17290
    IFS="$ac_save_IFS"
 
17291
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
17292
    ;;
17196
17293
esac
17197
17294
fi
17198
 
XGETTEXT=$ac_cv_path_XGETTEXT
17199
 
if test -n "$XGETTEXT"; then
 
17295
XGETTEXT="$ac_cv_path_XGETTEXT"
 
17296
if test "$XGETTEXT" != ":"; then
17200
17297
  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17201
17298
$as_echo "$XGETTEXT" >&6; }
17202
17299
else
17204
17301
$as_echo "no" >&6; }
17205
17302
fi
17206
17303
 
 
17304
    rm -f messages.po
 
17305
 
 
17306
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
17307
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
17308
    *) XGETTEXT_015=$XGETTEXT ;;
 
17309
  esac
 
17310
 
 
17311
 
 
17312
 
 
17313
# Prepare PATH_SEPARATOR.
 
17314
# The user is always right.
 
17315
if test "${PATH_SEPARATOR+set}" != set; then
 
17316
  echo "#! /bin/sh" >conf$$.sh
 
17317
  echo  "exit 0"   >>conf$$.sh
 
17318
  chmod +x conf$$.sh
 
17319
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
17320
    PATH_SEPARATOR=';'
 
17321
  else
 
17322
    PATH_SEPARATOR=:
 
17323
  fi
 
17324
  rm -f conf$$.sh
 
17325
fi
 
17326
 
 
17327
# Find out how to test for executable files. Don't use a zero-byte file,
 
17328
# as systems may use methods other than mode bits to determine executability.
 
17329
cat >conf$$.file <<_ASEOF
 
17330
#! /bin/sh
 
17331
exit 0
 
17332
_ASEOF
 
17333
chmod +x conf$$.file
 
17334
if test -x conf$$.file >/dev/null 2>&1; then
 
17335
  ac_executable_p="test -x"
 
17336
else
 
17337
  ac_executable_p="test -f"
 
17338
fi
 
17339
rm -f conf$$.file
17207
17340
 
17208
17341
# Extract the first word of "msgmerge", so it can be a program name with args.
17209
17342
set dummy msgmerge; ac_word=$2
17212
17345
if test "${ac_cv_path_MSGMERGE+set}" = set; then
17213
17346
  $as_echo_n "(cached) " >&6
17214
17347
else
17215
 
  case $MSGMERGE in
 
17348
  case "$MSGMERGE" in
17216
17349
  [\\/]* | ?:[\\/]*)
17217
 
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17218
 
  ;;
 
17350
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
17351
    ;;
17219
17352
  *)
17220
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221
 
for as_dir in $PATH
17222
 
do
17223
 
  IFS=$as_save_IFS
17224
 
  test -z "$as_dir" && as_dir=.
17225
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17226
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17227
 
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17228
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17229
 
    break 2
17230
 
  fi
17231
 
done
17232
 
done
17233
 
IFS=$as_save_IFS
17234
 
 
17235
 
  ;;
 
17353
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
17354
    for ac_dir in $PATH; do
 
17355
      IFS="$ac_save_IFS"
 
17356
      test -z "$ac_dir" && ac_dir=.
 
17357
      for ac_exec_ext in '' $ac_executable_extensions; do
 
17358
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
17359
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
17360
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
17361
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
17362
            break 2
 
17363
          fi
 
17364
        fi
 
17365
      done
 
17366
    done
 
17367
    IFS="$ac_save_IFS"
 
17368
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
17369
    ;;
17236
17370
esac
17237
17371
fi
17238
 
MSGMERGE=$ac_cv_path_MSGMERGE
17239
 
if test -n "$MSGMERGE"; then
 
17372
MSGMERGE="$ac_cv_path_MSGMERGE"
 
17373
if test "$MSGMERGE" != ":"; then
17240
17374
  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17241
17375
$as_echo "$MSGMERGE" >&6; }
17242
17376
else
17245
17379
fi
17246
17380
 
17247
17381
 
17248
 
# Extract the first word of "msgfmt", so it can be a program name with args.
17249
 
set dummy msgfmt; ac_word=$2
17250
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17251
 
$as_echo_n "checking for $ac_word... " >&6; }
17252
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
17253
 
  $as_echo_n "(cached) " >&6
17254
 
else
17255
 
  case $MSGFMT in
17256
 
  [\\/]* | ?:[\\/]*)
17257
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17258
 
  ;;
17259
 
  *)
17260
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261
 
for as_dir in $PATH
17262
 
do
17263
 
  IFS=$as_save_IFS
17264
 
  test -z "$as_dir" && as_dir=.
17265
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17266
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17267
 
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17268
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17269
 
    break 2
17270
 
  fi
17271
 
done
17272
 
done
17273
 
IFS=$as_save_IFS
17274
 
 
17275
 
  ;;
17276
 
esac
17277
 
fi
17278
 
MSGFMT=$ac_cv_path_MSGFMT
17279
 
if test -n "$MSGFMT"; then
17280
 
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17281
 
$as_echo "$MSGFMT" >&6; }
17282
 
else
17283
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
17284
 
$as_echo "no" >&6; }
17285
 
fi
17286
 
 
17287
 
 
17288
 
# Extract the first word of "gmsgfmt", so it can be a program name with args.
17289
 
set dummy gmsgfmt; ac_word=$2
17290
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17291
 
$as_echo_n "checking for $ac_word... " >&6; }
17292
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17293
 
  $as_echo_n "(cached) " >&6
17294
 
else
17295
 
  case $GMSGFMT in
17296
 
  [\\/]* | ?:[\\/]*)
17297
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17298
 
  ;;
17299
 
  *)
17300
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301
 
for as_dir in $PATH
17302
 
do
17303
 
  IFS=$as_save_IFS
17304
 
  test -z "$as_dir" && as_dir=.
17305
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17306
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17307
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17308
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17309
 
    break 2
17310
 
  fi
17311
 
done
17312
 
done
17313
 
IFS=$as_save_IFS
17314
 
 
17315
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17316
 
  ;;
17317
 
esac
17318
 
fi
17319
 
GMSGFMT=$ac_cv_path_GMSGFMT
17320
 
if test -n "$GMSGFMT"; then
17321
 
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17322
 
$as_echo "$GMSGFMT" >&6; }
17323
 
else
17324
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
17325
 
$as_echo "no" >&6; }
17326
 
fi
17327
 
 
17328
 
 
17329
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
17330
 
    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17331
 
$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17332
 
   { (exit 1); exit 1; }; }
17333
 
fi
17334
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
17335
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
17336
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
17337
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
17338
 
    { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17339
 
$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17340
 
   { (exit 1); exit 1; }; }
17341
 
fi
17342
 
 
17343
 
# Extract the first word of "perl", so it can be a program name with args.
17344
 
set dummy perl; ac_word=$2
17345
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17346
 
$as_echo_n "checking for $ac_word... " >&6; }
17347
 
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
17348
 
  $as_echo_n "(cached) " >&6
17349
 
else
17350
 
  case $INTLTOOL_PERL in
17351
 
  [\\/]* | ?:[\\/]*)
17352
 
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
17353
 
  ;;
17354
 
  *)
17355
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17356
 
for as_dir in $PATH
17357
 
do
17358
 
  IFS=$as_save_IFS
17359
 
  test -z "$as_dir" && as_dir=.
17360
 
  for ac_exec_ext in '' $ac_executable_extensions; do
17361
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17362
 
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
17363
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17364
 
    break 2
17365
 
  fi
17366
 
done
17367
 
done
17368
 
IFS=$as_save_IFS
17369
 
 
17370
 
  ;;
17371
 
esac
17372
 
fi
17373
 
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
17374
 
if test -n "$INTLTOOL_PERL"; then
17375
 
  { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
17376
 
$as_echo "$INTLTOOL_PERL" >&6; }
17377
 
else
17378
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
17379
 
$as_echo "no" >&6; }
17380
 
fi
17381
 
 
17382
 
 
17383
 
if test -z "$INTLTOOL_PERL"; then
17384
 
   { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
17385
 
$as_echo "$as_me: error: perl not found" >&2;}
17386
 
   { (exit 1); exit 1; }; }
17387
 
fi
17388
 
{ $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
17389
 
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
17390
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
17391
 
if test $? -ne 0; then
17392
 
   { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
17393
 
$as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
17394
 
   { (exit 1); exit 1; }; }
17395
 
else
17396
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
17397
 
   { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
17398
 
$as_echo "$IT_PERL_VERSION" >&6; }
17399
 
fi
17400
 
if test "xno-xml" != "xno-xml"; then
17401
 
   { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
17402
 
$as_echo_n "checking for XML::Parser... " >&6; }
17403
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
17404
 
       { $as_echo "$as_me:$LINENO: result: ok" >&5
17405
 
$as_echo "ok" >&6; }
17406
 
   else
17407
 
       { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
17408
 
$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
17409
 
   { (exit 1); exit 1; }; }
17410
 
   fi
17411
 
fi
17412
 
 
17413
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
17414
 
 
17415
 
 
17416
 
# Set DATADIRNAME correctly if it is not set yet
17417
 
# (copied from glib-gettext.m4)
17418
 
if test -z "$DATADIRNAME"; then
17419
 
  cat >conftest.$ac_ext <<_ACEOF
17420
 
/* confdefs.h.  */
17421
 
_ACEOF
17422
 
cat confdefs.h >>conftest.$ac_ext
17423
 
cat >>conftest.$ac_ext <<_ACEOF
17424
 
/* end confdefs.h.  */
17425
 
 
17426
 
int
17427
 
main ()
17428
 
{
17429
 
extern int _nl_msg_cat_cntr;
17430
 
                       return _nl_msg_cat_cntr
17431
 
  ;
17432
 
  return 0;
17433
 
}
17434
 
_ACEOF
17435
 
rm -f conftest.$ac_objext conftest$ac_exeext
17436
 
if { (ac_try="$ac_link"
17437
 
case "(($ac_try" in
17438
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439
 
  *) ac_try_echo=$ac_try;;
17440
 
esac
17441
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17442
 
$as_echo "$ac_try_echo") >&5
17443
 
  (eval "$ac_link") 2>conftest.er1
17444
 
  ac_status=$?
17445
 
  grep -v '^ *+' conftest.er1 >conftest.err
17446
 
  rm -f conftest.er1
17447
 
  cat conftest.err >&5
17448
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449
 
  (exit $ac_status); } && {
17450
 
         test -z "$ac_c_werror_flag" ||
17451
 
         test ! -s conftest.err
17452
 
       } && test -s conftest$ac_exeext && {
17453
 
         test "$cross_compiling" = yes ||
17454
 
         $as_test_x conftest$ac_exeext
17455
 
       }; then
17456
 
  DATADIRNAME=share
17457
 
else
17458
 
  $as_echo "$as_me: failed program was:" >&5
17459
 
sed 's/^/| /' conftest.$ac_ext >&5
17460
 
 
17461
 
        case $host in
17462
 
    *-*-solaris*)
17463
 
                        { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
17464
 
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
17465
 
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
17466
 
  $as_echo_n "(cached) " >&6
17467
 
else
17468
 
  cat >conftest.$ac_ext <<_ACEOF
17469
 
/* confdefs.h.  */
17470
 
_ACEOF
17471
 
cat confdefs.h >>conftest.$ac_ext
17472
 
cat >>conftest.$ac_ext <<_ACEOF
17473
 
/* end confdefs.h.  */
17474
 
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
17475
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17476
 
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
17477
 
 
17478
 
/* System header to define __stub macros and hopefully few prototypes,
17479
 
    which can conflict with char bind_textdomain_codeset (); below.
17480
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481
 
    <limits.h> exists even on freestanding compilers.  */
17482
 
 
17483
 
#ifdef __STDC__
17484
 
# include <limits.h>
17485
 
#else
17486
 
# include <assert.h>
17487
 
#endif
17488
 
 
17489
 
#undef bind_textdomain_codeset
17490
 
 
17491
 
/* Override any GCC internal prototype to avoid an error.
17492
 
   Use char because int might match the return type of a GCC
17493
 
   builtin and then its argument prototype would still apply.  */
17494
 
#ifdef __cplusplus
17495
 
extern "C"
17496
 
#endif
17497
 
char bind_textdomain_codeset ();
17498
 
/* The GNU C library defines this for functions which it implements
17499
 
    to always fail with ENOSYS.  Some functions are actually named
17500
 
    something starting with __ and the normal name is an alias.  */
17501
 
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
17502
 
choke me
17503
 
#endif
17504
 
 
17505
 
int
17506
 
main ()
17507
 
{
17508
 
return bind_textdomain_codeset ();
17509
 
  ;
17510
 
  return 0;
17511
 
}
17512
 
_ACEOF
17513
 
rm -f conftest.$ac_objext conftest$ac_exeext
17514
 
if { (ac_try="$ac_link"
17515
 
case "(($ac_try" in
17516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517
 
  *) ac_try_echo=$ac_try;;
17518
 
esac
17519
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17520
 
$as_echo "$ac_try_echo") >&5
17521
 
  (eval "$ac_link") 2>conftest.er1
17522
 
  ac_status=$?
17523
 
  grep -v '^ *+' conftest.er1 >conftest.err
17524
 
  rm -f conftest.er1
17525
 
  cat conftest.err >&5
17526
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527
 
  (exit $ac_status); } && {
17528
 
         test -z "$ac_c_werror_flag" ||
17529
 
         test ! -s conftest.err
17530
 
       } && test -s conftest$ac_exeext && {
17531
 
         test "$cross_compiling" = yes ||
17532
 
         $as_test_x conftest$ac_exeext
17533
 
       }; then
17534
 
  ac_cv_func_bind_textdomain_codeset=yes
17535
 
else
17536
 
  $as_echo "$as_me: failed program was:" >&5
17537
 
sed 's/^/| /' conftest.$ac_ext >&5
17538
 
 
17539
 
        ac_cv_func_bind_textdomain_codeset=no
17540
 
fi
17541
 
 
17542
 
rm -rf conftest.dSYM
17543
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544
 
      conftest$ac_exeext conftest.$ac_ext
17545
 
fi
17546
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
17547
 
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
17548
 
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
17549
 
  DATADIRNAME=share
17550
 
else
17551
 
  DATADIRNAME=lib
17552
 
fi
17553
 
 
17554
 
    ;;
17555
 
    *)
17556
 
    DATADIRNAME=lib
17557
 
    ;;
17558
 
    esac
17559
 
fi
17560
 
 
17561
 
rm -rf conftest.dSYM
17562
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563
 
      conftest$ac_exeext conftest.$ac_ext
17564
 
fi
17565
 
 
17566
 
 
17567
 
 
17568
 
 
17569
 
 
17570
 
fi
17571
 
 
17572
 
if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
17573
 
  { $as_echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
17574
 
$as_echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
17575
 
  enable_libintl=no
17576
 
fi
17577
 
 
17578
 
if test x$enable_libintl = xyes; then
17579
 
 
17580
 
for ac_header in libintl.h
17581
 
do
17582
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17585
 
$as_echo_n "checking for $ac_header... " >&6; }
17586
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587
 
  $as_echo_n "(cached) " >&6
17588
 
fi
17589
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
17590
 
                 $as_echo "$as_val"'`
17591
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17592
 
$as_echo "$ac_res" >&6; }
17593
 
else
17594
 
  # Is the header compilable?
17595
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17596
 
$as_echo_n "checking $ac_header usability... " >&6; }
17597
 
cat >conftest.$ac_ext <<_ACEOF
17598
 
/* confdefs.h.  */
17599
 
_ACEOF
17600
 
cat confdefs.h >>conftest.$ac_ext
17601
 
cat >>conftest.$ac_ext <<_ACEOF
17602
 
/* end confdefs.h.  */
17603
 
$ac_includes_default
17604
 
#include <$ac_header>
17605
 
_ACEOF
17606
 
rm -f conftest.$ac_objext
17607
 
if { (ac_try="$ac_compile"
17608
 
case "(($ac_try" in
17609
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610
 
  *) ac_try_echo=$ac_try;;
17611
 
esac
17612
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17613
 
$as_echo "$ac_try_echo") >&5
17614
 
  (eval "$ac_compile") 2>conftest.er1
17615
 
  ac_status=$?
17616
 
  grep -v '^ *+' conftest.er1 >conftest.err
17617
 
  rm -f conftest.er1
17618
 
  cat conftest.err >&5
17619
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620
 
  (exit $ac_status); } && {
17621
 
         test -z "$ac_c_werror_flag" ||
17622
 
         test ! -s conftest.err
17623
 
       } && test -s conftest.$ac_objext; then
17624
 
  ac_header_compiler=yes
17625
 
else
17626
 
  $as_echo "$as_me: failed program was:" >&5
17627
 
sed 's/^/| /' conftest.$ac_ext >&5
17628
 
 
17629
 
        ac_header_compiler=no
17630
 
fi
17631
 
 
17632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17634
 
$as_echo "$ac_header_compiler" >&6; }
17635
 
 
17636
 
# Is the header present?
17637
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17638
 
$as_echo_n "checking $ac_header presence... " >&6; }
17639
 
cat >conftest.$ac_ext <<_ACEOF
17640
 
/* confdefs.h.  */
17641
 
_ACEOF
17642
 
cat confdefs.h >>conftest.$ac_ext
17643
 
cat >>conftest.$ac_ext <<_ACEOF
17644
 
/* end confdefs.h.  */
17645
 
#include <$ac_header>
17646
 
_ACEOF
17647
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
17648
 
case "(($ac_try" in
17649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650
 
  *) ac_try_echo=$ac_try;;
17651
 
esac
17652
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17653
 
$as_echo "$ac_try_echo") >&5
17654
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17655
 
  ac_status=$?
17656
 
  grep -v '^ *+' conftest.er1 >conftest.err
17657
 
  rm -f conftest.er1
17658
 
  cat conftest.err >&5
17659
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660
 
  (exit $ac_status); } >/dev/null && {
17661
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662
 
         test ! -s conftest.err
17663
 
       }; then
17664
 
  ac_header_preproc=yes
17665
 
else
17666
 
  $as_echo "$as_me: failed program was:" >&5
17667
 
sed 's/^/| /' conftest.$ac_ext >&5
17668
 
 
17669
 
  ac_header_preproc=no
17670
 
fi
17671
 
 
17672
 
rm -f conftest.err conftest.$ac_ext
17673
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674
 
$as_echo "$ac_header_preproc" >&6; }
17675
 
 
17676
 
# So?  What about this header?
17677
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17678
 
  yes:no: )
17679
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17680
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17682
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17683
 
    ac_header_preproc=yes
17684
 
    ;;
17685
 
  no:yes:* )
17686
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17687
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17688
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17689
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17690
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17691
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17692
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17693
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17694
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17695
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17696
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17697
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17698
 
 
17699
 
    ;;
17700
 
esac
17701
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17702
 
$as_echo_n "checking for $ac_header... " >&6; }
17703
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17704
 
  $as_echo_n "(cached) " >&6
17705
 
else
17706
 
  eval "$as_ac_Header=\$ac_header_preproc"
17707
 
fi
17708
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
17709
 
                 $as_echo "$as_val"'`
17710
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17711
 
$as_echo "$ac_res" >&6; }
17712
 
 
17713
 
fi
17714
 
as_val=`eval 'as_val=${'$as_ac_Header'}
17715
 
                 $as_echo "$as_val"'`
17716
 
   if test "x$as_val" = x""yes; then
17717
 
  cat >>confdefs.h <<_ACEOF
17718
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17719
 
_ACEOF
17720
 
 
17721
 
else
17722
 
  { $as_echo "$as_me:$LINENO: result: disabeling libintl build" >&5
17723
 
$as_echo "disabeling libintl build" >&6; }; enable_libintl=no
17724
 
fi
17725
 
 
17726
 
done
17727
 
 
17728
 
fi
17729
 
 
17730
 
if test x$enable_libintl = xyes ; then
17731
 
      { $as_echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
17732
 
$as_echo_n "checking for libintl_gettext in -lintl... " >&6; }
17733
 
if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
17734
 
  $as_echo_n "(cached) " >&6
17735
 
else
17736
 
  ac_check_lib_save_LIBS=$LIBS
17737
 
LIBS="-lintl  $LIBS"
17738
 
cat >conftest.$ac_ext <<_ACEOF
17739
 
/* confdefs.h.  */
17740
 
_ACEOF
17741
 
cat confdefs.h >>conftest.$ac_ext
17742
 
cat >>conftest.$ac_ext <<_ACEOF
17743
 
/* end confdefs.h.  */
17744
 
 
17745
 
/* Override any GCC internal prototype to avoid an error.
17746
 
   Use char because int might match the return type of a GCC
17747
 
   builtin and then its argument prototype would still apply.  */
17748
 
#ifdef __cplusplus
17749
 
extern "C"
17750
 
#endif
17751
 
char libintl_gettext ();
17752
 
int
17753
 
main ()
17754
 
{
17755
 
return libintl_gettext ();
17756
 
  ;
17757
 
  return 0;
17758
 
}
17759
 
_ACEOF
17760
 
rm -f conftest.$ac_objext conftest$ac_exeext
17761
 
if { (ac_try="$ac_link"
17762
 
case "(($ac_try" in
17763
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764
 
  *) ac_try_echo=$ac_try;;
17765
 
esac
17766
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767
 
$as_echo "$ac_try_echo") >&5
17768
 
  (eval "$ac_link") 2>conftest.er1
17769
 
  ac_status=$?
17770
 
  grep -v '^ *+' conftest.er1 >conftest.err
17771
 
  rm -f conftest.er1
17772
 
  cat conftest.err >&5
17773
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774
 
  (exit $ac_status); } && {
17775
 
         test -z "$ac_c_werror_flag" ||
17776
 
         test ! -s conftest.err
17777
 
       } && test -s conftest$ac_exeext && {
17778
 
         test "$cross_compiling" = yes ||
17779
 
         $as_test_x conftest$ac_exeext
17780
 
       }; then
17781
 
  ac_cv_lib_intl_libintl_gettext=yes
17782
 
else
17783
 
  $as_echo "$as_me: failed program was:" >&5
17784
 
sed 's/^/| /' conftest.$ac_ext >&5
17785
 
 
17786
 
        ac_cv_lib_intl_libintl_gettext=no
17787
 
fi
17788
 
 
17789
 
rm -rf conftest.dSYM
17790
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791
 
      conftest$ac_exeext conftest.$ac_ext
17792
 
LIBS=$ac_check_lib_save_LIBS
17793
 
fi
17794
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
17795
 
$as_echo "$ac_cv_lib_intl_libintl_gettext" >&6; }
17796
 
if test "x$ac_cv_lib_intl_libintl_gettext" = x""yes; then
17797
 
  LIB_LIBINTL="-lintl"
17798
 
fi
17799
 
 
17800
 
fi
17801
 
 
17802
 
 
17803
 
 
17804
 
 if test x$enable_libintl = xyes; then
17805
 
  BUILD_LIBINTL_TRUE=
17806
 
  BUILD_LIBINTL_FALSE='#'
17807
 
else
17808
 
  BUILD_LIBINTL_TRUE='#'
17809
 
  BUILD_LIBINTL_FALSE=
17810
 
fi
17811
 
 
17812
 
 
17813
 
if test x$enable_libintl = xyes; then
17814
 
 
17815
 
cat >>confdefs.h <<\_ACEOF
17816
 
#define BUILD_LIBINTL /**/
17817
 
_ACEOF
17818
 
 
17819
 
fi
 
17382
        test -n "$localedir" || localedir='${datadir}/locale'
 
17383
 
 
17384
 
 
17385
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
17386
 
 
17387
 
 
17388
  ac_config_commands="$ac_config_commands po-directories"
 
17389
 
 
17390
 
 
17391
 
 
17392
    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
 
17393
$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
 
17394
if test "${ac_cv_gnu_library_2+set}" = set; then
 
17395
  $as_echo_n "(cached) " >&6
 
17396
else
 
17397
  cat >conftest.$ac_ext <<_ACEOF
 
17398
/* confdefs.h.  */
 
17399
_ACEOF
 
17400
cat confdefs.h >>conftest.$ac_ext
 
17401
cat >>conftest.$ac_ext <<_ACEOF
 
17402
/* end confdefs.h.  */
 
17403
 
 
17404
#include <features.h>
 
17405
#ifdef __GNU_LIBRARY__
 
17406
 #if (__GLIBC__ >= 2)
 
17407
  Lucky GNU user
 
17408
 #endif
 
17409
#endif
 
17410
 
 
17411
_ACEOF
 
17412
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
17413
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
17414
  ac_cv_gnu_library_2=yes
 
17415
else
 
17416
  ac_cv_gnu_library_2=no
 
17417
fi
 
17418
rm -f conftest*
 
17419
 
 
17420
 
 
17421
 
 
17422
fi
 
17423
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
 
17424
$as_echo "$ac_cv_gnu_library_2" >&6; }
 
17425
 
 
17426
    GLIBC2="$ac_cv_gnu_library_2"
 
17427
 
 
17428
 
 
17429
if test -n "$ac_tool_prefix"; then
 
17430
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
17431
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
17432
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17433
$as_echo_n "checking for $ac_word... " >&6; }
 
17434
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
17435
  $as_echo_n "(cached) " >&6
 
17436
else
 
17437
  if test -n "$RANLIB"; then
 
17438
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
17439
else
 
17440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17441
for as_dir in $PATH
 
17442
do
 
17443
  IFS=$as_save_IFS
 
17444
  test -z "$as_dir" && as_dir=.
 
17445
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17446
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17447
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
17448
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17449
    break 2
 
17450
  fi
 
17451
done
 
17452
done
 
17453
IFS=$as_save_IFS
 
17454
 
 
17455
fi
 
17456
fi
 
17457
RANLIB=$ac_cv_prog_RANLIB
 
17458
if test -n "$RANLIB"; then
 
17459
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
17460
$as_echo "$RANLIB" >&6; }
 
17461
else
 
17462
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
17463
$as_echo "no" >&6; }
 
17464
fi
 
17465
 
 
17466
 
 
17467
fi
 
17468
if test -z "$ac_cv_prog_RANLIB"; then
 
17469
  ac_ct_RANLIB=$RANLIB
 
17470
  # Extract the first word of "ranlib", so it can be a program name with args.
 
17471
set dummy ranlib; ac_word=$2
 
17472
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17473
$as_echo_n "checking for $ac_word... " >&6; }
 
17474
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
17475
  $as_echo_n "(cached) " >&6
 
17476
else
 
17477
  if test -n "$ac_ct_RANLIB"; then
 
17478
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
17479
else
 
17480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17481
for as_dir in $PATH
 
17482
do
 
17483
  IFS=$as_save_IFS
 
17484
  test -z "$as_dir" && as_dir=.
 
17485
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17486
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17487
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
17488
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17489
    break 2
 
17490
  fi
 
17491
done
 
17492
done
 
17493
IFS=$as_save_IFS
 
17494
 
 
17495
fi
 
17496
fi
 
17497
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
17498
if test -n "$ac_ct_RANLIB"; then
 
17499
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
17500
$as_echo "$ac_ct_RANLIB" >&6; }
 
17501
else
 
17502
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
17503
$as_echo "no" >&6; }
 
17504
fi
 
17505
 
 
17506
  if test "x$ac_ct_RANLIB" = x; then
 
17507
    RANLIB=":"
 
17508
  else
 
17509
    case $cross_compiling:$ac_tool_warned in
 
17510
yes:)
 
17511
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
17512
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
17513
ac_tool_warned=yes ;;
 
17514
esac
 
17515
    RANLIB=$ac_ct_RANLIB
 
17516
  fi
 
17517
else
 
17518
  RANLIB="$ac_cv_prog_RANLIB"
 
17519
fi
 
17520
 
 
17521
 
 
17522
 
 
17523
  CFLAG_VISIBILITY=
 
17524
  HAVE_VISIBILITY=0
 
17525
  if test -n "$GCC"; then
 
17526
    { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
 
17527
$as_echo_n "checking for simple visibility declarations... " >&6; }
 
17528
    if test "${gl_cv_cc_visibility+set}" = set; then
 
17529
  $as_echo_n "(cached) " >&6
 
17530
else
 
17531
 
 
17532
      gl_save_CFLAGS="$CFLAGS"
 
17533
      CFLAGS="$CFLAGS -fvisibility=hidden"
 
17534
      cat >conftest.$ac_ext <<_ACEOF
 
17535
/* confdefs.h.  */
 
17536
_ACEOF
 
17537
cat confdefs.h >>conftest.$ac_ext
 
17538
cat >>conftest.$ac_ext <<_ACEOF
 
17539
/* end confdefs.h.  */
 
17540
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
 
17541
         extern __attribute__((__visibility__("default"))) int exportedvar;
 
17542
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
 
17543
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
 
17544
int
 
17545
main ()
 
17546
{
 
17547
 
 
17548
  ;
 
17549
  return 0;
 
17550
}
 
17551
_ACEOF
 
17552
rm -f conftest.$ac_objext
 
17553
if { (ac_try="$ac_compile"
 
17554
case "(($ac_try" in
 
17555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17556
  *) ac_try_echo=$ac_try;;
 
17557
esac
 
17558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17559
$as_echo "$ac_try_echo") >&5
 
17560
  (eval "$ac_compile") 2>conftest.er1
 
17561
  ac_status=$?
 
17562
  grep -v '^ *+' conftest.er1 >conftest.err
 
17563
  rm -f conftest.er1
 
17564
  cat conftest.err >&5
 
17565
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17566
  (exit $ac_status); } && {
 
17567
         test -z "$ac_c_werror_flag" ||
 
17568
         test ! -s conftest.err
 
17569
       } && test -s conftest.$ac_objext; then
 
17570
  gl_cv_cc_visibility=yes
 
17571
else
 
17572
  $as_echo "$as_me: failed program was:" >&5
 
17573
sed 's/^/| /' conftest.$ac_ext >&5
 
17574
 
 
17575
        gl_cv_cc_visibility=no
 
17576
fi
 
17577
 
 
17578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17579
      CFLAGS="$gl_save_CFLAGS"
 
17580
fi
 
17581
 
 
17582
    { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
 
17583
$as_echo "$gl_cv_cc_visibility" >&6; }
 
17584
    if test $gl_cv_cc_visibility = yes; then
 
17585
      CFLAG_VISIBILITY="-fvisibility=hidden"
 
17586
      HAVE_VISIBILITY=1
 
17587
    fi
 
17588
  fi
 
17589
 
 
17590
 
 
17591
 
 
17592
cat >>confdefs.h <<_ACEOF
 
17593
#define HAVE_VISIBILITY $HAVE_VISIBILITY
 
17594
_ACEOF
 
17595
 
 
17596
 
 
17597
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
17598
$as_echo_n "checking for inline... " >&6; }
 
17599
if test "${ac_cv_c_inline+set}" = set; then
 
17600
  $as_echo_n "(cached) " >&6
 
17601
else
 
17602
  ac_cv_c_inline=no
 
17603
for ac_kw in inline __inline__ __inline; do
 
17604
  cat >conftest.$ac_ext <<_ACEOF
 
17605
/* confdefs.h.  */
 
17606
_ACEOF
 
17607
cat confdefs.h >>conftest.$ac_ext
 
17608
cat >>conftest.$ac_ext <<_ACEOF
 
17609
/* end confdefs.h.  */
 
17610
#ifndef __cplusplus
 
17611
typedef int foo_t;
 
17612
static $ac_kw foo_t static_foo () {return 0; }
 
17613
$ac_kw foo_t foo () {return 0; }
 
17614
#endif
 
17615
 
 
17616
_ACEOF
 
17617
rm -f conftest.$ac_objext
 
17618
if { (ac_try="$ac_compile"
 
17619
case "(($ac_try" in
 
17620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17621
  *) ac_try_echo=$ac_try;;
 
17622
esac
 
17623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17624
$as_echo "$ac_try_echo") >&5
 
17625
  (eval "$ac_compile") 2>conftest.er1
 
17626
  ac_status=$?
 
17627
  grep -v '^ *+' conftest.er1 >conftest.err
 
17628
  rm -f conftest.er1
 
17629
  cat conftest.err >&5
 
17630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17631
  (exit $ac_status); } && {
 
17632
         test -z "$ac_c_werror_flag" ||
 
17633
         test ! -s conftest.err
 
17634
       } && test -s conftest.$ac_objext; then
 
17635
  ac_cv_c_inline=$ac_kw
 
17636
else
 
17637
  $as_echo "$as_me: failed program was:" >&5
 
17638
sed 's/^/| /' conftest.$ac_ext >&5
 
17639
 
 
17640
 
 
17641
fi
 
17642
 
 
17643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17644
  test "$ac_cv_c_inline" != no && break
 
17645
done
 
17646
 
 
17647
fi
 
17648
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
17649
$as_echo "$ac_cv_c_inline" >&6; }
 
17650
 
 
17651
 
 
17652
case $ac_cv_c_inline in
 
17653
  inline | yes) ;;
 
17654
  *)
 
17655
    case $ac_cv_c_inline in
 
17656
      no) ac_val=;;
 
17657
      *) ac_val=$ac_cv_c_inline;;
 
17658
    esac
 
17659
    cat >>confdefs.h <<_ACEOF
 
17660
#ifndef __cplusplus
 
17661
#define inline $ac_val
 
17662
#endif
 
17663
_ACEOF
 
17664
    ;;
 
17665
esac
 
17666
 
 
17667
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
17668
$as_echo_n "checking for size_t... " >&6; }
 
17669
if test "${ac_cv_type_size_t+set}" = set; then
 
17670
  $as_echo_n "(cached) " >&6
 
17671
else
 
17672
  ac_cv_type_size_t=no
 
17673
cat >conftest.$ac_ext <<_ACEOF
 
17674
/* confdefs.h.  */
 
17675
_ACEOF
 
17676
cat confdefs.h >>conftest.$ac_ext
 
17677
cat >>conftest.$ac_ext <<_ACEOF
 
17678
/* end confdefs.h.  */
 
17679
$ac_includes_default
 
17680
int
 
17681
main ()
 
17682
{
 
17683
if (sizeof (size_t))
 
17684
       return 0;
 
17685
  ;
 
17686
  return 0;
 
17687
}
 
17688
_ACEOF
 
17689
rm -f conftest.$ac_objext
 
17690
if { (ac_try="$ac_compile"
 
17691
case "(($ac_try" in
 
17692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17693
  *) ac_try_echo=$ac_try;;
 
17694
esac
 
17695
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17696
$as_echo "$ac_try_echo") >&5
 
17697
  (eval "$ac_compile") 2>conftest.er1
 
17698
  ac_status=$?
 
17699
  grep -v '^ *+' conftest.er1 >conftest.err
 
17700
  rm -f conftest.er1
 
17701
  cat conftest.err >&5
 
17702
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17703
  (exit $ac_status); } && {
 
17704
         test -z "$ac_c_werror_flag" ||
 
17705
         test ! -s conftest.err
 
17706
       } && test -s conftest.$ac_objext; then
 
17707
  cat >conftest.$ac_ext <<_ACEOF
 
17708
/* confdefs.h.  */
 
17709
_ACEOF
 
17710
cat confdefs.h >>conftest.$ac_ext
 
17711
cat >>conftest.$ac_ext <<_ACEOF
 
17712
/* end confdefs.h.  */
 
17713
$ac_includes_default
 
17714
int
 
17715
main ()
 
17716
{
 
17717
if (sizeof ((size_t)))
 
17718
          return 0;
 
17719
  ;
 
17720
  return 0;
 
17721
}
 
17722
_ACEOF
 
17723
rm -f conftest.$ac_objext
 
17724
if { (ac_try="$ac_compile"
 
17725
case "(($ac_try" in
 
17726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17727
  *) ac_try_echo=$ac_try;;
 
17728
esac
 
17729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17730
$as_echo "$ac_try_echo") >&5
 
17731
  (eval "$ac_compile") 2>conftest.er1
 
17732
  ac_status=$?
 
17733
  grep -v '^ *+' conftest.er1 >conftest.err
 
17734
  rm -f conftest.er1
 
17735
  cat conftest.err >&5
 
17736
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17737
  (exit $ac_status); } && {
 
17738
         test -z "$ac_c_werror_flag" ||
 
17739
         test ! -s conftest.err
 
17740
       } && test -s conftest.$ac_objext; then
 
17741
  :
 
17742
else
 
17743
  $as_echo "$as_me: failed program was:" >&5
 
17744
sed 's/^/| /' conftest.$ac_ext >&5
 
17745
 
 
17746
        ac_cv_type_size_t=yes
 
17747
fi
 
17748
 
 
17749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17750
else
 
17751
  $as_echo "$as_me: failed program was:" >&5
 
17752
sed 's/^/| /' conftest.$ac_ext >&5
 
17753
 
 
17754
 
 
17755
fi
 
17756
 
 
17757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17758
fi
 
17759
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
17760
$as_echo "$ac_cv_type_size_t" >&6; }
 
17761
if test "x$ac_cv_type_size_t" = x""yes; then
 
17762
  :
 
17763
else
 
17764
 
 
17765
cat >>confdefs.h <<_ACEOF
 
17766
#define size_t unsigned int
 
17767
_ACEOF
 
17768
 
 
17769
fi
 
17770
 
 
17771
 
 
17772
  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
 
17773
$as_echo_n "checking for stdint.h... " >&6; }
 
17774
if test "${gl_cv_header_stdint_h+set}" = set; then
 
17775
  $as_echo_n "(cached) " >&6
 
17776
else
 
17777
  cat >conftest.$ac_ext <<_ACEOF
 
17778
/* confdefs.h.  */
 
17779
_ACEOF
 
17780
cat confdefs.h >>conftest.$ac_ext
 
17781
cat >>conftest.$ac_ext <<_ACEOF
 
17782
/* end confdefs.h.  */
 
17783
#include <sys/types.h>
 
17784
#include <stdint.h>
 
17785
int
 
17786
main ()
 
17787
{
 
17788
uintmax_t i = (uintmax_t) -1; return !i;
 
17789
  ;
 
17790
  return 0;
 
17791
}
 
17792
_ACEOF
 
17793
rm -f conftest.$ac_objext
 
17794
if { (ac_try="$ac_compile"
 
17795
case "(($ac_try" in
 
17796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17797
  *) ac_try_echo=$ac_try;;
 
17798
esac
 
17799
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17800
$as_echo "$ac_try_echo") >&5
 
17801
  (eval "$ac_compile") 2>conftest.er1
 
17802
  ac_status=$?
 
17803
  grep -v '^ *+' conftest.er1 >conftest.err
 
17804
  rm -f conftest.er1
 
17805
  cat conftest.err >&5
 
17806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17807
  (exit $ac_status); } && {
 
17808
         test -z "$ac_c_werror_flag" ||
 
17809
         test ! -s conftest.err
 
17810
       } && test -s conftest.$ac_objext; then
 
17811
  gl_cv_header_stdint_h=yes
 
17812
else
 
17813
  $as_echo "$as_me: failed program was:" >&5
 
17814
sed 's/^/| /' conftest.$ac_ext >&5
 
17815
 
 
17816
        gl_cv_header_stdint_h=no
 
17817
fi
 
17818
 
 
17819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17820
fi
 
17821
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
17822
$as_echo "$gl_cv_header_stdint_h" >&6; }
 
17823
  if test $gl_cv_header_stdint_h = yes; then
 
17824
 
 
17825
cat >>confdefs.h <<_ACEOF
 
17826
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
17827
_ACEOF
 
17828
 
 
17829
  fi
 
17830
 
 
17831
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
17832
# for constant arguments.  Useless!
 
17833
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
17834
$as_echo_n "checking for working alloca.h... " >&6; }
 
17835
if test "${ac_cv_working_alloca_h+set}" = set; then
 
17836
  $as_echo_n "(cached) " >&6
 
17837
else
 
17838
  cat >conftest.$ac_ext <<_ACEOF
 
17839
/* confdefs.h.  */
 
17840
_ACEOF
 
17841
cat confdefs.h >>conftest.$ac_ext
 
17842
cat >>conftest.$ac_ext <<_ACEOF
 
17843
/* end confdefs.h.  */
 
17844
#include <alloca.h>
 
17845
int
 
17846
main ()
 
17847
{
 
17848
char *p = (char *) alloca (2 * sizeof (int));
 
17849
                          if (p) return 0;
 
17850
  ;
 
17851
  return 0;
 
17852
}
 
17853
_ACEOF
 
17854
rm -f conftest.$ac_objext conftest$ac_exeext
 
17855
if { (ac_try="$ac_link"
 
17856
case "(($ac_try" in
 
17857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17858
  *) ac_try_echo=$ac_try;;
 
17859
esac
 
17860
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17861
$as_echo "$ac_try_echo") >&5
 
17862
  (eval "$ac_link") 2>conftest.er1
 
17863
  ac_status=$?
 
17864
  grep -v '^ *+' conftest.er1 >conftest.err
 
17865
  rm -f conftest.er1
 
17866
  cat conftest.err >&5
 
17867
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17868
  (exit $ac_status); } && {
 
17869
         test -z "$ac_c_werror_flag" ||
 
17870
         test ! -s conftest.err
 
17871
       } && test -s conftest$ac_exeext && {
 
17872
         test "$cross_compiling" = yes ||
 
17873
         $as_test_x conftest$ac_exeext
 
17874
       }; then
 
17875
  ac_cv_working_alloca_h=yes
 
17876
else
 
17877
  $as_echo "$as_me: failed program was:" >&5
 
17878
sed 's/^/| /' conftest.$ac_ext >&5
 
17879
 
 
17880
        ac_cv_working_alloca_h=no
 
17881
fi
 
17882
 
 
17883
rm -rf conftest.dSYM
 
17884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17885
      conftest$ac_exeext conftest.$ac_ext
 
17886
fi
 
17887
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
17888
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
17889
if test $ac_cv_working_alloca_h = yes; then
 
17890
 
 
17891
cat >>confdefs.h <<\_ACEOF
 
17892
#define HAVE_ALLOCA_H 1
 
17893
_ACEOF
 
17894
 
 
17895
fi
 
17896
 
 
17897
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
 
17898
$as_echo_n "checking for alloca... " >&6; }
 
17899
if test "${ac_cv_func_alloca_works+set}" = set; then
 
17900
  $as_echo_n "(cached) " >&6
 
17901
else
 
17902
  cat >conftest.$ac_ext <<_ACEOF
 
17903
/* confdefs.h.  */
 
17904
_ACEOF
 
17905
cat confdefs.h >>conftest.$ac_ext
 
17906
cat >>conftest.$ac_ext <<_ACEOF
 
17907
/* end confdefs.h.  */
 
17908
#ifdef __GNUC__
 
17909
# define alloca __builtin_alloca
 
17910
#else
 
17911
# ifdef _MSC_VER
 
17912
#  include <malloc.h>
 
17913
#  define alloca _alloca
 
17914
# else
 
17915
#  ifdef HAVE_ALLOCA_H
 
17916
#   include <alloca.h>
 
17917
#  else
 
17918
#   ifdef _AIX
 
17919
 #pragma alloca
 
17920
#   else
 
17921
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
17922
char *alloca ();
 
17923
#    endif
 
17924
#   endif
 
17925
#  endif
 
17926
# endif
 
17927
#endif
 
17928
 
 
17929
int
 
17930
main ()
 
17931
{
 
17932
char *p = (char *) alloca (1);
 
17933
                                    if (p) return 0;
 
17934
  ;
 
17935
  return 0;
 
17936
}
 
17937
_ACEOF
 
17938
rm -f conftest.$ac_objext conftest$ac_exeext
 
17939
if { (ac_try="$ac_link"
 
17940
case "(($ac_try" in
 
17941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17942
  *) ac_try_echo=$ac_try;;
 
17943
esac
 
17944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17945
$as_echo "$ac_try_echo") >&5
 
17946
  (eval "$ac_link") 2>conftest.er1
 
17947
  ac_status=$?
 
17948
  grep -v '^ *+' conftest.er1 >conftest.err
 
17949
  rm -f conftest.er1
 
17950
  cat conftest.err >&5
 
17951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17952
  (exit $ac_status); } && {
 
17953
         test -z "$ac_c_werror_flag" ||
 
17954
         test ! -s conftest.err
 
17955
       } && test -s conftest$ac_exeext && {
 
17956
         test "$cross_compiling" = yes ||
 
17957
         $as_test_x conftest$ac_exeext
 
17958
       }; then
 
17959
  ac_cv_func_alloca_works=yes
 
17960
else
 
17961
  $as_echo "$as_me: failed program was:" >&5
 
17962
sed 's/^/| /' conftest.$ac_ext >&5
 
17963
 
 
17964
        ac_cv_func_alloca_works=no
 
17965
fi
 
17966
 
 
17967
rm -rf conftest.dSYM
 
17968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17969
      conftest$ac_exeext conftest.$ac_ext
 
17970
fi
 
17971
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
17972
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
17973
 
 
17974
if test $ac_cv_func_alloca_works = yes; then
 
17975
 
 
17976
cat >>confdefs.h <<\_ACEOF
 
17977
#define HAVE_ALLOCA 1
 
17978
_ACEOF
 
17979
 
 
17980
else
 
17981
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
17982
# that cause trouble.  Some versions do not even contain alloca or
 
17983
# contain a buggy version.  If you still want to use their alloca,
 
17984
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
17985
 
 
17986
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
17987
 
 
17988
cat >>confdefs.h <<\_ACEOF
 
17989
#define C_ALLOCA 1
 
17990
_ACEOF
 
17991
 
 
17992
 
 
17993
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
17994
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
17995
if test "${ac_cv_os_cray+set}" = set; then
 
17996
  $as_echo_n "(cached) " >&6
 
17997
else
 
17998
  cat >conftest.$ac_ext <<_ACEOF
 
17999
/* confdefs.h.  */
 
18000
_ACEOF
 
18001
cat confdefs.h >>conftest.$ac_ext
 
18002
cat >>conftest.$ac_ext <<_ACEOF
 
18003
/* end confdefs.h.  */
 
18004
#if defined CRAY && ! defined CRAY2
 
18005
webecray
 
18006
#else
 
18007
wenotbecray
 
18008
#endif
 
18009
 
 
18010
_ACEOF
 
18011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18012
  $EGREP "webecray" >/dev/null 2>&1; then
 
18013
  ac_cv_os_cray=yes
 
18014
else
 
18015
  ac_cv_os_cray=no
 
18016
fi
 
18017
rm -f conftest*
 
18018
 
 
18019
fi
 
18020
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
18021
$as_echo "$ac_cv_os_cray" >&6; }
 
18022
if test $ac_cv_os_cray = yes; then
 
18023
  for ac_func in _getb67 GETB67 getb67; do
 
18024
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18025
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18026
$as_echo_n "checking for $ac_func... " >&6; }
 
18027
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18028
  $as_echo_n "(cached) " >&6
 
18029
else
 
18030
  cat >conftest.$ac_ext <<_ACEOF
 
18031
/* confdefs.h.  */
 
18032
_ACEOF
 
18033
cat confdefs.h >>conftest.$ac_ext
 
18034
cat >>conftest.$ac_ext <<_ACEOF
 
18035
/* end confdefs.h.  */
 
18036
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18037
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18038
#define $ac_func innocuous_$ac_func
 
18039
 
 
18040
/* System header to define __stub macros and hopefully few prototypes,
 
18041
    which can conflict with char $ac_func (); below.
 
18042
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18043
    <limits.h> exists even on freestanding compilers.  */
 
18044
 
 
18045
#ifdef __STDC__
 
18046
# include <limits.h>
 
18047
#else
 
18048
# include <assert.h>
 
18049
#endif
 
18050
 
 
18051
#undef $ac_func
 
18052
 
 
18053
/* Override any GCC internal prototype to avoid an error.
 
18054
   Use char because int might match the return type of a GCC
 
18055
   builtin and then its argument prototype would still apply.  */
 
18056
#ifdef __cplusplus
 
18057
extern "C"
 
18058
#endif
 
18059
char $ac_func ();
 
18060
/* The GNU C library defines this for functions which it implements
 
18061
    to always fail with ENOSYS.  Some functions are actually named
 
18062
    something starting with __ and the normal name is an alias.  */
 
18063
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18064
choke me
 
18065
#endif
 
18066
 
 
18067
int
 
18068
main ()
 
18069
{
 
18070
return $ac_func ();
 
18071
  ;
 
18072
  return 0;
 
18073
}
 
18074
_ACEOF
 
18075
rm -f conftest.$ac_objext conftest$ac_exeext
 
18076
if { (ac_try="$ac_link"
 
18077
case "(($ac_try" in
 
18078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18079
  *) ac_try_echo=$ac_try;;
 
18080
esac
 
18081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18082
$as_echo "$ac_try_echo") >&5
 
18083
  (eval "$ac_link") 2>conftest.er1
 
18084
  ac_status=$?
 
18085
  grep -v '^ *+' conftest.er1 >conftest.err
 
18086
  rm -f conftest.er1
 
18087
  cat conftest.err >&5
 
18088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18089
  (exit $ac_status); } && {
 
18090
         test -z "$ac_c_werror_flag" ||
 
18091
         test ! -s conftest.err
 
18092
       } && test -s conftest$ac_exeext && {
 
18093
         test "$cross_compiling" = yes ||
 
18094
         $as_test_x conftest$ac_exeext
 
18095
       }; then
 
18096
  eval "$as_ac_var=yes"
 
18097
else
 
18098
  $as_echo "$as_me: failed program was:" >&5
 
18099
sed 's/^/| /' conftest.$ac_ext >&5
 
18100
 
 
18101
        eval "$as_ac_var=no"
 
18102
fi
 
18103
 
 
18104
rm -rf conftest.dSYM
 
18105
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18106
      conftest$ac_exeext conftest.$ac_ext
 
18107
fi
 
18108
ac_res=`eval 'as_val=${'$as_ac_var'}
 
18109
                 $as_echo "$as_val"'`
 
18110
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18111
$as_echo "$ac_res" >&6; }
 
18112
as_val=`eval 'as_val=${'$as_ac_var'}
 
18113
                 $as_echo "$as_val"'`
 
18114
   if test "x$as_val" = x""yes; then
 
18115
 
 
18116
cat >>confdefs.h <<_ACEOF
 
18117
#define CRAY_STACKSEG_END $ac_func
 
18118
_ACEOF
 
18119
 
 
18120
    break
 
18121
fi
 
18122
 
 
18123
  done
 
18124
fi
 
18125
 
 
18126
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
18127
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
18128
if test "${ac_cv_c_stack_direction+set}" = set; then
 
18129
  $as_echo_n "(cached) " >&6
 
18130
else
 
18131
  if test "$cross_compiling" = yes; then
 
18132
  ac_cv_c_stack_direction=0
 
18133
else
 
18134
  cat >conftest.$ac_ext <<_ACEOF
 
18135
/* confdefs.h.  */
 
18136
_ACEOF
 
18137
cat confdefs.h >>conftest.$ac_ext
 
18138
cat >>conftest.$ac_ext <<_ACEOF
 
18139
/* end confdefs.h.  */
 
18140
$ac_includes_default
 
18141
int
 
18142
find_stack_direction ()
 
18143
{
 
18144
  static char *addr = 0;
 
18145
  auto char dummy;
 
18146
  if (addr == 0)
 
18147
    {
 
18148
      addr = &dummy;
 
18149
      return find_stack_direction ();
 
18150
    }
 
18151
  else
 
18152
    return (&dummy > addr) ? 1 : -1;
 
18153
}
 
18154
 
 
18155
int
 
18156
main ()
 
18157
{
 
18158
  return find_stack_direction () < 0;
 
18159
}
 
18160
_ACEOF
 
18161
rm -f conftest$ac_exeext
 
18162
if { (ac_try="$ac_link"
 
18163
case "(($ac_try" in
 
18164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18165
  *) ac_try_echo=$ac_try;;
 
18166
esac
 
18167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18168
$as_echo "$ac_try_echo") >&5
 
18169
  (eval "$ac_link") 2>&5
 
18170
  ac_status=$?
 
18171
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18172
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18173
  { (case "(($ac_try" in
 
18174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18175
  *) ac_try_echo=$ac_try;;
 
18176
esac
 
18177
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18178
$as_echo "$ac_try_echo") >&5
 
18179
  (eval "$ac_try") 2>&5
 
18180
  ac_status=$?
 
18181
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18182
  (exit $ac_status); }; }; then
 
18183
  ac_cv_c_stack_direction=1
 
18184
else
 
18185
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
18186
$as_echo "$as_me: failed program was:" >&5
 
18187
sed 's/^/| /' conftest.$ac_ext >&5
 
18188
 
 
18189
( exit $ac_status )
 
18190
ac_cv_c_stack_direction=-1
 
18191
fi
 
18192
rm -rf conftest.dSYM
 
18193
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18194
fi
 
18195
 
 
18196
 
 
18197
fi
 
18198
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
18199
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
18200
 
 
18201
cat >>confdefs.h <<_ACEOF
 
18202
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
18203
_ACEOF
 
18204
 
 
18205
 
 
18206
fi
 
18207
 
 
18208
 
 
18209
 
 
18210
  { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
18211
$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
 
18212
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
18213
  $as_echo_n "(cached) " >&6
 
18214
else
 
18215
 
 
18216
      gt_cv_int_divbyzero_sigfpe=
 
18217
      case "$host_os" in
 
18218
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
 
18219
          # On MacOS X 10.2 or newer, just assume the same as when cross-
 
18220
          # compiling. If we were to perform the real test, 1 Crash Report
 
18221
          # dialog window would pop up.
 
18222
          case "$host_cpu" in
 
18223
            i[34567]86 | x86_64)
 
18224
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
 
18225
          esac
 
18226
          ;;
 
18227
      esac
 
18228
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
 
18229
        if test "$cross_compiling" = yes; then
 
18230
 
 
18231
            # Guess based on the CPU.
 
18232
            case "$host_cpu" in
 
18233
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
 
18234
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
18235
              *)
 
18236
                gt_cv_int_divbyzero_sigfpe="guessing no";;
 
18237
            esac
 
18238
 
 
18239
else
 
18240
  cat >conftest.$ac_ext <<_ACEOF
 
18241
/* confdefs.h.  */
 
18242
_ACEOF
 
18243
cat confdefs.h >>conftest.$ac_ext
 
18244
cat >>conftest.$ac_ext <<_ACEOF
 
18245
/* end confdefs.h.  */
 
18246
 
 
18247
#include <stdlib.h>
 
18248
#include <signal.h>
 
18249
 
 
18250
static void
 
18251
sigfpe_handler (int sig)
 
18252
{
 
18253
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
18254
  exit (sig != SIGFPE);
 
18255
}
 
18256
 
 
18257
int x = 1;
 
18258
int y = 0;
 
18259
int z;
 
18260
int nan;
 
18261
 
 
18262
int main ()
 
18263
{
 
18264
  signal (SIGFPE, sigfpe_handler);
 
18265
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
18266
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
18267
  signal (SIGTRAP, sigfpe_handler);
 
18268
#endif
 
18269
/* Linux/SPARC yields signal SIGILL.  */
 
18270
#if defined (__sparc__) && defined (__linux__)
 
18271
  signal (SIGILL, sigfpe_handler);
 
18272
#endif
 
18273
 
 
18274
  z = x / y;
 
18275
  nan = y / y;
 
18276
  exit (1);
 
18277
}
 
18278
 
 
18279
_ACEOF
 
18280
rm -f conftest$ac_exeext
 
18281
if { (ac_try="$ac_link"
 
18282
case "(($ac_try" in
 
18283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18284
  *) ac_try_echo=$ac_try;;
 
18285
esac
 
18286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18287
$as_echo "$ac_try_echo") >&5
 
18288
  (eval "$ac_link") 2>&5
 
18289
  ac_status=$?
 
18290
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18291
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18292
  { (case "(($ac_try" in
 
18293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18294
  *) ac_try_echo=$ac_try;;
 
18295
esac
 
18296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18297
$as_echo "$ac_try_echo") >&5
 
18298
  (eval "$ac_try") 2>&5
 
18299
  ac_status=$?
 
18300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18301
  (exit $ac_status); }; }; then
 
18302
  gt_cv_int_divbyzero_sigfpe=yes
 
18303
else
 
18304
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
18305
$as_echo "$as_me: failed program was:" >&5
 
18306
sed 's/^/| /' conftest.$ac_ext >&5
 
18307
 
 
18308
( exit $ac_status )
 
18309
gt_cv_int_divbyzero_sigfpe=no
 
18310
fi
 
18311
rm -rf conftest.dSYM
 
18312
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18313
fi
 
18314
 
 
18315
 
 
18316
      fi
 
18317
 
 
18318
fi
 
18319
{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
18320
$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
 
18321
  case "$gt_cv_int_divbyzero_sigfpe" in
 
18322
    *yes) value=1;;
 
18323
    *) value=0;;
 
18324
  esac
 
18325
 
 
18326
cat >>confdefs.h <<_ACEOF
 
18327
#define INTDIV0_RAISES_SIGFPE $value
 
18328
_ACEOF
 
18329
 
 
18330
 
 
18331
 
 
18332
  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
18333
$as_echo_n "checking for inttypes.h... " >&6; }
 
18334
if test "${gl_cv_header_inttypes_h+set}" = set; then
 
18335
  $as_echo_n "(cached) " >&6
 
18336
else
 
18337
  cat >conftest.$ac_ext <<_ACEOF
 
18338
/* confdefs.h.  */
 
18339
_ACEOF
 
18340
cat confdefs.h >>conftest.$ac_ext
 
18341
cat >>conftest.$ac_ext <<_ACEOF
 
18342
/* end confdefs.h.  */
 
18343
#include <sys/types.h>
 
18344
#include <inttypes.h>
 
18345
int
 
18346
main ()
 
18347
{
 
18348
uintmax_t i = (uintmax_t) -1; return !i;
 
18349
  ;
 
18350
  return 0;
 
18351
}
 
18352
_ACEOF
 
18353
rm -f conftest.$ac_objext
 
18354
if { (ac_try="$ac_compile"
 
18355
case "(($ac_try" in
 
18356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18357
  *) ac_try_echo=$ac_try;;
 
18358
esac
 
18359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18360
$as_echo "$ac_try_echo") >&5
 
18361
  (eval "$ac_compile") 2>conftest.er1
 
18362
  ac_status=$?
 
18363
  grep -v '^ *+' conftest.er1 >conftest.err
 
18364
  rm -f conftest.er1
 
18365
  cat conftest.err >&5
 
18366
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18367
  (exit $ac_status); } && {
 
18368
         test -z "$ac_c_werror_flag" ||
 
18369
         test ! -s conftest.err
 
18370
       } && test -s conftest.$ac_objext; then
 
18371
  gl_cv_header_inttypes_h=yes
 
18372
else
 
18373
  $as_echo "$as_me: failed program was:" >&5
 
18374
sed 's/^/| /' conftest.$ac_ext >&5
 
18375
 
 
18376
        gl_cv_header_inttypes_h=no
 
18377
fi
 
18378
 
 
18379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18380
fi
 
18381
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
18382
$as_echo "$gl_cv_header_inttypes_h" >&6; }
 
18383
  if test $gl_cv_header_inttypes_h = yes; then
 
18384
 
 
18385
cat >>confdefs.h <<_ACEOF
 
18386
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
18387
_ACEOF
 
18388
 
 
18389
  fi
 
18390
 
 
18391
 
 
18392
  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
18393
$as_echo_n "checking for unsigned long long int... " >&6; }
 
18394
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
18395
  $as_echo_n "(cached) " >&6
 
18396
else
 
18397
  cat >conftest.$ac_ext <<_ACEOF
 
18398
 
 
18399
  /* confdefs.h.  */
 
18400
_ACEOF
 
18401
cat confdefs.h >>conftest.$ac_ext
 
18402
cat >>conftest.$ac_ext <<_ACEOF
 
18403
/* end confdefs.h.  */
 
18404
/* Test preprocessor.  */
 
18405
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
18406
        error in preprocessor;
 
18407
      #endif
 
18408
      #if ! (18446744073709551615ULL <= -1ull)
 
18409
        error in preprocessor;
 
18410
      #endif
 
18411
      /* Test literals.  */
 
18412
      long long int ll = 9223372036854775807ll;
 
18413
      long long int nll = -9223372036854775807LL;
 
18414
      unsigned long long int ull = 18446744073709551615ULL;
 
18415
      /* Test constant expressions.   */
 
18416
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
18417
                     ? 1 : -1)];
 
18418
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
18419
                     ? 1 : -1)];
 
18420
      int i = 63;
 
18421
int
 
18422
main ()
 
18423
{
 
18424
/* Test availability of runtime routines for shift and division.  */
 
18425
      long long int llmax = 9223372036854775807ll;
 
18426
      unsigned long long int ullmax = 18446744073709551615ull;
 
18427
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
18428
              | (llmax / ll) | (llmax % ll)
 
18429
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
18430
              | (ullmax / ull) | (ullmax % ull));
 
18431
  ;
 
18432
  return 0;
 
18433
}
 
18434
 
 
18435
_ACEOF
 
18436
rm -f conftest.$ac_objext conftest$ac_exeext
 
18437
if { (ac_try="$ac_link"
 
18438
case "(($ac_try" in
 
18439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18440
  *) ac_try_echo=$ac_try;;
 
18441
esac
 
18442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18443
$as_echo "$ac_try_echo") >&5
 
18444
  (eval "$ac_link") 2>conftest.er1
 
18445
  ac_status=$?
 
18446
  grep -v '^ *+' conftest.er1 >conftest.err
 
18447
  rm -f conftest.er1
 
18448
  cat conftest.err >&5
 
18449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18450
  (exit $ac_status); } && {
 
18451
         test -z "$ac_c_werror_flag" ||
 
18452
         test ! -s conftest.err
 
18453
       } && test -s conftest$ac_exeext && {
 
18454
         test "$cross_compiling" = yes ||
 
18455
         $as_test_x conftest$ac_exeext
 
18456
       }; then
 
18457
  ac_cv_type_unsigned_long_long_int=yes
 
18458
else
 
18459
  $as_echo "$as_me: failed program was:" >&5
 
18460
sed 's/^/| /' conftest.$ac_ext >&5
 
18461
 
 
18462
        ac_cv_type_unsigned_long_long_int=no
 
18463
fi
 
18464
 
 
18465
rm -rf conftest.dSYM
 
18466
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18467
      conftest$ac_exeext conftest.$ac_ext
 
18468
fi
 
18469
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
18470
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
18471
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
18472
 
 
18473
cat >>confdefs.h <<\_ACEOF
 
18474
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
18475
_ACEOF
 
18476
 
 
18477
  fi
 
18478
 
 
18479
 
 
18480
 
 
18481
 
 
18482
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
18483
 
 
18484
    test $ac_cv_type_unsigned_long_long_int = yes \
 
18485
      && ac_type='unsigned long long' \
 
18486
      || ac_type='unsigned long'
 
18487
 
 
18488
cat >>confdefs.h <<_ACEOF
 
18489
#define uintmax_t $ac_type
 
18490
_ACEOF
 
18491
 
 
18492
  else
 
18493
 
 
18494
cat >>confdefs.h <<\_ACEOF
 
18495
#define HAVE_UINTMAX_T 1
 
18496
_ACEOF
 
18497
 
 
18498
  fi
 
18499
 
 
18500
 
 
18501
 
 
18502
for ac_header in inttypes.h
 
18503
do
 
18504
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18505
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18506
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18507
$as_echo_n "checking for $ac_header... " >&6; }
 
18508
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18509
  $as_echo_n "(cached) " >&6
 
18510
fi
 
18511
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18512
                 $as_echo "$as_val"'`
 
18513
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18514
$as_echo "$ac_res" >&6; }
 
18515
else
 
18516
  # Is the header compilable?
 
18517
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18518
$as_echo_n "checking $ac_header usability... " >&6; }
 
18519
cat >conftest.$ac_ext <<_ACEOF
 
18520
/* confdefs.h.  */
 
18521
_ACEOF
 
18522
cat confdefs.h >>conftest.$ac_ext
 
18523
cat >>conftest.$ac_ext <<_ACEOF
 
18524
/* end confdefs.h.  */
 
18525
$ac_includes_default
 
18526
#include <$ac_header>
 
18527
_ACEOF
 
18528
rm -f conftest.$ac_objext
 
18529
if { (ac_try="$ac_compile"
 
18530
case "(($ac_try" in
 
18531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18532
  *) ac_try_echo=$ac_try;;
 
18533
esac
 
18534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18535
$as_echo "$ac_try_echo") >&5
 
18536
  (eval "$ac_compile") 2>conftest.er1
 
18537
  ac_status=$?
 
18538
  grep -v '^ *+' conftest.er1 >conftest.err
 
18539
  rm -f conftest.er1
 
18540
  cat conftest.err >&5
 
18541
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18542
  (exit $ac_status); } && {
 
18543
         test -z "$ac_c_werror_flag" ||
 
18544
         test ! -s conftest.err
 
18545
       } && test -s conftest.$ac_objext; then
 
18546
  ac_header_compiler=yes
 
18547
else
 
18548
  $as_echo "$as_me: failed program was:" >&5
 
18549
sed 's/^/| /' conftest.$ac_ext >&5
 
18550
 
 
18551
        ac_header_compiler=no
 
18552
fi
 
18553
 
 
18554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18555
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18556
$as_echo "$ac_header_compiler" >&6; }
 
18557
 
 
18558
# Is the header present?
 
18559
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18560
$as_echo_n "checking $ac_header presence... " >&6; }
 
18561
cat >conftest.$ac_ext <<_ACEOF
 
18562
/* confdefs.h.  */
 
18563
_ACEOF
 
18564
cat confdefs.h >>conftest.$ac_ext
 
18565
cat >>conftest.$ac_ext <<_ACEOF
 
18566
/* end confdefs.h.  */
 
18567
#include <$ac_header>
 
18568
_ACEOF
 
18569
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18570
case "(($ac_try" in
 
18571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18572
  *) ac_try_echo=$ac_try;;
 
18573
esac
 
18574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18575
$as_echo "$ac_try_echo") >&5
 
18576
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18577
  ac_status=$?
 
18578
  grep -v '^ *+' conftest.er1 >conftest.err
 
18579
  rm -f conftest.er1
 
18580
  cat conftest.err >&5
 
18581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18582
  (exit $ac_status); } >/dev/null && {
 
18583
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18584
         test ! -s conftest.err
 
18585
       }; then
 
18586
  ac_header_preproc=yes
 
18587
else
 
18588
  $as_echo "$as_me: failed program was:" >&5
 
18589
sed 's/^/| /' conftest.$ac_ext >&5
 
18590
 
 
18591
  ac_header_preproc=no
 
18592
fi
 
18593
 
 
18594
rm -f conftest.err conftest.$ac_ext
 
18595
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18596
$as_echo "$ac_header_preproc" >&6; }
 
18597
 
 
18598
# So?  What about this header?
 
18599
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18600
  yes:no: )
 
18601
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18602
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18603
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18604
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18605
    ac_header_preproc=yes
 
18606
    ;;
 
18607
  no:yes:* )
 
18608
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18609
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18610
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18611
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18612
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18613
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18614
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18615
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18616
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18617
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18618
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18619
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18620
 
 
18621
    ;;
 
18622
esac
 
18623
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18624
$as_echo_n "checking for $ac_header... " >&6; }
 
18625
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18626
  $as_echo_n "(cached) " >&6
 
18627
else
 
18628
  eval "$as_ac_Header=\$ac_header_preproc"
 
18629
fi
 
18630
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18631
                 $as_echo "$as_val"'`
 
18632
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18633
$as_echo "$ac_res" >&6; }
 
18634
 
 
18635
fi
 
18636
as_val=`eval 'as_val=${'$as_ac_Header'}
 
18637
                 $as_echo "$as_val"'`
 
18638
   if test "x$as_val" = x""yes; then
 
18639
  cat >>confdefs.h <<_ACEOF
 
18640
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18641
_ACEOF
 
18642
 
 
18643
fi
 
18644
 
 
18645
done
 
18646
 
 
18647
  if test $ac_cv_header_inttypes_h = yes; then
 
18648
    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
18649
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
 
18650
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
18651
  $as_echo_n "(cached) " >&6
 
18652
else
 
18653
 
 
18654
        cat >conftest.$ac_ext <<_ACEOF
 
18655
/* confdefs.h.  */
 
18656
_ACEOF
 
18657
cat confdefs.h >>conftest.$ac_ext
 
18658
cat >>conftest.$ac_ext <<_ACEOF
 
18659
/* end confdefs.h.  */
 
18660
#include <inttypes.h>
 
18661
#ifdef PRId32
 
18662
char *p = PRId32;
 
18663
#endif
 
18664
 
 
18665
int
 
18666
main ()
 
18667
{
 
18668
 
 
18669
  ;
 
18670
  return 0;
 
18671
}
 
18672
_ACEOF
 
18673
rm -f conftest.$ac_objext
 
18674
if { (ac_try="$ac_compile"
 
18675
case "(($ac_try" in
 
18676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18677
  *) ac_try_echo=$ac_try;;
 
18678
esac
 
18679
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18680
$as_echo "$ac_try_echo") >&5
 
18681
  (eval "$ac_compile") 2>conftest.er1
 
18682
  ac_status=$?
 
18683
  grep -v '^ *+' conftest.er1 >conftest.err
 
18684
  rm -f conftest.er1
 
18685
  cat conftest.err >&5
 
18686
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18687
  (exit $ac_status); } && {
 
18688
         test -z "$ac_c_werror_flag" ||
 
18689
         test ! -s conftest.err
 
18690
       } && test -s conftest.$ac_objext; then
 
18691
  gt_cv_inttypes_pri_broken=no
 
18692
else
 
18693
  $as_echo "$as_me: failed program was:" >&5
 
18694
sed 's/^/| /' conftest.$ac_ext >&5
 
18695
 
 
18696
        gt_cv_inttypes_pri_broken=yes
 
18697
fi
 
18698
 
 
18699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18700
 
 
18701
fi
 
18702
{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
18703
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
 
18704
  fi
 
18705
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
18706
 
 
18707
cat >>confdefs.h <<_ACEOF
 
18708
#define PRI_MACROS_BROKEN 1
 
18709
_ACEOF
 
18710
 
 
18711
    PRI_MACROS_BROKEN=1
 
18712
  else
 
18713
    PRI_MACROS_BROKEN=0
 
18714
  fi
 
18715
 
 
18716
 
 
18717
 
 
18718
 
 
18719
 
 
18720
 
 
18721
    # Check whether --enable-threads was given.
 
18722
if test "${enable_threads+set}" = set; then
 
18723
  enableval=$enable_threads; gl_use_threads=$enableval
 
18724
else
 
18725
  case "$host_os" in
 
18726
                            osf*) gl_use_threads=no ;;
 
18727
       *)    gl_use_threads=yes ;;
 
18728
     esac
 
18729
 
 
18730
fi
 
18731
 
 
18732
  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
18733
    # For using <pthread.h>:
 
18734
    case "$host_os" in
 
18735
      osf*)
 
18736
        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
 
18737
        # groks <pthread.h>. cc also understands the flag -pthread, but
 
18738
        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
 
18739
        # 2. putting a flag into CPPFLAGS that has an effect on the linker
 
18740
        # causes the AC_TRY_LINK test below to succeed unexpectedly,
 
18741
        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
 
18742
        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
18743
        ;;
 
18744
    esac
 
18745
    # Some systems optimize for single-threaded programs by default, and
 
18746
    # need special flags to disable these optimizations. For example, the
 
18747
    # definition of 'errno' in <errno.h>.
 
18748
    case "$host_os" in
 
18749
      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
 
18750
      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
 
18751
    esac
 
18752
  fi
 
18753
 
 
18754
 
 
18755
 
 
18756
 
 
18757
 
 
18758
      if test "X$prefix" = "XNONE"; then
 
18759
    acl_final_prefix="$ac_default_prefix"
 
18760
  else
 
18761
    acl_final_prefix="$prefix"
 
18762
  fi
 
18763
  if test "X$exec_prefix" = "XNONE"; then
 
18764
    acl_final_exec_prefix='${prefix}'
 
18765
  else
 
18766
    acl_final_exec_prefix="$exec_prefix"
 
18767
  fi
 
18768
  acl_save_prefix="$prefix"
 
18769
  prefix="$acl_final_prefix"
 
18770
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
18771
  prefix="$acl_save_prefix"
 
18772
 
 
18773
 
 
18774
# Check whether --with-gnu-ld was given.
 
18775
if test "${with_gnu_ld+set}" = set; then
 
18776
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
18777
else
 
18778
  with_gnu_ld=no
 
18779
fi
 
18780
 
 
18781
# Prepare PATH_SEPARATOR.
 
18782
# The user is always right.
 
18783
if test "${PATH_SEPARATOR+set}" != set; then
 
18784
  echo "#! /bin/sh" >conf$$.sh
 
18785
  echo  "exit 0"   >>conf$$.sh
 
18786
  chmod +x conf$$.sh
 
18787
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18788
    PATH_SEPARATOR=';'
 
18789
  else
 
18790
    PATH_SEPARATOR=:
 
18791
  fi
 
18792
  rm -f conf$$.sh
 
18793
fi
 
18794
ac_prog=ld
 
18795
if test "$GCC" = yes; then
 
18796
  # Check if gcc -print-prog-name=ld gives a path.
 
18797
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
18798
$as_echo_n "checking for ld used by GCC... " >&6; }
 
18799
  case $host in
 
18800
  *-*-mingw*)
 
18801
    # gcc leaves a trailing carriage return which upsets mingw
 
18802
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
18803
  *)
 
18804
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
18805
  esac
 
18806
  case $ac_prog in
 
18807
    # Accept absolute paths.
 
18808
    [\\/]* | [A-Za-z]:[\\/]*)
 
18809
      re_direlt='/[^/][^/]*/\.\./'
 
18810
      # Canonicalize the path of ld
 
18811
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
18812
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
18813
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
18814
      done
 
18815
      test -z "$LD" && LD="$ac_prog"
 
18816
      ;;
 
18817
  "")
 
18818
    # If it fails, then pretend we aren't using GCC.
 
18819
    ac_prog=ld
 
18820
    ;;
 
18821
  *)
 
18822
    # If it is relative, then search for the first ld in PATH.
 
18823
    with_gnu_ld=unknown
 
18824
    ;;
 
18825
  esac
 
18826
elif test "$with_gnu_ld" = yes; then
 
18827
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
18828
$as_echo_n "checking for GNU ld... " >&6; }
 
18829
else
 
18830
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
18831
$as_echo_n "checking for non-GNU ld... " >&6; }
 
18832
fi
 
18833
if test "${acl_cv_path_LD+set}" = set; then
 
18834
  $as_echo_n "(cached) " >&6
 
18835
else
 
18836
  if test -z "$LD"; then
 
18837
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
18838
  for ac_dir in $PATH; do
 
18839
    test -z "$ac_dir" && ac_dir=.
 
18840
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
18841
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
18842
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
18843
      # but apparently some GNU ld's only accept -v.
 
18844
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
18845
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
18846
      *GNU* | *'with BFD'*)
 
18847
        test "$with_gnu_ld" != no && break ;;
 
18848
      *)
 
18849
        test "$with_gnu_ld" != yes && break ;;
 
18850
      esac
 
18851
    fi
 
18852
  done
 
18853
  IFS="$ac_save_ifs"
 
18854
else
 
18855
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
18856
fi
 
18857
fi
 
18858
 
 
18859
LD="$acl_cv_path_LD"
 
18860
if test -n "$LD"; then
 
18861
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
18862
$as_echo "$LD" >&6; }
 
18863
else
 
18864
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
18865
$as_echo "no" >&6; }
 
18866
fi
 
18867
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
18868
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
18869
   { (exit 1); exit 1; }; }
 
18870
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
18871
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
18872
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
18873
  $as_echo_n "(cached) " >&6
 
18874
else
 
18875
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
18876
case `$LD -v 2>&1 </dev/null` in
 
18877
*GNU* | *'with BFD'*)
 
18878
  acl_cv_prog_gnu_ld=yes ;;
 
18879
*)
 
18880
  acl_cv_prog_gnu_ld=no ;;
 
18881
esac
 
18882
fi
 
18883
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
18884
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
18885
with_gnu_ld=$acl_cv_prog_gnu_ld
 
18886
 
 
18887
 
 
18888
 
 
18889
 
 
18890
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
18891
$as_echo_n "checking for shared library run path origin... " >&6; }
 
18892
if test "${acl_cv_rpath+set}" = set; then
 
18893
  $as_echo_n "(cached) " >&6
 
18894
else
 
18895
 
 
18896
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
18897
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
18898
    . ./conftest.sh
 
18899
    rm -f ./conftest.sh
 
18900
    acl_cv_rpath=done
 
18901
 
 
18902
fi
 
18903
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
18904
$as_echo "$acl_cv_rpath" >&6; }
 
18905
  wl="$acl_cv_wl"
 
18906
  acl_libext="$acl_cv_libext"
 
18907
  acl_shlibext="$acl_cv_shlibext"
 
18908
  acl_libname_spec="$acl_cv_libname_spec"
 
18909
  acl_library_names_spec="$acl_cv_library_names_spec"
 
18910
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
18911
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
18912
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
18913
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
18914
    # Check whether --enable-rpath was given.
 
18915
if test "${enable_rpath+set}" = set; then
 
18916
  enableval=$enable_rpath; :
 
18917
else
 
18918
  enable_rpath=yes
 
18919
fi
 
18920
 
 
18921
 
 
18922
 
 
18923
                  acl_libdirstem=lib
 
18924
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
18925
  if test -n "$searchpath"; then
 
18926
    acl_save_IFS="${IFS=        }"; IFS=":"
 
18927
    for searchdir in $searchpath; do
 
18928
      if test -d "$searchdir"; then
 
18929
        case "$searchdir" in
 
18930
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
18931
          *) searchdir=`cd "$searchdir" && pwd`
 
18932
             case "$searchdir" in
 
18933
               */lib64 ) acl_libdirstem=lib64 ;;
 
18934
             esac ;;
 
18935
        esac
 
18936
      fi
 
18937
    done
 
18938
    IFS="$acl_save_IFS"
 
18939
  fi
 
18940
 
 
18941
 
 
18942
 
 
18943
  gl_threads_api=none
 
18944
  LIBTHREAD=
 
18945
  LTLIBTHREAD=
 
18946
  LIBMULTITHREAD=
 
18947
  LTLIBMULTITHREAD=
 
18948
  if test "$gl_use_threads" != no; then
 
18949
        { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
 
18950
$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
 
18951
    gl_have_weak=no
 
18952
    cat >conftest.$ac_ext <<_ACEOF
 
18953
/* confdefs.h.  */
 
18954
_ACEOF
 
18955
cat confdefs.h >>conftest.$ac_ext
 
18956
cat >>conftest.$ac_ext <<_ACEOF
 
18957
/* end confdefs.h.  */
 
18958
extern void xyzzy ();
 
18959
#pragma weak xyzzy
 
18960
int
 
18961
main ()
 
18962
{
 
18963
xyzzy();
 
18964
  ;
 
18965
  return 0;
 
18966
}
 
18967
_ACEOF
 
18968
rm -f conftest.$ac_objext conftest$ac_exeext
 
18969
if { (ac_try="$ac_link"
 
18970
case "(($ac_try" in
 
18971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18972
  *) ac_try_echo=$ac_try;;
 
18973
esac
 
18974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18975
$as_echo "$ac_try_echo") >&5
 
18976
  (eval "$ac_link") 2>conftest.er1
 
18977
  ac_status=$?
 
18978
  grep -v '^ *+' conftest.er1 >conftest.err
 
18979
  rm -f conftest.er1
 
18980
  cat conftest.err >&5
 
18981
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18982
  (exit $ac_status); } && {
 
18983
         test -z "$ac_c_werror_flag" ||
 
18984
         test ! -s conftest.err
 
18985
       } && test -s conftest$ac_exeext && {
 
18986
         test "$cross_compiling" = yes ||
 
18987
         $as_test_x conftest$ac_exeext
 
18988
       }; then
 
18989
  gl_have_weak=yes
 
18990
else
 
18991
  $as_echo "$as_me: failed program was:" >&5
 
18992
sed 's/^/| /' conftest.$ac_ext >&5
 
18993
 
 
18994
 
 
18995
fi
 
18996
 
 
18997
rm -rf conftest.dSYM
 
18998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18999
      conftest$ac_exeext conftest.$ac_ext
 
19000
    { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
 
19001
$as_echo "$gl_have_weak" >&6; }
 
19002
    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
19003
      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
 
19004
      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
 
19005
      if test "${ac_cv_header_pthread_h+set}" = set; then
 
19006
  { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
 
19007
$as_echo_n "checking for pthread.h... " >&6; }
 
19008
if test "${ac_cv_header_pthread_h+set}" = set; then
 
19009
  $as_echo_n "(cached) " >&6
 
19010
fi
 
19011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
19012
$as_echo "$ac_cv_header_pthread_h" >&6; }
 
19013
else
 
19014
  # Is the header compilable?
 
19015
{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
 
19016
$as_echo_n "checking pthread.h usability... " >&6; }
 
19017
cat >conftest.$ac_ext <<_ACEOF
 
19018
/* confdefs.h.  */
 
19019
_ACEOF
 
19020
cat confdefs.h >>conftest.$ac_ext
 
19021
cat >>conftest.$ac_ext <<_ACEOF
 
19022
/* end confdefs.h.  */
 
19023
$ac_includes_default
 
19024
#include <pthread.h>
 
19025
_ACEOF
 
19026
rm -f conftest.$ac_objext
 
19027
if { (ac_try="$ac_compile"
 
19028
case "(($ac_try" in
 
19029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19030
  *) ac_try_echo=$ac_try;;
 
19031
esac
 
19032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19033
$as_echo "$ac_try_echo") >&5
 
19034
  (eval "$ac_compile") 2>conftest.er1
 
19035
  ac_status=$?
 
19036
  grep -v '^ *+' conftest.er1 >conftest.err
 
19037
  rm -f conftest.er1
 
19038
  cat conftest.err >&5
 
19039
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19040
  (exit $ac_status); } && {
 
19041
         test -z "$ac_c_werror_flag" ||
 
19042
         test ! -s conftest.err
 
19043
       } && test -s conftest.$ac_objext; then
 
19044
  ac_header_compiler=yes
 
19045
else
 
19046
  $as_echo "$as_me: failed program was:" >&5
 
19047
sed 's/^/| /' conftest.$ac_ext >&5
 
19048
 
 
19049
        ac_header_compiler=no
 
19050
fi
 
19051
 
 
19052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19053
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19054
$as_echo "$ac_header_compiler" >&6; }
 
19055
 
 
19056
# Is the header present?
 
19057
{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
 
19058
$as_echo_n "checking pthread.h presence... " >&6; }
 
19059
cat >conftest.$ac_ext <<_ACEOF
 
19060
/* confdefs.h.  */
 
19061
_ACEOF
 
19062
cat confdefs.h >>conftest.$ac_ext
 
19063
cat >>conftest.$ac_ext <<_ACEOF
 
19064
/* end confdefs.h.  */
 
19065
#include <pthread.h>
 
19066
_ACEOF
 
19067
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19068
case "(($ac_try" in
 
19069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19070
  *) ac_try_echo=$ac_try;;
 
19071
esac
 
19072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19073
$as_echo "$ac_try_echo") >&5
 
19074
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19075
  ac_status=$?
 
19076
  grep -v '^ *+' conftest.er1 >conftest.err
 
19077
  rm -f conftest.er1
 
19078
  cat conftest.err >&5
 
19079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19080
  (exit $ac_status); } >/dev/null && {
 
19081
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19082
         test ! -s conftest.err
 
19083
       }; then
 
19084
  ac_header_preproc=yes
 
19085
else
 
19086
  $as_echo "$as_me: failed program was:" >&5
 
19087
sed 's/^/| /' conftest.$ac_ext >&5
 
19088
 
 
19089
  ac_header_preproc=no
 
19090
fi
 
19091
 
 
19092
rm -f conftest.err conftest.$ac_ext
 
19093
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19094
$as_echo "$ac_header_preproc" >&6; }
 
19095
 
 
19096
# So?  What about this header?
 
19097
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19098
  yes:no: )
 
19099
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
19100
$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19101
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
 
19102
$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
 
19103
    ac_header_preproc=yes
 
19104
    ;;
 
19105
  no:yes:* )
 
19106
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
 
19107
$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
 
19108
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
 
19109
$as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
 
19110
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
 
19111
$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
 
19112
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
 
19113
$as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19114
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
 
19115
$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
 
19116
    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
 
19117
$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
 
19118
 
 
19119
    ;;
 
19120
esac
 
19121
{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
 
19122
$as_echo_n "checking for pthread.h... " >&6; }
 
19123
if test "${ac_cv_header_pthread_h+set}" = set; then
 
19124
  $as_echo_n "(cached) " >&6
 
19125
else
 
19126
  ac_cv_header_pthread_h=$ac_header_preproc
 
19127
fi
 
19128
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
19129
$as_echo "$ac_cv_header_pthread_h" >&6; }
 
19130
 
 
19131
fi
 
19132
if test "x$ac_cv_header_pthread_h" = x""yes; then
 
19133
  gl_have_pthread_h=yes
 
19134
else
 
19135
  gl_have_pthread_h=no
 
19136
fi
 
19137
 
 
19138
 
 
19139
      if test "$gl_have_pthread_h" = yes; then
 
19140
        # Other possible tests:
 
19141
        #   -lpthreads (FSU threads, PCthreads)
 
19142
        #   -lgthreads
 
19143
        gl_have_pthread=
 
19144
        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
 
19145
        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
 
19146
        # the second one only in libpthread, and lock.c needs it.
 
19147
        cat >conftest.$ac_ext <<_ACEOF
 
19148
/* confdefs.h.  */
 
19149
_ACEOF
 
19150
cat confdefs.h >>conftest.$ac_ext
 
19151
cat >>conftest.$ac_ext <<_ACEOF
 
19152
/* end confdefs.h.  */
 
19153
#include <pthread.h>
 
19154
int
 
19155
main ()
 
19156
{
 
19157
pthread_mutex_lock((pthread_mutex_t*)0);
 
19158
           pthread_mutexattr_init((pthread_mutexattr_t*)0);
 
19159
  ;
 
19160
  return 0;
 
19161
}
 
19162
_ACEOF
 
19163
rm -f conftest.$ac_objext conftest$ac_exeext
 
19164
if { (ac_try="$ac_link"
 
19165
case "(($ac_try" in
 
19166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19167
  *) ac_try_echo=$ac_try;;
 
19168
esac
 
19169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19170
$as_echo "$ac_try_echo") >&5
 
19171
  (eval "$ac_link") 2>conftest.er1
 
19172
  ac_status=$?
 
19173
  grep -v '^ *+' conftest.er1 >conftest.err
 
19174
  rm -f conftest.er1
 
19175
  cat conftest.err >&5
 
19176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19177
  (exit $ac_status); } && {
 
19178
         test -z "$ac_c_werror_flag" ||
 
19179
         test ! -s conftest.err
 
19180
       } && test -s conftest$ac_exeext && {
 
19181
         test "$cross_compiling" = yes ||
 
19182
         $as_test_x conftest$ac_exeext
 
19183
       }; then
 
19184
  gl_have_pthread=yes
 
19185
else
 
19186
  $as_echo "$as_me: failed program was:" >&5
 
19187
sed 's/^/| /' conftest.$ac_ext >&5
 
19188
 
 
19189
 
 
19190
fi
 
19191
 
 
19192
rm -rf conftest.dSYM
 
19193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19194
      conftest$ac_exeext conftest.$ac_ext
 
19195
        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
 
19196
        # since it is defined as a macro on OSF/1.)
 
19197
        if test -n "$gl_have_pthread"; then
 
19198
          # The program links fine without libpthread. But it may actually
 
19199
          # need to link with libpthread in order to create multiple threads.
 
19200
          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
19201
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
 
19202
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
19203
  $as_echo_n "(cached) " >&6
 
19204
else
 
19205
  ac_check_lib_save_LIBS=$LIBS
 
19206
LIBS="-lpthread  $LIBS"
 
19207
cat >conftest.$ac_ext <<_ACEOF
 
19208
/* confdefs.h.  */
 
19209
_ACEOF
 
19210
cat confdefs.h >>conftest.$ac_ext
 
19211
cat >>conftest.$ac_ext <<_ACEOF
 
19212
/* end confdefs.h.  */
 
19213
 
 
19214
/* Override any GCC internal prototype to avoid an error.
 
19215
   Use char because int might match the return type of a GCC
 
19216
   builtin and then its argument prototype would still apply.  */
 
19217
#ifdef __cplusplus
 
19218
extern "C"
 
19219
#endif
 
19220
char pthread_kill ();
 
19221
int
 
19222
main ()
 
19223
{
 
19224
return pthread_kill ();
 
19225
  ;
 
19226
  return 0;
 
19227
}
 
19228
_ACEOF
 
19229
rm -f conftest.$ac_objext conftest$ac_exeext
 
19230
if { (ac_try="$ac_link"
 
19231
case "(($ac_try" in
 
19232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19233
  *) ac_try_echo=$ac_try;;
 
19234
esac
 
19235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19236
$as_echo "$ac_try_echo") >&5
 
19237
  (eval "$ac_link") 2>conftest.er1
 
19238
  ac_status=$?
 
19239
  grep -v '^ *+' conftest.er1 >conftest.err
 
19240
  rm -f conftest.er1
 
19241
  cat conftest.err >&5
 
19242
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19243
  (exit $ac_status); } && {
 
19244
         test -z "$ac_c_werror_flag" ||
 
19245
         test ! -s conftest.err
 
19246
       } && test -s conftest$ac_exeext && {
 
19247
         test "$cross_compiling" = yes ||
 
19248
         $as_test_x conftest$ac_exeext
 
19249
       }; then
 
19250
  ac_cv_lib_pthread_pthread_kill=yes
 
19251
else
 
19252
  $as_echo "$as_me: failed program was:" >&5
 
19253
sed 's/^/| /' conftest.$ac_ext >&5
 
19254
 
 
19255
        ac_cv_lib_pthread_pthread_kill=no
 
19256
fi
 
19257
 
 
19258
rm -rf conftest.dSYM
 
19259
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19260
      conftest$ac_exeext conftest.$ac_ext
 
19261
LIBS=$ac_check_lib_save_LIBS
 
19262
fi
 
19263
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
19264
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
 
19265
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
 
19266
  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
19267
             # On Solaris and HP-UX, most pthread functions exist also in libc.
 
19268
             # Therefore pthread_in_use() needs to actually try to create a
 
19269
             # thread: pthread_create from libc will fail, whereas
 
19270
             # pthread_create will actually create a thread.
 
19271
             case "$host_os" in
 
19272
               solaris* | hpux*)
 
19273
 
 
19274
cat >>confdefs.h <<\_ACEOF
 
19275
#define PTHREAD_IN_USE_DETECTION_HARD 1
 
19276
_ACEOF
 
19277
 
 
19278
             esac
 
19279
 
 
19280
fi
 
19281
 
 
19282
        else
 
19283
          # Some library is needed. Try libpthread and libc_r.
 
19284
          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
19285
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
 
19286
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
19287
  $as_echo_n "(cached) " >&6
 
19288
else
 
19289
  ac_check_lib_save_LIBS=$LIBS
 
19290
LIBS="-lpthread  $LIBS"
 
19291
cat >conftest.$ac_ext <<_ACEOF
 
19292
/* confdefs.h.  */
 
19293
_ACEOF
 
19294
cat confdefs.h >>conftest.$ac_ext
 
19295
cat >>conftest.$ac_ext <<_ACEOF
 
19296
/* end confdefs.h.  */
 
19297
 
 
19298
/* Override any GCC internal prototype to avoid an error.
 
19299
   Use char because int might match the return type of a GCC
 
19300
   builtin and then its argument prototype would still apply.  */
 
19301
#ifdef __cplusplus
 
19302
extern "C"
 
19303
#endif
 
19304
char pthread_kill ();
 
19305
int
 
19306
main ()
 
19307
{
 
19308
return pthread_kill ();
 
19309
  ;
 
19310
  return 0;
 
19311
}
 
19312
_ACEOF
 
19313
rm -f conftest.$ac_objext conftest$ac_exeext
 
19314
if { (ac_try="$ac_link"
 
19315
case "(($ac_try" in
 
19316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19317
  *) ac_try_echo=$ac_try;;
 
19318
esac
 
19319
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19320
$as_echo "$ac_try_echo") >&5
 
19321
  (eval "$ac_link") 2>conftest.er1
 
19322
  ac_status=$?
 
19323
  grep -v '^ *+' conftest.er1 >conftest.err
 
19324
  rm -f conftest.er1
 
19325
  cat conftest.err >&5
 
19326
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19327
  (exit $ac_status); } && {
 
19328
         test -z "$ac_c_werror_flag" ||
 
19329
         test ! -s conftest.err
 
19330
       } && test -s conftest$ac_exeext && {
 
19331
         test "$cross_compiling" = yes ||
 
19332
         $as_test_x conftest$ac_exeext
 
19333
       }; then
 
19334
  ac_cv_lib_pthread_pthread_kill=yes
 
19335
else
 
19336
  $as_echo "$as_me: failed program was:" >&5
 
19337
sed 's/^/| /' conftest.$ac_ext >&5
 
19338
 
 
19339
        ac_cv_lib_pthread_pthread_kill=no
 
19340
fi
 
19341
 
 
19342
rm -rf conftest.dSYM
 
19343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19344
      conftest$ac_exeext conftest.$ac_ext
 
19345
LIBS=$ac_check_lib_save_LIBS
 
19346
fi
 
19347
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
19348
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
 
19349
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
 
19350
  gl_have_pthread=yes
 
19351
             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
 
19352
             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
19353
fi
 
19354
 
 
19355
          if test -z "$gl_have_pthread"; then
 
19356
            # For FreeBSD 4.
 
19357
            { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
 
19358
$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
 
19359
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
 
19360
  $as_echo_n "(cached) " >&6
 
19361
else
 
19362
  ac_check_lib_save_LIBS=$LIBS
 
19363
LIBS="-lc_r  $LIBS"
 
19364
cat >conftest.$ac_ext <<_ACEOF
 
19365
/* confdefs.h.  */
 
19366
_ACEOF
 
19367
cat confdefs.h >>conftest.$ac_ext
 
19368
cat >>conftest.$ac_ext <<_ACEOF
 
19369
/* end confdefs.h.  */
 
19370
 
 
19371
/* Override any GCC internal prototype to avoid an error.
 
19372
   Use char because int might match the return type of a GCC
 
19373
   builtin and then its argument prototype would still apply.  */
 
19374
#ifdef __cplusplus
 
19375
extern "C"
 
19376
#endif
 
19377
char pthread_kill ();
 
19378
int
 
19379
main ()
 
19380
{
 
19381
return pthread_kill ();
 
19382
  ;
 
19383
  return 0;
 
19384
}
 
19385
_ACEOF
 
19386
rm -f conftest.$ac_objext conftest$ac_exeext
 
19387
if { (ac_try="$ac_link"
 
19388
case "(($ac_try" in
 
19389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19390
  *) ac_try_echo=$ac_try;;
 
19391
esac
 
19392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19393
$as_echo "$ac_try_echo") >&5
 
19394
  (eval "$ac_link") 2>conftest.er1
 
19395
  ac_status=$?
 
19396
  grep -v '^ *+' conftest.er1 >conftest.err
 
19397
  rm -f conftest.er1
 
19398
  cat conftest.err >&5
 
19399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19400
  (exit $ac_status); } && {
 
19401
         test -z "$ac_c_werror_flag" ||
 
19402
         test ! -s conftest.err
 
19403
       } && test -s conftest$ac_exeext && {
 
19404
         test "$cross_compiling" = yes ||
 
19405
         $as_test_x conftest$ac_exeext
 
19406
       }; then
 
19407
  ac_cv_lib_c_r_pthread_kill=yes
 
19408
else
 
19409
  $as_echo "$as_me: failed program was:" >&5
 
19410
sed 's/^/| /' conftest.$ac_ext >&5
 
19411
 
 
19412
        ac_cv_lib_c_r_pthread_kill=no
 
19413
fi
 
19414
 
 
19415
rm -rf conftest.dSYM
 
19416
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19417
      conftest$ac_exeext conftest.$ac_ext
 
19418
LIBS=$ac_check_lib_save_LIBS
 
19419
fi
 
19420
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
 
19421
$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
 
19422
if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
 
19423
  gl_have_pthread=yes
 
19424
               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
 
19425
               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
 
19426
fi
 
19427
 
 
19428
          fi
 
19429
        fi
 
19430
        if test -n "$gl_have_pthread"; then
 
19431
          gl_threads_api=posix
 
19432
 
 
19433
cat >>confdefs.h <<\_ACEOF
 
19434
#define USE_POSIX_THREADS 1
 
19435
_ACEOF
 
19436
 
 
19437
          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
19438
            if test $gl_have_weak = yes; then
 
19439
 
 
19440
cat >>confdefs.h <<\_ACEOF
 
19441
#define USE_POSIX_THREADS_WEAK 1
 
19442
_ACEOF
 
19443
 
 
19444
              LIBTHREAD=
 
19445
              LTLIBTHREAD=
 
19446
            fi
 
19447
          fi
 
19448
          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
 
19449
          # pthread_rwlock_* functions.
 
19450
          { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
 
19451
$as_echo_n "checking for pthread_rwlock_t... " >&6; }
 
19452
if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
 
19453
  $as_echo_n "(cached) " >&6
 
19454
else
 
19455
  ac_cv_type_pthread_rwlock_t=no
 
19456
cat >conftest.$ac_ext <<_ACEOF
 
19457
/* confdefs.h.  */
 
19458
_ACEOF
 
19459
cat confdefs.h >>conftest.$ac_ext
 
19460
cat >>conftest.$ac_ext <<_ACEOF
 
19461
/* end confdefs.h.  */
 
19462
#include <pthread.h>
 
19463
 
 
19464
int
 
19465
main ()
 
19466
{
 
19467
if (sizeof (pthread_rwlock_t))
 
19468
       return 0;
 
19469
  ;
 
19470
  return 0;
 
19471
}
 
19472
_ACEOF
 
19473
rm -f conftest.$ac_objext
 
19474
if { (ac_try="$ac_compile"
 
19475
case "(($ac_try" in
 
19476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19477
  *) ac_try_echo=$ac_try;;
 
19478
esac
 
19479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19480
$as_echo "$ac_try_echo") >&5
 
19481
  (eval "$ac_compile") 2>conftest.er1
 
19482
  ac_status=$?
 
19483
  grep -v '^ *+' conftest.er1 >conftest.err
 
19484
  rm -f conftest.er1
 
19485
  cat conftest.err >&5
 
19486
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19487
  (exit $ac_status); } && {
 
19488
         test -z "$ac_c_werror_flag" ||
 
19489
         test ! -s conftest.err
 
19490
       } && test -s conftest.$ac_objext; then
 
19491
  cat >conftest.$ac_ext <<_ACEOF
 
19492
/* confdefs.h.  */
 
19493
_ACEOF
 
19494
cat confdefs.h >>conftest.$ac_ext
 
19495
cat >>conftest.$ac_ext <<_ACEOF
 
19496
/* end confdefs.h.  */
 
19497
#include <pthread.h>
 
19498
 
 
19499
int
 
19500
main ()
 
19501
{
 
19502
if (sizeof ((pthread_rwlock_t)))
 
19503
          return 0;
 
19504
  ;
 
19505
  return 0;
 
19506
}
 
19507
_ACEOF
 
19508
rm -f conftest.$ac_objext
 
19509
if { (ac_try="$ac_compile"
 
19510
case "(($ac_try" in
 
19511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19512
  *) ac_try_echo=$ac_try;;
 
19513
esac
 
19514
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19515
$as_echo "$ac_try_echo") >&5
 
19516
  (eval "$ac_compile") 2>conftest.er1
 
19517
  ac_status=$?
 
19518
  grep -v '^ *+' conftest.er1 >conftest.err
 
19519
  rm -f conftest.er1
 
19520
  cat conftest.err >&5
 
19521
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19522
  (exit $ac_status); } && {
 
19523
         test -z "$ac_c_werror_flag" ||
 
19524
         test ! -s conftest.err
 
19525
       } && test -s conftest.$ac_objext; then
 
19526
  :
 
19527
else
 
19528
  $as_echo "$as_me: failed program was:" >&5
 
19529
sed 's/^/| /' conftest.$ac_ext >&5
 
19530
 
 
19531
        ac_cv_type_pthread_rwlock_t=yes
 
19532
fi
 
19533
 
 
19534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19535
else
 
19536
  $as_echo "$as_me: failed program was:" >&5
 
19537
sed 's/^/| /' conftest.$ac_ext >&5
 
19538
 
 
19539
 
 
19540
fi
 
19541
 
 
19542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19543
fi
 
19544
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
 
19545
$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
 
19546
if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
 
19547
 
 
19548
cat >>confdefs.h <<\_ACEOF
 
19549
#define HAVE_PTHREAD_RWLOCK 1
 
19550
_ACEOF
 
19551
 
 
19552
fi
 
19553
 
 
19554
          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
 
19555
          cat >conftest.$ac_ext <<_ACEOF
 
19556
/* confdefs.h.  */
 
19557
_ACEOF
 
19558
cat confdefs.h >>conftest.$ac_ext
 
19559
cat >>conftest.$ac_ext <<_ACEOF
 
19560
/* end confdefs.h.  */
 
19561
#include <pthread.h>
 
19562
int
 
19563
main ()
 
19564
{
 
19565
#if __FreeBSD__ == 4
 
19566
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
 
19567
#else
 
19568
int x = (int)PTHREAD_MUTEX_RECURSIVE;
 
19569
return !x;
 
19570
#endif
 
19571
  ;
 
19572
  return 0;
 
19573
}
 
19574
_ACEOF
 
19575
rm -f conftest.$ac_objext
 
19576
if { (ac_try="$ac_compile"
 
19577
case "(($ac_try" in
 
19578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19579
  *) ac_try_echo=$ac_try;;
 
19580
esac
 
19581
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19582
$as_echo "$ac_try_echo") >&5
 
19583
  (eval "$ac_compile") 2>conftest.er1
 
19584
  ac_status=$?
 
19585
  grep -v '^ *+' conftest.er1 >conftest.err
 
19586
  rm -f conftest.er1
 
19587
  cat conftest.err >&5
 
19588
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19589
  (exit $ac_status); } && {
 
19590
         test -z "$ac_c_werror_flag" ||
 
19591
         test ! -s conftest.err
 
19592
       } && test -s conftest.$ac_objext; then
 
19593
 
 
19594
cat >>confdefs.h <<\_ACEOF
 
19595
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
 
19596
_ACEOF
 
19597
 
 
19598
else
 
19599
  $as_echo "$as_me: failed program was:" >&5
 
19600
sed 's/^/| /' conftest.$ac_ext >&5
 
19601
 
 
19602
 
 
19603
fi
 
19604
 
 
19605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19606
        fi
 
19607
      fi
 
19608
    fi
 
19609
    if test -z "$gl_have_pthread"; then
 
19610
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
 
19611
        gl_have_solaristhread=
 
19612
        gl_save_LIBS="$LIBS"
 
19613
        LIBS="$LIBS -lthread"
 
19614
        cat >conftest.$ac_ext <<_ACEOF
 
19615
/* confdefs.h.  */
 
19616
_ACEOF
 
19617
cat confdefs.h >>conftest.$ac_ext
 
19618
cat >>conftest.$ac_ext <<_ACEOF
 
19619
/* end confdefs.h.  */
 
19620
#include <thread.h>
 
19621
#include <synch.h>
 
19622
int
 
19623
main ()
 
19624
{
 
19625
thr_self();
 
19626
  ;
 
19627
  return 0;
 
19628
}
 
19629
_ACEOF
 
19630
rm -f conftest.$ac_objext conftest$ac_exeext
 
19631
if { (ac_try="$ac_link"
 
19632
case "(($ac_try" in
 
19633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19634
  *) ac_try_echo=$ac_try;;
 
19635
esac
 
19636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19637
$as_echo "$ac_try_echo") >&5
 
19638
  (eval "$ac_link") 2>conftest.er1
 
19639
  ac_status=$?
 
19640
  grep -v '^ *+' conftest.er1 >conftest.err
 
19641
  rm -f conftest.er1
 
19642
  cat conftest.err >&5
 
19643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19644
  (exit $ac_status); } && {
 
19645
         test -z "$ac_c_werror_flag" ||
 
19646
         test ! -s conftest.err
 
19647
       } && test -s conftest$ac_exeext && {
 
19648
         test "$cross_compiling" = yes ||
 
19649
         $as_test_x conftest$ac_exeext
 
19650
       }; then
 
19651
  gl_have_solaristhread=yes
 
19652
else
 
19653
  $as_echo "$as_me: failed program was:" >&5
 
19654
sed 's/^/| /' conftest.$ac_ext >&5
 
19655
 
 
19656
 
 
19657
fi
 
19658
 
 
19659
rm -rf conftest.dSYM
 
19660
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19661
      conftest$ac_exeext conftest.$ac_ext
 
19662
        LIBS="$gl_save_LIBS"
 
19663
        if test -n "$gl_have_solaristhread"; then
 
19664
          gl_threads_api=solaris
 
19665
          LIBTHREAD=-lthread
 
19666
          LTLIBTHREAD=-lthread
 
19667
          LIBMULTITHREAD="$LIBTHREAD"
 
19668
          LTLIBMULTITHREAD="$LTLIBTHREAD"
 
19669
 
 
19670
cat >>confdefs.h <<\_ACEOF
 
19671
#define USE_SOLARIS_THREADS 1
 
19672
_ACEOF
 
19673
 
 
19674
          if test $gl_have_weak = yes; then
 
19675
 
 
19676
cat >>confdefs.h <<\_ACEOF
 
19677
#define USE_SOLARIS_THREADS_WEAK 1
 
19678
_ACEOF
 
19679
 
 
19680
            LIBTHREAD=
 
19681
            LTLIBTHREAD=
 
19682
          fi
 
19683
        fi
 
19684
      fi
 
19685
    fi
 
19686
    if test "$gl_use_threads" = pth; then
 
19687
      gl_save_CPPFLAGS="$CPPFLAGS"
 
19688
 
 
19689
 
 
19690
 
 
19691
 
 
19692
 
 
19693
  { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
 
19694
$as_echo_n "checking how to link with libpth... " >&6; }
 
19695
if test "${ac_cv_libpth_libs+set}" = set; then
 
19696
  $as_echo_n "(cached) " >&6
 
19697
else
 
19698
 
 
19699
 
 
19700
 
 
19701
 
 
19702
 
 
19703
    use_additional=yes
 
19704
 
 
19705
  acl_save_prefix="$prefix"
 
19706
  prefix="$acl_final_prefix"
 
19707
  acl_save_exec_prefix="$exec_prefix"
 
19708
  exec_prefix="$acl_final_exec_prefix"
 
19709
 
 
19710
    eval additional_includedir=\"$includedir\"
 
19711
    eval additional_libdir=\"$libdir\"
 
19712
 
 
19713
  exec_prefix="$acl_save_exec_prefix"
 
19714
  prefix="$acl_save_prefix"
 
19715
 
 
19716
 
 
19717
# Check whether --with-libpth-prefix was given.
 
19718
if test "${with_libpth_prefix+set}" = set; then
 
19719
  withval=$with_libpth_prefix;
 
19720
    if test "X$withval" = "Xno"; then
 
19721
      use_additional=no
 
19722
    else
 
19723
      if test "X$withval" = "X"; then
 
19724
 
 
19725
  acl_save_prefix="$prefix"
 
19726
  prefix="$acl_final_prefix"
 
19727
  acl_save_exec_prefix="$exec_prefix"
 
19728
  exec_prefix="$acl_final_exec_prefix"
 
19729
 
 
19730
          eval additional_includedir=\"$includedir\"
 
19731
          eval additional_libdir=\"$libdir\"
 
19732
 
 
19733
  exec_prefix="$acl_save_exec_prefix"
 
19734
  prefix="$acl_save_prefix"
 
19735
 
 
19736
      else
 
19737
        additional_includedir="$withval/include"
 
19738
        additional_libdir="$withval/$acl_libdirstem"
 
19739
      fi
 
19740
    fi
 
19741
 
 
19742
fi
 
19743
 
 
19744
      LIBPTH=
 
19745
  LTLIBPTH=
 
19746
  INCPTH=
 
19747
  LIBPTH_PREFIX=
 
19748
  rpathdirs=
 
19749
  ltrpathdirs=
 
19750
  names_already_handled=
 
19751
  names_next_round='pth '
 
19752
  while test -n "$names_next_round"; do
 
19753
    names_this_round="$names_next_round"
 
19754
    names_next_round=
 
19755
    for name in $names_this_round; do
 
19756
      already_handled=
 
19757
      for n in $names_already_handled; do
 
19758
        if test "$n" = "$name"; then
 
19759
          already_handled=yes
 
19760
          break
 
19761
        fi
 
19762
      done
 
19763
      if test -z "$already_handled"; then
 
19764
        names_already_handled="$names_already_handled $name"
 
19765
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
19766
        eval value=\"\$HAVE_LIB$uppername\"
 
19767
        if test -n "$value"; then
 
19768
          if test "$value" = yes; then
 
19769
            eval value=\"\$LIB$uppername\"
 
19770
            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
 
19771
            eval value=\"\$LTLIB$uppername\"
 
19772
            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
 
19773
          else
 
19774
                                    :
 
19775
          fi
 
19776
        else
 
19777
                              found_dir=
 
19778
          found_la=
 
19779
          found_so=
 
19780
          found_a=
 
19781
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
19782
          if test -n "$acl_shlibext"; then
 
19783
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
19784
          else
 
19785
            shrext=
 
19786
          fi
 
19787
          if test $use_additional = yes; then
 
19788
            dir="$additional_libdir"
 
19789
                                    if test -n "$acl_shlibext"; then
 
19790
              if test -f "$dir/$libname$shrext"; then
 
19791
                found_dir="$dir"
 
19792
                found_so="$dir/$libname$shrext"
 
19793
              else
 
19794
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
19795
                  ver=`(cd "$dir" && \
 
19796
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
19797
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
19798
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
19799
                        | sed 1q ) 2>/dev/null`
 
19800
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
19801
                    found_dir="$dir"
 
19802
                    found_so="$dir/$libname$shrext.$ver"
 
19803
                  fi
 
19804
                else
 
19805
                  eval library_names=\"$acl_library_names_spec\"
 
19806
                  for f in $library_names; do
 
19807
                    if test -f "$dir/$f"; then
 
19808
                      found_dir="$dir"
 
19809
                      found_so="$dir/$f"
 
19810
                      break
 
19811
                    fi
 
19812
                  done
 
19813
                fi
 
19814
              fi
 
19815
            fi
 
19816
                        if test "X$found_dir" = "X"; then
 
19817
              if test -f "$dir/$libname.$acl_libext"; then
 
19818
                found_dir="$dir"
 
19819
                found_a="$dir/$libname.$acl_libext"
 
19820
              fi
 
19821
            fi
 
19822
            if test "X$found_dir" != "X"; then
 
19823
              if test -f "$dir/$libname.la"; then
 
19824
                found_la="$dir/$libname.la"
 
19825
              fi
 
19826
            fi
 
19827
          fi
 
19828
          if test "X$found_dir" = "X"; then
 
19829
            for x in $LDFLAGS $LTLIBPTH; do
 
19830
 
 
19831
  acl_save_prefix="$prefix"
 
19832
  prefix="$acl_final_prefix"
 
19833
  acl_save_exec_prefix="$exec_prefix"
 
19834
  exec_prefix="$acl_final_exec_prefix"
 
19835
  eval x=\"$x\"
 
19836
  exec_prefix="$acl_save_exec_prefix"
 
19837
  prefix="$acl_save_prefix"
 
19838
 
 
19839
              case "$x" in
 
19840
                -L*)
 
19841
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
19842
                                    if test -n "$acl_shlibext"; then
 
19843
                    if test -f "$dir/$libname$shrext"; then
 
19844
                      found_dir="$dir"
 
19845
                      found_so="$dir/$libname$shrext"
 
19846
                    else
 
19847
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
19848
                        ver=`(cd "$dir" && \
 
19849
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
19850
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
19851
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
19852
                              | sed 1q ) 2>/dev/null`
 
19853
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
19854
                          found_dir="$dir"
 
19855
                          found_so="$dir/$libname$shrext.$ver"
 
19856
                        fi
 
19857
                      else
 
19858
                        eval library_names=\"$acl_library_names_spec\"
 
19859
                        for f in $library_names; do
 
19860
                          if test -f "$dir/$f"; then
 
19861
                            found_dir="$dir"
 
19862
                            found_so="$dir/$f"
 
19863
                            break
 
19864
                          fi
 
19865
                        done
 
19866
                      fi
 
19867
                    fi
 
19868
                  fi
 
19869
                                    if test "X$found_dir" = "X"; then
 
19870
                    if test -f "$dir/$libname.$acl_libext"; then
 
19871
                      found_dir="$dir"
 
19872
                      found_a="$dir/$libname.$acl_libext"
 
19873
                    fi
 
19874
                  fi
 
19875
                  if test "X$found_dir" != "X"; then
 
19876
                    if test -f "$dir/$libname.la"; then
 
19877
                      found_la="$dir/$libname.la"
 
19878
                    fi
 
19879
                  fi
 
19880
                  ;;
 
19881
              esac
 
19882
              if test "X$found_dir" != "X"; then
 
19883
                break
 
19884
              fi
 
19885
            done
 
19886
          fi
 
19887
          if test "X$found_dir" != "X"; then
 
19888
                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
 
19889
            if test "X$found_so" != "X"; then
 
19890
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
19891
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
19892
              else
 
19893
                                                                                haveit=
 
19894
                for x in $ltrpathdirs; do
 
19895
                  if test "X$x" = "X$found_dir"; then
 
19896
                    haveit=yes
 
19897
                    break
 
19898
                  fi
 
19899
                done
 
19900
                if test -z "$haveit"; then
 
19901
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
19902
                fi
 
19903
                                if test "$acl_hardcode_direct" = yes; then
 
19904
                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
19905
                else
 
19906
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
19907
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
19908
                                                            haveit=
 
19909
                    for x in $rpathdirs; do
 
19910
                      if test "X$x" = "X$found_dir"; then
 
19911
                        haveit=yes
 
19912
                        break
 
19913
                      fi
 
19914
                    done
 
19915
                    if test -z "$haveit"; then
 
19916
                      rpathdirs="$rpathdirs $found_dir"
 
19917
                    fi
 
19918
                  else
 
19919
                                                                                haveit=
 
19920
                    for x in $LDFLAGS $LIBPTH; do
 
19921
 
 
19922
  acl_save_prefix="$prefix"
 
19923
  prefix="$acl_final_prefix"
 
19924
  acl_save_exec_prefix="$exec_prefix"
 
19925
  exec_prefix="$acl_final_exec_prefix"
 
19926
  eval x=\"$x\"
 
19927
  exec_prefix="$acl_save_exec_prefix"
 
19928
  prefix="$acl_save_prefix"
 
19929
 
 
19930
                      if test "X$x" = "X-L$found_dir"; then
 
19931
                        haveit=yes
 
19932
                        break
 
19933
                      fi
 
19934
                    done
 
19935
                    if test -z "$haveit"; then
 
19936
                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
 
19937
                    fi
 
19938
                    if test "$acl_hardcode_minus_L" != no; then
 
19939
                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
19940
                    else
 
19941
                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
19942
                    fi
 
19943
                  fi
 
19944
                fi
 
19945
              fi
 
19946
            else
 
19947
              if test "X$found_a" != "X"; then
 
19948
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
 
19949
              else
 
19950
                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
 
19951
              fi
 
19952
            fi
 
19953
                        additional_includedir=
 
19954
            case "$found_dir" in
 
19955
              */$acl_libdirstem | */$acl_libdirstem/)
 
19956
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
19957
                LIBPTH_PREFIX="$basedir"
 
19958
                additional_includedir="$basedir/include"
 
19959
                ;;
 
19960
            esac
 
19961
            if test "X$additional_includedir" != "X"; then
 
19962
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
19963
                haveit=
 
19964
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
19965
                  if test -n "$GCC"; then
 
19966
                    case $host_os in
 
19967
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
19968
                    esac
 
19969
                  fi
 
19970
                fi
 
19971
                if test -z "$haveit"; then
 
19972
                  for x in $CPPFLAGS $INCPTH; do
 
19973
 
 
19974
  acl_save_prefix="$prefix"
 
19975
  prefix="$acl_final_prefix"
 
19976
  acl_save_exec_prefix="$exec_prefix"
 
19977
  exec_prefix="$acl_final_exec_prefix"
 
19978
  eval x=\"$x\"
 
19979
  exec_prefix="$acl_save_exec_prefix"
 
19980
  prefix="$acl_save_prefix"
 
19981
 
 
19982
                    if test "X$x" = "X-I$additional_includedir"; then
 
19983
                      haveit=yes
 
19984
                      break
 
19985
                    fi
 
19986
                  done
 
19987
                  if test -z "$haveit"; then
 
19988
                    if test -d "$additional_includedir"; then
 
19989
                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
 
19990
                    fi
 
19991
                  fi
 
19992
                fi
 
19993
              fi
 
19994
            fi
 
19995
                        if test -n "$found_la"; then
 
19996
                                                        save_libdir="$libdir"
 
19997
              case "$found_la" in
 
19998
                */* | *\\*) . "$found_la" ;;
 
19999
                *) . "./$found_la" ;;
 
20000
              esac
 
20001
              libdir="$save_libdir"
 
20002
                            for dep in $dependency_libs; do
 
20003
                case "$dep" in
 
20004
                  -L*)
 
20005
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
20006
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
20007
                      haveit=
 
20008
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
20009
                        if test -n "$GCC"; then
 
20010
                          case $host_os in
 
20011
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
20012
                          esac
 
20013
                        fi
 
20014
                      fi
 
20015
                      if test -z "$haveit"; then
 
20016
                        haveit=
 
20017
                        for x in $LDFLAGS $LIBPTH; do
 
20018
 
 
20019
  acl_save_prefix="$prefix"
 
20020
  prefix="$acl_final_prefix"
 
20021
  acl_save_exec_prefix="$exec_prefix"
 
20022
  exec_prefix="$acl_final_exec_prefix"
 
20023
  eval x=\"$x\"
 
20024
  exec_prefix="$acl_save_exec_prefix"
 
20025
  prefix="$acl_save_prefix"
 
20026
 
 
20027
                          if test "X$x" = "X-L$additional_libdir"; then
 
20028
                            haveit=yes
 
20029
                            break
 
20030
                          fi
 
20031
                        done
 
20032
                        if test -z "$haveit"; then
 
20033
                          if test -d "$additional_libdir"; then
 
20034
                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
 
20035
                          fi
 
20036
                        fi
 
20037
                        haveit=
 
20038
                        for x in $LDFLAGS $LTLIBPTH; do
 
20039
 
 
20040
  acl_save_prefix="$prefix"
 
20041
  prefix="$acl_final_prefix"
 
20042
  acl_save_exec_prefix="$exec_prefix"
 
20043
  exec_prefix="$acl_final_exec_prefix"
 
20044
  eval x=\"$x\"
 
20045
  exec_prefix="$acl_save_exec_prefix"
 
20046
  prefix="$acl_save_prefix"
 
20047
 
 
20048
                          if test "X$x" = "X-L$additional_libdir"; then
 
20049
                            haveit=yes
 
20050
                            break
 
20051
                          fi
 
20052
                        done
 
20053
                        if test -z "$haveit"; then
 
20054
                          if test -d "$additional_libdir"; then
 
20055
                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
 
20056
                          fi
 
20057
                        fi
 
20058
                      fi
 
20059
                    fi
 
20060
                    ;;
 
20061
                  -R*)
 
20062
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
20063
                    if test "$enable_rpath" != no; then
 
20064
                                                                  haveit=
 
20065
                      for x in $rpathdirs; do
 
20066
                        if test "X$x" = "X$dir"; then
 
20067
                          haveit=yes
 
20068
                          break
 
20069
                        fi
 
20070
                      done
 
20071
                      if test -z "$haveit"; then
 
20072
                        rpathdirs="$rpathdirs $dir"
 
20073
                      fi
 
20074
                                                                  haveit=
 
20075
                      for x in $ltrpathdirs; do
 
20076
                        if test "X$x" = "X$dir"; then
 
20077
                          haveit=yes
 
20078
                          break
 
20079
                        fi
 
20080
                      done
 
20081
                      if test -z "$haveit"; then
 
20082
                        ltrpathdirs="$ltrpathdirs $dir"
 
20083
                      fi
 
20084
                    fi
 
20085
                    ;;
 
20086
                  -l*)
 
20087
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
20088
                    ;;
 
20089
                  *.la)
 
20090
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
20091
                    ;;
 
20092
                  *)
 
20093
                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
 
20094
                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
 
20095
                    ;;
 
20096
                esac
 
20097
              done
 
20098
            fi
 
20099
          else
 
20100
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
20101
            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
 
20102
          fi
 
20103
        fi
 
20104
      fi
 
20105
    done
 
20106
  done
 
20107
  if test "X$rpathdirs" != "X"; then
 
20108
    if test -n "$acl_hardcode_libdir_separator"; then
 
20109
                        alldirs=
 
20110
      for found_dir in $rpathdirs; do
 
20111
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
20112
      done
 
20113
            acl_save_libdir="$libdir"
 
20114
      libdir="$alldirs"
 
20115
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
20116
      libdir="$acl_save_libdir"
 
20117
      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
20118
    else
 
20119
            for found_dir in $rpathdirs; do
 
20120
        acl_save_libdir="$libdir"
 
20121
        libdir="$found_dir"
 
20122
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
20123
        libdir="$acl_save_libdir"
 
20124
        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
20125
      done
 
20126
    fi
 
20127
  fi
 
20128
  if test "X$ltrpathdirs" != "X"; then
 
20129
            for found_dir in $ltrpathdirs; do
 
20130
      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
 
20131
    done
 
20132
  fi
 
20133
 
 
20134
    ac_cv_libpth_libs="$LIBPTH"
 
20135
    ac_cv_libpth_ltlibs="$LTLIBPTH"
 
20136
    ac_cv_libpth_cppflags="$INCPTH"
 
20137
    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
 
20138
 
 
20139
fi
 
20140
{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
 
20141
$as_echo "$ac_cv_libpth_libs" >&6; }
 
20142
  LIBPTH="$ac_cv_libpth_libs"
 
20143
  LTLIBPTH="$ac_cv_libpth_ltlibs"
 
20144
  INCPTH="$ac_cv_libpth_cppflags"
 
20145
  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
 
20146
 
 
20147
  for element in $INCPTH; do
 
20148
    haveit=
 
20149
    for x in $CPPFLAGS; do
 
20150
 
 
20151
  acl_save_prefix="$prefix"
 
20152
  prefix="$acl_final_prefix"
 
20153
  acl_save_exec_prefix="$exec_prefix"
 
20154
  exec_prefix="$acl_final_exec_prefix"
 
20155
  eval x=\"$x\"
 
20156
  exec_prefix="$acl_save_exec_prefix"
 
20157
  prefix="$acl_save_prefix"
 
20158
 
 
20159
      if test "X$x" = "X$element"; then
 
20160
        haveit=yes
 
20161
        break
 
20162
      fi
 
20163
    done
 
20164
    if test -z "$haveit"; then
 
20165
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
20166
    fi
 
20167
  done
 
20168
 
 
20169
 
 
20170
 
 
20171
 
 
20172
      HAVE_LIBPTH=yes
 
20173
 
 
20174
 
 
20175
 
 
20176
      gl_have_pth=
 
20177
      gl_save_LIBS="$LIBS"
 
20178
      LIBS="$LIBS -lpth"
 
20179
      cat >conftest.$ac_ext <<_ACEOF
 
20180
/* confdefs.h.  */
 
20181
_ACEOF
 
20182
cat confdefs.h >>conftest.$ac_ext
 
20183
cat >>conftest.$ac_ext <<_ACEOF
 
20184
/* end confdefs.h.  */
 
20185
#include <pth.h>
 
20186
int
 
20187
main ()
 
20188
{
 
20189
pth_self();
 
20190
  ;
 
20191
  return 0;
 
20192
}
 
20193
_ACEOF
 
20194
rm -f conftest.$ac_objext conftest$ac_exeext
 
20195
if { (ac_try="$ac_link"
 
20196
case "(($ac_try" in
 
20197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20198
  *) ac_try_echo=$ac_try;;
 
20199
esac
 
20200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20201
$as_echo "$ac_try_echo") >&5
 
20202
  (eval "$ac_link") 2>conftest.er1
 
20203
  ac_status=$?
 
20204
  grep -v '^ *+' conftest.er1 >conftest.err
 
20205
  rm -f conftest.er1
 
20206
  cat conftest.err >&5
 
20207
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20208
  (exit $ac_status); } && {
 
20209
         test -z "$ac_c_werror_flag" ||
 
20210
         test ! -s conftest.err
 
20211
       } && test -s conftest$ac_exeext && {
 
20212
         test "$cross_compiling" = yes ||
 
20213
         $as_test_x conftest$ac_exeext
 
20214
       }; then
 
20215
  gl_have_pth=yes
 
20216
else
 
20217
  $as_echo "$as_me: failed program was:" >&5
 
20218
sed 's/^/| /' conftest.$ac_ext >&5
 
20219
 
 
20220
 
 
20221
fi
 
20222
 
 
20223
rm -rf conftest.dSYM
 
20224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20225
      conftest$ac_exeext conftest.$ac_ext
 
20226
      LIBS="$gl_save_LIBS"
 
20227
      if test -n "$gl_have_pth"; then
 
20228
        gl_threads_api=pth
 
20229
        LIBTHREAD="$LIBPTH"
 
20230
        LTLIBTHREAD="$LTLIBPTH"
 
20231
        LIBMULTITHREAD="$LIBTHREAD"
 
20232
        LTLIBMULTITHREAD="$LTLIBTHREAD"
 
20233
 
 
20234
cat >>confdefs.h <<\_ACEOF
 
20235
#define USE_PTH_THREADS 1
 
20236
_ACEOF
 
20237
 
 
20238
        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
20239
          if test $gl_have_weak = yes; then
 
20240
 
 
20241
cat >>confdefs.h <<\_ACEOF
 
20242
#define USE_PTH_THREADS_WEAK 1
 
20243
_ACEOF
 
20244
 
 
20245
            LIBTHREAD=
 
20246
            LTLIBTHREAD=
 
20247
          fi
 
20248
        fi
 
20249
      else
 
20250
        CPPFLAGS="$gl_save_CPPFLAGS"
 
20251
      fi
 
20252
    fi
 
20253
    if test -z "$gl_have_pthread"; then
 
20254
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
 
20255
        if { case "$host_os" in
 
20256
               mingw*) true;;
 
20257
               *) false;;
 
20258
             esac
 
20259
           }; then
 
20260
          gl_threads_api=win32
 
20261
 
 
20262
cat >>confdefs.h <<\_ACEOF
 
20263
#define USE_WIN32_THREADS 1
 
20264
_ACEOF
 
20265
 
 
20266
        fi
 
20267
      fi
 
20268
    fi
 
20269
  fi
 
20270
  { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
 
20271
$as_echo_n "checking for multithread API to use... " >&6; }
 
20272
  { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
 
20273
$as_echo "$gl_threads_api" >&6; }
 
20274
 
 
20275
 
 
20276
 
 
20277
 
 
20278
 
 
20279
 
 
20280
 
 
20281
 
 
20282
 
 
20283
 
 
20284
 
 
20285
 
 
20286
 
 
20287
 
 
20288
 
 
20289
 
 
20290
 
 
20291
 
 
20292
 
 
20293
 
 
20294
    use_additional=yes
 
20295
 
 
20296
  acl_save_prefix="$prefix"
 
20297
  prefix="$acl_final_prefix"
 
20298
  acl_save_exec_prefix="$exec_prefix"
 
20299
  exec_prefix="$acl_final_exec_prefix"
 
20300
 
 
20301
    eval additional_includedir=\"$includedir\"
 
20302
    eval additional_libdir=\"$libdir\"
 
20303
 
 
20304
  exec_prefix="$acl_save_exec_prefix"
 
20305
  prefix="$acl_save_prefix"
 
20306
 
 
20307
 
 
20308
# Check whether --with-libiconv-prefix was given.
 
20309
if test "${with_libiconv_prefix+set}" = set; then
 
20310
  withval=$with_libiconv_prefix;
 
20311
    if test "X$withval" = "Xno"; then
 
20312
      use_additional=no
 
20313
    else
 
20314
      if test "X$withval" = "X"; then
 
20315
 
 
20316
  acl_save_prefix="$prefix"
 
20317
  prefix="$acl_final_prefix"
 
20318
  acl_save_exec_prefix="$exec_prefix"
 
20319
  exec_prefix="$acl_final_exec_prefix"
 
20320
 
 
20321
          eval additional_includedir=\"$includedir\"
 
20322
          eval additional_libdir=\"$libdir\"
 
20323
 
 
20324
  exec_prefix="$acl_save_exec_prefix"
 
20325
  prefix="$acl_save_prefix"
 
20326
 
 
20327
      else
 
20328
        additional_includedir="$withval/include"
 
20329
        additional_libdir="$withval/$acl_libdirstem"
 
20330
      fi
 
20331
    fi
 
20332
 
 
20333
fi
 
20334
 
 
20335
      LIBICONV=
 
20336
  LTLIBICONV=
 
20337
  INCICONV=
 
20338
  LIBICONV_PREFIX=
 
20339
  rpathdirs=
 
20340
  ltrpathdirs=
 
20341
  names_already_handled=
 
20342
  names_next_round='iconv '
 
20343
  while test -n "$names_next_round"; do
 
20344
    names_this_round="$names_next_round"
 
20345
    names_next_round=
 
20346
    for name in $names_this_round; do
 
20347
      already_handled=
 
20348
      for n in $names_already_handled; do
 
20349
        if test "$n" = "$name"; then
 
20350
          already_handled=yes
 
20351
          break
 
20352
        fi
 
20353
      done
 
20354
      if test -z "$already_handled"; then
 
20355
        names_already_handled="$names_already_handled $name"
 
20356
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
20357
        eval value=\"\$HAVE_LIB$uppername\"
 
20358
        if test -n "$value"; then
 
20359
          if test "$value" = yes; then
 
20360
            eval value=\"\$LIB$uppername\"
 
20361
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
20362
            eval value=\"\$LTLIB$uppername\"
 
20363
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
20364
          else
 
20365
                                    :
 
20366
          fi
 
20367
        else
 
20368
                              found_dir=
 
20369
          found_la=
 
20370
          found_so=
 
20371
          found_a=
 
20372
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
20373
          if test -n "$acl_shlibext"; then
 
20374
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
20375
          else
 
20376
            shrext=
 
20377
          fi
 
20378
          if test $use_additional = yes; then
 
20379
            dir="$additional_libdir"
 
20380
                                    if test -n "$acl_shlibext"; then
 
20381
              if test -f "$dir/$libname$shrext"; then
 
20382
                found_dir="$dir"
 
20383
                found_so="$dir/$libname$shrext"
 
20384
              else
 
20385
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
20386
                  ver=`(cd "$dir" && \
 
20387
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
20388
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
20389
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
20390
                        | sed 1q ) 2>/dev/null`
 
20391
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
20392
                    found_dir="$dir"
 
20393
                    found_so="$dir/$libname$shrext.$ver"
 
20394
                  fi
 
20395
                else
 
20396
                  eval library_names=\"$acl_library_names_spec\"
 
20397
                  for f in $library_names; do
 
20398
                    if test -f "$dir/$f"; then
 
20399
                      found_dir="$dir"
 
20400
                      found_so="$dir/$f"
 
20401
                      break
 
20402
                    fi
 
20403
                  done
 
20404
                fi
 
20405
              fi
 
20406
            fi
 
20407
                        if test "X$found_dir" = "X"; then
 
20408
              if test -f "$dir/$libname.$acl_libext"; then
 
20409
                found_dir="$dir"
 
20410
                found_a="$dir/$libname.$acl_libext"
 
20411
              fi
 
20412
            fi
 
20413
            if test "X$found_dir" != "X"; then
 
20414
              if test -f "$dir/$libname.la"; then
 
20415
                found_la="$dir/$libname.la"
 
20416
              fi
 
20417
            fi
 
20418
          fi
 
20419
          if test "X$found_dir" = "X"; then
 
20420
            for x in $LDFLAGS $LTLIBICONV; do
 
20421
 
 
20422
  acl_save_prefix="$prefix"
 
20423
  prefix="$acl_final_prefix"
 
20424
  acl_save_exec_prefix="$exec_prefix"
 
20425
  exec_prefix="$acl_final_exec_prefix"
 
20426
  eval x=\"$x\"
 
20427
  exec_prefix="$acl_save_exec_prefix"
 
20428
  prefix="$acl_save_prefix"
 
20429
 
 
20430
              case "$x" in
 
20431
                -L*)
 
20432
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
20433
                                    if test -n "$acl_shlibext"; then
 
20434
                    if test -f "$dir/$libname$shrext"; then
 
20435
                      found_dir="$dir"
 
20436
                      found_so="$dir/$libname$shrext"
 
20437
                    else
 
20438
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
20439
                        ver=`(cd "$dir" && \
 
20440
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
20441
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
20442
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
20443
                              | sed 1q ) 2>/dev/null`
 
20444
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
20445
                          found_dir="$dir"
 
20446
                          found_so="$dir/$libname$shrext.$ver"
 
20447
                        fi
 
20448
                      else
 
20449
                        eval library_names=\"$acl_library_names_spec\"
 
20450
                        for f in $library_names; do
 
20451
                          if test -f "$dir/$f"; then
 
20452
                            found_dir="$dir"
 
20453
                            found_so="$dir/$f"
 
20454
                            break
 
20455
                          fi
 
20456
                        done
 
20457
                      fi
 
20458
                    fi
 
20459
                  fi
 
20460
                                    if test "X$found_dir" = "X"; then
 
20461
                    if test -f "$dir/$libname.$acl_libext"; then
 
20462
                      found_dir="$dir"
 
20463
                      found_a="$dir/$libname.$acl_libext"
 
20464
                    fi
 
20465
                  fi
 
20466
                  if test "X$found_dir" != "X"; then
 
20467
                    if test -f "$dir/$libname.la"; then
 
20468
                      found_la="$dir/$libname.la"
 
20469
                    fi
 
20470
                  fi
 
20471
                  ;;
 
20472
              esac
 
20473
              if test "X$found_dir" != "X"; then
 
20474
                break
 
20475
              fi
 
20476
            done
 
20477
          fi
 
20478
          if test "X$found_dir" != "X"; then
 
20479
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
20480
            if test "X$found_so" != "X"; then
 
20481
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
20482
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
20483
              else
 
20484
                                                                                haveit=
 
20485
                for x in $ltrpathdirs; do
 
20486
                  if test "X$x" = "X$found_dir"; then
 
20487
                    haveit=yes
 
20488
                    break
 
20489
                  fi
 
20490
                done
 
20491
                if test -z "$haveit"; then
 
20492
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
20493
                fi
 
20494
                                if test "$acl_hardcode_direct" = yes; then
 
20495
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
20496
                else
 
20497
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
20498
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
20499
                                                            haveit=
 
20500
                    for x in $rpathdirs; do
 
20501
                      if test "X$x" = "X$found_dir"; then
 
20502
                        haveit=yes
 
20503
                        break
 
20504
                      fi
 
20505
                    done
 
20506
                    if test -z "$haveit"; then
 
20507
                      rpathdirs="$rpathdirs $found_dir"
 
20508
                    fi
 
20509
                  else
 
20510
                                                                                haveit=
 
20511
                    for x in $LDFLAGS $LIBICONV; do
 
20512
 
 
20513
  acl_save_prefix="$prefix"
 
20514
  prefix="$acl_final_prefix"
 
20515
  acl_save_exec_prefix="$exec_prefix"
 
20516
  exec_prefix="$acl_final_exec_prefix"
 
20517
  eval x=\"$x\"
 
20518
  exec_prefix="$acl_save_exec_prefix"
 
20519
  prefix="$acl_save_prefix"
 
20520
 
 
20521
                      if test "X$x" = "X-L$found_dir"; then
 
20522
                        haveit=yes
 
20523
                        break
 
20524
                      fi
 
20525
                    done
 
20526
                    if test -z "$haveit"; then
 
20527
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
20528
                    fi
 
20529
                    if test "$acl_hardcode_minus_L" != no; then
 
20530
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
20531
                    else
 
20532
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
20533
                    fi
 
20534
                  fi
 
20535
                fi
 
20536
              fi
 
20537
            else
 
20538
              if test "X$found_a" != "X"; then
 
20539
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
20540
              else
 
20541
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
20542
              fi
 
20543
            fi
 
20544
                        additional_includedir=
 
20545
            case "$found_dir" in
 
20546
              */$acl_libdirstem | */$acl_libdirstem/)
 
20547
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
20548
                LIBICONV_PREFIX="$basedir"
 
20549
                additional_includedir="$basedir/include"
 
20550
                ;;
 
20551
            esac
 
20552
            if test "X$additional_includedir" != "X"; then
 
20553
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
20554
                haveit=
 
20555
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
20556
                  if test -n "$GCC"; then
 
20557
                    case $host_os in
 
20558
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
20559
                    esac
 
20560
                  fi
 
20561
                fi
 
20562
                if test -z "$haveit"; then
 
20563
                  for x in $CPPFLAGS $INCICONV; do
 
20564
 
 
20565
  acl_save_prefix="$prefix"
 
20566
  prefix="$acl_final_prefix"
 
20567
  acl_save_exec_prefix="$exec_prefix"
 
20568
  exec_prefix="$acl_final_exec_prefix"
 
20569
  eval x=\"$x\"
 
20570
  exec_prefix="$acl_save_exec_prefix"
 
20571
  prefix="$acl_save_prefix"
 
20572
 
 
20573
                    if test "X$x" = "X-I$additional_includedir"; then
 
20574
                      haveit=yes
 
20575
                      break
 
20576
                    fi
 
20577
                  done
 
20578
                  if test -z "$haveit"; then
 
20579
                    if test -d "$additional_includedir"; then
 
20580
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
20581
                    fi
 
20582
                  fi
 
20583
                fi
 
20584
              fi
 
20585
            fi
 
20586
                        if test -n "$found_la"; then
 
20587
                                                        save_libdir="$libdir"
 
20588
              case "$found_la" in
 
20589
                */* | *\\*) . "$found_la" ;;
 
20590
                *) . "./$found_la" ;;
 
20591
              esac
 
20592
              libdir="$save_libdir"
 
20593
                            for dep in $dependency_libs; do
 
20594
                case "$dep" in
 
20595
                  -L*)
 
20596
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
20597
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
20598
                      haveit=
 
20599
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
20600
                        if test -n "$GCC"; then
 
20601
                          case $host_os in
 
20602
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
20603
                          esac
 
20604
                        fi
 
20605
                      fi
 
20606
                      if test -z "$haveit"; then
 
20607
                        haveit=
 
20608
                        for x in $LDFLAGS $LIBICONV; do
 
20609
 
 
20610
  acl_save_prefix="$prefix"
 
20611
  prefix="$acl_final_prefix"
 
20612
  acl_save_exec_prefix="$exec_prefix"
 
20613
  exec_prefix="$acl_final_exec_prefix"
 
20614
  eval x=\"$x\"
 
20615
  exec_prefix="$acl_save_exec_prefix"
 
20616
  prefix="$acl_save_prefix"
 
20617
 
 
20618
                          if test "X$x" = "X-L$additional_libdir"; then
 
20619
                            haveit=yes
 
20620
                            break
 
20621
                          fi
 
20622
                        done
 
20623
                        if test -z "$haveit"; then
 
20624
                          if test -d "$additional_libdir"; then
 
20625
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
20626
                          fi
 
20627
                        fi
 
20628
                        haveit=
 
20629
                        for x in $LDFLAGS $LTLIBICONV; do
 
20630
 
 
20631
  acl_save_prefix="$prefix"
 
20632
  prefix="$acl_final_prefix"
 
20633
  acl_save_exec_prefix="$exec_prefix"
 
20634
  exec_prefix="$acl_final_exec_prefix"
 
20635
  eval x=\"$x\"
 
20636
  exec_prefix="$acl_save_exec_prefix"
 
20637
  prefix="$acl_save_prefix"
 
20638
 
 
20639
                          if test "X$x" = "X-L$additional_libdir"; then
 
20640
                            haveit=yes
 
20641
                            break
 
20642
                          fi
 
20643
                        done
 
20644
                        if test -z "$haveit"; then
 
20645
                          if test -d "$additional_libdir"; then
 
20646
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
20647
                          fi
 
20648
                        fi
 
20649
                      fi
 
20650
                    fi
 
20651
                    ;;
 
20652
                  -R*)
 
20653
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
20654
                    if test "$enable_rpath" != no; then
 
20655
                                                                  haveit=
 
20656
                      for x in $rpathdirs; do
 
20657
                        if test "X$x" = "X$dir"; then
 
20658
                          haveit=yes
 
20659
                          break
 
20660
                        fi
 
20661
                      done
 
20662
                      if test -z "$haveit"; then
 
20663
                        rpathdirs="$rpathdirs $dir"
 
20664
                      fi
 
20665
                                                                  haveit=
 
20666
                      for x in $ltrpathdirs; do
 
20667
                        if test "X$x" = "X$dir"; then
 
20668
                          haveit=yes
 
20669
                          break
 
20670
                        fi
 
20671
                      done
 
20672
                      if test -z "$haveit"; then
 
20673
                        ltrpathdirs="$ltrpathdirs $dir"
 
20674
                      fi
 
20675
                    fi
 
20676
                    ;;
 
20677
                  -l*)
 
20678
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
20679
                    ;;
 
20680
                  *.la)
 
20681
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
20682
                    ;;
 
20683
                  *)
 
20684
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
20685
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
20686
                    ;;
 
20687
                esac
 
20688
              done
 
20689
            fi
 
20690
          else
 
20691
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
20692
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
20693
          fi
 
20694
        fi
 
20695
      fi
 
20696
    done
 
20697
  done
 
20698
  if test "X$rpathdirs" != "X"; then
 
20699
    if test -n "$acl_hardcode_libdir_separator"; then
 
20700
                        alldirs=
 
20701
      for found_dir in $rpathdirs; do
 
20702
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
20703
      done
 
20704
            acl_save_libdir="$libdir"
 
20705
      libdir="$alldirs"
 
20706
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
20707
      libdir="$acl_save_libdir"
 
20708
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
20709
    else
 
20710
            for found_dir in $rpathdirs; do
 
20711
        acl_save_libdir="$libdir"
 
20712
        libdir="$found_dir"
 
20713
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
20714
        libdir="$acl_save_libdir"
 
20715
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
20716
      done
 
20717
    fi
 
20718
  fi
 
20719
  if test "X$ltrpathdirs" != "X"; then
 
20720
            for found_dir in $ltrpathdirs; do
 
20721
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
20722
    done
 
20723
  fi
 
20724
 
 
20725
 
 
20726
 
 
20727
 
 
20728
 
 
20729
  cat >conftest.$ac_ext <<_ACEOF
 
20730
/* confdefs.h.  */
 
20731
_ACEOF
 
20732
cat confdefs.h >>conftest.$ac_ext
 
20733
cat >>conftest.$ac_ext <<_ACEOF
 
20734
/* end confdefs.h.  */
 
20735
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
 
20736
int
 
20737
main ()
 
20738
{
 
20739
 
 
20740
  ;
 
20741
  return 0;
 
20742
}
 
20743
_ACEOF
 
20744
rm -f conftest.$ac_objext conftest$ac_exeext
 
20745
if { (ac_try="$ac_link"
 
20746
case "(($ac_try" in
 
20747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20748
  *) ac_try_echo=$ac_try;;
 
20749
esac
 
20750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20751
$as_echo "$ac_try_echo") >&5
 
20752
  (eval "$ac_link") 2>conftest.er1
 
20753
  ac_status=$?
 
20754
  grep -v '^ *+' conftest.er1 >conftest.err
 
20755
  rm -f conftest.er1
 
20756
  cat conftest.err >&5
 
20757
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20758
  (exit $ac_status); } && {
 
20759
         test -z "$ac_c_werror_flag" ||
 
20760
         test ! -s conftest.err
 
20761
       } && test -s conftest$ac_exeext && {
 
20762
         test "$cross_compiling" = yes ||
 
20763
         $as_test_x conftest$ac_exeext
 
20764
       }; then
 
20765
 
 
20766
cat >>confdefs.h <<\_ACEOF
 
20767
#define HAVE_BUILTIN_EXPECT 1
 
20768
_ACEOF
 
20769
 
 
20770
else
 
20771
  $as_echo "$as_me: failed program was:" >&5
 
20772
sed 's/^/| /' conftest.$ac_ext >&5
 
20773
 
 
20774
 
 
20775
fi
 
20776
 
 
20777
rm -rf conftest.dSYM
 
20778
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20779
      conftest$ac_exeext conftest.$ac_ext
 
20780
 
 
20781
 
 
20782
 
 
20783
 
 
20784
 
 
20785
 
 
20786
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
 
20787
do
 
20788
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20789
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20790
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20791
$as_echo_n "checking for $ac_header... " >&6; }
 
20792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20793
  $as_echo_n "(cached) " >&6
 
20794
fi
 
20795
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20796
                 $as_echo "$as_val"'`
 
20797
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20798
$as_echo "$ac_res" >&6; }
 
20799
else
 
20800
  # Is the header compilable?
 
20801
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20802
$as_echo_n "checking $ac_header usability... " >&6; }
 
20803
cat >conftest.$ac_ext <<_ACEOF
 
20804
/* confdefs.h.  */
 
20805
_ACEOF
 
20806
cat confdefs.h >>conftest.$ac_ext
 
20807
cat >>conftest.$ac_ext <<_ACEOF
 
20808
/* end confdefs.h.  */
 
20809
$ac_includes_default
 
20810
#include <$ac_header>
 
20811
_ACEOF
 
20812
rm -f conftest.$ac_objext
 
20813
if { (ac_try="$ac_compile"
 
20814
case "(($ac_try" in
 
20815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20816
  *) ac_try_echo=$ac_try;;
 
20817
esac
 
20818
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20819
$as_echo "$ac_try_echo") >&5
 
20820
  (eval "$ac_compile") 2>conftest.er1
 
20821
  ac_status=$?
 
20822
  grep -v '^ *+' conftest.er1 >conftest.err
 
20823
  rm -f conftest.er1
 
20824
  cat conftest.err >&5
 
20825
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20826
  (exit $ac_status); } && {
 
20827
         test -z "$ac_c_werror_flag" ||
 
20828
         test ! -s conftest.err
 
20829
       } && test -s conftest.$ac_objext; then
 
20830
  ac_header_compiler=yes
 
20831
else
 
20832
  $as_echo "$as_me: failed program was:" >&5
 
20833
sed 's/^/| /' conftest.$ac_ext >&5
 
20834
 
 
20835
        ac_header_compiler=no
 
20836
fi
 
20837
 
 
20838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20839
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20840
$as_echo "$ac_header_compiler" >&6; }
 
20841
 
 
20842
# Is the header present?
 
20843
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20844
$as_echo_n "checking $ac_header presence... " >&6; }
 
20845
cat >conftest.$ac_ext <<_ACEOF
 
20846
/* confdefs.h.  */
 
20847
_ACEOF
 
20848
cat confdefs.h >>conftest.$ac_ext
 
20849
cat >>conftest.$ac_ext <<_ACEOF
 
20850
/* end confdefs.h.  */
 
20851
#include <$ac_header>
 
20852
_ACEOF
 
20853
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20854
case "(($ac_try" in
 
20855
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20856
  *) ac_try_echo=$ac_try;;
 
20857
esac
 
20858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20859
$as_echo "$ac_try_echo") >&5
 
20860
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20861
  ac_status=$?
 
20862
  grep -v '^ *+' conftest.er1 >conftest.err
 
20863
  rm -f conftest.er1
 
20864
  cat conftest.err >&5
 
20865
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20866
  (exit $ac_status); } >/dev/null && {
 
20867
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20868
         test ! -s conftest.err
 
20869
       }; then
 
20870
  ac_header_preproc=yes
 
20871
else
 
20872
  $as_echo "$as_me: failed program was:" >&5
 
20873
sed 's/^/| /' conftest.$ac_ext >&5
 
20874
 
 
20875
  ac_header_preproc=no
 
20876
fi
 
20877
 
 
20878
rm -f conftest.err conftest.$ac_ext
 
20879
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20880
$as_echo "$ac_header_preproc" >&6; }
 
20881
 
 
20882
# So?  What about this header?
 
20883
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20884
  yes:no: )
 
20885
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20886
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20887
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20888
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20889
    ac_header_preproc=yes
 
20890
    ;;
 
20891
  no:yes:* )
 
20892
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20893
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20894
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20895
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20896
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20897
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20898
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20899
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20900
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20901
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20902
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20903
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20904
 
 
20905
    ;;
 
20906
esac
 
20907
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20908
$as_echo_n "checking for $ac_header... " >&6; }
 
20909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20910
  $as_echo_n "(cached) " >&6
 
20911
else
 
20912
  eval "$as_ac_Header=\$ac_header_preproc"
 
20913
fi
 
20914
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20915
                 $as_echo "$as_val"'`
 
20916
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20917
$as_echo "$ac_res" >&6; }
 
20918
 
 
20919
fi
 
20920
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20921
                 $as_echo "$as_val"'`
 
20922
   if test "x$as_val" = x""yes; then
 
20923
  cat >>confdefs.h <<_ACEOF
 
20924
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20925
_ACEOF
 
20926
 
 
20927
fi
 
20928
 
 
20929
done
 
20930
 
 
20931
 
 
20932
 
 
20933
 
 
20934
 
 
20935
 
 
20936
 
 
20937
 
 
20938
 
 
20939
 
 
20940
 
 
20941
 
 
20942
 
 
20943
 
 
20944
 
 
20945
 
 
20946
 
 
20947
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
 
20948
    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
 
20949
    argz_next __fsetlocking
 
20950
do
 
20951
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20952
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20953
$as_echo_n "checking for $ac_func... " >&6; }
 
20954
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20955
  $as_echo_n "(cached) " >&6
 
20956
else
 
20957
  cat >conftest.$ac_ext <<_ACEOF
 
20958
/* confdefs.h.  */
 
20959
_ACEOF
 
20960
cat confdefs.h >>conftest.$ac_ext
 
20961
cat >>conftest.$ac_ext <<_ACEOF
 
20962
/* end confdefs.h.  */
 
20963
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20964
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20965
#define $ac_func innocuous_$ac_func
 
20966
 
 
20967
/* System header to define __stub macros and hopefully few prototypes,
 
20968
    which can conflict with char $ac_func (); below.
 
20969
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20970
    <limits.h> exists even on freestanding compilers.  */
 
20971
 
 
20972
#ifdef __STDC__
 
20973
# include <limits.h>
 
20974
#else
 
20975
# include <assert.h>
 
20976
#endif
 
20977
 
 
20978
#undef $ac_func
 
20979
 
 
20980
/* Override any GCC internal prototype to avoid an error.
 
20981
   Use char because int might match the return type of a GCC
 
20982
   builtin and then its argument prototype would still apply.  */
 
20983
#ifdef __cplusplus
 
20984
extern "C"
 
20985
#endif
 
20986
char $ac_func ();
 
20987
/* The GNU C library defines this for functions which it implements
 
20988
    to always fail with ENOSYS.  Some functions are actually named
 
20989
    something starting with __ and the normal name is an alias.  */
 
20990
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20991
choke me
 
20992
#endif
 
20993
 
 
20994
int
 
20995
main ()
 
20996
{
 
20997
return $ac_func ();
 
20998
  ;
 
20999
  return 0;
 
21000
}
 
21001
_ACEOF
 
21002
rm -f conftest.$ac_objext conftest$ac_exeext
 
21003
if { (ac_try="$ac_link"
 
21004
case "(($ac_try" in
 
21005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21006
  *) ac_try_echo=$ac_try;;
 
21007
esac
 
21008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21009
$as_echo "$ac_try_echo") >&5
 
21010
  (eval "$ac_link") 2>conftest.er1
 
21011
  ac_status=$?
 
21012
  grep -v '^ *+' conftest.er1 >conftest.err
 
21013
  rm -f conftest.er1
 
21014
  cat conftest.err >&5
 
21015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21016
  (exit $ac_status); } && {
 
21017
         test -z "$ac_c_werror_flag" ||
 
21018
         test ! -s conftest.err
 
21019
       } && test -s conftest$ac_exeext && {
 
21020
         test "$cross_compiling" = yes ||
 
21021
         $as_test_x conftest$ac_exeext
 
21022
       }; then
 
21023
  eval "$as_ac_var=yes"
 
21024
else
 
21025
  $as_echo "$as_me: failed program was:" >&5
 
21026
sed 's/^/| /' conftest.$ac_ext >&5
 
21027
 
 
21028
        eval "$as_ac_var=no"
 
21029
fi
 
21030
 
 
21031
rm -rf conftest.dSYM
 
21032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21033
      conftest$ac_exeext conftest.$ac_ext
 
21034
fi
 
21035
ac_res=`eval 'as_val=${'$as_ac_var'}
 
21036
                 $as_echo "$as_val"'`
 
21037
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21038
$as_echo "$ac_res" >&6; }
 
21039
as_val=`eval 'as_val=${'$as_ac_var'}
 
21040
                 $as_echo "$as_val"'`
 
21041
   if test "x$as_val" = x""yes; then
 
21042
  cat >>confdefs.h <<_ACEOF
 
21043
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21044
_ACEOF
 
21045
 
 
21046
fi
 
21047
done
 
21048
 
 
21049
 
 
21050
 
 
21051
  { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
21052
$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
 
21053
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
21054
  $as_echo_n "(cached) " >&6
 
21055
else
 
21056
  cat >conftest.$ac_ext <<_ACEOF
 
21057
/* confdefs.h.  */
 
21058
_ACEOF
 
21059
cat confdefs.h >>conftest.$ac_ext
 
21060
cat >>conftest.$ac_ext <<_ACEOF
 
21061
/* end confdefs.h.  */
 
21062
#include <stdio.h>
 
21063
int
 
21064
main ()
 
21065
{
 
21066
 
 
21067
#ifndef feof_unlocked
 
21068
  char *p = (char *) feof_unlocked;
 
21069
#endif
 
21070
 
 
21071
  ;
 
21072
  return 0;
 
21073
}
 
21074
_ACEOF
 
21075
rm -f conftest.$ac_objext
 
21076
if { (ac_try="$ac_compile"
 
21077
case "(($ac_try" in
 
21078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21079
  *) ac_try_echo=$ac_try;;
 
21080
esac
 
21081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21082
$as_echo "$ac_try_echo") >&5
 
21083
  (eval "$ac_compile") 2>conftest.er1
 
21084
  ac_status=$?
 
21085
  grep -v '^ *+' conftest.er1 >conftest.err
 
21086
  rm -f conftest.er1
 
21087
  cat conftest.err >&5
 
21088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21089
  (exit $ac_status); } && {
 
21090
         test -z "$ac_c_werror_flag" ||
 
21091
         test ! -s conftest.err
 
21092
       } && test -s conftest.$ac_objext; then
 
21093
  ac_cv_have_decl_feof_unlocked=yes
 
21094
else
 
21095
  $as_echo "$as_me: failed program was:" >&5
 
21096
sed 's/^/| /' conftest.$ac_ext >&5
 
21097
 
 
21098
        ac_cv_have_decl_feof_unlocked=no
 
21099
fi
 
21100
 
 
21101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21102
fi
 
21103
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
21104
$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
 
21105
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
21106
    gt_value=1
 
21107
  else
 
21108
    gt_value=0
 
21109
  fi
 
21110
 
 
21111
cat >>confdefs.h <<_ACEOF
 
21112
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
21113
_ACEOF
 
21114
 
 
21115
 
 
21116
 
 
21117
  { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
21118
$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
 
21119
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
21120
  $as_echo_n "(cached) " >&6
 
21121
else
 
21122
  cat >conftest.$ac_ext <<_ACEOF
 
21123
/* confdefs.h.  */
 
21124
_ACEOF
 
21125
cat confdefs.h >>conftest.$ac_ext
 
21126
cat >>conftest.$ac_ext <<_ACEOF
 
21127
/* end confdefs.h.  */
 
21128
#include <stdio.h>
 
21129
int
 
21130
main ()
 
21131
{
 
21132
 
 
21133
#ifndef fgets_unlocked
 
21134
  char *p = (char *) fgets_unlocked;
 
21135
#endif
 
21136
 
 
21137
  ;
 
21138
  return 0;
 
21139
}
 
21140
_ACEOF
 
21141
rm -f conftest.$ac_objext
 
21142
if { (ac_try="$ac_compile"
 
21143
case "(($ac_try" in
 
21144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21145
  *) ac_try_echo=$ac_try;;
 
21146
esac
 
21147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21148
$as_echo "$ac_try_echo") >&5
 
21149
  (eval "$ac_compile") 2>conftest.er1
 
21150
  ac_status=$?
 
21151
  grep -v '^ *+' conftest.er1 >conftest.err
 
21152
  rm -f conftest.er1
 
21153
  cat conftest.err >&5
 
21154
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21155
  (exit $ac_status); } && {
 
21156
         test -z "$ac_c_werror_flag" ||
 
21157
         test ! -s conftest.err
 
21158
       } && test -s conftest.$ac_objext; then
 
21159
  ac_cv_have_decl_fgets_unlocked=yes
 
21160
else
 
21161
  $as_echo "$as_me: failed program was:" >&5
 
21162
sed 's/^/| /' conftest.$ac_ext >&5
 
21163
 
 
21164
        ac_cv_have_decl_fgets_unlocked=no
 
21165
fi
 
21166
 
 
21167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21168
fi
 
21169
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
21170
$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
 
21171
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
21172
    gt_value=1
 
21173
  else
 
21174
    gt_value=0
 
21175
  fi
 
21176
 
 
21177
cat >>confdefs.h <<_ACEOF
 
21178
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
21179
_ACEOF
 
21180
 
 
21181
 
 
21182
 
 
21183
 
 
21184
 
 
21185
 
 
21186
 
 
21187
 
 
21188
          am_save_CPPFLAGS="$CPPFLAGS"
 
21189
 
 
21190
  for element in $INCICONV; do
 
21191
    haveit=
 
21192
    for x in $CPPFLAGS; do
 
21193
 
 
21194
  acl_save_prefix="$prefix"
 
21195
  prefix="$acl_final_prefix"
 
21196
  acl_save_exec_prefix="$exec_prefix"
 
21197
  exec_prefix="$acl_final_exec_prefix"
 
21198
  eval x=\"$x\"
 
21199
  exec_prefix="$acl_save_exec_prefix"
 
21200
  prefix="$acl_save_prefix"
 
21201
 
 
21202
      if test "X$x" = "X$element"; then
 
21203
        haveit=yes
 
21204
        break
 
21205
      fi
 
21206
    done
 
21207
    if test -z "$haveit"; then
 
21208
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
21209
    fi
 
21210
  done
 
21211
 
 
21212
 
 
21213
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
21214
$as_echo_n "checking for iconv... " >&6; }
 
21215
if test "${am_cv_func_iconv+set}" = set; then
 
21216
  $as_echo_n "(cached) " >&6
 
21217
else
 
21218
 
 
21219
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
21220
    am_cv_lib_iconv=no
 
21221
    cat >conftest.$ac_ext <<_ACEOF
 
21222
/* confdefs.h.  */
 
21223
_ACEOF
 
21224
cat confdefs.h >>conftest.$ac_ext
 
21225
cat >>conftest.$ac_ext <<_ACEOF
 
21226
/* end confdefs.h.  */
 
21227
#include <stdlib.h>
 
21228
#include <iconv.h>
 
21229
int
 
21230
main ()
 
21231
{
 
21232
iconv_t cd = iconv_open("","");
 
21233
       iconv(cd,NULL,NULL,NULL,NULL);
 
21234
       iconv_close(cd);
 
21235
  ;
 
21236
  return 0;
 
21237
}
 
21238
_ACEOF
 
21239
rm -f conftest.$ac_objext conftest$ac_exeext
 
21240
if { (ac_try="$ac_link"
 
21241
case "(($ac_try" in
 
21242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21243
  *) ac_try_echo=$ac_try;;
 
21244
esac
 
21245
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21246
$as_echo "$ac_try_echo") >&5
 
21247
  (eval "$ac_link") 2>conftest.er1
 
21248
  ac_status=$?
 
21249
  grep -v '^ *+' conftest.er1 >conftest.err
 
21250
  rm -f conftest.er1
 
21251
  cat conftest.err >&5
 
21252
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21253
  (exit $ac_status); } && {
 
21254
         test -z "$ac_c_werror_flag" ||
 
21255
         test ! -s conftest.err
 
21256
       } && test -s conftest$ac_exeext && {
 
21257
         test "$cross_compiling" = yes ||
 
21258
         $as_test_x conftest$ac_exeext
 
21259
       }; then
 
21260
  am_cv_func_iconv=yes
 
21261
else
 
21262
  $as_echo "$as_me: failed program was:" >&5
 
21263
sed 's/^/| /' conftest.$ac_ext >&5
 
21264
 
 
21265
 
 
21266
fi
 
21267
 
 
21268
rm -rf conftest.dSYM
 
21269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21270
      conftest$ac_exeext conftest.$ac_ext
 
21271
    if test "$am_cv_func_iconv" != yes; then
 
21272
      am_save_LIBS="$LIBS"
 
21273
      LIBS="$LIBS $LIBICONV"
 
21274
      cat >conftest.$ac_ext <<_ACEOF
 
21275
/* confdefs.h.  */
 
21276
_ACEOF
 
21277
cat confdefs.h >>conftest.$ac_ext
 
21278
cat >>conftest.$ac_ext <<_ACEOF
 
21279
/* end confdefs.h.  */
 
21280
#include <stdlib.h>
 
21281
#include <iconv.h>
 
21282
int
 
21283
main ()
 
21284
{
 
21285
iconv_t cd = iconv_open("","");
 
21286
         iconv(cd,NULL,NULL,NULL,NULL);
 
21287
         iconv_close(cd);
 
21288
  ;
 
21289
  return 0;
 
21290
}
 
21291
_ACEOF
 
21292
rm -f conftest.$ac_objext conftest$ac_exeext
 
21293
if { (ac_try="$ac_link"
 
21294
case "(($ac_try" in
 
21295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21296
  *) ac_try_echo=$ac_try;;
 
21297
esac
 
21298
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21299
$as_echo "$ac_try_echo") >&5
 
21300
  (eval "$ac_link") 2>conftest.er1
 
21301
  ac_status=$?
 
21302
  grep -v '^ *+' conftest.er1 >conftest.err
 
21303
  rm -f conftest.er1
 
21304
  cat conftest.err >&5
 
21305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21306
  (exit $ac_status); } && {
 
21307
         test -z "$ac_c_werror_flag" ||
 
21308
         test ! -s conftest.err
 
21309
       } && test -s conftest$ac_exeext && {
 
21310
         test "$cross_compiling" = yes ||
 
21311
         $as_test_x conftest$ac_exeext
 
21312
       }; then
 
21313
  am_cv_lib_iconv=yes
 
21314
        am_cv_func_iconv=yes
 
21315
else
 
21316
  $as_echo "$as_me: failed program was:" >&5
 
21317
sed 's/^/| /' conftest.$ac_ext >&5
 
21318
 
 
21319
 
 
21320
fi
 
21321
 
 
21322
rm -rf conftest.dSYM
 
21323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21324
      conftest$ac_exeext conftest.$ac_ext
 
21325
      LIBS="$am_save_LIBS"
 
21326
    fi
 
21327
 
 
21328
fi
 
21329
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
21330
$as_echo "$am_cv_func_iconv" >&6; }
 
21331
  if test "$am_cv_func_iconv" = yes; then
 
21332
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
21333
$as_echo_n "checking for working iconv... " >&6; }
 
21334
if test "${am_cv_func_iconv_works+set}" = set; then
 
21335
  $as_echo_n "(cached) " >&6
 
21336
else
 
21337
 
 
21338
            am_save_LIBS="$LIBS"
 
21339
      if test $am_cv_lib_iconv = yes; then
 
21340
        LIBS="$LIBS $LIBICONV"
 
21341
      fi
 
21342
      if test "$cross_compiling" = yes; then
 
21343
  case "$host_os" in
 
21344
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
21345
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
21346
         esac
 
21347
else
 
21348
  cat >conftest.$ac_ext <<_ACEOF
 
21349
/* confdefs.h.  */
 
21350
_ACEOF
 
21351
cat confdefs.h >>conftest.$ac_ext
 
21352
cat >>conftest.$ac_ext <<_ACEOF
 
21353
/* end confdefs.h.  */
 
21354
 
 
21355
#include <iconv.h>
 
21356
#include <string.h>
 
21357
int main ()
 
21358
{
 
21359
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
21360
     returns.  */
 
21361
  {
 
21362
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
21363
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
21364
      {
 
21365
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
21366
        char buf[10];
 
21367
        const char *inptr = input;
 
21368
        size_t inbytesleft = strlen (input);
 
21369
        char *outptr = buf;
 
21370
        size_t outbytesleft = sizeof (buf);
 
21371
        size_t res = iconv (cd_utf8_to_88591,
 
21372
                            (char **) &inptr, &inbytesleft,
 
21373
                            &outptr, &outbytesleft);
 
21374
        if (res == 0)
 
21375
          return 1;
 
21376
      }
 
21377
  }
 
21378
#if 0 /* This bug could be worked around by the caller.  */
 
21379
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
21380
  {
 
21381
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
21382
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
21383
      {
 
21384
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
21385
        char buf[50];
 
21386
        const char *inptr = input;
 
21387
        size_t inbytesleft = strlen (input);
 
21388
        char *outptr = buf;
 
21389
        size_t outbytesleft = sizeof (buf);
 
21390
        size_t res = iconv (cd_88591_to_utf8,
 
21391
                            (char **) &inptr, &inbytesleft,
 
21392
                            &outptr, &outbytesleft);
 
21393
        if ((int)res > 0)
 
21394
          return 1;
 
21395
      }
 
21396
  }
 
21397
#endif
 
21398
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
21399
     provided.  */
 
21400
  if (/* Try standardized names.  */
 
21401
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
21402
      /* Try IRIX, OSF/1 names.  */
 
21403
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
21404
      /* Try AIX names.  */
 
21405
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
21406
      /* Try HP-UX names.  */
 
21407
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
21408
    return 1;
 
21409
  return 0;
 
21410
}
 
21411
_ACEOF
 
21412
rm -f conftest$ac_exeext
 
21413
if { (ac_try="$ac_link"
 
21414
case "(($ac_try" in
 
21415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21416
  *) ac_try_echo=$ac_try;;
 
21417
esac
 
21418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21419
$as_echo "$ac_try_echo") >&5
 
21420
  (eval "$ac_link") 2>&5
 
21421
  ac_status=$?
 
21422
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21423
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21424
  { (case "(($ac_try" in
 
21425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21426
  *) ac_try_echo=$ac_try;;
 
21427
esac
 
21428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21429
$as_echo "$ac_try_echo") >&5
 
21430
  (eval "$ac_try") 2>&5
 
21431
  ac_status=$?
 
21432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21433
  (exit $ac_status); }; }; then
 
21434
  am_cv_func_iconv_works=yes
 
21435
else
 
21436
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21437
$as_echo "$as_me: failed program was:" >&5
 
21438
sed 's/^/| /' conftest.$ac_ext >&5
 
21439
 
 
21440
( exit $ac_status )
 
21441
am_cv_func_iconv_works=no
 
21442
fi
 
21443
rm -rf conftest.dSYM
 
21444
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21445
fi
 
21446
 
 
21447
 
 
21448
      LIBS="$am_save_LIBS"
 
21449
 
 
21450
fi
 
21451
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
21452
$as_echo "$am_cv_func_iconv_works" >&6; }
 
21453
    case "$am_cv_func_iconv_works" in
 
21454
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
21455
      *)   am_func_iconv=yes ;;
 
21456
    esac
 
21457
  else
 
21458
    am_func_iconv=no am_cv_lib_iconv=no
 
21459
  fi
 
21460
  if test "$am_func_iconv" = yes; then
 
21461
 
 
21462
cat >>confdefs.h <<\_ACEOF
 
21463
#define HAVE_ICONV 1
 
21464
_ACEOF
 
21465
 
 
21466
  fi
 
21467
  if test "$am_cv_lib_iconv" = yes; then
 
21468
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
21469
$as_echo_n "checking how to link with libiconv... " >&6; }
 
21470
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
21471
$as_echo "$LIBICONV" >&6; }
 
21472
  else
 
21473
            CPPFLAGS="$am_save_CPPFLAGS"
 
21474
    LIBICONV=
 
21475
    LTLIBICONV=
 
21476
  fi
 
21477
 
 
21478
 
 
21479
 
 
21480
  if test "$am_cv_func_iconv" = yes; then
 
21481
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
21482
$as_echo_n "checking for iconv declaration... " >&6; }
 
21483
    if test "${am_cv_proto_iconv+set}" = set; then
 
21484
  $as_echo_n "(cached) " >&6
 
21485
else
 
21486
 
 
21487
      cat >conftest.$ac_ext <<_ACEOF
 
21488
/* confdefs.h.  */
 
21489
_ACEOF
 
21490
cat confdefs.h >>conftest.$ac_ext
 
21491
cat >>conftest.$ac_ext <<_ACEOF
 
21492
/* end confdefs.h.  */
 
21493
 
 
21494
#include <stdlib.h>
 
21495
#include <iconv.h>
 
21496
extern
 
21497
#ifdef __cplusplus
 
21498
"C"
 
21499
#endif
 
21500
#if defined(__STDC__) || defined(__cplusplus)
 
21501
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
21502
#else
 
21503
size_t iconv();
 
21504
#endif
 
21505
 
 
21506
int
 
21507
main ()
 
21508
{
 
21509
 
 
21510
  ;
 
21511
  return 0;
 
21512
}
 
21513
_ACEOF
 
21514
rm -f conftest.$ac_objext
 
21515
if { (ac_try="$ac_compile"
 
21516
case "(($ac_try" in
 
21517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21518
  *) ac_try_echo=$ac_try;;
 
21519
esac
 
21520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21521
$as_echo "$ac_try_echo") >&5
 
21522
  (eval "$ac_compile") 2>conftest.er1
 
21523
  ac_status=$?
 
21524
  grep -v '^ *+' conftest.er1 >conftest.err
 
21525
  rm -f conftest.er1
 
21526
  cat conftest.err >&5
 
21527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21528
  (exit $ac_status); } && {
 
21529
         test -z "$ac_c_werror_flag" ||
 
21530
         test ! -s conftest.err
 
21531
       } && test -s conftest.$ac_objext; then
 
21532
  am_cv_proto_iconv_arg1=""
 
21533
else
 
21534
  $as_echo "$as_me: failed program was:" >&5
 
21535
sed 's/^/| /' conftest.$ac_ext >&5
 
21536
 
 
21537
        am_cv_proto_iconv_arg1="const"
 
21538
fi
 
21539
 
 
21540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21541
      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);"
 
21542
fi
 
21543
 
 
21544
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
21545
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
21546
         }$am_cv_proto_iconv" >&5
 
21547
$as_echo "${ac_t:-
 
21548
         }$am_cv_proto_iconv" >&6; }
 
21549
 
 
21550
cat >>confdefs.h <<_ACEOF
 
21551
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
21552
_ACEOF
 
21553
 
 
21554
  fi
 
21555
 
 
21556
 
 
21557
      { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
 
21558
$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
 
21559
if test "${gt_cv_nl_locale_name+set}" = set; then
 
21560
  $as_echo_n "(cached) " >&6
 
21561
else
 
21562
  cat >conftest.$ac_ext <<_ACEOF
 
21563
/* confdefs.h.  */
 
21564
_ACEOF
 
21565
cat confdefs.h >>conftest.$ac_ext
 
21566
cat >>conftest.$ac_ext <<_ACEOF
 
21567
/* end confdefs.h.  */
 
21568
#include <langinfo.h>
 
21569
#include <locale.h>
 
21570
int
 
21571
main ()
 
21572
{
 
21573
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
 
21574
       return !cs;
 
21575
 
 
21576
  ;
 
21577
  return 0;
 
21578
}
 
21579
_ACEOF
 
21580
rm -f conftest.$ac_objext conftest$ac_exeext
 
21581
if { (ac_try="$ac_link"
 
21582
case "(($ac_try" in
 
21583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21584
  *) ac_try_echo=$ac_try;;
 
21585
esac
 
21586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21587
$as_echo "$ac_try_echo") >&5
 
21588
  (eval "$ac_link") 2>conftest.er1
 
21589
  ac_status=$?
 
21590
  grep -v '^ *+' conftest.er1 >conftest.err
 
21591
  rm -f conftest.er1
 
21592
  cat conftest.err >&5
 
21593
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21594
  (exit $ac_status); } && {
 
21595
         test -z "$ac_c_werror_flag" ||
 
21596
         test ! -s conftest.err
 
21597
       } && test -s conftest$ac_exeext && {
 
21598
         test "$cross_compiling" = yes ||
 
21599
         $as_test_x conftest$ac_exeext
 
21600
       }; then
 
21601
  gt_cv_nl_locale_name=yes
 
21602
else
 
21603
  $as_echo "$as_me: failed program was:" >&5
 
21604
sed 's/^/| /' conftest.$ac_ext >&5
 
21605
 
 
21606
        gt_cv_nl_locale_name=no
 
21607
fi
 
21608
 
 
21609
rm -rf conftest.dSYM
 
21610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21611
      conftest$ac_exeext conftest.$ac_ext
 
21612
 
 
21613
fi
 
21614
{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
 
21615
$as_echo "$gt_cv_nl_locale_name" >&6; }
 
21616
  if test $gt_cv_nl_locale_name = yes; then
 
21617
 
 
21618
cat >>confdefs.h <<\_ACEOF
 
21619
#define HAVE_NL_LOCALE_NAME 1
 
21620
_ACEOF
 
21621
 
 
21622
  fi
 
21623
 
 
21624
                      for ac_prog in bison
 
21625
do
 
21626
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21627
set dummy $ac_prog; ac_word=$2
 
21628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21629
$as_echo_n "checking for $ac_word... " >&6; }
 
21630
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
21631
  $as_echo_n "(cached) " >&6
 
21632
else
 
21633
  if test -n "$INTLBISON"; then
 
21634
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
21635
else
 
21636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21637
for as_dir in $PATH
 
21638
do
 
21639
  IFS=$as_save_IFS
 
21640
  test -z "$as_dir" && as_dir=.
 
21641
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21643
    ac_cv_prog_INTLBISON="$ac_prog"
 
21644
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21645
    break 2
 
21646
  fi
 
21647
done
 
21648
done
 
21649
IFS=$as_save_IFS
 
21650
 
 
21651
fi
 
21652
fi
 
21653
INTLBISON=$ac_cv_prog_INTLBISON
 
21654
if test -n "$INTLBISON"; then
 
21655
  { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
21656
$as_echo "$INTLBISON" >&6; }
 
21657
else
 
21658
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
21659
$as_echo "no" >&6; }
 
21660
fi
 
21661
 
 
21662
 
 
21663
  test -n "$INTLBISON" && break
 
21664
done
 
21665
 
 
21666
  if test -z "$INTLBISON"; then
 
21667
    ac_verc_fail=yes
 
21668
  else
 
21669
        { $as_echo "$as_me:$LINENO: checking version of bison" >&5
 
21670
$as_echo_n "checking version of bison... " >&6; }
 
21671
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
21672
    case $ac_prog_version in
 
21673
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
21674
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
21675
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
21676
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
21677
    esac
 
21678
    { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
21679
$as_echo "$ac_prog_version" >&6; }
 
21680
  fi
 
21681
  if test $ac_verc_fail = yes; then
 
21682
    INTLBISON=:
 
21683
  fi
 
21684
 
 
21685
 
 
21686
  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
 
21687
$as_echo_n "checking for long long int... " >&6; }
 
21688
if test "${ac_cv_type_long_long_int+set}" = set; then
 
21689
  $as_echo_n "(cached) " >&6
 
21690
else
 
21691
  cat >conftest.$ac_ext <<_ACEOF
 
21692
 
 
21693
  /* confdefs.h.  */
 
21694
_ACEOF
 
21695
cat confdefs.h >>conftest.$ac_ext
 
21696
cat >>conftest.$ac_ext <<_ACEOF
 
21697
/* end confdefs.h.  */
 
21698
/* Test preprocessor.  */
 
21699
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
21700
        error in preprocessor;
 
21701
      #endif
 
21702
      #if ! (18446744073709551615ULL <= -1ull)
 
21703
        error in preprocessor;
 
21704
      #endif
 
21705
      /* Test literals.  */
 
21706
      long long int ll = 9223372036854775807ll;
 
21707
      long long int nll = -9223372036854775807LL;
 
21708
      unsigned long long int ull = 18446744073709551615ULL;
 
21709
      /* Test constant expressions.   */
 
21710
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
21711
                     ? 1 : -1)];
 
21712
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
21713
                     ? 1 : -1)];
 
21714
      int i = 63;
 
21715
int
 
21716
main ()
 
21717
{
 
21718
/* Test availability of runtime routines for shift and division.  */
 
21719
      long long int llmax = 9223372036854775807ll;
 
21720
      unsigned long long int ullmax = 18446744073709551615ull;
 
21721
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
21722
              | (llmax / ll) | (llmax % ll)
 
21723
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
21724
              | (ullmax / ull) | (ullmax % ull));
 
21725
  ;
 
21726
  return 0;
 
21727
}
 
21728
 
 
21729
_ACEOF
 
21730
rm -f conftest.$ac_objext conftest$ac_exeext
 
21731
if { (ac_try="$ac_link"
 
21732
case "(($ac_try" in
 
21733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21734
  *) ac_try_echo=$ac_try;;
 
21735
esac
 
21736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21737
$as_echo "$ac_try_echo") >&5
 
21738
  (eval "$ac_link") 2>conftest.er1
 
21739
  ac_status=$?
 
21740
  grep -v '^ *+' conftest.er1 >conftest.err
 
21741
  rm -f conftest.er1
 
21742
  cat conftest.err >&5
 
21743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21744
  (exit $ac_status); } && {
 
21745
         test -z "$ac_c_werror_flag" ||
 
21746
         test ! -s conftest.err
 
21747
       } && test -s conftest$ac_exeext && {
 
21748
         test "$cross_compiling" = yes ||
 
21749
         $as_test_x conftest$ac_exeext
 
21750
       }; then
 
21751
                        if test "$cross_compiling" = yes; then
 
21752
  ac_cv_type_long_long_int=yes
 
21753
else
 
21754
  cat >conftest.$ac_ext <<_ACEOF
 
21755
/* confdefs.h.  */
 
21756
_ACEOF
 
21757
cat confdefs.h >>conftest.$ac_ext
 
21758
cat >>conftest.$ac_ext <<_ACEOF
 
21759
/* end confdefs.h.  */
 
21760
#include <limits.h>
 
21761
               #ifndef LLONG_MAX
 
21762
               # define HALF \
 
21763
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
21764
               # define LLONG_MAX (HALF - 1 + HALF)
 
21765
               #endif
 
21766
int
 
21767
main ()
 
21768
{
 
21769
long long int n = 1;
 
21770
               int i;
 
21771
               for (i = 0; ; i++)
 
21772
                 {
 
21773
                   long long int m = n << i;
 
21774
                   if (m >> i != n)
 
21775
                     return 1;
 
21776
                   if (LLONG_MAX / 2 < m)
 
21777
                     break;
 
21778
                 }
 
21779
               return 0;
 
21780
  ;
 
21781
  return 0;
 
21782
}
 
21783
_ACEOF
 
21784
rm -f conftest$ac_exeext
 
21785
if { (ac_try="$ac_link"
 
21786
case "(($ac_try" in
 
21787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21788
  *) ac_try_echo=$ac_try;;
 
21789
esac
 
21790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21791
$as_echo "$ac_try_echo") >&5
 
21792
  (eval "$ac_link") 2>&5
 
21793
  ac_status=$?
 
21794
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21795
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21796
  { (case "(($ac_try" in
 
21797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21798
  *) ac_try_echo=$ac_try;;
 
21799
esac
 
21800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21801
$as_echo "$ac_try_echo") >&5
 
21802
  (eval "$ac_try") 2>&5
 
21803
  ac_status=$?
 
21804
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21805
  (exit $ac_status); }; }; then
 
21806
  ac_cv_type_long_long_int=yes
 
21807
else
 
21808
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21809
$as_echo "$as_me: failed program was:" >&5
 
21810
sed 's/^/| /' conftest.$ac_ext >&5
 
21811
 
 
21812
( exit $ac_status )
 
21813
ac_cv_type_long_long_int=no
 
21814
fi
 
21815
rm -rf conftest.dSYM
 
21816
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21817
fi
 
21818
 
 
21819
 
 
21820
else
 
21821
  $as_echo "$as_me: failed program was:" >&5
 
21822
sed 's/^/| /' conftest.$ac_ext >&5
 
21823
 
 
21824
        ac_cv_type_long_long_int=no
 
21825
fi
 
21826
 
 
21827
rm -rf conftest.dSYM
 
21828
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21829
      conftest$ac_exeext conftest.$ac_ext
 
21830
fi
 
21831
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
21832
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
21833
  if test $ac_cv_type_long_long_int = yes; then
 
21834
 
 
21835
cat >>confdefs.h <<\_ACEOF
 
21836
#define HAVE_LONG_LONG_INT 1
 
21837
_ACEOF
 
21838
 
 
21839
  fi
 
21840
 
 
21841
 
 
21842
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
 
21843
$as_echo_n "checking for wchar_t... " >&6; }
 
21844
if test "${gt_cv_c_wchar_t+set}" = set; then
 
21845
  $as_echo_n "(cached) " >&6
 
21846
else
 
21847
  cat >conftest.$ac_ext <<_ACEOF
 
21848
/* confdefs.h.  */
 
21849
_ACEOF
 
21850
cat confdefs.h >>conftest.$ac_ext
 
21851
cat >>conftest.$ac_ext <<_ACEOF
 
21852
/* end confdefs.h.  */
 
21853
#include <stddef.h>
 
21854
       wchar_t foo = (wchar_t)'\0';
 
21855
int
 
21856
main ()
 
21857
{
 
21858
 
 
21859
  ;
 
21860
  return 0;
 
21861
}
 
21862
_ACEOF
 
21863
rm -f conftest.$ac_objext
 
21864
if { (ac_try="$ac_compile"
 
21865
case "(($ac_try" in
 
21866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21867
  *) ac_try_echo=$ac_try;;
 
21868
esac
 
21869
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21870
$as_echo "$ac_try_echo") >&5
 
21871
  (eval "$ac_compile") 2>conftest.er1
 
21872
  ac_status=$?
 
21873
  grep -v '^ *+' conftest.er1 >conftest.err
 
21874
  rm -f conftest.er1
 
21875
  cat conftest.err >&5
 
21876
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21877
  (exit $ac_status); } && {
 
21878
         test -z "$ac_c_werror_flag" ||
 
21879
         test ! -s conftest.err
 
21880
       } && test -s conftest.$ac_objext; then
 
21881
  gt_cv_c_wchar_t=yes
 
21882
else
 
21883
  $as_echo "$as_me: failed program was:" >&5
 
21884
sed 's/^/| /' conftest.$ac_ext >&5
 
21885
 
 
21886
        gt_cv_c_wchar_t=no
 
21887
fi
 
21888
 
 
21889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21890
fi
 
21891
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
21892
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
21893
  if test $gt_cv_c_wchar_t = yes; then
 
21894
 
 
21895
cat >>confdefs.h <<\_ACEOF
 
21896
#define HAVE_WCHAR_T 1
 
21897
_ACEOF
 
21898
 
 
21899
  fi
 
21900
 
 
21901
 
 
21902
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
 
21903
$as_echo_n "checking for wint_t... " >&6; }
 
21904
if test "${gt_cv_c_wint_t+set}" = set; then
 
21905
  $as_echo_n "(cached) " >&6
 
21906
else
 
21907
  cat >conftest.$ac_ext <<_ACEOF
 
21908
/* confdefs.h.  */
 
21909
_ACEOF
 
21910
cat confdefs.h >>conftest.$ac_ext
 
21911
cat >>conftest.$ac_ext <<_ACEOF
 
21912
/* end confdefs.h.  */
 
21913
 
 
21914
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
21915
   <wchar.h>.
 
21916
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
21917
   before <wchar.h>.  */
 
21918
#include <stddef.h>
 
21919
#include <stdio.h>
 
21920
#include <time.h>
 
21921
#include <wchar.h>
 
21922
       wint_t foo = (wchar_t)'\0';
 
21923
int
 
21924
main ()
 
21925
{
 
21926
 
 
21927
  ;
 
21928
  return 0;
 
21929
}
 
21930
_ACEOF
 
21931
rm -f conftest.$ac_objext
 
21932
if { (ac_try="$ac_compile"
 
21933
case "(($ac_try" in
 
21934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21935
  *) ac_try_echo=$ac_try;;
 
21936
esac
 
21937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21938
$as_echo "$ac_try_echo") >&5
 
21939
  (eval "$ac_compile") 2>conftest.er1
 
21940
  ac_status=$?
 
21941
  grep -v '^ *+' conftest.er1 >conftest.err
 
21942
  rm -f conftest.er1
 
21943
  cat conftest.err >&5
 
21944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21945
  (exit $ac_status); } && {
 
21946
         test -z "$ac_c_werror_flag" ||
 
21947
         test ! -s conftest.err
 
21948
       } && test -s conftest.$ac_objext; then
 
21949
  gt_cv_c_wint_t=yes
 
21950
else
 
21951
  $as_echo "$as_me: failed program was:" >&5
 
21952
sed 's/^/| /' conftest.$ac_ext >&5
 
21953
 
 
21954
        gt_cv_c_wint_t=no
 
21955
fi
 
21956
 
 
21957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21958
fi
 
21959
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
21960
$as_echo "$gt_cv_c_wint_t" >&6; }
 
21961
  if test $gt_cv_c_wint_t = yes; then
 
21962
 
 
21963
cat >>confdefs.h <<\_ACEOF
 
21964
#define HAVE_WINT_T 1
 
21965
_ACEOF
 
21966
 
 
21967
  fi
 
21968
 
 
21969
 
 
21970
 
 
21971
 
 
21972
  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
 
21973
$as_echo_n "checking for intmax_t... " >&6; }
 
21974
if test "${gt_cv_c_intmax_t+set}" = set; then
 
21975
  $as_echo_n "(cached) " >&6
 
21976
else
 
21977
  cat >conftest.$ac_ext <<_ACEOF
 
21978
/* confdefs.h.  */
 
21979
_ACEOF
 
21980
cat confdefs.h >>conftest.$ac_ext
 
21981
cat >>conftest.$ac_ext <<_ACEOF
 
21982
/* end confdefs.h.  */
 
21983
 
 
21984
#include <stddef.h>
 
21985
#include <stdlib.h>
 
21986
#if HAVE_STDINT_H_WITH_UINTMAX
 
21987
#include <stdint.h>
 
21988
#endif
 
21989
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
21990
#include <inttypes.h>
 
21991
#endif
 
21992
 
 
21993
int
 
21994
main ()
 
21995
{
 
21996
intmax_t x = -1;
 
21997
        return !x;
 
21998
  ;
 
21999
  return 0;
 
22000
}
 
22001
_ACEOF
 
22002
rm -f conftest.$ac_objext
 
22003
if { (ac_try="$ac_compile"
 
22004
case "(($ac_try" in
 
22005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22006
  *) ac_try_echo=$ac_try;;
 
22007
esac
 
22008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22009
$as_echo "$ac_try_echo") >&5
 
22010
  (eval "$ac_compile") 2>conftest.er1
 
22011
  ac_status=$?
 
22012
  grep -v '^ *+' conftest.er1 >conftest.err
 
22013
  rm -f conftest.er1
 
22014
  cat conftest.err >&5
 
22015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22016
  (exit $ac_status); } && {
 
22017
         test -z "$ac_c_werror_flag" ||
 
22018
         test ! -s conftest.err
 
22019
       } && test -s conftest.$ac_objext; then
 
22020
  gt_cv_c_intmax_t=yes
 
22021
else
 
22022
  $as_echo "$as_me: failed program was:" >&5
 
22023
sed 's/^/| /' conftest.$ac_ext >&5
 
22024
 
 
22025
        gt_cv_c_intmax_t=no
 
22026
fi
 
22027
 
 
22028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22029
fi
 
22030
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
22031
$as_echo "$gt_cv_c_intmax_t" >&6; }
 
22032
  if test $gt_cv_c_intmax_t = yes; then
 
22033
 
 
22034
cat >>confdefs.h <<\_ACEOF
 
22035
#define HAVE_INTMAX_T 1
 
22036
_ACEOF
 
22037
 
 
22038
  fi
 
22039
 
 
22040
 
 
22041
 
 
22042
  { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
22043
$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
 
22044
if test "${gt_cv_func_printf_posix+set}" = set; then
 
22045
  $as_echo_n "(cached) " >&6
 
22046
else
 
22047
 
 
22048
      if test "$cross_compiling" = yes; then
 
22049
 
 
22050
        cat >conftest.$ac_ext <<_ACEOF
 
22051
/* confdefs.h.  */
 
22052
_ACEOF
 
22053
cat confdefs.h >>conftest.$ac_ext
 
22054
cat >>conftest.$ac_ext <<_ACEOF
 
22055
/* end confdefs.h.  */
 
22056
 
 
22057
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
22058
  notposix
 
22059
#endif
 
22060
 
 
22061
_ACEOF
 
22062
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22063
  $EGREP "notposix" >/dev/null 2>&1; then
 
22064
  gt_cv_func_printf_posix="guessing no"
 
22065
else
 
22066
  gt_cv_func_printf_posix="guessing yes"
 
22067
fi
 
22068
rm -f conftest*
 
22069
 
 
22070
 
 
22071
else
 
22072
  cat >conftest.$ac_ext <<_ACEOF
 
22073
/* confdefs.h.  */
 
22074
_ACEOF
 
22075
cat confdefs.h >>conftest.$ac_ext
 
22076
cat >>conftest.$ac_ext <<_ACEOF
 
22077
/* end confdefs.h.  */
 
22078
 
 
22079
#include <stdio.h>
 
22080
#include <string.h>
 
22081
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
22082
   dollar expansion (possibly an autoconf bug).  */
 
22083
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
22084
static char buf[100];
 
22085
int main ()
 
22086
{
 
22087
  sprintf (buf, format, 33, 55);
 
22088
  return (strcmp (buf, "55 33") != 0);
 
22089
}
 
22090
_ACEOF
 
22091
rm -f conftest$ac_exeext
 
22092
if { (ac_try="$ac_link"
 
22093
case "(($ac_try" in
 
22094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22095
  *) ac_try_echo=$ac_try;;
 
22096
esac
 
22097
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22098
$as_echo "$ac_try_echo") >&5
 
22099
  (eval "$ac_link") 2>&5
 
22100
  ac_status=$?
 
22101
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22102
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22103
  { (case "(($ac_try" in
 
22104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22105
  *) ac_try_echo=$ac_try;;
 
22106
esac
 
22107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22108
$as_echo "$ac_try_echo") >&5
 
22109
  (eval "$ac_try") 2>&5
 
22110
  ac_status=$?
 
22111
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22112
  (exit $ac_status); }; }; then
 
22113
  gt_cv_func_printf_posix=yes
 
22114
else
 
22115
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22116
$as_echo "$as_me: failed program was:" >&5
 
22117
sed 's/^/| /' conftest.$ac_ext >&5
 
22118
 
 
22119
( exit $ac_status )
 
22120
gt_cv_func_printf_posix=no
 
22121
fi
 
22122
rm -rf conftest.dSYM
 
22123
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22124
fi
 
22125
 
 
22126
 
 
22127
 
 
22128
fi
 
22129
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
22130
$as_echo "$gt_cv_func_printf_posix" >&6; }
 
22131
  case $gt_cv_func_printf_posix in
 
22132
    *yes)
 
22133
 
 
22134
cat >>confdefs.h <<\_ACEOF
 
22135
#define HAVE_POSIX_PRINTF 1
 
22136
_ACEOF
 
22137
 
 
22138
      ;;
 
22139
  esac
 
22140
 
 
22141
 
 
22142
    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
22143
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
 
22144
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
22145
  $as_echo_n "(cached) " >&6
 
22146
else
 
22147
  cat >conftest.$ac_ext <<_ACEOF
 
22148
/* confdefs.h.  */
 
22149
_ACEOF
 
22150
cat confdefs.h >>conftest.$ac_ext
 
22151
cat >>conftest.$ac_ext <<_ACEOF
 
22152
/* end confdefs.h.  */
 
22153
 
 
22154
#include <features.h>
 
22155
#ifdef __GNU_LIBRARY__
 
22156
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
22157
  Lucky GNU user
 
22158
 #endif
 
22159
#endif
 
22160
 
 
22161
_ACEOF
 
22162
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22163
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
22164
  ac_cv_gnu_library_2_1=yes
 
22165
else
 
22166
  ac_cv_gnu_library_2_1=no
 
22167
fi
 
22168
rm -f conftest*
 
22169
 
 
22170
 
 
22171
 
 
22172
fi
 
22173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
22174
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
 
22175
 
 
22176
    GLIBC21="$ac_cv_gnu_library_2_1"
 
22177
 
 
22178
 
 
22179
 
 
22180
 
 
22181
for ac_header in stdint.h
 
22182
do
 
22183
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22184
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22185
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22186
$as_echo_n "checking for $ac_header... " >&6; }
 
22187
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22188
  $as_echo_n "(cached) " >&6
 
22189
fi
 
22190
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22191
                 $as_echo "$as_val"'`
 
22192
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22193
$as_echo "$ac_res" >&6; }
 
22194
else
 
22195
  # Is the header compilable?
 
22196
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22197
$as_echo_n "checking $ac_header usability... " >&6; }
 
22198
cat >conftest.$ac_ext <<_ACEOF
 
22199
/* confdefs.h.  */
 
22200
_ACEOF
 
22201
cat confdefs.h >>conftest.$ac_ext
 
22202
cat >>conftest.$ac_ext <<_ACEOF
 
22203
/* end confdefs.h.  */
 
22204
$ac_includes_default
 
22205
#include <$ac_header>
 
22206
_ACEOF
 
22207
rm -f conftest.$ac_objext
 
22208
if { (ac_try="$ac_compile"
 
22209
case "(($ac_try" in
 
22210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22211
  *) ac_try_echo=$ac_try;;
 
22212
esac
 
22213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22214
$as_echo "$ac_try_echo") >&5
 
22215
  (eval "$ac_compile") 2>conftest.er1
 
22216
  ac_status=$?
 
22217
  grep -v '^ *+' conftest.er1 >conftest.err
 
22218
  rm -f conftest.er1
 
22219
  cat conftest.err >&5
 
22220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22221
  (exit $ac_status); } && {
 
22222
         test -z "$ac_c_werror_flag" ||
 
22223
         test ! -s conftest.err
 
22224
       } && test -s conftest.$ac_objext; then
 
22225
  ac_header_compiler=yes
 
22226
else
 
22227
  $as_echo "$as_me: failed program was:" >&5
 
22228
sed 's/^/| /' conftest.$ac_ext >&5
 
22229
 
 
22230
        ac_header_compiler=no
 
22231
fi
 
22232
 
 
22233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22234
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22235
$as_echo "$ac_header_compiler" >&6; }
 
22236
 
 
22237
# Is the header present?
 
22238
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22239
$as_echo_n "checking $ac_header presence... " >&6; }
 
22240
cat >conftest.$ac_ext <<_ACEOF
 
22241
/* confdefs.h.  */
 
22242
_ACEOF
 
22243
cat confdefs.h >>conftest.$ac_ext
 
22244
cat >>conftest.$ac_ext <<_ACEOF
 
22245
/* end confdefs.h.  */
 
22246
#include <$ac_header>
 
22247
_ACEOF
 
22248
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22249
case "(($ac_try" in
 
22250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22251
  *) ac_try_echo=$ac_try;;
 
22252
esac
 
22253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22254
$as_echo "$ac_try_echo") >&5
 
22255
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22256
  ac_status=$?
 
22257
  grep -v '^ *+' conftest.er1 >conftest.err
 
22258
  rm -f conftest.er1
 
22259
  cat conftest.err >&5
 
22260
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22261
  (exit $ac_status); } >/dev/null && {
 
22262
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22263
         test ! -s conftest.err
 
22264
       }; then
 
22265
  ac_header_preproc=yes
 
22266
else
 
22267
  $as_echo "$as_me: failed program was:" >&5
 
22268
sed 's/^/| /' conftest.$ac_ext >&5
 
22269
 
 
22270
  ac_header_preproc=no
 
22271
fi
 
22272
 
 
22273
rm -f conftest.err conftest.$ac_ext
 
22274
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22275
$as_echo "$ac_header_preproc" >&6; }
 
22276
 
 
22277
# So?  What about this header?
 
22278
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22279
  yes:no: )
 
22280
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22281
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22282
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22283
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22284
    ac_header_preproc=yes
 
22285
    ;;
 
22286
  no:yes:* )
 
22287
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22288
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22289
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22290
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22291
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22292
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22293
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22294
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22295
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22296
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22297
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22298
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22299
 
 
22300
    ;;
 
22301
esac
 
22302
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22303
$as_echo_n "checking for $ac_header... " >&6; }
 
22304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22305
  $as_echo_n "(cached) " >&6
 
22306
else
 
22307
  eval "$as_ac_Header=\$ac_header_preproc"
 
22308
fi
 
22309
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22310
                 $as_echo "$as_val"'`
 
22311
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22312
$as_echo "$ac_res" >&6; }
 
22313
 
 
22314
fi
 
22315
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22316
                 $as_echo "$as_val"'`
 
22317
   if test "x$as_val" = x""yes; then
 
22318
  cat >>confdefs.h <<_ACEOF
 
22319
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22320
_ACEOF
 
22321
 
 
22322
fi
 
22323
 
 
22324
done
 
22325
 
 
22326
    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
22327
$as_echo_n "checking for SIZE_MAX... " >&6; }
 
22328
  if test "${gl_cv_size_max+set}" = set; then
 
22329
  $as_echo_n "(cached) " >&6
 
22330
else
 
22331
 
 
22332
    gl_cv_size_max=
 
22333
    cat >conftest.$ac_ext <<_ACEOF
 
22334
/* confdefs.h.  */
 
22335
_ACEOF
 
22336
cat confdefs.h >>conftest.$ac_ext
 
22337
cat >>conftest.$ac_ext <<_ACEOF
 
22338
/* end confdefs.h.  */
 
22339
 
 
22340
#include <limits.h>
 
22341
#if HAVE_STDINT_H
 
22342
#include <stdint.h>
 
22343
#endif
 
22344
#ifdef SIZE_MAX
 
22345
Found it
 
22346
#endif
 
22347
 
 
22348
_ACEOF
 
22349
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22350
  $EGREP "Found it" >/dev/null 2>&1; then
 
22351
  gl_cv_size_max=yes
 
22352
fi
 
22353
rm -f conftest*
 
22354
 
 
22355
    if test -z "$gl_cv_size_max"; then
 
22356
                        if test "$cross_compiling" = yes; then
 
22357
  # Depending upon the size, compute the lo and hi bounds.
 
22358
cat >conftest.$ac_ext <<_ACEOF
 
22359
/* confdefs.h.  */
 
22360
_ACEOF
 
22361
cat confdefs.h >>conftest.$ac_ext
 
22362
cat >>conftest.$ac_ext <<_ACEOF
 
22363
/* end confdefs.h.  */
 
22364
#include <stddef.h>
 
22365
#include <limits.h>
 
22366
int
 
22367
main ()
 
22368
{
 
22369
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
 
22370
test_array [0] = 0
 
22371
 
 
22372
  ;
 
22373
  return 0;
 
22374
}
 
22375
_ACEOF
 
22376
rm -f conftest.$ac_objext
 
22377
if { (ac_try="$ac_compile"
 
22378
case "(($ac_try" in
 
22379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22380
  *) ac_try_echo=$ac_try;;
 
22381
esac
 
22382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22383
$as_echo "$ac_try_echo") >&5
 
22384
  (eval "$ac_compile") 2>conftest.er1
 
22385
  ac_status=$?
 
22386
  grep -v '^ *+' conftest.er1 >conftest.err
 
22387
  rm -f conftest.er1
 
22388
  cat conftest.err >&5
 
22389
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22390
  (exit $ac_status); } && {
 
22391
         test -z "$ac_c_werror_flag" ||
 
22392
         test ! -s conftest.err
 
22393
       } && test -s conftest.$ac_objext; then
 
22394
  ac_lo=0 ac_mid=0
 
22395
  while :; do
 
22396
    cat >conftest.$ac_ext <<_ACEOF
 
22397
/* confdefs.h.  */
 
22398
_ACEOF
 
22399
cat confdefs.h >>conftest.$ac_ext
 
22400
cat >>conftest.$ac_ext <<_ACEOF
 
22401
/* end confdefs.h.  */
 
22402
#include <stddef.h>
 
22403
#include <limits.h>
 
22404
int
 
22405
main ()
 
22406
{
 
22407
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
22408
test_array [0] = 0
 
22409
 
 
22410
  ;
 
22411
  return 0;
 
22412
}
 
22413
_ACEOF
 
22414
rm -f conftest.$ac_objext
 
22415
if { (ac_try="$ac_compile"
 
22416
case "(($ac_try" in
 
22417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22418
  *) ac_try_echo=$ac_try;;
 
22419
esac
 
22420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22421
$as_echo "$ac_try_echo") >&5
 
22422
  (eval "$ac_compile") 2>conftest.er1
 
22423
  ac_status=$?
 
22424
  grep -v '^ *+' conftest.er1 >conftest.err
 
22425
  rm -f conftest.er1
 
22426
  cat conftest.err >&5
 
22427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22428
  (exit $ac_status); } && {
 
22429
         test -z "$ac_c_werror_flag" ||
 
22430
         test ! -s conftest.err
 
22431
       } && test -s conftest.$ac_objext; then
 
22432
  ac_hi=$ac_mid; break
 
22433
else
 
22434
  $as_echo "$as_me: failed program was:" >&5
 
22435
sed 's/^/| /' conftest.$ac_ext >&5
 
22436
 
 
22437
        ac_lo=`expr $ac_mid + 1`
 
22438
                        if test $ac_lo -le $ac_mid; then
 
22439
                          ac_lo= ac_hi=
 
22440
                          break
 
22441
                        fi
 
22442
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22443
fi
 
22444
 
 
22445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22446
  done
 
22447
else
 
22448
  $as_echo "$as_me: failed program was:" >&5
 
22449
sed 's/^/| /' conftest.$ac_ext >&5
 
22450
 
 
22451
        cat >conftest.$ac_ext <<_ACEOF
 
22452
/* confdefs.h.  */
 
22453
_ACEOF
 
22454
cat confdefs.h >>conftest.$ac_ext
 
22455
cat >>conftest.$ac_ext <<_ACEOF
 
22456
/* end confdefs.h.  */
 
22457
#include <stddef.h>
 
22458
#include <limits.h>
 
22459
int
 
22460
main ()
 
22461
{
 
22462
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
 
22463
test_array [0] = 0
 
22464
 
 
22465
  ;
 
22466
  return 0;
 
22467
}
 
22468
_ACEOF
 
22469
rm -f conftest.$ac_objext
 
22470
if { (ac_try="$ac_compile"
 
22471
case "(($ac_try" in
 
22472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22473
  *) ac_try_echo=$ac_try;;
 
22474
esac
 
22475
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22476
$as_echo "$ac_try_echo") >&5
 
22477
  (eval "$ac_compile") 2>conftest.er1
 
22478
  ac_status=$?
 
22479
  grep -v '^ *+' conftest.er1 >conftest.err
 
22480
  rm -f conftest.er1
 
22481
  cat conftest.err >&5
 
22482
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22483
  (exit $ac_status); } && {
 
22484
         test -z "$ac_c_werror_flag" ||
 
22485
         test ! -s conftest.err
 
22486
       } && test -s conftest.$ac_objext; then
 
22487
  ac_hi=-1 ac_mid=-1
 
22488
  while :; do
 
22489
    cat >conftest.$ac_ext <<_ACEOF
 
22490
/* confdefs.h.  */
 
22491
_ACEOF
 
22492
cat confdefs.h >>conftest.$ac_ext
 
22493
cat >>conftest.$ac_ext <<_ACEOF
 
22494
/* end confdefs.h.  */
 
22495
#include <stddef.h>
 
22496
#include <limits.h>
 
22497
int
 
22498
main ()
 
22499
{
 
22500
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
 
22501
test_array [0] = 0
 
22502
 
 
22503
  ;
 
22504
  return 0;
 
22505
}
 
22506
_ACEOF
 
22507
rm -f conftest.$ac_objext
 
22508
if { (ac_try="$ac_compile"
 
22509
case "(($ac_try" in
 
22510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22511
  *) ac_try_echo=$ac_try;;
 
22512
esac
 
22513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22514
$as_echo "$ac_try_echo") >&5
 
22515
  (eval "$ac_compile") 2>conftest.er1
 
22516
  ac_status=$?
 
22517
  grep -v '^ *+' conftest.er1 >conftest.err
 
22518
  rm -f conftest.er1
 
22519
  cat conftest.err >&5
 
22520
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22521
  (exit $ac_status); } && {
 
22522
         test -z "$ac_c_werror_flag" ||
 
22523
         test ! -s conftest.err
 
22524
       } && test -s conftest.$ac_objext; then
 
22525
  ac_lo=$ac_mid; break
 
22526
else
 
22527
  $as_echo "$as_me: failed program was:" >&5
 
22528
sed 's/^/| /' conftest.$ac_ext >&5
 
22529
 
 
22530
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22531
                        if test $ac_mid -le $ac_hi; then
 
22532
                          ac_lo= ac_hi=
 
22533
                          break
 
22534
                        fi
 
22535
                        ac_mid=`expr 2 '*' $ac_mid`
 
22536
fi
 
22537
 
 
22538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22539
  done
 
22540
else
 
22541
  $as_echo "$as_me: failed program was:" >&5
 
22542
sed 's/^/| /' conftest.$ac_ext >&5
 
22543
 
 
22544
        ac_lo= ac_hi=
 
22545
fi
 
22546
 
 
22547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22548
fi
 
22549
 
 
22550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22551
# Binary search between lo and hi bounds.
 
22552
while test "x$ac_lo" != "x$ac_hi"; do
 
22553
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22554
  cat >conftest.$ac_ext <<_ACEOF
 
22555
/* confdefs.h.  */
 
22556
_ACEOF
 
22557
cat confdefs.h >>conftest.$ac_ext
 
22558
cat >>conftest.$ac_ext <<_ACEOF
 
22559
/* end confdefs.h.  */
 
22560
#include <stddef.h>
 
22561
#include <limits.h>
 
22562
int
 
22563
main ()
 
22564
{
 
22565
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
22566
test_array [0] = 0
 
22567
 
 
22568
  ;
 
22569
  return 0;
 
22570
}
 
22571
_ACEOF
 
22572
rm -f conftest.$ac_objext
 
22573
if { (ac_try="$ac_compile"
 
22574
case "(($ac_try" in
 
22575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22576
  *) ac_try_echo=$ac_try;;
 
22577
esac
 
22578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22579
$as_echo "$ac_try_echo") >&5
 
22580
  (eval "$ac_compile") 2>conftest.er1
 
22581
  ac_status=$?
 
22582
  grep -v '^ *+' conftest.er1 >conftest.err
 
22583
  rm -f conftest.er1
 
22584
  cat conftest.err >&5
 
22585
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22586
  (exit $ac_status); } && {
 
22587
         test -z "$ac_c_werror_flag" ||
 
22588
         test ! -s conftest.err
 
22589
       } && test -s conftest.$ac_objext; then
 
22590
  ac_hi=$ac_mid
 
22591
else
 
22592
  $as_echo "$as_me: failed program was:" >&5
 
22593
sed 's/^/| /' conftest.$ac_ext >&5
 
22594
 
 
22595
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22596
fi
 
22597
 
 
22598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22599
done
 
22600
case $ac_lo in
 
22601
?*) size_t_bits_minus_1=$ac_lo;;
 
22602
'') size_t_bits_minus_1= ;;
 
22603
esac
 
22604
else
 
22605
  cat >conftest.$ac_ext <<_ACEOF
 
22606
/* confdefs.h.  */
 
22607
_ACEOF
 
22608
cat confdefs.h >>conftest.$ac_ext
 
22609
cat >>conftest.$ac_ext <<_ACEOF
 
22610
/* end confdefs.h.  */
 
22611
#include <stddef.h>
 
22612
#include <limits.h>
 
22613
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
22614
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
22615
#include <stdio.h>
 
22616
#include <stdlib.h>
 
22617
int
 
22618
main ()
 
22619
{
 
22620
 
 
22621
  FILE *f = fopen ("conftest.val", "w");
 
22622
  if (! f)
 
22623
    return 1;
 
22624
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
 
22625
    {
 
22626
      long int i = longval ();
 
22627
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
22628
        return 1;
 
22629
      fprintf (f, "%ld", i);
 
22630
    }
 
22631
  else
 
22632
    {
 
22633
      unsigned long int i = ulongval ();
 
22634
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
22635
        return 1;
 
22636
      fprintf (f, "%lu", i);
 
22637
    }
 
22638
  /* Do not output a trailing newline, as this causes \r\n confusion
 
22639
     on some platforms.  */
 
22640
  return ferror (f) || fclose (f) != 0;
 
22641
 
 
22642
  ;
 
22643
  return 0;
 
22644
}
 
22645
_ACEOF
 
22646
rm -f conftest$ac_exeext
 
22647
if { (ac_try="$ac_link"
 
22648
case "(($ac_try" in
 
22649
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22650
  *) ac_try_echo=$ac_try;;
 
22651
esac
 
22652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22653
$as_echo "$ac_try_echo") >&5
 
22654
  (eval "$ac_link") 2>&5
 
22655
  ac_status=$?
 
22656
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22657
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22658
  { (case "(($ac_try" in
 
22659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22660
  *) ac_try_echo=$ac_try;;
 
22661
esac
 
22662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22663
$as_echo "$ac_try_echo") >&5
 
22664
  (eval "$ac_try") 2>&5
 
22665
  ac_status=$?
 
22666
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22667
  (exit $ac_status); }; }; then
 
22668
  size_t_bits_minus_1=`cat conftest.val`
 
22669
else
 
22670
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22671
$as_echo "$as_me: failed program was:" >&5
 
22672
sed 's/^/| /' conftest.$ac_ext >&5
 
22673
 
 
22674
( exit $ac_status )
 
22675
size_t_bits_minus_1=
 
22676
fi
 
22677
rm -rf conftest.dSYM
 
22678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22679
fi
 
22680
rm -f conftest.val
 
22681
      if test "$cross_compiling" = yes; then
 
22682
  # Depending upon the size, compute the lo and hi bounds.
 
22683
cat >conftest.$ac_ext <<_ACEOF
 
22684
/* confdefs.h.  */
 
22685
_ACEOF
 
22686
cat confdefs.h >>conftest.$ac_ext
 
22687
cat >>conftest.$ac_ext <<_ACEOF
 
22688
/* end confdefs.h.  */
 
22689
#include <stddef.h>
 
22690
int
 
22691
main ()
 
22692
{
 
22693
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
22694
test_array [0] = 0
 
22695
 
 
22696
  ;
 
22697
  return 0;
 
22698
}
 
22699
_ACEOF
 
22700
rm -f conftest.$ac_objext
 
22701
if { (ac_try="$ac_compile"
 
22702
case "(($ac_try" in
 
22703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22704
  *) ac_try_echo=$ac_try;;
 
22705
esac
 
22706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22707
$as_echo "$ac_try_echo") >&5
 
22708
  (eval "$ac_compile") 2>conftest.er1
 
22709
  ac_status=$?
 
22710
  grep -v '^ *+' conftest.er1 >conftest.err
 
22711
  rm -f conftest.er1
 
22712
  cat conftest.err >&5
 
22713
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22714
  (exit $ac_status); } && {
 
22715
         test -z "$ac_c_werror_flag" ||
 
22716
         test ! -s conftest.err
 
22717
       } && test -s conftest.$ac_objext; then
 
22718
  ac_lo=0 ac_mid=0
 
22719
  while :; do
 
22720
    cat >conftest.$ac_ext <<_ACEOF
 
22721
/* confdefs.h.  */
 
22722
_ACEOF
 
22723
cat confdefs.h >>conftest.$ac_ext
 
22724
cat >>conftest.$ac_ext <<_ACEOF
 
22725
/* end confdefs.h.  */
 
22726
#include <stddef.h>
 
22727
int
 
22728
main ()
 
22729
{
 
22730
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
22731
test_array [0] = 0
 
22732
 
 
22733
  ;
 
22734
  return 0;
 
22735
}
 
22736
_ACEOF
 
22737
rm -f conftest.$ac_objext
 
22738
if { (ac_try="$ac_compile"
 
22739
case "(($ac_try" in
 
22740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22741
  *) ac_try_echo=$ac_try;;
 
22742
esac
 
22743
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22744
$as_echo "$ac_try_echo") >&5
 
22745
  (eval "$ac_compile") 2>conftest.er1
 
22746
  ac_status=$?
 
22747
  grep -v '^ *+' conftest.er1 >conftest.err
 
22748
  rm -f conftest.er1
 
22749
  cat conftest.err >&5
 
22750
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22751
  (exit $ac_status); } && {
 
22752
         test -z "$ac_c_werror_flag" ||
 
22753
         test ! -s conftest.err
 
22754
       } && test -s conftest.$ac_objext; then
 
22755
  ac_hi=$ac_mid; break
 
22756
else
 
22757
  $as_echo "$as_me: failed program was:" >&5
 
22758
sed 's/^/| /' conftest.$ac_ext >&5
 
22759
 
 
22760
        ac_lo=`expr $ac_mid + 1`
 
22761
                        if test $ac_lo -le $ac_mid; then
 
22762
                          ac_lo= ac_hi=
 
22763
                          break
 
22764
                        fi
 
22765
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22766
fi
 
22767
 
 
22768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22769
  done
 
22770
else
 
22771
  $as_echo "$as_me: failed program was:" >&5
 
22772
sed 's/^/| /' conftest.$ac_ext >&5
 
22773
 
 
22774
        cat >conftest.$ac_ext <<_ACEOF
 
22775
/* confdefs.h.  */
 
22776
_ACEOF
 
22777
cat confdefs.h >>conftest.$ac_ext
 
22778
cat >>conftest.$ac_ext <<_ACEOF
 
22779
/* end confdefs.h.  */
 
22780
#include <stddef.h>
 
22781
int
 
22782
main ()
 
22783
{
 
22784
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
22785
test_array [0] = 0
 
22786
 
 
22787
  ;
 
22788
  return 0;
 
22789
}
 
22790
_ACEOF
 
22791
rm -f conftest.$ac_objext
 
22792
if { (ac_try="$ac_compile"
 
22793
case "(($ac_try" in
 
22794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22795
  *) ac_try_echo=$ac_try;;
 
22796
esac
 
22797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22798
$as_echo "$ac_try_echo") >&5
 
22799
  (eval "$ac_compile") 2>conftest.er1
 
22800
  ac_status=$?
 
22801
  grep -v '^ *+' conftest.er1 >conftest.err
 
22802
  rm -f conftest.er1
 
22803
  cat conftest.err >&5
 
22804
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22805
  (exit $ac_status); } && {
 
22806
         test -z "$ac_c_werror_flag" ||
 
22807
         test ! -s conftest.err
 
22808
       } && test -s conftest.$ac_objext; then
 
22809
  ac_hi=-1 ac_mid=-1
 
22810
  while :; do
 
22811
    cat >conftest.$ac_ext <<_ACEOF
 
22812
/* confdefs.h.  */
 
22813
_ACEOF
 
22814
cat confdefs.h >>conftest.$ac_ext
 
22815
cat >>conftest.$ac_ext <<_ACEOF
 
22816
/* end confdefs.h.  */
 
22817
#include <stddef.h>
 
22818
int
 
22819
main ()
 
22820
{
 
22821
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
22822
test_array [0] = 0
 
22823
 
 
22824
  ;
 
22825
  return 0;
 
22826
}
 
22827
_ACEOF
 
22828
rm -f conftest.$ac_objext
 
22829
if { (ac_try="$ac_compile"
 
22830
case "(($ac_try" in
 
22831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22832
  *) ac_try_echo=$ac_try;;
 
22833
esac
 
22834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22835
$as_echo "$ac_try_echo") >&5
 
22836
  (eval "$ac_compile") 2>conftest.er1
 
22837
  ac_status=$?
 
22838
  grep -v '^ *+' conftest.er1 >conftest.err
 
22839
  rm -f conftest.er1
 
22840
  cat conftest.err >&5
 
22841
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22842
  (exit $ac_status); } && {
 
22843
         test -z "$ac_c_werror_flag" ||
 
22844
         test ! -s conftest.err
 
22845
       } && test -s conftest.$ac_objext; then
 
22846
  ac_lo=$ac_mid; break
 
22847
else
 
22848
  $as_echo "$as_me: failed program was:" >&5
 
22849
sed 's/^/| /' conftest.$ac_ext >&5
 
22850
 
 
22851
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22852
                        if test $ac_mid -le $ac_hi; then
 
22853
                          ac_lo= ac_hi=
 
22854
                          break
 
22855
                        fi
 
22856
                        ac_mid=`expr 2 '*' $ac_mid`
 
22857
fi
 
22858
 
 
22859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22860
  done
 
22861
else
 
22862
  $as_echo "$as_me: failed program was:" >&5
 
22863
sed 's/^/| /' conftest.$ac_ext >&5
 
22864
 
 
22865
        ac_lo= ac_hi=
 
22866
fi
 
22867
 
 
22868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22869
fi
 
22870
 
 
22871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22872
# Binary search between lo and hi bounds.
 
22873
while test "x$ac_lo" != "x$ac_hi"; do
 
22874
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22875
  cat >conftest.$ac_ext <<_ACEOF
 
22876
/* confdefs.h.  */
 
22877
_ACEOF
 
22878
cat confdefs.h >>conftest.$ac_ext
 
22879
cat >>conftest.$ac_ext <<_ACEOF
 
22880
/* end confdefs.h.  */
 
22881
#include <stddef.h>
 
22882
int
 
22883
main ()
 
22884
{
 
22885
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
22886
test_array [0] = 0
 
22887
 
 
22888
  ;
 
22889
  return 0;
 
22890
}
 
22891
_ACEOF
 
22892
rm -f conftest.$ac_objext
 
22893
if { (ac_try="$ac_compile"
 
22894
case "(($ac_try" in
 
22895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22896
  *) ac_try_echo=$ac_try;;
 
22897
esac
 
22898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22899
$as_echo "$ac_try_echo") >&5
 
22900
  (eval "$ac_compile") 2>conftest.er1
 
22901
  ac_status=$?
 
22902
  grep -v '^ *+' conftest.er1 >conftest.err
 
22903
  rm -f conftest.er1
 
22904
  cat conftest.err >&5
 
22905
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22906
  (exit $ac_status); } && {
 
22907
         test -z "$ac_c_werror_flag" ||
 
22908
         test ! -s conftest.err
 
22909
       } && test -s conftest.$ac_objext; then
 
22910
  ac_hi=$ac_mid
 
22911
else
 
22912
  $as_echo "$as_me: failed program was:" >&5
 
22913
sed 's/^/| /' conftest.$ac_ext >&5
 
22914
 
 
22915
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22916
fi
 
22917
 
 
22918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22919
done
 
22920
case $ac_lo in
 
22921
?*) fits_in_uint=$ac_lo;;
 
22922
'') fits_in_uint= ;;
 
22923
esac
 
22924
else
 
22925
  cat >conftest.$ac_ext <<_ACEOF
 
22926
/* confdefs.h.  */
 
22927
_ACEOF
 
22928
cat confdefs.h >>conftest.$ac_ext
 
22929
cat >>conftest.$ac_ext <<_ACEOF
 
22930
/* end confdefs.h.  */
 
22931
#include <stddef.h>
 
22932
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
22933
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
22934
#include <stdio.h>
 
22935
#include <stdlib.h>
 
22936
int
 
22937
main ()
 
22938
{
 
22939
 
 
22940
  FILE *f = fopen ("conftest.val", "w");
 
22941
  if (! f)
 
22942
    return 1;
 
22943
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
22944
    {
 
22945
      long int i = longval ();
 
22946
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
22947
        return 1;
 
22948
      fprintf (f, "%ld", i);
 
22949
    }
 
22950
  else
 
22951
    {
 
22952
      unsigned long int i = ulongval ();
 
22953
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
22954
        return 1;
 
22955
      fprintf (f, "%lu", i);
 
22956
    }
 
22957
  /* Do not output a trailing newline, as this causes \r\n confusion
 
22958
     on some platforms.  */
 
22959
  return ferror (f) || fclose (f) != 0;
 
22960
 
 
22961
  ;
 
22962
  return 0;
 
22963
}
 
22964
_ACEOF
 
22965
rm -f conftest$ac_exeext
 
22966
if { (ac_try="$ac_link"
 
22967
case "(($ac_try" in
 
22968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22969
  *) ac_try_echo=$ac_try;;
 
22970
esac
 
22971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22972
$as_echo "$ac_try_echo") >&5
 
22973
  (eval "$ac_link") 2>&5
 
22974
  ac_status=$?
 
22975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22976
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22977
  { (case "(($ac_try" in
 
22978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22979
  *) ac_try_echo=$ac_try;;
 
22980
esac
 
22981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22982
$as_echo "$ac_try_echo") >&5
 
22983
  (eval "$ac_try") 2>&5
 
22984
  ac_status=$?
 
22985
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22986
  (exit $ac_status); }; }; then
 
22987
  fits_in_uint=`cat conftest.val`
 
22988
else
 
22989
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22990
$as_echo "$as_me: failed program was:" >&5
 
22991
sed 's/^/| /' conftest.$ac_ext >&5
 
22992
 
 
22993
( exit $ac_status )
 
22994
fits_in_uint=
 
22995
fi
 
22996
rm -rf conftest.dSYM
 
22997
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22998
fi
 
22999
rm -f conftest.val
 
23000
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
23001
        if test $fits_in_uint = 1; then
 
23002
                              cat >conftest.$ac_ext <<_ACEOF
 
23003
/* confdefs.h.  */
 
23004
_ACEOF
 
23005
cat confdefs.h >>conftest.$ac_ext
 
23006
cat >>conftest.$ac_ext <<_ACEOF
 
23007
/* end confdefs.h.  */
 
23008
#include <stddef.h>
 
23009
            extern size_t foo;
 
23010
            extern unsigned long foo;
 
23011
 
 
23012
int
 
23013
main ()
 
23014
{
 
23015
 
 
23016
  ;
 
23017
  return 0;
 
23018
}
 
23019
_ACEOF
 
23020
rm -f conftest.$ac_objext
 
23021
if { (ac_try="$ac_compile"
 
23022
case "(($ac_try" in
 
23023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23024
  *) ac_try_echo=$ac_try;;
 
23025
esac
 
23026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23027
$as_echo "$ac_try_echo") >&5
 
23028
  (eval "$ac_compile") 2>conftest.er1
 
23029
  ac_status=$?
 
23030
  grep -v '^ *+' conftest.er1 >conftest.err
 
23031
  rm -f conftest.er1
 
23032
  cat conftest.err >&5
 
23033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23034
  (exit $ac_status); } && {
 
23035
         test -z "$ac_c_werror_flag" ||
 
23036
         test ! -s conftest.err
 
23037
       } && test -s conftest.$ac_objext; then
 
23038
  fits_in_uint=0
 
23039
else
 
23040
  $as_echo "$as_me: failed program was:" >&5
 
23041
sed 's/^/| /' conftest.$ac_ext >&5
 
23042
 
 
23043
 
 
23044
fi
 
23045
 
 
23046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23047
        fi
 
23048
                                if test $fits_in_uint = 1; then
 
23049
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
23050
        else
 
23051
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
23052
        fi
 
23053
      else
 
23054
                gl_cv_size_max='((size_t)~(size_t)0)'
 
23055
      fi
 
23056
    fi
 
23057
 
 
23058
fi
 
23059
 
 
23060
  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
 
23061
$as_echo "$gl_cv_size_max" >&6; }
 
23062
  if test "$gl_cv_size_max" != yes; then
 
23063
 
 
23064
cat >>confdefs.h <<_ACEOF
 
23065
#define SIZE_MAX $gl_cv_size_max
 
23066
_ACEOF
 
23067
 
 
23068
  fi
 
23069
 
 
23070
 
 
23071
 
 
23072
 
 
23073
 
 
23074
for ac_header in stdint.h
 
23075
do
 
23076
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23077
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23078
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23079
$as_echo_n "checking for $ac_header... " >&6; }
 
23080
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23081
  $as_echo_n "(cached) " >&6
 
23082
fi
 
23083
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23084
                 $as_echo "$as_val"'`
 
23085
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23086
$as_echo "$ac_res" >&6; }
 
23087
else
 
23088
  # Is the header compilable?
 
23089
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23090
$as_echo_n "checking $ac_header usability... " >&6; }
 
23091
cat >conftest.$ac_ext <<_ACEOF
 
23092
/* confdefs.h.  */
 
23093
_ACEOF
 
23094
cat confdefs.h >>conftest.$ac_ext
 
23095
cat >>conftest.$ac_ext <<_ACEOF
 
23096
/* end confdefs.h.  */
 
23097
$ac_includes_default
 
23098
#include <$ac_header>
 
23099
_ACEOF
 
23100
rm -f conftest.$ac_objext
 
23101
if { (ac_try="$ac_compile"
 
23102
case "(($ac_try" in
 
23103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23104
  *) ac_try_echo=$ac_try;;
 
23105
esac
 
23106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23107
$as_echo "$ac_try_echo") >&5
 
23108
  (eval "$ac_compile") 2>conftest.er1
 
23109
  ac_status=$?
 
23110
  grep -v '^ *+' conftest.er1 >conftest.err
 
23111
  rm -f conftest.er1
 
23112
  cat conftest.err >&5
 
23113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23114
  (exit $ac_status); } && {
 
23115
         test -z "$ac_c_werror_flag" ||
 
23116
         test ! -s conftest.err
 
23117
       } && test -s conftest.$ac_objext; then
 
23118
  ac_header_compiler=yes
 
23119
else
 
23120
  $as_echo "$as_me: failed program was:" >&5
 
23121
sed 's/^/| /' conftest.$ac_ext >&5
 
23122
 
 
23123
        ac_header_compiler=no
 
23124
fi
 
23125
 
 
23126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23127
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23128
$as_echo "$ac_header_compiler" >&6; }
 
23129
 
 
23130
# Is the header present?
 
23131
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23132
$as_echo_n "checking $ac_header presence... " >&6; }
 
23133
cat >conftest.$ac_ext <<_ACEOF
 
23134
/* confdefs.h.  */
 
23135
_ACEOF
 
23136
cat confdefs.h >>conftest.$ac_ext
 
23137
cat >>conftest.$ac_ext <<_ACEOF
 
23138
/* end confdefs.h.  */
 
23139
#include <$ac_header>
 
23140
_ACEOF
 
23141
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23142
case "(($ac_try" in
 
23143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23144
  *) ac_try_echo=$ac_try;;
 
23145
esac
 
23146
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23147
$as_echo "$ac_try_echo") >&5
 
23148
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23149
  ac_status=$?
 
23150
  grep -v '^ *+' conftest.er1 >conftest.err
 
23151
  rm -f conftest.er1
 
23152
  cat conftest.err >&5
 
23153
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23154
  (exit $ac_status); } >/dev/null && {
 
23155
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23156
         test ! -s conftest.err
 
23157
       }; then
 
23158
  ac_header_preproc=yes
 
23159
else
 
23160
  $as_echo "$as_me: failed program was:" >&5
 
23161
sed 's/^/| /' conftest.$ac_ext >&5
 
23162
 
 
23163
  ac_header_preproc=no
 
23164
fi
 
23165
 
 
23166
rm -f conftest.err conftest.$ac_ext
 
23167
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23168
$as_echo "$ac_header_preproc" >&6; }
 
23169
 
 
23170
# So?  What about this header?
 
23171
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23172
  yes:no: )
 
23173
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23174
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23175
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23176
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23177
    ac_header_preproc=yes
 
23178
    ;;
 
23179
  no:yes:* )
 
23180
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23181
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23182
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23183
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23184
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23185
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23186
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23187
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23188
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23189
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23190
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23191
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23192
 
 
23193
    ;;
 
23194
esac
 
23195
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23196
$as_echo_n "checking for $ac_header... " >&6; }
 
23197
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23198
  $as_echo_n "(cached) " >&6
 
23199
else
 
23200
  eval "$as_ac_Header=\$ac_header_preproc"
 
23201
fi
 
23202
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23203
                 $as_echo "$as_val"'`
 
23204
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23205
$as_echo "$ac_res" >&6; }
 
23206
 
 
23207
fi
 
23208
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23209
                 $as_echo "$as_val"'`
 
23210
   if test "x$as_val" = x""yes; then
 
23211
  cat >>confdefs.h <<_ACEOF
 
23212
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23213
_ACEOF
 
23214
 
 
23215
fi
 
23216
 
 
23217
done
 
23218
 
 
23219
 
 
23220
 
 
23221
    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
23222
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
23223
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
23224
  $as_echo_n "(cached) " >&6
 
23225
else
 
23226
  gt_save_LIBS="$LIBS"
 
23227
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
23228
     cat >conftest.$ac_ext <<_ACEOF
 
23229
/* confdefs.h.  */
 
23230
_ACEOF
 
23231
cat confdefs.h >>conftest.$ac_ext
 
23232
cat >>conftest.$ac_ext <<_ACEOF
 
23233
/* end confdefs.h.  */
 
23234
#include <CoreFoundation/CFPreferences.h>
 
23235
int
 
23236
main ()
 
23237
{
 
23238
CFPreferencesCopyAppValue(NULL, NULL)
 
23239
  ;
 
23240
  return 0;
 
23241
}
 
23242
_ACEOF
 
23243
rm -f conftest.$ac_objext conftest$ac_exeext
 
23244
if { (ac_try="$ac_link"
 
23245
case "(($ac_try" in
 
23246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23247
  *) ac_try_echo=$ac_try;;
 
23248
esac
 
23249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23250
$as_echo "$ac_try_echo") >&5
 
23251
  (eval "$ac_link") 2>conftest.er1
 
23252
  ac_status=$?
 
23253
  grep -v '^ *+' conftest.er1 >conftest.err
 
23254
  rm -f conftest.er1
 
23255
  cat conftest.err >&5
 
23256
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23257
  (exit $ac_status); } && {
 
23258
         test -z "$ac_c_werror_flag" ||
 
23259
         test ! -s conftest.err
 
23260
       } && test -s conftest$ac_exeext && {
 
23261
         test "$cross_compiling" = yes ||
 
23262
         $as_test_x conftest$ac_exeext
 
23263
       }; then
 
23264
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
23265
else
 
23266
  $as_echo "$as_me: failed program was:" >&5
 
23267
sed 's/^/| /' conftest.$ac_ext >&5
 
23268
 
 
23269
        gt_cv_func_CFPreferencesCopyAppValue=no
 
23270
fi
 
23271
 
 
23272
rm -rf conftest.dSYM
 
23273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23274
      conftest$ac_exeext conftest.$ac_ext
 
23275
     LIBS="$gt_save_LIBS"
 
23276
fi
 
23277
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
23278
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
23279
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
23280
 
 
23281
cat >>confdefs.h <<\_ACEOF
 
23282
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
23283
_ACEOF
 
23284
 
 
23285
  fi
 
23286
    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
23287
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
23288
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
23289
  $as_echo_n "(cached) " >&6
 
23290
else
 
23291
  gt_save_LIBS="$LIBS"
 
23292
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
23293
     cat >conftest.$ac_ext <<_ACEOF
 
23294
/* confdefs.h.  */
 
23295
_ACEOF
 
23296
cat confdefs.h >>conftest.$ac_ext
 
23297
cat >>conftest.$ac_ext <<_ACEOF
 
23298
/* end confdefs.h.  */
 
23299
#include <CoreFoundation/CFLocale.h>
 
23300
int
 
23301
main ()
 
23302
{
 
23303
CFLocaleCopyCurrent();
 
23304
  ;
 
23305
  return 0;
 
23306
}
 
23307
_ACEOF
 
23308
rm -f conftest.$ac_objext conftest$ac_exeext
 
23309
if { (ac_try="$ac_link"
 
23310
case "(($ac_try" in
 
23311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23312
  *) ac_try_echo=$ac_try;;
 
23313
esac
 
23314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23315
$as_echo "$ac_try_echo") >&5
 
23316
  (eval "$ac_link") 2>conftest.er1
 
23317
  ac_status=$?
 
23318
  grep -v '^ *+' conftest.er1 >conftest.err
 
23319
  rm -f conftest.er1
 
23320
  cat conftest.err >&5
 
23321
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23322
  (exit $ac_status); } && {
 
23323
         test -z "$ac_c_werror_flag" ||
 
23324
         test ! -s conftest.err
 
23325
       } && test -s conftest$ac_exeext && {
 
23326
         test "$cross_compiling" = yes ||
 
23327
         $as_test_x conftest$ac_exeext
 
23328
       }; then
 
23329
  gt_cv_func_CFLocaleCopyCurrent=yes
 
23330
else
 
23331
  $as_echo "$as_me: failed program was:" >&5
 
23332
sed 's/^/| /' conftest.$ac_ext >&5
 
23333
 
 
23334
        gt_cv_func_CFLocaleCopyCurrent=no
 
23335
fi
 
23336
 
 
23337
rm -rf conftest.dSYM
 
23338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23339
      conftest$ac_exeext conftest.$ac_ext
 
23340
     LIBS="$gt_save_LIBS"
 
23341
fi
 
23342
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
23343
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
23344
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
23345
 
 
23346
cat >>confdefs.h <<\_ACEOF
 
23347
#define HAVE_CFLOCALECOPYCURRENT 1
 
23348
_ACEOF
 
23349
 
 
23350
  fi
 
23351
  INTL_MACOSX_LIBS=
 
23352
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
23353
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
23354
  fi
 
23355
 
 
23356
 
 
23357
 
 
23358
 
 
23359
 
 
23360
 
 
23361
 
 
23362
  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
23363
$as_echo_n "checking for ptrdiff_t... " >&6; }
 
23364
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
23365
  $as_echo_n "(cached) " >&6
 
23366
else
 
23367
  ac_cv_type_ptrdiff_t=no
 
23368
cat >conftest.$ac_ext <<_ACEOF
 
23369
/* confdefs.h.  */
 
23370
_ACEOF
 
23371
cat confdefs.h >>conftest.$ac_ext
 
23372
cat >>conftest.$ac_ext <<_ACEOF
 
23373
/* end confdefs.h.  */
 
23374
$ac_includes_default
 
23375
int
 
23376
main ()
 
23377
{
 
23378
if (sizeof (ptrdiff_t))
 
23379
       return 0;
 
23380
  ;
 
23381
  return 0;
 
23382
}
 
23383
_ACEOF
 
23384
rm -f conftest.$ac_objext
 
23385
if { (ac_try="$ac_compile"
 
23386
case "(($ac_try" in
 
23387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23388
  *) ac_try_echo=$ac_try;;
 
23389
esac
 
23390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23391
$as_echo "$ac_try_echo") >&5
 
23392
  (eval "$ac_compile") 2>conftest.er1
 
23393
  ac_status=$?
 
23394
  grep -v '^ *+' conftest.er1 >conftest.err
 
23395
  rm -f conftest.er1
 
23396
  cat conftest.err >&5
 
23397
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23398
  (exit $ac_status); } && {
 
23399
         test -z "$ac_c_werror_flag" ||
 
23400
         test ! -s conftest.err
 
23401
       } && test -s conftest.$ac_objext; then
 
23402
  cat >conftest.$ac_ext <<_ACEOF
 
23403
/* confdefs.h.  */
 
23404
_ACEOF
 
23405
cat confdefs.h >>conftest.$ac_ext
 
23406
cat >>conftest.$ac_ext <<_ACEOF
 
23407
/* end confdefs.h.  */
 
23408
$ac_includes_default
 
23409
int
 
23410
main ()
 
23411
{
 
23412
if (sizeof ((ptrdiff_t)))
 
23413
          return 0;
 
23414
  ;
 
23415
  return 0;
 
23416
}
 
23417
_ACEOF
 
23418
rm -f conftest.$ac_objext
 
23419
if { (ac_try="$ac_compile"
 
23420
case "(($ac_try" in
 
23421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23422
  *) ac_try_echo=$ac_try;;
 
23423
esac
 
23424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23425
$as_echo "$ac_try_echo") >&5
 
23426
  (eval "$ac_compile") 2>conftest.er1
 
23427
  ac_status=$?
 
23428
  grep -v '^ *+' conftest.er1 >conftest.err
 
23429
  rm -f conftest.er1
 
23430
  cat conftest.err >&5
 
23431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23432
  (exit $ac_status); } && {
 
23433
         test -z "$ac_c_werror_flag" ||
 
23434
         test ! -s conftest.err
 
23435
       } && test -s conftest.$ac_objext; then
 
23436
  :
 
23437
else
 
23438
  $as_echo "$as_me: failed program was:" >&5
 
23439
sed 's/^/| /' conftest.$ac_ext >&5
 
23440
 
 
23441
        ac_cv_type_ptrdiff_t=yes
 
23442
fi
 
23443
 
 
23444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23445
else
 
23446
  $as_echo "$as_me: failed program was:" >&5
 
23447
sed 's/^/| /' conftest.$ac_ext >&5
 
23448
 
 
23449
 
 
23450
fi
 
23451
 
 
23452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23453
fi
 
23454
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
23455
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
 
23456
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
 
23457
  :
 
23458
else
 
23459
 
 
23460
cat >>confdefs.h <<\_ACEOF
 
23461
#define ptrdiff_t long
 
23462
_ACEOF
 
23463
 
 
23464
 
 
23465
fi
 
23466
 
 
23467
 
 
23468
 
 
23469
 
 
23470
for ac_header in stddef.h stdlib.h string.h
 
23471
do
 
23472
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23474
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23475
$as_echo_n "checking for $ac_header... " >&6; }
 
23476
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23477
  $as_echo_n "(cached) " >&6
 
23478
fi
 
23479
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23480
                 $as_echo "$as_val"'`
 
23481
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23482
$as_echo "$ac_res" >&6; }
 
23483
else
 
23484
  # Is the header compilable?
 
23485
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23486
$as_echo_n "checking $ac_header usability... " >&6; }
 
23487
cat >conftest.$ac_ext <<_ACEOF
 
23488
/* confdefs.h.  */
 
23489
_ACEOF
 
23490
cat confdefs.h >>conftest.$ac_ext
 
23491
cat >>conftest.$ac_ext <<_ACEOF
 
23492
/* end confdefs.h.  */
 
23493
$ac_includes_default
 
23494
#include <$ac_header>
 
23495
_ACEOF
 
23496
rm -f conftest.$ac_objext
 
23497
if { (ac_try="$ac_compile"
 
23498
case "(($ac_try" in
 
23499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23500
  *) ac_try_echo=$ac_try;;
 
23501
esac
 
23502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23503
$as_echo "$ac_try_echo") >&5
 
23504
  (eval "$ac_compile") 2>conftest.er1
 
23505
  ac_status=$?
 
23506
  grep -v '^ *+' conftest.er1 >conftest.err
 
23507
  rm -f conftest.er1
 
23508
  cat conftest.err >&5
 
23509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23510
  (exit $ac_status); } && {
 
23511
         test -z "$ac_c_werror_flag" ||
 
23512
         test ! -s conftest.err
 
23513
       } && test -s conftest.$ac_objext; then
 
23514
  ac_header_compiler=yes
 
23515
else
 
23516
  $as_echo "$as_me: failed program was:" >&5
 
23517
sed 's/^/| /' conftest.$ac_ext >&5
 
23518
 
 
23519
        ac_header_compiler=no
 
23520
fi
 
23521
 
 
23522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23523
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23524
$as_echo "$ac_header_compiler" >&6; }
 
23525
 
 
23526
# Is the header present?
 
23527
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23528
$as_echo_n "checking $ac_header presence... " >&6; }
 
23529
cat >conftest.$ac_ext <<_ACEOF
 
23530
/* confdefs.h.  */
 
23531
_ACEOF
 
23532
cat confdefs.h >>conftest.$ac_ext
 
23533
cat >>conftest.$ac_ext <<_ACEOF
 
23534
/* end confdefs.h.  */
 
23535
#include <$ac_header>
 
23536
_ACEOF
 
23537
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23538
case "(($ac_try" in
 
23539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23540
  *) ac_try_echo=$ac_try;;
 
23541
esac
 
23542
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23543
$as_echo "$ac_try_echo") >&5
 
23544
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23545
  ac_status=$?
 
23546
  grep -v '^ *+' conftest.er1 >conftest.err
 
23547
  rm -f conftest.er1
 
23548
  cat conftest.err >&5
 
23549
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23550
  (exit $ac_status); } >/dev/null && {
 
23551
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23552
         test ! -s conftest.err
 
23553
       }; then
 
23554
  ac_header_preproc=yes
 
23555
else
 
23556
  $as_echo "$as_me: failed program was:" >&5
 
23557
sed 's/^/| /' conftest.$ac_ext >&5
 
23558
 
 
23559
  ac_header_preproc=no
 
23560
fi
 
23561
 
 
23562
rm -f conftest.err conftest.$ac_ext
 
23563
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23564
$as_echo "$ac_header_preproc" >&6; }
 
23565
 
 
23566
# So?  What about this header?
 
23567
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23568
  yes:no: )
 
23569
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23570
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23571
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23572
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23573
    ac_header_preproc=yes
 
23574
    ;;
 
23575
  no:yes:* )
 
23576
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23577
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23578
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23579
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23580
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23581
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23582
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23583
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23584
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23585
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23586
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23587
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23588
 
 
23589
    ;;
 
23590
esac
 
23591
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23592
$as_echo_n "checking for $ac_header... " >&6; }
 
23593
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23594
  $as_echo_n "(cached) " >&6
 
23595
else
 
23596
  eval "$as_ac_Header=\$ac_header_preproc"
 
23597
fi
 
23598
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23599
                 $as_echo "$as_val"'`
 
23600
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23601
$as_echo "$ac_res" >&6; }
 
23602
 
 
23603
fi
 
23604
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23605
                 $as_echo "$as_val"'`
 
23606
   if test "x$as_val" = x""yes; then
 
23607
  cat >>confdefs.h <<_ACEOF
 
23608
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23609
_ACEOF
 
23610
 
 
23611
fi
 
23612
 
 
23613
done
 
23614
 
 
23615
 
 
23616
 
 
23617
 
 
23618
 
 
23619
 
 
23620
 
 
23621
 
 
23622
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
 
23623
do
 
23624
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23625
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23626
$as_echo_n "checking for $ac_func... " >&6; }
 
23627
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
23628
  $as_echo_n "(cached) " >&6
 
23629
else
 
23630
  cat >conftest.$ac_ext <<_ACEOF
 
23631
/* confdefs.h.  */
 
23632
_ACEOF
 
23633
cat confdefs.h >>conftest.$ac_ext
 
23634
cat >>conftest.$ac_ext <<_ACEOF
 
23635
/* end confdefs.h.  */
 
23636
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23637
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23638
#define $ac_func innocuous_$ac_func
 
23639
 
 
23640
/* System header to define __stub macros and hopefully few prototypes,
 
23641
    which can conflict with char $ac_func (); below.
 
23642
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23643
    <limits.h> exists even on freestanding compilers.  */
 
23644
 
 
23645
#ifdef __STDC__
 
23646
# include <limits.h>
 
23647
#else
 
23648
# include <assert.h>
 
23649
#endif
 
23650
 
 
23651
#undef $ac_func
 
23652
 
 
23653
/* Override any GCC internal prototype to avoid an error.
 
23654
   Use char because int might match the return type of a GCC
 
23655
   builtin and then its argument prototype would still apply.  */
 
23656
#ifdef __cplusplus
 
23657
extern "C"
 
23658
#endif
 
23659
char $ac_func ();
 
23660
/* The GNU C library defines this for functions which it implements
 
23661
    to always fail with ENOSYS.  Some functions are actually named
 
23662
    something starting with __ and the normal name is an alias.  */
 
23663
#if defined __stub_$ac_func || defined __stub___$ac_func
 
23664
choke me
 
23665
#endif
 
23666
 
 
23667
int
 
23668
main ()
 
23669
{
 
23670
return $ac_func ();
 
23671
  ;
 
23672
  return 0;
 
23673
}
 
23674
_ACEOF
 
23675
rm -f conftest.$ac_objext conftest$ac_exeext
 
23676
if { (ac_try="$ac_link"
 
23677
case "(($ac_try" in
 
23678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23679
  *) ac_try_echo=$ac_try;;
 
23680
esac
 
23681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23682
$as_echo "$ac_try_echo") >&5
 
23683
  (eval "$ac_link") 2>conftest.er1
 
23684
  ac_status=$?
 
23685
  grep -v '^ *+' conftest.er1 >conftest.err
 
23686
  rm -f conftest.er1
 
23687
  cat conftest.err >&5
 
23688
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23689
  (exit $ac_status); } && {
 
23690
         test -z "$ac_c_werror_flag" ||
 
23691
         test ! -s conftest.err
 
23692
       } && test -s conftest$ac_exeext && {
 
23693
         test "$cross_compiling" = yes ||
 
23694
         $as_test_x conftest$ac_exeext
 
23695
       }; then
 
23696
  eval "$as_ac_var=yes"
 
23697
else
 
23698
  $as_echo "$as_me: failed program was:" >&5
 
23699
sed 's/^/| /' conftest.$ac_ext >&5
 
23700
 
 
23701
        eval "$as_ac_var=no"
 
23702
fi
 
23703
 
 
23704
rm -rf conftest.dSYM
 
23705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23706
      conftest$ac_exeext conftest.$ac_ext
 
23707
fi
 
23708
ac_res=`eval 'as_val=${'$as_ac_var'}
 
23709
                 $as_echo "$as_val"'`
 
23710
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23711
$as_echo "$ac_res" >&6; }
 
23712
as_val=`eval 'as_val=${'$as_ac_var'}
 
23713
                 $as_echo "$as_val"'`
 
23714
   if test "x$as_val" = x""yes; then
 
23715
  cat >>confdefs.h <<_ACEOF
 
23716
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23717
_ACEOF
 
23718
 
 
23719
fi
 
23720
done
 
23721
 
 
23722
 
 
23723
 
 
23724
  { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
23725
$as_echo_n "checking whether _snprintf is declared... " >&6; }
 
23726
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
23727
  $as_echo_n "(cached) " >&6
 
23728
else
 
23729
  cat >conftest.$ac_ext <<_ACEOF
 
23730
/* confdefs.h.  */
 
23731
_ACEOF
 
23732
cat confdefs.h >>conftest.$ac_ext
 
23733
cat >>conftest.$ac_ext <<_ACEOF
 
23734
/* end confdefs.h.  */
 
23735
#include <stdio.h>
 
23736
int
 
23737
main ()
 
23738
{
 
23739
 
 
23740
#ifndef _snprintf
 
23741
  char *p = (char *) _snprintf;
 
23742
#endif
 
23743
 
 
23744
  ;
 
23745
  return 0;
 
23746
}
 
23747
_ACEOF
 
23748
rm -f conftest.$ac_objext
 
23749
if { (ac_try="$ac_compile"
 
23750
case "(($ac_try" in
 
23751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23752
  *) ac_try_echo=$ac_try;;
 
23753
esac
 
23754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23755
$as_echo "$ac_try_echo") >&5
 
23756
  (eval "$ac_compile") 2>conftest.er1
 
23757
  ac_status=$?
 
23758
  grep -v '^ *+' conftest.er1 >conftest.err
 
23759
  rm -f conftest.er1
 
23760
  cat conftest.err >&5
 
23761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23762
  (exit $ac_status); } && {
 
23763
         test -z "$ac_c_werror_flag" ||
 
23764
         test ! -s conftest.err
 
23765
       } && test -s conftest.$ac_objext; then
 
23766
  ac_cv_have_decl__snprintf=yes
 
23767
else
 
23768
  $as_echo "$as_me: failed program was:" >&5
 
23769
sed 's/^/| /' conftest.$ac_ext >&5
 
23770
 
 
23771
        ac_cv_have_decl__snprintf=no
 
23772
fi
 
23773
 
 
23774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23775
fi
 
23776
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
23777
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
 
23778
  if test $ac_cv_have_decl__snprintf = yes; then
 
23779
    gt_value=1
 
23780
  else
 
23781
    gt_value=0
 
23782
  fi
 
23783
 
 
23784
cat >>confdefs.h <<_ACEOF
 
23785
#define HAVE_DECL__SNPRINTF $gt_value
 
23786
_ACEOF
 
23787
 
 
23788
 
 
23789
 
 
23790
  { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
23791
$as_echo_n "checking whether _snwprintf is declared... " >&6; }
 
23792
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
23793
  $as_echo_n "(cached) " >&6
 
23794
else
 
23795
  cat >conftest.$ac_ext <<_ACEOF
 
23796
/* confdefs.h.  */
 
23797
_ACEOF
 
23798
cat confdefs.h >>conftest.$ac_ext
 
23799
cat >>conftest.$ac_ext <<_ACEOF
 
23800
/* end confdefs.h.  */
 
23801
#include <stdio.h>
 
23802
int
 
23803
main ()
 
23804
{
 
23805
 
 
23806
#ifndef _snwprintf
 
23807
  char *p = (char *) _snwprintf;
 
23808
#endif
 
23809
 
 
23810
  ;
 
23811
  return 0;
 
23812
}
 
23813
_ACEOF
 
23814
rm -f conftest.$ac_objext
 
23815
if { (ac_try="$ac_compile"
 
23816
case "(($ac_try" in
 
23817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23818
  *) ac_try_echo=$ac_try;;
 
23819
esac
 
23820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23821
$as_echo "$ac_try_echo") >&5
 
23822
  (eval "$ac_compile") 2>conftest.er1
 
23823
  ac_status=$?
 
23824
  grep -v '^ *+' conftest.er1 >conftest.err
 
23825
  rm -f conftest.er1
 
23826
  cat conftest.err >&5
 
23827
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23828
  (exit $ac_status); } && {
 
23829
         test -z "$ac_c_werror_flag" ||
 
23830
         test ! -s conftest.err
 
23831
       } && test -s conftest.$ac_objext; then
 
23832
  ac_cv_have_decl__snwprintf=yes
 
23833
else
 
23834
  $as_echo "$as_me: failed program was:" >&5
 
23835
sed 's/^/| /' conftest.$ac_ext >&5
 
23836
 
 
23837
        ac_cv_have_decl__snwprintf=no
 
23838
fi
 
23839
 
 
23840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23841
fi
 
23842
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
23843
$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
 
23844
  if test $ac_cv_have_decl__snwprintf = yes; then
 
23845
    gt_value=1
 
23846
  else
 
23847
    gt_value=0
 
23848
  fi
 
23849
 
 
23850
cat >>confdefs.h <<_ACEOF
 
23851
#define HAVE_DECL__SNWPRINTF $gt_value
 
23852
_ACEOF
 
23853
 
 
23854
 
 
23855
 
 
23856
 
 
23857
  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
23858
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
 
23859
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
23860
  $as_echo_n "(cached) " >&6
 
23861
else
 
23862
  cat >conftest.$ac_ext <<_ACEOF
 
23863
/* confdefs.h.  */
 
23864
_ACEOF
 
23865
cat confdefs.h >>conftest.$ac_ext
 
23866
cat >>conftest.$ac_ext <<_ACEOF
 
23867
/* end confdefs.h.  */
 
23868
#include <stdio.h>
 
23869
int
 
23870
main ()
 
23871
{
 
23872
 
 
23873
#ifndef getc_unlocked
 
23874
  char *p = (char *) getc_unlocked;
 
23875
#endif
 
23876
 
 
23877
  ;
 
23878
  return 0;
 
23879
}
 
23880
_ACEOF
 
23881
rm -f conftest.$ac_objext
 
23882
if { (ac_try="$ac_compile"
 
23883
case "(($ac_try" in
 
23884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23885
  *) ac_try_echo=$ac_try;;
 
23886
esac
 
23887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23888
$as_echo "$ac_try_echo") >&5
 
23889
  (eval "$ac_compile") 2>conftest.er1
 
23890
  ac_status=$?
 
23891
  grep -v '^ *+' conftest.er1 >conftest.err
 
23892
  rm -f conftest.er1
 
23893
  cat conftest.err >&5
 
23894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23895
  (exit $ac_status); } && {
 
23896
         test -z "$ac_c_werror_flag" ||
 
23897
         test ! -s conftest.err
 
23898
       } && test -s conftest.$ac_objext; then
 
23899
  ac_cv_have_decl_getc_unlocked=yes
 
23900
else
 
23901
  $as_echo "$as_me: failed program was:" >&5
 
23902
sed 's/^/| /' conftest.$ac_ext >&5
 
23903
 
 
23904
        ac_cv_have_decl_getc_unlocked=no
 
23905
fi
 
23906
 
 
23907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23908
fi
 
23909
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
23910
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
 
23911
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
23912
    gt_value=1
 
23913
  else
 
23914
    gt_value=0
 
23915
  fi
 
23916
 
 
23917
cat >>confdefs.h <<_ACEOF
 
23918
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
23919
_ACEOF
 
23920
 
 
23921
 
 
23922
 
 
23923
  case $gt_cv_func_printf_posix in
 
23924
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
23925
    *) HAVE_POSIX_PRINTF=0 ;;
 
23926
  esac
 
23927
 
 
23928
  if test "$ac_cv_func_asprintf" = yes; then
 
23929
    HAVE_ASPRINTF=1
 
23930
  else
 
23931
    HAVE_ASPRINTF=0
 
23932
  fi
 
23933
 
 
23934
  if test "$ac_cv_func_snprintf" = yes; then
 
23935
    HAVE_SNPRINTF=1
 
23936
  else
 
23937
    HAVE_SNPRINTF=0
 
23938
  fi
 
23939
 
 
23940
  if test "$ac_cv_func_wprintf" = yes; then
 
23941
    HAVE_WPRINTF=1
 
23942
  else
 
23943
    HAVE_WPRINTF=0
 
23944
  fi
 
23945
 
 
23946
 
 
23947
 
 
23948
  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
23949
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
23950
if test "${am_cv_langinfo_codeset+set}" = set; then
 
23951
  $as_echo_n "(cached) " >&6
 
23952
else
 
23953
  cat >conftest.$ac_ext <<_ACEOF
 
23954
/* confdefs.h.  */
 
23955
_ACEOF
 
23956
cat confdefs.h >>conftest.$ac_ext
 
23957
cat >>conftest.$ac_ext <<_ACEOF
 
23958
/* end confdefs.h.  */
 
23959
#include <langinfo.h>
 
23960
int
 
23961
main ()
 
23962
{
 
23963
char* cs = nl_langinfo(CODESET); return !cs;
 
23964
  ;
 
23965
  return 0;
 
23966
}
 
23967
_ACEOF
 
23968
rm -f conftest.$ac_objext conftest$ac_exeext
 
23969
if { (ac_try="$ac_link"
 
23970
case "(($ac_try" in
 
23971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23972
  *) ac_try_echo=$ac_try;;
 
23973
esac
 
23974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23975
$as_echo "$ac_try_echo") >&5
 
23976
  (eval "$ac_link") 2>conftest.er1
 
23977
  ac_status=$?
 
23978
  grep -v '^ *+' conftest.er1 >conftest.err
 
23979
  rm -f conftest.er1
 
23980
  cat conftest.err >&5
 
23981
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23982
  (exit $ac_status); } && {
 
23983
         test -z "$ac_c_werror_flag" ||
 
23984
         test ! -s conftest.err
 
23985
       } && test -s conftest$ac_exeext && {
 
23986
         test "$cross_compiling" = yes ||
 
23987
         $as_test_x conftest$ac_exeext
 
23988
       }; then
 
23989
  am_cv_langinfo_codeset=yes
 
23990
else
 
23991
  $as_echo "$as_me: failed program was:" >&5
 
23992
sed 's/^/| /' conftest.$ac_ext >&5
 
23993
 
 
23994
        am_cv_langinfo_codeset=no
 
23995
fi
 
23996
 
 
23997
rm -rf conftest.dSYM
 
23998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23999
      conftest$ac_exeext conftest.$ac_ext
 
24000
 
 
24001
fi
 
24002
{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
24003
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
24004
  if test $am_cv_langinfo_codeset = yes; then
 
24005
 
 
24006
cat >>confdefs.h <<\_ACEOF
 
24007
#define HAVE_LANGINFO_CODESET 1
 
24008
_ACEOF
 
24009
 
 
24010
  fi
 
24011
 
 
24012
 
 
24013
  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
24014
$as_echo_n "checking for LC_MESSAGES... " >&6; }
 
24015
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
 
24016
  $as_echo_n "(cached) " >&6
 
24017
else
 
24018
  cat >conftest.$ac_ext <<_ACEOF
 
24019
/* confdefs.h.  */
 
24020
_ACEOF
 
24021
cat confdefs.h >>conftest.$ac_ext
 
24022
cat >>conftest.$ac_ext <<_ACEOF
 
24023
/* end confdefs.h.  */
 
24024
#include <locale.h>
 
24025
int
 
24026
main ()
 
24027
{
 
24028
return LC_MESSAGES
 
24029
  ;
 
24030
  return 0;
 
24031
}
 
24032
_ACEOF
 
24033
rm -f conftest.$ac_objext conftest$ac_exeext
 
24034
if { (ac_try="$ac_link"
 
24035
case "(($ac_try" in
 
24036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24037
  *) ac_try_echo=$ac_try;;
 
24038
esac
 
24039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24040
$as_echo "$ac_try_echo") >&5
 
24041
  (eval "$ac_link") 2>conftest.er1
 
24042
  ac_status=$?
 
24043
  grep -v '^ *+' conftest.er1 >conftest.err
 
24044
  rm -f conftest.er1
 
24045
  cat conftest.err >&5
 
24046
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24047
  (exit $ac_status); } && {
 
24048
         test -z "$ac_c_werror_flag" ||
 
24049
         test ! -s conftest.err
 
24050
       } && test -s conftest$ac_exeext && {
 
24051
         test "$cross_compiling" = yes ||
 
24052
         $as_test_x conftest$ac_exeext
 
24053
       }; then
 
24054
  gt_cv_val_LC_MESSAGES=yes
 
24055
else
 
24056
  $as_echo "$as_me: failed program was:" >&5
 
24057
sed 's/^/| /' conftest.$ac_ext >&5
 
24058
 
 
24059
        gt_cv_val_LC_MESSAGES=no
 
24060
fi
 
24061
 
 
24062
rm -rf conftest.dSYM
 
24063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24064
      conftest$ac_exeext conftest.$ac_ext
 
24065
fi
 
24066
{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
 
24067
$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
 
24068
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
24069
 
 
24070
cat >>confdefs.h <<\_ACEOF
 
24071
#define HAVE_LC_MESSAGES 1
 
24072
_ACEOF
 
24073
 
 
24074
  fi
 
24075
 
 
24076
 
 
24077
                if test "$enable_shared" = yes; then
 
24078
    case "$host_os" in
 
24079
      mingw* | cygwin*) is_woe32dll=yes ;;
 
24080
      *) is_woe32dll=no ;;
 
24081
    esac
 
24082
  else
 
24083
    is_woe32dll=no
 
24084
  fi
 
24085
  WOE32DLL=$is_woe32dll
 
24086
 
 
24087
 
 
24088
      case "$host_os" in
 
24089
    mingw* | cygwin*) is_woe32=yes ;;
 
24090
    *) is_woe32=no ;;
 
24091
  esac
 
24092
  WOE32=$is_woe32
 
24093
 
 
24094
  if test $WOE32 = yes; then
 
24095
        if test -n "$ac_tool_prefix"; then
 
24096
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
24097
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
24098
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24099
$as_echo_n "checking for $ac_word... " >&6; }
 
24100
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
24101
  $as_echo_n "(cached) " >&6
 
24102
else
 
24103
  if test -n "$WINDRES"; then
 
24104
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
24105
else
 
24106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24107
for as_dir in $PATH
 
24108
do
 
24109
  IFS=$as_save_IFS
 
24110
  test -z "$as_dir" && as_dir=.
 
24111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24113
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
24114
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24115
    break 2
 
24116
  fi
 
24117
done
 
24118
done
 
24119
IFS=$as_save_IFS
 
24120
 
 
24121
fi
 
24122
fi
 
24123
WINDRES=$ac_cv_prog_WINDRES
 
24124
if test -n "$WINDRES"; then
 
24125
  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
 
24126
$as_echo "$WINDRES" >&6; }
 
24127
else
 
24128
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24129
$as_echo "no" >&6; }
 
24130
fi
 
24131
 
 
24132
 
 
24133
fi
 
24134
if test -z "$ac_cv_prog_WINDRES"; then
 
24135
  ac_ct_WINDRES=$WINDRES
 
24136
  # Extract the first word of "windres", so it can be a program name with args.
 
24137
set dummy windres; ac_word=$2
 
24138
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24139
$as_echo_n "checking for $ac_word... " >&6; }
 
24140
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
24141
  $as_echo_n "(cached) " >&6
 
24142
else
 
24143
  if test -n "$ac_ct_WINDRES"; then
 
24144
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
24145
else
 
24146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24147
for as_dir in $PATH
 
24148
do
 
24149
  IFS=$as_save_IFS
 
24150
  test -z "$as_dir" && as_dir=.
 
24151
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24152
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24153
    ac_cv_prog_ac_ct_WINDRES="windres"
 
24154
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24155
    break 2
 
24156
  fi
 
24157
done
 
24158
done
 
24159
IFS=$as_save_IFS
 
24160
 
 
24161
fi
 
24162
fi
 
24163
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
24164
if test -n "$ac_ct_WINDRES"; then
 
24165
  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
24166
$as_echo "$ac_ct_WINDRES" >&6; }
 
24167
else
 
24168
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
24169
$as_echo "no" >&6; }
 
24170
fi
 
24171
 
 
24172
  if test "x$ac_ct_WINDRES" = x; then
 
24173
    WINDRES=""
 
24174
  else
 
24175
    case $cross_compiling:$ac_tool_warned in
 
24176
yes:)
 
24177
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
24178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
24179
ac_tool_warned=yes ;;
 
24180
esac
 
24181
    WINDRES=$ac_ct_WINDRES
 
24182
  fi
 
24183
else
 
24184
  WINDRES="$ac_cv_prog_WINDRES"
 
24185
fi
 
24186
 
 
24187
  fi
 
24188
 
 
24189
              case "$host_os" in
 
24190
    hpux*) LTLIBC="" ;;
 
24191
    *)     LTLIBC="-lc" ;;
 
24192
  esac
 
24193
 
 
24194
 
 
24195
 
 
24196
 
 
24197
 
 
24198
 
 
24199
 
 
24200
 
 
24201
 
 
24202
 
 
24203
 
 
24204
 
 
24205
 
 
24206
 
 
24207
 
 
24208
 
 
24209
 
 
24210
 
 
24211
 
 
24212
 
 
24213
 
 
24214
 
 
24215
 
 
24216
 
 
24217
 
 
24218
 
 
24219
 
 
24220
    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
24221
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
24222
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
24223
  $as_echo_n "(cached) " >&6
 
24224
else
 
24225
  gt_save_LIBS="$LIBS"
 
24226
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
24227
     cat >conftest.$ac_ext <<_ACEOF
 
24228
/* confdefs.h.  */
 
24229
_ACEOF
 
24230
cat confdefs.h >>conftest.$ac_ext
 
24231
cat >>conftest.$ac_ext <<_ACEOF
 
24232
/* end confdefs.h.  */
 
24233
#include <CoreFoundation/CFPreferences.h>
 
24234
int
 
24235
main ()
 
24236
{
 
24237
CFPreferencesCopyAppValue(NULL, NULL)
 
24238
  ;
 
24239
  return 0;
 
24240
}
 
24241
_ACEOF
 
24242
rm -f conftest.$ac_objext conftest$ac_exeext
 
24243
if { (ac_try="$ac_link"
 
24244
case "(($ac_try" in
 
24245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24246
  *) ac_try_echo=$ac_try;;
 
24247
esac
 
24248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24249
$as_echo "$ac_try_echo") >&5
 
24250
  (eval "$ac_link") 2>conftest.er1
 
24251
  ac_status=$?
 
24252
  grep -v '^ *+' conftest.er1 >conftest.err
 
24253
  rm -f conftest.er1
 
24254
  cat conftest.err >&5
 
24255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24256
  (exit $ac_status); } && {
 
24257
         test -z "$ac_c_werror_flag" ||
 
24258
         test ! -s conftest.err
 
24259
       } && test -s conftest$ac_exeext && {
 
24260
         test "$cross_compiling" = yes ||
 
24261
         $as_test_x conftest$ac_exeext
 
24262
       }; then
 
24263
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
24264
else
 
24265
  $as_echo "$as_me: failed program was:" >&5
 
24266
sed 's/^/| /' conftest.$ac_ext >&5
 
24267
 
 
24268
        gt_cv_func_CFPreferencesCopyAppValue=no
 
24269
fi
 
24270
 
 
24271
rm -rf conftest.dSYM
 
24272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24273
      conftest$ac_exeext conftest.$ac_ext
 
24274
     LIBS="$gt_save_LIBS"
 
24275
fi
 
24276
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
24277
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
24278
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
24279
 
 
24280
cat >>confdefs.h <<\_ACEOF
 
24281
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
24282
_ACEOF
 
24283
 
 
24284
  fi
 
24285
    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
24286
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
24287
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
24288
  $as_echo_n "(cached) " >&6
 
24289
else
 
24290
  gt_save_LIBS="$LIBS"
 
24291
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
24292
     cat >conftest.$ac_ext <<_ACEOF
 
24293
/* confdefs.h.  */
 
24294
_ACEOF
 
24295
cat confdefs.h >>conftest.$ac_ext
 
24296
cat >>conftest.$ac_ext <<_ACEOF
 
24297
/* end confdefs.h.  */
 
24298
#include <CoreFoundation/CFLocale.h>
 
24299
int
 
24300
main ()
 
24301
{
 
24302
CFLocaleCopyCurrent();
 
24303
  ;
 
24304
  return 0;
 
24305
}
 
24306
_ACEOF
 
24307
rm -f conftest.$ac_objext conftest$ac_exeext
 
24308
if { (ac_try="$ac_link"
 
24309
case "(($ac_try" in
 
24310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24311
  *) ac_try_echo=$ac_try;;
 
24312
esac
 
24313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24314
$as_echo "$ac_try_echo") >&5
 
24315
  (eval "$ac_link") 2>conftest.er1
 
24316
  ac_status=$?
 
24317
  grep -v '^ *+' conftest.er1 >conftest.err
 
24318
  rm -f conftest.er1
 
24319
  cat conftest.err >&5
 
24320
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24321
  (exit $ac_status); } && {
 
24322
         test -z "$ac_c_werror_flag" ||
 
24323
         test ! -s conftest.err
 
24324
       } && test -s conftest$ac_exeext && {
 
24325
         test "$cross_compiling" = yes ||
 
24326
         $as_test_x conftest$ac_exeext
 
24327
       }; then
 
24328
  gt_cv_func_CFLocaleCopyCurrent=yes
 
24329
else
 
24330
  $as_echo "$as_me: failed program was:" >&5
 
24331
sed 's/^/| /' conftest.$ac_ext >&5
 
24332
 
 
24333
        gt_cv_func_CFLocaleCopyCurrent=no
 
24334
fi
 
24335
 
 
24336
rm -rf conftest.dSYM
 
24337
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24338
      conftest$ac_exeext conftest.$ac_ext
 
24339
     LIBS="$gt_save_LIBS"
 
24340
fi
 
24341
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
24342
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
24343
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
24344
 
 
24345
cat >>confdefs.h <<\_ACEOF
 
24346
#define HAVE_CFLOCALECOPYCURRENT 1
 
24347
_ACEOF
 
24348
 
 
24349
  fi
 
24350
  INTL_MACOSX_LIBS=
 
24351
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
24352
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
24353
  fi
 
24354
 
 
24355
 
 
24356
 
 
24357
 
 
24358
 
 
24359
 
 
24360
    BUILD_INCLUDED_LIBINTL=no
 
24361
    USE_INCLUDED_LIBINTL=no
 
24362
 
 
24363
  LIBINTL=
 
24364
  LTLIBINTL=
 
24365
  POSUB=
 
24366
 
 
24367
    case " $gt_needs " in
 
24368
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
24369
    *" need-ngettext "*) gt_api_version=2 ;;
 
24370
    *) gt_api_version=1 ;;
 
24371
  esac
 
24372
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
24373
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
24374
 
 
24375
    if test "$USE_NLS" = "yes"; then
 
24376
    gt_use_preinstalled_gnugettext=no
 
24377
 
 
24378
      { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
24379
$as_echo_n "checking whether included gettext is requested... " >&6; }
 
24380
 
 
24381
# Check whether --with-included-gettext was given.
 
24382
if test "${with_included_gettext+set}" = set; then
 
24383
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
 
24384
else
 
24385
  nls_cv_force_use_gnu_gettext=no
 
24386
fi
 
24387
 
 
24388
      { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
24389
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
 
24390
 
 
24391
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
24392
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
24393
 
 
24394
 
 
24395
        if test $gt_api_version -ge 3; then
 
24396
          gt_revision_test_code='
 
24397
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
24398
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
24399
#endif
 
24400
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
24401
'
 
24402
        else
 
24403
          gt_revision_test_code=
 
24404
        fi
 
24405
        if test $gt_api_version -ge 2; then
 
24406
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
24407
        else
 
24408
          gt_expression_test_code=
 
24409
        fi
 
24410
 
 
24411
        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
24412
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
24413
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
 
24414
  $as_echo_n "(cached) " >&6
 
24415
else
 
24416
  cat >conftest.$ac_ext <<_ACEOF
 
24417
/* confdefs.h.  */
 
24418
_ACEOF
 
24419
cat confdefs.h >>conftest.$ac_ext
 
24420
cat >>conftest.$ac_ext <<_ACEOF
 
24421
/* end confdefs.h.  */
 
24422
#include <libintl.h>
 
24423
$gt_revision_test_code
 
24424
extern int _nl_msg_cat_cntr;
 
24425
extern int *_nl_domain_bindings;
 
24426
int
 
24427
main ()
 
24428
{
 
24429
bindtextdomain ("", "");
 
24430
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
24431
  ;
 
24432
  return 0;
 
24433
}
 
24434
_ACEOF
 
24435
rm -f conftest.$ac_objext conftest$ac_exeext
 
24436
if { (ac_try="$ac_link"
 
24437
case "(($ac_try" in
 
24438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24439
  *) ac_try_echo=$ac_try;;
 
24440
esac
 
24441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24442
$as_echo "$ac_try_echo") >&5
 
24443
  (eval "$ac_link") 2>conftest.er1
 
24444
  ac_status=$?
 
24445
  grep -v '^ *+' conftest.er1 >conftest.err
 
24446
  rm -f conftest.er1
 
24447
  cat conftest.err >&5
 
24448
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24449
  (exit $ac_status); } && {
 
24450
         test -z "$ac_c_werror_flag" ||
 
24451
         test ! -s conftest.err
 
24452
       } && test -s conftest$ac_exeext && {
 
24453
         test "$cross_compiling" = yes ||
 
24454
         $as_test_x conftest$ac_exeext
 
24455
       }; then
 
24456
  eval "$gt_func_gnugettext_libc=yes"
 
24457
else
 
24458
  $as_echo "$as_me: failed program was:" >&5
 
24459
sed 's/^/| /' conftest.$ac_ext >&5
 
24460
 
 
24461
        eval "$gt_func_gnugettext_libc=no"
 
24462
fi
 
24463
 
 
24464
rm -rf conftest.dSYM
 
24465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24466
      conftest$ac_exeext conftest.$ac_ext
 
24467
fi
 
24468
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
 
24469
                 $as_echo "$as_val"'`
 
24470
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24471
$as_echo "$ac_res" >&6; }
 
24472
 
 
24473
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
24474
 
 
24475
 
 
24476
 
 
24477
 
 
24478
 
 
24479
    use_additional=yes
 
24480
 
 
24481
  acl_save_prefix="$prefix"
 
24482
  prefix="$acl_final_prefix"
 
24483
  acl_save_exec_prefix="$exec_prefix"
 
24484
  exec_prefix="$acl_final_exec_prefix"
 
24485
 
 
24486
    eval additional_includedir=\"$includedir\"
 
24487
    eval additional_libdir=\"$libdir\"
 
24488
 
 
24489
  exec_prefix="$acl_save_exec_prefix"
 
24490
  prefix="$acl_save_prefix"
 
24491
 
 
24492
 
 
24493
# Check whether --with-libintl-prefix was given.
 
24494
if test "${with_libintl_prefix+set}" = set; then
 
24495
  withval=$with_libintl_prefix;
 
24496
    if test "X$withval" = "Xno"; then
 
24497
      use_additional=no
 
24498
    else
 
24499
      if test "X$withval" = "X"; then
 
24500
 
 
24501
  acl_save_prefix="$prefix"
 
24502
  prefix="$acl_final_prefix"
 
24503
  acl_save_exec_prefix="$exec_prefix"
 
24504
  exec_prefix="$acl_final_exec_prefix"
 
24505
 
 
24506
          eval additional_includedir=\"$includedir\"
 
24507
          eval additional_libdir=\"$libdir\"
 
24508
 
 
24509
  exec_prefix="$acl_save_exec_prefix"
 
24510
  prefix="$acl_save_prefix"
 
24511
 
 
24512
      else
 
24513
        additional_includedir="$withval/include"
 
24514
        additional_libdir="$withval/$acl_libdirstem"
 
24515
      fi
 
24516
    fi
 
24517
 
 
24518
fi
 
24519
 
 
24520
      LIBINTL=
 
24521
  LTLIBINTL=
 
24522
  INCINTL=
 
24523
  LIBINTL_PREFIX=
 
24524
  rpathdirs=
 
24525
  ltrpathdirs=
 
24526
  names_already_handled=
 
24527
  names_next_round='intl '
 
24528
  while test -n "$names_next_round"; do
 
24529
    names_this_round="$names_next_round"
 
24530
    names_next_round=
 
24531
    for name in $names_this_round; do
 
24532
      already_handled=
 
24533
      for n in $names_already_handled; do
 
24534
        if test "$n" = "$name"; then
 
24535
          already_handled=yes
 
24536
          break
 
24537
        fi
 
24538
      done
 
24539
      if test -z "$already_handled"; then
 
24540
        names_already_handled="$names_already_handled $name"
 
24541
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
24542
        eval value=\"\$HAVE_LIB$uppername\"
 
24543
        if test -n "$value"; then
 
24544
          if test "$value" = yes; then
 
24545
            eval value=\"\$LIB$uppername\"
 
24546
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
24547
            eval value=\"\$LTLIB$uppername\"
 
24548
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
24549
          else
 
24550
                                    :
 
24551
          fi
 
24552
        else
 
24553
                              found_dir=
 
24554
          found_la=
 
24555
          found_so=
 
24556
          found_a=
 
24557
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
24558
          if test -n "$acl_shlibext"; then
 
24559
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
24560
          else
 
24561
            shrext=
 
24562
          fi
 
24563
          if test $use_additional = yes; then
 
24564
            dir="$additional_libdir"
 
24565
                                    if test -n "$acl_shlibext"; then
 
24566
              if test -f "$dir/$libname$shrext"; then
 
24567
                found_dir="$dir"
 
24568
                found_so="$dir/$libname$shrext"
 
24569
              else
 
24570
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
24571
                  ver=`(cd "$dir" && \
 
24572
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
24573
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
24574
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
24575
                        | sed 1q ) 2>/dev/null`
 
24576
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
24577
                    found_dir="$dir"
 
24578
                    found_so="$dir/$libname$shrext.$ver"
 
24579
                  fi
 
24580
                else
 
24581
                  eval library_names=\"$acl_library_names_spec\"
 
24582
                  for f in $library_names; do
 
24583
                    if test -f "$dir/$f"; then
 
24584
                      found_dir="$dir"
 
24585
                      found_so="$dir/$f"
 
24586
                      break
 
24587
                    fi
 
24588
                  done
 
24589
                fi
 
24590
              fi
 
24591
            fi
 
24592
                        if test "X$found_dir" = "X"; then
 
24593
              if test -f "$dir/$libname.$acl_libext"; then
 
24594
                found_dir="$dir"
 
24595
                found_a="$dir/$libname.$acl_libext"
 
24596
              fi
 
24597
            fi
 
24598
            if test "X$found_dir" != "X"; then
 
24599
              if test -f "$dir/$libname.la"; then
 
24600
                found_la="$dir/$libname.la"
 
24601
              fi
 
24602
            fi
 
24603
          fi
 
24604
          if test "X$found_dir" = "X"; then
 
24605
            for x in $LDFLAGS $LTLIBINTL; do
 
24606
 
 
24607
  acl_save_prefix="$prefix"
 
24608
  prefix="$acl_final_prefix"
 
24609
  acl_save_exec_prefix="$exec_prefix"
 
24610
  exec_prefix="$acl_final_exec_prefix"
 
24611
  eval x=\"$x\"
 
24612
  exec_prefix="$acl_save_exec_prefix"
 
24613
  prefix="$acl_save_prefix"
 
24614
 
 
24615
              case "$x" in
 
24616
                -L*)
 
24617
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
24618
                                    if test -n "$acl_shlibext"; then
 
24619
                    if test -f "$dir/$libname$shrext"; then
 
24620
                      found_dir="$dir"
 
24621
                      found_so="$dir/$libname$shrext"
 
24622
                    else
 
24623
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
24624
                        ver=`(cd "$dir" && \
 
24625
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
24626
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
24627
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
24628
                              | sed 1q ) 2>/dev/null`
 
24629
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
24630
                          found_dir="$dir"
 
24631
                          found_so="$dir/$libname$shrext.$ver"
 
24632
                        fi
 
24633
                      else
 
24634
                        eval library_names=\"$acl_library_names_spec\"
 
24635
                        for f in $library_names; do
 
24636
                          if test -f "$dir/$f"; then
 
24637
                            found_dir="$dir"
 
24638
                            found_so="$dir/$f"
 
24639
                            break
 
24640
                          fi
 
24641
                        done
 
24642
                      fi
 
24643
                    fi
 
24644
                  fi
 
24645
                                    if test "X$found_dir" = "X"; then
 
24646
                    if test -f "$dir/$libname.$acl_libext"; then
 
24647
                      found_dir="$dir"
 
24648
                      found_a="$dir/$libname.$acl_libext"
 
24649
                    fi
 
24650
                  fi
 
24651
                  if test "X$found_dir" != "X"; then
 
24652
                    if test -f "$dir/$libname.la"; then
 
24653
                      found_la="$dir/$libname.la"
 
24654
                    fi
 
24655
                  fi
 
24656
                  ;;
 
24657
              esac
 
24658
              if test "X$found_dir" != "X"; then
 
24659
                break
 
24660
              fi
 
24661
            done
 
24662
          fi
 
24663
          if test "X$found_dir" != "X"; then
 
24664
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
24665
            if test "X$found_so" != "X"; then
 
24666
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
24667
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
24668
              else
 
24669
                                                                                haveit=
 
24670
                for x in $ltrpathdirs; do
 
24671
                  if test "X$x" = "X$found_dir"; then
 
24672
                    haveit=yes
 
24673
                    break
 
24674
                  fi
 
24675
                done
 
24676
                if test -z "$haveit"; then
 
24677
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
24678
                fi
 
24679
                                if test "$acl_hardcode_direct" = yes; then
 
24680
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
24681
                else
 
24682
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
24683
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
24684
                                                            haveit=
 
24685
                    for x in $rpathdirs; do
 
24686
                      if test "X$x" = "X$found_dir"; then
 
24687
                        haveit=yes
 
24688
                        break
 
24689
                      fi
 
24690
                    done
 
24691
                    if test -z "$haveit"; then
 
24692
                      rpathdirs="$rpathdirs $found_dir"
 
24693
                    fi
 
24694
                  else
 
24695
                                                                                haveit=
 
24696
                    for x in $LDFLAGS $LIBINTL; do
 
24697
 
 
24698
  acl_save_prefix="$prefix"
 
24699
  prefix="$acl_final_prefix"
 
24700
  acl_save_exec_prefix="$exec_prefix"
 
24701
  exec_prefix="$acl_final_exec_prefix"
 
24702
  eval x=\"$x\"
 
24703
  exec_prefix="$acl_save_exec_prefix"
 
24704
  prefix="$acl_save_prefix"
 
24705
 
 
24706
                      if test "X$x" = "X-L$found_dir"; then
 
24707
                        haveit=yes
 
24708
                        break
 
24709
                      fi
 
24710
                    done
 
24711
                    if test -z "$haveit"; then
 
24712
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
24713
                    fi
 
24714
                    if test "$acl_hardcode_minus_L" != no; then
 
24715
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
24716
                    else
 
24717
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
24718
                    fi
 
24719
                  fi
 
24720
                fi
 
24721
              fi
 
24722
            else
 
24723
              if test "X$found_a" != "X"; then
 
24724
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
24725
              else
 
24726
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
24727
              fi
 
24728
            fi
 
24729
                        additional_includedir=
 
24730
            case "$found_dir" in
 
24731
              */$acl_libdirstem | */$acl_libdirstem/)
 
24732
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
24733
                LIBINTL_PREFIX="$basedir"
 
24734
                additional_includedir="$basedir/include"
 
24735
                ;;
 
24736
            esac
 
24737
            if test "X$additional_includedir" != "X"; then
 
24738
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
24739
                haveit=
 
24740
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
24741
                  if test -n "$GCC"; then
 
24742
                    case $host_os in
 
24743
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
24744
                    esac
 
24745
                  fi
 
24746
                fi
 
24747
                if test -z "$haveit"; then
 
24748
                  for x in $CPPFLAGS $INCINTL; do
 
24749
 
 
24750
  acl_save_prefix="$prefix"
 
24751
  prefix="$acl_final_prefix"
 
24752
  acl_save_exec_prefix="$exec_prefix"
 
24753
  exec_prefix="$acl_final_exec_prefix"
 
24754
  eval x=\"$x\"
 
24755
  exec_prefix="$acl_save_exec_prefix"
 
24756
  prefix="$acl_save_prefix"
 
24757
 
 
24758
                    if test "X$x" = "X-I$additional_includedir"; then
 
24759
                      haveit=yes
 
24760
                      break
 
24761
                    fi
 
24762
                  done
 
24763
                  if test -z "$haveit"; then
 
24764
                    if test -d "$additional_includedir"; then
 
24765
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
24766
                    fi
 
24767
                  fi
 
24768
                fi
 
24769
              fi
 
24770
            fi
 
24771
                        if test -n "$found_la"; then
 
24772
                                                        save_libdir="$libdir"
 
24773
              case "$found_la" in
 
24774
                */* | *\\*) . "$found_la" ;;
 
24775
                *) . "./$found_la" ;;
 
24776
              esac
 
24777
              libdir="$save_libdir"
 
24778
                            for dep in $dependency_libs; do
 
24779
                case "$dep" in
 
24780
                  -L*)
 
24781
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
24782
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
24783
                      haveit=
 
24784
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
24785
                        if test -n "$GCC"; then
 
24786
                          case $host_os in
 
24787
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
24788
                          esac
 
24789
                        fi
 
24790
                      fi
 
24791
                      if test -z "$haveit"; then
 
24792
                        haveit=
 
24793
                        for x in $LDFLAGS $LIBINTL; do
 
24794
 
 
24795
  acl_save_prefix="$prefix"
 
24796
  prefix="$acl_final_prefix"
 
24797
  acl_save_exec_prefix="$exec_prefix"
 
24798
  exec_prefix="$acl_final_exec_prefix"
 
24799
  eval x=\"$x\"
 
24800
  exec_prefix="$acl_save_exec_prefix"
 
24801
  prefix="$acl_save_prefix"
 
24802
 
 
24803
                          if test "X$x" = "X-L$additional_libdir"; then
 
24804
                            haveit=yes
 
24805
                            break
 
24806
                          fi
 
24807
                        done
 
24808
                        if test -z "$haveit"; then
 
24809
                          if test -d "$additional_libdir"; then
 
24810
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
24811
                          fi
 
24812
                        fi
 
24813
                        haveit=
 
24814
                        for x in $LDFLAGS $LTLIBINTL; do
 
24815
 
 
24816
  acl_save_prefix="$prefix"
 
24817
  prefix="$acl_final_prefix"
 
24818
  acl_save_exec_prefix="$exec_prefix"
 
24819
  exec_prefix="$acl_final_exec_prefix"
 
24820
  eval x=\"$x\"
 
24821
  exec_prefix="$acl_save_exec_prefix"
 
24822
  prefix="$acl_save_prefix"
 
24823
 
 
24824
                          if test "X$x" = "X-L$additional_libdir"; then
 
24825
                            haveit=yes
 
24826
                            break
 
24827
                          fi
 
24828
                        done
 
24829
                        if test -z "$haveit"; then
 
24830
                          if test -d "$additional_libdir"; then
 
24831
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
24832
                          fi
 
24833
                        fi
 
24834
                      fi
 
24835
                    fi
 
24836
                    ;;
 
24837
                  -R*)
 
24838
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
24839
                    if test "$enable_rpath" != no; then
 
24840
                                                                  haveit=
 
24841
                      for x in $rpathdirs; do
 
24842
                        if test "X$x" = "X$dir"; then
 
24843
                          haveit=yes
 
24844
                          break
 
24845
                        fi
 
24846
                      done
 
24847
                      if test -z "$haveit"; then
 
24848
                        rpathdirs="$rpathdirs $dir"
 
24849
                      fi
 
24850
                                                                  haveit=
 
24851
                      for x in $ltrpathdirs; do
 
24852
                        if test "X$x" = "X$dir"; then
 
24853
                          haveit=yes
 
24854
                          break
 
24855
                        fi
 
24856
                      done
 
24857
                      if test -z "$haveit"; then
 
24858
                        ltrpathdirs="$ltrpathdirs $dir"
 
24859
                      fi
 
24860
                    fi
 
24861
                    ;;
 
24862
                  -l*)
 
24863
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
24864
                    ;;
 
24865
                  *.la)
 
24866
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
24867
                    ;;
 
24868
                  *)
 
24869
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
24870
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
24871
                    ;;
 
24872
                esac
 
24873
              done
 
24874
            fi
 
24875
          else
 
24876
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
24877
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
24878
          fi
 
24879
        fi
 
24880
      fi
 
24881
    done
 
24882
  done
 
24883
  if test "X$rpathdirs" != "X"; then
 
24884
    if test -n "$acl_hardcode_libdir_separator"; then
 
24885
                        alldirs=
 
24886
      for found_dir in $rpathdirs; do
 
24887
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
24888
      done
 
24889
            acl_save_libdir="$libdir"
 
24890
      libdir="$alldirs"
 
24891
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24892
      libdir="$acl_save_libdir"
 
24893
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
24894
    else
 
24895
            for found_dir in $rpathdirs; do
 
24896
        acl_save_libdir="$libdir"
 
24897
        libdir="$found_dir"
 
24898
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
24899
        libdir="$acl_save_libdir"
 
24900
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
24901
      done
 
24902
    fi
 
24903
  fi
 
24904
  if test "X$ltrpathdirs" != "X"; then
 
24905
            for found_dir in $ltrpathdirs; do
 
24906
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
24907
    done
 
24908
  fi
 
24909
 
 
24910
          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
24911
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
24912
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
 
24913
  $as_echo_n "(cached) " >&6
 
24914
else
 
24915
  gt_save_CPPFLAGS="$CPPFLAGS"
 
24916
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
24917
            gt_save_LIBS="$LIBS"
 
24918
            LIBS="$LIBS $LIBINTL"
 
24919
                        cat >conftest.$ac_ext <<_ACEOF
 
24920
/* confdefs.h.  */
 
24921
_ACEOF
 
24922
cat confdefs.h >>conftest.$ac_ext
 
24923
cat >>conftest.$ac_ext <<_ACEOF
 
24924
/* end confdefs.h.  */
 
24925
#include <libintl.h>
 
24926
$gt_revision_test_code
 
24927
extern int _nl_msg_cat_cntr;
 
24928
extern
 
24929
#ifdef __cplusplus
 
24930
"C"
 
24931
#endif
 
24932
const char *_nl_expand_alias (const char *);
 
24933
int
 
24934
main ()
 
24935
{
 
24936
bindtextdomain ("", "");
 
24937
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
24938
  ;
 
24939
  return 0;
 
24940
}
 
24941
_ACEOF
 
24942
rm -f conftest.$ac_objext conftest$ac_exeext
 
24943
if { (ac_try="$ac_link"
 
24944
case "(($ac_try" in
 
24945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24946
  *) ac_try_echo=$ac_try;;
 
24947
esac
 
24948
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24949
$as_echo "$ac_try_echo") >&5
 
24950
  (eval "$ac_link") 2>conftest.er1
 
24951
  ac_status=$?
 
24952
  grep -v '^ *+' conftest.er1 >conftest.err
 
24953
  rm -f conftest.er1
 
24954
  cat conftest.err >&5
 
24955
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24956
  (exit $ac_status); } && {
 
24957
         test -z "$ac_c_werror_flag" ||
 
24958
         test ! -s conftest.err
 
24959
       } && test -s conftest$ac_exeext && {
 
24960
         test "$cross_compiling" = yes ||
 
24961
         $as_test_x conftest$ac_exeext
 
24962
       }; then
 
24963
  eval "$gt_func_gnugettext_libintl=yes"
 
24964
else
 
24965
  $as_echo "$as_me: failed program was:" >&5
 
24966
sed 's/^/| /' conftest.$ac_ext >&5
 
24967
 
 
24968
        eval "$gt_func_gnugettext_libintl=no"
 
24969
fi
 
24970
 
 
24971
rm -rf conftest.dSYM
 
24972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24973
      conftest$ac_exeext conftest.$ac_ext
 
24974
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
24975
              LIBS="$LIBS $LIBICONV"
 
24976
              cat >conftest.$ac_ext <<_ACEOF
 
24977
/* confdefs.h.  */
 
24978
_ACEOF
 
24979
cat confdefs.h >>conftest.$ac_ext
 
24980
cat >>conftest.$ac_ext <<_ACEOF
 
24981
/* end confdefs.h.  */
 
24982
#include <libintl.h>
 
24983
$gt_revision_test_code
 
24984
extern int _nl_msg_cat_cntr;
 
24985
extern
 
24986
#ifdef __cplusplus
 
24987
"C"
 
24988
#endif
 
24989
const char *_nl_expand_alias (const char *);
 
24990
int
 
24991
main ()
 
24992
{
 
24993
bindtextdomain ("", "");
 
24994
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
24995
  ;
 
24996
  return 0;
 
24997
}
 
24998
_ACEOF
 
24999
rm -f conftest.$ac_objext conftest$ac_exeext
 
25000
if { (ac_try="$ac_link"
 
25001
case "(($ac_try" in
 
25002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25003
  *) ac_try_echo=$ac_try;;
 
25004
esac
 
25005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25006
$as_echo "$ac_try_echo") >&5
 
25007
  (eval "$ac_link") 2>conftest.er1
 
25008
  ac_status=$?
 
25009
  grep -v '^ *+' conftest.er1 >conftest.err
 
25010
  rm -f conftest.er1
 
25011
  cat conftest.err >&5
 
25012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25013
  (exit $ac_status); } && {
 
25014
         test -z "$ac_c_werror_flag" ||
 
25015
         test ! -s conftest.err
 
25016
       } && test -s conftest$ac_exeext && {
 
25017
         test "$cross_compiling" = yes ||
 
25018
         $as_test_x conftest$ac_exeext
 
25019
       }; then
 
25020
  LIBINTL="$LIBINTL $LIBICONV"
 
25021
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
25022
                eval "$gt_func_gnugettext_libintl=yes"
 
25023
 
 
25024
else
 
25025
  $as_echo "$as_me: failed program was:" >&5
 
25026
sed 's/^/| /' conftest.$ac_ext >&5
 
25027
 
 
25028
 
 
25029
fi
 
25030
 
 
25031
rm -rf conftest.dSYM
 
25032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25033
      conftest$ac_exeext conftest.$ac_ext
 
25034
            fi
 
25035
            CPPFLAGS="$gt_save_CPPFLAGS"
 
25036
            LIBS="$gt_save_LIBS"
 
25037
fi
 
25038
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
 
25039
                 $as_echo "$as_val"'`
 
25040
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25041
$as_echo "$ac_res" >&6; }
 
25042
        fi
 
25043
 
 
25044
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
25045
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
25046
                && test "$PACKAGE" != gettext-runtime \
 
25047
                && test "$PACKAGE" != gettext-tools; }; then
 
25048
          gt_use_preinstalled_gnugettext=yes
 
25049
        else
 
25050
                    LIBINTL=
 
25051
          LTLIBINTL=
 
25052
          INCINTL=
 
25053
        fi
 
25054
 
 
25055
 
 
25056
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
25057
                              nls_cv_use_gnu_gettext=yes
 
25058
        fi
 
25059
      fi
 
25060
 
 
25061
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
25062
                BUILD_INCLUDED_LIBINTL=yes
 
25063
        USE_INCLUDED_LIBINTL=yes
 
25064
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
 
25065
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
 
25066
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
25067
      fi
 
25068
 
 
25069
      CATOBJEXT=
 
25070
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
25071
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
25072
                CATOBJEXT=.gmo
 
25073
      fi
 
25074
 
 
25075
 
 
25076
    if test -n "$INTL_MACOSX_LIBS"; then
 
25077
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
25078
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
25079
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
25080
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
25081
      fi
 
25082
    fi
 
25083
 
 
25084
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
25085
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
25086
 
 
25087
cat >>confdefs.h <<\_ACEOF
 
25088
#define ENABLE_NLS 1
 
25089
_ACEOF
 
25090
 
 
25091
    else
 
25092
      USE_NLS=no
 
25093
    fi
 
25094
  fi
 
25095
 
 
25096
  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
25097
$as_echo_n "checking whether to use NLS... " >&6; }
 
25098
  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
25099
$as_echo "$USE_NLS" >&6; }
 
25100
  if test "$USE_NLS" = "yes"; then
 
25101
    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
25102
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
25103
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
25104
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
25105
        gt_source="external libintl"
 
25106
      else
 
25107
        gt_source="libc"
 
25108
      fi
 
25109
    else
 
25110
      gt_source="included intl directory"
 
25111
    fi
 
25112
    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
 
25113
$as_echo "$gt_source" >&6; }
 
25114
  fi
 
25115
 
 
25116
  if test "$USE_NLS" = "yes"; then
 
25117
 
 
25118
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
25119
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
25120
        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
25121
$as_echo_n "checking how to link with libintl... " >&6; }
 
25122
        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
25123
$as_echo "$LIBINTL" >&6; }
 
25124
 
 
25125
  for element in $INCINTL; do
 
25126
    haveit=
 
25127
    for x in $CPPFLAGS; do
 
25128
 
 
25129
  acl_save_prefix="$prefix"
 
25130
  prefix="$acl_final_prefix"
 
25131
  acl_save_exec_prefix="$exec_prefix"
 
25132
  exec_prefix="$acl_final_exec_prefix"
 
25133
  eval x=\"$x\"
 
25134
  exec_prefix="$acl_save_exec_prefix"
 
25135
  prefix="$acl_save_prefix"
 
25136
 
 
25137
      if test "X$x" = "X$element"; then
 
25138
        haveit=yes
 
25139
        break
 
25140
      fi
 
25141
    done
 
25142
    if test -z "$haveit"; then
 
25143
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
25144
    fi
 
25145
  done
 
25146
 
 
25147
      fi
 
25148
 
 
25149
 
 
25150
cat >>confdefs.h <<\_ACEOF
 
25151
#define HAVE_GETTEXT 1
 
25152
_ACEOF
 
25153
 
 
25154
 
 
25155
cat >>confdefs.h <<\_ACEOF
 
25156
#define HAVE_DCGETTEXT 1
 
25157
_ACEOF
 
25158
 
 
25159
    fi
 
25160
 
 
25161
        POSUB=po
 
25162
  fi
 
25163
 
 
25164
 
 
25165
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
25166
      BUILD_INCLUDED_LIBINTL=yes
 
25167
    fi
 
25168
 
 
25169
 
 
25170
 
 
25171
 
 
25172
 
 
25173
        nls_cv_header_intl=
 
25174
    nls_cv_header_libgt=
 
25175
 
 
25176
        DATADIRNAME=share
 
25177
 
 
25178
 
 
25179
        INSTOBJEXT=.mo
 
25180
 
 
25181
 
 
25182
        GENCAT=gencat
 
25183
 
 
25184
 
 
25185
        INTLOBJS=
 
25186
    if test "$USE_INCLUDED_LIBINTL" = yes; then
 
25187
      INTLOBJS="\$(GETTOBJS)"
 
25188
    fi
 
25189
 
 
25190
 
 
25191
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
25192
 
 
25193
 
 
25194
 
 
25195
    INTLLIBS="$LIBINTL"
 
25196
 
 
25197
 
 
25198
 
 
25199
 
 
25200
 
 
25201
 
17820
25202
 
17821
25203
 
17822
25204
case $TERM in
18562
25944
#endif
18563
25945
 
18564
25946
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18565
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
25947
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
18566
25948
#  undef isnan
18567
25949
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18568
25950
#endif
18569
25951
 
18570
25952
/* Digital UNIX */
18571
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
25953
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
18572
25954
#  define HAVE_ISINF 1
18573
25955
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18574
25956
#endif
18589
25971
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
18590
25972
#endif
18591
25973
 
 
25974
#if HAVE_MATH_H
 
25975
#include <math.h>
 
25976
#endif
 
25977
 
18592
25978
#include <stdio.h>
18593
25979
int main(void){
18594
25980
    double rrdnan,rrdinf,rrdc,rrdzero;
18695
26081
#endif
18696
26082
 
18697
26083
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18698
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26084
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
18699
26085
#  undef isnan
18700
26086
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18701
26087
#endif
18702
26088
 
18703
26089
/* Digital UNIX */
18704
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26090
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
18705
26091
#  define HAVE_ISINF 1
18706
26092
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18707
26093
#endif
18722
26108
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
18723
26109
#endif
18724
26110
 
 
26111
#if HAVE_MATH_H
 
26112
#include <math.h>
 
26113
#endif
 
26114
 
18725
26115
#include <stdio.h>
18726
26116
int main(void){
18727
26117
    double rrdnan,rrdinf,rrdc,rrdzero;
18828
26218
#endif
18829
26219
 
18830
26220
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18831
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26221
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
18832
26222
#  undef isnan
18833
26223
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18834
26224
#endif
18835
26225
 
18836
26226
/* Digital UNIX */
18837
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26227
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
18838
26228
#  define HAVE_ISINF 1
18839
26229
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18840
26230
#endif
18855
26245
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
18856
26246
#endif
18857
26247
 
 
26248
#if HAVE_MATH_H
 
26249
#include <math.h>
 
26250
#endif
 
26251
 
18858
26252
#include <stdio.h>
18859
26253
int main(void){
18860
26254
    double rrdnan,rrdinf,rrdc,rrdzero;
18961
26355
#endif
18962
26356
 
18963
26357
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
18964
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26358
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
18965
26359
#  undef isnan
18966
26360
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
18967
26361
#endif
18968
26362
 
18969
26363
/* Digital UNIX */
18970
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26364
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
18971
26365
#  define HAVE_ISINF 1
18972
26366
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
18973
26367
#endif
18988
26382
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
18989
26383
#endif
18990
26384
 
 
26385
#if HAVE_MATH_H
 
26386
#include <math.h>
 
26387
#endif
 
26388
 
18991
26389
#include <stdio.h>
18992
26390
int main(void){
18993
26391
    double rrdnan,rrdinf,rrdc,rrdzero;
19094
26492
#endif
19095
26493
 
19096
26494
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19097
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26495
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19098
26496
#  undef isnan
19099
26497
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19100
26498
#endif
19101
26499
 
19102
26500
/* Digital UNIX */
19103
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26501
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19104
26502
#  define HAVE_ISINF 1
19105
26503
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19106
26504
#endif
19121
26519
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19122
26520
#endif
19123
26521
 
 
26522
#if HAVE_MATH_H
 
26523
#include <math.h>
 
26524
#endif
 
26525
 
19124
26526
#include <stdio.h>
19125
26527
int main(void){
19126
26528
    double rrdnan,rrdinf,rrdc,rrdzero;
19227
26629
#endif
19228
26630
 
19229
26631
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19230
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26632
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19231
26633
#  undef isnan
19232
26634
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19233
26635
#endif
19234
26636
 
19235
26637
/* Digital UNIX */
19236
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26638
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19237
26639
#  define HAVE_ISINF 1
19238
26640
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19239
26641
#endif
19254
26656
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19255
26657
#endif
19256
26658
 
 
26659
#if HAVE_MATH_H
 
26660
#include <math.h>
 
26661
#endif
 
26662
 
19257
26663
#include <stdio.h>
19258
26664
int main(void){
19259
26665
    double rrdnan,rrdinf,rrdc,rrdzero;
19360
26766
#endif
19361
26767
 
19362
26768
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19363
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26769
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19364
26770
#  undef isnan
19365
26771
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19366
26772
#endif
19367
26773
 
19368
26774
/* Digital UNIX */
19369
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26775
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19370
26776
#  define HAVE_ISINF 1
19371
26777
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19372
26778
#endif
19387
26793
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19388
26794
#endif
19389
26795
 
 
26796
#if HAVE_MATH_H
 
26797
#include <math.h>
 
26798
#endif
 
26799
 
19390
26800
#include <stdio.h>
19391
26801
int main(void){
19392
26802
    double rrdnan,rrdinf,rrdc,rrdzero;
19493
26903
#endif
19494
26904
 
19495
26905
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19496
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
26906
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19497
26907
#  undef isnan
19498
26908
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19499
26909
#endif
19500
26910
 
19501
26911
/* Digital UNIX */
19502
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
26912
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19503
26913
#  define HAVE_ISINF 1
19504
26914
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19505
26915
#endif
19520
26930
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19521
26931
#endif
19522
26932
 
 
26933
#if HAVE_MATH_H
 
26934
#include <math.h>
 
26935
#endif
 
26936
 
19523
26937
#include <stdio.h>
19524
26938
int main(void){
19525
26939
    double rrdnan,rrdinf,rrdc,rrdzero;
19626
27040
#endif
19627
27041
 
19628
27042
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19629
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
27043
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19630
27044
#  undef isnan
19631
27045
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19632
27046
#endif
19633
27047
 
19634
27048
/* Digital UNIX */
19635
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
27049
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19636
27050
#  define HAVE_ISINF 1
19637
27051
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19638
27052
#endif
19653
27067
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19654
27068
#endif
19655
27069
 
 
27070
#if HAVE_MATH_H
 
27071
#include <math.h>
 
27072
#endif
 
27073
 
19656
27074
#include <stdio.h>
19657
27075
int main(void){
19658
27076
    double rrdnan,rrdinf,rrdc,rrdzero;
19762
27180
#endif
19763
27181
 
19764
27182
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
19765
 
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
 
27183
#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
19766
27184
#  undef isnan
19767
27185
#  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
19768
27186
#endif
19769
27187
 
19770
27188
/* Digital UNIX */
19771
 
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
 
27189
#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
19772
27190
#  define HAVE_ISINF 1
19773
27191
#  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
19774
27192
#endif
19789
27207
#  define isinf(a) (fpclassify(a) == FP_INFINITE)
19790
27208
#endif
19791
27209
 
 
27210
#if HAVE_MATH_H
 
27211
#include <math.h>
 
27212
#endif
 
27213
 
19792
27214
#include <stdio.h>
19793
27215
int main(void){
19794
27216
    double rrdnan,rrdinf,rrdc,rrdzero;
19955
27377
#include <sys/mman.h>
19956
27378
#include <stdlib.h>
19957
27379
#include <utime.h>
 
27380
#include <signal.h>
 
27381
void timeout (int i) { exit (1); }
19958
27382
int main(void){
19959
27383
        int fd;
19960
27384
        struct stat stbuf;
19962
27386
        int res;
19963
27387
        char temp[] = "mmaptestXXXXXX";
19964
27388
        struct utimbuf newtime;
19965
 
 
19966
27389
        time_t create_ts;
19967
27390
        fd = mkstemp(temp);
19968
27391
        if (fd == -1){
19991
27414
           perror("close");
19992
27415
           goto bad_exit;
19993
27416
        }
 
27417
        /* there were reports of sync hanging
 
27418
           so we better set an alarm */
 
27419
        signal(SIGALRM,&timeout);
 
27420
        alarm(5);
19994
27421
        /* The ASYNC means that we schedule the msync and return immediately.
19995
27422
           Since we want to see if the modification time is updated upon
19996
27423
           msync(), we have to make sure that our asynchronous request
20074
27501
 
20075
27502
 
20076
27503
 
 
27504
for ac_func in _NL_TIME_WEEK_1STDAY
 
27505
do
 
27506
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27507
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27508
$as_echo_n "checking for $ac_func... " >&6; }
 
27509
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
27510
  $as_echo_n "(cached) " >&6
 
27511
else
 
27512
  cat >conftest.$ac_ext <<_ACEOF
 
27513
/* confdefs.h.  */
 
27514
_ACEOF
 
27515
cat confdefs.h >>conftest.$ac_ext
 
27516
cat >>conftest.$ac_ext <<_ACEOF
 
27517
/* end confdefs.h.  */
 
27518
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27519
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27520
#define $ac_func innocuous_$ac_func
 
27521
 
 
27522
/* System header to define __stub macros and hopefully few prototypes,
 
27523
    which can conflict with char $ac_func (); below.
 
27524
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27525
    <limits.h> exists even on freestanding compilers.  */
 
27526
 
 
27527
#ifdef __STDC__
 
27528
# include <limits.h>
 
27529
#else
 
27530
# include <assert.h>
 
27531
#endif
 
27532
 
 
27533
#undef $ac_func
 
27534
 
 
27535
/* Override any GCC internal prototype to avoid an error.
 
27536
   Use char because int might match the return type of a GCC
 
27537
   builtin and then its argument prototype would still apply.  */
 
27538
#ifdef __cplusplus
 
27539
extern "C"
 
27540
#endif
 
27541
char $ac_func ();
 
27542
/* The GNU C library defines this for functions which it implements
 
27543
    to always fail with ENOSYS.  Some functions are actually named
 
27544
    something starting with __ and the normal name is an alias.  */
 
27545
#if defined __stub_$ac_func || defined __stub___$ac_func
 
27546
choke me
 
27547
#endif
 
27548
 
 
27549
int
 
27550
main ()
 
27551
{
 
27552
return $ac_func ();
 
27553
  ;
 
27554
  return 0;
 
27555
}
 
27556
_ACEOF
 
27557
rm -f conftest.$ac_objext conftest$ac_exeext
 
27558
if { (ac_try="$ac_link"
 
27559
case "(($ac_try" in
 
27560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27561
  *) ac_try_echo=$ac_try;;
 
27562
esac
 
27563
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27564
$as_echo "$ac_try_echo") >&5
 
27565
  (eval "$ac_link") 2>conftest.er1
 
27566
  ac_status=$?
 
27567
  grep -v '^ *+' conftest.er1 >conftest.err
 
27568
  rm -f conftest.er1
 
27569
  cat conftest.err >&5
 
27570
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27571
  (exit $ac_status); } && {
 
27572
         test -z "$ac_c_werror_flag" ||
 
27573
         test ! -s conftest.err
 
27574
       } && test -s conftest$ac_exeext && {
 
27575
         test "$cross_compiling" = yes ||
 
27576
         $as_test_x conftest$ac_exeext
 
27577
       }; then
 
27578
  eval "$as_ac_var=yes"
 
27579
else
 
27580
  $as_echo "$as_me: failed program was:" >&5
 
27581
sed 's/^/| /' conftest.$ac_ext >&5
 
27582
 
 
27583
        eval "$as_ac_var=no"
 
27584
fi
 
27585
 
 
27586
rm -rf conftest.dSYM
 
27587
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27588
      conftest$ac_exeext conftest.$ac_ext
 
27589
fi
 
27590
ac_res=`eval 'as_val=${'$as_ac_var'}
 
27591
                 $as_echo "$as_val"'`
 
27592
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
27593
$as_echo "$ac_res" >&6; }
 
27594
as_val=`eval 'as_val=${'$as_ac_var'}
 
27595
                 $as_echo "$as_val"'`
 
27596
   if test "x$as_val" = x""yes; then
 
27597
  cat >>confdefs.h <<_ACEOF
 
27598
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27599
_ACEOF
 
27600
 
 
27601
else
 
27602
  { $as_echo "$as_me:$LINENO: checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h" >&5
 
27603
$as_echo_n "checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... " >&6; }
 
27604
    cat >conftest.$ac_ext <<_ACEOF
 
27605
/* confdefs.h.  */
 
27606
_ACEOF
 
27607
cat confdefs.h >>conftest.$ac_ext
 
27608
cat >>conftest.$ac_ext <<_ACEOF
 
27609
/* end confdefs.h.  */
 
27610
#include <langinfo.h>
 
27611
int
 
27612
main ()
 
27613
{
 
27614
nl_langinfo(_NL_TIME_WEEK_1STDAY)
 
27615
  ;
 
27616
  return 0;
 
27617
}
 
27618
_ACEOF
 
27619
rm -f conftest.$ac_objext conftest$ac_exeext
 
27620
if { (ac_try="$ac_link"
 
27621
case "(($ac_try" in
 
27622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27623
  *) ac_try_echo=$ac_try;;
 
27624
esac
 
27625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27626
$as_echo "$ac_try_echo") >&5
 
27627
  (eval "$ac_link") 2>conftest.er1
 
27628
  ac_status=$?
 
27629
  grep -v '^ *+' conftest.er1 >conftest.err
 
27630
  rm -f conftest.er1
 
27631
  cat conftest.err >&5
 
27632
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27633
  (exit $ac_status); } && {
 
27634
         test -z "$ac_c_werror_flag" ||
 
27635
         test ! -s conftest.err
 
27636
       } && test -s conftest$ac_exeext && {
 
27637
         test "$cross_compiling" = yes ||
 
27638
         $as_test_x conftest$ac_exeext
 
27639
       }; then
 
27640
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
27641
$as_echo "yes" >&6; }
 
27642
      cat >>confdefs.h <<\_ACEOF
 
27643
#define HAVE__NL_TIME_WEEK_1STDAY 1
 
27644
_ACEOF
 
27645
 
 
27646
else
 
27647
  $as_echo "$as_me: failed program was:" >&5
 
27648
sed 's/^/| /' conftest.$ac_ext >&5
 
27649
 
 
27650
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
27651
$as_echo "no" >&6; }
 
27652
fi
 
27653
 
 
27654
rm -rf conftest.dSYM
 
27655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27656
      conftest$ac_exeext conftest.$ac_ext
 
27657
fi
 
27658
done
 
27659
 
 
27660
 
 
27661
 
20077
27662
 
20078
27663
{ $as_echo "$as_me:$LINENO: checking for opterr" >&5
20079
27664
$as_echo_n "checking for opterr... " >&6; }
20842
28427
        case "${host_cpu}-${host_os}" in
20843
28428
            *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
20844
28429
            *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
20845
 
            *-linux*)
 
28430
            *-linux* | *-k*bsd*-gnu*)
20846
28431
            if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
20847
28432
                # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
20848
28433
                # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
21055
28640
rm -rf conftest.dSYM
21056
28641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21057
28642
      conftest$ac_exeext conftest.$ac_ext
 
28643
 
 
28644
 
 
28645
cat >>confdefs.h <<\_ACEOF
 
28646
#define TIME_T_IS_32BIT /**/
 
28647
_ACEOF
 
28648
 
 
28649
 
 
28650
cat >>confdefs.h <<\_ACEOF
 
28651
#define TIME_T_IS_64BIT /**/
 
28652
_ACEOF
 
28653
 
 
28654
{ $as_echo "$as_me:$LINENO: checking the type of time_t" >&5
 
28655
$as_echo_n "checking the type of time_t... " >&6; }
 
28656
if test "$cross_compiling" = yes; then
 
28657
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
28658
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
28659
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
28660
See \`config.log' for more details." >&5
 
28661
$as_echo "$as_me: error: cannot run test program while cross compiling
 
28662
See \`config.log' for more details." >&2;}
 
28663
   { (exit 1); exit 1; }; }; }
 
28664
else
 
28665
  cat >conftest.$ac_ext <<_ACEOF
 
28666
/* confdefs.h.  */
 
28667
_ACEOF
 
28668
cat confdefs.h >>conftest.$ac_ext
 
28669
cat >>conftest.$ac_ext <<_ACEOF
 
28670
/* end confdefs.h.  */
 
28671
#include <time.h>
 
28672
int
 
28673
main ()
 
28674
{
 
28675
if (sizeof(time_t) != 4) return 1;
 
28676
 
 
28677
  ;
 
28678
  return 0;
 
28679
}
 
28680
_ACEOF
 
28681
rm -f conftest$ac_exeext
 
28682
if { (ac_try="$ac_link"
 
28683
case "(($ac_try" in
 
28684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28685
  *) ac_try_echo=$ac_try;;
 
28686
esac
 
28687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28688
$as_echo "$ac_try_echo") >&5
 
28689
  (eval "$ac_link") 2>&5
 
28690
  ac_status=$?
 
28691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28692
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28693
  { (case "(($ac_try" in
 
28694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28695
  *) ac_try_echo=$ac_try;;
 
28696
esac
 
28697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28698
$as_echo "$ac_try_echo") >&5
 
28699
  (eval "$ac_try") 2>&5
 
28700
  ac_status=$?
 
28701
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28702
  (exit $ac_status); }; }; then
 
28703
   { $as_echo "$as_me:$LINENO: result: time_t is 32 bit" >&5
 
28704
$as_echo "time_t is 32 bit" >&6; }
 
28705
      cat >>confdefs.h <<\_ACEOF
 
28706
#define TIME_T_IS_32BIT 1
 
28707
_ACEOF
 
28708
 
 
28709
 
 
28710
else
 
28711
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
28712
$as_echo "$as_me: failed program was:" >&5
 
28713
sed 's/^/| /' conftest.$ac_ext >&5
 
28714
 
 
28715
( exit $ac_status )
 
28716
 if test "$cross_compiling" = yes; then
 
28717
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
28718
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
28719
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
28720
See \`config.log' for more details." >&5
 
28721
$as_echo "$as_me: error: cannot run test program while cross compiling
 
28722
See \`config.log' for more details." >&2;}
 
28723
   { (exit 1); exit 1; }; }; }
 
28724
else
 
28725
  cat >conftest.$ac_ext <<_ACEOF
 
28726
/* confdefs.h.  */
 
28727
_ACEOF
 
28728
cat confdefs.h >>conftest.$ac_ext
 
28729
cat >>conftest.$ac_ext <<_ACEOF
 
28730
/* end confdefs.h.  */
 
28731
#include <time.h>
 
28732
int
 
28733
main ()
 
28734
{
 
28735
if (sizeof(time_t) != 8) return 1;
 
28736
 
 
28737
  ;
 
28738
  return 0;
 
28739
}
 
28740
_ACEOF
 
28741
rm -f conftest$ac_exeext
 
28742
if { (ac_try="$ac_link"
 
28743
case "(($ac_try" in
 
28744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28745
  *) ac_try_echo=$ac_try;;
 
28746
esac
 
28747
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28748
$as_echo "$ac_try_echo") >&5
 
28749
  (eval "$ac_link") 2>&5
 
28750
  ac_status=$?
 
28751
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28752
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28753
  { (case "(($ac_try" in
 
28754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28755
  *) ac_try_echo=$ac_try;;
 
28756
esac
 
28757
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28758
$as_echo "$ac_try_echo") >&5
 
28759
  (eval "$ac_try") 2>&5
 
28760
  ac_status=$?
 
28761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28762
  (exit $ac_status); }; }; then
 
28763
 
 
28764
          { $as_echo "$as_me:$LINENO: result: time_t is 64 bit" >&5
 
28765
$as_echo "time_t is 64 bit" >&6; }
 
28766
          cat >>confdefs.h <<\_ACEOF
 
28767
#define TIME_T_IS_64BIT 1
 
28768
_ACEOF
 
28769
 
 
28770
 
 
28771
else
 
28772
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
28773
$as_echo "$as_me: failed program was:" >&5
 
28774
sed 's/^/| /' conftest.$ac_ext >&5
 
28775
 
 
28776
( exit $ac_status )
 
28777
{ { $as_echo "$as_me:$LINENO: error: can not figure type of time_t" >&5
 
28778
$as_echo "$as_me: error: can not figure type of time_t" >&2;}
 
28779
   { (exit 1); exit 1; }; }
 
28780
 
 
28781
fi
 
28782
rm -rf conftest.dSYM
 
28783
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28784
fi
 
28785
 
 
28786
 
 
28787
 
 
28788
 
 
28789
fi
 
28790
rm -rf conftest.dSYM
 
28791
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28792
fi
 
28793
 
 
28794
 
 
28795
 
21058
28796
ac_ext=c
21059
28797
ac_cpp='$CPP $CPPFLAGS'
21060
28798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084
28822
$as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
21085
28823
 
21086
28824
 
 
28825
# Check whether --enable-libdbi was given.
 
28826
if test "${enable_libdbi+set}" = set; then
 
28827
  enableval=$enable_libdbi; have_libdbi=no
 
28828
else
 
28829
 
 
28830
  XXX=$LIBS
 
28831
  LIBS="$LIBS -ldbi -ldl"
 
28832
  { $as_echo "$as_me:$LINENO: checking for libdbi" >&5
 
28833
$as_echo_n "checking for libdbi... " >&6; }
 
28834
  cat >conftest.$ac_ext <<_ACEOF
 
28835
/* confdefs.h.  */
 
28836
_ACEOF
 
28837
cat confdefs.h >>conftest.$ac_ext
 
28838
cat >>conftest.$ac_ext <<_ACEOF
 
28839
/* end confdefs.h.  */
 
28840
#include <dbi/dbi.h>
 
28841
int
 
28842
main ()
 
28843
{
 
28844
dbi_initialize(NULL)
 
28845
 
 
28846
  ;
 
28847
  return 0;
 
28848
}
 
28849
 
 
28850
_ACEOF
 
28851
rm -f conftest.$ac_objext conftest$ac_exeext
 
28852
if { (ac_try="$ac_link"
 
28853
case "(($ac_try" in
 
28854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28855
  *) ac_try_echo=$ac_try;;
 
28856
esac
 
28857
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28858
$as_echo "$ac_try_echo") >&5
 
28859
  (eval "$ac_link") 2>conftest.er1
 
28860
  ac_status=$?
 
28861
  grep -v '^ *+' conftest.er1 >conftest.err
 
28862
  rm -f conftest.er1
 
28863
  cat conftest.err >&5
 
28864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28865
  (exit $ac_status); } && {
 
28866
         test -z "$ac_c_werror_flag" ||
 
28867
         test ! -s conftest.err
 
28868
       } && test -s conftest$ac_exeext && {
 
28869
         test "$cross_compiling" = yes ||
 
28870
         $as_test_x conftest$ac_exeext
 
28871
       }; then
 
28872
 
 
28873
cat >>confdefs.h <<\_ACEOF
 
28874
#define HAVE_LIBDBI 1
 
28875
_ACEOF
 
28876
 
 
28877
       { $as_echo "$as_me:$LINENO: result: yes" >&5
 
28878
$as_echo "yes" >&6; }
 
28879
       have_libdbi=yes
 
28880
 
 
28881
else
 
28882
  $as_echo "$as_me: failed program was:" >&5
 
28883
sed 's/^/| /' conftest.$ac_ext >&5
 
28884
 
 
28885
        LIBS=$XXX
 
28886
       { $as_echo "$as_me:$LINENO: result: no" >&5
 
28887
$as_echo "no" >&6; }
 
28888
       have_libdbi=no
 
28889
 
 
28890
 
 
28891
fi
 
28892
 
 
28893
rm -rf conftest.dSYM
 
28894
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
28895
      conftest$ac_exeext conftest.$ac_ext
 
28896
 
 
28897
fi
 
28898
 
 
28899
 if test $have_libdbi != no; then
 
28900
  BUILD_LIBDBI_TRUE=
 
28901
  BUILD_LIBDBI_FALSE='#'
 
28902
else
 
28903
  BUILD_LIBDBI_TRUE='#'
 
28904
  BUILD_LIBDBI_FALSE=
 
28905
fi
 
28906
 
21087
28907
 
21088
28908
 if test $enable_rrdcgi != no; then
21089
28909
  BUILD_RRDCGI_TRUE=
23287
31107
 if test "x""" != "x"; then
23288
31108
   CPPFLAGS="$CPPFLAGS -I"""
23289
31109
 fi
 
31110
  { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
 
31111
$as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
 
31112
if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
 
31113
  $as_echo_n "(cached) " >&6
 
31114
else
 
31115
  ac_check_lib_save_LIBS=$LIBS
 
31116
LIBS="-lglib-2.0  $LIBS"
 
31117
cat >conftest.$ac_ext <<_ACEOF
 
31118
/* confdefs.h.  */
 
31119
_ACEOF
 
31120
cat confdefs.h >>conftest.$ac_ext
 
31121
cat >>conftest.$ac_ext <<_ACEOF
 
31122
/* end confdefs.h.  */
 
31123
 
 
31124
/* Override any GCC internal prototype to avoid an error.
 
31125
   Use char because int might match the return type of a GCC
 
31126
   builtin and then its argument prototype would still apply.  */
 
31127
#ifdef __cplusplus
 
31128
extern "C"
 
31129
#endif
 
31130
char glib_check_version ();
 
31131
int
 
31132
main ()
 
31133
{
 
31134
return glib_check_version ();
 
31135
  ;
 
31136
  return 0;
 
31137
}
 
31138
_ACEOF
 
31139
rm -f conftest.$ac_objext conftest$ac_exeext
 
31140
if { (ac_try="$ac_link"
 
31141
case "(($ac_try" in
 
31142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31143
  *) ac_try_echo=$ac_try;;
 
31144
esac
 
31145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31146
$as_echo "$ac_try_echo") >&5
 
31147
  (eval "$ac_link") 2>conftest.er1
 
31148
  ac_status=$?
 
31149
  grep -v '^ *+' conftest.er1 >conftest.err
 
31150
  rm -f conftest.er1
 
31151
  cat conftest.err >&5
 
31152
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31153
  (exit $ac_status); } && {
 
31154
         test -z "$ac_c_werror_flag" ||
 
31155
         test ! -s conftest.err
 
31156
       } && test -s conftest$ac_exeext && {
 
31157
         test "$cross_compiling" = yes ||
 
31158
         $as_test_x conftest$ac_exeext
 
31159
       }; then
 
31160
  ac_cv_lib_glib_2_0_glib_check_version=yes
 
31161
else
 
31162
  $as_echo "$as_me: failed program was:" >&5
 
31163
sed 's/^/| /' conftest.$ac_ext >&5
 
31164
 
 
31165
        ac_cv_lib_glib_2_0_glib_check_version=no
 
31166
fi
 
31167
 
 
31168
rm -rf conftest.dSYM
 
31169
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
31170
      conftest$ac_exeext conftest.$ac_ext
 
31171
LIBS=$ac_check_lib_save_LIBS
 
31172
fi
 
31173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
 
31174
$as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
 
31175
if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
 
31176
 
 
31177
    if test "${ac_cv_header_glib_h+set}" = set; then
 
31178
  { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
 
31179
$as_echo_n "checking for glib.h... " >&6; }
 
31180
if test "${ac_cv_header_glib_h+set}" = set; then
 
31181
  $as_echo_n "(cached) " >&6
 
31182
fi
 
31183
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
31184
$as_echo "$ac_cv_header_glib_h" >&6; }
 
31185
else
 
31186
  # Is the header compilable?
 
31187
{ $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
 
31188
$as_echo_n "checking glib.h usability... " >&6; }
 
31189
cat >conftest.$ac_ext <<_ACEOF
 
31190
/* confdefs.h.  */
 
31191
_ACEOF
 
31192
cat confdefs.h >>conftest.$ac_ext
 
31193
cat >>conftest.$ac_ext <<_ACEOF
 
31194
/* end confdefs.h.  */
 
31195
$ac_includes_default
 
31196
#include <glib.h>
 
31197
_ACEOF
 
31198
rm -f conftest.$ac_objext
 
31199
if { (ac_try="$ac_compile"
 
31200
case "(($ac_try" in
 
31201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31202
  *) ac_try_echo=$ac_try;;
 
31203
esac
 
31204
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31205
$as_echo "$ac_try_echo") >&5
 
31206
  (eval "$ac_compile") 2>conftest.er1
 
31207
  ac_status=$?
 
31208
  grep -v '^ *+' conftest.er1 >conftest.err
 
31209
  rm -f conftest.er1
 
31210
  cat conftest.err >&5
 
31211
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31212
  (exit $ac_status); } && {
 
31213
         test -z "$ac_c_werror_flag" ||
 
31214
         test ! -s conftest.err
 
31215
       } && test -s conftest.$ac_objext; then
 
31216
  ac_header_compiler=yes
 
31217
else
 
31218
  $as_echo "$as_me: failed program was:" >&5
 
31219
sed 's/^/| /' conftest.$ac_ext >&5
 
31220
 
 
31221
        ac_header_compiler=no
 
31222
fi
 
31223
 
 
31224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31225
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31226
$as_echo "$ac_header_compiler" >&6; }
 
31227
 
 
31228
# Is the header present?
 
31229
{ $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
 
31230
$as_echo_n "checking glib.h presence... " >&6; }
 
31231
cat >conftest.$ac_ext <<_ACEOF
 
31232
/* confdefs.h.  */
 
31233
_ACEOF
 
31234
cat confdefs.h >>conftest.$ac_ext
 
31235
cat >>conftest.$ac_ext <<_ACEOF
 
31236
/* end confdefs.h.  */
 
31237
#include <glib.h>
 
31238
_ACEOF
 
31239
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
31240
case "(($ac_try" in
 
31241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31242
  *) ac_try_echo=$ac_try;;
 
31243
esac
 
31244
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31245
$as_echo "$ac_try_echo") >&5
 
31246
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
31247
  ac_status=$?
 
31248
  grep -v '^ *+' conftest.er1 >conftest.err
 
31249
  rm -f conftest.er1
 
31250
  cat conftest.err >&5
 
31251
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31252
  (exit $ac_status); } >/dev/null && {
 
31253
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
31254
         test ! -s conftest.err
 
31255
       }; then
 
31256
  ac_header_preproc=yes
 
31257
else
 
31258
  $as_echo "$as_me: failed program was:" >&5
 
31259
sed 's/^/| /' conftest.$ac_ext >&5
 
31260
 
 
31261
  ac_header_preproc=no
 
31262
fi
 
31263
 
 
31264
rm -f conftest.err conftest.$ac_ext
 
31265
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31266
$as_echo "$ac_header_preproc" >&6; }
 
31267
 
 
31268
# So?  What about this header?
 
31269
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
31270
  yes:no: )
 
31271
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
31272
$as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31273
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
 
31274
$as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
 
31275
    ac_header_preproc=yes
 
31276
    ;;
 
31277
  no:yes:* )
 
31278
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
 
31279
$as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
 
31280
    { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
 
31281
$as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
 
31282
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
 
31283
$as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
 
31284
    { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
31285
$as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31286
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
 
31287
$as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
 
31288
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
 
31289
$as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
 
31290
 
 
31291
    ;;
 
31292
esac
 
31293
{ $as_echo "$as_me:$LINENO: checking for glib.h" >&5
 
31294
$as_echo_n "checking for glib.h... " >&6; }
 
31295
if test "${ac_cv_header_glib_h+set}" = set; then
 
31296
  $as_echo_n "(cached) " >&6
 
31297
else
 
31298
  ac_cv_header_glib_h=$ac_header_preproc
 
31299
fi
 
31300
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
31301
$as_echo "$ac_cv_header_glib_h" >&6; }
 
31302
 
 
31303
fi
 
31304
if test "x$ac_cv_header_glib_h" = x""yes; then
 
31305
  LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
 
31306
fi
 
31307
 
 
31308
 
 
31309
fi
 
31310
 
 
31311
 if test $EX_CHECK_STATE = NO; then
 
31312
        for ac_prog in pkg-config
 
31313
do
 
31314
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
31315
set dummy $ac_prog; ac_word=$2
 
31316
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31317
$as_echo_n "checking for $ac_word... " >&6; }
 
31318
if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
 
31319
  $as_echo_n "(cached) " >&6
 
31320
else
 
31321
  if test -n "$PKGCONFIG"; then
 
31322
  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
 
31323
else
 
31324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
31325
for as_dir in $PATH
 
31326
do
 
31327
  IFS=$as_save_IFS
 
31328
  test -z "$as_dir" && as_dir=.
 
31329
  for ac_exec_ext in '' $ac_executable_extensions; do
 
31330
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
31331
    ac_cv_prog_PKGCONFIG="$ac_prog"
 
31332
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31333
    break 2
 
31334
  fi
 
31335
done
 
31336
done
 
31337
IFS=$as_save_IFS
 
31338
 
 
31339
fi
 
31340
fi
 
31341
PKGCONFIG=$ac_cv_prog_PKGCONFIG
 
31342
if test -n "$PKGCONFIG"; then
 
31343
  { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
31344
$as_echo "$PKGCONFIG" >&6; }
 
31345
else
 
31346
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31347
$as_echo "no" >&6; }
 
31348
fi
 
31349
 
 
31350
 
 
31351
  test -n "$PKGCONFIG" && break
 
31352
done
 
31353
test -n "$PKGCONFIG" || PKGCONFIG="no"
 
31354
 
 
31355
    if test "$PKGCONFIG" != "no"; then
 
31356
          if $PKGCONFIG --exists glib-2.0; then
 
31357
             CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
 
31358
             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
 
31359
             LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
 
31360
             LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
 
31361
                             unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
 
31362
             { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
 
31363
$as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
 
31364
if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
 
31365
  $as_echo_n "(cached) " >&6
 
31366
else
 
31367
  ac_check_lib_save_LIBS=$LIBS
 
31368
LIBS="-lglib-2.0  $LIBS"
 
31369
cat >conftest.$ac_ext <<_ACEOF
 
31370
/* confdefs.h.  */
 
31371
_ACEOF
 
31372
cat confdefs.h >>conftest.$ac_ext
 
31373
cat >>conftest.$ac_ext <<_ACEOF
 
31374
/* end confdefs.h.  */
 
31375
 
 
31376
/* Override any GCC internal prototype to avoid an error.
 
31377
   Use char because int might match the return type of a GCC
 
31378
   builtin and then its argument prototype would still apply.  */
 
31379
#ifdef __cplusplus
 
31380
extern "C"
 
31381
#endif
 
31382
char glib_check_version ();
 
31383
int
 
31384
main ()
 
31385
{
 
31386
return glib_check_version ();
 
31387
  ;
 
31388
  return 0;
 
31389
}
 
31390
_ACEOF
 
31391
rm -f conftest.$ac_objext conftest$ac_exeext
 
31392
if { (ac_try="$ac_link"
 
31393
case "(($ac_try" in
 
31394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31395
  *) ac_try_echo=$ac_try;;
 
31396
esac
 
31397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31398
$as_echo "$ac_try_echo") >&5
 
31399
  (eval "$ac_link") 2>conftest.er1
 
31400
  ac_status=$?
 
31401
  grep -v '^ *+' conftest.er1 >conftest.err
 
31402
  rm -f conftest.er1
 
31403
  cat conftest.err >&5
 
31404
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31405
  (exit $ac_status); } && {
 
31406
         test -z "$ac_c_werror_flag" ||
 
31407
         test ! -s conftest.err
 
31408
       } && test -s conftest$ac_exeext && {
 
31409
         test "$cross_compiling" = yes ||
 
31410
         $as_test_x conftest$ac_exeext
 
31411
       }; then
 
31412
  ac_cv_lib_glib_2_0_glib_check_version=yes
 
31413
else
 
31414
  $as_echo "$as_me: failed program was:" >&5
 
31415
sed 's/^/| /' conftest.$ac_ext >&5
 
31416
 
 
31417
        ac_cv_lib_glib_2_0_glib_check_version=no
 
31418
fi
 
31419
 
 
31420
rm -rf conftest.dSYM
 
31421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
31422
      conftest$ac_exeext conftest.$ac_ext
 
31423
LIBS=$ac_check_lib_save_LIBS
 
31424
fi
 
31425
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
 
31426
$as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
 
31427
if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
 
31428
 
 
31429
                 unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
 
31430
                 if test "${ac_cv_header_glib_h+set}" = set; then
 
31431
  { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
 
31432
$as_echo_n "checking for glib.h... " >&6; }
 
31433
if test "${ac_cv_header_glib_h+set}" = set; then
 
31434
  $as_echo_n "(cached) " >&6
 
31435
fi
 
31436
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
31437
$as_echo "$ac_cv_header_glib_h" >&6; }
 
31438
else
 
31439
  # Is the header compilable?
 
31440
{ $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
 
31441
$as_echo_n "checking glib.h usability... " >&6; }
 
31442
cat >conftest.$ac_ext <<_ACEOF
 
31443
/* confdefs.h.  */
 
31444
_ACEOF
 
31445
cat confdefs.h >>conftest.$ac_ext
 
31446
cat >>conftest.$ac_ext <<_ACEOF
 
31447
/* end confdefs.h.  */
 
31448
$ac_includes_default
 
31449
#include <glib.h>
 
31450
_ACEOF
 
31451
rm -f conftest.$ac_objext
 
31452
if { (ac_try="$ac_compile"
 
31453
case "(($ac_try" in
 
31454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31455
  *) ac_try_echo=$ac_try;;
 
31456
esac
 
31457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31458
$as_echo "$ac_try_echo") >&5
 
31459
  (eval "$ac_compile") 2>conftest.er1
 
31460
  ac_status=$?
 
31461
  grep -v '^ *+' conftest.er1 >conftest.err
 
31462
  rm -f conftest.er1
 
31463
  cat conftest.err >&5
 
31464
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31465
  (exit $ac_status); } && {
 
31466
         test -z "$ac_c_werror_flag" ||
 
31467
         test ! -s conftest.err
 
31468
       } && test -s conftest.$ac_objext; then
 
31469
  ac_header_compiler=yes
 
31470
else
 
31471
  $as_echo "$as_me: failed program was:" >&5
 
31472
sed 's/^/| /' conftest.$ac_ext >&5
 
31473
 
 
31474
        ac_header_compiler=no
 
31475
fi
 
31476
 
 
31477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31478
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31479
$as_echo "$ac_header_compiler" >&6; }
 
31480
 
 
31481
# Is the header present?
 
31482
{ $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
 
31483
$as_echo_n "checking glib.h presence... " >&6; }
 
31484
cat >conftest.$ac_ext <<_ACEOF
 
31485
/* confdefs.h.  */
 
31486
_ACEOF
 
31487
cat confdefs.h >>conftest.$ac_ext
 
31488
cat >>conftest.$ac_ext <<_ACEOF
 
31489
/* end confdefs.h.  */
 
31490
#include <glib.h>
 
31491
_ACEOF
 
31492
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
31493
case "(($ac_try" in
 
31494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31495
  *) ac_try_echo=$ac_try;;
 
31496
esac
 
31497
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31498
$as_echo "$ac_try_echo") >&5
 
31499
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
31500
  ac_status=$?
 
31501
  grep -v '^ *+' conftest.er1 >conftest.err
 
31502
  rm -f conftest.er1
 
31503
  cat conftest.err >&5
 
31504
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31505
  (exit $ac_status); } >/dev/null && {
 
31506
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
31507
         test ! -s conftest.err
 
31508
       }; then
 
31509
  ac_header_preproc=yes
 
31510
else
 
31511
  $as_echo "$as_me: failed program was:" >&5
 
31512
sed 's/^/| /' conftest.$ac_ext >&5
 
31513
 
 
31514
  ac_header_preproc=no
 
31515
fi
 
31516
 
 
31517
rm -f conftest.err conftest.$ac_ext
 
31518
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31519
$as_echo "$ac_header_preproc" >&6; }
 
31520
 
 
31521
# So?  What about this header?
 
31522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
31523
  yes:no: )
 
31524
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
31525
$as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31526
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
 
31527
$as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
 
31528
    ac_header_preproc=yes
 
31529
    ;;
 
31530
  no:yes:* )
 
31531
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
 
31532
$as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
 
31533
    { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
 
31534
$as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
 
31535
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
 
31536
$as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
 
31537
    { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
31538
$as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31539
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
 
31540
$as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
 
31541
    { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
 
31542
$as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
 
31543
 
 
31544
    ;;
 
31545
esac
 
31546
{ $as_echo "$as_me:$LINENO: checking for glib.h" >&5
 
31547
$as_echo_n "checking for glib.h... " >&6; }
 
31548
if test "${ac_cv_header_glib_h+set}" = set; then
 
31549
  $as_echo_n "(cached) " >&6
 
31550
else
 
31551
  ac_cv_header_glib_h=$ac_header_preproc
 
31552
fi
 
31553
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
31554
$as_echo "$ac_cv_header_glib_h" >&6; }
 
31555
 
 
31556
fi
 
31557
if test "x$ac_cv_header_glib_h" = x""yes; then
 
31558
  EX_CHECK_STATE=YES
 
31559
fi
 
31560
 
 
31561
 
 
31562
 
 
31563
fi
 
31564
 
 
31565
          else
 
31566
             { $as_echo "$as_me:$LINENO: WARNING:
 
31567
----------------------------------------------------------------------------
 
31568
* I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
 
31569
  You may want to set the PKG_CONFIG_PATH variable to point to its
 
31570
  location.
 
31571
----------------------------------------------------------------------------
 
31572
                        " >&5
 
31573
$as_echo "$as_me: WARNING:
 
31574
----------------------------------------------------------------------------
 
31575
* I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
 
31576
  You may want to set the PKG_CONFIG_PATH variable to point to its
 
31577
  location.
 
31578
----------------------------------------------------------------------------
 
31579
                        " >&2;}
 
31580
           fi
 
31581
     fi
 
31582
  fi
 
31583
 
 
31584
  if test ${EX_CHECK_STATE} = NO; then
 
31585
     { $as_echo "$as_me:$LINENO: WARNING:
 
31586
----------------------------------------------------------------------------
 
31587
* I could not find a working copy of glib-2.0. Check config.log for hints on why
 
31588
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
 
31589
  so that compiler and the linker can find libglib-2.0 and its header files. If
 
31590
  you have not installed glib-2.0, you can get it either from its original home on
 
31591
 
 
31592
     ftp://ftp.gtk.org/pub/glib/2.12/
 
31593
 
 
31594
  You can find also find an archive copy on
 
31595
 
 
31596
     http://oss.oetiker.ch/rrdtool/pub/libs
 
31597
 
 
31598
  The last tested version of glib-2.0 is 2.12.12.
 
31599
 
 
31600
       LIBS=$LIBS
 
31601
   LDFLAGS=$LDFLAGS
 
31602
  CPPFLAGS=$CPPFLAGS
 
31603
 
 
31604
----------------------------------------------------------------------------
 
31605
                " >&5
 
31606
$as_echo "$as_me: WARNING:
 
31607
----------------------------------------------------------------------------
 
31608
* I could not find a working copy of glib-2.0. Check config.log for hints on why
 
31609
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
 
31610
  so that compiler and the linker can find libglib-2.0 and its header files. If
 
31611
  you have not installed glib-2.0, you can get it either from its original home on
 
31612
 
 
31613
     ftp://ftp.gtk.org/pub/glib/2.12/
 
31614
 
 
31615
  You can find also find an archive copy on
 
31616
 
 
31617
     http://oss.oetiker.ch/rrdtool/pub/libs
 
31618
 
 
31619
  The last tested version of glib-2.0 is 2.12.12.
 
31620
 
 
31621
       LIBS=$LIBS
 
31622
   LDFLAGS=$LDFLAGS
 
31623
  CPPFLAGS=$CPPFLAGS
 
31624
 
 
31625
----------------------------------------------------------------------------
 
31626
                " >&2;}
 
31627
       EX_CHECK_ALL_ERR=YES
 
31628
       LIBS="${ex_check_save_LIBS}"
 
31629
       CPPFLAGS="${ex_check_save_CPPFLAGS}"
 
31630
       LDFLAGS="${ex_check_save_LDFLAGS}"
 
31631
    fi
 
31632
    ac_ext=c
 
31633
ac_cpp='$CPP $CPPFLAGS'
 
31634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31637
 
 
31638
 
 
31639
 
 
31640
 
 
31641
 ac_ext=c
 
31642
ac_cpp='$CPP $CPPFLAGS'
 
31643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31646
 
 
31647
 EX_CHECK_STATE=NO
 
31648
 ex_check_save_LIBS=${LIBS}
 
31649
 ex_check_save_CPPFLAGS=${CPPFLAGS}
 
31650
 ex_check_save_LDFLAGS=${LDFLAGS}
 
31651
 if test "x""" != "x"; then
 
31652
   CPPFLAGS="$CPPFLAGS -I"""
 
31653
 fi
23290
31654
  { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
23291
31655
$as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
23292
31656
if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
24623
32987
$as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
24624
32988
 
24625
32989
# Options to pass when configuring perl module
24626
 
ppref=$prefix
24627
 
test "$ppref" = 'NONE' && ppref=$ac_default_prefix
 
32990
langpref=$prefix
 
32991
test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
 
32992
test "$langpref" = "NONE" && langpref=$ac_default_prefix
24628
32993
 
24629
 
PERL_MAKE_OPTIONS="PREFIX="'$(DESTDIR)'"$ppref LIB="'$(DESTDIR)'"$ppref/lib/perl/$PERL_VERSION"
 
32994
PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
24630
32995
 
24631
32996
# Check whether --enable-perl-site-install was given.
24632
32997
if test "${enable_perl_site_install+set}" = set; then
24732
33097
        fi
24733
33098
fi
24734
33099
 
24735
 
rpref=$prefix
24736
 
test "$rpref" = 'NONE' && rpref=$ac_default_prefix
24737
 
 
24738
33100
# Check whether --enable-ruby-site-install was given.
24739
33101
if test "${enable_ruby_site_install+set}" = set; then
24740
33102
  enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
24741
33103
else
24742
 
  RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$rpref/lib/ruby"
 
33104
  RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
24743
33105
fi
24744
33106
 
24745
33107
 
24755
33117
 
24756
33118
 
24757
33119
 
 
33120
# Extract the first word of "lua", so it can be a program name with args.
 
33121
set dummy lua; ac_word=$2
 
33122
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
33123
$as_echo_n "checking for $ac_word... " >&6; }
 
33124
if test "${ac_cv_path_LUA+set}" = set; then
 
33125
  $as_echo_n "(cached) " >&6
 
33126
else
 
33127
  case $LUA in
 
33128
  [\\/]* | ?:[\\/]*)
 
33129
  ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
 
33130
  ;;
 
33131
  *)
 
33132
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
33133
for as_dir in $PATH
 
33134
do
 
33135
  IFS=$as_save_IFS
 
33136
  test -z "$as_dir" && as_dir=.
 
33137
  for ac_exec_ext in '' $ac_executable_extensions; do
 
33138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
33139
    ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
 
33140
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
33141
    break 2
 
33142
  fi
 
33143
done
 
33144
done
 
33145
IFS=$as_save_IFS
 
33146
 
 
33147
  test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
 
33148
  ;;
 
33149
esac
 
33150
fi
 
33151
LUA=$ac_cv_path_LUA
 
33152
if test -n "$LUA"; then
 
33153
  { $as_echo "$as_me:$LINENO: result: $LUA" >&5
 
33154
$as_echo "$LUA" >&6; }
 
33155
else
 
33156
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
33157
$as_echo "no" >&6; }
 
33158
fi
 
33159
 
 
33160
 
 
33161
 
 
33162
# Check whether --enable-lua was given.
 
33163
if test "${enable_lua+set}" = set; then
 
33164
  enableval=$enable_lua;
 
33165
else
 
33166
  enable_lua=yes
 
33167
fi
 
33168
 
 
33169
 
 
33170
COMP_LUA=
 
33171
if test "$LUA" = "no" -o "$enable_lua" = "no"; then
 
33172
  enable_lua=no
 
33173
else
 
33174
  { $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
 
33175
$as_echo_n "checking for lua >= 5.0... " >&6; }
 
33176
  read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
 
33177
    $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
 
33178
LUA_EOF
 
33179
  if test 0$LUA_MAJOR -lt 5; then
 
33180
    { $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
 
33181
$as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
 
33182
  else
 
33183
    { $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
 
33184
$as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
 
33185
    lua_vdot=$LUA_MAJOR.$LUA_MINOR
 
33186
    lua_vndot=$LUA_MAJOR$LUA_MINOR
 
33187
    lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
 
33188
 
 
33189
for ac_header in lua$lua_vndot/lua.h
 
33190
do
 
33191
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33193
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33194
$as_echo_n "checking for $ac_header... " >&6; }
 
33195
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33196
  $as_echo_n "(cached) " >&6
 
33197
fi
 
33198
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33199
                 $as_echo "$as_val"'`
 
33200
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33201
$as_echo "$ac_res" >&6; }
 
33202
else
 
33203
  # Is the header compilable?
 
33204
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33205
$as_echo_n "checking $ac_header usability... " >&6; }
 
33206
cat >conftest.$ac_ext <<_ACEOF
 
33207
/* confdefs.h.  */
 
33208
_ACEOF
 
33209
cat confdefs.h >>conftest.$ac_ext
 
33210
cat >>conftest.$ac_ext <<_ACEOF
 
33211
/* end confdefs.h.  */
 
33212
$ac_includes_default
 
33213
#include <$ac_header>
 
33214
_ACEOF
 
33215
rm -f conftest.$ac_objext
 
33216
if { (ac_try="$ac_compile"
 
33217
case "(($ac_try" in
 
33218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33219
  *) ac_try_echo=$ac_try;;
 
33220
esac
 
33221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33222
$as_echo "$ac_try_echo") >&5
 
33223
  (eval "$ac_compile") 2>conftest.er1
 
33224
  ac_status=$?
 
33225
  grep -v '^ *+' conftest.er1 >conftest.err
 
33226
  rm -f conftest.er1
 
33227
  cat conftest.err >&5
 
33228
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33229
  (exit $ac_status); } && {
 
33230
         test -z "$ac_c_werror_flag" ||
 
33231
         test ! -s conftest.err
 
33232
       } && test -s conftest.$ac_objext; then
 
33233
  ac_header_compiler=yes
 
33234
else
 
33235
  $as_echo "$as_me: failed program was:" >&5
 
33236
sed 's/^/| /' conftest.$ac_ext >&5
 
33237
 
 
33238
        ac_header_compiler=no
 
33239
fi
 
33240
 
 
33241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33242
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33243
$as_echo "$ac_header_compiler" >&6; }
 
33244
 
 
33245
# Is the header present?
 
33246
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33247
$as_echo_n "checking $ac_header presence... " >&6; }
 
33248
cat >conftest.$ac_ext <<_ACEOF
 
33249
/* confdefs.h.  */
 
33250
_ACEOF
 
33251
cat confdefs.h >>conftest.$ac_ext
 
33252
cat >>conftest.$ac_ext <<_ACEOF
 
33253
/* end confdefs.h.  */
 
33254
#include <$ac_header>
 
33255
_ACEOF
 
33256
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33257
case "(($ac_try" in
 
33258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33259
  *) ac_try_echo=$ac_try;;
 
33260
esac
 
33261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33262
$as_echo "$ac_try_echo") >&5
 
33263
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33264
  ac_status=$?
 
33265
  grep -v '^ *+' conftest.er1 >conftest.err
 
33266
  rm -f conftest.er1
 
33267
  cat conftest.err >&5
 
33268
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33269
  (exit $ac_status); } >/dev/null && {
 
33270
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33271
         test ! -s conftest.err
 
33272
       }; then
 
33273
  ac_header_preproc=yes
 
33274
else
 
33275
  $as_echo "$as_me: failed program was:" >&5
 
33276
sed 's/^/| /' conftest.$ac_ext >&5
 
33277
 
 
33278
  ac_header_preproc=no
 
33279
fi
 
33280
 
 
33281
rm -f conftest.err conftest.$ac_ext
 
33282
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33283
$as_echo "$ac_header_preproc" >&6; }
 
33284
 
 
33285
# So?  What about this header?
 
33286
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33287
  yes:no: )
 
33288
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33289
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33290
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33291
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33292
    ac_header_preproc=yes
 
33293
    ;;
 
33294
  no:yes:* )
 
33295
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33296
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33297
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33298
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33299
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33300
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33301
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33302
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33303
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33304
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33305
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33306
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33307
 
 
33308
    ;;
 
33309
esac
 
33310
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33311
$as_echo_n "checking for $ac_header... " >&6; }
 
33312
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33313
  $as_echo_n "(cached) " >&6
 
33314
else
 
33315
  eval "$as_ac_Header=\$ac_header_preproc"
 
33316
fi
 
33317
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33318
                 $as_echo "$as_val"'`
 
33319
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33320
$as_echo "$ac_res" >&6; }
 
33321
 
 
33322
fi
 
33323
as_val=`eval 'as_val=${'$as_ac_Header'}
 
33324
                 $as_echo "$as_val"'`
 
33325
   if test "x$as_val" = x""yes; then
 
33326
  cat >>confdefs.h <<_ACEOF
 
33327
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33328
_ACEOF
 
33329
 
 
33330
for ac_header in lua$lua_vndot/lualib.h
 
33331
do
 
33332
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33333
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33334
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33335
$as_echo_n "checking for $ac_header... " >&6; }
 
33336
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33337
  $as_echo_n "(cached) " >&6
 
33338
fi
 
33339
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33340
                 $as_echo "$as_val"'`
 
33341
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33342
$as_echo "$ac_res" >&6; }
 
33343
else
 
33344
  # Is the header compilable?
 
33345
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33346
$as_echo_n "checking $ac_header usability... " >&6; }
 
33347
cat >conftest.$ac_ext <<_ACEOF
 
33348
/* confdefs.h.  */
 
33349
_ACEOF
 
33350
cat confdefs.h >>conftest.$ac_ext
 
33351
cat >>conftest.$ac_ext <<_ACEOF
 
33352
/* end confdefs.h.  */
 
33353
$ac_includes_default
 
33354
#include <$ac_header>
 
33355
_ACEOF
 
33356
rm -f conftest.$ac_objext
 
33357
if { (ac_try="$ac_compile"
 
33358
case "(($ac_try" in
 
33359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33360
  *) ac_try_echo=$ac_try;;
 
33361
esac
 
33362
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33363
$as_echo "$ac_try_echo") >&5
 
33364
  (eval "$ac_compile") 2>conftest.er1
 
33365
  ac_status=$?
 
33366
  grep -v '^ *+' conftest.er1 >conftest.err
 
33367
  rm -f conftest.er1
 
33368
  cat conftest.err >&5
 
33369
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33370
  (exit $ac_status); } && {
 
33371
         test -z "$ac_c_werror_flag" ||
 
33372
         test ! -s conftest.err
 
33373
       } && test -s conftest.$ac_objext; then
 
33374
  ac_header_compiler=yes
 
33375
else
 
33376
  $as_echo "$as_me: failed program was:" >&5
 
33377
sed 's/^/| /' conftest.$ac_ext >&5
 
33378
 
 
33379
        ac_header_compiler=no
 
33380
fi
 
33381
 
 
33382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33383
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33384
$as_echo "$ac_header_compiler" >&6; }
 
33385
 
 
33386
# Is the header present?
 
33387
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33388
$as_echo_n "checking $ac_header presence... " >&6; }
 
33389
cat >conftest.$ac_ext <<_ACEOF
 
33390
/* confdefs.h.  */
 
33391
_ACEOF
 
33392
cat confdefs.h >>conftest.$ac_ext
 
33393
cat >>conftest.$ac_ext <<_ACEOF
 
33394
/* end confdefs.h.  */
 
33395
#include <$ac_header>
 
33396
_ACEOF
 
33397
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33398
case "(($ac_try" in
 
33399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33400
  *) ac_try_echo=$ac_try;;
 
33401
esac
 
33402
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33403
$as_echo "$ac_try_echo") >&5
 
33404
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33405
  ac_status=$?
 
33406
  grep -v '^ *+' conftest.er1 >conftest.err
 
33407
  rm -f conftest.er1
 
33408
  cat conftest.err >&5
 
33409
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33410
  (exit $ac_status); } >/dev/null && {
 
33411
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33412
         test ! -s conftest.err
 
33413
       }; then
 
33414
  ac_header_preproc=yes
 
33415
else
 
33416
  $as_echo "$as_me: failed program was:" >&5
 
33417
sed 's/^/| /' conftest.$ac_ext >&5
 
33418
 
 
33419
  ac_header_preproc=no
 
33420
fi
 
33421
 
 
33422
rm -f conftest.err conftest.$ac_ext
 
33423
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33424
$as_echo "$ac_header_preproc" >&6; }
 
33425
 
 
33426
# So?  What about this header?
 
33427
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33428
  yes:no: )
 
33429
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33430
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33431
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33432
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33433
    ac_header_preproc=yes
 
33434
    ;;
 
33435
  no:yes:* )
 
33436
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33437
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33438
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33439
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33440
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33441
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33442
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33443
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33444
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33445
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33446
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33447
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33448
 
 
33449
    ;;
 
33450
esac
 
33451
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33452
$as_echo_n "checking for $ac_header... " >&6; }
 
33453
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33454
  $as_echo_n "(cached) " >&6
 
33455
else
 
33456
  eval "$as_ac_Header=\$ac_header_preproc"
 
33457
fi
 
33458
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33459
                 $as_echo "$as_val"'`
 
33460
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33461
$as_echo "$ac_res" >&6; }
 
33462
 
 
33463
fi
 
33464
as_val=`eval 'as_val=${'$as_ac_Header'}
 
33465
                 $as_echo "$as_val"'`
 
33466
   if test "x$as_val" = x""yes; then
 
33467
  cat >>confdefs.h <<_ACEOF
 
33468
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33469
_ACEOF
 
33470
 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
 
33471
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33472
  { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
 
33473
$as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
 
33474
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33475
  $as_echo_n "(cached) " >&6
 
33476
fi
 
33477
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33478
                 $as_echo "$as_val"'`
 
33479
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33480
$as_echo "$ac_res" >&6; }
 
33481
else
 
33482
  # Is the header compilable?
 
33483
{ $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
 
33484
$as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
 
33485
cat >conftest.$ac_ext <<_ACEOF
 
33486
/* confdefs.h.  */
 
33487
_ACEOF
 
33488
cat confdefs.h >>conftest.$ac_ext
 
33489
cat >>conftest.$ac_ext <<_ACEOF
 
33490
/* end confdefs.h.  */
 
33491
$ac_includes_default
 
33492
#include <lua$lua_vndot/lauxlib.h>
 
33493
_ACEOF
 
33494
rm -f conftest.$ac_objext
 
33495
if { (ac_try="$ac_compile"
 
33496
case "(($ac_try" in
 
33497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33498
  *) ac_try_echo=$ac_try;;
 
33499
esac
 
33500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33501
$as_echo "$ac_try_echo") >&5
 
33502
  (eval "$ac_compile") 2>conftest.er1
 
33503
  ac_status=$?
 
33504
  grep -v '^ *+' conftest.er1 >conftest.err
 
33505
  rm -f conftest.er1
 
33506
  cat conftest.err >&5
 
33507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33508
  (exit $ac_status); } && {
 
33509
         test -z "$ac_c_werror_flag" ||
 
33510
         test ! -s conftest.err
 
33511
       } && test -s conftest.$ac_objext; then
 
33512
  ac_header_compiler=yes
 
33513
else
 
33514
  $as_echo "$as_me: failed program was:" >&5
 
33515
sed 's/^/| /' conftest.$ac_ext >&5
 
33516
 
 
33517
        ac_header_compiler=no
 
33518
fi
 
33519
 
 
33520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33521
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33522
$as_echo "$ac_header_compiler" >&6; }
 
33523
 
 
33524
# Is the header present?
 
33525
{ $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
 
33526
$as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
 
33527
cat >conftest.$ac_ext <<_ACEOF
 
33528
/* confdefs.h.  */
 
33529
_ACEOF
 
33530
cat confdefs.h >>conftest.$ac_ext
 
33531
cat >>conftest.$ac_ext <<_ACEOF
 
33532
/* end confdefs.h.  */
 
33533
#include <lua$lua_vndot/lauxlib.h>
 
33534
_ACEOF
 
33535
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33536
case "(($ac_try" in
 
33537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33538
  *) ac_try_echo=$ac_try;;
 
33539
esac
 
33540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33541
$as_echo "$ac_try_echo") >&5
 
33542
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33543
  ac_status=$?
 
33544
  grep -v '^ *+' conftest.er1 >conftest.err
 
33545
  rm -f conftest.er1
 
33546
  cat conftest.err >&5
 
33547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33548
  (exit $ac_status); } >/dev/null && {
 
33549
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33550
         test ! -s conftest.err
 
33551
       }; then
 
33552
  ac_header_preproc=yes
 
33553
else
 
33554
  $as_echo "$as_me: failed program was:" >&5
 
33555
sed 's/^/| /' conftest.$ac_ext >&5
 
33556
 
 
33557
  ac_header_preproc=no
 
33558
fi
 
33559
 
 
33560
rm -f conftest.err conftest.$ac_ext
 
33561
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33562
$as_echo "$ac_header_preproc" >&6; }
 
33563
 
 
33564
# So?  What about this header?
 
33565
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33566
  yes:no: )
 
33567
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
33568
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33569
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
 
33570
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
 
33571
    ac_header_preproc=yes
 
33572
    ;;
 
33573
  no:yes:* )
 
33574
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
 
33575
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
 
33576
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&5
 
33577
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
 
33578
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
 
33579
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
 
33580
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
33581
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33582
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
 
33583
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
 
33584
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
 
33585
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
 
33586
 
 
33587
    ;;
 
33588
esac
 
33589
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
 
33590
$as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
 
33591
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33592
  $as_echo_n "(cached) " >&6
 
33593
else
 
33594
  eval "$as_ac_Header=\$ac_header_preproc"
 
33595
fi
 
33596
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33597
                 $as_echo "$as_val"'`
 
33598
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33599
$as_echo "$ac_res" >&6; }
 
33600
 
 
33601
fi
 
33602
as_val=`eval 'as_val=${'$as_ac_Header'}
 
33603
                 $as_echo "$as_val"'`
 
33604
   if test "x$as_val" = x""yes; then
 
33605
  lua_headerdir=lua$lua_vndot
 
33606
fi
 
33607
 
 
33608
 
 
33609
fi
 
33610
 
 
33611
done
 
33612
 
 
33613
else
 
33614
 
 
33615
for ac_header in lua$lua_vdot/lua.h
 
33616
do
 
33617
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33618
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33619
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33620
$as_echo_n "checking for $ac_header... " >&6; }
 
33621
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33622
  $as_echo_n "(cached) " >&6
 
33623
fi
 
33624
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33625
                 $as_echo "$as_val"'`
 
33626
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33627
$as_echo "$ac_res" >&6; }
 
33628
else
 
33629
  # Is the header compilable?
 
33630
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33631
$as_echo_n "checking $ac_header usability... " >&6; }
 
33632
cat >conftest.$ac_ext <<_ACEOF
 
33633
/* confdefs.h.  */
 
33634
_ACEOF
 
33635
cat confdefs.h >>conftest.$ac_ext
 
33636
cat >>conftest.$ac_ext <<_ACEOF
 
33637
/* end confdefs.h.  */
 
33638
$ac_includes_default
 
33639
#include <$ac_header>
 
33640
_ACEOF
 
33641
rm -f conftest.$ac_objext
 
33642
if { (ac_try="$ac_compile"
 
33643
case "(($ac_try" in
 
33644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33645
  *) ac_try_echo=$ac_try;;
 
33646
esac
 
33647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33648
$as_echo "$ac_try_echo") >&5
 
33649
  (eval "$ac_compile") 2>conftest.er1
 
33650
  ac_status=$?
 
33651
  grep -v '^ *+' conftest.er1 >conftest.err
 
33652
  rm -f conftest.er1
 
33653
  cat conftest.err >&5
 
33654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33655
  (exit $ac_status); } && {
 
33656
         test -z "$ac_c_werror_flag" ||
 
33657
         test ! -s conftest.err
 
33658
       } && test -s conftest.$ac_objext; then
 
33659
  ac_header_compiler=yes
 
33660
else
 
33661
  $as_echo "$as_me: failed program was:" >&5
 
33662
sed 's/^/| /' conftest.$ac_ext >&5
 
33663
 
 
33664
        ac_header_compiler=no
 
33665
fi
 
33666
 
 
33667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33668
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33669
$as_echo "$ac_header_compiler" >&6; }
 
33670
 
 
33671
# Is the header present?
 
33672
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33673
$as_echo_n "checking $ac_header presence... " >&6; }
 
33674
cat >conftest.$ac_ext <<_ACEOF
 
33675
/* confdefs.h.  */
 
33676
_ACEOF
 
33677
cat confdefs.h >>conftest.$ac_ext
 
33678
cat >>conftest.$ac_ext <<_ACEOF
 
33679
/* end confdefs.h.  */
 
33680
#include <$ac_header>
 
33681
_ACEOF
 
33682
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33683
case "(($ac_try" in
 
33684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33685
  *) ac_try_echo=$ac_try;;
 
33686
esac
 
33687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33688
$as_echo "$ac_try_echo") >&5
 
33689
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33690
  ac_status=$?
 
33691
  grep -v '^ *+' conftest.er1 >conftest.err
 
33692
  rm -f conftest.er1
 
33693
  cat conftest.err >&5
 
33694
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33695
  (exit $ac_status); } >/dev/null && {
 
33696
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33697
         test ! -s conftest.err
 
33698
       }; then
 
33699
  ac_header_preproc=yes
 
33700
else
 
33701
  $as_echo "$as_me: failed program was:" >&5
 
33702
sed 's/^/| /' conftest.$ac_ext >&5
 
33703
 
 
33704
  ac_header_preproc=no
 
33705
fi
 
33706
 
 
33707
rm -f conftest.err conftest.$ac_ext
 
33708
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33709
$as_echo "$ac_header_preproc" >&6; }
 
33710
 
 
33711
# So?  What about this header?
 
33712
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33713
  yes:no: )
 
33714
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33715
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33716
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33717
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33718
    ac_header_preproc=yes
 
33719
    ;;
 
33720
  no:yes:* )
 
33721
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33722
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33723
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33724
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33725
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33726
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33727
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33728
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33729
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33730
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33731
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33732
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33733
 
 
33734
    ;;
 
33735
esac
 
33736
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33737
$as_echo_n "checking for $ac_header... " >&6; }
 
33738
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33739
  $as_echo_n "(cached) " >&6
 
33740
else
 
33741
  eval "$as_ac_Header=\$ac_header_preproc"
 
33742
fi
 
33743
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33744
                 $as_echo "$as_val"'`
 
33745
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33746
$as_echo "$ac_res" >&6; }
 
33747
 
 
33748
fi
 
33749
as_val=`eval 'as_val=${'$as_ac_Header'}
 
33750
                 $as_echo "$as_val"'`
 
33751
   if test "x$as_val" = x""yes; then
 
33752
  cat >>confdefs.h <<_ACEOF
 
33753
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33754
_ACEOF
 
33755
 
 
33756
for ac_header in lua$lua_vdot/lualib.h
 
33757
do
 
33758
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33759
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33760
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33761
$as_echo_n "checking for $ac_header... " >&6; }
 
33762
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33763
  $as_echo_n "(cached) " >&6
 
33764
fi
 
33765
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33766
                 $as_echo "$as_val"'`
 
33767
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33768
$as_echo "$ac_res" >&6; }
 
33769
else
 
33770
  # Is the header compilable?
 
33771
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33772
$as_echo_n "checking $ac_header usability... " >&6; }
 
33773
cat >conftest.$ac_ext <<_ACEOF
 
33774
/* confdefs.h.  */
 
33775
_ACEOF
 
33776
cat confdefs.h >>conftest.$ac_ext
 
33777
cat >>conftest.$ac_ext <<_ACEOF
 
33778
/* end confdefs.h.  */
 
33779
$ac_includes_default
 
33780
#include <$ac_header>
 
33781
_ACEOF
 
33782
rm -f conftest.$ac_objext
 
33783
if { (ac_try="$ac_compile"
 
33784
case "(($ac_try" in
 
33785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33786
  *) ac_try_echo=$ac_try;;
 
33787
esac
 
33788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33789
$as_echo "$ac_try_echo") >&5
 
33790
  (eval "$ac_compile") 2>conftest.er1
 
33791
  ac_status=$?
 
33792
  grep -v '^ *+' conftest.er1 >conftest.err
 
33793
  rm -f conftest.er1
 
33794
  cat conftest.err >&5
 
33795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33796
  (exit $ac_status); } && {
 
33797
         test -z "$ac_c_werror_flag" ||
 
33798
         test ! -s conftest.err
 
33799
       } && test -s conftest.$ac_objext; then
 
33800
  ac_header_compiler=yes
 
33801
else
 
33802
  $as_echo "$as_me: failed program was:" >&5
 
33803
sed 's/^/| /' conftest.$ac_ext >&5
 
33804
 
 
33805
        ac_header_compiler=no
 
33806
fi
 
33807
 
 
33808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33809
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33810
$as_echo "$ac_header_compiler" >&6; }
 
33811
 
 
33812
# Is the header present?
 
33813
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33814
$as_echo_n "checking $ac_header presence... " >&6; }
 
33815
cat >conftest.$ac_ext <<_ACEOF
 
33816
/* confdefs.h.  */
 
33817
_ACEOF
 
33818
cat confdefs.h >>conftest.$ac_ext
 
33819
cat >>conftest.$ac_ext <<_ACEOF
 
33820
/* end confdefs.h.  */
 
33821
#include <$ac_header>
 
33822
_ACEOF
 
33823
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33824
case "(($ac_try" in
 
33825
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33826
  *) ac_try_echo=$ac_try;;
 
33827
esac
 
33828
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33829
$as_echo "$ac_try_echo") >&5
 
33830
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33831
  ac_status=$?
 
33832
  grep -v '^ *+' conftest.er1 >conftest.err
 
33833
  rm -f conftest.er1
 
33834
  cat conftest.err >&5
 
33835
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33836
  (exit $ac_status); } >/dev/null && {
 
33837
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33838
         test ! -s conftest.err
 
33839
       }; then
 
33840
  ac_header_preproc=yes
 
33841
else
 
33842
  $as_echo "$as_me: failed program was:" >&5
 
33843
sed 's/^/| /' conftest.$ac_ext >&5
 
33844
 
 
33845
  ac_header_preproc=no
 
33846
fi
 
33847
 
 
33848
rm -f conftest.err conftest.$ac_ext
 
33849
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33850
$as_echo "$ac_header_preproc" >&6; }
 
33851
 
 
33852
# So?  What about this header?
 
33853
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33854
  yes:no: )
 
33855
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33856
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33857
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33858
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33859
    ac_header_preproc=yes
 
33860
    ;;
 
33861
  no:yes:* )
 
33862
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33863
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33864
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33865
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33866
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33867
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33868
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33869
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33870
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33871
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33872
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33873
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33874
 
 
33875
    ;;
 
33876
esac
 
33877
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33878
$as_echo_n "checking for $ac_header... " >&6; }
 
33879
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33880
  $as_echo_n "(cached) " >&6
 
33881
else
 
33882
  eval "$as_ac_Header=\$ac_header_preproc"
 
33883
fi
 
33884
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33885
                 $as_echo "$as_val"'`
 
33886
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33887
$as_echo "$ac_res" >&6; }
 
33888
 
 
33889
fi
 
33890
as_val=`eval 'as_val=${'$as_ac_Header'}
 
33891
                 $as_echo "$as_val"'`
 
33892
   if test "x$as_val" = x""yes; then
 
33893
  cat >>confdefs.h <<_ACEOF
 
33894
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33895
_ACEOF
 
33896
 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
 
33897
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33898
  { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
 
33899
$as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
 
33900
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33901
  $as_echo_n "(cached) " >&6
 
33902
fi
 
33903
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
33904
                 $as_echo "$as_val"'`
 
33905
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
33906
$as_echo "$ac_res" >&6; }
 
33907
else
 
33908
  # Is the header compilable?
 
33909
{ $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
 
33910
$as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
 
33911
cat >conftest.$ac_ext <<_ACEOF
 
33912
/* confdefs.h.  */
 
33913
_ACEOF
 
33914
cat confdefs.h >>conftest.$ac_ext
 
33915
cat >>conftest.$ac_ext <<_ACEOF
 
33916
/* end confdefs.h.  */
 
33917
$ac_includes_default
 
33918
#include <lua$lua_vdot/lauxlib.h>
 
33919
_ACEOF
 
33920
rm -f conftest.$ac_objext
 
33921
if { (ac_try="$ac_compile"
 
33922
case "(($ac_try" in
 
33923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33924
  *) ac_try_echo=$ac_try;;
 
33925
esac
 
33926
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33927
$as_echo "$ac_try_echo") >&5
 
33928
  (eval "$ac_compile") 2>conftest.er1
 
33929
  ac_status=$?
 
33930
  grep -v '^ *+' conftest.er1 >conftest.err
 
33931
  rm -f conftest.er1
 
33932
  cat conftest.err >&5
 
33933
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33934
  (exit $ac_status); } && {
 
33935
         test -z "$ac_c_werror_flag" ||
 
33936
         test ! -s conftest.err
 
33937
       } && test -s conftest.$ac_objext; then
 
33938
  ac_header_compiler=yes
 
33939
else
 
33940
  $as_echo "$as_me: failed program was:" >&5
 
33941
sed 's/^/| /' conftest.$ac_ext >&5
 
33942
 
 
33943
        ac_header_compiler=no
 
33944
fi
 
33945
 
 
33946
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33947
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33948
$as_echo "$ac_header_compiler" >&6; }
 
33949
 
 
33950
# Is the header present?
 
33951
{ $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
 
33952
$as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
 
33953
cat >conftest.$ac_ext <<_ACEOF
 
33954
/* confdefs.h.  */
 
33955
_ACEOF
 
33956
cat confdefs.h >>conftest.$ac_ext
 
33957
cat >>conftest.$ac_ext <<_ACEOF
 
33958
/* end confdefs.h.  */
 
33959
#include <lua$lua_vdot/lauxlib.h>
 
33960
_ACEOF
 
33961
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
33962
case "(($ac_try" in
 
33963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33964
  *) ac_try_echo=$ac_try;;
 
33965
esac
 
33966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
33967
$as_echo "$ac_try_echo") >&5
 
33968
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
33969
  ac_status=$?
 
33970
  grep -v '^ *+' conftest.er1 >conftest.err
 
33971
  rm -f conftest.er1
 
33972
  cat conftest.err >&5
 
33973
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33974
  (exit $ac_status); } >/dev/null && {
 
33975
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
33976
         test ! -s conftest.err
 
33977
       }; then
 
33978
  ac_header_preproc=yes
 
33979
else
 
33980
  $as_echo "$as_me: failed program was:" >&5
 
33981
sed 's/^/| /' conftest.$ac_ext >&5
 
33982
 
 
33983
  ac_header_preproc=no
 
33984
fi
 
33985
 
 
33986
rm -f conftest.err conftest.$ac_ext
 
33987
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33988
$as_echo "$ac_header_preproc" >&6; }
 
33989
 
 
33990
# So?  What about this header?
 
33991
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33992
  yes:no: )
 
33993
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
33994
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33995
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
 
33996
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
 
33997
    ac_header_preproc=yes
 
33998
    ;;
 
33999
  no:yes:* )
 
34000
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
 
34001
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
 
34002
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&5
 
34003
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
 
34004
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
 
34005
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
 
34006
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
34007
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34008
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
 
34009
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
 
34010
    { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
 
34011
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
 
34012
 
 
34013
    ;;
 
34014
esac
 
34015
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
 
34016
$as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
 
34017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34018
  $as_echo_n "(cached) " >&6
 
34019
else
 
34020
  eval "$as_ac_Header=\$ac_header_preproc"
 
34021
fi
 
34022
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
34023
                 $as_echo "$as_val"'`
 
34024
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
34025
$as_echo "$ac_res" >&6; }
 
34026
 
 
34027
fi
 
34028
as_val=`eval 'as_val=${'$as_ac_Header'}
 
34029
                 $as_echo "$as_val"'`
 
34030
   if test "x$as_val" = x""yes; then
 
34031
  lua_headerdir=lua$lua_vdot
 
34032
fi
 
34033
 
 
34034
 
 
34035
fi
 
34036
 
 
34037
done
 
34038
 
 
34039
else
 
34040
 
 
34041
for ac_header in lua.h
 
34042
do
 
34043
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34044
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34045
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34046
$as_echo_n "checking for $ac_header... " >&6; }
 
34047
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34048
  $as_echo_n "(cached) " >&6
 
34049
fi
 
34050
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
34051
                 $as_echo "$as_val"'`
 
34052
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
34053
$as_echo "$ac_res" >&6; }
 
34054
else
 
34055
  # Is the header compilable?
 
34056
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
34057
$as_echo_n "checking $ac_header usability... " >&6; }
 
34058
cat >conftest.$ac_ext <<_ACEOF
 
34059
/* confdefs.h.  */
 
34060
_ACEOF
 
34061
cat confdefs.h >>conftest.$ac_ext
 
34062
cat >>conftest.$ac_ext <<_ACEOF
 
34063
/* end confdefs.h.  */
 
34064
$ac_includes_default
 
34065
#include <$ac_header>
 
34066
_ACEOF
 
34067
rm -f conftest.$ac_objext
 
34068
if { (ac_try="$ac_compile"
 
34069
case "(($ac_try" in
 
34070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34071
  *) ac_try_echo=$ac_try;;
 
34072
esac
 
34073
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34074
$as_echo "$ac_try_echo") >&5
 
34075
  (eval "$ac_compile") 2>conftest.er1
 
34076
  ac_status=$?
 
34077
  grep -v '^ *+' conftest.er1 >conftest.err
 
34078
  rm -f conftest.er1
 
34079
  cat conftest.err >&5
 
34080
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34081
  (exit $ac_status); } && {
 
34082
         test -z "$ac_c_werror_flag" ||
 
34083
         test ! -s conftest.err
 
34084
       } && test -s conftest.$ac_objext; then
 
34085
  ac_header_compiler=yes
 
34086
else
 
34087
  $as_echo "$as_me: failed program was:" >&5
 
34088
sed 's/^/| /' conftest.$ac_ext >&5
 
34089
 
 
34090
        ac_header_compiler=no
 
34091
fi
 
34092
 
 
34093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34094
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34095
$as_echo "$ac_header_compiler" >&6; }
 
34096
 
 
34097
# Is the header present?
 
34098
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
34099
$as_echo_n "checking $ac_header presence... " >&6; }
 
34100
cat >conftest.$ac_ext <<_ACEOF
 
34101
/* confdefs.h.  */
 
34102
_ACEOF
 
34103
cat confdefs.h >>conftest.$ac_ext
 
34104
cat >>conftest.$ac_ext <<_ACEOF
 
34105
/* end confdefs.h.  */
 
34106
#include <$ac_header>
 
34107
_ACEOF
 
34108
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34109
case "(($ac_try" in
 
34110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34111
  *) ac_try_echo=$ac_try;;
 
34112
esac
 
34113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34114
$as_echo "$ac_try_echo") >&5
 
34115
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
34116
  ac_status=$?
 
34117
  grep -v '^ *+' conftest.er1 >conftest.err
 
34118
  rm -f conftest.er1
 
34119
  cat conftest.err >&5
 
34120
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34121
  (exit $ac_status); } >/dev/null && {
 
34122
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
34123
         test ! -s conftest.err
 
34124
       }; then
 
34125
  ac_header_preproc=yes
 
34126
else
 
34127
  $as_echo "$as_me: failed program was:" >&5
 
34128
sed 's/^/| /' conftest.$ac_ext >&5
 
34129
 
 
34130
  ac_header_preproc=no
 
34131
fi
 
34132
 
 
34133
rm -f conftest.err conftest.$ac_ext
 
34134
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34135
$as_echo "$ac_header_preproc" >&6; }
 
34136
 
 
34137
# So?  What about this header?
 
34138
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34139
  yes:no: )
 
34140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
34141
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
34143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
34144
    ac_header_preproc=yes
 
34145
    ;;
 
34146
  no:yes:* )
 
34147
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
34148
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
34149
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
34150
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
34151
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
34152
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
34153
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
34154
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34155
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
34156
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
34157
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
34158
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
34159
 
 
34160
    ;;
 
34161
esac
 
34162
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34163
$as_echo_n "checking for $ac_header... " >&6; }
 
34164
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34165
  $as_echo_n "(cached) " >&6
 
34166
else
 
34167
  eval "$as_ac_Header=\$ac_header_preproc"
 
34168
fi
 
34169
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
34170
                 $as_echo "$as_val"'`
 
34171
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
34172
$as_echo "$ac_res" >&6; }
 
34173
 
 
34174
fi
 
34175
as_val=`eval 'as_val=${'$as_ac_Header'}
 
34176
                 $as_echo "$as_val"'`
 
34177
   if test "x$as_val" = x""yes; then
 
34178
  cat >>confdefs.h <<_ACEOF
 
34179
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34180
_ACEOF
 
34181
 
 
34182
for ac_header in lualib.h
 
34183
do
 
34184
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34185
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34186
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34187
$as_echo_n "checking for $ac_header... " >&6; }
 
34188
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34189
  $as_echo_n "(cached) " >&6
 
34190
fi
 
34191
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
34192
                 $as_echo "$as_val"'`
 
34193
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
34194
$as_echo "$ac_res" >&6; }
 
34195
else
 
34196
  # Is the header compilable?
 
34197
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
34198
$as_echo_n "checking $ac_header usability... " >&6; }
 
34199
cat >conftest.$ac_ext <<_ACEOF
 
34200
/* confdefs.h.  */
 
34201
_ACEOF
 
34202
cat confdefs.h >>conftest.$ac_ext
 
34203
cat >>conftest.$ac_ext <<_ACEOF
 
34204
/* end confdefs.h.  */
 
34205
$ac_includes_default
 
34206
#include <$ac_header>
 
34207
_ACEOF
 
34208
rm -f conftest.$ac_objext
 
34209
if { (ac_try="$ac_compile"
 
34210
case "(($ac_try" in
 
34211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34212
  *) ac_try_echo=$ac_try;;
 
34213
esac
 
34214
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34215
$as_echo "$ac_try_echo") >&5
 
34216
  (eval "$ac_compile") 2>conftest.er1
 
34217
  ac_status=$?
 
34218
  grep -v '^ *+' conftest.er1 >conftest.err
 
34219
  rm -f conftest.er1
 
34220
  cat conftest.err >&5
 
34221
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34222
  (exit $ac_status); } && {
 
34223
         test -z "$ac_c_werror_flag" ||
 
34224
         test ! -s conftest.err
 
34225
       } && test -s conftest.$ac_objext; then
 
34226
  ac_header_compiler=yes
 
34227
else
 
34228
  $as_echo "$as_me: failed program was:" >&5
 
34229
sed 's/^/| /' conftest.$ac_ext >&5
 
34230
 
 
34231
        ac_header_compiler=no
 
34232
fi
 
34233
 
 
34234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34235
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34236
$as_echo "$ac_header_compiler" >&6; }
 
34237
 
 
34238
# Is the header present?
 
34239
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
34240
$as_echo_n "checking $ac_header presence... " >&6; }
 
34241
cat >conftest.$ac_ext <<_ACEOF
 
34242
/* confdefs.h.  */
 
34243
_ACEOF
 
34244
cat confdefs.h >>conftest.$ac_ext
 
34245
cat >>conftest.$ac_ext <<_ACEOF
 
34246
/* end confdefs.h.  */
 
34247
#include <$ac_header>
 
34248
_ACEOF
 
34249
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34250
case "(($ac_try" in
 
34251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34252
  *) ac_try_echo=$ac_try;;
 
34253
esac
 
34254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34255
$as_echo "$ac_try_echo") >&5
 
34256
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
34257
  ac_status=$?
 
34258
  grep -v '^ *+' conftest.er1 >conftest.err
 
34259
  rm -f conftest.er1
 
34260
  cat conftest.err >&5
 
34261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34262
  (exit $ac_status); } >/dev/null && {
 
34263
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
34264
         test ! -s conftest.err
 
34265
       }; then
 
34266
  ac_header_preproc=yes
 
34267
else
 
34268
  $as_echo "$as_me: failed program was:" >&5
 
34269
sed 's/^/| /' conftest.$ac_ext >&5
 
34270
 
 
34271
  ac_header_preproc=no
 
34272
fi
 
34273
 
 
34274
rm -f conftest.err conftest.$ac_ext
 
34275
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34276
$as_echo "$ac_header_preproc" >&6; }
 
34277
 
 
34278
# So?  What about this header?
 
34279
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34280
  yes:no: )
 
34281
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
34282
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34283
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
34284
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
34285
    ac_header_preproc=yes
 
34286
    ;;
 
34287
  no:yes:* )
 
34288
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
34289
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
34290
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
34291
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
34292
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
34293
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
34294
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
34295
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34296
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
34297
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
34298
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
34299
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
34300
 
 
34301
    ;;
 
34302
esac
 
34303
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34304
$as_echo_n "checking for $ac_header... " >&6; }
 
34305
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34306
  $as_echo_n "(cached) " >&6
 
34307
else
 
34308
  eval "$as_ac_Header=\$ac_header_preproc"
 
34309
fi
 
34310
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
34311
                 $as_echo "$as_val"'`
 
34312
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
34313
$as_echo "$ac_res" >&6; }
 
34314
 
 
34315
fi
 
34316
as_val=`eval 'as_val=${'$as_ac_Header'}
 
34317
                 $as_echo "$as_val"'`
 
34318
   if test "x$as_val" = x""yes; then
 
34319
  cat >>confdefs.h <<_ACEOF
 
34320
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34321
_ACEOF
 
34322
 if test "${ac_cv_header_lauxlib_h+set}" = set; then
 
34323
  { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
 
34324
$as_echo_n "checking for lauxlib.h... " >&6; }
 
34325
if test "${ac_cv_header_lauxlib_h+set}" = set; then
 
34326
  $as_echo_n "(cached) " >&6
 
34327
fi
 
34328
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
 
34329
$as_echo "$ac_cv_header_lauxlib_h" >&6; }
 
34330
else
 
34331
  # Is the header compilable?
 
34332
{ $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
 
34333
$as_echo_n "checking lauxlib.h usability... " >&6; }
 
34334
cat >conftest.$ac_ext <<_ACEOF
 
34335
/* confdefs.h.  */
 
34336
_ACEOF
 
34337
cat confdefs.h >>conftest.$ac_ext
 
34338
cat >>conftest.$ac_ext <<_ACEOF
 
34339
/* end confdefs.h.  */
 
34340
$ac_includes_default
 
34341
#include <lauxlib.h>
 
34342
_ACEOF
 
34343
rm -f conftest.$ac_objext
 
34344
if { (ac_try="$ac_compile"
 
34345
case "(($ac_try" in
 
34346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34347
  *) ac_try_echo=$ac_try;;
 
34348
esac
 
34349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34350
$as_echo "$ac_try_echo") >&5
 
34351
  (eval "$ac_compile") 2>conftest.er1
 
34352
  ac_status=$?
 
34353
  grep -v '^ *+' conftest.er1 >conftest.err
 
34354
  rm -f conftest.er1
 
34355
  cat conftest.err >&5
 
34356
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34357
  (exit $ac_status); } && {
 
34358
         test -z "$ac_c_werror_flag" ||
 
34359
         test ! -s conftest.err
 
34360
       } && test -s conftest.$ac_objext; then
 
34361
  ac_header_compiler=yes
 
34362
else
 
34363
  $as_echo "$as_me: failed program was:" >&5
 
34364
sed 's/^/| /' conftest.$ac_ext >&5
 
34365
 
 
34366
        ac_header_compiler=no
 
34367
fi
 
34368
 
 
34369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34370
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34371
$as_echo "$ac_header_compiler" >&6; }
 
34372
 
 
34373
# Is the header present?
 
34374
{ $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
 
34375
$as_echo_n "checking lauxlib.h presence... " >&6; }
 
34376
cat >conftest.$ac_ext <<_ACEOF
 
34377
/* confdefs.h.  */
 
34378
_ACEOF
 
34379
cat confdefs.h >>conftest.$ac_ext
 
34380
cat >>conftest.$ac_ext <<_ACEOF
 
34381
/* end confdefs.h.  */
 
34382
#include <lauxlib.h>
 
34383
_ACEOF
 
34384
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
34385
case "(($ac_try" in
 
34386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34387
  *) ac_try_echo=$ac_try;;
 
34388
esac
 
34389
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34390
$as_echo "$ac_try_echo") >&5
 
34391
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
34392
  ac_status=$?
 
34393
  grep -v '^ *+' conftest.er1 >conftest.err
 
34394
  rm -f conftest.er1
 
34395
  cat conftest.err >&5
 
34396
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34397
  (exit $ac_status); } >/dev/null && {
 
34398
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
34399
         test ! -s conftest.err
 
34400
       }; then
 
34401
  ac_header_preproc=yes
 
34402
else
 
34403
  $as_echo "$as_me: failed program was:" >&5
 
34404
sed 's/^/| /' conftest.$ac_ext >&5
 
34405
 
 
34406
  ac_header_preproc=no
 
34407
fi
 
34408
 
 
34409
rm -f conftest.err conftest.$ac_ext
 
34410
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34411
$as_echo "$ac_header_preproc" >&6; }
 
34412
 
 
34413
# So?  What about this header?
 
34414
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34415
  yes:no: )
 
34416
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
34417
$as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34418
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
 
34419
$as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
 
34420
    ac_header_preproc=yes
 
34421
    ;;
 
34422
  no:yes:* )
 
34423
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
 
34424
$as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
 
34425
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&5
 
34426
$as_echo "$as_me: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&2;}
 
34427
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
 
34428
$as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
 
34429
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
34430
$as_echo "$as_me: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34431
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
 
34432
$as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
 
34433
    { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
 
34434
$as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
 
34435
 
 
34436
    ;;
 
34437
esac
 
34438
{ $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
 
34439
$as_echo_n "checking for lauxlib.h... " >&6; }
 
34440
if test "${ac_cv_header_lauxlib_h+set}" = set; then
 
34441
  $as_echo_n "(cached) " >&6
 
34442
else
 
34443
  ac_cv_header_lauxlib_h=$ac_header_preproc
 
34444
fi
 
34445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
 
34446
$as_echo "$ac_cv_header_lauxlib_h" >&6; }
 
34447
 
 
34448
fi
 
34449
if test "x$ac_cv_header_lauxlib_h" = x""yes; then
 
34450
  lua_headerdir=""
 
34451
else
 
34452
  lua_headerdir="no"
 
34453
fi
 
34454
 
 
34455
 
 
34456
fi
 
34457
 
 
34458
done
 
34459
 
 
34460
fi
 
34461
 
 
34462
done
 
34463
 
 
34464
fi
 
34465
 
 
34466
done
 
34467
 
 
34468
fi
 
34469
 
 
34470
done
 
34471
 
 
34472
 
 
34473
    if test "$lua_headerdir" = "no"; then
 
34474
      enable_lua=no
 
34475
    else
 
34476
      COMP_LUA=lua
 
34477
    fi
 
34478
 
 
34479
    if test "$COMP_LUA" != "lua"; then
 
34480
      enable_lua=no
 
34481
      { $as_echo "$as_me:$LINENO: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
 
34482
$as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
 
34483
    else
 
34484
      # OK, headers found, let's check the libraries (LIBS is not used)
 
34485
      LIBS=
 
34486
      lua_havelib=no
 
34487
      LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
 
34488
      { $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
 
34489
$as_echo_n "checking for library containing lua_call... " >&6; }
 
34490
if test "${ac_cv_search_lua_call+set}" = set; then
 
34491
  $as_echo_n "(cached) " >&6
 
34492
else
 
34493
  ac_func_search_save_LIBS=$LIBS
 
34494
cat >conftest.$ac_ext <<_ACEOF
 
34495
/* confdefs.h.  */
 
34496
_ACEOF
 
34497
cat confdefs.h >>conftest.$ac_ext
 
34498
cat >>conftest.$ac_ext <<_ACEOF
 
34499
/* end confdefs.h.  */
 
34500
 
 
34501
/* Override any GCC internal prototype to avoid an error.
 
34502
   Use char because int might match the return type of a GCC
 
34503
   builtin and then its argument prototype would still apply.  */
 
34504
#ifdef __cplusplus
 
34505
extern "C"
 
34506
#endif
 
34507
char lua_call ();
 
34508
int
 
34509
main ()
 
34510
{
 
34511
return lua_call ();
 
34512
  ;
 
34513
  return 0;
 
34514
}
 
34515
_ACEOF
 
34516
for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
 
34517
  if test -z "$ac_lib"; then
 
34518
    ac_res="none required"
 
34519
  else
 
34520
    ac_res=-l$ac_lib
 
34521
    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
 
34522
  fi
 
34523
  rm -f conftest.$ac_objext conftest$ac_exeext
 
34524
if { (ac_try="$ac_link"
 
34525
case "(($ac_try" in
 
34526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34527
  *) ac_try_echo=$ac_try;;
 
34528
esac
 
34529
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34530
$as_echo "$ac_try_echo") >&5
 
34531
  (eval "$ac_link") 2>conftest.er1
 
34532
  ac_status=$?
 
34533
  grep -v '^ *+' conftest.er1 >conftest.err
 
34534
  rm -f conftest.er1
 
34535
  cat conftest.err >&5
 
34536
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34537
  (exit $ac_status); } && {
 
34538
         test -z "$ac_c_werror_flag" ||
 
34539
         test ! -s conftest.err
 
34540
       } && test -s conftest$ac_exeext && {
 
34541
         test "$cross_compiling" = yes ||
 
34542
         $as_test_x conftest$ac_exeext
 
34543
       }; then
 
34544
  ac_cv_search_lua_call=$ac_res
 
34545
else
 
34546
  $as_echo "$as_me: failed program was:" >&5
 
34547
sed 's/^/| /' conftest.$ac_ext >&5
 
34548
 
 
34549
 
 
34550
fi
 
34551
 
 
34552
rm -rf conftest.dSYM
 
34553
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34554
      conftest$ac_exeext
 
34555
  if test "${ac_cv_search_lua_call+set}" = set; then
 
34556
  break
 
34557
fi
 
34558
done
 
34559
if test "${ac_cv_search_lua_call+set}" = set; then
 
34560
  :
 
34561
else
 
34562
  ac_cv_search_lua_call=no
 
34563
fi
 
34564
rm conftest.$ac_ext
 
34565
LIBS=$ac_func_search_save_LIBS
 
34566
fi
 
34567
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
 
34568
$as_echo "$ac_cv_search_lua_call" >&6; }
 
34569
ac_res=$ac_cv_search_lua_call
 
34570
if test "$ac_res" != no; then
 
34571
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
34572
  { $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
 
34573
$as_echo_n "checking for library containing luaL_register... " >&6; }
 
34574
if test "${ac_cv_search_luaL_register+set}" = set; then
 
34575
  $as_echo_n "(cached) " >&6
 
34576
else
 
34577
  ac_func_search_save_LIBS=$LIBS
 
34578
cat >conftest.$ac_ext <<_ACEOF
 
34579
/* confdefs.h.  */
 
34580
_ACEOF
 
34581
cat confdefs.h >>conftest.$ac_ext
 
34582
cat >>conftest.$ac_ext <<_ACEOF
 
34583
/* end confdefs.h.  */
 
34584
 
 
34585
/* Override any GCC internal prototype to avoid an error.
 
34586
   Use char because int might match the return type of a GCC
 
34587
   builtin and then its argument prototype would still apply.  */
 
34588
#ifdef __cplusplus
 
34589
extern "C"
 
34590
#endif
 
34591
char luaL_register ();
 
34592
int
 
34593
main ()
 
34594
{
 
34595
return luaL_register ();
 
34596
  ;
 
34597
  return 0;
 
34598
}
 
34599
_ACEOF
 
34600
for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
 
34601
  if test -z "$ac_lib"; then
 
34602
    ac_res="none required"
 
34603
  else
 
34604
    ac_res=-l$ac_lib
 
34605
    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
 
34606
  fi
 
34607
  rm -f conftest.$ac_objext conftest$ac_exeext
 
34608
if { (ac_try="$ac_link"
 
34609
case "(($ac_try" in
 
34610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34611
  *) ac_try_echo=$ac_try;;
 
34612
esac
 
34613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34614
$as_echo "$ac_try_echo") >&5
 
34615
  (eval "$ac_link") 2>conftest.er1
 
34616
  ac_status=$?
 
34617
  grep -v '^ *+' conftest.er1 >conftest.err
 
34618
  rm -f conftest.er1
 
34619
  cat conftest.err >&5
 
34620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34621
  (exit $ac_status); } && {
 
34622
         test -z "$ac_c_werror_flag" ||
 
34623
         test ! -s conftest.err
 
34624
       } && test -s conftest$ac_exeext && {
 
34625
         test "$cross_compiling" = yes ||
 
34626
         $as_test_x conftest$ac_exeext
 
34627
       }; then
 
34628
  ac_cv_search_luaL_register=$ac_res
 
34629
else
 
34630
  $as_echo "$as_me: failed program was:" >&5
 
34631
sed 's/^/| /' conftest.$ac_ext >&5
 
34632
 
 
34633
 
 
34634
fi
 
34635
 
 
34636
rm -rf conftest.dSYM
 
34637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34638
      conftest$ac_exeext
 
34639
  if test "${ac_cv_search_luaL_register+set}" = set; then
 
34640
  break
 
34641
fi
 
34642
done
 
34643
if test "${ac_cv_search_luaL_register+set}" = set; then
 
34644
  :
 
34645
else
 
34646
  ac_cv_search_luaL_register=no
 
34647
fi
 
34648
rm conftest.$ac_ext
 
34649
LIBS=$ac_func_search_save_LIBS
 
34650
fi
 
34651
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
 
34652
$as_echo "$ac_cv_search_luaL_register" >&6; }
 
34653
ac_res=$ac_cv_search_luaL_register
 
34654
if test "$ac_res" != no; then
 
34655
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
34656
  lua_havelib=LUA$lua_vndot
 
34657
else
 
34658
  { $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
 
34659
$as_echo_n "checking for library containing luaL_module... " >&6; }
 
34660
if test "${ac_cv_search_luaL_module+set}" = set; then
 
34661
  $as_echo_n "(cached) " >&6
 
34662
else
 
34663
  ac_func_search_save_LIBS=$LIBS
 
34664
cat >conftest.$ac_ext <<_ACEOF
 
34665
/* confdefs.h.  */
 
34666
_ACEOF
 
34667
cat confdefs.h >>conftest.$ac_ext
 
34668
cat >>conftest.$ac_ext <<_ACEOF
 
34669
/* end confdefs.h.  */
 
34670
 
 
34671
/* Override any GCC internal prototype to avoid an error.
 
34672
   Use char because int might match the return type of a GCC
 
34673
   builtin and then its argument prototype would still apply.  */
 
34674
#ifdef __cplusplus
 
34675
extern "C"
 
34676
#endif
 
34677
char luaL_module ();
 
34678
int
 
34679
main ()
 
34680
{
 
34681
return luaL_module ();
 
34682
  ;
 
34683
  return 0;
 
34684
}
 
34685
_ACEOF
 
34686
for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
 
34687
  if test -z "$ac_lib"; then
 
34688
    ac_res="none required"
 
34689
  else
 
34690
    ac_res=-l$ac_lib
 
34691
    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
 
34692
  fi
 
34693
  rm -f conftest.$ac_objext conftest$ac_exeext
 
34694
if { (ac_try="$ac_link"
 
34695
case "(($ac_try" in
 
34696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34697
  *) ac_try_echo=$ac_try;;
 
34698
esac
 
34699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34700
$as_echo "$ac_try_echo") >&5
 
34701
  (eval "$ac_link") 2>conftest.er1
 
34702
  ac_status=$?
 
34703
  grep -v '^ *+' conftest.er1 >conftest.err
 
34704
  rm -f conftest.er1
 
34705
  cat conftest.err >&5
 
34706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34707
  (exit $ac_status); } && {
 
34708
         test -z "$ac_c_werror_flag" ||
 
34709
         test ! -s conftest.err
 
34710
       } && test -s conftest$ac_exeext && {
 
34711
         test "$cross_compiling" = yes ||
 
34712
         $as_test_x conftest$ac_exeext
 
34713
       }; then
 
34714
  ac_cv_search_luaL_module=$ac_res
 
34715
else
 
34716
  $as_echo "$as_me: failed program was:" >&5
 
34717
sed 's/^/| /' conftest.$ac_ext >&5
 
34718
 
 
34719
 
 
34720
fi
 
34721
 
 
34722
rm -rf conftest.dSYM
 
34723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34724
      conftest$ac_exeext
 
34725
  if test "${ac_cv_search_luaL_module+set}" = set; then
 
34726
  break
 
34727
fi
 
34728
done
 
34729
if test "${ac_cv_search_luaL_module+set}" = set; then
 
34730
  :
 
34731
else
 
34732
  ac_cv_search_luaL_module=no
 
34733
fi
 
34734
rm conftest.$ac_ext
 
34735
LIBS=$ac_func_search_save_LIBS
 
34736
fi
 
34737
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
 
34738
$as_echo "$ac_cv_search_luaL_module" >&6; }
 
34739
ac_res=$ac_cv_search_luaL_module
 
34740
if test "$ac_res" != no; then
 
34741
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
34742
  lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
 
34743
             test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
 
34744
else
 
34745
  { $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
 
34746
$as_echo_n "checking for library containing luaL_openlib... " >&6; }
 
34747
if test "${ac_cv_search_luaL_openlib+set}" = set; then
 
34748
  $as_echo_n "(cached) " >&6
 
34749
else
 
34750
  ac_func_search_save_LIBS=$LIBS
 
34751
cat >conftest.$ac_ext <<_ACEOF
 
34752
/* confdefs.h.  */
 
34753
_ACEOF
 
34754
cat confdefs.h >>conftest.$ac_ext
 
34755
cat >>conftest.$ac_ext <<_ACEOF
 
34756
/* end confdefs.h.  */
 
34757
 
 
34758
/* Override any GCC internal prototype to avoid an error.
 
34759
   Use char because int might match the return type of a GCC
 
34760
   builtin and then its argument prototype would still apply.  */
 
34761
#ifdef __cplusplus
 
34762
extern "C"
 
34763
#endif
 
34764
char luaL_openlib ();
 
34765
int
 
34766
main ()
 
34767
{
 
34768
return luaL_openlib ();
 
34769
  ;
 
34770
  return 0;
 
34771
}
 
34772
_ACEOF
 
34773
for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
 
34774
  if test -z "$ac_lib"; then
 
34775
    ac_res="none required"
 
34776
  else
 
34777
    ac_res=-l$ac_lib
 
34778
    LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
 
34779
  fi
 
34780
  rm -f conftest.$ac_objext conftest$ac_exeext
 
34781
if { (ac_try="$ac_link"
 
34782
case "(($ac_try" in
 
34783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34784
  *) ac_try_echo=$ac_try;;
 
34785
esac
 
34786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
34787
$as_echo "$ac_try_echo") >&5
 
34788
  (eval "$ac_link") 2>conftest.er1
 
34789
  ac_status=$?
 
34790
  grep -v '^ *+' conftest.er1 >conftest.err
 
34791
  rm -f conftest.er1
 
34792
  cat conftest.err >&5
 
34793
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34794
  (exit $ac_status); } && {
 
34795
         test -z "$ac_c_werror_flag" ||
 
34796
         test ! -s conftest.err
 
34797
       } && test -s conftest$ac_exeext && {
 
34798
         test "$cross_compiling" = yes ||
 
34799
         $as_test_x conftest$ac_exeext
 
34800
       }; then
 
34801
  ac_cv_search_luaL_openlib=$ac_res
 
34802
else
 
34803
  $as_echo "$as_me: failed program was:" >&5
 
34804
sed 's/^/| /' conftest.$ac_ext >&5
 
34805
 
 
34806
 
 
34807
fi
 
34808
 
 
34809
rm -rf conftest.dSYM
 
34810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34811
      conftest$ac_exeext
 
34812
  if test "${ac_cv_search_luaL_openlib+set}" = set; then
 
34813
  break
 
34814
fi
 
34815
done
 
34816
if test "${ac_cv_search_luaL_openlib+set}" = set; then
 
34817
  :
 
34818
else
 
34819
  ac_cv_search_luaL_openlib=no
 
34820
fi
 
34821
rm conftest.$ac_ext
 
34822
LIBS=$ac_func_search_save_LIBS
 
34823
fi
 
34824
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
 
34825
$as_echo "$ac_cv_search_luaL_openlib" >&6; }
 
34826
ac_res=$ac_cv_search_luaL_openlib
 
34827
if test "$ac_res" != no; then
 
34828
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
34829
  lua_havelib=$lua_vndot
 
34830
else
 
34831
  COMP_LUA=
 
34832
fi
 
34833
 
 
34834
fi
 
34835
 
 
34836
fi
 
34837
 
 
34838
else
 
34839
  COMP_LUA=
 
34840
fi
 
34841
 
 
34842
      lua_libs=$LIBS
 
34843
      LIBS=
 
34844
 
 
34845
      # Options to pass when configuring Lua module
 
34846
      if test  "$lua_havelib" != "no"; then
 
34847
        # OK, headers and libs found. Try to set lua flags
 
34848
        # and modules installation dirs with pkg-config
 
34849
        if test "$PKGCONFIG" != "no"; then
 
34850
          if test "$lua_vndot" = "50"; then
 
34851
            lua_pkg_prefix=lualib
 
34852
          else
 
34853
            lua_pkg_prefix=lua
 
34854
          fi
 
34855
          # try with dot, without dot and finally without version
 
34856
          for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
 
34857
            lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
 
34858
            # same binaries?
 
34859
            if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
 
34860
                # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
 
34861
                LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
 
34862
                LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
 
34863
                LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
 
34864
                LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
 
34865
                break
 
34866
            fi
 
34867
          done
 
34868
        fi
 
34869
 
 
34870
        LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
 
34871
        # if lua 5.0 can't find compat-5.1, force installation of
 
34872
        # compat-5.1.lua together with RRDtool.
 
34873
        if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
 
34874
          lua_need_compat51=1
 
34875
          LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
 
34876
        fi
 
34877
 
 
34878
        # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
 
34879
        if test "$LUA_CFLAGS" = ""; then
 
34880
          { $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
 
34881
$as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
 
34882
          LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
 
34883
          LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
 
34884
          LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
 
34885
        fi
 
34886
 
 
34887
                                # Check whether --enable-lua-site-install was given.
 
34888
if test "${enable_lua_site_install+set}" = set; then
 
34889
  enableval=$enable_lua_site_install;
 
34890
else
 
34891
  LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
 
34892
fi
 
34893
 
 
34894
 
 
34895
        LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
 
34896
 
 
34897
 
 
34898
 
 
34899
 
 
34900
 
 
34901
 
 
34902
 
 
34903
      else
 
34904
        enable_lua=no
 
34905
        { $as_echo "$as_me:$LINENO: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
 
34906
$as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
 
34907
      fi
 
34908
    fi
 
34909
  fi
 
34910
fi
 
34911
 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
 
34912
  LUA_NEED_OUR_COMPAT51_TRUE=
 
34913
  LUA_NEED_OUR_COMPAT51_FALSE='#'
 
34914
else
 
34915
  LUA_NEED_OUR_COMPAT51_TRUE='#'
 
34916
  LUA_NEED_OUR_COMPAT51_FALSE=
 
34917
fi
 
34918
 
 
34919
 if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
 
34920
  LUA_SITE_CINSTALL_TRUE=
 
34921
  LUA_SITE_CINSTALL_FALSE='#'
 
34922
else
 
34923
  LUA_SITE_CINSTALL_TRUE='#'
 
34924
  LUA_SITE_CINSTALL_FALSE=
 
34925
fi
 
34926
 
 
34927
 if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
 
34928
  LUA_SITE_LINSTALL_TRUE=
 
34929
  LUA_SITE_LINSTALL_FALSE='#'
 
34930
else
 
34931
  LUA_SITE_LINSTALL_TRUE='#'
 
34932
  LUA_SITE_LINSTALL_FALSE=
 
34933
fi
 
34934
 
 
34935
 if test "$lua_vndot" = "50"; then
 
34936
  LUA50_TRUE=
 
34937
  LUA50_FALSE='#'
 
34938
else
 
34939
  LUA50_TRUE='#'
 
34940
  LUA50_FALSE=
 
34941
fi
 
34942
 
 
34943
 if test "$enable_lua" = "yes"; then
 
34944
  BUILD_LUA_TRUE=
 
34945
  BUILD_LUA_FALSE='#'
 
34946
else
 
34947
  BUILD_LUA_TRUE='#'
 
34948
  BUILD_LUA_FALSE=
 
34949
fi
 
34950
 
24758
34951
 
24759
34952
enable_tcl_site=no
24760
34953
 
24856
35049
      # If the user set $PYTHON, use it and don't search something else.
24857
35050
      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
24858
35051
$as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
24859
 
      prog="import sys, string
 
35052
      prog="import sys
24860
35053
# split strings by '.' and convert to numeric.  Append some zeros
24861
35054
# because we need at least 4 digits for the hex conversion.
24862
 
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
 
35055
# map returns an iterator in Python 3.0 and a list in 2.x
 
35056
minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
24863
35057
minverhex = 0
24864
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 
35058
# xrange is not present in Python 3.0 and range returns an iterator
 
35059
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24865
35060
sys.exit(sys.hexversion < minverhex)"
24866
35061
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
24867
35062
   ($PYTHON -c "$prog") >&5 2>&5
24886
35081
  $as_echo_n "(cached) " >&6
24887
35082
else
24888
35083
 
24889
 
        for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
 
35084
        for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
24890
35085
          test "$am_cv_pathless_PYTHON" = none && break
24891
 
          prog="import sys, string
 
35086
          prog="import sys
24892
35087
# split strings by '.' and convert to numeric.  Append some zeros
24893
35088
# because we need at least 4 digits for the hex conversion.
24894
 
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
 
35089
# map returns an iterator in Python 3.0 and a list in 2.x
 
35090
minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
24895
35091
minverhex = 0
24896
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 
35092
# xrange is not present in Python 3.0 and range returns an iterator
 
35093
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24897
35094
sys.exit(sys.hexversion < minverhex)"
24898
35095
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
24899
35096
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
24966
35163
if test "${am_cv_python_version+set}" = set; then
24967
35164
  $as_echo_n "(cached) " >&6
24968
35165
else
24969
 
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
 
35166
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24970
35167
fi
24971
35168
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
24972
35169
$as_echo "$am_cv_python_version" >&6; }
24985
35182
if test "${am_cv_python_platform+set}" = set; then
24986
35183
  $as_echo_n "(cached) " >&6
24987
35184
else
24988
 
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
 
35185
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24989
35186
fi
24990
35187
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
24991
35188
$as_echo "$am_cv_python_platform" >&6; }
25001
35198
else
25002
35199
  if test "x$prefix" = xNONE
25003
35200
     then
25004
 
       py_prefix_arg=
 
35201
       am_py_prefix=$ac_default_prefix
25005
35202
     else
25006
 
       py_prefix_arg=",prefix='$prefix'"
 
35203
       am_py_prefix=$prefix
25007
35204
     fi
25008
 
     am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null ||
 
35205
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
25009
35206
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
35207
     case $am_cv_python_pythondir in
 
35208
     $am_py_prefix*)
 
35209
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
35210
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
35211
       ;;
 
35212
     esac
 
35213
 
25010
35214
fi
25011
35215
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
25012
35216
$as_echo "$am_cv_python_pythondir" >&6; }
25024
35228
else
25025
35229
  if test "x$exec_prefix" = xNONE
25026
35230
     then
25027
 
       py_exec_prefix_arg=$py_prefix_arg
 
35231
       am_py_exec_prefix=$am_py_prefix
25028
35232
     else
25029
 
       py_exec_prefix_arg=",prefix='$exec_prefix'"
 
35233
       am_py_exec_prefix=$exec_prefix
25030
35234
     fi
25031
 
     am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null ||
 
35235
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
25032
35236
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
35237
     case $am_cv_python_pyexecdir in
 
35238
     $am_py_exec_prefix*)
 
35239
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
35240
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
35241
       ;;
 
35242
     esac
 
35243
 
25033
35244
fi
25034
35245
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
25035
35246
$as_echo "$am_cv_python_pyexecdir" >&6; }
25241
35452
 
25242
35453
ac_config_files="$ac_config_files examples/Makefile"
25243
35454
 
 
35455
ac_config_files="$ac_config_files examples/rrdcached/Makefile"
 
35456
 
25244
35457
ac_config_files="$ac_config_files doc/Makefile"
25245
35458
 
25246
35459
ac_config_files="$ac_config_files po/Makefile.in"
25247
35460
 
 
35461
ac_config_files="$ac_config_files intl/Makefile"
 
35462
 
25248
35463
ac_config_files="$ac_config_files src/Makefile"
25249
35464
 
25250
35465
ac_config_files="$ac_config_files src/librrd.sym.in"
25259
35474
 
25260
35475
ac_config_files="$ac_config_files Makefile"
25261
35476
 
 
35477
ac_config_files="$ac_config_files bindings/lua/Makefile"
 
35478
 
25262
35479
 
25263
35480
ac_config_commands="$ac_config_commands default"
25264
35481
 
 
35482
 
 
35483
 
 
35484
 
25265
35485
cat >confcache <<\_ACEOF
25266
35486
# This file is a shell script that caches the results of configure
25267
35487
# tests run on this system so they can be shared between configure
25359
35579
LTLIBOBJS=$ac_ltlibobjs
25360
35580
 
25361
35581
 
 
35582
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
35583
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
35584
Usually this means the macro was only invoked conditionally." >&5
 
35585
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
35586
Usually this means the macro was only invoked conditionally." >&2;}
 
35587
   { (exit 1); exit 1; }; }
 
35588
fi
 
35589
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
35590
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
35591
Usually this means the macro was only invoked conditionally." >&5
 
35592
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
35593
Usually this means the macro was only invoked conditionally." >&2;}
 
35594
   { (exit 1); exit 1; }; }
 
35595
fi
 
35596
 if test -n "$EXEEXT"; then
 
35597
  am__EXEEXT_TRUE=
 
35598
  am__EXEEXT_FALSE='#'
 
35599
else
 
35600
  am__EXEEXT_TRUE='#'
 
35601
  am__EXEEXT_FALSE=
 
35602
fi
 
35603
 
25362
35604
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25363
35605
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25364
35606
Usually this means the macro was only invoked conditionally." >&5
25373
35615
Usually this means the macro was only invoked conditionally." >&2;}
25374
35616
   { (exit 1); exit 1; }; }
25375
35617
fi
25376
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25377
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25378
 
Usually this means the macro was only invoked conditionally." >&5
25379
 
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25380
 
Usually this means the macro was only invoked conditionally." >&2;}
25381
 
   { (exit 1); exit 1; }; }
25382
 
fi
25383
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25384
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25385
 
Usually this means the macro was only invoked conditionally." >&5
25386
 
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25387
 
Usually this means the macro was only invoked conditionally." >&2;}
25388
 
   { (exit 1); exit 1; }; }
25389
 
fi
25390
 
 
25391
 
 
25392
 
  ac_config_commands="$ac_config_commands po/stamp-it"
25393
 
 
25394
 
 
25395
 
if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
25396
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
25397
 
Usually this means the macro was only invoked conditionally." >&5
25398
 
$as_echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
25399
 
Usually this means the macro was only invoked conditionally." >&2;}
25400
 
   { (exit 1); exit 1; }; }
25401
 
fi
 
35618
 
25402
35619
if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
25403
35620
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
25404
35621
Usually this means the macro was only invoked conditionally." >&5
25413
35630
Usually this means the macro was only invoked conditionally." >&2;}
25414
35631
   { (exit 1); exit 1; }; }
25415
35632
fi
 
35633
if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
 
35634
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDBI\" was never defined.
 
35635
Usually this means the macro was only invoked conditionally." >&5
 
35636
$as_echo "$as_me: error: conditional \"BUILD_LIBDBI\" was never defined.
 
35637
Usually this means the macro was only invoked conditionally." >&2;}
 
35638
   { (exit 1); exit 1; }; }
 
35639
fi
25416
35640
if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
25417
35641
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
25418
35642
Usually this means the macro was only invoked conditionally." >&5
25420
35644
Usually this means the macro was only invoked conditionally." >&2;}
25421
35645
   { (exit 1); exit 1; }; }
25422
35646
fi
 
35647
if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
 
35648
  { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
 
35649
Usually this means the macro was only invoked conditionally." >&5
 
35650
$as_echo "$as_me: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
 
35651
Usually this means the macro was only invoked conditionally." >&2;}
 
35652
   { (exit 1); exit 1; }; }
 
35653
fi
 
35654
if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
 
35655
  { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
 
35656
Usually this means the macro was only invoked conditionally." >&5
 
35657
$as_echo "$as_me: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
 
35658
Usually this means the macro was only invoked conditionally." >&2;}
 
35659
   { (exit 1); exit 1; }; }
 
35660
fi
 
35661
if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
 
35662
  { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
 
35663
Usually this means the macro was only invoked conditionally." >&5
 
35664
$as_echo "$as_me: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
 
35665
Usually this means the macro was only invoked conditionally." >&2;}
 
35666
   { (exit 1); exit 1; }; }
 
35667
fi
 
35668
if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
 
35669
  { { $as_echo "$as_me:$LINENO: error: conditional \"LUA50\" was never defined.
 
35670
Usually this means the macro was only invoked conditionally." >&5
 
35671
$as_echo "$as_me: error: conditional \"LUA50\" was never defined.
 
35672
Usually this means the macro was only invoked conditionally." >&2;}
 
35673
   { (exit 1); exit 1; }; }
 
35674
fi
 
35675
if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
 
35676
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
 
35677
Usually this means the macro was only invoked conditionally." >&5
 
35678
$as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
 
35679
Usually this means the macro was only invoked conditionally." >&2;}
 
35680
   { (exit 1); exit 1; }; }
 
35681
fi
25423
35682
if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
25424
35683
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
25425
35684
Usually this means the macro was only invoked conditionally." >&5
25756
36015
# report actual input values of CONFIG_FILES etc. instead of their
25757
36016
# values after options handling.
25758
36017
ac_log="
25759
 
This file was extended by rrdtool $as_me 1.3.8, which was
 
36018
This file was extended by rrdtool $as_me 1.4.3, which was
25760
36019
generated by GNU Autoconf 2.63.  Invocation command line was
25761
36020
 
25762
36021
  CONFIG_FILES    = $CONFIG_FILES
25819
36078
_ACEOF
25820
36079
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25821
36080
ac_cs_version="\\
25822
 
rrdtool config.status 1.3.8
 
36081
rrdtool config.status 1.4.3
25823
36082
configured by $0, generated by GNU Autoconf 2.63,
25824
36083
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25825
36084
 
26188
36447
 
26189
36448
 
26190
36449
 
 
36450
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
36451
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
36452
    # from automake < 1.5.
 
36453
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
36454
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
36455
    LINGUAS="${LINGUAS-%UNSET%}"
26191
36456
 
26192
36457
 
26193
36458
 
26199
36464
for ac_config_target in $ac_config_targets
26200
36465
do
26201
36466
  case $ac_config_target in
 
36467
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26202
36468
    "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
26203
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26204
36469
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26205
 
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
36470
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
26206
36471
    "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
26207
36472
    "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
26208
36473
    "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
26211
36476
    "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
26212
36477
    "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
26213
36478
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
36479
    "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
26214
36480
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26215
36481
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
36482
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
26216
36483
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26217
36484
    "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
26218
36485
    "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
26220
36487
    "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
26221
36488
    "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
26222
36489
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
36490
    "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
26223
36491
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26224
 
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
26225
36492
 
26226
36493
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26227
36494
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27646
37913
  chmod +x "$ofile"
27647
37914
 
27648
37915
 ;;
27649
 
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
27650
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
27651
 
      esac ;;
 
37916
    "po-directories":C)
 
37917
    for ac_file in $CONFIG_FILES; do
 
37918
      # Support "outfile[:infile[:infile...]]"
 
37919
      case "$ac_file" in
 
37920
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
37921
      esac
 
37922
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
37923
      case "$ac_file" in */Makefile.in)
 
37924
        # Adjust a relative srcdir.
 
37925
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
37926
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
37927
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
37928
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
37929
        # In autoconf-2.50 it is called $srcdir.
 
37930
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
37931
        case "$ac_given_srcdir" in
 
37932
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
37933
          /*) top_srcdir="$ac_given_srcdir" ;;
 
37934
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
37935
        esac
 
37936
        # Treat a directory as a PO directory if and only if it has a
 
37937
        # POTFILES.in file. This allows packages to have multiple PO
 
37938
        # directories under different names or in different locations.
 
37939
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
37940
          rm -f "$ac_dir/POTFILES"
 
37941
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
37942
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
37943
          POMAKEFILEDEPS="POTFILES.in"
 
37944
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
37945
          # on $ac_dir but don't depend on user-specified configuration
 
37946
          # parameters.
 
37947
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
37948
            # The LINGUAS file contains the set of available languages.
 
37949
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
37950
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
37951
            fi
 
37952
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
37953
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
37954
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
37955
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
37956
          else
 
37957
            # The set of available languages was given in configure.in.
 
37958
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
37959
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
37960
          fi
 
37961
          # Compute POFILES
 
37962
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
37963
          # Compute UPDATEPOFILES
 
37964
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
37965
          # Compute DUMMYPOFILES
 
37966
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
37967
          # Compute GMOFILES
 
37968
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
37969
          case "$ac_given_srcdir" in
 
37970
            .) srcdirpre= ;;
 
37971
            *) srcdirpre='$(srcdir)/' ;;
 
37972
          esac
 
37973
          POFILES=
 
37974
          UPDATEPOFILES=
 
37975
          DUMMYPOFILES=
 
37976
          GMOFILES=
 
37977
          for lang in $ALL_LINGUAS; do
 
37978
            POFILES="$POFILES $srcdirpre$lang.po"
 
37979
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
37980
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
37981
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
37982
          done
 
37983
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
37984
          # environment variable.
 
37985
          INST_LINGUAS=
 
37986
          if test -n "$ALL_LINGUAS"; then
 
37987
            for presentlang in $ALL_LINGUAS; do
 
37988
              useit=no
 
37989
              if test "%UNSET%" != "$LINGUAS"; then
 
37990
                desiredlanguages="$LINGUAS"
 
37991
              else
 
37992
                desiredlanguages="$ALL_LINGUAS"
 
37993
              fi
 
37994
              for desiredlang in $desiredlanguages; do
 
37995
                # Use the presentlang catalog if desiredlang is
 
37996
                #   a. equal to presentlang, or
 
37997
                #   b. a variant of presentlang (because in this case,
 
37998
                #      presentlang can be used as a fallback for messages
 
37999
                #      which are not translated in the desiredlang catalog).
 
38000
                case "$desiredlang" in
 
38001
                  "$presentlang"*) useit=yes;;
 
38002
                esac
 
38003
              done
 
38004
              if test $useit = yes; then
 
38005
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
38006
              fi
 
38007
            done
 
38008
          fi
 
38009
          CATALOGS=
 
38010
          if test -n "$INST_LINGUAS"; then
 
38011
            for lang in $INST_LINGUAS; do
 
38012
              CATALOGS="$CATALOGS $lang.gmo"
 
38013
            done
 
38014
          fi
 
38015
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
38016
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
38017
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
38018
            if test -f "$f"; then
 
38019
              case "$f" in
 
38020
                *.orig | *.bak | *~) ;;
 
38021
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
38022
              esac
 
38023
            fi
 
38024
          done
 
38025
        fi
 
38026
        ;;
 
38027
      esac
 
38028
    done ;;
27652
38029
    "default":C)  chmod +x examples/*.pl ;;
27653
 
    "po/stamp-it":C)
27654
 
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
27655
 
       { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
27656
 
$as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
27657
 
   { (exit 1); exit 1; }; }
27658
 
    fi
27659
 
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
27660
 
    >"po/stamp-it.tmp"
27661
 
    sed '/^#/d
27662
 
         s/^[[].*] *//
27663
 
         /^[    ]*$/d
27664
 
        '"s|^|  $ac_top_srcdir/|" \
27665
 
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
27666
 
 
27667
 
    sed '/^POTFILES =/,/[^\\]$/ {
27668
 
                /^POTFILES =/!d
27669
 
                r po/POTFILES
27670
 
          }
27671
 
         ' "po/Makefile.in" >"po/Makefile"
27672
 
    rm -f "po/Makefile.tmp"
27673
 
    mv "po/stamp-it.tmp" "po/stamp-it"
27674
 
   ;;
27675
38030
 
27676
38031
  esac
27677
38032
done # for ac_tag
27687
38042
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27688
38043
   { (exit 1); exit 1; }; }
27689
38044
 
 
38045
 test -f config.h || ln -s rrd_config.h config.h
27690
38046
 
27691
38047
# configure is writing to config.log, and then calls config.status.
27692
38048
# config.status does its own redirection, appending to config.log.
27745
38101
echo "          Ruby Modules: $COMP_RUBY"
27746
38102
echo "           Ruby Binary: $RUBY"
27747
38103
echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
 
38104
echo "    Build Lua Bindings: $enable_lua"
 
38105
if test "$enable_lua" = "yes"; then
 
38106
echo "            Lua Binary: $LUA"
 
38107
echo "           Lua Version: $lua_version"
 
38108
echo "     Lua C-modules dir: $LUA_INSTALL_CMOD"
 
38109
if test "$lua_need_compat51" = "1"; then
 
38110
echo "   Lua Lua-modules dir: $LUA_INSTALL_LMOD"
 
38111
fi
 
38112
fi
27748
38113
echo "    Build Tcl Bindings: $enable_tcl"
27749
38114
echo " Build Python Bindings: $enable_python"
27750
38115
echo "          Build rrdcgi: $enable_rrdcgi"
27751
38116
echo "       Build librrd MT: $enable_pthread"
27752
 
echo "     Link with libintl: $enable_libintl"
 
38117
echo "           Use gettext: $USE_NLS"
 
38118
echo "           With libDBI: $have_libdbi"
27753
38119
echo
27754
38120
echo "             Libraries: $ALL_LIBS"
27755
38121
echo