~ubuntu-branches/ubuntu/edgy/ggz-client-libs/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut, Josef Spillner, Peter Eisentraut
  • Date: 2006-09-09 13:37:14 UTC
  • mfrom: (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060909133714-q49a9kvjfkc0wcc3
Tags: 0.0.13-3
[ Josef Spillner ]
* Change ggzcore-bin dependency from ggzmod to recommends from ggzcore
  (closes: #384671).

[ Peter Eisentraut ]
* Make package dependencies binNMU-safe through use of ${binary:Version}
  (closes: #386126)

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.58 for GGZ Client Libs 0.0.7.
 
3
# Generated by GNU Autoconf 2.59 for GGZ client libraries 0.0.13.
4
4
#
5
 
# Report bugs to <ggz-dev@lists.sourceforge.org>.
 
5
# Report bugs to <ggz-dev@mail.ggzgamingzone.org>.
6
6
#
7
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
8
# This configure script is free software; the Free Software Foundation
421
421
: ${ac_max_here_lines=38}
422
422
 
423
423
# Identity of this package.
424
 
PACKAGE_NAME='GGZ Client Libs'
 
424
PACKAGE_NAME='GGZ client libraries'
425
425
PACKAGE_TARNAME='ggz-client-libs'
426
 
PACKAGE_VERSION='0.0.7'
427
 
PACKAGE_STRING='GGZ Client Libs 0.0.7'
428
 
PACKAGE_BUGREPORT='ggz-dev@lists.sourceforge.org'
 
426
PACKAGE_VERSION='0.0.13'
 
427
PACKAGE_STRING='GGZ client libraries 0.0.13'
 
428
PACKAGE_BUGREPORT='ggz-dev@mail.ggzgamingzone.org'
429
429
 
430
430
ac_unique_file="configure.ac"
431
431
# Factoring default headers for most tests.
465
465
# include <unistd.h>
466
466
#endif"
467
467
 
468
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL libggz_libraries libggz_includes LIBGGZ_INCLUDES LIBGGZ_LDFLAGS LIB_GGZ ggzconfdir ggzlibdir ggzdatadir popt_LIBS expat_LIBS LIBOBJS LTLIBOBJS'
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL libggz_libraries libggz_includes LIBGGZ_INCLUDES LIBGGZ_LDFLAGS LIB_GGZ GETTEXT MSGFMT MSGMERGE LIBICONV XGETTEXT GMSGFMT LIBEXPAT ggzconfdir ggzexecmoddir ggzdatadir packagesrcdir LIBOBJS LTLIBOBJS'
469
469
ac_subst_files=''
470
470
 
471
471
# Initialize some variables set by options.
922
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
 
ac_env_CPP_set=${CPP+set}
926
 
ac_env_CPP_value=$CPP
927
 
ac_cv_env_CPP_set=${CPP+set}
928
 
ac_cv_env_CPP_value=$CPP
929
925
ac_env_CXX_set=${CXX+set}
930
926
ac_env_CXX_value=$CXX
931
927
ac_cv_env_CXX_set=${CXX+set}
934
930
ac_env_CXXFLAGS_value=$CXXFLAGS
935
931
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
932
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_env_CPP_set=${CPP+set}
 
934
ac_env_CPP_value=$CPP
 
935
ac_cv_env_CPP_set=${CPP+set}
 
936
ac_cv_env_CPP_value=$CPP
937
937
ac_env_CXXCPP_set=${CXXCPP+set}
938
938
ac_env_CXXCPP_value=$CXXCPP
939
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
954
954
  # Omit some internal or obsolete options to make the list less imposing.
955
955
  # This message is too long to be a string in the A/UX 3.1 sh.
956
956
  cat <<_ACEOF
957
 
\`configure' configures GGZ Client Libs 0.0.7 to adapt to many kinds of systems.
 
957
\`configure' configures GGZ client libraries 0.0.13 to adapt to many kinds of systems.
958
958
 
959
959
Usage: $0 [OPTION]... [VAR=VALUE]...
960
960
 
1020
1020
 
1021
1021
if test -n "$ac_init_help"; then
1022
1022
  case $ac_init_help in
1023
 
     short | recursive ) echo "Configuration of GGZ Client Libs 0.0.7:";;
 
1023
     short | recursive ) echo "Configuration of GGZ client libraries 0.0.13:";;
1024
1024
   esac
1025
1025
  cat <<\_ACEOF
1026
1026
 
1027
1027
Optional Features:
1028
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1031
 
                          (and sometimes confusing) to the casual installer
1032
 
  --disable-dependency-tracking Speeds up one-time builds
1033
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1030
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1031
                          (and sometimes confusing) to the casual installer
 
1032
  --disable-dependency-tracking  speeds up one-time build
 
1033
  --enable-dependency-tracking   do not reject slow dependency extractors
1034
1034
  --enable-shared[=PKGS]
1035
1035
                          build shared libraries [default=yes]
1036
1036
  --enable-static[=PKGS]
1038
1038
  --enable-fast-install[=PKGS]
1039
1039
                          optimize for fast installation [default=yes]
1040
1040
  --disable-libtool-lock  avoid locking (might break parallel builds)
1041
 
  --enable-debug          enable debugging [default=yes]
 
1041
  --disable-debug         disable basic debugging
1042
1042
  --enable-debug-gdb      enable GDB debugging
1043
1043
  --enable-debug-mem      enable mem debugging
1044
1044
 
1050
1050
                          both]
1051
1051
  --with-tags[=TAGS]
1052
1052
                          include additional configurations [automatic]
1053
 
  --with-ggz-dir=DIR      libggz installation prefix
1054
 
  --with-ggz-inc=DIR      path to the libggz includes
1055
 
  --with-ggz-lib=DIR      path to the libggz libraries
1056
 
  --with-replace-ggz=ARG  replace ggz with ARG in all default paths
1057
 
  --with-ggzconfdir=DIR   path to game registry files [PREFIX/etc/ggz]
1058
 
  --with-ggzlibdir=DIR    path to architecture-dependent games files
1059
 
                          [EPREFIX/lib/ggz]
1060
 
  --with-ggzdatadir=DIR   path to architecture-independent games files
1061
 
                          [PREFIX/share/ggz]
 
1053
  --with-libggz-dir=DIR   libggz installation prefix
 
1054
  --with-libggz-includes=DIR
 
1055
                          where the libggz includes are
 
1056
  --with-libggz-libraries=DIR
 
1057
                          where the libggz libs are
 
1058
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1062
1059
 
1063
1060
Some influential environment variables:
1064
1061
  CC          C compiler command
1067
1064
              nonstandard directory <lib dir>
1068
1065
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069
1066
              headers in a nonstandard directory <include dir>
1070
 
  CPP         C preprocessor
1071
1067
  CXX         C++ compiler command
1072
1068
  CXXFLAGS    C++ compiler flags
 
1069
  CPP         C preprocessor
1073
1070
  CXXCPP      C++ preprocessor
1074
1071
  F77         Fortran 77 compiler command
1075
1072
  FFLAGS      Fortran 77 compiler flags
1077
1074
Use these variables to override the choices made by `configure' or to help
1078
1075
it to find libraries and programs with nonstandard names/locations.
1079
1076
 
1080
 
Report bugs to <ggz-dev@lists.sourceforge.org>.
 
1077
Report bugs to <ggz-dev@mail.ggzgamingzone.org>.
1081
1078
_ACEOF
1082
1079
fi
1083
1080
 
1173
1170
test -n "$ac_init_help" && exit 0
1174
1171
if $ac_init_version; then
1175
1172
  cat <<\_ACEOF
1176
 
GGZ Client Libs configure 0.0.7
1177
 
generated by GNU Autoconf 2.58
 
1173
GGZ client libraries configure 0.0.13
 
1174
generated by GNU Autoconf 2.59
1178
1175
 
1179
1176
Copyright (C) 2003 Free Software Foundation, Inc.
1180
1177
This configure script is free software; the Free Software Foundation
1187
1184
This file contains any messages produced by compilers while
1188
1185
running configure, to aid debugging if configure makes a mistake.
1189
1186
 
1190
 
It was created by GGZ Client Libs $as_me 0.0.7, which was
1191
 
generated by GNU Autoconf 2.58.  Invocation command line was
 
1187
It was created by GGZ client libraries $as_me 0.0.13, which was
 
1188
generated by GNU Autoconf 2.59.  Invocation command line was
1192
1189
 
1193
1190
  $ $0 $@
1194
1191
 
1524
1521
 
1525
1522
 
1526
1523
 
1527
 
am__api_version="1.7"
 
1524
          ac_config_headers="$ac_config_headers config.h"
 
1525
 
 
1526
am__api_version="1.9"
1528
1527
ac_aux_dir=
1529
1528
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
1529
  if test -f $ac_dir/install-sh; then
1687
1686
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1688
1687
rm conftest.sed
1689
1688
 
1690
 
 
1691
1689
# expand $ac_aux_dir to an absolute path
1692
1690
am_aux_dir=`cd $ac_aux_dir && pwd`
1693
1691
 
1701
1699
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702
1700
fi
1703
1701
 
 
1702
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1703
  # We used to keeping the `.' as first argument, in order to
 
1704
  # allow $(mkdir_p) to be used without argument.  As in
 
1705
  #   $(mkdir_p) $(somedir)
 
1706
  # where $(somedir) is conditionally defined.  However this is wrong
 
1707
  # for two reasons:
 
1708
  #  1. if the package is installed by a user who cannot write `.'
 
1709
  #     make install will fail,
 
1710
  #  2. the above comment should most certainly read
 
1711
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1712
  #     so it does not work when $(somedir) is undefined and
 
1713
  #     $(DESTDIR) is not.
 
1714
  #  To support the latter case, we have to write
 
1715
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1716
  #  so the `.' trick is pointless.
 
1717
  mkdir_p='mkdir -p --'
 
1718
else
 
1719
  # On NextStep and OpenStep, the `mkdir' command does not
 
1720
  # recognize any option.  It will interpret all options as
 
1721
  # directories to create, and then abort because `.' already
 
1722
  # exists.
 
1723
  for d in ./-p ./--version;
 
1724
  do
 
1725
    test -d $d && rmdir $d
 
1726
  done
 
1727
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1728
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1729
    mkdir_p='$(mkinstalldirs)'
 
1730
  else
 
1731
    mkdir_p='$(install_sh) -d'
 
1732
  fi
 
1733
fi
 
1734
 
1704
1735
for ac_prog in gawk mawk nawk awk
1705
1736
do
1706
1737
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1779
1810
fi
1780
1811
rmdir .tst 2>/dev/null
1781
1812
 
1782
 
 # test to see if srcdir already configured
 
1813
# test to see if srcdir already configured
1783
1814
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1784
1815
   test -f $srcdir/config.status; then
1785
1816
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799
1830
 
1800
1831
# Define the identity of the package.
1801
1832
 PACKAGE='ggz-client-libs'
1802
 
 VERSION='0.0.7'
1803
 
 
 
1833
 VERSION='0.0.13'
 
1834
 
 
1835
 
 
1836
cat >>confdefs.h <<_ACEOF
 
1837
#define PACKAGE "$PACKAGE"
 
1838
_ACEOF
 
1839
 
 
1840
 
 
1841
cat >>confdefs.h <<_ACEOF
 
1842
#define VERSION "$VERSION"
 
1843
_ACEOF
1804
1844
 
1805
1845
# Some tools Automake needs.
1806
1846
 
1818
1858
 
1819
1859
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1820
1860
 
1821
 
 
1822
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1823
 
 
1824
1861
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1825
1862
 
1826
1863
# Installed binaries are usually stripped using `strip' when the user
1913
1950
 
1914
1951
# We need awk for the "check" target.  The system "awk" is bad on
1915
1952
# some platforms.
1916
 
 
1917
 
 
1918
 
 
1919
 
          ac_config_headers="$ac_config_headers config.h"
 
1953
# Always define AMTAR for backward compatibility.
 
1954
 
 
1955
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1956
 
 
1957
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1958
 
 
1959
 
 
1960
 
 
1961
 
1920
1962
 
1921
1963
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1922
1964
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1944
1986
 
1945
1987
 
1946
1988
 
 
1989
# Check for standard build environment
 
1990
# ====================================
1947
1991
ac_ext=c
1948
1992
ac_cpp='$CPP $CPPFLAGS'
1949
1993
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974
3018
    : > sub/conftest.c
2975
3019
    for i in 1 2 3 4 5 6; do
2976
3020
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2977
 
      : > sub/conftst$i.h
 
3021
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3022
      # Solaris 8's {/usr,}/bin/sh.
 
3023
      touch sub/conftst$i.h
2978
3024
    done
2979
3025
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2980
3026
 
3002
3048
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3003
3049
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3004
3050
      # icc doesn't choke on unknown options, it will just issue warnings
3005
 
      # (even with -Werror).  So we grep stderr for any message
3006
 
      # that says an option was ignored.
3007
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3051
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3052
      # that says an option was ignored or not supported.
 
3053
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3054
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3055
      # The diagnosis changed in icc 8.0:
 
3056
      #   icc: Command line remark: option '-MP' not supported
 
3057
      if (grep 'ignoring option' conftest.err ||
 
3058
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3008
3059
        am_cv_CC_dependencies_compiler_type=$depmode
3009
3060
        break
3010
3061
      fi
3035
3086
fi
3036
3087
 
3037
3088
 
3038
 
 
3039
 
 
3040
 
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3041
 
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3042
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3043
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3044
 
else
3045
 
  ac_check_lib_save_LIBS=$LIBS
3046
 
LIBS="-lcposix  $LIBS"
3047
 
cat >conftest.$ac_ext <<_ACEOF
 
3089
ac_ext=cc
 
3090
ac_cpp='$CXXCPP $CPPFLAGS'
 
3091
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3092
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3093
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3094
if test -n "$ac_tool_prefix"; then
 
3095
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3096
  do
 
3097
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3098
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3099
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3101
if test "${ac_cv_prog_CXX+set}" = set; then
 
3102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3103
else
 
3104
  if test -n "$CXX"; then
 
3105
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3106
else
 
3107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3108
for as_dir in $PATH
 
3109
do
 
3110
  IFS=$as_save_IFS
 
3111
  test -z "$as_dir" && as_dir=.
 
3112
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3113
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3114
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3116
    break 2
 
3117
  fi
 
3118
done
 
3119
done
 
3120
 
 
3121
fi
 
3122
fi
 
3123
CXX=$ac_cv_prog_CXX
 
3124
if test -n "$CXX"; then
 
3125
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3126
echo "${ECHO_T}$CXX" >&6
 
3127
else
 
3128
  echo "$as_me:$LINENO: result: no" >&5
 
3129
echo "${ECHO_T}no" >&6
 
3130
fi
 
3131
 
 
3132
    test -n "$CXX" && break
 
3133
  done
 
3134
fi
 
3135
if test -z "$CXX"; then
 
3136
  ac_ct_CXX=$CXX
 
3137
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3138
do
 
3139
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3140
set dummy $ac_prog; ac_word=$2
 
3141
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3142
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3143
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3145
else
 
3146
  if test -n "$ac_ct_CXX"; then
 
3147
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3148
else
 
3149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3150
for as_dir in $PATH
 
3151
do
 
3152
  IFS=$as_save_IFS
 
3153
  test -z "$as_dir" && as_dir=.
 
3154
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3155
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3156
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3157
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3158
    break 2
 
3159
  fi
 
3160
done
 
3161
done
 
3162
 
 
3163
fi
 
3164
fi
 
3165
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3166
if test -n "$ac_ct_CXX"; then
 
3167
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3168
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3169
else
 
3170
  echo "$as_me:$LINENO: result: no" >&5
 
3171
echo "${ECHO_T}no" >&6
 
3172
fi
 
3173
 
 
3174
  test -n "$ac_ct_CXX" && break
 
3175
done
 
3176
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3177
 
 
3178
  CXX=$ac_ct_CXX
 
3179
fi
 
3180
 
 
3181
 
 
3182
# Provide some information about the compiler.
 
3183
echo "$as_me:$LINENO:" \
 
3184
     "checking for C++ compiler version" >&5
 
3185
ac_compiler=`set X $ac_compile; echo $2`
 
3186
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3187
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3188
  ac_status=$?
 
3189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3190
  (exit $ac_status); }
 
3191
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3192
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3193
  ac_status=$?
 
3194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3195
  (exit $ac_status); }
 
3196
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3197
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3198
  ac_status=$?
 
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); }
 
3201
 
 
3202
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3203
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3204
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3206
else
 
3207
  cat >conftest.$ac_ext <<_ACEOF
3048
3208
/* confdefs.h.  */
3049
3209
_ACEOF
3050
3210
cat confdefs.h >>conftest.$ac_ext
3051
3211
cat >>conftest.$ac_ext <<_ACEOF
3052
3212
/* end confdefs.h.  */
3053
3213
 
3054
 
/* Override any gcc2 internal prototype to avoid an error.  */
3055
 
#ifdef __cplusplus
3056
 
extern "C"
 
3214
int
 
3215
main ()
 
3216
{
 
3217
#ifndef __GNUC__
 
3218
       choke me
3057
3219
#endif
3058
 
/* We use char because int might match the return type of a gcc2
3059
 
   builtin and then its argument prototype would still apply.  */
3060
 
char strerror ();
3061
 
int
3062
 
main ()
3063
 
{
3064
 
strerror ();
3065
 
  ;
3066
 
  return 0;
3067
 
}
3068
 
_ACEOF
3069
 
rm -f conftest.$ac_objext conftest$ac_exeext
3070
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071
 
  (eval $ac_link) 2>conftest.er1
3072
 
  ac_status=$?
3073
 
  grep -v '^ *+' conftest.er1 >conftest.err
3074
 
  rm -f conftest.er1
3075
 
  cat conftest.err >&5
3076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
 
  (exit $ac_status); } &&
3078
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3079
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080
 
  (eval $ac_try) 2>&5
3081
 
  ac_status=$?
3082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
 
  (exit $ac_status); }; } &&
3084
 
         { ac_try='test -s conftest$ac_exeext'
3085
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086
 
  (eval $ac_try) 2>&5
3087
 
  ac_status=$?
3088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089
 
  (exit $ac_status); }; }; then
3090
 
  ac_cv_lib_cposix_strerror=yes
3091
 
else
3092
 
  echo "$as_me: failed program was:" >&5
3093
 
sed 's/^/| /' conftest.$ac_ext >&5
3094
 
 
3095
 
ac_cv_lib_cposix_strerror=no
3096
 
fi
3097
 
rm -f conftest.err conftest.$ac_objext \
3098
 
      conftest$ac_exeext conftest.$ac_ext
3099
 
LIBS=$ac_check_lib_save_LIBS
3100
 
fi
3101
 
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3102
 
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3103
 
if test $ac_cv_lib_cposix_strerror = yes; then
3104
 
  LIBS="$LIBS -lcposix"
3105
 
fi
3106
 
 
 
3220
 
 
3221
  ;
 
3222
  return 0;
 
3223
}
 
3224
_ACEOF
 
3225
rm -f conftest.$ac_objext
 
3226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3227
  (eval $ac_compile) 2>conftest.er1
 
3228
  ac_status=$?
 
3229
  grep -v '^ *+' conftest.er1 >conftest.err
 
3230
  rm -f conftest.er1
 
3231
  cat conftest.err >&5
 
3232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3233
  (exit $ac_status); } &&
 
3234
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3236
  (eval $ac_try) 2>&5
 
3237
  ac_status=$?
 
3238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3239
  (exit $ac_status); }; } &&
 
3240
         { ac_try='test -s conftest.$ac_objext'
 
3241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3242
  (eval $ac_try) 2>&5
 
3243
  ac_status=$?
 
3244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3245
  (exit $ac_status); }; }; then
 
3246
  ac_compiler_gnu=yes
 
3247
else
 
3248
  echo "$as_me: failed program was:" >&5
 
3249
sed 's/^/| /' conftest.$ac_ext >&5
 
3250
 
 
3251
ac_compiler_gnu=no
 
3252
fi
 
3253
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3254
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3255
 
 
3256
fi
 
3257
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3258
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3259
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3260
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3261
ac_save_CXXFLAGS=$CXXFLAGS
 
3262
CXXFLAGS="-g"
 
3263
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3264
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3265
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3267
else
 
3268
  cat >conftest.$ac_ext <<_ACEOF
 
3269
/* confdefs.h.  */
 
3270
_ACEOF
 
3271
cat confdefs.h >>conftest.$ac_ext
 
3272
cat >>conftest.$ac_ext <<_ACEOF
 
3273
/* end confdefs.h.  */
 
3274
 
 
3275
int
 
3276
main ()
 
3277
{
 
3278
 
 
3279
  ;
 
3280
  return 0;
 
3281
}
 
3282
_ACEOF
 
3283
rm -f conftest.$ac_objext
 
3284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3285
  (eval $ac_compile) 2>conftest.er1
 
3286
  ac_status=$?
 
3287
  grep -v '^ *+' conftest.er1 >conftest.err
 
3288
  rm -f conftest.er1
 
3289
  cat conftest.err >&5
 
3290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3291
  (exit $ac_status); } &&
 
3292
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3294
  (eval $ac_try) 2>&5
 
3295
  ac_status=$?
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); }; } &&
 
3298
         { ac_try='test -s conftest.$ac_objext'
 
3299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3300
  (eval $ac_try) 2>&5
 
3301
  ac_status=$?
 
3302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3303
  (exit $ac_status); }; }; then
 
3304
  ac_cv_prog_cxx_g=yes
 
3305
else
 
3306
  echo "$as_me: failed program was:" >&5
 
3307
sed 's/^/| /' conftest.$ac_ext >&5
 
3308
 
 
3309
ac_cv_prog_cxx_g=no
 
3310
fi
 
3311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3312
fi
 
3313
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3314
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3315
if test "$ac_test_CXXFLAGS" = set; then
 
3316
  CXXFLAGS=$ac_save_CXXFLAGS
 
3317
elif test $ac_cv_prog_cxx_g = yes; then
 
3318
  if test "$GXX" = yes; then
 
3319
    CXXFLAGS="-g -O2"
 
3320
  else
 
3321
    CXXFLAGS="-g"
 
3322
  fi
 
3323
else
 
3324
  if test "$GXX" = yes; then
 
3325
    CXXFLAGS="-O2"
 
3326
  else
 
3327
    CXXFLAGS=
 
3328
  fi
 
3329
fi
 
3330
for ac_declaration in \
 
3331
   '' \
 
3332
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3333
   'extern "C" void std::exit (int); using std::exit;' \
 
3334
   'extern "C" void exit (int) throw ();' \
 
3335
   'extern "C" void exit (int);' \
 
3336
   'void exit (int);'
 
3337
do
 
3338
  cat >conftest.$ac_ext <<_ACEOF
 
3339
/* confdefs.h.  */
 
3340
_ACEOF
 
3341
cat confdefs.h >>conftest.$ac_ext
 
3342
cat >>conftest.$ac_ext <<_ACEOF
 
3343
/* end confdefs.h.  */
 
3344
$ac_declaration
 
3345
#include <stdlib.h>
 
3346
int
 
3347
main ()
 
3348
{
 
3349
exit (42);
 
3350
  ;
 
3351
  return 0;
 
3352
}
 
3353
_ACEOF
 
3354
rm -f conftest.$ac_objext
 
3355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3356
  (eval $ac_compile) 2>conftest.er1
 
3357
  ac_status=$?
 
3358
  grep -v '^ *+' conftest.er1 >conftest.err
 
3359
  rm -f conftest.er1
 
3360
  cat conftest.err >&5
 
3361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3362
  (exit $ac_status); } &&
 
3363
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3365
  (eval $ac_try) 2>&5
 
3366
  ac_status=$?
 
3367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3368
  (exit $ac_status); }; } &&
 
3369
         { ac_try='test -s conftest.$ac_objext'
 
3370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3371
  (eval $ac_try) 2>&5
 
3372
  ac_status=$?
 
3373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3374
  (exit $ac_status); }; }; then
 
3375
  :
 
3376
else
 
3377
  echo "$as_me: failed program was:" >&5
 
3378
sed 's/^/| /' conftest.$ac_ext >&5
 
3379
 
 
3380
continue
 
3381
fi
 
3382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3383
  cat >conftest.$ac_ext <<_ACEOF
 
3384
/* confdefs.h.  */
 
3385
_ACEOF
 
3386
cat confdefs.h >>conftest.$ac_ext
 
3387
cat >>conftest.$ac_ext <<_ACEOF
 
3388
/* end confdefs.h.  */
 
3389
$ac_declaration
 
3390
int
 
3391
main ()
 
3392
{
 
3393
exit (42);
 
3394
  ;
 
3395
  return 0;
 
3396
}
 
3397
_ACEOF
 
3398
rm -f conftest.$ac_objext
 
3399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3400
  (eval $ac_compile) 2>conftest.er1
 
3401
  ac_status=$?
 
3402
  grep -v '^ *+' conftest.er1 >conftest.err
 
3403
  rm -f conftest.er1
 
3404
  cat conftest.err >&5
 
3405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3406
  (exit $ac_status); } &&
 
3407
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3409
  (eval $ac_try) 2>&5
 
3410
  ac_status=$?
 
3411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3412
  (exit $ac_status); }; } &&
 
3413
         { ac_try='test -s conftest.$ac_objext'
 
3414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3415
  (eval $ac_try) 2>&5
 
3416
  ac_status=$?
 
3417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3418
  (exit $ac_status); }; }; then
 
3419
  break
 
3420
else
 
3421
  echo "$as_me: failed program was:" >&5
 
3422
sed 's/^/| /' conftest.$ac_ext >&5
 
3423
 
 
3424
fi
 
3425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3426
done
 
3427
rm -f conftest*
 
3428
if test -n "$ac_declaration"; then
 
3429
  echo '#ifdef __cplusplus' >>confdefs.h
 
3430
  echo $ac_declaration      >>confdefs.h
 
3431
  echo '#endif'             >>confdefs.h
 
3432
fi
 
3433
 
 
3434
ac_ext=c
 
3435
ac_cpp='$CPP $CPPFLAGS'
 
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3439
 
 
3440
depcc="$CXX"  am_compiler_list=
 
3441
 
 
3442
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3443
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3444
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3446
else
 
3447
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3448
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3449
  # making bogus files that we don't know about and never remove.  For
 
3450
  # instance it was reported that on HP-UX the gcc test will end up
 
3451
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3452
  # in D'.
 
3453
  mkdir conftest.dir
 
3454
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3455
  # using a relative directory.
 
3456
  cp "$am_depcomp" conftest.dir
 
3457
  cd conftest.dir
 
3458
  # We will build objects and dependencies in a subdirectory because
 
3459
  # it helps to detect inapplicable dependency modes.  For instance
 
3460
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3461
  # side effect of compilation, but ICC will put the dependencies in
 
3462
  # the current directory while Tru64 will put them in the object
 
3463
  # directory.
 
3464
  mkdir sub
 
3465
 
 
3466
  am_cv_CXX_dependencies_compiler_type=none
 
3467
  if test "$am_compiler_list" = ""; then
 
3468
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3469
  fi
 
3470
  for depmode in $am_compiler_list; do
 
3471
    # Setup a source with many dependencies, because some compilers
 
3472
    # like to wrap large dependency lists on column 80 (with \), and
 
3473
    # we should not choose a depcomp mode which is confused by this.
 
3474
    #
 
3475
    # We need to recreate these files for each test, as the compiler may
 
3476
    # overwrite some of them when testing with obscure command lines.
 
3477
    # This happens at least with the AIX C compiler.
 
3478
    : > sub/conftest.c
 
3479
    for i in 1 2 3 4 5 6; do
 
3480
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3481
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3482
      # Solaris 8's {/usr,}/bin/sh.
 
3483
      touch sub/conftst$i.h
 
3484
    done
 
3485
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3486
 
 
3487
    case $depmode in
 
3488
    nosideeffect)
 
3489
      # after this tag, mechanisms are not by side-effect, so they'll
 
3490
      # only be used when explicitly requested
 
3491
      if test "x$enable_dependency_tracking" = xyes; then
 
3492
        continue
 
3493
      else
 
3494
        break
 
3495
      fi
 
3496
      ;;
 
3497
    none) break ;;
 
3498
    esac
 
3499
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3500
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3501
    # handle `-M -o', and we need to detect this.
 
3502
    if depmode=$depmode \
 
3503
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3504
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3505
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3506
         >/dev/null 2>conftest.err &&
 
3507
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3508
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3509
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3510
      # icc doesn't choke on unknown options, it will just issue warnings
 
3511
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3512
      # that says an option was ignored or not supported.
 
3513
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3514
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3515
      # The diagnosis changed in icc 8.0:
 
3516
      #   icc: Command line remark: option '-MP' not supported
 
3517
      if (grep 'ignoring option' conftest.err ||
 
3518
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3519
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3520
        break
 
3521
      fi
 
3522
    fi
 
3523
  done
 
3524
 
 
3525
  cd ..
 
3526
  rm -rf conftest.dir
 
3527
else
 
3528
  am_cv_CXX_dependencies_compiler_type=none
 
3529
fi
 
3530
 
 
3531
fi
 
3532
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3533
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3534
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3535
 
 
3536
 
 
3537
 
 
3538
if
 
3539
  test "x$enable_dependency_tracking" != xno \
 
3540
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3541
  am__fastdepCXX_TRUE=
 
3542
  am__fastdepCXX_FALSE='#'
 
3543
else
 
3544
  am__fastdepCXX_TRUE='#'
 
3545
  am__fastdepCXX_FALSE=
 
3546
fi
3107
3547
 
3108
3548
 
3109
3549
# Find a good install program.  We prefer a C program (faster),
3420
3860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3861
 
3422
3862
 
3423
 
echo "$as_me:$LINENO: checking for egrep" >&5
3424
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3425
 
if test "${ac_cv_prog_egrep+set}" = set; then
3426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3427
 
else
3428
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3429
 
    then ac_cv_prog_egrep='grep -E'
3430
 
    else ac_cv_prog_egrep='egrep'
3431
 
    fi
3432
 
fi
3433
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3434
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3435
 
 EGREP=$ac_cv_prog_egrep
3436
 
 
3437
 
 
3438
 
 
3439
 
echo "$as_me:$LINENO: checking for AIX" >&5
3440
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3441
 
cat >conftest.$ac_ext <<_ACEOF
3442
 
/* confdefs.h.  */
3443
 
_ACEOF
3444
 
cat confdefs.h >>conftest.$ac_ext
3445
 
cat >>conftest.$ac_ext <<_ACEOF
3446
 
/* end confdefs.h.  */
3447
 
#ifdef _AIX
3448
 
  yes
3449
 
#endif
3450
 
 
3451
 
_ACEOF
3452
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453
 
  $EGREP "yes" >/dev/null 2>&1; then
3454
 
  echo "$as_me:$LINENO: result: yes" >&5
3455
 
echo "${ECHO_T}yes" >&6
3456
 
cat >>confdefs.h <<\_ACEOF
3457
 
#define _ALL_SOURCE 1
3458
 
_ACEOF
3459
 
 
3460
 
else
3461
 
  echo "$as_me:$LINENO: result: no" >&5
3462
 
echo "${ECHO_T}no" >&6
3463
 
fi
3464
 
rm -f conftest*
3465
 
 
3466
 
 
3467
 
 
3468
 
cat >>confdefs.h <<\_ACEOF
3469
 
#define _GNU_SOURCE 1
3470
 
_ACEOF
3471
 
 
3472
 
 
3473
 
ac_ext=c
3474
 
ac_cpp='$CPP $CPPFLAGS'
3475
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3479
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3480
 
# On Suns, sometimes $CPP names a directory.
3481
 
if test -n "$CPP" && test -d "$CPP"; then
3482
 
  CPP=
3483
 
fi
3484
 
if test -z "$CPP"; then
3485
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3486
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3487
 
else
3488
 
      # Double quotes because CPP needs to be expanded
3489
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3490
 
    do
3491
 
      ac_preproc_ok=false
3492
 
for ac_c_preproc_warn_flag in '' yes
3493
 
do
3494
 
  # Use a header file that comes with gcc, so configuring glibc
3495
 
  # with a fresh cross-compiler works.
3496
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497
 
  # <limits.h> exists even on freestanding compilers.
3498
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3499
 
  # not just through cpp. "Syntax error" is here to catch this case.
3500
 
  cat >conftest.$ac_ext <<_ACEOF
3501
 
/* confdefs.h.  */
3502
 
_ACEOF
3503
 
cat confdefs.h >>conftest.$ac_ext
3504
 
cat >>conftest.$ac_ext <<_ACEOF
3505
 
/* end confdefs.h.  */
3506
 
#ifdef __STDC__
3507
 
# include <limits.h>
3508
 
#else
3509
 
# include <assert.h>
3510
 
#endif
3511
 
                     Syntax error
3512
 
_ACEOF
3513
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
 
  (exit $ac_status); } >/dev/null; then
3521
 
  if test -s conftest.err; then
3522
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3523
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524
 
  else
3525
 
    ac_cpp_err=
3526
 
  fi
3527
 
else
3528
 
  ac_cpp_err=yes
3529
 
fi
3530
 
if test -z "$ac_cpp_err"; then
3531
 
  :
3532
 
else
3533
 
  echo "$as_me: failed program was:" >&5
3534
 
sed 's/^/| /' conftest.$ac_ext >&5
3535
 
 
3536
 
  # Broken: fails on valid input.
3537
 
continue
3538
 
fi
3539
 
rm -f conftest.err conftest.$ac_ext
3540
 
 
3541
 
  # OK, works on sane cases.  Now check whether non-existent headers
3542
 
  # can be detected and how.
3543
 
  cat >conftest.$ac_ext <<_ACEOF
3544
 
/* confdefs.h.  */
3545
 
_ACEOF
3546
 
cat confdefs.h >>conftest.$ac_ext
3547
 
cat >>conftest.$ac_ext <<_ACEOF
3548
 
/* end confdefs.h.  */
3549
 
#include <ac_nonexistent.h>
3550
 
_ACEOF
3551
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
 
  (exit $ac_status); } >/dev/null; then
3559
 
  if test -s conftest.err; then
3560
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3561
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562
 
  else
3563
 
    ac_cpp_err=
3564
 
  fi
3565
 
else
3566
 
  ac_cpp_err=yes
3567
 
fi
3568
 
if test -z "$ac_cpp_err"; then
3569
 
  # Broken: success on invalid input.
3570
 
continue
3571
 
else
3572
 
  echo "$as_me: failed program was:" >&5
3573
 
sed 's/^/| /' conftest.$ac_ext >&5
3574
 
 
3575
 
  # Passes both tests.
3576
 
ac_preproc_ok=:
3577
 
break
3578
 
fi
3579
 
rm -f conftest.err conftest.$ac_ext
3580
 
 
3581
 
done
3582
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583
 
rm -f conftest.err conftest.$ac_ext
3584
 
if $ac_preproc_ok; then
3585
 
  break
3586
 
fi
3587
 
 
3588
 
    done
3589
 
    ac_cv_prog_CPP=$CPP
3590
 
 
3591
 
fi
3592
 
  CPP=$ac_cv_prog_CPP
3593
 
else
3594
 
  ac_cv_prog_CPP=$CPP
3595
 
fi
3596
 
echo "$as_me:$LINENO: result: $CPP" >&5
3597
 
echo "${ECHO_T}$CPP" >&6
3598
 
ac_preproc_ok=false
3599
 
for ac_c_preproc_warn_flag in '' yes
3600
 
do
3601
 
  # Use a header file that comes with gcc, so configuring glibc
3602
 
  # with a fresh cross-compiler works.
3603
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604
 
  # <limits.h> exists even on freestanding compilers.
3605
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3606
 
  # not just through cpp. "Syntax error" is here to catch this case.
3607
 
  cat >conftest.$ac_ext <<_ACEOF
3608
 
/* confdefs.h.  */
3609
 
_ACEOF
3610
 
cat confdefs.h >>conftest.$ac_ext
3611
 
cat >>conftest.$ac_ext <<_ACEOF
3612
 
/* end confdefs.h.  */
3613
 
#ifdef __STDC__
3614
 
# include <limits.h>
3615
 
#else
3616
 
# include <assert.h>
3617
 
#endif
3618
 
                     Syntax error
3619
 
_ACEOF
3620
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622
 
  ac_status=$?
3623
 
  grep -v '^ *+' conftest.er1 >conftest.err
3624
 
  rm -f conftest.er1
3625
 
  cat conftest.err >&5
3626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627
 
  (exit $ac_status); } >/dev/null; then
3628
 
  if test -s conftest.err; then
3629
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3630
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631
 
  else
3632
 
    ac_cpp_err=
3633
 
  fi
3634
 
else
3635
 
  ac_cpp_err=yes
3636
 
fi
3637
 
if test -z "$ac_cpp_err"; then
3638
 
  :
3639
 
else
3640
 
  echo "$as_me: failed program was:" >&5
3641
 
sed 's/^/| /' conftest.$ac_ext >&5
3642
 
 
3643
 
  # Broken: fails on valid input.
3644
 
continue
3645
 
fi
3646
 
rm -f conftest.err conftest.$ac_ext
3647
 
 
3648
 
  # OK, works on sane cases.  Now check whether non-existent headers
3649
 
  # can be detected and how.
3650
 
  cat >conftest.$ac_ext <<_ACEOF
3651
 
/* confdefs.h.  */
3652
 
_ACEOF
3653
 
cat confdefs.h >>conftest.$ac_ext
3654
 
cat >>conftest.$ac_ext <<_ACEOF
3655
 
/* end confdefs.h.  */
3656
 
#include <ac_nonexistent.h>
3657
 
_ACEOF
3658
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3659
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3660
 
  ac_status=$?
3661
 
  grep -v '^ *+' conftest.er1 >conftest.err
3662
 
  rm -f conftest.er1
3663
 
  cat conftest.err >&5
3664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
 
  (exit $ac_status); } >/dev/null; then
3666
 
  if test -s conftest.err; then
3667
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3668
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3669
 
  else
3670
 
    ac_cpp_err=
3671
 
  fi
3672
 
else
3673
 
  ac_cpp_err=yes
3674
 
fi
3675
 
if test -z "$ac_cpp_err"; then
3676
 
  # Broken: success on invalid input.
3677
 
continue
3678
 
else
3679
 
  echo "$as_me: failed program was:" >&5
3680
 
sed 's/^/| /' conftest.$ac_ext >&5
3681
 
 
3682
 
  # Passes both tests.
3683
 
ac_preproc_ok=:
3684
 
break
3685
 
fi
3686
 
rm -f conftest.err conftest.$ac_ext
3687
 
 
3688
 
done
3689
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690
 
rm -f conftest.err conftest.$ac_ext
3691
 
if $ac_preproc_ok; then
3692
 
  :
3693
 
else
3694
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3695
 
See \`config.log' for more details." >&5
3696
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3697
 
See \`config.log' for more details." >&2;}
3698
 
   { (exit 1); exit 1; }; }
3699
 
fi
3700
 
 
3701
 
ac_ext=c
3702
 
ac_cpp='$CPP $CPPFLAGS'
3703
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
 
 
3707
 
 
3708
 
 
3709
 
 
3710
 
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3711
 
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3712
 
if test "${am_cv_prog_cc_stdc+set}" = set; then
3713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3714
 
else
3715
 
  am_cv_prog_cc_stdc=no
3716
 
ac_save_CC="$CC"
3717
 
# Don't try gcc -ansi; that turns off useful extensions and
3718
 
# breaks some systems' header files.
3719
 
# AIX                   -qlanglvl=ansi
3720
 
# Ultrix and OSF/1      -std1
3721
 
# HP-UX 10.20 and later -Ae
3722
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3723
 
# SVR4                  -Xc -D__EXTENSIONS__
3724
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725
 
do
3726
 
  CC="$ac_save_CC $ac_arg"
3727
 
  cat >conftest.$ac_ext <<_ACEOF
3728
 
/* confdefs.h.  */
3729
 
_ACEOF
3730
 
cat confdefs.h >>conftest.$ac_ext
3731
 
cat >>conftest.$ac_ext <<_ACEOF
3732
 
/* end confdefs.h.  */
3733
 
#include <stdarg.h>
3734
 
#include <stdio.h>
3735
 
#include <sys/types.h>
3736
 
#include <sys/stat.h>
3737
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3738
 
struct buf { int x; };
3739
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740
 
static char *e (p, i)
3741
 
     char **p;
3742
 
     int i;
3743
 
{
3744
 
  return p[i];
3745
 
}
3746
 
static char *f (char * (*g) (char **, int), char **p, ...)
3747
 
{
3748
 
  char *s;
3749
 
  va_list v;
3750
 
  va_start (v,p);
3751
 
  s = g (p, va_arg (v,int));
3752
 
  va_end (v);
3753
 
  return s;
3754
 
}
3755
 
int test (int i, double x);
3756
 
struct s1 {int (*f) (int a);};
3757
 
struct s2 {int (*f) (double a);};
3758
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3759
 
int argc;
3760
 
char **argv;
3761
 
 
3762
 
int
3763
 
main ()
3764
 
{
3765
 
 
3766
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3767
 
 
3768
 
  ;
3769
 
  return 0;
3770
 
}
3771
 
_ACEOF
3772
 
rm -f conftest.$ac_objext
3773
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774
 
  (eval $ac_compile) 2>conftest.er1
3775
 
  ac_status=$?
3776
 
  grep -v '^ *+' conftest.er1 >conftest.err
3777
 
  rm -f conftest.er1
3778
 
  cat conftest.err >&5
3779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
 
  (exit $ac_status); } &&
3781
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3782
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783
 
  (eval $ac_try) 2>&5
3784
 
  ac_status=$?
3785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
 
  (exit $ac_status); }; } &&
3787
 
         { ac_try='test -s conftest.$ac_objext'
3788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789
 
  (eval $ac_try) 2>&5
3790
 
  ac_status=$?
3791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
 
  (exit $ac_status); }; }; then
3793
 
  am_cv_prog_cc_stdc="$ac_arg"; break
3794
 
else
3795
 
  echo "$as_me: failed program was:" >&5
3796
 
sed 's/^/| /' conftest.$ac_ext >&5
3797
 
 
3798
 
fi
3799
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800
 
done
3801
 
CC="$ac_save_CC"
3802
 
 
3803
 
fi
3804
 
 
3805
 
if test -z "$am_cv_prog_cc_stdc"; then
3806
 
  echo "$as_me:$LINENO: result: none needed" >&5
3807
 
echo "${ECHO_T}none needed" >&6
3808
 
else
3809
 
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3810
 
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3811
 
fi
3812
 
case "x$am_cv_prog_cc_stdc" in
3813
 
  x|xno) ;;
3814
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
3815
 
esac
 
3863
 
3816
3864
 
3817
3865
# Check whether --enable-shared or --disable-shared was given.
3818
3866
if test "${enable_shared+set}" = set; then
3997
4045
echo "$as_me:$LINENO: result: $SED" >&5
3998
4046
echo "${ECHO_T}$SED" >&6
3999
4047
 
 
4048
echo "$as_me:$LINENO: checking for egrep" >&5
 
4049
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4050
if test "${ac_cv_prog_egrep+set}" = set; then
 
4051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4052
else
 
4053
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4054
    then ac_cv_prog_egrep='grep -E'
 
4055
    else ac_cv_prog_egrep='egrep'
 
4056
    fi
 
4057
fi
 
4058
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4059
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4060
 EGREP=$ac_cv_prog_egrep
 
4061
 
 
4062
 
4000
4063
 
4001
4064
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4002
4065
if test "${with_gnu_ld+set}" = set; then
4212
4275
  ;;
4213
4276
 
4214
4277
cygwin*)
4215
 
  # win32_libid is a shell function defined in ltmain.sh
 
4278
  # func_win32_libid is a shell function defined in ltmain.sh
4216
4279
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4217
 
  lt_cv_file_magic_cmd='win32_libid'
 
4280
  lt_cv_file_magic_cmd='func_win32_libid'
4218
4281
  ;;
4219
4282
 
4220
4283
mingw* | pw32*)
4221
4284
  # Base MSYS/MinGW do not provide the 'file' command needed by
4222
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
4285
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4223
4286
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4224
4287
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4225
4288
  ;;
4281
4344
  lt_cv_deplibs_check_method=pass_all
4282
4345
  ;;
4283
4346
 
4284
 
netbsd*)
 
4347
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4285
4348
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4286
4349
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4287
4350
  else
4366
4429
# Allow CC to be a program name with arguments.
4367
4430
compiler=$CC
4368
4431
 
 
4432
 
4369
4433
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4370
4434
if test "${enable_libtool_lock+set}" = set; then
4371
4435
  enableval="$enable_libtool_lock"
4397
4461
  ;;
4398
4462
*-*-irix6*)
4399
4463
  # Find out which ABI we are using.
4400
 
  echo '#line 4400 "configure"' > conftest.$ac_ext
 
4464
  echo '#line 4464 "configure"' > conftest.$ac_ext
4401
4465
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402
4466
  (eval $ac_compile) 2>&5
4403
4467
  ac_status=$?
4552
4616
    CFLAGS="$SAVE_CFLAGS"
4553
4617
  fi
4554
4618
  ;;
 
4619
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
4620
  if test -n "$ac_tool_prefix"; then
 
4621
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4622
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4623
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4625
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4627
else
 
4628
  if test -n "$DLLTOOL"; then
 
4629
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4630
else
 
4631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4632
for as_dir in $PATH
 
4633
do
 
4634
  IFS=$as_save_IFS
 
4635
  test -z "$as_dir" && as_dir=.
 
4636
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4637
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4638
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4640
    break 2
 
4641
  fi
 
4642
done
 
4643
done
 
4644
 
 
4645
fi
 
4646
fi
 
4647
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4648
if test -n "$DLLTOOL"; then
 
4649
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4650
echo "${ECHO_T}$DLLTOOL" >&6
 
4651
else
 
4652
  echo "$as_me:$LINENO: result: no" >&5
 
4653
echo "${ECHO_T}no" >&6
 
4654
fi
 
4655
 
 
4656
fi
 
4657
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4658
  ac_ct_DLLTOOL=$DLLTOOL
 
4659
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4660
set dummy dlltool; ac_word=$2
 
4661
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4663
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4665
else
 
4666
  if test -n "$ac_ct_DLLTOOL"; then
 
4667
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4668
else
 
4669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4670
for as_dir in $PATH
 
4671
do
 
4672
  IFS=$as_save_IFS
 
4673
  test -z "$as_dir" && as_dir=.
 
4674
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4676
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4678
    break 2
 
4679
  fi
 
4680
done
 
4681
done
 
4682
 
 
4683
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
4684
fi
 
4685
fi
 
4686
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4687
if test -n "$ac_ct_DLLTOOL"; then
 
4688
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4689
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4690
else
 
4691
  echo "$as_me:$LINENO: result: no" >&5
 
4692
echo "${ECHO_T}no" >&6
 
4693
fi
 
4694
 
 
4695
  DLLTOOL=$ac_ct_DLLTOOL
 
4696
else
 
4697
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4698
fi
 
4699
 
 
4700
  if test -n "$ac_tool_prefix"; then
 
4701
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4702
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4703
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4705
if test "${ac_cv_prog_AS+set}" = set; then
 
4706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4707
else
 
4708
  if test -n "$AS"; then
 
4709
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4710
else
 
4711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4712
for as_dir in $PATH
 
4713
do
 
4714
  IFS=$as_save_IFS
 
4715
  test -z "$as_dir" && as_dir=.
 
4716
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4717
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4718
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4720
    break 2
 
4721
  fi
 
4722
done
 
4723
done
 
4724
 
 
4725
fi
 
4726
fi
 
4727
AS=$ac_cv_prog_AS
 
4728
if test -n "$AS"; then
 
4729
  echo "$as_me:$LINENO: result: $AS" >&5
 
4730
echo "${ECHO_T}$AS" >&6
 
4731
else
 
4732
  echo "$as_me:$LINENO: result: no" >&5
 
4733
echo "${ECHO_T}no" >&6
 
4734
fi
 
4735
 
 
4736
fi
 
4737
if test -z "$ac_cv_prog_AS"; then
 
4738
  ac_ct_AS=$AS
 
4739
  # Extract the first word of "as", so it can be a program name with args.
 
4740
set dummy as; ac_word=$2
 
4741
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4743
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4745
else
 
4746
  if test -n "$ac_ct_AS"; then
 
4747
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4748
else
 
4749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4750
for as_dir in $PATH
 
4751
do
 
4752
  IFS=$as_save_IFS
 
4753
  test -z "$as_dir" && as_dir=.
 
4754
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4755
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4756
    ac_cv_prog_ac_ct_AS="as"
 
4757
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4758
    break 2
 
4759
  fi
 
4760
done
 
4761
done
 
4762
 
 
4763
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
4764
fi
 
4765
fi
 
4766
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4767
if test -n "$ac_ct_AS"; then
 
4768
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4769
echo "${ECHO_T}$ac_ct_AS" >&6
 
4770
else
 
4771
  echo "$as_me:$LINENO: result: no" >&5
 
4772
echo "${ECHO_T}no" >&6
 
4773
fi
 
4774
 
 
4775
  AS=$ac_ct_AS
 
4776
else
 
4777
  AS="$ac_cv_prog_AS"
 
4778
fi
 
4779
 
 
4780
  if test -n "$ac_tool_prefix"; then
 
4781
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4782
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4783
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4785
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4787
else
 
4788
  if test -n "$OBJDUMP"; then
 
4789
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4790
else
 
4791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4792
for as_dir in $PATH
 
4793
do
 
4794
  IFS=$as_save_IFS
 
4795
  test -z "$as_dir" && as_dir=.
 
4796
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4797
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4798
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4800
    break 2
 
4801
  fi
 
4802
done
 
4803
done
 
4804
 
 
4805
fi
 
4806
fi
 
4807
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4808
if test -n "$OBJDUMP"; then
 
4809
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4810
echo "${ECHO_T}$OBJDUMP" >&6
 
4811
else
 
4812
  echo "$as_me:$LINENO: result: no" >&5
 
4813
echo "${ECHO_T}no" >&6
 
4814
fi
 
4815
 
 
4816
fi
 
4817
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4818
  ac_ct_OBJDUMP=$OBJDUMP
 
4819
  # Extract the first word of "objdump", so it can be a program name with args.
 
4820
set dummy objdump; ac_word=$2
 
4821
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4823
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4825
else
 
4826
  if test -n "$ac_ct_OBJDUMP"; then
 
4827
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4828
else
 
4829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4830
for as_dir in $PATH
 
4831
do
 
4832
  IFS=$as_save_IFS
 
4833
  test -z "$as_dir" && as_dir=.
 
4834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4835
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4836
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4837
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4838
    break 2
 
4839
  fi
 
4840
done
 
4841
done
 
4842
 
 
4843
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
4844
fi
 
4845
fi
 
4846
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4847
if test -n "$ac_ct_OBJDUMP"; then
 
4848
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4849
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
4850
else
 
4851
  echo "$as_me:$LINENO: result: no" >&5
 
4852
echo "${ECHO_T}no" >&6
 
4853
fi
 
4854
 
 
4855
  OBJDUMP=$ac_ct_OBJDUMP
 
4856
else
 
4857
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4858
fi
 
4859
 
 
4860
  ;;
4555
4861
 
4556
4862
esac
4557
4863
 
4558
4864
need_locks="$enable_libtool_lock"
4559
4865
 
4560
4866
 
 
4867
 
4561
4868
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4562
4869
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4563
4870
if test "${ac_cv_header_stdc+set}" = set; then
4915
5222
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4916
5223
    (
4917
5224
      cat <<\_ASBOX
4918
 
## -------------------------------------------- ##
4919
 
## Report this to ggz-dev@lists.sourceforge.org ##
4920
 
## -------------------------------------------- ##
 
5225
## --------------------------------------------- ##
 
5226
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
5227
## --------------------------------------------- ##
4921
5228
_ASBOX
4922
5229
    ) |
4923
5230
      sed "s/^/$as_me: WARNING:     /" >&2
4948
5255
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949
5256
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950
5257
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951
 
if test -n "$ac_tool_prefix"; then
4952
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4953
 
  do
4954
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4957
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958
 
if test "${ac_cv_prog_CXX+set}" = set; then
4959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4960
 
else
4961
 
  if test -n "$CXX"; then
4962
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4963
 
else
4964
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965
 
for as_dir in $PATH
4966
 
do
4967
 
  IFS=$as_save_IFS
4968
 
  test -z "$as_dir" && as_dir=.
4969
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4970
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4972
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973
 
    break 2
4974
 
  fi
4975
 
done
4976
 
done
4977
 
 
4978
 
fi
4979
 
fi
4980
 
CXX=$ac_cv_prog_CXX
4981
 
if test -n "$CXX"; then
4982
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4983
 
echo "${ECHO_T}$CXX" >&6
4984
 
else
4985
 
  echo "$as_me:$LINENO: result: no" >&5
4986
 
echo "${ECHO_T}no" >&6
4987
 
fi
4988
 
 
4989
 
    test -n "$CXX" && break
4990
 
  done
4991
 
fi
4992
 
if test -z "$CXX"; then
4993
 
  ac_ct_CXX=$CXX
4994
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4995
 
do
4996
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4997
 
set dummy $ac_prog; ac_word=$2
4998
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4999
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5001
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5002
 
else
5003
 
  if test -n "$ac_ct_CXX"; then
5004
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5005
 
else
5006
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007
 
for as_dir in $PATH
5008
 
do
5009
 
  IFS=$as_save_IFS
5010
 
  test -z "$as_dir" && as_dir=.
5011
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5012
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5014
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015
 
    break 2
5016
 
  fi
5017
 
done
5018
 
done
5019
 
 
5020
 
fi
5021
 
fi
5022
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5023
 
if test -n "$ac_ct_CXX"; then
5024
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5025
 
echo "${ECHO_T}$ac_ct_CXX" >&6
5026
 
else
5027
 
  echo "$as_me:$LINENO: result: no" >&5
5028
 
echo "${ECHO_T}no" >&6
5029
 
fi
5030
 
 
5031
 
  test -n "$ac_ct_CXX" && break
5032
 
done
5033
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5034
 
 
5035
 
  CXX=$ac_ct_CXX
5036
 
fi
5037
 
 
5038
 
 
5039
 
# Provide some information about the compiler.
5040
 
echo "$as_me:$LINENO:" \
5041
 
     "checking for C++ compiler version" >&5
5042
 
ac_compiler=`set X $ac_compile; echo $2`
5043
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5044
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5045
 
  ac_status=$?
5046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047
 
  (exit $ac_status); }
5048
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5049
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5050
 
  ac_status=$?
5051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
 
  (exit $ac_status); }
5053
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5054
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5055
 
  ac_status=$?
5056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
 
  (exit $ac_status); }
5058
 
 
5059
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5060
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5061
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5063
 
else
5064
 
  cat >conftest.$ac_ext <<_ACEOF
5065
 
/* confdefs.h.  */
5066
 
_ACEOF
5067
 
cat confdefs.h >>conftest.$ac_ext
5068
 
cat >>conftest.$ac_ext <<_ACEOF
5069
 
/* end confdefs.h.  */
5070
 
 
5071
 
int
5072
 
main ()
5073
 
{
5074
 
#ifndef __GNUC__
5075
 
       choke me
5076
 
#endif
5077
 
 
5078
 
  ;
5079
 
  return 0;
5080
 
}
5081
 
_ACEOF
5082
 
rm -f conftest.$ac_objext
5083
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5084
 
  (eval $ac_compile) 2>conftest.er1
5085
 
  ac_status=$?
5086
 
  grep -v '^ *+' conftest.er1 >conftest.err
5087
 
  rm -f conftest.er1
5088
 
  cat conftest.err >&5
5089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
 
  (exit $ac_status); } &&
5091
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5092
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093
 
  (eval $ac_try) 2>&5
5094
 
  ac_status=$?
5095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
 
  (exit $ac_status); }; } &&
5097
 
         { ac_try='test -s conftest.$ac_objext'
5098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099
 
  (eval $ac_try) 2>&5
5100
 
  ac_status=$?
5101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102
 
  (exit $ac_status); }; }; then
5103
 
  ac_compiler_gnu=yes
5104
 
else
5105
 
  echo "$as_me: failed program was:" >&5
5106
 
sed 's/^/| /' conftest.$ac_ext >&5
5107
 
 
5108
 
ac_compiler_gnu=no
5109
 
fi
5110
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5111
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5112
 
 
5113
 
fi
5114
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5115
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5116
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5117
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5118
 
ac_save_CXXFLAGS=$CXXFLAGS
5119
 
CXXFLAGS="-g"
5120
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5121
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5122
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5123
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5124
 
else
5125
 
  cat >conftest.$ac_ext <<_ACEOF
5126
 
/* confdefs.h.  */
5127
 
_ACEOF
5128
 
cat confdefs.h >>conftest.$ac_ext
5129
 
cat >>conftest.$ac_ext <<_ACEOF
5130
 
/* end confdefs.h.  */
5131
 
 
5132
 
int
5133
 
main ()
5134
 
{
5135
 
 
5136
 
  ;
5137
 
  return 0;
5138
 
}
5139
 
_ACEOF
5140
 
rm -f conftest.$ac_objext
5141
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142
 
  (eval $ac_compile) 2>conftest.er1
5143
 
  ac_status=$?
5144
 
  grep -v '^ *+' conftest.er1 >conftest.err
5145
 
  rm -f conftest.er1
5146
 
  cat conftest.err >&5
5147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
 
  (exit $ac_status); } &&
5149
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151
 
  (eval $ac_try) 2>&5
5152
 
  ac_status=$?
5153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
 
  (exit $ac_status); }; } &&
5155
 
         { ac_try='test -s conftest.$ac_objext'
5156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157
 
  (eval $ac_try) 2>&5
5158
 
  ac_status=$?
5159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
 
  (exit $ac_status); }; }; then
5161
 
  ac_cv_prog_cxx_g=yes
5162
 
else
5163
 
  echo "$as_me: failed program was:" >&5
5164
 
sed 's/^/| /' conftest.$ac_ext >&5
5165
 
 
5166
 
ac_cv_prog_cxx_g=no
5167
 
fi
5168
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169
 
fi
5170
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5171
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5172
 
if test "$ac_test_CXXFLAGS" = set; then
5173
 
  CXXFLAGS=$ac_save_CXXFLAGS
5174
 
elif test $ac_cv_prog_cxx_g = yes; then
5175
 
  if test "$GXX" = yes; then
5176
 
    CXXFLAGS="-g -O2"
5177
 
  else
5178
 
    CXXFLAGS="-g"
5179
 
  fi
5180
 
else
5181
 
  if test "$GXX" = yes; then
5182
 
    CXXFLAGS="-O2"
5183
 
  else
5184
 
    CXXFLAGS=
5185
 
  fi
5186
 
fi
5187
 
for ac_declaration in \
5188
 
   '' \
5189
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
5190
 
   'extern "C" void std::exit (int); using std::exit;' \
5191
 
   'extern "C" void exit (int) throw ();' \
5192
 
   'extern "C" void exit (int);' \
5193
 
   'void exit (int);'
5194
 
do
5195
 
  cat >conftest.$ac_ext <<_ACEOF
5196
 
/* confdefs.h.  */
5197
 
_ACEOF
5198
 
cat confdefs.h >>conftest.$ac_ext
5199
 
cat >>conftest.$ac_ext <<_ACEOF
5200
 
/* end confdefs.h.  */
5201
 
$ac_declaration
5202
 
#include <stdlib.h>
5203
 
int
5204
 
main ()
5205
 
{
5206
 
exit (42);
5207
 
  ;
5208
 
  return 0;
5209
 
}
5210
 
_ACEOF
5211
 
rm -f conftest.$ac_objext
5212
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213
 
  (eval $ac_compile) 2>conftest.er1
5214
 
  ac_status=$?
5215
 
  grep -v '^ *+' conftest.er1 >conftest.err
5216
 
  rm -f conftest.er1
5217
 
  cat conftest.err >&5
5218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
 
  (exit $ac_status); } &&
5220
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222
 
  (eval $ac_try) 2>&5
5223
 
  ac_status=$?
5224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
 
  (exit $ac_status); }; } &&
5226
 
         { ac_try='test -s conftest.$ac_objext'
5227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228
 
  (eval $ac_try) 2>&5
5229
 
  ac_status=$?
5230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
 
  (exit $ac_status); }; }; then
5232
 
  :
5233
 
else
5234
 
  echo "$as_me: failed program was:" >&5
5235
 
sed 's/^/| /' conftest.$ac_ext >&5
5236
 
 
5237
 
continue
5238
 
fi
5239
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240
 
  cat >conftest.$ac_ext <<_ACEOF
5241
 
/* confdefs.h.  */
5242
 
_ACEOF
5243
 
cat confdefs.h >>conftest.$ac_ext
5244
 
cat >>conftest.$ac_ext <<_ACEOF
5245
 
/* end confdefs.h.  */
5246
 
$ac_declaration
5247
 
int
5248
 
main ()
5249
 
{
5250
 
exit (42);
5251
 
  ;
5252
 
  return 0;
5253
 
}
5254
 
_ACEOF
5255
 
rm -f conftest.$ac_objext
5256
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257
 
  (eval $ac_compile) 2>conftest.er1
5258
 
  ac_status=$?
5259
 
  grep -v '^ *+' conftest.er1 >conftest.err
5260
 
  rm -f conftest.er1
5261
 
  cat conftest.err >&5
5262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
 
  (exit $ac_status); } &&
5264
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266
 
  (eval $ac_try) 2>&5
5267
 
  ac_status=$?
5268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
 
  (exit $ac_status); }; } &&
5270
 
         { ac_try='test -s conftest.$ac_objext'
5271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272
 
  (eval $ac_try) 2>&5
5273
 
  ac_status=$?
5274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
 
  (exit $ac_status); }; }; then
5276
 
  break
5277
 
else
5278
 
  echo "$as_me: failed program was:" >&5
5279
 
sed 's/^/| /' conftest.$ac_ext >&5
5280
 
 
5281
 
fi
5282
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5283
 
done
5284
 
rm -f conftest*
5285
 
if test -n "$ac_declaration"; then
5286
 
  echo '#ifdef __cplusplus' >>confdefs.h
5287
 
  echo $ac_declaration      >>confdefs.h
5288
 
  echo '#endif'             >>confdefs.h
5289
 
fi
5290
 
 
5291
 
ac_ext=cc
5292
 
ac_cpp='$CXXCPP $CPPFLAGS'
5293
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5296
 
 
5297
 
depcc="$CXX"  am_compiler_list=
5298
 
 
5299
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5300
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5301
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5303
 
else
5304
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5305
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5306
 
  # making bogus files that we don't know about and never remove.  For
5307
 
  # instance it was reported that on HP-UX the gcc test will end up
5308
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5309
 
  # in D'.
5310
 
  mkdir conftest.dir
5311
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5312
 
  # using a relative directory.
5313
 
  cp "$am_depcomp" conftest.dir
5314
 
  cd conftest.dir
5315
 
  # We will build objects and dependencies in a subdirectory because
5316
 
  # it helps to detect inapplicable dependency modes.  For instance
5317
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5318
 
  # side effect of compilation, but ICC will put the dependencies in
5319
 
  # the current directory while Tru64 will put them in the object
5320
 
  # directory.
5321
 
  mkdir sub
5322
 
 
5323
 
  am_cv_CXX_dependencies_compiler_type=none
5324
 
  if test "$am_compiler_list" = ""; then
5325
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5326
 
  fi
5327
 
  for depmode in $am_compiler_list; do
5328
 
    # Setup a source with many dependencies, because some compilers
5329
 
    # like to wrap large dependency lists on column 80 (with \), and
5330
 
    # we should not choose a depcomp mode which is confused by this.
5331
 
    #
5332
 
    # We need to recreate these files for each test, as the compiler may
5333
 
    # overwrite some of them when testing with obscure command lines.
5334
 
    # This happens at least with the AIX C compiler.
5335
 
    : > sub/conftest.c
5336
 
    for i in 1 2 3 4 5 6; do
5337
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5338
 
      : > sub/conftst$i.h
5339
 
    done
5340
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5341
 
 
5342
 
    case $depmode in
5343
 
    nosideeffect)
5344
 
      # after this tag, mechanisms are not by side-effect, so they'll
5345
 
      # only be used when explicitly requested
5346
 
      if test "x$enable_dependency_tracking" = xyes; then
5347
 
        continue
5348
 
      else
5349
 
        break
5350
 
      fi
5351
 
      ;;
5352
 
    none) break ;;
5353
 
    esac
5354
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5356
 
    # handle `-M -o', and we need to detect this.
5357
 
    if depmode=$depmode \
5358
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5359
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5361
 
         >/dev/null 2>conftest.err &&
5362
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5363
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5364
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5365
 
      # icc doesn't choke on unknown options, it will just issue warnings
5366
 
      # (even with -Werror).  So we grep stderr for any message
5367
 
      # that says an option was ignored.
5368
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5369
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5370
 
        break
5371
 
      fi
5372
 
    fi
5373
 
  done
5374
 
 
5375
 
  cd ..
5376
 
  rm -rf conftest.dir
5377
 
else
5378
 
  am_cv_CXX_dependencies_compiler_type=none
5379
 
fi
5380
 
 
5381
 
fi
5382
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5383
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5384
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5385
 
 
5386
 
 
5387
 
 
5388
 
if
5389
 
  test "x$enable_dependency_tracking" != xno \
5390
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5391
 
  am__fastdepCXX_TRUE=
5392
 
  am__fastdepCXX_FALSE='#'
5393
 
else
5394
 
  am__fastdepCXX_TRUE='#'
5395
 
  am__fastdepCXX_FALSE=
5396
 
fi
5397
 
 
5398
 
 
5399
 
ac_ext=cc
5400
 
ac_cpp='$CXXCPP $CPPFLAGS'
5401
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5404
5258
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5405
5259
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5406
5260
if test -z "$CXXCPP"; then
5719
5573
 
5720
5574
 
5721
5575
# Provide some information about the compiler.
5722
 
echo "$as_me:5722:" \
 
5576
echo "$as_me:5576:" \
5723
5577
     "checking for Fortran 77 compiler version" >&5
5724
5578
ac_compiler=`set X $ac_compile; echo $2`
5725
5579
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5872
5726
  echo $ECHO_N "(cached) $ECHO_C" >&6
5873
5727
else
5874
5728
    i=0
5875
 
  testring="ABCD"
 
5729
  teststring="ABCD"
5876
5730
 
5877
5731
  case $build_os in
5878
5732
  msdosdjgpp*)
5911
5765
    # If test is not a shell built-in, we'll probably end up computing a
5912
5766
    # maximum length that is only half of the actual maximum length, but
5913
5767
    # we can't tell.
5914
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5915
 
               = "XX$testring") >/dev/null 2>&1 &&
5916
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
5768
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5769
               = "XX$teststring") >/dev/null 2>&1 &&
 
5770
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5917
5771
            lt_cv_sys_max_cmd_len=$new_result &&
5918
5772
            test $i != 17 # 1/2 MB should be enough
5919
5773
    do
5920
5774
      i=`expr $i + 1`
5921
 
      testring=$testring$testring
 
5775
      teststring=$teststring$teststring
5922
5776
    done
5923
 
    testring=
 
5777
    teststring=
5924
5778
    # Add a significant safety factor because C++ compilers can tack on massive
5925
5779
    # amounts of additional arguments before passing them to the linker.
5926
5780
    # It appears as though 1/2 is a usable value.
6616
6470
esac
6617
6471
 
6618
6472
enable_dlopen=no
6619
 
enable_win32_dll=no
 
6473
enable_win32_dll=yes
6620
6474
 
6621
6475
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6622
6476
if test "${enable_libtool_lock+set}" = set; then
6726
6580
 
6727
6581
 
6728
6582
 
 
6583
## CAVEAT EMPTOR:
 
6584
## There is no encapsulation within the following macros, do not change
 
6585
## the running order or otherwise move them around unless you know exactly
 
6586
## what you are doing...
6729
6587
 
6730
6588
lt_prog_compiler_no_builtin_flag=
6731
6589
 
6751
6609
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6752
6610
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6753
6611
   -e 's:$: $lt_compiler_flag:'`
6754
 
   (eval echo "\"\$as_me:6754: $lt_compile\"" >&5)
 
6612
   (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
6755
6613
   (eval "$lt_compile" 2>conftest.err)
6756
6614
   ac_status=$?
6757
6615
   cat conftest.err >&5
6758
 
   echo "$as_me:6758: \$? = $ac_status" >&5
 
6616
   echo "$as_me:6616: \$? = $ac_status" >&5
6759
6617
   if (exit $ac_status) && test -s "$ac_outfile"; then
6760
6618
     # The compiler can only warn and ignore the option if not recognized
6761
6619
     # So say no if there are warnings
6984
6842
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6985
6843
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6986
6844
   -e 's:$: $lt_compiler_flag:'`
6987
 
   (eval echo "\"\$as_me:6987: $lt_compile\"" >&5)
 
6845
   (eval echo "\"\$as_me:6845: $lt_compile\"" >&5)
6988
6846
   (eval "$lt_compile" 2>conftest.err)
6989
6847
   ac_status=$?
6990
6848
   cat conftest.err >&5
6991
 
   echo "$as_me:6991: \$? = $ac_status" >&5
 
6849
   echo "$as_me:6849: \$? = $ac_status" >&5
6992
6850
   if (exit $ac_status) && test -s "$ac_outfile"; then
6993
6851
     # The compiler can only warn and ignore the option if not recognized
6994
6852
     # So say no if there are warnings
7035
6893
   mkdir out
7036
6894
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7037
6895
 
7038
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7039
 
   # that will create temporary files in the current directory regardless of
7040
 
   # the output directory.  Thus, making CWD read-only will cause this test
7041
 
   # to fail, enabling locking or at least warning the user not to do parallel
7042
 
   # builds.
7043
 
   chmod -w .
7044
 
 
7045
6896
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7046
6897
   # Insert the option either (1) after the last *FLAGS variable, or
7047
6898
   # (2) before a word containing "conftest.", or (3) at the end.
7051
6902
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7052
6903
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7053
6904
   -e 's:$: $lt_compiler_flag:'`
7054
 
   (eval echo "\"\$as_me:7054: $lt_compile\"" >&5)
 
6905
   (eval echo "\"\$as_me:6905: $lt_compile\"" >&5)
7055
6906
   (eval "$lt_compile" 2>out/conftest.err)
7056
6907
   ac_status=$?
7057
6908
   cat out/conftest.err >&5
7058
 
   echo "$as_me:7058: \$? = $ac_status" >&5
 
6909
   echo "$as_me:6909: \$? = $ac_status" >&5
7059
6910
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7060
6911
   then
7061
6912
     # The compiler can only warn and ignore the option if not recognized
7228
7079
      fi
7229
7080
      ;;
7230
7081
 
7231
 
    netbsd*)
 
7082
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7232
7083
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7233
7084
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7234
7085
        wlarc=
7267
7118
      ;;
7268
7119
 
7269
7120
  linux*)
7270
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7121
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7271
7122
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7272
7123
        archive_cmds="$tmp_archive_cmds"
7273
7124
      supports_anon_versioning=no
7286
7137
      else
7287
7138
        archive_expsym_cmds="$tmp_archive_cmds"
7288
7139
      fi
 
7140
      link_all_deplibs=no
7289
7141
    else
7290
7142
      ld_shlibs=no
7291
7143
    fi
7567
7419
      # Tell ltmain to make .lib files, not .a files.
7568
7420
      libext=lib
7569
7421
      # Tell ltmain to make .dll files, not .so files.
7570
 
      shrext=".dll"
 
7422
      shrext_cmds=".dll"
7571
7423
      # FIXME: Setting linknames here is a bad hack.
7572
7424
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7573
7425
      # The linker will automatically build a .lib file if we build a DLL.
7745
7597
      link_all_deplibs=yes
7746
7598
      ;;
7747
7599
 
7748
 
    netbsd*)
 
7600
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7749
7601
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7750
7602
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7751
7603
      else
8023
7875
library_names_spec=
8024
7876
libname_spec='lib$name'
8025
7877
soname_spec=
8026
 
shrext=".so"
 
7878
shrext_cmds=".so"
8027
7879
postinstall_cmds=
8028
7880
postuninstall_cmds=
8029
7881
finish_cmds=
8136
7988
 
8137
7989
cygwin* | mingw* | pw32*)
8138
7990
  version_type=windows
8139
 
  shrext=".dll"
 
7991
  shrext_cmds=".dll"
8140
7992
  need_version=no
8141
7993
  need_lib_prefix=no
8142
7994
 
8201
8053
  soname_spec='${libname}${release}${major}$shared_ext'
8202
8054
  shlibpath_overrides_runpath=yes
8203
8055
  shlibpath_var=DYLD_LIBRARY_PATH
8204
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
8056
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8205
8057
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8206
8058
  if test "$GCC" = yes; then
8207
8059
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8284
8136
  need_version=no
8285
8137
  case "$host_cpu" in
8286
8138
  ia64*)
8287
 
    shrext='.so'
 
8139
    shrext_cmds='.so'
8288
8140
    hardcode_into_libs=yes
8289
8141
    dynamic_linker="$host_os dld.so"
8290
8142
    shlibpath_var=LD_LIBRARY_PATH
8299
8151
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300
8152
    ;;
8301
8153
   hppa*64*)
8302
 
     shrext='.sl'
 
8154
     shrext_cmds='.sl'
8303
8155
     hardcode_into_libs=yes
8304
8156
     dynamic_linker="$host_os dld.sl"
8305
8157
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8310
8162
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8311
8163
     ;;
8312
8164
   *)
8313
 
    shrext='.sl'
 
8165
    shrext_cmds='.sl'
8314
8166
    dynamic_linker="$host_os dld.sl"
8315
8167
    shlibpath_var=SHLIB_PATH
8316
8168
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8381
8233
 
8382
8234
  # Append ld.so.conf contents to the search path
8383
8235
  if test -f /etc/ld.so.conf; then
8384
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8385
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
8236
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8237
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8386
8238
  fi
8387
8239
 
8388
8240
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8394
8246
  dynamic_linker='GNU/Linux ld.so'
8395
8247
  ;;
8396
8248
 
 
8249
netbsdelf*-gnu)
 
8250
  version_type=linux
 
8251
  need_lib_prefix=no
 
8252
  need_version=no
 
8253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8254
  soname_spec='${libname}${release}${shared_ext}$major'
 
8255
  shlibpath_var=LD_LIBRARY_PATH
 
8256
  shlibpath_overrides_runpath=no
 
8257
  hardcode_into_libs=yes
 
8258
  dynamic_linker='NetBSD ld.elf_so'
 
8259
  ;;
 
8260
 
8397
8261
knetbsd*-gnu)
8398
8262
  version_type=linux
8399
8263
  need_lib_prefix=no
8415
8279
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8416
8280
    dynamic_linker='NetBSD (a.out) ld.so'
8417
8281
  else
8418
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
8282
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8419
8283
    soname_spec='${libname}${release}${shared_ext}$major'
8420
8284
    dynamic_linker='NetBSD ld.elf_so'
8421
8285
  fi
8464
8328
 
8465
8329
os2*)
8466
8330
  libname_spec='$name'
8467
 
  shrext=".dll"
 
8331
  shrext_cmds=".dll"
8468
8332
  need_lib_prefix=no
8469
8333
  library_names_spec='$libname${shared_ext} $libname.a'
8470
8334
  dynamic_linker='OS/2 ld.exe'
9226
9090
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9227
9091
  lt_status=$lt_dlunknown
9228
9092
  cat > conftest.$ac_ext <<EOF
9229
 
#line 9229 "configure"
 
9093
#line 9093 "configure"
9230
9094
#include "confdefs.h"
9231
9095
 
9232
9096
#if HAVE_DLFCN_H
9324
9188
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9325
9189
  lt_status=$lt_dlunknown
9326
9190
  cat > conftest.$ac_ext <<EOF
9327
 
#line 9327 "configure"
 
9191
#line 9191 "configure"
9328
9192
#include "confdefs.h"
9329
9193
 
9330
9194
#if HAVE_DLFCN_H
9449
9313
  fi
9450
9314
  ;;
9451
9315
 
9452
 
aix4*)
 
9316
aix4* | aix5*)
9453
9317
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9454
9318
    test "$enable_shared" = yes && enable_static=no
9455
9319
  fi
9725
9589
libext="$libext"
9726
9590
 
9727
9591
# Shared library suffix (normally ".so").
9728
 
shrext='$shrext'
 
9592
shrext_cmds='$shrext_cmds'
9729
9593
 
9730
9594
# Executable file suffix (normally "").
9731
9595
exeext="$exeext"
10638
10502
      # explicitly linking system object files so we need to strip them
10639
10503
      # from the output so that they don't get included in the library
10640
10504
      # dependencies.
10641
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10505
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10642
10506
      ;;
10643
10507
    *)
10644
10508
      if test "$GXX" = yes; then
10835
10699
        ;;
10836
10700
    esac
10837
10701
    ;;
10838
 
  netbsd*)
 
10702
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10839
10703
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10840
10704
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10841
10705
      wlarc=
11113
10977
GCC_CXX="$GXX"
11114
10978
LD_CXX="$LD"
11115
10979
 
 
10980
## CAVEAT EMPTOR:
 
10981
## There is no encapsulation within the following macros, do not change
 
10982
## the running order or otherwise move them around unless you know exactly
 
10983
## what you are doing...
11116
10984
 
11117
10985
cat > conftest.$ac_ext <<EOF
11118
10986
class Foo
11390
11258
            ;;
11391
11259
        esac
11392
11260
        ;;
11393
 
      netbsd*)
 
11261
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11394
11262
        ;;
11395
11263
      osf3* | osf4* | osf5*)
11396
11264
        case $cc_basename in
11501
11369
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11502
11370
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11503
11371
   -e 's:$: $lt_compiler_flag:'`
11504
 
   (eval echo "\"\$as_me:11504: $lt_compile\"" >&5)
 
11372
   (eval echo "\"\$as_me:11372: $lt_compile\"" >&5)
11505
11373
   (eval "$lt_compile" 2>conftest.err)
11506
11374
   ac_status=$?
11507
11375
   cat conftest.err >&5
11508
 
   echo "$as_me:11508: \$? = $ac_status" >&5
 
11376
   echo "$as_me:11376: \$? = $ac_status" >&5
11509
11377
   if (exit $ac_status) && test -s "$ac_outfile"; then
11510
11378
     # The compiler can only warn and ignore the option if not recognized
11511
11379
     # So say no if there are warnings
11552
11420
   mkdir out
11553
11421
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11554
11422
 
11555
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11556
 
   # that will create temporary files in the current directory regardless of
11557
 
   # the output directory.  Thus, making CWD read-only will cause this test
11558
 
   # to fail, enabling locking or at least warning the user not to do parallel
11559
 
   # builds.
11560
 
   chmod -w .
11561
 
 
11562
11423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11563
11424
   # Insert the option either (1) after the last *FLAGS variable, or
11564
11425
   # (2) before a word containing "conftest.", or (3) at the end.
11568
11429
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11569
11430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11570
11431
   -e 's:$: $lt_compiler_flag:'`
11571
 
   (eval echo "\"\$as_me:11571: $lt_compile\"" >&5)
 
11432
   (eval echo "\"\$as_me:11432: $lt_compile\"" >&5)
11572
11433
   (eval "$lt_compile" 2>out/conftest.err)
11573
11434
   ac_status=$?
11574
11435
   cat out/conftest.err >&5
11575
 
   echo "$as_me:11575: \$? = $ac_status" >&5
 
11436
   echo "$as_me:11436: \$? = $ac_status" >&5
11576
11437
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11577
11438
   then
11578
11439
     # The compiler can only warn and ignore the option if not recognized
11638
11499
  cygwin* | mingw*)
11639
11500
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11640
11501
  ;;
 
11502
  linux*)
 
11503
    link_all_deplibs_CXX=no
 
11504
  ;;
11641
11505
  *)
11642
11506
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11643
11507
  ;;
11719
11583
library_names_spec=
11720
11584
libname_spec='lib$name'
11721
11585
soname_spec=
11722
 
shrext=".so"
 
11586
shrext_cmds=".so"
11723
11587
postinstall_cmds=
11724
11588
postuninstall_cmds=
11725
11589
finish_cmds=
11832
11696
 
11833
11697
cygwin* | mingw* | pw32*)
11834
11698
  version_type=windows
11835
 
  shrext=".dll"
 
11699
  shrext_cmds=".dll"
11836
11700
  need_version=no
11837
11701
  need_lib_prefix=no
11838
11702
 
11897
11761
  soname_spec='${libname}${release}${major}$shared_ext'
11898
11762
  shlibpath_overrides_runpath=yes
11899
11763
  shlibpath_var=DYLD_LIBRARY_PATH
11900
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
11764
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11901
11765
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11902
11766
  if test "$GCC" = yes; then
11903
11767
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11980
11844
  need_version=no
11981
11845
  case "$host_cpu" in
11982
11846
  ia64*)
11983
 
    shrext='.so'
 
11847
    shrext_cmds='.so'
11984
11848
    hardcode_into_libs=yes
11985
11849
    dynamic_linker="$host_os dld.so"
11986
11850
    shlibpath_var=LD_LIBRARY_PATH
11995
11859
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11996
11860
    ;;
11997
11861
   hppa*64*)
11998
 
     shrext='.sl'
 
11862
     shrext_cmds='.sl'
11999
11863
     hardcode_into_libs=yes
12000
11864
     dynamic_linker="$host_os dld.sl"
12001
11865
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12006
11870
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12007
11871
     ;;
12008
11872
   *)
12009
 
    shrext='.sl'
 
11873
    shrext_cmds='.sl'
12010
11874
    dynamic_linker="$host_os dld.sl"
12011
11875
    shlibpath_var=SHLIB_PATH
12012
11876
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12077
11941
 
12078
11942
  # Append ld.so.conf contents to the search path
12079
11943
  if test -f /etc/ld.so.conf; then
12080
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12081
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
11944
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11945
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12082
11946
  fi
12083
11947
 
12084
11948
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12090
11954
  dynamic_linker='GNU/Linux ld.so'
12091
11955
  ;;
12092
11956
 
 
11957
netbsdelf*-gnu)
 
11958
  version_type=linux
 
11959
  need_lib_prefix=no
 
11960
  need_version=no
 
11961
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11962
  soname_spec='${libname}${release}${shared_ext}$major'
 
11963
  shlibpath_var=LD_LIBRARY_PATH
 
11964
  shlibpath_overrides_runpath=no
 
11965
  hardcode_into_libs=yes
 
11966
  dynamic_linker='NetBSD ld.elf_so'
 
11967
  ;;
 
11968
 
12093
11969
knetbsd*-gnu)
12094
11970
  version_type=linux
12095
11971
  need_lib_prefix=no
12111
11987
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12112
11988
    dynamic_linker='NetBSD (a.out) ld.so'
12113
11989
  else
12114
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
11990
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12115
11991
    soname_spec='${libname}${release}${shared_ext}$major'
12116
11992
    dynamic_linker='NetBSD ld.elf_so'
12117
11993
  fi
12160
12036
 
12161
12037
os2*)
12162
12038
  libname_spec='$name'
12163
 
  shrext=".dll"
 
12039
  shrext_cmds=".dll"
12164
12040
  need_lib_prefix=no
12165
12041
  library_names_spec='$libname${shared_ext} $libname.a'
12166
12042
  dynamic_linker='OS/2 ld.exe'
12922
12798
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12923
12799
  lt_status=$lt_dlunknown
12924
12800
  cat > conftest.$ac_ext <<EOF
12925
 
#line 12925 "configure"
 
12801
#line 12801 "configure"
12926
12802
#include "confdefs.h"
12927
12803
 
12928
12804
#if HAVE_DLFCN_H
13020
12896
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13021
12897
  lt_status=$lt_dlunknown
13022
12898
  cat > conftest.$ac_ext <<EOF
13023
 
#line 13023 "configure"
 
12899
#line 12899 "configure"
13024
12900
#include "confdefs.h"
13025
12901
 
13026
12902
#if HAVE_DLFCN_H
13299
13175
libext="$libext"
13300
13176
 
13301
13177
# Shared library suffix (normally ".so").
13302
 
shrext='$shrext'
 
13178
shrext_cmds='$shrext_cmds'
13303
13179
 
13304
13180
# Executable file suffix (normally "").
13305
13181
exeext="$exeext"
13621
13497
    postinstall_cmds='$RANLIB $lib'
13622
13498
  fi
13623
13499
  ;;
13624
 
aix4*)
 
13500
aix4* | aix5*)
13625
13501
  test "$enable_shared" = yes && enable_static=no
13626
13502
  ;;
13627
13503
esac
13847
13723
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13848
13724
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13849
13725
   -e 's:$: $lt_compiler_flag:'`
13850
 
   (eval echo "\"\$as_me:13850: $lt_compile\"" >&5)
 
13726
   (eval echo "\"\$as_me:13726: $lt_compile\"" >&5)
13851
13727
   (eval "$lt_compile" 2>conftest.err)
13852
13728
   ac_status=$?
13853
13729
   cat conftest.err >&5
13854
 
   echo "$as_me:13854: \$? = $ac_status" >&5
 
13730
   echo "$as_me:13730: \$? = $ac_status" >&5
13855
13731
   if (exit $ac_status) && test -s "$ac_outfile"; then
13856
13732
     # The compiler can only warn and ignore the option if not recognized
13857
13733
     # So say no if there are warnings
13898
13774
   mkdir out
13899
13775
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13900
13776
 
13901
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13902
 
   # that will create temporary files in the current directory regardless of
13903
 
   # the output directory.  Thus, making CWD read-only will cause this test
13904
 
   # to fail, enabling locking or at least warning the user not to do parallel
13905
 
   # builds.
13906
 
   chmod -w .
13907
 
 
13908
13777
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13909
13778
   # Insert the option either (1) after the last *FLAGS variable, or
13910
13779
   # (2) before a word containing "conftest.", or (3) at the end.
13914
13783
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13915
13784
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13916
13785
   -e 's:$: $lt_compiler_flag:'`
13917
 
   (eval echo "\"\$as_me:13917: $lt_compile\"" >&5)
 
13786
   (eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
13918
13787
   (eval "$lt_compile" 2>out/conftest.err)
13919
13788
   ac_status=$?
13920
13789
   cat out/conftest.err >&5
13921
 
   echo "$as_me:13921: \$? = $ac_status" >&5
 
13790
   echo "$as_me:13790: \$? = $ac_status" >&5
13922
13791
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13923
13792
   then
13924
13793
     # The compiler can only warn and ignore the option if not recognized
14091
13960
      fi
14092
13961
      ;;
14093
13962
 
14094
 
    netbsd*)
 
13963
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14095
13964
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14096
13965
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14097
13966
        wlarc=
14130
13999
      ;;
14131
14000
 
14132
14001
  linux*)
14133
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
14002
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134
14003
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135
14004
        archive_cmds_F77="$tmp_archive_cmds"
14136
14005
      supports_anon_versioning=no
14149
14018
      else
14150
14019
        archive_expsym_cmds_F77="$tmp_archive_cmds"
14151
14020
      fi
 
14021
      link_all_deplibs_F77=no
14152
14022
    else
14153
14023
      ld_shlibs_F77=no
14154
14024
    fi
14410
14280
      # Tell ltmain to make .lib files, not .a files.
14411
14281
      libext=lib
14412
14282
      # Tell ltmain to make .dll files, not .so files.
14413
 
      shrext=".dll"
 
14283
      shrext_cmds=".dll"
14414
14284
      # FIXME: Setting linknames here is a bad hack.
14415
14285
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14416
14286
      # The linker will automatically build a .lib file if we build a DLL.
14588
14458
      link_all_deplibs_F77=yes
14589
14459
      ;;
14590
14460
 
14591
 
    netbsd*)
 
14461
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14592
14462
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14593
14463
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14594
14464
      else
14866
14736
library_names_spec=
14867
14737
libname_spec='lib$name'
14868
14738
soname_spec=
14869
 
shrext=".so"
 
14739
shrext_cmds=".so"
14870
14740
postinstall_cmds=
14871
14741
postuninstall_cmds=
14872
14742
finish_cmds=
14979
14849
 
14980
14850
cygwin* | mingw* | pw32*)
14981
14851
  version_type=windows
14982
 
  shrext=".dll"
 
14852
  shrext_cmds=".dll"
14983
14853
  need_version=no
14984
14854
  need_lib_prefix=no
14985
14855
 
15044
14914
  soname_spec='${libname}${release}${major}$shared_ext'
15045
14915
  shlibpath_overrides_runpath=yes
15046
14916
  shlibpath_var=DYLD_LIBRARY_PATH
15047
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14917
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15048
14918
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15049
14919
  if test "$GCC" = yes; then
15050
14920
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15127
14997
  need_version=no
15128
14998
  case "$host_cpu" in
15129
14999
  ia64*)
15130
 
    shrext='.so'
 
15000
    shrext_cmds='.so'
15131
15001
    hardcode_into_libs=yes
15132
15002
    dynamic_linker="$host_os dld.so"
15133
15003
    shlibpath_var=LD_LIBRARY_PATH
15142
15012
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15143
15013
    ;;
15144
15014
   hppa*64*)
15145
 
     shrext='.sl'
 
15015
     shrext_cmds='.sl'
15146
15016
     hardcode_into_libs=yes
15147
15017
     dynamic_linker="$host_os dld.sl"
15148
15018
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15153
15023
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15154
15024
     ;;
15155
15025
   *)
15156
 
    shrext='.sl'
 
15026
    shrext_cmds='.sl'
15157
15027
    dynamic_linker="$host_os dld.sl"
15158
15028
    shlibpath_var=SHLIB_PATH
15159
15029
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15224
15094
 
15225
15095
  # Append ld.so.conf contents to the search path
15226
15096
  if test -f /etc/ld.so.conf; then
15227
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15228
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
15097
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15098
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15229
15099
  fi
15230
15100
 
15231
15101
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15237
15107
  dynamic_linker='GNU/Linux ld.so'
15238
15108
  ;;
15239
15109
 
 
15110
netbsdelf*-gnu)
 
15111
  version_type=linux
 
15112
  need_lib_prefix=no
 
15113
  need_version=no
 
15114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15115
  soname_spec='${libname}${release}${shared_ext}$major'
 
15116
  shlibpath_var=LD_LIBRARY_PATH
 
15117
  shlibpath_overrides_runpath=no
 
15118
  hardcode_into_libs=yes
 
15119
  dynamic_linker='NetBSD ld.elf_so'
 
15120
  ;;
 
15121
 
15240
15122
knetbsd*-gnu)
15241
15123
  version_type=linux
15242
15124
  need_lib_prefix=no
15258
15140
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15259
15141
    dynamic_linker='NetBSD (a.out) ld.so'
15260
15142
  else
15261
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
15143
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15262
15144
    soname_spec='${libname}${release}${shared_ext}$major'
15263
15145
    dynamic_linker='NetBSD ld.elf_so'
15264
15146
  fi
15307
15189
 
15308
15190
os2*)
15309
15191
  libname_spec='$name'
15310
 
  shrext=".dll"
 
15192
  shrext_cmds=".dll"
15311
15193
  need_lib_prefix=no
15312
15194
  library_names_spec='$libname${shared_ext} $libname.a'
15313
15195
  dynamic_linker='OS/2 ld.exe'
15648
15530
libext="$libext"
15649
15531
 
15650
15532
# Shared library suffix (normally ".so").
15651
 
shrext='$shrext'
 
15533
shrext_cmds='$shrext_cmds'
15652
15534
 
15653
15535
# Executable file suffix (normally "").
15654
15536
exeext="$exeext"
15921
15803
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15922
15804
archive_cmds_need_lc_GCJ=no
15923
15805
 
 
15806
## CAVEAT EMPTOR:
 
15807
## There is no encapsulation within the following macros, do not change
 
15808
## the running order or otherwise move them around unless you know exactly
 
15809
## what you are doing...
15924
15810
 
15925
15811
lt_prog_compiler_no_builtin_flag_GCJ=
15926
15812
 
15946
15832
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15947
15833
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15948
15834
   -e 's:$: $lt_compiler_flag:'`
15949
 
   (eval echo "\"\$as_me:15949: $lt_compile\"" >&5)
 
15835
   (eval echo "\"\$as_me:15835: $lt_compile\"" >&5)
15950
15836
   (eval "$lt_compile" 2>conftest.err)
15951
15837
   ac_status=$?
15952
15838
   cat conftest.err >&5
15953
 
   echo "$as_me:15953: \$? = $ac_status" >&5
 
15839
   echo "$as_me:15839: \$? = $ac_status" >&5
15954
15840
   if (exit $ac_status) && test -s "$ac_outfile"; then
15955
15841
     # The compiler can only warn and ignore the option if not recognized
15956
15842
     # So say no if there are warnings
16179
16065
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16180
16066
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16181
16067
   -e 's:$: $lt_compiler_flag:'`
16182
 
   (eval echo "\"\$as_me:16182: $lt_compile\"" >&5)
 
16068
   (eval echo "\"\$as_me:16068: $lt_compile\"" >&5)
16183
16069
   (eval "$lt_compile" 2>conftest.err)
16184
16070
   ac_status=$?
16185
16071
   cat conftest.err >&5
16186
 
   echo "$as_me:16186: \$? = $ac_status" >&5
 
16072
   echo "$as_me:16072: \$? = $ac_status" >&5
16187
16073
   if (exit $ac_status) && test -s "$ac_outfile"; then
16188
16074
     # The compiler can only warn and ignore the option if not recognized
16189
16075
     # So say no if there are warnings
16230
16116
   mkdir out
16231
16117
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16232
16118
 
16233
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16234
 
   # that will create temporary files in the current directory regardless of
16235
 
   # the output directory.  Thus, making CWD read-only will cause this test
16236
 
   # to fail, enabling locking or at least warning the user not to do parallel
16237
 
   # builds.
16238
 
   chmod -w .
16239
 
 
16240
16119
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16241
16120
   # Insert the option either (1) after the last *FLAGS variable, or
16242
16121
   # (2) before a word containing "conftest.", or (3) at the end.
16246
16125
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16247
16126
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16248
16127
   -e 's:$: $lt_compiler_flag:'`
16249
 
   (eval echo "\"\$as_me:16249: $lt_compile\"" >&5)
 
16128
   (eval echo "\"\$as_me:16128: $lt_compile\"" >&5)
16250
16129
   (eval "$lt_compile" 2>out/conftest.err)
16251
16130
   ac_status=$?
16252
16131
   cat out/conftest.err >&5
16253
 
   echo "$as_me:16253: \$? = $ac_status" >&5
 
16132
   echo "$as_me:16132: \$? = $ac_status" >&5
16254
16133
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16255
16134
   then
16256
16135
     # The compiler can only warn and ignore the option if not recognized
16423
16302
      fi
16424
16303
      ;;
16425
16304
 
16426
 
    netbsd*)
 
16305
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16427
16306
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16428
16307
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16429
16308
        wlarc=
16462
16341
      ;;
16463
16342
 
16464
16343
  linux*)
16465
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
16344
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16466
16345
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16467
16346
        archive_cmds_GCJ="$tmp_archive_cmds"
16468
16347
      supports_anon_versioning=no
16481
16360
      else
16482
16361
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16483
16362
      fi
 
16363
      link_all_deplibs_GCJ=no
16484
16364
    else
16485
16365
      ld_shlibs_GCJ=no
16486
16366
    fi
16762
16642
      # Tell ltmain to make .lib files, not .a files.
16763
16643
      libext=lib
16764
16644
      # Tell ltmain to make .dll files, not .so files.
16765
 
      shrext=".dll"
 
16645
      shrext_cmds=".dll"
16766
16646
      # FIXME: Setting linknames here is a bad hack.
16767
16647
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16768
16648
      # The linker will automatically build a .lib file if we build a DLL.
16940
16820
      link_all_deplibs_GCJ=yes
16941
16821
      ;;
16942
16822
 
16943
 
    netbsd*)
 
16823
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16944
16824
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16945
16825
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16946
16826
      else
17218
17098
library_names_spec=
17219
17099
libname_spec='lib$name'
17220
17100
soname_spec=
17221
 
shrext=".so"
 
17101
shrext_cmds=".so"
17222
17102
postinstall_cmds=
17223
17103
postuninstall_cmds=
17224
17104
finish_cmds=
17331
17211
 
17332
17212
cygwin* | mingw* | pw32*)
17333
17213
  version_type=windows
17334
 
  shrext=".dll"
 
17214
  shrext_cmds=".dll"
17335
17215
  need_version=no
17336
17216
  need_lib_prefix=no
17337
17217
 
17396
17276
  soname_spec='${libname}${release}${major}$shared_ext'
17397
17277
  shlibpath_overrides_runpath=yes
17398
17278
  shlibpath_var=DYLD_LIBRARY_PATH
17399
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17279
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17400
17280
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17401
17281
  if test "$GCC" = yes; then
17402
17282
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17479
17359
  need_version=no
17480
17360
  case "$host_cpu" in
17481
17361
  ia64*)
17482
 
    shrext='.so'
 
17362
    shrext_cmds='.so'
17483
17363
    hardcode_into_libs=yes
17484
17364
    dynamic_linker="$host_os dld.so"
17485
17365
    shlibpath_var=LD_LIBRARY_PATH
17494
17374
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17495
17375
    ;;
17496
17376
   hppa*64*)
17497
 
     shrext='.sl'
 
17377
     shrext_cmds='.sl'
17498
17378
     hardcode_into_libs=yes
17499
17379
     dynamic_linker="$host_os dld.sl"
17500
17380
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17505
17385
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17506
17386
     ;;
17507
17387
   *)
17508
 
    shrext='.sl'
 
17388
    shrext_cmds='.sl'
17509
17389
    dynamic_linker="$host_os dld.sl"
17510
17390
    shlibpath_var=SHLIB_PATH
17511
17391
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17576
17456
 
17577
17457
  # Append ld.so.conf contents to the search path
17578
17458
  if test -f /etc/ld.so.conf; then
17579
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17580
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
17459
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17460
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17581
17461
  fi
17582
17462
 
17583
17463
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17589
17469
  dynamic_linker='GNU/Linux ld.so'
17590
17470
  ;;
17591
17471
 
 
17472
netbsdelf*-gnu)
 
17473
  version_type=linux
 
17474
  need_lib_prefix=no
 
17475
  need_version=no
 
17476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17477
  soname_spec='${libname}${release}${shared_ext}$major'
 
17478
  shlibpath_var=LD_LIBRARY_PATH
 
17479
  shlibpath_overrides_runpath=no
 
17480
  hardcode_into_libs=yes
 
17481
  dynamic_linker='NetBSD ld.elf_so'
 
17482
  ;;
 
17483
 
17592
17484
knetbsd*-gnu)
17593
17485
  version_type=linux
17594
17486
  need_lib_prefix=no
17610
17502
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17611
17503
    dynamic_linker='NetBSD (a.out) ld.so'
17612
17504
  else
17613
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17505
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17614
17506
    soname_spec='${libname}${release}${shared_ext}$major'
17615
17507
    dynamic_linker='NetBSD ld.elf_so'
17616
17508
  fi
17659
17551
 
17660
17552
os2*)
17661
17553
  libname_spec='$name'
17662
 
  shrext=".dll"
 
17554
  shrext_cmds=".dll"
17663
17555
  need_lib_prefix=no
17664
17556
  library_names_spec='$libname${shared_ext} $libname.a'
17665
17557
  dynamic_linker='OS/2 ld.exe'
18421
18313
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18422
18314
  lt_status=$lt_dlunknown
18423
18315
  cat > conftest.$ac_ext <<EOF
18424
 
#line 18424 "configure"
 
18316
#line 18316 "configure"
18425
18317
#include "confdefs.h"
18426
18318
 
18427
18319
#if HAVE_DLFCN_H
18519
18411
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18520
18412
  lt_status=$lt_dlunknown
18521
18413
  cat > conftest.$ac_ext <<EOF
18522
 
#line 18522 "configure"
 
18414
#line 18414 "configure"
18523
18415
#include "confdefs.h"
18524
18416
 
18525
18417
#if HAVE_DLFCN_H
18798
18690
libext="$libext"
18799
18691
 
18800
18692
# Shared library suffix (normally ".so").
18801
 
shrext='$shrext'
 
18693
shrext_cmds='$shrext_cmds'
18802
18694
 
18803
18695
# Executable file suffix (normally "").
18804
18696
exeext="$exeext"
19243
19135
libext="$libext"
19244
19136
 
19245
19137
# Shared library suffix (normally ".so").
19246
 
shrext='$shrext'
 
19138
shrext_cmds='$shrext_cmds'
19247
19139
 
19248
19140
# Executable file suffix (normally "").
19249
19141
exeext="$exeext"
19562
19454
  SET_MAKE="MAKE=${MAKE-make}"
19563
19455
fi
19564
19456
 
19565
 
 
19566
 
 
19567
 
 
19568
 
  if test "x${prefix}" = "xNONE"; then
19569
 
     ggz_prefix="${ac_default_prefix}"
19570
 
  else
19571
 
     ggz_prefix="$prefix"
19572
 
  fi
19573
 
  ggz_prefix_incdir="${ggz_prefix}/include"
19574
 
  ggz_prefix_libdir="${ggz_prefix}/lib"
19575
 
  ggz_prefix_bindir="${ggz_prefix}/bin"
19576
 
  ggz_prefix_etcdir="${ggz_prefix}/etc"
19577
 
  ggz_stdinc="$ggz_prefix_incdir"
19578
 
  ggz_stdlib="$ggz_prefix_libdir"
19579
 
  ggz_stdbin="$ggz_prefix_bindir"
19580
 
  ggz_stdetc="$ggz_prefix_etcdir"
19581
 
  if test "xdefaults" = "xdefaults" || test "xexport" = "xdefaults"; then
19582
 
    ggz_stdinc="$ggz_stdinc /usr/local/include /usr/include"
19583
 
    ggz_stdlib="$ggz_stdlib /usr/local/lib /usr/lib"
19584
 
    ggz_stdbin="$ggz_stdbin /usr/local/bin /usr/bin"
19585
 
    ggz_stdetc="$ggz_stdetc /usr/local/etc /etc"
19586
 
  fi
19587
 
 
19588
 
  # Don't pollute gcc's paths if we don't have to.
19589
 
  if test "xdefaults" = "xexport" || test "xexport" = "xexport"; then
19590
 
    if test "x$GCC" = "xyes"; then
19591
 
      $CC -E -v -x c /dev/null 2>&1 |
19592
 
                  grep -q " ${ggz_prefix_incdir}\$" ||
19593
 
        CPPFLAGS="$CPPFLAGS -isystem ${ggz_prefix_incdir}"
19594
 
      $CC -print-file-name=libc.a |
19595
 
                  grep -q "${ggz_prefix_libdir}/libc.a" ||
19596
 
        LDFLAGS="$LDFLAGS -L${ggz_prefix_libdir}"
19597
 
    else
19598
 
      CPPFLAGS="$CPPFLAGS -isystem ${ggz_prefix_incdir}"
19599
 
      LDFLAGS="$LDFLAGS -L${ggz_prefix_libdir}"
19600
 
    fi
19601
 
  fi
19602
 
 
19603
 
  save_cflags=$CFLAGS
19604
 
  save_cxxflags=$CXXFLAGS
19605
 
  CFLAGS="-Wall -Werror"
19606
 
  cat >conftest.$ac_ext <<_ACEOF
 
19457
if test -n "$ac_tool_prefix"; then
 
19458
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
19459
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
19460
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19462
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
19463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19464
else
 
19465
  if test -n "$RANLIB"; then
 
19466
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
19467
else
 
19468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19469
for as_dir in $PATH
 
19470
do
 
19471
  IFS=$as_save_IFS
 
19472
  test -z "$as_dir" && as_dir=.
 
19473
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19474
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19475
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
19476
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19477
    break 2
 
19478
  fi
 
19479
done
 
19480
done
 
19481
 
 
19482
fi
 
19483
fi
 
19484
RANLIB=$ac_cv_prog_RANLIB
 
19485
if test -n "$RANLIB"; then
 
19486
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
19487
echo "${ECHO_T}$RANLIB" >&6
 
19488
else
 
19489
  echo "$as_me:$LINENO: result: no" >&5
 
19490
echo "${ECHO_T}no" >&6
 
19491
fi
 
19492
 
 
19493
fi
 
19494
if test -z "$ac_cv_prog_RANLIB"; then
 
19495
  ac_ct_RANLIB=$RANLIB
 
19496
  # Extract the first word of "ranlib", so it can be a program name with args.
 
19497
set dummy ranlib; ac_word=$2
 
19498
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19500
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
19501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19502
else
 
19503
  if test -n "$ac_ct_RANLIB"; then
 
19504
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
19505
else
 
19506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19507
for as_dir in $PATH
 
19508
do
 
19509
  IFS=$as_save_IFS
 
19510
  test -z "$as_dir" && as_dir=.
 
19511
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19512
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19513
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
19514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19515
    break 2
 
19516
  fi
 
19517
done
 
19518
done
 
19519
 
 
19520
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
19521
fi
 
19522
fi
 
19523
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
19524
if test -n "$ac_ct_RANLIB"; then
 
19525
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
19526
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
19527
else
 
19528
  echo "$as_me:$LINENO: result: no" >&5
 
19529
echo "${ECHO_T}no" >&6
 
19530
fi
 
19531
 
 
19532
  RANLIB=$ac_ct_RANLIB
 
19533
else
 
19534
  RANLIB="$ac_cv_prog_RANLIB"
 
19535
fi
 
19536
 
 
19537
 
 
19538
# Special case for compiling on windows
 
19539
case $host_os in
 
19540
  *mingw32* ) MINGW32=yes;;
 
19541
          * ) MINGW32=no;;
 
19542
esac
 
19543
 
 
19544
# Check for GGZ Requirements
 
19545
# ==========================
 
19546
 
 
19547
if test "x$prefix" = "xNONE"; then
 
19548
  prefix="${ac_default_prefix}"
 
19549
fi
 
19550
 
 
19551
cat >>confdefs.h <<_ACEOF
 
19552
#define PREFIX "${prefix}"
 
19553
_ACEOF
 
19554
 
 
19555
 
 
19556
if test "x${prefix}" = "xNONE"; then
 
19557
   ac_ggz_prefix_incdir="${ac_default_prefix}/include"
 
19558
   ac_ggz_prefix_libdir="${ac_default_prefix}/lib"
 
19559
   ac_ggz_prefix_bindir="${ac_default_prefix}/bin"
 
19560
   ac_ggz_prefix_etcdir="${ac_default_prefix}/etc"
 
19561
else
 
19562
   ac_ggz_prefix_incdir="${prefix}/include"
 
19563
   ac_ggz_prefix_libdir="${prefix}/lib"
 
19564
   ac_ggz_prefix_bindir="${prefix}/bin"
 
19565
   ac_ggz_prefix_etcdir="${prefix}/etc"
 
19566
fi
 
19567
ac_ggz_stdinc="$ac_ggz_prefix_incdir"
 
19568
ac_ggz_stdlib="$ac_ggz_prefix_libdir"
 
19569
ac_ggz_stdbin="$ac_ggz_prefix_bindir"
 
19570
ac_ggz_stdetc="$ac_ggz_prefix_etcdir"
 
19571
if test "xdefaults" = "xdefaults" || test "xexport" = "xdefaults"; then
 
19572
  ac_ggz_stdinc="$ac_ggz_stdinc /usr/local/include /usr/include"
 
19573
  ac_ggz_stdlib="$ac_ggz_stdlib /usr/local/lib /usr/lib"
 
19574
  ac_ggz_stdbin="$ac_ggz_stdbin /usr/local/bin /usr/bin"
 
19575
  ac_ggz_stdetc="$ac_ggz_stdetc/ggzd /usr/local/etc/ggzd /etc/ggzd"
 
19576
fi
 
19577
if test "xdefaults" = "xexport" || test "xexport" = "xexport"; then
 
19578
  CPPFLAGS="$CPPFLAGS -isystem ${ac_ggz_prefix_incdir} -isystem /usr/local/include"
 
19579
  LDFLAGS="$LDFLAGS -L${ac_ggz_prefix_libdir} -L/usr/local/lib"
 
19580
fi
 
19581
 
 
19582
save_cflags=$CFLAGS
 
19583
save_cxxflags=$CXXFLAGS
 
19584
CFLAGS="-Wall -Werror"
 
19585
cat >conftest.$ac_ext <<_ACEOF
19607
19586
/* confdefs.h.  */
19608
19587
_ACEOF
19609
19588
cat confdefs.h >>conftest.$ac_ext
19648
19627
         save_cxxflags="$save_cxxflags -fsigned-char"
19649
19628
fi
19650
19629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19651
 
  CFLAGS=$save_cflags
19652
 
  CXXFLAGS=$save_cxxflags
19653
 
 
19654
 
 
19655
 
  # Check whether --enable-debug or --disable-debug was given.
19656
 
if test "${enable_debug+set}" = set; then
19657
 
  enableval="$enable_debug"
19658
 
 
19659
 
fi;
19660
 
  # Check whether --enable-debug-gdb or --disable-debug-gdb was given.
19661
 
if test "${enable_debug_gdb+set}" = set; then
19662
 
  enableval="$enable_debug_gdb"
19663
 
 
19664
 
fi;
19665
 
  # Check whether --enable-debug-mem or --disable-debug-mem was given.
19666
 
if test "${enable_debug_mem+set}" = set; then
19667
 
  enableval="$enable_debug_mem"
19668
 
 
19669
 
fi;
19670
 
 
19671
 
  # This defines either DEBUG or NDEBUG.  We could provide a third
19672
 
  # option where neither are defined.
19673
 
 
19674
 
  case ${enable_debug:=yes} in
19675
 
  yes)
19676
 
 
19677
 
cat >>confdefs.h <<\_ACEOF
19678
 
#define DEBUG 1
19679
 
_ACEOF
19680
 
 
19681
 
    case " $CFLAGS " in
19682
 
    *[\ \       ]-g[\ \ ]*) ;;
19683
 
    *) CFLAGS="$CFLAGS -g" ;;
19684
 
    esac
19685
 
 
19686
 
    case ${enable_debug_gdb:=no} in
19687
 
    yes) CFLAGS="$CFLAGS -ggdb" ;;
19688
 
    esac
19689
 
 
19690
 
    case ${enable_debug_mem:=no} in
19691
 
    yes)
19692
 
 
19693
 
cat >>confdefs.h <<\_ACEOF
19694
 
#define DEBUG_MEM 1
19695
 
_ACEOF
19696
 
 
19697
 
 
19698
 
      # We count on this code coming after DEBUG_MEM is defined...
19699
 
 
19700
 
 
19701
 
      DFLAGS="$DFLAGS DEBUG_MEM"
19702
 
      LDADD="$LDADD -ldmalloc"
19703
 
      ;;
19704
 
    esac
19705
 
    ;;
19706
 
 
19707
 
  no)
19708
 
    enable_debug_gdb=no
19709
 
    enable_debug_mem=no
19710
 
 
19711
 
cat >>confdefs.h <<\_ACEOF
19712
 
#define NDEBUG 1
19713
 
_ACEOF
19714
 
 
19715
 
    ;;
19716
 
 
19717
 
  esac
19718
 
 
19719
 
 
19720
 
 
19721
 
  echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5
 
19630
CFLAGS=$save_cflags
 
19631
CXXFLAGS=$save_cxxflags
 
19632
 
 
19633
 
 
19634
echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5
19722
19635
echo $ECHO_N "checking for GGZ library: libggz... $ECHO_C" >&6
19723
19636
 
19724
 
  if test "${ggz_cv_path_libggz+set}" = set; then
 
19637
ac_libggz_includes=NO ac_libggz_libraries=NO
 
19638
libggz_libraries=""
 
19639
libggz_includes=""
 
19640
 
 
19641
 
 
19642
# Check whether --with-libggz-dir or --without-libggz-dir was given.
 
19643
if test "${with_libggz_dir+set}" = set; then
 
19644
  withval="$with_libggz_dir"
 
19645
    ac_libggz_includes="$withval"/include
 
19646
       ac_libggz_libraries="$withval"/lib
 
19647
 
 
19648
fi;
 
19649
 
 
19650
# Check whether --with-libggz-includes or --without-libggz-includes was given.
 
19651
if test "${with_libggz_includes+set}" = set; then
 
19652
  withval="$with_libggz_includes"
 
19653
    ac_libggz_includes="$withval"
 
19654
 
 
19655
fi;
 
19656
 
 
19657
# Check whether --with-libggz-libraries or --without-libggz-libraries was given.
 
19658
if test "${with_libggz_libraries+set}" = set; then
 
19659
  withval="$with_libggz_libraries"
 
19660
    ac_libggz_libraries="$withval"
 
19661
 
 
19662
fi;
 
19663
 
 
19664
if test "${ac_cv_have_libggz+set}" = set; then
19725
19665
  echo $ECHO_N "(cached) $ECHO_C" >&6
19726
19666
else
19727
19667
 
19728
 
    ggz_ggz_includes=NO
19729
 
    ggz_ggz_libraries=NO
19730
 
 
19731
 
 
19732
 
# Check whether --with-ggz-dir or --without-ggz-dir was given.
19733
 
if test "${with_ggz_dir+set}" = set; then
19734
 
  withval="$with_ggz_dir"
19735
 
    ggz_ggz_includes="$withval"/include
19736
 
         ggz_ggz_libraries="$withval"/lib
19737
 
 
19738
 
fi;
19739
 
 
19740
 
# Check whether --with-ggz-inc or --without-ggz-inc was given.
19741
 
if test "${with_ggz_inc+set}" = set; then
19742
 
  withval="$with_ggz_inc"
19743
 
  ggz_ggz_includes="$withval"
19744
 
fi;
19745
 
 
19746
 
# Check whether --with-ggz-lib or --without-ggz-lib was given.
19747
 
if test "${with_ggz_lib+set}" = set; then
19748
 
  withval="$with_ggz_lib"
19749
 
  ggz_ggz_libraries="$withval"
19750
 
fi;
19751
 
 
19752
 
 
19753
 
  ret=""
19754
 
  for i in $ggz_ggz_includes $ggz_stdinc; do
19755
 
    add=yes
19756
 
    for j in $ret; do
19757
 
      if test "x$i" = "x$j"; then
19758
 
        add=no
19759
 
      fi
19760
 
    done
19761
 
    if test "x$i" = "xNO"; then
19762
 
      add=no
19763
 
    fi
19764
 
    if test "x$add" = "xyes"; then
19765
 
      ret="$ret $i"
19766
 
    fi
19767
 
  done
19768
 
  ggz_incdirs=$ret
19769
 
 
19770
 
 
19771
 
  ggz_incdir=NO
19772
 
  for i in $ggz_incdirs;
19773
 
  do
19774
 
    for j in ggz.h;
19775
 
    do
19776
 
      echo "configure: 19776: $i/$j" >&5
19777
 
      if test -r "$i/$j"; then
19778
 
        echo "taking that" >&5
19779
 
        ggz_incdir=$i
19780
 
        break 2
19781
 
      fi
19782
 
    done
19783
 
  done
19784
 
 
19785
 
    ggz_ggz_includes="$ggz_incdir"
19786
 
 
19787
 
 
19788
 
  ret=""
19789
 
  for i in $ggz_ggz_libraries $ggz_stdlib; do
19790
 
    add=yes
19791
 
    for j in $ret; do
19792
 
      if test "x$i" = "x$j"; then
19793
 
        add=no
19794
 
      fi
19795
 
    done
19796
 
    if test "x$i" = "xNO"; then
19797
 
      add=no
19798
 
    fi
19799
 
    if test "x$add" = "xyes"; then
19800
 
      ret="$ret $i"
19801
 
    fi
19802
 
  done
19803
 
  ggz_libdirs=$ret
19804
 
 
19805
 
 
19806
 
  ggz_libdir=NO
19807
 
  for i in $ggz_libdirs;
19808
 
  do
19809
 
    for j in libggz.la;
19810
 
    do
19811
 
      echo "configure: 19811: $i/$j" >&5
19812
 
      if test -r "$i/$j"; then
19813
 
        echo "taking that" >&5
19814
 
        ggz_libdir=$i
19815
 
        break 2
19816
 
      fi
19817
 
    done
19818
 
  done
19819
 
 
19820
 
    ggz_ggz_libraries="$ggz_libdir"
19821
 
 
19822
 
    if test "$ggz_ggz_includes" = NO || test "$ggz_ggz_libraries" = NO; then
19823
 
      have_libggz=no
19824
 
      ggz_cv_path_libggz="have_libggz=$have_libggz \
19825
 
        ggz_ggz_includes= \
19826
 
        ggz_ggz_libraries="
19827
 
    else
19828
 
      have_libggz=yes
19829
 
      ggz_cv_path_libggz="have_libggz=$have_libggz \
19830
 
        ggz_ggz_includes=$ggz_ggz_includes \
19831
 
        ggz_ggz_libraries=$ggz_ggz_libraries"
19832
 
    fi
19833
 
 
19834
 
fi
19835
 
 
19836
 
 
19837
 
  if test "$ggz_ggz_includes" = NO || test "$ggz_ggz_libraries" = NO; then
19838
 
    if test "xGGZ" = xignore; then
19839
 
      echo "$as_me:$LINENO: result: no (ignored)" >&5
19840
 
echo "${ECHO_T}no (ignored)" >&6
19841
 
    else
19842
 
 
19843
 
  echo "$as_me:$LINENO: result: no" >&5
19844
 
echo "${ECHO_T}no" >&6
19845
 
  { { echo "$as_me:$LINENO: error:
 
19668
libggz_incdirs="$ac_libggz_includes $ac_ggz_stdinc"
 
19669
 
 
19670
ret=""
 
19671
for i in $libggz_incdirs; do
 
19672
  add=yes
 
19673
  for j in $ret; do
 
19674
    if test "x$i" = "x$j"; then
 
19675
      add=no
 
19676
    fi
 
19677
  done
 
19678
  if test "x$i" = "xNO"; then
 
19679
    add=no
 
19680
  fi
 
19681
  if test "x$add" = "xyes"; then
 
19682
  ret="$ret $i"
 
19683
  fi
 
19684
done
 
19685
libggz_incdirs=$ret
 
19686
 
 
19687
libggz_header=ggz.h
 
19688
 
 
19689
 
 
19690
libggz_incdir=NO
 
19691
for i in $libggz_incdirs;
 
19692
do
 
19693
  for j in $libggz_header;
 
19694
  do
 
19695
    echo "configure: 19695: $i/$j" >&5
 
19696
    if test -r "$i/$j"; then
 
19697
      echo "taking that" >&5
 
19698
      libggz_incdir=$i
 
19699
      break 2
 
19700
    fi
 
19701
  done
 
19702
done
 
19703
 
 
19704
ac_libggz_includes="$libggz_incdir"
 
19705
 
 
19706
libggz_libdirs="$ac_libggz_libraries $ac_ggz_stdlib"
 
19707
 
 
19708
ret=""
 
19709
for i in $libggz_libdirs; do
 
19710
  add=yes
 
19711
  for j in $ret; do
 
19712
    if test "x$i" = "x$j"; then
 
19713
      add=no
 
19714
    fi
 
19715
  done
 
19716
  if test "x$i" = "xNO"; then
 
19717
    add=no
 
19718
  fi
 
19719
  if test "x$add" = "xyes"; then
 
19720
  ret="$ret $i"
 
19721
  fi
 
19722
done
 
19723
libggz_libdirs=$ret
 
19724
 
 
19725
 
 
19726
libggz_libdir=NO
 
19727
for dir in $libggz_libdirs; do
 
19728
  try="ls -1 $dir/libggz.la $dir/libggz.so"
 
19729
  if test -n "`$try 2> /dev/null`"; then libggz_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
19730
done
 
19731
 
 
19732
ac_libggz_libraries="$libggz_libdir"
 
19733
 
 
19734
if test "$ac_libggz_includes" = NO || test "$ac_libggz_libraries" = NO; then
 
19735
  ac_cv_have_libggz="have_libggz=no"
 
19736
  ac_libggz_notfound=""
 
19737
else
 
19738
  have_libggz="yes"
 
19739
fi
 
19740
 
 
19741
fi
 
19742
 
 
19743
 
 
19744
eval "$ac_cv_have_libggz"
 
19745
 
 
19746
if test "$have_libggz" != yes; then
 
19747
  if test "x" = "xignore"; then
 
19748
    echo "$as_me:$LINENO: result: $have_libggz (ignored)" >&5
 
19749
echo "${ECHO_T}$have_libggz (ignored)" >&6
 
19750
  else
 
19751
    echo "$as_me:$LINENO: result: $have_libggz" >&5
 
19752
echo "${ECHO_T}$have_libggz" >&6
 
19753
    if test "x" = "x"; then
 
19754
 
 
19755
  { echo "$as_me:$LINENO: WARNING: no
19846
19756
  The library 'libggz' does not seem to be installed correctly.
19847
 
  Headers searched in: $ggz_incdirs
19848
 
  Libraries searched in: $ggz_libdirs
 
19757
  Headers searched in: $libggz_incdirs
 
19758
  Libraries searched in: $libggz_libdirs
19849
19759
  Please read QuickStart.GGZ in order to fix this.
19850
19760
  " >&5
19851
 
echo "$as_me: error:
 
19761
echo "$as_me: WARNING: no
19852
19762
  The library 'libggz' does not seem to be installed correctly.
19853
 
  Headers searched in: $ggz_incdirs
19854
 
  Libraries searched in: $ggz_libdirs
 
19763
  Headers searched in: $libggz_incdirs
 
19764
  Libraries searched in: $libggz_libdirs
19855
19765
  Please read QuickStart.GGZ in order to fix this.
19856
19766
  " >&2;}
19857
 
   { (exit 1); exit 1; }; }
19858
 
 
19859
 
    fi
19860
 
  else
19861
 
    echo "$as_me:$LINENO: result: $have_libggz (libraries $ggz_ggz_libraries, headers $ggz_ggz_includes)" >&5
19862
 
echo "${ECHO_T}$have_libggz (libraries $ggz_ggz_libraries, headers $ggz_ggz_includes)" >&6
19863
 
  fi
19864
 
 
19865
 
 
19866
 
  eval "$ggz_cv_path_libggz"
19867
 
 
19868
 
  if test "$have_libggz" != yes; then
19869
 
    if test "x" != xignore; then
19870
 
      : # perform actions given by argument 2.
19871
 
 
19872
 
    fi
19873
 
  else
19874
 
    libggz_libraries="$ggz_ggz_libraries"
19875
 
 
19876
 
 
19877
 
    libggz_includes="$ggz_ggz_includes"
19878
 
 
19879
 
 
19880
 
    if test "$ggz_prefix_incdir" != "$libggz_includes"; then
19881
 
      LIBGGZ_INCLUDES="-isystem $libggz_includes"
19882
 
    fi
19883
 
 
19884
 
 
19885
 
    if test "$ggz_prefix_libdir" != "$libggz_libraries"; then
19886
 
      LIBGGZ_LDFLAGS="-L$libggz_libraries"
19887
 
    fi
19888
 
 
19889
 
 
19890
 
    LIB_GGZ='-lggz'
19891
 
 
19892
 
 
19893
 
    # perform actions given by argument 1.
19894
 
 
19895
 
  fi
19896
 
 
19897
 
 
19898
 
 
19899
 
 
19900
 
 
19901
 
 
19902
 
 
19903
 
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19904
 
if test "${with_replace_ggz+set}" = set; then
19905
 
  withval="$with_replace_ggz"
19906
 
  replace_ggz="$withval"
19907
 
else
19908
 
  replace_ggz=ggz
19909
 
fi;
19910
 
 
19911
 
 
19912
 
# Check whether --with-ggzconfdir or --without-ggzconfdir was given.
19913
 
if test "${with_ggzconfdir+set}" = set; then
19914
 
  withval="$with_ggzconfdir"
19915
 
  ggzconfdir="$withval"
19916
 
else
19917
 
 
19918
 
        if test "x${sysconfdir}" = 'x${prefix}/etc'; then
19919
 
            if test "x${prefix}" = "xNONE"; then
19920
 
                ggzconfdir="${ac_default_prefix}/etc/${replace_ggz}"
19921
 
            else
19922
 
                ggzconfdir="${prefix}/etc/${replace_ggz}"
19923
 
            fi
19924
 
        else
19925
 
            ggzconfdir="${sysconfdir}/${replace_ggz}"
19926
 
        fi
19927
 
 
19928
 
fi;
19929
 
 
19930
 
 
19931
 
cat >>confdefs.h <<_ACEOF
19932
 
#define GGZCONFDIR "${ggzconfdir}"
19933
 
_ACEOF
19934
 
 
19935
 
 
19936
 
 
19937
 
 
19938
 
 
19939
 
 
19940
 
 
19941
 
 
19942
 
 
19943
 
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19944
 
if test "${with_replace_ggz+set}" = set; then
19945
 
  withval="$with_replace_ggz"
19946
 
  replace_ggz="$withval"
19947
 
else
19948
 
  replace_ggz=ggz
19949
 
fi;
19950
 
 
19951
 
 
19952
 
# Check whether --with-ggzlibdir or --without-ggzlibdir was given.
19953
 
if test "${with_ggzlibdir+set}" = set; then
19954
 
  withval="$with_ggzlibdir"
19955
 
  ggzlibdir="$withval"
19956
 
else
19957
 
 
19958
 
        if test "x${libdir}" = 'x${exec_prefix}/lib'; then
19959
 
            if test "x${exec_prefix}" = "xNONE"; then
19960
 
                if test "x${prefix}" = "xNONE"; then
19961
 
                    ggzlibdir="${ac_default_prefix}/lib/${replace_ggz}"
19962
 
                else
19963
 
                    ggzlibdir="${prefix}/lib/${replace_ggz}"
19964
 
                fi
19965
 
            else
19966
 
                ggzlibdir="${exec_prefix}/lib/${replace_ggz}"
19967
 
            fi
19968
 
        else
19969
 
            ggzlibdir="${libdir}/${replace_ggz}"
19970
 
        fi
19971
 
 
19972
 
fi;
19973
 
 
19974
 
 
19975
 
cat >>confdefs.h <<_ACEOF
19976
 
#define GGZLIBDIR "${ggzlibdir}"
19977
 
_ACEOF
19978
 
 
19979
 
 
19980
 
 
19981
 
 
19982
 
 
19983
 
 
19984
 
 
19985
 
 
19986
 
 
19987
 
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19988
 
if test "${with_replace_ggz+set}" = set; then
19989
 
  withval="$with_replace_ggz"
19990
 
  replace_ggz="$withval"
19991
 
else
19992
 
  replace_ggz=ggz
19993
 
fi;
19994
 
 
19995
 
 
19996
 
# Check whether --with-ggzdatadir or --without-ggzdatadir was given.
19997
 
if test "${with_ggzdatadir+set}" = set; then
19998
 
  withval="$with_ggzdatadir"
19999
 
  ggzdatadir="$withval"
20000
 
else
20001
 
 
20002
 
      if test "x${datadir}" = 'x${prefix}/share'; then
20003
 
        if test "x${prefix}" = "xNONE"; then
20004
 
          ggzdatadir="${ac_default_prefix}/share/${replace_ggz}"
20005
 
        else
20006
 
          ggzdatadir="${prefix}/share/${replace_ggz}"
20007
 
        fi
20008
 
      else
20009
 
        ggzdatadir="${datadir}/${replace_ggz}"
20010
 
      fi
20011
 
 
20012
 
fi;
20013
 
 
20014
 
 
20015
 
cat >>confdefs.h <<_ACEOF
20016
 
#define GGZDATADIR "${ggzdatadir}"
20017
 
_ACEOF
20018
 
 
20019
 
 
20020
 
 
20021
 
 
20022
 
 
20023
 
 
20024
 
 
20025
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20027
 
if test "${ac_cv_header_stdc+set}" = set; then
20028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20029
 
else
20030
 
  cat >conftest.$ac_ext <<_ACEOF
20031
 
/* confdefs.h.  */
20032
 
_ACEOF
20033
 
cat confdefs.h >>conftest.$ac_ext
20034
 
cat >>conftest.$ac_ext <<_ACEOF
20035
 
/* end confdefs.h.  */
20036
 
#include <stdlib.h>
20037
 
#include <stdarg.h>
20038
 
#include <string.h>
20039
 
#include <float.h>
20040
 
 
20041
 
int
20042
 
main ()
20043
 
{
20044
 
 
20045
 
  ;
20046
 
  return 0;
20047
 
}
20048
 
_ACEOF
20049
 
rm -f conftest.$ac_objext
20050
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051
 
  (eval $ac_compile) 2>conftest.er1
20052
 
  ac_status=$?
20053
 
  grep -v '^ *+' conftest.er1 >conftest.err
20054
 
  rm -f conftest.er1
20055
 
  cat conftest.err >&5
20056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057
 
  (exit $ac_status); } &&
20058
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20059
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060
 
  (eval $ac_try) 2>&5
20061
 
  ac_status=$?
20062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063
 
  (exit $ac_status); }; } &&
20064
 
         { ac_try='test -s conftest.$ac_objext'
20065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066
 
  (eval $ac_try) 2>&5
20067
 
  ac_status=$?
20068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
 
  (exit $ac_status); }; }; then
20070
 
  ac_cv_header_stdc=yes
20071
 
else
20072
 
  echo "$as_me: failed program was:" >&5
20073
 
sed 's/^/| /' conftest.$ac_ext >&5
20074
 
 
20075
 
ac_cv_header_stdc=no
20076
 
fi
20077
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078
 
 
20079
 
if test $ac_cv_header_stdc = yes; then
20080
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20081
 
  cat >conftest.$ac_ext <<_ACEOF
20082
 
/* confdefs.h.  */
20083
 
_ACEOF
20084
 
cat confdefs.h >>conftest.$ac_ext
20085
 
cat >>conftest.$ac_ext <<_ACEOF
20086
 
/* end confdefs.h.  */
20087
 
#include <string.h>
20088
 
 
20089
 
_ACEOF
20090
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20091
 
  $EGREP "memchr" >/dev/null 2>&1; then
20092
 
  :
20093
 
else
20094
 
  ac_cv_header_stdc=no
20095
 
fi
20096
 
rm -f conftest*
20097
 
 
20098
 
fi
20099
 
 
20100
 
if test $ac_cv_header_stdc = yes; then
20101
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20102
 
  cat >conftest.$ac_ext <<_ACEOF
20103
 
/* confdefs.h.  */
20104
 
_ACEOF
20105
 
cat confdefs.h >>conftest.$ac_ext
20106
 
cat >>conftest.$ac_ext <<_ACEOF
20107
 
/* end confdefs.h.  */
20108
 
#include <stdlib.h>
20109
 
 
20110
 
_ACEOF
20111
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112
 
  $EGREP "free" >/dev/null 2>&1; then
20113
 
  :
20114
 
else
20115
 
  ac_cv_header_stdc=no
20116
 
fi
20117
 
rm -f conftest*
20118
 
 
20119
 
fi
20120
 
 
20121
 
if test $ac_cv_header_stdc = yes; then
20122
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20123
 
  if test "$cross_compiling" = yes; then
20124
 
  :
20125
 
else
20126
 
  cat >conftest.$ac_ext <<_ACEOF
20127
 
/* confdefs.h.  */
20128
 
_ACEOF
20129
 
cat confdefs.h >>conftest.$ac_ext
20130
 
cat >>conftest.$ac_ext <<_ACEOF
20131
 
/* end confdefs.h.  */
20132
 
#include <ctype.h>
20133
 
#if ((' ' & 0x0FF) == 0x020)
20134
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20135
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20136
 
#else
20137
 
# define ISLOWER(c) \
20138
 
                   (('a' <= (c) && (c) <= 'i') \
20139
 
                     || ('j' <= (c) && (c) <= 'r') \
20140
 
                     || ('s' <= (c) && (c) <= 'z'))
20141
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20142
 
#endif
20143
 
 
20144
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20145
 
int
20146
 
main ()
20147
 
{
20148
 
  int i;
20149
 
  for (i = 0; i < 256; i++)
20150
 
    if (XOR (islower (i), ISLOWER (i))
20151
 
        || toupper (i) != TOUPPER (i))
20152
 
      exit(2);
20153
 
  exit (0);
20154
 
}
20155
 
_ACEOF
20156
 
rm -f conftest$ac_exeext
20157
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158
 
  (eval $ac_link) 2>&5
20159
 
  ac_status=$?
20160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20162
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163
 
  (eval $ac_try) 2>&5
20164
 
  ac_status=$?
20165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166
 
  (exit $ac_status); }; }; then
20167
 
  :
20168
 
else
20169
 
  echo "$as_me: program exited with status $ac_status" >&5
20170
 
echo "$as_me: failed program was:" >&5
20171
 
sed 's/^/| /' conftest.$ac_ext >&5
20172
 
 
20173
 
( exit $ac_status )
20174
 
ac_cv_header_stdc=no
20175
 
fi
20176
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177
 
fi
20178
 
fi
20179
 
fi
20180
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20182
 
if test $ac_cv_header_stdc = yes; then
20183
 
 
20184
 
cat >>confdefs.h <<\_ACEOF
20185
 
#define STDC_HEADERS 1
20186
 
_ACEOF
20187
 
 
20188
 
fi
 
19767
  exit 1
 
19768
 
 
19769
    fi
 
19770
 
 
19771
    # perform actions given by argument 2.
 
19772
 
 
19773
  fi
 
19774
else
 
19775
  ac_cv_have_libggz="have_libggz=yes \
 
19776
    ac_libggz_includes=$ac_libggz_includes ac_libggz_libraries=$ac_libggz_libraries"
 
19777
  echo "$as_me:$LINENO: result: $have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&5
 
19778
echo "${ECHO_T}$have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&6
 
19779
 
 
19780
  libggz_libraries="$ac_libggz_libraries"
 
19781
  libggz_includes="$ac_libggz_includes"
 
19782
 
 
19783
 
 
19784
 
 
19785
 
 
19786
  LIBGGZ_INCLUDES="-isystem $libggz_includes"
 
19787
  LIBGGZ_LDFLAGS="-L$libggz_libraries"
 
19788
 
 
19789
 
 
19790
 
 
19791
 
 
19792
  LIB_GGZ='-lggz'
 
19793
 
 
19794
 
 
19795
  # perform actions given by argument 1.
 
19796
 
 
19797
fi
 
19798
 
 
19799
 
 
19800
 
 
19801
# Extract the first word of "xgettext", so it can be a program name with args.
 
19802
set dummy xgettext; ac_word=$2
 
19803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19805
if test "${ac_cv_path_GETTEXT+set}" = set; then
 
19806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19807
else
 
19808
  case $GETTEXT in
 
19809
  [\\/]* | ?:[\\/]*)
 
19810
  ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
 
19811
  ;;
 
19812
  *)
 
19813
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19814
for as_dir in $PATH
 
19815
do
 
19816
  IFS=$as_save_IFS
 
19817
  test -z "$as_dir" && as_dir=.
 
19818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19819
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19820
    ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
19821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19822
    break 2
 
19823
  fi
 
19824
done
 
19825
done
 
19826
 
 
19827
  ;;
 
19828
esac
 
19829
fi
 
19830
GETTEXT=$ac_cv_path_GETTEXT
 
19831
 
 
19832
if test -n "$GETTEXT"; then
 
19833
  echo "$as_me:$LINENO: result: $GETTEXT" >&5
 
19834
echo "${ECHO_T}$GETTEXT" >&6
 
19835
else
 
19836
  echo "$as_me:$LINENO: result: no" >&5
 
19837
echo "${ECHO_T}no" >&6
 
19838
fi
 
19839
 
 
19840
# Extract the first word of "msgfmt", so it can be a program name with args.
 
19841
set dummy msgfmt; ac_word=$2
 
19842
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19843
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19844
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
19845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19846
else
 
19847
  case $MSGFMT in
 
19848
  [\\/]* | ?:[\\/]*)
 
19849
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
19850
  ;;
 
19851
  *)
 
19852
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19853
for as_dir in $PATH
 
19854
do
 
19855
  IFS=$as_save_IFS
 
19856
  test -z "$as_dir" && as_dir=.
 
19857
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19858
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19859
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
19860
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19861
    break 2
 
19862
  fi
 
19863
done
 
19864
done
 
19865
 
 
19866
  ;;
 
19867
esac
 
19868
fi
 
19869
MSGFMT=$ac_cv_path_MSGFMT
 
19870
 
 
19871
if test -n "$MSGFMT"; then
 
19872
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
19873
echo "${ECHO_T}$MSGFMT" >&6
 
19874
else
 
19875
  echo "$as_me:$LINENO: result: no" >&5
 
19876
echo "${ECHO_T}no" >&6
 
19877
fi
 
19878
 
 
19879
# Extract the first word of "msgmerge", so it can be a program name with args.
 
19880
set dummy msgmerge; ac_word=$2
 
19881
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19883
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
19884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19885
else
 
19886
  case $MSGMERGE in
 
19887
  [\\/]* | ?:[\\/]*)
 
19888
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
19889
  ;;
 
19890
  *)
 
19891
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19892
for as_dir in $PATH
 
19893
do
 
19894
  IFS=$as_save_IFS
 
19895
  test -z "$as_dir" && as_dir=.
 
19896
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19897
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19898
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
19899
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19900
    break 2
 
19901
  fi
 
19902
done
 
19903
done
 
19904
 
 
19905
  ;;
 
19906
esac
 
19907
fi
 
19908
MSGMERGE=$ac_cv_path_MSGMERGE
 
19909
 
 
19910
if test -n "$MSGMERGE"; then
 
19911
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
19912
echo "${ECHO_T}$MSGMERGE" >&6
 
19913
else
 
19914
  echo "$as_me:$LINENO: result: no" >&5
 
19915
echo "${ECHO_T}no" >&6
 
19916
fi
 
19917
 
 
19918
 
 
19919
intl=1
 
19920
if test "x$GETTEXT" = "x"; then intl=0; fi
 
19921
if test "x$MSGFMT" = "x"; then intl=0; fi
 
19922
if test "x$MSGMERGE" = "x"; then intl=0; fi
 
19923
 
 
19924
 
 
19925
 
 
19926
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
19927
if test "${with_libiconv_prefix+set}" = set; then
 
19928
  withval="$with_libiconv_prefix"
 
19929
 
 
19930
    for dir in `echo "$withval" | tr : ' '`; do
 
19931
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
 
19932
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
 
19933
    done
 
19934
 
 
19935
fi;
 
19936
 
 
19937
  echo "$as_me:$LINENO: checking for iconv" >&5
 
19938
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
19939
if test "${am_cv_func_iconv+set}" = set; then
 
19940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19941
else
 
19942
 
 
19943
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
19944
    am_cv_lib_iconv=no
 
19945
    cat >conftest.$ac_ext <<_ACEOF
 
19946
/* confdefs.h.  */
 
19947
_ACEOF
 
19948
cat confdefs.h >>conftest.$ac_ext
 
19949
cat >>conftest.$ac_ext <<_ACEOF
 
19950
/* end confdefs.h.  */
 
19951
#include <stdlib.h>
 
19952
#include <iconv.h>
 
19953
int
 
19954
main ()
 
19955
{
 
19956
iconv_t cd = iconv_open("","");
 
19957
       iconv(cd,NULL,NULL,NULL,NULL);
 
19958
       iconv_close(cd);
 
19959
  ;
 
19960
  return 0;
 
19961
}
 
19962
_ACEOF
 
19963
rm -f conftest.$ac_objext conftest$ac_exeext
 
19964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19965
  (eval $ac_link) 2>conftest.er1
 
19966
  ac_status=$?
 
19967
  grep -v '^ *+' conftest.er1 >conftest.err
 
19968
  rm -f conftest.er1
 
19969
  cat conftest.err >&5
 
19970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19971
  (exit $ac_status); } &&
 
19972
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19974
  (eval $ac_try) 2>&5
 
19975
  ac_status=$?
 
19976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19977
  (exit $ac_status); }; } &&
 
19978
         { ac_try='test -s conftest$ac_exeext'
 
19979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19980
  (eval $ac_try) 2>&5
 
19981
  ac_status=$?
 
19982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19983
  (exit $ac_status); }; }; then
 
19984
  am_cv_func_iconv=yes
 
19985
else
 
19986
  echo "$as_me: failed program was:" >&5
 
19987
sed 's/^/| /' conftest.$ac_ext >&5
 
19988
 
 
19989
fi
 
19990
rm -f conftest.err conftest.$ac_objext \
 
19991
      conftest$ac_exeext conftest.$ac_ext
 
19992
    if test "$am_cv_func_iconv" != yes; then
 
19993
      am_save_LIBS="$LIBS"
 
19994
      LIBS="$LIBS -liconv"
 
19995
      cat >conftest.$ac_ext <<_ACEOF
 
19996
/* confdefs.h.  */
 
19997
_ACEOF
 
19998
cat confdefs.h >>conftest.$ac_ext
 
19999
cat >>conftest.$ac_ext <<_ACEOF
 
20000
/* end confdefs.h.  */
 
20001
#include <stdlib.h>
 
20002
#include <iconv.h>
 
20003
int
 
20004
main ()
 
20005
{
 
20006
iconv_t cd = iconv_open("","");
 
20007
         iconv(cd,NULL,NULL,NULL,NULL);
 
20008
         iconv_close(cd);
 
20009
  ;
 
20010
  return 0;
 
20011
}
 
20012
_ACEOF
 
20013
rm -f conftest.$ac_objext conftest$ac_exeext
 
20014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20015
  (eval $ac_link) 2>conftest.er1
 
20016
  ac_status=$?
 
20017
  grep -v '^ *+' conftest.er1 >conftest.err
 
20018
  rm -f conftest.er1
 
20019
  cat conftest.err >&5
 
20020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20021
  (exit $ac_status); } &&
 
20022
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20024
  (eval $ac_try) 2>&5
 
20025
  ac_status=$?
 
20026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20027
  (exit $ac_status); }; } &&
 
20028
         { ac_try='test -s conftest$ac_exeext'
 
20029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20030
  (eval $ac_try) 2>&5
 
20031
  ac_status=$?
 
20032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20033
  (exit $ac_status); }; }; then
 
20034
  am_cv_lib_iconv=yes
 
20035
        am_cv_func_iconv=yes
 
20036
else
 
20037
  echo "$as_me: failed program was:" >&5
 
20038
sed 's/^/| /' conftest.$ac_ext >&5
 
20039
 
 
20040
fi
 
20041
rm -f conftest.err conftest.$ac_objext \
 
20042
      conftest$ac_exeext conftest.$ac_ext
 
20043
      LIBS="$am_save_LIBS"
 
20044
    fi
 
20045
 
 
20046
fi
 
20047
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
20048
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
20049
  if test "$am_cv_func_iconv" = yes; then
 
20050
 
 
20051
cat >>confdefs.h <<\_ACEOF
 
20052
#define HAVE_ICONV 1
 
20053
_ACEOF
 
20054
 
 
20055
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
20056
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
20057
    if test "${am_cv_proto_iconv+set}" = set; then
 
20058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20059
else
 
20060
 
 
20061
      cat >conftest.$ac_ext <<_ACEOF
 
20062
/* confdefs.h.  */
 
20063
_ACEOF
 
20064
cat confdefs.h >>conftest.$ac_ext
 
20065
cat >>conftest.$ac_ext <<_ACEOF
 
20066
/* end confdefs.h.  */
 
20067
 
 
20068
#include <stdlib.h>
 
20069
#include <iconv.h>
 
20070
extern
 
20071
#ifdef __cplusplus
 
20072
"C"
 
20073
#endif
 
20074
#if defined(__STDC__) || defined(__cplusplus)
 
20075
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
20076
#else
 
20077
size_t iconv();
 
20078
#endif
 
20079
 
 
20080
int
 
20081
main ()
 
20082
{
 
20083
 
 
20084
  ;
 
20085
  return 0;
 
20086
}
 
20087
_ACEOF
 
20088
rm -f conftest.$ac_objext
 
20089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20090
  (eval $ac_compile) 2>conftest.er1
 
20091
  ac_status=$?
 
20092
  grep -v '^ *+' conftest.er1 >conftest.err
 
20093
  rm -f conftest.er1
 
20094
  cat conftest.err >&5
 
20095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20096
  (exit $ac_status); } &&
 
20097
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20099
  (eval $ac_try) 2>&5
 
20100
  ac_status=$?
 
20101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20102
  (exit $ac_status); }; } &&
 
20103
         { ac_try='test -s conftest.$ac_objext'
 
20104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20105
  (eval $ac_try) 2>&5
 
20106
  ac_status=$?
 
20107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20108
  (exit $ac_status); }; }; then
 
20109
  am_cv_proto_iconv_arg1=""
 
20110
else
 
20111
  echo "$as_me: failed program was:" >&5
 
20112
sed 's/^/| /' conftest.$ac_ext >&5
 
20113
 
 
20114
am_cv_proto_iconv_arg1="const"
 
20115
fi
 
20116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20117
      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);"
 
20118
fi
 
20119
 
 
20120
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
20121
    echo "$as_me:$LINENO: result: ${ac_t:-
 
20122
         }$am_cv_proto_iconv" >&5
 
20123
echo "${ECHO_T}${ac_t:-
 
20124
         }$am_cv_proto_iconv" >&6
 
20125
 
 
20126
cat >>confdefs.h <<_ACEOF
 
20127
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
20128
_ACEOF
 
20129
 
 
20130
  fi
 
20131
  LIBICONV=
 
20132
  if test "$am_cv_lib_iconv" = yes; then
 
20133
    LIBICONV="-liconv"
 
20134
  fi
 
20135
 
 
20136
 
 
20137
LIBS="$LIBICONV $LIBS"
 
20138
echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
 
20139
echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
 
20140
if test "${ac_cv_lib_intl_gettext+set}" = set; then
 
20141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20142
else
 
20143
  ac_check_lib_save_LIBS=$LIBS
 
20144
LIBS="-lintl  $LIBS"
 
20145
cat >conftest.$ac_ext <<_ACEOF
 
20146
/* confdefs.h.  */
 
20147
_ACEOF
 
20148
cat confdefs.h >>conftest.$ac_ext
 
20149
cat >>conftest.$ac_ext <<_ACEOF
 
20150
/* end confdefs.h.  */
 
20151
 
 
20152
/* Override any gcc2 internal prototype to avoid an error.  */
 
20153
#ifdef __cplusplus
 
20154
extern "C"
 
20155
#endif
 
20156
/* We use char because int might match the return type of a gcc2
 
20157
   builtin and then its argument prototype would still apply.  */
 
20158
char gettext ();
 
20159
int
 
20160
main ()
 
20161
{
 
20162
gettext ();
 
20163
  ;
 
20164
  return 0;
 
20165
}
 
20166
_ACEOF
 
20167
rm -f conftest.$ac_objext conftest$ac_exeext
 
20168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20169
  (eval $ac_link) 2>conftest.er1
 
20170
  ac_status=$?
 
20171
  grep -v '^ *+' conftest.er1 >conftest.err
 
20172
  rm -f conftest.er1
 
20173
  cat conftest.err >&5
 
20174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20175
  (exit $ac_status); } &&
 
20176
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20178
  (eval $ac_try) 2>&5
 
20179
  ac_status=$?
 
20180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20181
  (exit $ac_status); }; } &&
 
20182
         { ac_try='test -s conftest$ac_exeext'
 
20183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20184
  (eval $ac_try) 2>&5
 
20185
  ac_status=$?
 
20186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20187
  (exit $ac_status); }; }; then
 
20188
  ac_cv_lib_intl_gettext=yes
 
20189
else
 
20190
  echo "$as_me: failed program was:" >&5
 
20191
sed 's/^/| /' conftest.$ac_ext >&5
 
20192
 
 
20193
ac_cv_lib_intl_gettext=no
 
20194
fi
 
20195
rm -f conftest.err conftest.$ac_objext \
 
20196
      conftest$ac_exeext conftest.$ac_ext
 
20197
LIBS=$ac_check_lib_save_LIBS
 
20198
fi
 
20199
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
 
20200
echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
 
20201
if test $ac_cv_lib_intl_gettext = yes; then
 
20202
  LIBS="-lintl $LIBS"
 
20203
fi
 
20204
 
 
20205
 
 
20206
 
 
20207
for ac_func in gettext ngettext
 
20208
do
 
20209
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20210
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20211
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20212
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20214
else
 
20215
  cat >conftest.$ac_ext <<_ACEOF
 
20216
/* confdefs.h.  */
 
20217
_ACEOF
 
20218
cat confdefs.h >>conftest.$ac_ext
 
20219
cat >>conftest.$ac_ext <<_ACEOF
 
20220
/* end confdefs.h.  */
 
20221
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20222
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20223
#define $ac_func innocuous_$ac_func
 
20224
 
 
20225
/* System header to define __stub macros and hopefully few prototypes,
 
20226
    which can conflict with char $ac_func (); below.
 
20227
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20228
    <limits.h> exists even on freestanding compilers.  */
 
20229
 
 
20230
#ifdef __STDC__
 
20231
# include <limits.h>
 
20232
#else
 
20233
# include <assert.h>
 
20234
#endif
 
20235
 
 
20236
#undef $ac_func
 
20237
 
 
20238
/* Override any gcc2 internal prototype to avoid an error.  */
 
20239
#ifdef __cplusplus
 
20240
extern "C"
 
20241
{
 
20242
#endif
 
20243
/* We use char because int might match the return type of a gcc2
 
20244
   builtin and then its argument prototype would still apply.  */
 
20245
char $ac_func ();
 
20246
/* The GNU C library defines this for functions which it implements
 
20247
    to always fail with ENOSYS.  Some functions are actually named
 
20248
    something starting with __ and the normal name is an alias.  */
 
20249
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20250
choke me
 
20251
#else
 
20252
char (*f) () = $ac_func;
 
20253
#endif
 
20254
#ifdef __cplusplus
 
20255
}
 
20256
#endif
 
20257
 
 
20258
int
 
20259
main ()
 
20260
{
 
20261
return f != $ac_func;
 
20262
  ;
 
20263
  return 0;
 
20264
}
 
20265
_ACEOF
 
20266
rm -f conftest.$ac_objext conftest$ac_exeext
 
20267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20268
  (eval $ac_link) 2>conftest.er1
 
20269
  ac_status=$?
 
20270
  grep -v '^ *+' conftest.er1 >conftest.err
 
20271
  rm -f conftest.er1
 
20272
  cat conftest.err >&5
 
20273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20274
  (exit $ac_status); } &&
 
20275
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20277
  (eval $ac_try) 2>&5
 
20278
  ac_status=$?
 
20279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20280
  (exit $ac_status); }; } &&
 
20281
         { ac_try='test -s conftest$ac_exeext'
 
20282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20283
  (eval $ac_try) 2>&5
 
20284
  ac_status=$?
 
20285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20286
  (exit $ac_status); }; }; then
 
20287
  eval "$as_ac_var=yes"
 
20288
else
 
20289
  echo "$as_me: failed program was:" >&5
 
20290
sed 's/^/| /' conftest.$ac_ext >&5
 
20291
 
 
20292
eval "$as_ac_var=no"
 
20293
fi
 
20294
rm -f conftest.err conftest.$ac_objext \
 
20295
      conftest$ac_exeext conftest.$ac_ext
 
20296
fi
 
20297
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20298
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20299
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20300
  cat >>confdefs.h <<_ACEOF
 
20301
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20302
_ACEOF
 
20303
 
 
20304
else
 
20305
  intl=0
 
20306
fi
 
20307
done
 
20308
 
 
20309
 
 
20310
 
 
20311
for ac_header in libintl.h locale.h
 
20312
do
 
20313
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20314
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20315
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20316
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20317
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20319
fi
 
20320
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20321
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20322
else
 
20323
  # Is the header compilable?
 
20324
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20325
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20326
cat >conftest.$ac_ext <<_ACEOF
 
20327
/* confdefs.h.  */
 
20328
_ACEOF
 
20329
cat confdefs.h >>conftest.$ac_ext
 
20330
cat >>conftest.$ac_ext <<_ACEOF
 
20331
/* end confdefs.h.  */
 
20332
$ac_includes_default
 
20333
#include <$ac_header>
 
20334
_ACEOF
 
20335
rm -f conftest.$ac_objext
 
20336
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20337
  (eval $ac_compile) 2>conftest.er1
 
20338
  ac_status=$?
 
20339
  grep -v '^ *+' conftest.er1 >conftest.err
 
20340
  rm -f conftest.er1
 
20341
  cat conftest.err >&5
 
20342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20343
  (exit $ac_status); } &&
 
20344
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20346
  (eval $ac_try) 2>&5
 
20347
  ac_status=$?
 
20348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20349
  (exit $ac_status); }; } &&
 
20350
         { ac_try='test -s conftest.$ac_objext'
 
20351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20352
  (eval $ac_try) 2>&5
 
20353
  ac_status=$?
 
20354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20355
  (exit $ac_status); }; }; then
 
20356
  ac_header_compiler=yes
 
20357
else
 
20358
  echo "$as_me: failed program was:" >&5
 
20359
sed 's/^/| /' conftest.$ac_ext >&5
 
20360
 
 
20361
ac_header_compiler=no
 
20362
fi
 
20363
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20364
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20365
echo "${ECHO_T}$ac_header_compiler" >&6
 
20366
 
 
20367
# Is the header present?
 
20368
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20369
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20370
cat >conftest.$ac_ext <<_ACEOF
 
20371
/* confdefs.h.  */
 
20372
_ACEOF
 
20373
cat confdefs.h >>conftest.$ac_ext
 
20374
cat >>conftest.$ac_ext <<_ACEOF
 
20375
/* end confdefs.h.  */
 
20376
#include <$ac_header>
 
20377
_ACEOF
 
20378
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20379
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20380
  ac_status=$?
 
20381
  grep -v '^ *+' conftest.er1 >conftest.err
 
20382
  rm -f conftest.er1
 
20383
  cat conftest.err >&5
 
20384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20385
  (exit $ac_status); } >/dev/null; then
 
20386
  if test -s conftest.err; then
 
20387
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20388
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20389
  else
 
20390
    ac_cpp_err=
 
20391
  fi
 
20392
else
 
20393
  ac_cpp_err=yes
 
20394
fi
 
20395
if test -z "$ac_cpp_err"; then
 
20396
  ac_header_preproc=yes
 
20397
else
 
20398
  echo "$as_me: failed program was:" >&5
 
20399
sed 's/^/| /' conftest.$ac_ext >&5
 
20400
 
 
20401
  ac_header_preproc=no
 
20402
fi
 
20403
rm -f conftest.err conftest.$ac_ext
 
20404
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20405
echo "${ECHO_T}$ac_header_preproc" >&6
 
20406
 
 
20407
# So?  What about this header?
 
20408
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20409
  yes:no: )
 
20410
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20411
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20412
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20413
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20414
    ac_header_preproc=yes
 
20415
    ;;
 
20416
  no:yes:* )
 
20417
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20418
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20419
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20420
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20421
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20422
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20423
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20424
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20425
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20426
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20427
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20428
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20429
    (
 
20430
      cat <<\_ASBOX
 
20431
## --------------------------------------------- ##
 
20432
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
20433
## --------------------------------------------- ##
 
20434
_ASBOX
 
20435
    ) |
 
20436
      sed "s/^/$as_me: WARNING:     /" >&2
 
20437
    ;;
 
20438
esac
 
20439
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20440
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20441
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20443
else
 
20444
  eval "$as_ac_Header=\$ac_header_preproc"
 
20445
fi
 
20446
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20447
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20448
 
 
20449
fi
 
20450
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20451
  cat >>confdefs.h <<_ACEOF
 
20452
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20453
_ACEOF
 
20454
 
 
20455
fi
 
20456
 
 
20457
done
 
20458
 
 
20459
if test "$intl" = 0; then
 
20460
  if test "x" = "xignore"; then
 
20461
    { echo "$as_me:$LINENO: WARNING: Internationalization tools missing. (ignored)" >&5
 
20462
echo "$as_me: WARNING: Internationalization tools missing. (ignored)" >&2;}
 
20463
  else
 
20464
    echo "$as_me:$LINENO: result: Internationalization tools missing." >&5
 
20465
echo "${ECHO_T}Internationalization tools missing." >&6
 
20466
    if test "x" = "x"; then
 
20467
      { { echo "$as_me:$LINENO: error: Internationalization tools missing." >&5
 
20468
echo "$as_me: error: Internationalization tools missing." >&2;}
 
20469
   { (exit 1); exit 1; }; }
 
20470
    fi
 
20471
 
 
20472
    # Perform actions given by argument 2.
 
20473
 
 
20474
  fi
 
20475
else
 
20476
  echo "$as_me:$LINENO: result: Internationalization tools found." >&5
 
20477
echo "${ECHO_T}Internationalization tools found." >&6
 
20478
 
 
20479
  XGETTEXT=$GETTEXT
 
20480
  GMSGFMT=$MSGFMT
 
20481
 
 
20482
 
 
20483
 
 
20484
 
 
20485
 
 
20486
 
 
20487
 
 
20488
 
 
20489
cat >>confdefs.h <<\_ACEOF
 
20490
#define ENABLE_NLS 1
 
20491
_ACEOF
 
20492
 
 
20493
 
 
20494
  # Perform actions given by argument 1.
 
20495
 
 
20496
fi
 
20497
 
 
20498
 
 
20499
 
 
20500
 
 
20501
# Check for header files
 
20502
# ======================
 
20503
 
 
20504
 
 
20505
 
 
20506
 
 
20507
 
 
20508
for ac_header in fcntl.h limits.h sys/time.h time.h \
 
20509
                  unistd.h
 
20510
do
 
20511
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20513
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20514
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20515
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20517
fi
 
20518
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20519
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20520
else
 
20521
  # Is the header compilable?
 
20522
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20523
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20524
cat >conftest.$ac_ext <<_ACEOF
 
20525
/* confdefs.h.  */
 
20526
_ACEOF
 
20527
cat confdefs.h >>conftest.$ac_ext
 
20528
cat >>conftest.$ac_ext <<_ACEOF
 
20529
/* end confdefs.h.  */
 
20530
$ac_includes_default
 
20531
#include <$ac_header>
 
20532
_ACEOF
 
20533
rm -f conftest.$ac_objext
 
20534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20535
  (eval $ac_compile) 2>conftest.er1
 
20536
  ac_status=$?
 
20537
  grep -v '^ *+' conftest.er1 >conftest.err
 
20538
  rm -f conftest.er1
 
20539
  cat conftest.err >&5
 
20540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20541
  (exit $ac_status); } &&
 
20542
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20544
  (eval $ac_try) 2>&5
 
20545
  ac_status=$?
 
20546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20547
  (exit $ac_status); }; } &&
 
20548
         { ac_try='test -s conftest.$ac_objext'
 
20549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20550
  (eval $ac_try) 2>&5
 
20551
  ac_status=$?
 
20552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20553
  (exit $ac_status); }; }; then
 
20554
  ac_header_compiler=yes
 
20555
else
 
20556
  echo "$as_me: failed program was:" >&5
 
20557
sed 's/^/| /' conftest.$ac_ext >&5
 
20558
 
 
20559
ac_header_compiler=no
 
20560
fi
 
20561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20562
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20563
echo "${ECHO_T}$ac_header_compiler" >&6
 
20564
 
 
20565
# Is the header present?
 
20566
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20567
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20568
cat >conftest.$ac_ext <<_ACEOF
 
20569
/* confdefs.h.  */
 
20570
_ACEOF
 
20571
cat confdefs.h >>conftest.$ac_ext
 
20572
cat >>conftest.$ac_ext <<_ACEOF
 
20573
/* end confdefs.h.  */
 
20574
#include <$ac_header>
 
20575
_ACEOF
 
20576
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20577
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20578
  ac_status=$?
 
20579
  grep -v '^ *+' conftest.er1 >conftest.err
 
20580
  rm -f conftest.er1
 
20581
  cat conftest.err >&5
 
20582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20583
  (exit $ac_status); } >/dev/null; then
 
20584
  if test -s conftest.err; then
 
20585
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20586
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20587
  else
 
20588
    ac_cpp_err=
 
20589
  fi
 
20590
else
 
20591
  ac_cpp_err=yes
 
20592
fi
 
20593
if test -z "$ac_cpp_err"; then
 
20594
  ac_header_preproc=yes
 
20595
else
 
20596
  echo "$as_me: failed program was:" >&5
 
20597
sed 's/^/| /' conftest.$ac_ext >&5
 
20598
 
 
20599
  ac_header_preproc=no
 
20600
fi
 
20601
rm -f conftest.err conftest.$ac_ext
 
20602
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20603
echo "${ECHO_T}$ac_header_preproc" >&6
 
20604
 
 
20605
# So?  What about this header?
 
20606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20607
  yes:no: )
 
20608
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20609
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20610
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20611
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20612
    ac_header_preproc=yes
 
20613
    ;;
 
20614
  no:yes:* )
 
20615
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20616
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20617
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20618
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20619
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20620
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20621
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20622
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20623
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20624
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20625
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20626
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20627
    (
 
20628
      cat <<\_ASBOX
 
20629
## --------------------------------------------- ##
 
20630
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
20631
## --------------------------------------------- ##
 
20632
_ASBOX
 
20633
    ) |
 
20634
      sed "s/^/$as_me: WARNING:     /" >&2
 
20635
    ;;
 
20636
esac
 
20637
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20638
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20641
else
 
20642
  eval "$as_ac_Header=\$ac_header_preproc"
 
20643
fi
 
20644
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20645
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20646
 
 
20647
fi
 
20648
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20649
  cat >>confdefs.h <<_ACEOF
 
20650
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20651
_ACEOF
 
20652
 
 
20653
else
 
20654
  { { echo "$as_me:$LINENO: error: cannot find required header file" >&5
 
20655
echo "$as_me: error: cannot find required header file" >&2;}
 
20656
   { (exit 1); exit 1; }; }
 
20657
fi
 
20658
 
 
20659
done
 
20660
 
 
20661
 
 
20662
 
 
20663
 
 
20664
for ac_header in netdb.h sys/socket.h winsock2.h
 
20665
do
 
20666
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20667
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20668
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20669
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20670
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20672
fi
 
20673
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20674
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20675
else
 
20676
  # Is the header compilable?
 
20677
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20678
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20679
cat >conftest.$ac_ext <<_ACEOF
 
20680
/* confdefs.h.  */
 
20681
_ACEOF
 
20682
cat confdefs.h >>conftest.$ac_ext
 
20683
cat >>conftest.$ac_ext <<_ACEOF
 
20684
/* end confdefs.h.  */
 
20685
$ac_includes_default
 
20686
#include <$ac_header>
 
20687
_ACEOF
 
20688
rm -f conftest.$ac_objext
 
20689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20690
  (eval $ac_compile) 2>conftest.er1
 
20691
  ac_status=$?
 
20692
  grep -v '^ *+' conftest.er1 >conftest.err
 
20693
  rm -f conftest.er1
 
20694
  cat conftest.err >&5
 
20695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20696
  (exit $ac_status); } &&
 
20697
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20699
  (eval $ac_try) 2>&5
 
20700
  ac_status=$?
 
20701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20702
  (exit $ac_status); }; } &&
 
20703
         { ac_try='test -s conftest.$ac_objext'
 
20704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20705
  (eval $ac_try) 2>&5
 
20706
  ac_status=$?
 
20707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20708
  (exit $ac_status); }; }; then
 
20709
  ac_header_compiler=yes
 
20710
else
 
20711
  echo "$as_me: failed program was:" >&5
 
20712
sed 's/^/| /' conftest.$ac_ext >&5
 
20713
 
 
20714
ac_header_compiler=no
 
20715
fi
 
20716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20717
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20718
echo "${ECHO_T}$ac_header_compiler" >&6
 
20719
 
 
20720
# Is the header present?
 
20721
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20722
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20723
cat >conftest.$ac_ext <<_ACEOF
 
20724
/* confdefs.h.  */
 
20725
_ACEOF
 
20726
cat confdefs.h >>conftest.$ac_ext
 
20727
cat >>conftest.$ac_ext <<_ACEOF
 
20728
/* end confdefs.h.  */
 
20729
#include <$ac_header>
 
20730
_ACEOF
 
20731
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20732
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20733
  ac_status=$?
 
20734
  grep -v '^ *+' conftest.er1 >conftest.err
 
20735
  rm -f conftest.er1
 
20736
  cat conftest.err >&5
 
20737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20738
  (exit $ac_status); } >/dev/null; then
 
20739
  if test -s conftest.err; then
 
20740
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20741
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20742
  else
 
20743
    ac_cpp_err=
 
20744
  fi
 
20745
else
 
20746
  ac_cpp_err=yes
 
20747
fi
 
20748
if test -z "$ac_cpp_err"; then
 
20749
  ac_header_preproc=yes
 
20750
else
 
20751
  echo "$as_me: failed program was:" >&5
 
20752
sed 's/^/| /' conftest.$ac_ext >&5
 
20753
 
 
20754
  ac_header_preproc=no
 
20755
fi
 
20756
rm -f conftest.err conftest.$ac_ext
 
20757
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20758
echo "${ECHO_T}$ac_header_preproc" >&6
 
20759
 
 
20760
# So?  What about this header?
 
20761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20762
  yes:no: )
 
20763
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20765
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20766
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20767
    ac_header_preproc=yes
 
20768
    ;;
 
20769
  no:yes:* )
 
20770
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20771
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20772
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20773
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20774
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20775
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20776
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20777
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20778
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20779
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20780
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20781
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20782
    (
 
20783
      cat <<\_ASBOX
 
20784
## --------------------------------------------- ##
 
20785
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
20786
## --------------------------------------------- ##
 
20787
_ASBOX
 
20788
    ) |
 
20789
      sed "s/^/$as_me: WARNING:     /" >&2
 
20790
    ;;
 
20791
esac
 
20792
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20793
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20794
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20796
else
 
20797
  eval "$as_ac_Header=\$ac_header_preproc"
 
20798
fi
 
20799
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20800
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20801
 
 
20802
fi
 
20803
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20804
  cat >>confdefs.h <<_ACEOF
 
20805
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20806
_ACEOF
 
20807
 
 
20808
fi
 
20809
 
 
20810
done
20189
20811
 
20190
20812
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20191
20813
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20257
20879
 
20258
20880
fi
20259
20881
 
20260
 
 
20261
 
 
20262
 
for ac_header in sys/time.h unistd.h
20263
 
do
20264
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20265
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20266
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20267
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20268
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20882
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20883
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
20884
if test "${ac_cv_header_time+set}" = set; then
20269
20885
  echo $ECHO_N "(cached) $ECHO_C" >&6
20270
 
fi
20271
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20272
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20273
20886
else
20274
 
  # Is the header compilable?
20275
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20276
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20277
 
cat >conftest.$ac_ext <<_ACEOF
 
20887
  cat >conftest.$ac_ext <<_ACEOF
20278
20888
/* confdefs.h.  */
20279
20889
_ACEOF
20280
20890
cat confdefs.h >>conftest.$ac_ext
20281
20891
cat >>conftest.$ac_ext <<_ACEOF
20282
20892
/* end confdefs.h.  */
20283
 
$ac_includes_default
20284
 
#include <$ac_header>
 
20893
#include <sys/types.h>
 
20894
#include <sys/time.h>
 
20895
#include <time.h>
 
20896
 
 
20897
int
 
20898
main ()
 
20899
{
 
20900
if ((struct tm *) 0)
 
20901
return 0;
 
20902
  ;
 
20903
  return 0;
 
20904
}
20285
20905
_ACEOF
20286
20906
rm -f conftest.$ac_objext
20287
20907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304
20924
  ac_status=$?
20305
20925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306
20926
  (exit $ac_status); }; }; then
20307
 
  ac_header_compiler=yes
 
20927
  ac_cv_header_time=yes
20308
20928
else
20309
20929
  echo "$as_me: failed program was:" >&5
20310
20930
sed 's/^/| /' conftest.$ac_ext >&5
20311
20931
 
20312
 
ac_header_compiler=no
 
20932
ac_cv_header_time=no
20313
20933
fi
20314
20934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20315
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20316
 
echo "${ECHO_T}$ac_header_compiler" >&6
20317
 
 
20318
 
# Is the header present?
20319
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20320
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20321
 
cat >conftest.$ac_ext <<_ACEOF
20322
 
/* confdefs.h.  */
20323
 
_ACEOF
20324
 
cat confdefs.h >>conftest.$ac_ext
20325
 
cat >>conftest.$ac_ext <<_ACEOF
20326
 
/* end confdefs.h.  */
20327
 
#include <$ac_header>
20328
 
_ACEOF
20329
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20330
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20331
 
  ac_status=$?
20332
 
  grep -v '^ *+' conftest.er1 >conftest.err
20333
 
  rm -f conftest.er1
20334
 
  cat conftest.err >&5
20335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336
 
  (exit $ac_status); } >/dev/null; then
20337
 
  if test -s conftest.err; then
20338
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20339
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20340
 
  else
20341
 
    ac_cpp_err=
20342
 
  fi
20343
 
else
20344
 
  ac_cpp_err=yes
20345
 
fi
20346
 
if test -z "$ac_cpp_err"; then
20347
 
  ac_header_preproc=yes
20348
 
else
20349
 
  echo "$as_me: failed program was:" >&5
20350
 
sed 's/^/| /' conftest.$ac_ext >&5
20351
 
 
20352
 
  ac_header_preproc=no
20353
 
fi
20354
 
rm -f conftest.err conftest.$ac_ext
20355
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356
 
echo "${ECHO_T}$ac_header_preproc" >&6
20357
 
 
20358
 
# So?  What about this header?
20359
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360
 
  yes:no: )
20361
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20362
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20364
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20365
 
    ac_header_preproc=yes
20366
 
    ;;
20367
 
  no:yes:* )
20368
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20369
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20370
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20371
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20372
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20373
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20374
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20375
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20376
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20377
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20378
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20379
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20380
 
    (
20381
 
      cat <<\_ASBOX
20382
 
## -------------------------------------------- ##
20383
 
## Report this to ggz-dev@lists.sourceforge.org ##
20384
 
## -------------------------------------------- ##
20385
 
_ASBOX
20386
 
    ) |
20387
 
      sed "s/^/$as_me: WARNING:     /" >&2
20388
 
    ;;
20389
 
esac
20390
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20391
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20392
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20393
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20394
 
else
20395
 
  eval "$as_ac_Header=\$ac_header_preproc"
20396
 
fi
20397
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20398
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20399
 
 
20400
 
fi
20401
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20402
 
  cat >>confdefs.h <<_ACEOF
20403
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20404
 
_ACEOF
20405
 
 
20406
 
fi
20407
 
 
20408
 
done
20409
 
 
20410
 
 
20411
 
 
 
20935
fi
 
20936
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20937
echo "${ECHO_T}$ac_cv_header_time" >&6
 
20938
if test $ac_cv_header_time = yes; then
 
20939
 
 
20940
cat >>confdefs.h <<\_ACEOF
 
20941
#define TIME_WITH_SYS_TIME 1
 
20942
_ACEOF
 
20943
 
 
20944
fi
 
20945
 
 
20946
# We used to check for the presence of WAIT_ANY, and define it as
 
20947
# (pid_t)(-1) if not present.  Now we just leave it up to AC_HEADER_SYS_WAIT.
 
20948
 
 
20949
 
 
20950
# Check for typedefs, structures, and compiler characteristics
 
20951
# ============================================================
20412
20952
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20413
20953
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20414
20954
if test "${ac_cv_c_const+set}" = set; then
20648
21188
_ACEOF
20649
21189
 
20650
21190
 
20651
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20652
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20653
 
if test "${ac_cv_header_time+set}" = set; then
20654
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20655
 
else
20656
 
  cat >conftest.$ac_ext <<_ACEOF
20657
 
/* confdefs.h.  */
20658
 
_ACEOF
20659
 
cat confdefs.h >>conftest.$ac_ext
20660
 
cat >>conftest.$ac_ext <<_ACEOF
20661
 
/* end confdefs.h.  */
20662
 
#include <sys/types.h>
20663
 
#include <sys/time.h>
20664
 
#include <time.h>
20665
 
 
20666
 
int
20667
 
main ()
20668
 
{
20669
 
if ((struct tm *) 0)
20670
 
return 0;
20671
 
  ;
20672
 
  return 0;
20673
 
}
20674
 
_ACEOF
20675
 
rm -f conftest.$ac_objext
20676
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677
 
  (eval $ac_compile) 2>conftest.er1
20678
 
  ac_status=$?
20679
 
  grep -v '^ *+' conftest.er1 >conftest.err
20680
 
  rm -f conftest.er1
20681
 
  cat conftest.err >&5
20682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683
 
  (exit $ac_status); } &&
20684
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686
 
  (eval $ac_try) 2>&5
20687
 
  ac_status=$?
20688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689
 
  (exit $ac_status); }; } &&
20690
 
         { ac_try='test -s conftest.$ac_objext'
20691
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692
 
  (eval $ac_try) 2>&5
20693
 
  ac_status=$?
20694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695
 
  (exit $ac_status); }; }; then
20696
 
  ac_cv_header_time=yes
20697
 
else
20698
 
  echo "$as_me: failed program was:" >&5
20699
 
sed 's/^/| /' conftest.$ac_ext >&5
20700
 
 
20701
 
ac_cv_header_time=no
20702
 
fi
20703
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704
 
fi
20705
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20706
 
echo "${ECHO_T}$ac_cv_header_time" >&6
20707
 
if test $ac_cv_header_time = yes; then
20708
 
 
20709
 
cat >>confdefs.h <<\_ACEOF
20710
 
#define TIME_WITH_SYS_TIME 1
20711
 
_ACEOF
20712
 
 
20713
 
fi
20714
 
 
20715
 
 
20716
 
 
20717
 
cat >conftest.$ac_ext <<_ACEOF
20718
 
/* confdefs.h.  */
20719
 
_ACEOF
20720
 
cat confdefs.h >>conftest.$ac_ext
20721
 
cat >>conftest.$ac_ext <<_ACEOF
20722
 
/* end confdefs.h.  */
20723
 
 #include <sys/wait.h>
20724
 
               WAIT_ANY
20725
 
_ACEOF
20726
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20727
 
  $EGREP "WAIT_ANY" >/dev/null 2>&1; then
20728
 
  { echo "$as_me:$LINENO: WARNING: *** Cannot find WAIT_ANY" >&5
20729
 
echo "$as_me: WARNING: *** Cannot find WAIT_ANY" >&2;}
20730
 
 
20731
 
cat >>confdefs.h <<\_ACEOF
20732
 
#define WAIT_ANY (pid_t)-1
20733
 
_ACEOF
20734
 
 
20735
 
fi
20736
 
rm -f conftest*
20737
 
 
20738
 
 
20739
 
 
 
21191
 
 
21192
 
 
21193
# Check for PF_LOCAL/PF_UNIX
 
21194
# ==========================
 
21195
# There should be an autoconf macro to check this???
 
21196
#
 
21197
# Not having this is not necessarily a fatal error.  It should mean that
 
21198
# the WinAPI interface is used instead.
20740
21199
echo "$as_me:$LINENO: checking for PF_LOCAL" >&5
20741
21200
echo $ECHO_N "checking for PF_LOCAL... $ECHO_C" >&6
20742
21201
cat >conftest.$ac_ext <<_ACEOF
20745
21204
cat confdefs.h >>conftest.$ac_ext
20746
21205
cat >>conftest.$ac_ext <<_ACEOF
20747
21206
/* end confdefs.h.  */
20748
 
 #include <sys/socket.h>
20749
 
                 PF_LOCAL
 
21207
#include <sys/socket.h>
 
21208
              PF_LOCAL
20750
21209
_ACEOF
20751
21210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752
21211
  $EGREP "PF_LOCAL" >/dev/null 2>&1; then
20753
21212
  echo "$as_me:$LINENO: result: no" >&5
20754
21213
echo "${ECHO_T}no" >&6
20755
 
                             echo "$as_me:$LINENO: checking for PF_UNIX" >&5
 
21214
              echo "$as_me:$LINENO: checking for PF_UNIX" >&5
20756
21215
echo $ECHO_N "checking for PF_UNIX... $ECHO_C" >&6
20757
 
                             cat >conftest.$ac_ext <<_ACEOF
 
21216
              cat >conftest.$ac_ext <<_ACEOF
20758
21217
/* confdefs.h.  */
20759
21218
_ACEOF
20760
21219
cat confdefs.h >>conftest.$ac_ext
20761
21220
cat >>conftest.$ac_ext <<_ACEOF
20762
21221
/* end confdefs.h.  */
20763
21222
 #include <sys/socket.h>
20764
 
                                          PF_UNIX
 
21223
                                      PF_UNIX
20765
21224
_ACEOF
20766
21225
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20767
21226
  $EGREP "PF_UNIX" >/dev/null 2>&1; then
20768
21227
  echo "$as_me:$LINENO: result: no" >&5
20769
21228
echo "${ECHO_T}no" >&6
20770
 
                                                     { { echo "$as_me:$LINENO: error: *** Cannot PF_LOCAL or PF_UNIX" >&5
20771
 
echo "$as_me: error: *** Cannot PF_LOCAL or PF_UNIX" >&2;}
20772
 
   { (exit 1); exit 1; }; }
20773
21229
else
20774
21230
  echo "$as_me:$LINENO: result: yes" >&5
20775
21231
echo "${ECHO_T}yes" >&6
20779
21235
_ACEOF
20780
21236
 
20781
21237
 
20782
 
 
20783
21238
cat >>confdefs.h <<\_ACEOF
20784
21239
#define AF_LOCAL AF_UNIX
20785
21240
_ACEOF
20794
21249
rm -f conftest*
20795
21250
 
20796
21251
 
20797
 
 
20798
 
echo "$as_me:$LINENO: checking for poll" >&5
20799
 
echo $ECHO_N "checking for poll... $ECHO_C" >&6
20800
 
if test "${ac_cv_func_poll+set}" = set; then
20801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20802
 
else
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
 
/* Define poll to an innocuous variant, in case <limits.h> declares poll.
20810
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20811
 
#define poll innocuous_poll
20812
 
 
20813
 
/* System header to define __stub macros and hopefully few prototypes,
20814
 
    which can conflict with char poll (); below.
20815
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816
 
    <limits.h> exists even on freestanding compilers.  */
20817
 
 
20818
 
#ifdef __STDC__
20819
 
# include <limits.h>
20820
 
#else
20821
 
# include <assert.h>
20822
 
#endif
20823
 
 
20824
 
#undef poll
20825
 
 
20826
 
/* Override any gcc2 internal prototype to avoid an error.  */
20827
 
#ifdef __cplusplus
20828
 
extern "C"
20829
 
{
20830
 
#endif
20831
 
/* We use char because int might match the return type of a gcc2
20832
 
   builtin and then its argument prototype would still apply.  */
20833
 
char poll ();
20834
 
/* The GNU C library defines this for functions which it implements
20835
 
    to always fail with ENOSYS.  Some functions are actually named
20836
 
    something starting with __ and the normal name is an alias.  */
20837
 
#if defined (__stub_poll) || defined (__stub___poll)
20838
 
choke me
20839
 
#else
20840
 
char (*f) () = poll;
20841
 
#endif
20842
 
#ifdef __cplusplus
20843
 
}
20844
 
#endif
20845
 
 
20846
 
int
20847
 
main ()
20848
 
{
20849
 
return f != poll;
20850
 
  ;
20851
 
  return 0;
20852
 
}
20853
 
_ACEOF
20854
 
rm -f conftest.$ac_objext conftest$ac_exeext
20855
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20856
 
  (eval $ac_link) 2>conftest.er1
20857
 
  ac_status=$?
20858
 
  grep -v '^ *+' conftest.er1 >conftest.err
20859
 
  rm -f conftest.er1
20860
 
  cat conftest.err >&5
20861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862
 
  (exit $ac_status); } &&
20863
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20864
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865
 
  (eval $ac_try) 2>&5
20866
 
  ac_status=$?
20867
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868
 
  (exit $ac_status); }; } &&
20869
 
         { ac_try='test -s conftest$ac_exeext'
20870
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871
 
  (eval $ac_try) 2>&5
20872
 
  ac_status=$?
20873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874
 
  (exit $ac_status); }; }; then
20875
 
  ac_cv_func_poll=yes
20876
 
else
20877
 
  echo "$as_me: failed program was:" >&5
20878
 
sed 's/^/| /' conftest.$ac_ext >&5
20879
 
 
20880
 
ac_cv_func_poll=no
20881
 
fi
20882
 
rm -f conftest.err conftest.$ac_objext \
20883
 
      conftest$ac_exeext conftest.$ac_ext
20884
 
fi
20885
 
echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
20886
 
echo "${ECHO_T}$ac_cv_func_poll" >&6
20887
 
 
20888
 
 
20889
 
 
20890
 
echo "$as_me:$LINENO: checking for poptGetNextOpt in -lpopt" >&5
20891
 
echo $ECHO_N "checking for poptGetNextOpt in -lpopt... $ECHO_C" >&6
20892
 
if test "${ac_cv_lib_popt_poptGetNextOpt+set}" = set; then
20893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20894
 
else
20895
 
  ac_check_lib_save_LIBS=$LIBS
20896
 
LIBS="-lpopt  $LIBS"
20897
 
cat >conftest.$ac_ext <<_ACEOF
20898
 
/* confdefs.h.  */
20899
 
_ACEOF
20900
 
cat confdefs.h >>conftest.$ac_ext
20901
 
cat >>conftest.$ac_ext <<_ACEOF
20902
 
/* end confdefs.h.  */
20903
 
 
20904
 
/* Override any gcc2 internal prototype to avoid an error.  */
20905
 
#ifdef __cplusplus
20906
 
extern "C"
20907
 
#endif
20908
 
/* We use char because int might match the return type of a gcc2
20909
 
   builtin and then its argument prototype would still apply.  */
20910
 
char poptGetNextOpt ();
20911
 
int
20912
 
main ()
20913
 
{
20914
 
poptGetNextOpt ();
20915
 
  ;
20916
 
  return 0;
20917
 
}
20918
 
_ACEOF
20919
 
rm -f conftest.$ac_objext conftest$ac_exeext
20920
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20921
 
  (eval $ac_link) 2>conftest.er1
20922
 
  ac_status=$?
20923
 
  grep -v '^ *+' conftest.er1 >conftest.err
20924
 
  rm -f conftest.er1
20925
 
  cat conftest.err >&5
20926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
 
  (exit $ac_status); } &&
20928
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20929
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930
 
  (eval $ac_try) 2>&5
20931
 
  ac_status=$?
20932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933
 
  (exit $ac_status); }; } &&
20934
 
         { ac_try='test -s conftest$ac_exeext'
20935
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936
 
  (eval $ac_try) 2>&5
20937
 
  ac_status=$?
20938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939
 
  (exit $ac_status); }; }; then
20940
 
  ac_cv_lib_popt_poptGetNextOpt=yes
20941
 
else
20942
 
  echo "$as_me: failed program was:" >&5
20943
 
sed 's/^/| /' conftest.$ac_ext >&5
20944
 
 
20945
 
ac_cv_lib_popt_poptGetNextOpt=no
20946
 
fi
20947
 
rm -f conftest.err conftest.$ac_objext \
20948
 
      conftest$ac_exeext conftest.$ac_ext
20949
 
LIBS=$ac_check_lib_save_LIBS
20950
 
fi
20951
 
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetNextOpt" >&5
20952
 
echo "${ECHO_T}$ac_cv_lib_popt_poptGetNextOpt" >&6
20953
 
if test $ac_cv_lib_popt_poptGetNextOpt = yes; then
20954
 
  if test "${ac_cv_header_popt_h+set}" = set; then
20955
 
  echo "$as_me:$LINENO: checking for popt.h" >&5
20956
 
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
20957
 
if test "${ac_cv_header_popt_h+set}" = set; then
20958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20959
 
fi
20960
 
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
20961
 
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
20962
 
else
20963
 
  # Is the header compilable?
20964
 
echo "$as_me:$LINENO: checking popt.h usability" >&5
20965
 
echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
20966
 
cat >conftest.$ac_ext <<_ACEOF
20967
 
/* confdefs.h.  */
20968
 
_ACEOF
20969
 
cat confdefs.h >>conftest.$ac_ext
20970
 
cat >>conftest.$ac_ext <<_ACEOF
20971
 
/* end confdefs.h.  */
20972
 
$ac_includes_default
20973
 
#include <popt.h>
20974
 
_ACEOF
20975
 
rm -f conftest.$ac_objext
20976
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977
 
  (eval $ac_compile) 2>conftest.er1
20978
 
  ac_status=$?
20979
 
  grep -v '^ *+' conftest.er1 >conftest.err
20980
 
  rm -f conftest.er1
20981
 
  cat conftest.err >&5
20982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983
 
  (exit $ac_status); } &&
20984
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986
 
  (eval $ac_try) 2>&5
20987
 
  ac_status=$?
20988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989
 
  (exit $ac_status); }; } &&
20990
 
         { ac_try='test -s conftest.$ac_objext'
20991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992
 
  (eval $ac_try) 2>&5
20993
 
  ac_status=$?
20994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995
 
  (exit $ac_status); }; }; then
20996
 
  ac_header_compiler=yes
20997
 
else
20998
 
  echo "$as_me: failed program was:" >&5
20999
 
sed 's/^/| /' conftest.$ac_ext >&5
21000
 
 
21001
 
ac_header_compiler=no
21002
 
fi
21003
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005
 
echo "${ECHO_T}$ac_header_compiler" >&6
21006
 
 
21007
 
# Is the header present?
21008
 
echo "$as_me:$LINENO: checking popt.h presence" >&5
21009
 
echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
21010
 
cat >conftest.$ac_ext <<_ACEOF
21011
 
/* confdefs.h.  */
21012
 
_ACEOF
21013
 
cat confdefs.h >>conftest.$ac_ext
21014
 
cat >>conftest.$ac_ext <<_ACEOF
21015
 
/* end confdefs.h.  */
21016
 
#include <popt.h>
21017
 
_ACEOF
21018
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21019
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21020
 
  ac_status=$?
21021
 
  grep -v '^ *+' conftest.er1 >conftest.err
21022
 
  rm -f conftest.er1
21023
 
  cat conftest.err >&5
21024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025
 
  (exit $ac_status); } >/dev/null; then
21026
 
  if test -s conftest.err; then
21027
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21028
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21029
 
  else
21030
 
    ac_cpp_err=
21031
 
  fi
21032
 
else
21033
 
  ac_cpp_err=yes
21034
 
fi
21035
 
if test -z "$ac_cpp_err"; then
21036
 
  ac_header_preproc=yes
21037
 
else
21038
 
  echo "$as_me: failed program was:" >&5
21039
 
sed 's/^/| /' conftest.$ac_ext >&5
21040
 
 
21041
 
  ac_header_preproc=no
21042
 
fi
21043
 
rm -f conftest.err conftest.$ac_ext
21044
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21045
 
echo "${ECHO_T}$ac_header_preproc" >&6
21046
 
 
21047
 
# So?  What about this header?
21048
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049
 
  yes:no: )
21050
 
    { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21051
 
echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21052
 
    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21053
 
echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21054
 
    ac_header_preproc=yes
21055
 
    ;;
21056
 
  no:yes:* )
21057
 
    { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21058
 
echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21059
 
    { echo "$as_me:$LINENO: WARNING: popt.h:     check for missing prerequisite headers?" >&5
21060
 
echo "$as_me: WARNING: popt.h:     check for missing prerequisite headers?" >&2;}
21061
 
    { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21062
 
echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21063
 
    { echo "$as_me:$LINENO: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&5
21064
 
echo "$as_me: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21065
 
    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21066
 
echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21067
 
    { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21068
 
echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21069
 
    (
21070
 
      cat <<\_ASBOX
21071
 
## -------------------------------------------- ##
21072
 
## Report this to ggz-dev@lists.sourceforge.org ##
21073
 
## -------------------------------------------- ##
21074
 
_ASBOX
21075
 
    ) |
21076
 
      sed "s/^/$as_me: WARNING:     /" >&2
21077
 
    ;;
21078
 
esac
21079
 
echo "$as_me:$LINENO: checking for popt.h" >&5
21080
 
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
21081
 
if test "${ac_cv_header_popt_h+set}" = set; then
21082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21083
 
else
21084
 
  ac_cv_header_popt_h=$ac_header_preproc
21085
 
fi
21086
 
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21087
 
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
21088
 
 
21089
 
fi
21090
 
if test $ac_cv_header_popt_h = yes; then
21091
 
  popt_LIBS="-lpopt"
21092
 
else
21093
 
  { { echo "$as_me:$LINENO: error: *** Cannot find popt.h header" >&5
21094
 
echo "$as_me: error: *** Cannot find popt.h header" >&2;}
21095
 
   { (exit 1); exit 1; }; }
21096
 
fi
21097
 
 
21098
 
 
21099
 
else
21100
 
  { { echo "$as_me:$LINENO: error: *** Cannot find popt library" >&5
21101
 
echo "$as_me: error: *** Cannot find popt library" >&2;}
21102
 
   { (exit 1); exit 1; }; }
21103
 
fi
21104
 
 
21105
 
 
21106
 
 
 
21252
# Add DLL build support for WIN32
 
21253
# ===============================
 
21254
 
 
21255
if test "$MINGW32" = "yes"; then
 
21256
        LDFLAGS="$LDFLAGS -no-undefined -lws2_32"
 
21257
fi
 
21258
 
 
21259
# Check for library functions
 
21260
# ===========================
 
21261
 
 
21262
 
 
21263
 
 
21264
 
 
21265
 
 
21266
 
 
21267
for ac_func in dup2 strcasecmp strchr strerror \
 
21268
                malloc vprintf
 
21269
do
 
21270
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21271
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21272
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21273
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21275
else
 
21276
  cat >conftest.$ac_ext <<_ACEOF
 
21277
/* confdefs.h.  */
 
21278
_ACEOF
 
21279
cat confdefs.h >>conftest.$ac_ext
 
21280
cat >>conftest.$ac_ext <<_ACEOF
 
21281
/* end confdefs.h.  */
 
21282
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21283
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21284
#define $ac_func innocuous_$ac_func
 
21285
 
 
21286
/* System header to define __stub macros and hopefully few prototypes,
 
21287
    which can conflict with char $ac_func (); below.
 
21288
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21289
    <limits.h> exists even on freestanding compilers.  */
 
21290
 
 
21291
#ifdef __STDC__
 
21292
# include <limits.h>
 
21293
#else
 
21294
# include <assert.h>
 
21295
#endif
 
21296
 
 
21297
#undef $ac_func
 
21298
 
 
21299
/* Override any gcc2 internal prototype to avoid an error.  */
 
21300
#ifdef __cplusplus
 
21301
extern "C"
 
21302
{
 
21303
#endif
 
21304
/* We use char because int might match the return type of a gcc2
 
21305
   builtin and then its argument prototype would still apply.  */
 
21306
char $ac_func ();
 
21307
/* The GNU C library defines this for functions which it implements
 
21308
    to always fail with ENOSYS.  Some functions are actually named
 
21309
    something starting with __ and the normal name is an alias.  */
 
21310
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21311
choke me
 
21312
#else
 
21313
char (*f) () = $ac_func;
 
21314
#endif
 
21315
#ifdef __cplusplus
 
21316
}
 
21317
#endif
 
21318
 
 
21319
int
 
21320
main ()
 
21321
{
 
21322
return f != $ac_func;
 
21323
  ;
 
21324
  return 0;
 
21325
}
 
21326
_ACEOF
 
21327
rm -f conftest.$ac_objext conftest$ac_exeext
 
21328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21329
  (eval $ac_link) 2>conftest.er1
 
21330
  ac_status=$?
 
21331
  grep -v '^ *+' conftest.er1 >conftest.err
 
21332
  rm -f conftest.er1
 
21333
  cat conftest.err >&5
 
21334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21335
  (exit $ac_status); } &&
 
21336
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21338
  (eval $ac_try) 2>&5
 
21339
  ac_status=$?
 
21340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21341
  (exit $ac_status); }; } &&
 
21342
         { ac_try='test -s conftest$ac_exeext'
 
21343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21344
  (eval $ac_try) 2>&5
 
21345
  ac_status=$?
 
21346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21347
  (exit $ac_status); }; }; then
 
21348
  eval "$as_ac_var=yes"
 
21349
else
 
21350
  echo "$as_me: failed program was:" >&5
 
21351
sed 's/^/| /' conftest.$ac_ext >&5
 
21352
 
 
21353
eval "$as_ac_var=no"
 
21354
fi
 
21355
rm -f conftest.err conftest.$ac_objext \
 
21356
      conftest$ac_exeext conftest.$ac_ext
 
21357
fi
 
21358
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21359
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21360
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21361
  cat >>confdefs.h <<_ACEOF
 
21362
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21363
_ACEOF
 
21364
 
 
21365
else
 
21366
  { { echo "$as_me:$LINENO: error: cannot find required function" >&5
 
21367
echo "$as_me: error: cannot find required function" >&2;}
 
21368
   { (exit 1); exit 1; }; }
 
21369
fi
 
21370
done
 
21371
 
 
21372
 
 
21373
 
 
21374
for ac_func in fork select
 
21375
do
 
21376
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21377
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21378
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21379
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21381
else
 
21382
  cat >conftest.$ac_ext <<_ACEOF
 
21383
/* confdefs.h.  */
 
21384
_ACEOF
 
21385
cat confdefs.h >>conftest.$ac_ext
 
21386
cat >>conftest.$ac_ext <<_ACEOF
 
21387
/* end confdefs.h.  */
 
21388
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21389
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21390
#define $ac_func innocuous_$ac_func
 
21391
 
 
21392
/* System header to define __stub macros and hopefully few prototypes,
 
21393
    which can conflict with char $ac_func (); below.
 
21394
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21395
    <limits.h> exists even on freestanding compilers.  */
 
21396
 
 
21397
#ifdef __STDC__
 
21398
# include <limits.h>
 
21399
#else
 
21400
# include <assert.h>
 
21401
#endif
 
21402
 
 
21403
#undef $ac_func
 
21404
 
 
21405
/* Override any gcc2 internal prototype to avoid an error.  */
 
21406
#ifdef __cplusplus
 
21407
extern "C"
 
21408
{
 
21409
#endif
 
21410
/* We use char because int might match the return type of a gcc2
 
21411
   builtin and then its argument prototype would still apply.  */
 
21412
char $ac_func ();
 
21413
/* The GNU C library defines this for functions which it implements
 
21414
    to always fail with ENOSYS.  Some functions are actually named
 
21415
    something starting with __ and the normal name is an alias.  */
 
21416
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21417
choke me
 
21418
#else
 
21419
char (*f) () = $ac_func;
 
21420
#endif
 
21421
#ifdef __cplusplus
 
21422
}
 
21423
#endif
 
21424
 
 
21425
int
 
21426
main ()
 
21427
{
 
21428
return f != $ac_func;
 
21429
  ;
 
21430
  return 0;
 
21431
}
 
21432
_ACEOF
 
21433
rm -f conftest.$ac_objext conftest$ac_exeext
 
21434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21435
  (eval $ac_link) 2>conftest.er1
 
21436
  ac_status=$?
 
21437
  grep -v '^ *+' conftest.er1 >conftest.err
 
21438
  rm -f conftest.er1
 
21439
  cat conftest.err >&5
 
21440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21441
  (exit $ac_status); } &&
 
21442
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21444
  (eval $ac_try) 2>&5
 
21445
  ac_status=$?
 
21446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21447
  (exit $ac_status); }; } &&
 
21448
         { ac_try='test -s conftest$ac_exeext'
 
21449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21450
  (eval $ac_try) 2>&5
 
21451
  ac_status=$?
 
21452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21453
  (exit $ac_status); }; }; then
 
21454
  eval "$as_ac_var=yes"
 
21455
else
 
21456
  echo "$as_me: failed program was:" >&5
 
21457
sed 's/^/| /' conftest.$ac_ext >&5
 
21458
 
 
21459
eval "$as_ac_var=no"
 
21460
fi
 
21461
rm -f conftest.err conftest.$ac_objext \
 
21462
      conftest$ac_exeext conftest.$ac_ext
 
21463
fi
 
21464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21465
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21466
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21467
  cat >>confdefs.h <<_ACEOF
 
21468
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21469
_ACEOF
 
21470
 
 
21471
fi
 
21472
done
 
21473
 # These fail; dunno why
 
21474
 
 
21475
 
 
21476
 
 
21477
 
 
21478
 
 
21479
 
 
21480
 
 
21481
for ac_func in close hstrerror kill socketpair alarm getenv setenv
 
21482
do
 
21483
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21484
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21485
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21486
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21488
else
 
21489
  cat >conftest.$ac_ext <<_ACEOF
 
21490
/* confdefs.h.  */
 
21491
_ACEOF
 
21492
cat confdefs.h >>conftest.$ac_ext
 
21493
cat >>conftest.$ac_ext <<_ACEOF
 
21494
/* end confdefs.h.  */
 
21495
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21496
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21497
#define $ac_func innocuous_$ac_func
 
21498
 
 
21499
/* System header to define __stub macros and hopefully few prototypes,
 
21500
    which can conflict with char $ac_func (); below.
 
21501
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21502
    <limits.h> exists even on freestanding compilers.  */
 
21503
 
 
21504
#ifdef __STDC__
 
21505
# include <limits.h>
 
21506
#else
 
21507
# include <assert.h>
 
21508
#endif
 
21509
 
 
21510
#undef $ac_func
 
21511
 
 
21512
/* Override any gcc2 internal prototype to avoid an error.  */
 
21513
#ifdef __cplusplus
 
21514
extern "C"
 
21515
{
 
21516
#endif
 
21517
/* We use char because int might match the return type of a gcc2
 
21518
   builtin and then its argument prototype would still apply.  */
 
21519
char $ac_func ();
 
21520
/* The GNU C library defines this for functions which it implements
 
21521
    to always fail with ENOSYS.  Some functions are actually named
 
21522
    something starting with __ and the normal name is an alias.  */
 
21523
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21524
choke me
 
21525
#else
 
21526
char (*f) () = $ac_func;
 
21527
#endif
 
21528
#ifdef __cplusplus
 
21529
}
 
21530
#endif
 
21531
 
 
21532
int
 
21533
main ()
 
21534
{
 
21535
return f != $ac_func;
 
21536
  ;
 
21537
  return 0;
 
21538
}
 
21539
_ACEOF
 
21540
rm -f conftest.$ac_objext conftest$ac_exeext
 
21541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21542
  (eval $ac_link) 2>conftest.er1
 
21543
  ac_status=$?
 
21544
  grep -v '^ *+' conftest.er1 >conftest.err
 
21545
  rm -f conftest.er1
 
21546
  cat conftest.err >&5
 
21547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21548
  (exit $ac_status); } &&
 
21549
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21551
  (eval $ac_try) 2>&5
 
21552
  ac_status=$?
 
21553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21554
  (exit $ac_status); }; } &&
 
21555
         { ac_try='test -s conftest$ac_exeext'
 
21556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21557
  (eval $ac_try) 2>&5
 
21558
  ac_status=$?
 
21559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21560
  (exit $ac_status); }; }; then
 
21561
  eval "$as_ac_var=yes"
 
21562
else
 
21563
  echo "$as_me: failed program was:" >&5
 
21564
sed 's/^/| /' conftest.$ac_ext >&5
 
21565
 
 
21566
eval "$as_ac_var=no"
 
21567
fi
 
21568
rm -f conftest.err conftest.$ac_objext \
 
21569
      conftest$ac_exeext conftest.$ac_ext
 
21570
fi
 
21571
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21572
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21573
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21574
  cat >>confdefs.h <<_ACEOF
 
21575
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21576
_ACEOF
 
21577
 
 
21578
fi
 
21579
done
 
21580
 
 
21581
echo "$as_me:$LINENO: checking for pid_t" >&5
 
21582
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
21583
if test "${ac_cv_type_pid_t+set}" = set; then
 
21584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21585
else
 
21586
  cat >conftest.$ac_ext <<_ACEOF
 
21587
/* confdefs.h.  */
 
21588
_ACEOF
 
21589
cat confdefs.h >>conftest.$ac_ext
 
21590
cat >>conftest.$ac_ext <<_ACEOF
 
21591
/* end confdefs.h.  */
 
21592
$ac_includes_default
 
21593
int
 
21594
main ()
 
21595
{
 
21596
if ((pid_t *) 0)
 
21597
  return 0;
 
21598
if (sizeof (pid_t))
 
21599
  return 0;
 
21600
  ;
 
21601
  return 0;
 
21602
}
 
21603
_ACEOF
 
21604
rm -f conftest.$ac_objext
 
21605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21606
  (eval $ac_compile) 2>conftest.er1
 
21607
  ac_status=$?
 
21608
  grep -v '^ *+' conftest.er1 >conftest.err
 
21609
  rm -f conftest.er1
 
21610
  cat conftest.err >&5
 
21611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21612
  (exit $ac_status); } &&
 
21613
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21615
  (eval $ac_try) 2>&5
 
21616
  ac_status=$?
 
21617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21618
  (exit $ac_status); }; } &&
 
21619
         { ac_try='test -s conftest.$ac_objext'
 
21620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21621
  (eval $ac_try) 2>&5
 
21622
  ac_status=$?
 
21623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21624
  (exit $ac_status); }; }; then
 
21625
  ac_cv_type_pid_t=yes
 
21626
else
 
21627
  echo "$as_me: failed program was:" >&5
 
21628
sed 's/^/| /' conftest.$ac_ext >&5
 
21629
 
 
21630
ac_cv_type_pid_t=no
 
21631
fi
 
21632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21633
fi
 
21634
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
21635
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
21636
if test $ac_cv_type_pid_t = yes; then
 
21637
  :
 
21638
else
 
21639
 
 
21640
cat >>confdefs.h <<_ACEOF
 
21641
#define pid_t int
 
21642
_ACEOF
 
21643
 
 
21644
fi
 
21645
 
 
21646
 
 
21647
 
 
21648
for ac_header in unistd.h vfork.h
 
21649
do
 
21650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21651
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21652
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21654
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21656
fi
 
21657
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21658
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21659
else
 
21660
  # Is the header compilable?
 
21661
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21662
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21663
cat >conftest.$ac_ext <<_ACEOF
 
21664
/* confdefs.h.  */
 
21665
_ACEOF
 
21666
cat confdefs.h >>conftest.$ac_ext
 
21667
cat >>conftest.$ac_ext <<_ACEOF
 
21668
/* end confdefs.h.  */
 
21669
$ac_includes_default
 
21670
#include <$ac_header>
 
21671
_ACEOF
 
21672
rm -f conftest.$ac_objext
 
21673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21674
  (eval $ac_compile) 2>conftest.er1
 
21675
  ac_status=$?
 
21676
  grep -v '^ *+' conftest.er1 >conftest.err
 
21677
  rm -f conftest.er1
 
21678
  cat conftest.err >&5
 
21679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21680
  (exit $ac_status); } &&
 
21681
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21683
  (eval $ac_try) 2>&5
 
21684
  ac_status=$?
 
21685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21686
  (exit $ac_status); }; } &&
 
21687
         { ac_try='test -s conftest.$ac_objext'
 
21688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21689
  (eval $ac_try) 2>&5
 
21690
  ac_status=$?
 
21691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21692
  (exit $ac_status); }; }; then
 
21693
  ac_header_compiler=yes
 
21694
else
 
21695
  echo "$as_me: failed program was:" >&5
 
21696
sed 's/^/| /' conftest.$ac_ext >&5
 
21697
 
 
21698
ac_header_compiler=no
 
21699
fi
 
21700
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21701
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21702
echo "${ECHO_T}$ac_header_compiler" >&6
 
21703
 
 
21704
# Is the header present?
 
21705
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21706
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21707
cat >conftest.$ac_ext <<_ACEOF
 
21708
/* confdefs.h.  */
 
21709
_ACEOF
 
21710
cat confdefs.h >>conftest.$ac_ext
 
21711
cat >>conftest.$ac_ext <<_ACEOF
 
21712
/* end confdefs.h.  */
 
21713
#include <$ac_header>
 
21714
_ACEOF
 
21715
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21716
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21717
  ac_status=$?
 
21718
  grep -v '^ *+' conftest.er1 >conftest.err
 
21719
  rm -f conftest.er1
 
21720
  cat conftest.err >&5
 
21721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21722
  (exit $ac_status); } >/dev/null; then
 
21723
  if test -s conftest.err; then
 
21724
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21725
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21726
  else
 
21727
    ac_cpp_err=
 
21728
  fi
 
21729
else
 
21730
  ac_cpp_err=yes
 
21731
fi
 
21732
if test -z "$ac_cpp_err"; then
 
21733
  ac_header_preproc=yes
 
21734
else
 
21735
  echo "$as_me: failed program was:" >&5
 
21736
sed 's/^/| /' conftest.$ac_ext >&5
 
21737
 
 
21738
  ac_header_preproc=no
 
21739
fi
 
21740
rm -f conftest.err conftest.$ac_ext
 
21741
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21742
echo "${ECHO_T}$ac_header_preproc" >&6
 
21743
 
 
21744
# So?  What about this header?
 
21745
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21746
  yes:no: )
 
21747
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21749
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21751
    ac_header_preproc=yes
 
21752
    ;;
 
21753
  no:yes:* )
 
21754
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21757
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21758
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21760
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21761
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21762
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21764
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21766
    (
 
21767
      cat <<\_ASBOX
 
21768
## --------------------------------------------- ##
 
21769
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
21770
## --------------------------------------------- ##
 
21771
_ASBOX
 
21772
    ) |
 
21773
      sed "s/^/$as_me: WARNING:     /" >&2
 
21774
    ;;
 
21775
esac
 
21776
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21780
else
 
21781
  eval "$as_ac_Header=\$ac_header_preproc"
 
21782
fi
 
21783
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21784
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21785
 
 
21786
fi
 
21787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21788
  cat >>confdefs.h <<_ACEOF
 
21789
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21790
_ACEOF
 
21791
 
 
21792
fi
 
21793
 
 
21794
done
 
21795
 
 
21796
 
 
21797
 
 
21798
for ac_func in fork vfork
 
21799
do
 
21800
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21801
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21802
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21803
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21805
else
 
21806
  cat >conftest.$ac_ext <<_ACEOF
 
21807
/* confdefs.h.  */
 
21808
_ACEOF
 
21809
cat confdefs.h >>conftest.$ac_ext
 
21810
cat >>conftest.$ac_ext <<_ACEOF
 
21811
/* end confdefs.h.  */
 
21812
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21813
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21814
#define $ac_func innocuous_$ac_func
 
21815
 
 
21816
/* System header to define __stub macros and hopefully few prototypes,
 
21817
    which can conflict with char $ac_func (); below.
 
21818
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21819
    <limits.h> exists even on freestanding compilers.  */
 
21820
 
 
21821
#ifdef __STDC__
 
21822
# include <limits.h>
 
21823
#else
 
21824
# include <assert.h>
 
21825
#endif
 
21826
 
 
21827
#undef $ac_func
 
21828
 
 
21829
/* Override any gcc2 internal prototype to avoid an error.  */
 
21830
#ifdef __cplusplus
 
21831
extern "C"
 
21832
{
 
21833
#endif
 
21834
/* We use char because int might match the return type of a gcc2
 
21835
   builtin and then its argument prototype would still apply.  */
 
21836
char $ac_func ();
 
21837
/* The GNU C library defines this for functions which it implements
 
21838
    to always fail with ENOSYS.  Some functions are actually named
 
21839
    something starting with __ and the normal name is an alias.  */
 
21840
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21841
choke me
 
21842
#else
 
21843
char (*f) () = $ac_func;
 
21844
#endif
 
21845
#ifdef __cplusplus
 
21846
}
 
21847
#endif
 
21848
 
 
21849
int
 
21850
main ()
 
21851
{
 
21852
return f != $ac_func;
 
21853
  ;
 
21854
  return 0;
 
21855
}
 
21856
_ACEOF
 
21857
rm -f conftest.$ac_objext conftest$ac_exeext
 
21858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21859
  (eval $ac_link) 2>conftest.er1
 
21860
  ac_status=$?
 
21861
  grep -v '^ *+' conftest.er1 >conftest.err
 
21862
  rm -f conftest.er1
 
21863
  cat conftest.err >&5
 
21864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21865
  (exit $ac_status); } &&
 
21866
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21868
  (eval $ac_try) 2>&5
 
21869
  ac_status=$?
 
21870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21871
  (exit $ac_status); }; } &&
 
21872
         { ac_try='test -s conftest$ac_exeext'
 
21873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21874
  (eval $ac_try) 2>&5
 
21875
  ac_status=$?
 
21876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21877
  (exit $ac_status); }; }; then
 
21878
  eval "$as_ac_var=yes"
 
21879
else
 
21880
  echo "$as_me: failed program was:" >&5
 
21881
sed 's/^/| /' conftest.$ac_ext >&5
 
21882
 
 
21883
eval "$as_ac_var=no"
 
21884
fi
 
21885
rm -f conftest.err conftest.$ac_objext \
 
21886
      conftest$ac_exeext conftest.$ac_ext
 
21887
fi
 
21888
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21889
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21890
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21891
  cat >>confdefs.h <<_ACEOF
 
21892
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21893
_ACEOF
 
21894
 
 
21895
fi
 
21896
done
 
21897
 
 
21898
if test "x$ac_cv_func_fork" = xyes; then
 
21899
  echo "$as_me:$LINENO: checking for working fork" >&5
 
21900
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
 
21901
if test "${ac_cv_func_fork_works+set}" = set; then
 
21902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21903
else
 
21904
  if test "$cross_compiling" = yes; then
 
21905
  ac_cv_func_fork_works=cross
 
21906
else
 
21907
  cat >conftest.$ac_ext <<_ACEOF
 
21908
/* By Ruediger Kuhlmann. */
 
21909
      #include <sys/types.h>
 
21910
      #if HAVE_UNISTD_H
 
21911
      # include <unistd.h>
 
21912
      #endif
 
21913
      /* Some systems only have a dummy stub for fork() */
 
21914
      int main ()
 
21915
      {
 
21916
        if (fork() < 0)
 
21917
          exit (1);
 
21918
        exit (0);
 
21919
      }
 
21920
_ACEOF
 
21921
rm -f conftest$ac_exeext
 
21922
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21923
  (eval $ac_link) 2>&5
 
21924
  ac_status=$?
 
21925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21926
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21928
  (eval $ac_try) 2>&5
 
21929
  ac_status=$?
 
21930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21931
  (exit $ac_status); }; }; then
 
21932
  ac_cv_func_fork_works=yes
 
21933
else
 
21934
  echo "$as_me: program exited with status $ac_status" >&5
 
21935
echo "$as_me: failed program was:" >&5
 
21936
sed 's/^/| /' conftest.$ac_ext >&5
 
21937
 
 
21938
( exit $ac_status )
 
21939
ac_cv_func_fork_works=no
 
21940
fi
 
21941
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21942
fi
 
21943
fi
 
21944
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
21945
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
21946
 
 
21947
else
 
21948
  ac_cv_func_fork_works=$ac_cv_func_fork
 
21949
fi
 
21950
if test "x$ac_cv_func_fork_works" = xcross; then
 
21951
  case $host in
 
21952
    *-*-amigaos* | *-*-msdosdjgpp*)
 
21953
      # Override, as these systems have only a dummy fork() stub
 
21954
      ac_cv_func_fork_works=no
 
21955
      ;;
 
21956
    *)
 
21957
      ac_cv_func_fork_works=yes
 
21958
      ;;
 
21959
  esac
 
21960
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
21961
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
21962
fi
 
21963
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
21964
if test "x$ac_cv_func_vfork" = xyes; then
 
21965
  echo "$as_me:$LINENO: checking for working vfork" >&5
 
21966
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
 
21967
if test "${ac_cv_func_vfork_works+set}" = set; then
 
21968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21969
else
 
21970
  if test "$cross_compiling" = yes; then
 
21971
  ac_cv_func_vfork_works=cross
 
21972
else
 
21973
  cat >conftest.$ac_ext <<_ACEOF
 
21974
/* confdefs.h.  */
 
21975
_ACEOF
 
21976
cat confdefs.h >>conftest.$ac_ext
 
21977
cat >>conftest.$ac_ext <<_ACEOF
 
21978
/* end confdefs.h.  */
 
21979
/* Thanks to Paul Eggert for this test.  */
 
21980
#include <stdio.h>
 
21981
#include <stdlib.h>
 
21982
#include <sys/types.h>
 
21983
#include <sys/stat.h>
 
21984
#include <sys/wait.h>
 
21985
#if HAVE_UNISTD_H
 
21986
# include <unistd.h>
 
21987
#endif
 
21988
#if HAVE_VFORK_H
 
21989
# include <vfork.h>
 
21990
#endif
 
21991
/* On some sparc systems, changes by the child to local and incoming
 
21992
   argument registers are propagated back to the parent.  The compiler
 
21993
   is told about this with #include <vfork.h>, but some compilers
 
21994
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
21995
   static variable whose address is put into a register that is
 
21996
   clobbered by the vfork.  */
 
21997
static void
 
21998
#ifdef __cplusplus
 
21999
sparc_address_test (int arg)
 
22000
# else
 
22001
sparc_address_test (arg) int arg;
 
22002
#endif
 
22003
{
 
22004
  static pid_t child;
 
22005
  if (!child) {
 
22006
    child = vfork ();
 
22007
    if (child < 0) {
 
22008
      perror ("vfork");
 
22009
      _exit(2);
 
22010
    }
 
22011
    if (!child) {
 
22012
      arg = getpid();
 
22013
      write(-1, "", 0);
 
22014
      _exit (arg);
 
22015
    }
 
22016
  }
 
22017
}
 
22018
 
 
22019
int
 
22020
main ()
 
22021
{
 
22022
  pid_t parent = getpid ();
 
22023
  pid_t child;
 
22024
 
 
22025
  sparc_address_test (0);
 
22026
 
 
22027
  child = vfork ();
 
22028
 
 
22029
  if (child == 0) {
 
22030
    /* Here is another test for sparc vfork register problems.  This
 
22031
       test uses lots of local variables, at least as many local
 
22032
       variables as main has allocated so far including compiler
 
22033
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
22034
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
22035
       reuse the register of parent for one of the local variables,
 
22036
       since it will think that parent can't possibly be used any more
 
22037
       in this routine.  Assigning to the local variable will thus
 
22038
       munge parent in the parent process.  */
 
22039
    pid_t
 
22040
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
22041
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
22042
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
22043
       use the same hardware register for all 8 local variables.  */
 
22044
    if (p != p1 || p != p2 || p != p3 || p != p4
 
22045
        || p != p5 || p != p6 || p != p7)
 
22046
      _exit(1);
 
22047
 
 
22048
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
22049
       from child file descriptors.  If the child closes a descriptor
 
22050
       before it execs or exits, this munges the parent's descriptor
 
22051
       as well.  Test for this by closing stdout in the child.  */
 
22052
    _exit(close(fileno(stdout)) != 0);
 
22053
  } else {
 
22054
    int status;
 
22055
    struct stat st;
 
22056
 
 
22057
    while (wait(&status) != child)
 
22058
      ;
 
22059
    exit(
 
22060
         /* Was there some problem with vforking?  */
 
22061
         child < 0
 
22062
 
 
22063
         /* Did the child fail?  (This shouldn't happen.)  */
 
22064
         || status
 
22065
 
 
22066
         /* Did the vfork/compiler bug occur?  */
 
22067
         || parent != getpid()
 
22068
 
 
22069
         /* Did the file descriptor bug occur?  */
 
22070
         || fstat(fileno(stdout), &st) != 0
 
22071
         );
 
22072
  }
 
22073
}
 
22074
_ACEOF
 
22075
rm -f conftest$ac_exeext
 
22076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22077
  (eval $ac_link) 2>&5
 
22078
  ac_status=$?
 
22079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22080
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22082
  (eval $ac_try) 2>&5
 
22083
  ac_status=$?
 
22084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22085
  (exit $ac_status); }; }; then
 
22086
  ac_cv_func_vfork_works=yes
 
22087
else
 
22088
  echo "$as_me: program exited with status $ac_status" >&5
 
22089
echo "$as_me: failed program was:" >&5
 
22090
sed 's/^/| /' conftest.$ac_ext >&5
 
22091
 
 
22092
( exit $ac_status )
 
22093
ac_cv_func_vfork_works=no
 
22094
fi
 
22095
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22096
fi
 
22097
fi
 
22098
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
22099
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
22100
 
 
22101
fi;
 
22102
if test "x$ac_cv_func_fork_works" = xcross; then
 
22103
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
22104
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
22105
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
22106
fi
 
22107
 
 
22108
if test "x$ac_cv_func_vfork_works" = xyes; then
 
22109
 
 
22110
cat >>confdefs.h <<\_ACEOF
 
22111
#define HAVE_WORKING_VFORK 1
 
22112
_ACEOF
 
22113
 
 
22114
else
 
22115
 
 
22116
cat >>confdefs.h <<\_ACEOF
 
22117
#define vfork fork
 
22118
_ACEOF
 
22119
 
 
22120
fi
 
22121
if test "x$ac_cv_func_fork_works" = xyes; then
 
22122
 
 
22123
cat >>confdefs.h <<\_ACEOF
 
22124
#define HAVE_WORKING_FORK 1
 
22125
_ACEOF
 
22126
 
 
22127
fi
 
22128
 
 
22129
#AC_FUNC_MALLOC <- this doesn't do what you think it does
 
22130
 
 
22131
 
 
22132
for ac_header in sys/select.h sys/socket.h
 
22133
do
 
22134
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22136
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22138
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22140
fi
 
22141
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22142
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22143
else
 
22144
  # Is the header compilable?
 
22145
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22146
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
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
$ac_includes_default
 
22154
#include <$ac_header>
 
22155
_ACEOF
 
22156
rm -f conftest.$ac_objext
 
22157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22158
  (eval $ac_compile) 2>conftest.er1
 
22159
  ac_status=$?
 
22160
  grep -v '^ *+' conftest.er1 >conftest.err
 
22161
  rm -f conftest.er1
 
22162
  cat conftest.err >&5
 
22163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22164
  (exit $ac_status); } &&
 
22165
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22167
  (eval $ac_try) 2>&5
 
22168
  ac_status=$?
 
22169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22170
  (exit $ac_status); }; } &&
 
22171
         { ac_try='test -s conftest.$ac_objext'
 
22172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22173
  (eval $ac_try) 2>&5
 
22174
  ac_status=$?
 
22175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22176
  (exit $ac_status); }; }; then
 
22177
  ac_header_compiler=yes
 
22178
else
 
22179
  echo "$as_me: failed program was:" >&5
 
22180
sed 's/^/| /' conftest.$ac_ext >&5
 
22181
 
 
22182
ac_header_compiler=no
 
22183
fi
 
22184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22185
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22186
echo "${ECHO_T}$ac_header_compiler" >&6
 
22187
 
 
22188
# Is the header present?
 
22189
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22190
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22191
cat >conftest.$ac_ext <<_ACEOF
 
22192
/* confdefs.h.  */
 
22193
_ACEOF
 
22194
cat confdefs.h >>conftest.$ac_ext
 
22195
cat >>conftest.$ac_ext <<_ACEOF
 
22196
/* end confdefs.h.  */
 
22197
#include <$ac_header>
 
22198
_ACEOF
 
22199
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22200
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22201
  ac_status=$?
 
22202
  grep -v '^ *+' conftest.er1 >conftest.err
 
22203
  rm -f conftest.er1
 
22204
  cat conftest.err >&5
 
22205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22206
  (exit $ac_status); } >/dev/null; then
 
22207
  if test -s conftest.err; then
 
22208
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22209
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22210
  else
 
22211
    ac_cpp_err=
 
22212
  fi
 
22213
else
 
22214
  ac_cpp_err=yes
 
22215
fi
 
22216
if test -z "$ac_cpp_err"; then
 
22217
  ac_header_preproc=yes
 
22218
else
 
22219
  echo "$as_me: failed program was:" >&5
 
22220
sed 's/^/| /' conftest.$ac_ext >&5
 
22221
 
 
22222
  ac_header_preproc=no
 
22223
fi
 
22224
rm -f conftest.err conftest.$ac_ext
 
22225
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22226
echo "${ECHO_T}$ac_header_preproc" >&6
 
22227
 
 
22228
# So?  What about this header?
 
22229
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22230
  yes:no: )
 
22231
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22232
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22233
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22234
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22235
    ac_header_preproc=yes
 
22236
    ;;
 
22237
  no:yes:* )
 
22238
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22239
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22240
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22241
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22242
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22243
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22244
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22245
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22246
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22247
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22248
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22249
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22250
    (
 
22251
      cat <<\_ASBOX
 
22252
## --------------------------------------------- ##
 
22253
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
22254
## --------------------------------------------- ##
 
22255
_ASBOX
 
22256
    ) |
 
22257
      sed "s/^/$as_me: WARNING:     /" >&2
 
22258
    ;;
 
22259
esac
 
22260
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22261
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22264
else
 
22265
  eval "$as_ac_Header=\$ac_header_preproc"
 
22266
fi
 
22267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22268
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22269
 
 
22270
fi
 
22271
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22272
  cat >>confdefs.h <<_ACEOF
 
22273
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22274
_ACEOF
 
22275
 
 
22276
fi
 
22277
 
 
22278
done
 
22279
 
 
22280
echo "$as_me:$LINENO: checking types of arguments for select" >&5
 
22281
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
 
22282
if test "${ac_cv_func_select_args+set}" = set; then
 
22283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22284
else
 
22285
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
22286
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
 
22287
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
22288
   cat >conftest.$ac_ext <<_ACEOF
 
22289
/* confdefs.h.  */
 
22290
_ACEOF
 
22291
cat confdefs.h >>conftest.$ac_ext
 
22292
cat >>conftest.$ac_ext <<_ACEOF
 
22293
/* end confdefs.h.  */
 
22294
$ac_includes_default
 
22295
#if HAVE_SYS_SELECT_H
 
22296
# include <sys/select.h>
 
22297
#endif
 
22298
#if HAVE_SYS_SOCKET_H
 
22299
# include <sys/socket.h>
 
22300
#endif
 
22301
 
 
22302
int
 
22303
main ()
 
22304
{
 
22305
extern int select ($ac_arg1,
 
22306
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
22307
                                            $ac_arg5);
 
22308
  ;
 
22309
  return 0;
 
22310
}
 
22311
_ACEOF
 
22312
rm -f conftest.$ac_objext
 
22313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22314
  (eval $ac_compile) 2>conftest.er1
 
22315
  ac_status=$?
 
22316
  grep -v '^ *+' conftest.er1 >conftest.err
 
22317
  rm -f conftest.er1
 
22318
  cat conftest.err >&5
 
22319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22320
  (exit $ac_status); } &&
 
22321
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22323
  (eval $ac_try) 2>&5
 
22324
  ac_status=$?
 
22325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22326
  (exit $ac_status); }; } &&
 
22327
         { ac_try='test -s conftest.$ac_objext'
 
22328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22329
  (eval $ac_try) 2>&5
 
22330
  ac_status=$?
 
22331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22332
  (exit $ac_status); }; }; then
 
22333
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
22334
else
 
22335
  echo "$as_me: failed program was:" >&5
 
22336
sed 's/^/| /' conftest.$ac_ext >&5
 
22337
 
 
22338
fi
 
22339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22340
  done
 
22341
 done
 
22342
done
 
22343
# Provide a safe default value.
 
22344
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
 
22345
 
 
22346
fi
 
22347
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
 
22348
echo "${ECHO_T}$ac_cv_func_select_args" >&6
 
22349
ac_save_IFS=$IFS; IFS=','
 
22350
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
22351
IFS=$ac_save_IFS
 
22352
shift
 
22353
 
 
22354
cat >>confdefs.h <<_ACEOF
 
22355
#define SELECT_TYPE_ARG1 $1
 
22356
_ACEOF
 
22357
 
 
22358
 
 
22359
cat >>confdefs.h <<_ACEOF
 
22360
#define SELECT_TYPE_ARG234 ($2)
 
22361
_ACEOF
 
22362
 
 
22363
 
 
22364
cat >>confdefs.h <<_ACEOF
 
22365
#define SELECT_TYPE_ARG5 ($3)
 
22366
_ACEOF
 
22367
 
 
22368
rm -f conftest*
 
22369
 
 
22370
 
 
22371
for ac_func in vprintf
 
22372
do
 
22373
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22374
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22375
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22376
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22378
else
 
22379
  cat >conftest.$ac_ext <<_ACEOF
 
22380
/* confdefs.h.  */
 
22381
_ACEOF
 
22382
cat confdefs.h >>conftest.$ac_ext
 
22383
cat >>conftest.$ac_ext <<_ACEOF
 
22384
/* end confdefs.h.  */
 
22385
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22386
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22387
#define $ac_func innocuous_$ac_func
 
22388
 
 
22389
/* System header to define __stub macros and hopefully few prototypes,
 
22390
    which can conflict with char $ac_func (); below.
 
22391
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22392
    <limits.h> exists even on freestanding compilers.  */
 
22393
 
 
22394
#ifdef __STDC__
 
22395
# include <limits.h>
 
22396
#else
 
22397
# include <assert.h>
 
22398
#endif
 
22399
 
 
22400
#undef $ac_func
 
22401
 
 
22402
/* Override any gcc2 internal prototype to avoid an error.  */
 
22403
#ifdef __cplusplus
 
22404
extern "C"
 
22405
{
 
22406
#endif
 
22407
/* We use char because int might match the return type of a gcc2
 
22408
   builtin and then its argument prototype would still apply.  */
 
22409
char $ac_func ();
 
22410
/* The GNU C library defines this for functions which it implements
 
22411
    to always fail with ENOSYS.  Some functions are actually named
 
22412
    something starting with __ and the normal name is an alias.  */
 
22413
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22414
choke me
 
22415
#else
 
22416
char (*f) () = $ac_func;
 
22417
#endif
 
22418
#ifdef __cplusplus
 
22419
}
 
22420
#endif
 
22421
 
 
22422
int
 
22423
main ()
 
22424
{
 
22425
return f != $ac_func;
 
22426
  ;
 
22427
  return 0;
 
22428
}
 
22429
_ACEOF
 
22430
rm -f conftest.$ac_objext conftest$ac_exeext
 
22431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22432
  (eval $ac_link) 2>conftest.er1
 
22433
  ac_status=$?
 
22434
  grep -v '^ *+' conftest.er1 >conftest.err
 
22435
  rm -f conftest.er1
 
22436
  cat conftest.err >&5
 
22437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22438
  (exit $ac_status); } &&
 
22439
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22441
  (eval $ac_try) 2>&5
 
22442
  ac_status=$?
 
22443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22444
  (exit $ac_status); }; } &&
 
22445
         { ac_try='test -s conftest$ac_exeext'
 
22446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22447
  (eval $ac_try) 2>&5
 
22448
  ac_status=$?
 
22449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22450
  (exit $ac_status); }; }; then
 
22451
  eval "$as_ac_var=yes"
 
22452
else
 
22453
  echo "$as_me: failed program was:" >&5
 
22454
sed 's/^/| /' conftest.$ac_ext >&5
 
22455
 
 
22456
eval "$as_ac_var=no"
 
22457
fi
 
22458
rm -f conftest.err conftest.$ac_objext \
 
22459
      conftest$ac_exeext conftest.$ac_ext
 
22460
fi
 
22461
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22462
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22463
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22464
  cat >>confdefs.h <<_ACEOF
 
22465
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22466
_ACEOF
 
22467
 
 
22468
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
22469
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
22470
if test "${ac_cv_func__doprnt+set}" = set; then
 
22471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22472
else
 
22473
  cat >conftest.$ac_ext <<_ACEOF
 
22474
/* confdefs.h.  */
 
22475
_ACEOF
 
22476
cat confdefs.h >>conftest.$ac_ext
 
22477
cat >>conftest.$ac_ext <<_ACEOF
 
22478
/* end confdefs.h.  */
 
22479
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
22480
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22481
#define _doprnt innocuous__doprnt
 
22482
 
 
22483
/* System header to define __stub macros and hopefully few prototypes,
 
22484
    which can conflict with char _doprnt (); below.
 
22485
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22486
    <limits.h> exists even on freestanding compilers.  */
 
22487
 
 
22488
#ifdef __STDC__
 
22489
# include <limits.h>
 
22490
#else
 
22491
# include <assert.h>
 
22492
#endif
 
22493
 
 
22494
#undef _doprnt
 
22495
 
 
22496
/* Override any gcc2 internal prototype to avoid an error.  */
 
22497
#ifdef __cplusplus
 
22498
extern "C"
 
22499
{
 
22500
#endif
 
22501
/* We use char because int might match the return type of a gcc2
 
22502
   builtin and then its argument prototype would still apply.  */
 
22503
char _doprnt ();
 
22504
/* The GNU C library defines this for functions which it implements
 
22505
    to always fail with ENOSYS.  Some functions are actually named
 
22506
    something starting with __ and the normal name is an alias.  */
 
22507
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
22508
choke me
 
22509
#else
 
22510
char (*f) () = _doprnt;
 
22511
#endif
 
22512
#ifdef __cplusplus
 
22513
}
 
22514
#endif
 
22515
 
 
22516
int
 
22517
main ()
 
22518
{
 
22519
return f != _doprnt;
 
22520
  ;
 
22521
  return 0;
 
22522
}
 
22523
_ACEOF
 
22524
rm -f conftest.$ac_objext conftest$ac_exeext
 
22525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22526
  (eval $ac_link) 2>conftest.er1
 
22527
  ac_status=$?
 
22528
  grep -v '^ *+' conftest.er1 >conftest.err
 
22529
  rm -f conftest.er1
 
22530
  cat conftest.err >&5
 
22531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22532
  (exit $ac_status); } &&
 
22533
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22535
  (eval $ac_try) 2>&5
 
22536
  ac_status=$?
 
22537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22538
  (exit $ac_status); }; } &&
 
22539
         { ac_try='test -s conftest$ac_exeext'
 
22540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22541
  (eval $ac_try) 2>&5
 
22542
  ac_status=$?
 
22543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22544
  (exit $ac_status); }; }; then
 
22545
  ac_cv_func__doprnt=yes
 
22546
else
 
22547
  echo "$as_me: failed program was:" >&5
 
22548
sed 's/^/| /' conftest.$ac_ext >&5
 
22549
 
 
22550
ac_cv_func__doprnt=no
 
22551
fi
 
22552
rm -f conftest.err conftest.$ac_objext \
 
22553
      conftest$ac_exeext conftest.$ac_ext
 
22554
fi
 
22555
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
22556
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
22557
if test $ac_cv_func__doprnt = yes; then
 
22558
 
 
22559
cat >>confdefs.h <<\_ACEOF
 
22560
#define HAVE_DOPRNT 1
 
22561
_ACEOF
 
22562
 
 
22563
fi
 
22564
 
 
22565
fi
 
22566
done
 
22567
 
 
22568
 
 
22569
 
 
22570
for ac_func in mkdir
 
22571
do
 
22572
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22573
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22574
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22575
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22577
else
 
22578
  cat >conftest.$ac_ext <<_ACEOF
 
22579
/* confdefs.h.  */
 
22580
_ACEOF
 
22581
cat confdefs.h >>conftest.$ac_ext
 
22582
cat >>conftest.$ac_ext <<_ACEOF
 
22583
/* end confdefs.h.  */
 
22584
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22585
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22586
#define $ac_func innocuous_$ac_func
 
22587
 
 
22588
/* System header to define __stub macros and hopefully few prototypes,
 
22589
    which can conflict with char $ac_func (); below.
 
22590
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22591
    <limits.h> exists even on freestanding compilers.  */
 
22592
 
 
22593
#ifdef __STDC__
 
22594
# include <limits.h>
 
22595
#else
 
22596
# include <assert.h>
 
22597
#endif
 
22598
 
 
22599
#undef $ac_func
 
22600
 
 
22601
/* Override any gcc2 internal prototype to avoid an error.  */
 
22602
#ifdef __cplusplus
 
22603
extern "C"
 
22604
{
 
22605
#endif
 
22606
/* We use char because int might match the return type of a gcc2
 
22607
   builtin and then its argument prototype would still apply.  */
 
22608
char $ac_func ();
 
22609
/* The GNU C library defines this for functions which it implements
 
22610
    to always fail with ENOSYS.  Some functions are actually named
 
22611
    something starting with __ and the normal name is an alias.  */
 
22612
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22613
choke me
 
22614
#else
 
22615
char (*f) () = $ac_func;
 
22616
#endif
 
22617
#ifdef __cplusplus
 
22618
}
 
22619
#endif
 
22620
 
 
22621
int
 
22622
main ()
 
22623
{
 
22624
return f != $ac_func;
 
22625
  ;
 
22626
  return 0;
 
22627
}
 
22628
_ACEOF
 
22629
rm -f conftest.$ac_objext conftest$ac_exeext
 
22630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22631
  (eval $ac_link) 2>conftest.er1
 
22632
  ac_status=$?
 
22633
  grep -v '^ *+' conftest.er1 >conftest.err
 
22634
  rm -f conftest.er1
 
22635
  cat conftest.err >&5
 
22636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22637
  (exit $ac_status); } &&
 
22638
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22640
  (eval $ac_try) 2>&5
 
22641
  ac_status=$?
 
22642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22643
  (exit $ac_status); }; } &&
 
22644
         { ac_try='test -s conftest$ac_exeext'
 
22645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22646
  (eval $ac_try) 2>&5
 
22647
  ac_status=$?
 
22648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22649
  (exit $ac_status); }; }; then
 
22650
  eval "$as_ac_var=yes"
 
22651
else
 
22652
  echo "$as_me: failed program was:" >&5
 
22653
sed 's/^/| /' conftest.$ac_ext >&5
 
22654
 
 
22655
eval "$as_ac_var=no"
 
22656
fi
 
22657
rm -f conftest.err conftest.$ac_objext \
 
22658
      conftest$ac_exeext conftest.$ac_ext
 
22659
fi
 
22660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22661
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22662
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22663
  cat >>confdefs.h <<_ACEOF
 
22664
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22665
_ACEOF
 
22666
 
 
22667
fi
 
22668
done
 
22669
 
 
22670
   echo "$as_me:$LINENO: checking whether mkdir takes only one argument" >&5
 
22671
echo $ECHO_N "checking whether mkdir takes only one argument... $ECHO_C" >&6
 
22672
if test "${cv_mkdir_takes_one_arg+set}" = set; then
 
22673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22674
else
 
22675
  cv_mkdir_takes_one_arg=no
 
22676
      if test $ac_cv_func_mkdir = yes; then
 
22677
 cat >conftest.$ac_ext <<_ACEOF
 
22678
/* confdefs.h.  */
 
22679
_ACEOF
 
22680
cat confdefs.h >>conftest.$ac_ext
 
22681
cat >>conftest.$ac_ext <<_ACEOF
 
22682
/* end confdefs.h.  */
 
22683
 
 
22684
#include <dir.h>
 
22685
 
 
22686
int
 
22687
main ()
 
22688
{
 
22689
mkdir (".");
 
22690
  ;
 
22691
  return 0;
 
22692
}
 
22693
_ACEOF
 
22694
rm -f conftest.$ac_objext
 
22695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22696
  (eval $ac_compile) 2>conftest.er1
 
22697
  ac_status=$?
 
22698
  grep -v '^ *+' conftest.er1 >conftest.err
 
22699
  rm -f conftest.er1
 
22700
  cat conftest.err >&5
 
22701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22702
  (exit $ac_status); } &&
 
22703
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22705
  (eval $ac_try) 2>&5
 
22706
  ac_status=$?
 
22707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22708
  (exit $ac_status); }; } &&
 
22709
         { ac_try='test -s conftest.$ac_objext'
 
22710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22711
  (eval $ac_try) 2>&5
 
22712
  ac_status=$?
 
22713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22714
  (exit $ac_status); }; }; then
 
22715
  cv_mkdir_takes_one_arg=yes
 
22716
else
 
22717
  echo "$as_me: failed program was:" >&5
 
22718
sed 's/^/| /' conftest.$ac_ext >&5
 
22719
 
 
22720
cv_mkdir_takes_one_arg=no
 
22721
 
 
22722
fi
 
22723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22724
      fi
 
22725
 
 
22726
 
 
22727
fi
 
22728
echo "$as_me:$LINENO: result: $cv_mkdir_takes_one_arg" >&5
 
22729
echo "${ECHO_T}$cv_mkdir_takes_one_arg" >&6
 
22730
   if test $cv_mkdir_takes_one_arg = yes; then
 
22731
 
 
22732
cat >>confdefs.h <<\_ACEOF
 
22733
#define MKDIR_TAKES_ONE_ARG 1
 
22734
_ACEOF
 
22735
 
 
22736
   fi
 
22737
 
 
22738
 
 
22739
if test "$MINGW32" = "yes"; then
 
22740
        LIBS="$LIBS -lws2_32"
 
22741
fi
 
22742
 
 
22743
 
 
22744
# Check for expat
 
22745
# ===============
21107
22746
echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21108
22747
echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21109
22748
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21168
22807
echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21169
22808
echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21170
22809
if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21171
 
  if test "${ac_cv_header_expat_h+set}" = set; then
 
22810
  LIBEXPAT="-lexpat"
 
22811
else
 
22812
  { { echo "$as_me:$LINENO: error: cannot find expat library" >&5
 
22813
echo "$as_me: error: cannot find expat library" >&2;}
 
22814
   { (exit 1); exit 1; }; }
 
22815
fi
 
22816
 
 
22817
if test "${ac_cv_header_expat_h+set}" = set; then
21172
22818
  echo "$as_me:$LINENO: checking for expat.h" >&5
21173
22819
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21174
22820
if test "${ac_cv_header_expat_h+set}" = set; then
21285
22931
echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21286
22932
    (
21287
22933
      cat <<\_ASBOX
21288
 
## -------------------------------------------- ##
21289
 
## Report this to ggz-dev@lists.sourceforge.org ##
21290
 
## -------------------------------------------- ##
 
22934
## --------------------------------------------- ##
 
22935
## Report this to ggz-dev@mail.ggzgamingzone.org ##
 
22936
## --------------------------------------------- ##
21291
22937
_ASBOX
21292
22938
    ) |
21293
22939
      sed "s/^/$as_me: WARNING:     /" >&2
21305
22951
 
21306
22952
fi
21307
22953
if test $ac_cv_header_expat_h = yes; then
21308
 
  expat_LIBS="-lexpat"
21309
 
else
21310
 
  { { echo "$as_me:$LINENO: error: *** Cannot find expat.h header" >&5
21311
 
echo "$as_me: error: *** Cannot find expat.h header" >&2;}
21312
 
   { (exit 1); exit 1; }; }
21313
 
fi
21314
 
 
21315
 
 
21316
 
else
21317
 
  { { echo "$as_me:$LINENO: error: *** Cannot find expat library" >&5
21318
 
echo "$as_me: error: *** Cannot find expat library" >&2;}
21319
 
   { (exit 1); exit 1; }; }
21320
 
fi
21321
 
 
21322
 
 
21323
 
 
21324
 
 
21325
 
 
21326
 
 
21327
 
 
21328
 
                                                                                ac_config_files="$ac_config_files Makefile ggzcore/Makefile ggzmod/Makefile man/Makefile man/ggz-config.6 man/ggz.modules.5 man/ggzmod_h.3 man/ggzcore_h.3"
 
22954
  :
 
22955
else
 
22956
  { { echo "$as_me:$LINENO: error: cannot find expat.h header" >&5
 
22957
echo "$as_me: error: cannot find expat.h header" >&2;}
 
22958
   { (exit 1); exit 1; }; }
 
22959
fi
 
22960
 
 
22961
 
 
22962
 
 
22963
 
 
22964
 
 
22965
# Debug modes
 
22966
# ===========
 
22967
 
 
22968
  # This defines either DEBUG or NDEBUG.  We could provide a third option
 
22969
  # where neither are defined.
 
22970
  # Check whether --enable-debug or --disable-debug was given.
 
22971
if test "${enable_debug+set}" = set; then
 
22972
  enableval="$enable_debug"
 
22973
  enable_debug=no
 
22974
else
 
22975
  enable_debug=yes
 
22976
fi;
 
22977
 
 
22978
  if test "$enable_debug" = yes; then
 
22979
 
 
22980
cat >>confdefs.h <<\_ACEOF
 
22981
#define DEBUG 1
 
22982
_ACEOF
 
22983
 
 
22984
    DFLAGS="DEBUG"
 
22985
  else
 
22986
 
 
22987
cat >>confdefs.h <<\_ACEOF
 
22988
#define NDEBUG 1
 
22989
_ACEOF
 
22990
 
 
22991
    DFLAGS="NDEBUG"
 
22992
  fi
 
22993
 
 
22994
  # Turn on GDB debugging, via a command-line argument for gcc
 
22995
  # Check whether --enable-debug-gdb or --disable-debug-gdb was given.
 
22996
if test "${enable_debug_gdb+set}" = set; then
 
22997
  enableval="$enable_debug_gdb"
 
22998
  enable_debug_gdb=yes
 
22999
else
 
23000
  enable_debug_gdb=no
 
23001
fi;
 
23002
  if test "$enable_debug_gdb" = yes; then
 
23003
    CFLAGS="$CFLAGS -ggdb"
 
23004
  fi
 
23005
 
 
23006
  # Turn on malloc debugging via dmalloc (if specified)
 
23007
  # Check whether --enable-debug-mem or --disable-debug-mem was given.
 
23008
if test "${enable_debug_mem+set}" = set; then
 
23009
  enableval="$enable_debug_mem"
 
23010
  enable_debug_mem=yes
 
23011
else
 
23012
  enable_debug_mem=no
 
23013
fi;
 
23014
  if test "$enable_debug_mem" = yes; then
 
23015
 
 
23016
cat >>confdefs.h <<\_ACEOF
 
23017
#define DEBUG_MEM 1
 
23018
_ACEOF
 
23019
 
 
23020
 
 
23021
    # We count on this code coming after DEBUG_MEM is defined...
 
23022
 
 
23023
 
 
23024
    DFLAGS="$DFLAGS DEBUG_MEM"
 
23025
    LDADD="$LDADD -ldmalloc"
 
23026
  fi
 
23027
 
 
23028
  # Use -Wall if we have gcc.
 
23029
  # FIXME: Rewrite this to be comprehensible.
 
23030
    if test "x$GCC" = "xyes"; then
 
23031
    case " $CFLAGS " in
 
23032
    *[\ \       ]-Wall[\ \      ]*) ;;
 
23033
    *) CFLAGS="$CFLAGS -Wall" ;;
 
23034
    esac
 
23035
  fi
 
23036
 
 
23037
 
 
23038
 
 
23039
# Various dirs
 
23040
# ============
 
23041
if test "x${sysconfdir}" = 'x${prefix}/etc'; then
 
23042
  ggzconfdir="${prefix}/etc"
 
23043
else
 
23044
  ggzconfdir="${sysconfdir}"
 
23045
fi
 
23046
 
 
23047
cat >>confdefs.h <<_ACEOF
 
23048
#define GGZCONFDIR "${ggzconfdir}"
 
23049
_ACEOF
 
23050
 
 
23051
 
 
23052
 
 
23053
if test "x${libdir}" = 'x${exec_prefix}/lib'; then
 
23054
  if test "x${exec_prefix}" = "xNONE"; then
 
23055
    ggzexecmoddir="${prefix}/lib/ggz"
 
23056
  else
 
23057
    ggzexecmoddir="${exec_prefix}/lib/ggz"
 
23058
  fi
 
23059
else
 
23060
  ggzexecmoddir="${libdir}/ggz"
 
23061
fi
 
23062
 
 
23063
cat >>confdefs.h <<_ACEOF
 
23064
#define GAMEDIR "${ggzexecmoddir}"
 
23065
_ACEOF
 
23066
 
 
23067
 
 
23068
 
 
23069
if test "x${datadir}" = 'x${prefix}/share'; then
 
23070
  ggzdatadir="${prefix}/share/ggz"
 
23071
else
 
23072
  ggzdatadir="${datadir}/ggz"
 
23073
fi
 
23074
 
 
23075
cat >>confdefs.h <<_ACEOF
 
23076
#define GGZDATADIR "${ggzdatadir}"
 
23077
_ACEOF
 
23078
 
 
23079
 
 
23080
 
 
23081
 
 
23082
 
 
23083
 
 
23084
 
 
23085
                                                                                                                                                                          ac_config_files="$ac_config_files Makefile ggzcore/Makefile ggzmod/Makefile ggzmod-ggz/Makefile ggz-config/Makefile ggz-wrapper/Makefile ggzwrap/Makefile man/Makefile man/ggz-config.6 man/ggz.modules.5 man/ggzmod_h.3 man/ggzcore_h.3 tests/Makefile desktop/Makefile po/Makefile po/ggzcore/Makefile po/ggz-config/Makefile"
21329
23086
 
21330
23087
cat >confcache <<\_ACEOF
21331
23088
# This file is a shell script that caches the results of configure
21717
23474
} >&5
21718
23475
cat >&5 <<_CSEOF
21719
23476
 
21720
 
This file was extended by GGZ Client Libs $as_me 0.0.7, which was
21721
 
generated by GNU Autoconf 2.58.  Invocation command line was
 
23477
This file was extended by GGZ client libraries $as_me 0.0.13, which was
 
23478
generated by GNU Autoconf 2.59.  Invocation command line was
21722
23479
 
21723
23480
  CONFIG_FILES    = $CONFIG_FILES
21724
23481
  CONFIG_HEADERS  = $CONFIG_HEADERS
21780
23537
 
21781
23538
cat >>$CONFIG_STATUS <<_ACEOF
21782
23539
ac_cs_version="\\
21783
 
GGZ Client Libs config.status 0.0.7
21784
 
configured by $0, generated by GNU Autoconf 2.58,
 
23540
GGZ client libraries config.status 0.0.13
 
23541
configured by $0, generated by GNU Autoconf 2.59,
21785
23542
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21786
23543
 
21787
23544
Copyright (C) 2003 Free Software Foundation, Inc.
21893
23650
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21894
23651
  "ggzcore/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggzcore/Makefile" ;;
21895
23652
  "ggzmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggzmod/Makefile" ;;
 
23653
  "ggzmod-ggz/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggzmod-ggz/Makefile" ;;
 
23654
  "ggz-config/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggz-config/Makefile" ;;
 
23655
  "ggz-wrapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggz-wrapper/Makefile" ;;
 
23656
  "ggzwrap/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggzwrap/Makefile" ;;
21896
23657
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21897
23658
  "man/ggz-config.6" ) CONFIG_FILES="$CONFIG_FILES man/ggz-config.6" ;;
21898
23659
  "man/ggz.modules.5" ) CONFIG_FILES="$CONFIG_FILES man/ggz.modules.5" ;;
21899
23660
  "man/ggzmod_h.3" ) CONFIG_FILES="$CONFIG_FILES man/ggzmod_h.3" ;;
21900
23661
  "man/ggzcore_h.3" ) CONFIG_FILES="$CONFIG_FILES man/ggzcore_h.3" ;;
 
23662
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
23663
  "desktop/Makefile" ) CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
 
23664
  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
 
23665
  "po/ggzcore/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/ggzcore/Makefile" ;;
 
23666
  "po/ggz-config/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/ggz-config/Makefile" ;;
21901
23667
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21902
23668
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21903
23669
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21996
23762
s,@AUTOMAKE@,$AUTOMAKE,;t t
21997
23763
s,@AUTOHEADER@,$AUTOHEADER,;t t
21998
23764
s,@MAKEINFO@,$MAKEINFO,;t t
21999
 
s,@AMTAR@,$AMTAR,;t t
22000
23765
s,@install_sh@,$install_sh,;t t
22001
23766
s,@STRIP@,$STRIP,;t t
22002
23767
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22003
23768
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23769
s,@mkdir_p@,$mkdir_p,;t t
22004
23770
s,@AWK@,$AWK,;t t
22005
23771
s,@SET_MAKE@,$SET_MAKE,;t t
22006
23772
s,@am__leading_dot@,$am__leading_dot,;t t
 
23773
s,@AMTAR@,$AMTAR,;t t
 
23774
s,@am__tar@,$am__tar,;t t
 
23775
s,@am__untar@,$am__untar,;t t
22007
23776
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22008
23777
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22009
23778
s,@MAINT@,$MAINT,;t t
22023
23792
s,@CCDEPMODE@,$CCDEPMODE,;t t
22024
23793
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22025
23794
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23795
s,@CXX@,$CXX,;t t
 
23796
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23797
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23798
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23799
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23800
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22026
23801
s,@CPP@,$CPP,;t t
22027
 
s,@EGREP@,$EGREP,;t t
22028
23802
s,@build@,$build,;t t
22029
23803
s,@build_cpu@,$build_cpu,;t t
22030
23804
s,@build_vendor@,$build_vendor,;t t
22033
23807
s,@host_cpu@,$host_cpu,;t t
22034
23808
s,@host_vendor@,$host_vendor,;t t
22035
23809
s,@host_os@,$host_os,;t t
 
23810
s,@EGREP@,$EGREP,;t t
22036
23811
s,@LN_S@,$LN_S,;t t
22037
23812
s,@ECHO@,$ECHO,;t t
22038
23813
s,@AR@,$AR,;t t
22039
23814
s,@ac_ct_AR@,$ac_ct_AR,;t t
22040
23815
s,@RANLIB@,$RANLIB,;t t
22041
23816
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22042
 
s,@CXX@,$CXX,;t t
22043
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
22044
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22045
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22046
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22047
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23817
s,@DLLTOOL@,$DLLTOOL,;t t
 
23818
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
23819
s,@AS@,$AS,;t t
 
23820
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
23821
s,@OBJDUMP@,$OBJDUMP,;t t
 
23822
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22048
23823
s,@CXXCPP@,$CXXCPP,;t t
22049
23824
s,@F77@,$F77,;t t
22050
23825
s,@FFLAGS@,$FFLAGS,;t t
22055
23830
s,@LIBGGZ_INCLUDES@,$LIBGGZ_INCLUDES,;t t
22056
23831
s,@LIBGGZ_LDFLAGS@,$LIBGGZ_LDFLAGS,;t t
22057
23832
s,@LIB_GGZ@,$LIB_GGZ,;t t
 
23833
s,@GETTEXT@,$GETTEXT,;t t
 
23834
s,@MSGFMT@,$MSGFMT,;t t
 
23835
s,@MSGMERGE@,$MSGMERGE,;t t
 
23836
s,@LIBICONV@,$LIBICONV,;t t
 
23837
s,@XGETTEXT@,$XGETTEXT,;t t
 
23838
s,@GMSGFMT@,$GMSGFMT,;t t
 
23839
s,@LIBEXPAT@,$LIBEXPAT,;t t
22058
23840
s,@ggzconfdir@,$ggzconfdir,;t t
22059
 
s,@ggzlibdir@,$ggzlibdir,;t t
 
23841
s,@ggzexecmoddir@,$ggzexecmoddir,;t t
22060
23842
s,@ggzdatadir@,$ggzdatadir,;t t
22061
 
s,@popt_LIBS@,$popt_LIBS,;t t
22062
 
s,@expat_LIBS@,$expat_LIBS,;t t
 
23843
s,@packagesrcdir@,$packagesrcdir,;t t
22063
23844
s,@LIBOBJS@,$LIBOBJS,;t t
22064
23845
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22065
23846
CEOF
22228
24009
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22229
24010
  esac
22230
24011
 
22231
 
  if test x"$ac_file" != x-; then
22232
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
22233
 
echo "$as_me: creating $ac_file" >&6;}
22234
 
    rm -f "$ac_file"
22235
 
  fi
22236
24012
  # Let's still pretend it is `configure' which instantiates (i.e., don't
22237
24013
  # use $as_me), people would be surprised to read:
22238
24014
  #    /* config.h.  Generated by config.status.  */
22271
24047
         fi;;
22272
24048
      esac
22273
24049
    done` || { (exit 1); exit 1; }
 
24050
 
 
24051
  if test x"$ac_file" != x-; then
 
24052
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
24053
echo "$as_me: creating $ac_file" >&6;}
 
24054
    rm -f "$ac_file"
 
24055
  fi
22274
24056
_ACEOF
22275
24057
cat >>$CONFIG_STATUS <<_ACEOF
22276
24058
  sed "$ac_vpsub
22684
24466
  else
22685
24467
    continue
22686
24468
  fi
22687
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22688
 
  # Extract the definition of DEP_FILES from the Makefile without
22689
 
  # running `make'.
22690
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
24469
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24470
  # from the Makefile without running `make'.
 
24471
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22691
24472
  test -z "$DEPDIR" && continue
 
24473
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24474
  test -z "am__include" && continue
 
24475
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22692
24476
  # When using ansi2knr, U may be empty or an underscore; expand it
22693
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
22694
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22695
 
  # We invoke sed twice because it is the simplest approach to
22696
 
  # changing $(DEPDIR) to its actual value in the expansion.
22697
 
  for file in `sed -n -e '
22698
 
    /^DEP_FILES = .*\\\\$/ {
22699
 
      s/^DEP_FILES = //
22700
 
      :loop
22701
 
        s/\\\\$//
22702
 
        p
22703
 
        n
22704
 
        /\\\\$/ b loop
22705
 
      p
22706
 
    }
22707
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24477
  U=`sed -n 's/^U = //p' < "$mf"`
 
24478
  # Find all dependency output files, they are included files with
 
24479
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24480
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24481
  # expansion.
 
24482
  for file in `sed -n "
 
24483
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22708
24484
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22709
24485
    # Make sure the directory exists.
22710
24486
    test -f "$dirpart/$file" && continue
22785
24561
 
22786
24562
 
22787
24563
 
 
24564
# Status Output
 
24565
# =============
22788
24566
echo ""
22789
24567
echo "Options"
22790
24568
echo "    General Debugging..$enable_debug"
22791
24569
echo "    GDB Debugging......$enable_debug_gdb"
 
24570
echo "    Dmalloc Debugging..$enable_debug_mem"
22792
24571
echo ""
22793
24572
echo "-------------------------"
22794
24573
echo "At the prompt type \"make\" to"
22795
 
echo "compile ggzcore"
 
24574
echo "compile ggzcore and ggzmod."
22796
24575
echo ""
22797
24576
echo "When complete, su to root"
22798
24577
echo "and type \"make install\" to"