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

« back to all changes in this revision

Viewing changes to .pc/use_system_lua5.1.diff/configure

  • Committer: Package Import Robot
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2011-08-28 22:40:00 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: package-import@ubuntu.com-20110828224000-j2r1erewlem25dox
Tags: 2.3.0-1
[ Karl Goetz ]
* New upstream version.
* Fix themes_sdl_use_system_fonts.diff to apply cleanly on 2.3.0
* Massage work_around_unity_induced_breakage.diff to get it
  applying to the new codebase (The patch assumes commits made
  after 2.3.0 was tagged upstream).

[ Clint Adams ]
* Fudge build system to think there is no libtool mismatch.

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.65.
4
 
#
 
3
# Generated by GNU Autoconf 2.64 for freeciv 2.3.0.
5
4
#
6
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8
 
# Inc.
9
 
#
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
7
# Foundation, Inc.
10
8
#
11
9
# This configure script is free software; the Free Software Foundation
12
10
# gives unlimited permission to copy, distribute and modify it.
675
673
 
676
674
 
677
675
 
678
 
test -n "$DJDIR" || exec 7<&0 </dev/null
679
 
exec 6>&1
 
676
exec 7<&0 </dev/null 6>&1
680
677
 
681
678
# Name of the host.
682
679
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696
693
MAKEFLAGS=
697
694
 
698
695
# Identity of this package.
699
 
PACKAGE_NAME=
700
 
PACKAGE_TARNAME=
701
 
PACKAGE_VERSION=
702
 
PACKAGE_STRING=
703
 
PACKAGE_BUGREPORT=
704
 
PACKAGE_URL=
 
696
PACKAGE_NAME='freeciv'
 
697
PACKAGE_TARNAME='freeciv'
 
698
PACKAGE_VERSION='2.3.0'
 
699
PACKAGE_STRING='freeciv 2.3.0'
 
700
PACKAGE_BUGREPORT=''
 
701
PACKAGE_URL=''
705
702
 
706
703
ac_unique_file="common/game.c"
707
704
# Factoring default headers for most tests.
808
805
FTWL_CFLAGS
809
806
SOUND_LIBS
810
807
SOUND_CFLAGS
 
808
MP_gtk2_LDFLAGS
 
809
MP_gtk2_LIBS
 
810
MP_gtk2_CFLAGS
811
811
GUI_beos_LDFLAGS
812
812
GUI_beos_LIBS
813
 
GUI_beos_CXXFLAGS
814
813
GUI_beos_CFLAGS
815
814
GUI_stub_LDFLAGS
816
815
GUI_stub_LIBS
817
 
GUI_stub_CXXFLAGS
818
816
GUI_stub_CFLAGS
819
817
GUI_win32_LDFLAGS
820
818
GUI_win32_LIBS
821
 
GUI_win32_CXXFLAGS
822
819
GUI_win32_CFLAGS
823
820
GUI_ftwl_LDFLAGS
824
821
GUI_ftwl_LIBS
825
 
GUI_ftwl_CXXFLAGS
826
822
GUI_ftwl_CFLAGS
827
823
GUI_xaw_LDFLAGS
828
824
GUI_xaw_LIBS
829
 
GUI_xaw_CXXFLAGS
830
825
GUI_xaw_CFLAGS
831
826
GUI_sdl_LDFLAGS
832
827
GUI_sdl_LIBS
833
 
GUI_sdl_CXXFLAGS
834
828
GUI_sdl_CFLAGS
835
829
GUI_gtk2_LDFLAGS
836
830
GUI_gtk2_LIBS
837
 
GUI_gtk2_CXXFLAGS
838
831
GUI_gtk2_CFLAGS
 
832
MODINST_FALSE
 
833
MODINST_TRUE
 
834
GTHREAD_LIBS
 
835
GTHREAD_CFLAGS
839
836
CLIENT_FALSE
840
837
CLIENT_TRUE
841
838
GGZ_SERVER_FALSE
952
949
SERVER_TRUE
953
950
AUTH_LIBS
954
951
AUTH_CFLAGS
 
952
AM_BACKSLASH
 
953
AM_DEFAULT_VERBOSITY
955
954
am__fastdepCC_FALSE
956
955
am__fastdepCC_TRUE
957
956
CCDEPMODE
984
983
INSTALL_DATA
985
984
INSTALL_SCRIPT
986
985
INSTALL_PROGRAM
 
986
DATASUBDIR
987
987
NETWORK_CAPSTRING_OPTIONAL
988
988
NETWORK_CAPSTRING_MANDATORY
989
989
MINOR_VERSION
990
990
MAJOR_VERSION
 
991
MAIL_ADDRESS
 
992
WIKI_URL
 
993
BUG_URL
991
994
EGREP
992
995
GREP
993
996
CPP
1048
1051
ac_user_opts='
1049
1052
enable_option_checking
1050
1053
enable_dependency_tracking
 
1054
enable_silent_rules
1051
1055
enable_auth
1052
1056
with_mysql_prefix
1053
1057
enable_server
1072
1076
with_libiconv_prefix
1073
1077
enable_nls
1074
1078
enable_debug
 
1079
enable_gprof
1075
1080
enable_gtktest
1076
1081
with_sdl_prefix
1077
1082
with_sdl_exec_prefix
1123
1128
CXXCPP
1124
1129
XMKMF
1125
1130
PNG_CFLAGS
1126
 
PNG_LIBS'
 
1131
PNG_LIBS
 
1132
GTHREAD_CFLAGS
 
1133
GTHREAD_LIBS'
1127
1134
 
1128
1135
 
1129
1136
# Initialize some variables set by options.
1164
1171
localstatedir='${prefix}/var'
1165
1172
includedir='${prefix}/include'
1166
1173
oldincludedir='/usr/include'
1167
 
docdir='${datarootdir}/doc/${PACKAGE}'
 
1174
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1168
1175
infodir='${datarootdir}/info'
1169
1176
htmldir='${docdir}'
1170
1177
dvidir='${docdir}'
1665
1672
  # Omit some internal or obsolete options to make the list less imposing.
1666
1673
  # This message is too long to be a string in the A/UX 3.1 sh.
1667
1674
  cat <<_ACEOF
1668
 
\`configure' configures this package to adapt to many kinds of systems.
 
1675
\`configure' configures freeciv 2.3.0 to adapt to many kinds of systems.
1669
1676
 
1670
1677
Usage: $0 [OPTION]... [VAR=VALUE]...
1671
1678
 
1713
1720
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1714
1721
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1715
1722
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1716
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1723
  --docdir=DIR            documentation root [DATAROOTDIR/doc/freeciv]
1717
1724
  --htmldir=DIR           html documentation [DOCDIR]
1718
1725
  --dvidir=DIR            dvi documentation [DOCDIR]
1719
1726
  --pdfdir=DIR            pdf documentation [DOCDIR]
1738
1745
fi
1739
1746
 
1740
1747
if test -n "$ac_init_help"; then
1741
 
 
 
1748
  case $ac_init_help in
 
1749
     short | recursive ) echo "Configuration of freeciv 2.3.0:";;
 
1750
   esac
1742
1751
  cat <<\_ACEOF
1743
1752
 
1744
1753
Optional Features:
1747
1756
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1748
1757
  --disable-dependency-tracking  speeds up one-time build
1749
1758
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1759
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1760
  --disable-silent-rules         verbose build output (undo: `make V=0')
1750
1761
  --enable-auth[=no/yes/try] compile in authentication [default=no]
1751
1762
  --disable-server        do not compile the server
1752
1763
  --enable-ipv6=yes/no/test
1753
1764
                          use IPv6 [test]
1754
 
  --enable-client=auto/all/gtk/sdl/xaw/win32/ftwl/stub)
 
1765
  --enable-client=auto/all/gtk2/sdl/xaw/win32/ftwl/stub
1755
1766
                          clients to compile [auto] (or list for multiple)
 
1767
                          maintained clients: gtk2/sdl/xaw/stub
 
1768
                          unmaintained clients: win32/ftwl
1756
1769
  --enable-ftwl=no/x11/sdl/opengl
1757
1770
                          compile ftwl default=no
1758
1771
  --enable-svnrev         get svn revision to version information
1768
1781
  --disable-libtool-lock  avoid locking (might break parallel builds)
1769
1782
  --disable-rpath         do not hardcode runtime library paths
1770
1783
  --disable-nls        do not add localization support
1771
 
  --enable-debug[=no/some/yes]  turn on debugging [default=some]
 
1784
  --enable-debug[=no/some/yes/checks] turn on debugging [default=some]
 
1785
  --enable-gprof            turn on profiling [default=no]
1772
1786
  --disable-gtktest       do not try to compile and run a test GTK+ program
1773
1787
  --disable-sdltest       Do not try to compile and run a test SDL program
1774
1788
       --disable-freetypetest  Do not try to compile and run a test FreeType
1835
1849
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1836
1850
              nonstandard directory <lib dir>
1837
1851
  LIBS        libraries to pass to the linker, e.g. -l<library>
1838
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1852
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1839
1853
              you have headers in a nonstandard directory <include dir>
1840
1854
  CPP         C preprocessor
1841
1855
  PKG_CONFIG  path to pkg-config utility
1848
1862
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1849
1863
  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1850
1864
  PNG_LIBS    linker flags for PNG, overriding pkg-config
 
1865
  GTHREAD_CFLAGS
 
1866
              C compiler flags for GTHREAD, overriding pkg-config
 
1867
  GTHREAD_LIBS
 
1868
              linker flags for GTHREAD, overriding pkg-config
1851
1869
 
1852
1870
Use these variables to override the choices made by `configure' or to help
1853
1871
it to find libraries and programs with nonstandard names/locations.
1915
1933
test -n "$ac_init_help" && exit $ac_status
1916
1934
if $ac_init_version; then
1917
1935
  cat <<\_ACEOF
1918
 
configure
1919
 
generated by GNU Autoconf 2.65
 
1936
freeciv configure 2.3.0
 
1937
generated by GNU Autoconf 2.64
1920
1938
 
1921
1939
Copyright (C) 2009 Free Software Foundation, Inc.
1922
1940
This configure script is free software; the Free Software Foundation
1963
1981
        ac_retval=1
1964
1982
fi
1965
1983
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966
 
  as_fn_set_status $ac_retval
 
1984
  return $ac_retval
1967
1985
 
1968
1986
} # ac_fn_c_try_compile
1969
1987
 
2000
2018
    ac_retval=1
2001
2019
fi
2002
2020
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
 
  as_fn_set_status $ac_retval
 
2021
  return $ac_retval
2004
2022
 
2005
2023
} # ac_fn_c_try_cpp
2006
2024
 
2129
2147
fi
2130
2148
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131
2149
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
 
  as_fn_set_status $ac_retval
 
2150
  return $ac_retval
2133
2151
 
2134
2152
} # ac_fn_c_try_run
2135
2153
 
2206
2224
  # left behind by Apple's compiler.  We do this before executing the actions.
2207
2225
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2208
2226
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209
 
  as_fn_set_status $ac_retval
 
2227
  return $ac_retval
2210
2228
 
2211
2229
} # ac_fn_c_try_link
2212
2230
 
2311
2329
        ac_retval=1
2312
2330
fi
2313
2331
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
 
  as_fn_set_status $ac_retval
 
2332
  return $ac_retval
2315
2333
 
2316
2334
} # ac_fn_cxx_try_compile
2317
2335
 
2348
2366
    ac_retval=1
2349
2367
fi
2350
2368
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351
 
  as_fn_set_status $ac_retval
 
2369
  return $ac_retval
2352
2370
 
2353
2371
} # ac_fn_cxx_try_cpp
2354
2372
 
2394
2412
  # left behind by Apple's compiler.  We do this before executing the actions.
2395
2413
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396
2414
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397
 
  as_fn_set_status $ac_retval
 
2415
  return $ac_retval
2398
2416
 
2399
2417
} # ac_fn_cxx_try_link
2400
2418
 
2455
2473
This file contains any messages produced by compilers while
2456
2474
running configure, to aid debugging if configure makes a mistake.
2457
2475
 
2458
 
It was created by $as_me, which was
2459
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
2476
It was created by freeciv $as_me 2.3.0, which was
 
2477
generated by GNU Autoconf 2.64.  Invocation command line was
2460
2478
 
2461
2479
  $ $0 $@
2462
2480
 
2709
2727
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2710
2728
do
2711
2729
  test "x$ac_site_file" = xNONE && continue
2712
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2730
  if test -r "$ac_site_file"; then
2713
2731
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2714
2732
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2715
2733
    sed 's/^/| /' "$ac_site_file" >&5
2718
2736
done
2719
2737
 
2720
2738
if test -r "$cache_file"; then
2721
 
  # Some versions of bash will fail to source /dev/null (special files
2722
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2723
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2739
  # Some versions of bash will fail to source /dev/null (special
 
2740
  # files actually), so we avoid doing that.
 
2741
  if test -f "$cache_file"; then
2724
2742
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2725
2743
$as_echo "$as_me: loading cache $cache_file" >&6;}
2726
2744
    case $cache_file in
2827
2845
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2828
2846
 
2829
2847
 # This can't be quoted or automake will fail
 
2848
 
2830
2849
ac_config_headers="$ac_config_headers config.h"
2831
 
 # Compatible with automake 1.6 and earlier
 
2850
 
2832
2851
# Make sure we can run config.sub.
2833
2852
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2834
2853
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3222
3241
... rest of stderr output deleted ...
3223
3242
         10q' conftest.err >conftest.er1
3224
3243
    cat conftest.er1 >&5
 
3244
    rm -f conftest.er1 conftest.err
3225
3245
  fi
3226
 
  rm -f conftest.er1 conftest.err
3227
3246
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228
3247
  test $ac_status = 0; }
3229
3248
done
3230
3249
 
3231
3250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232
3251
/* end confdefs.h.  */
3233
 
 
 
3252
#include <stdio.h>
3234
3253
int
3235
3254
main ()
3236
3255
{
 
3256
FILE *f = fopen ("conftest.out", "w");
 
3257
 return ferror (f) || fclose (f) != 0;
3237
3258
 
3238
3259
  ;
3239
3260
  return 0;
3240
3261
}
3241
3262
_ACEOF
3242
3263
ac_clean_files_save=$ac_clean_files
3243
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3264
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3244
3265
# Try to create an executable without -o first, disregard a.out.
3245
3266
# It will help us diagnose broken compilers, and finding out an intuition
3246
3267
# of exeext.
3247
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248
 
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3269
$as_echo_n "checking for C compiler default output file name... " >&6; }
3249
3270
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250
3271
 
3251
3272
# The possible output files:
3307
3328
else
3308
3329
  ac_file=''
3309
3330
fi
 
3331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3332
$as_echo "$ac_file" >&6; }
3310
3333
if test -z "$ac_file"; then :
3311
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312
 
$as_echo "no" >&6; }
3313
 
$as_echo "$as_me: failed program was:" >&5
 
3334
  $as_echo "$as_me: failed program was:" >&5
3314
3335
sed 's/^/| /' conftest.$ac_ext >&5
3315
3336
 
3316
3337
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318
3339
{ as_fn_set_status 77
3319
3340
as_fn_error "C compiler cannot create executables
3320
3341
See \`config.log' for more details." "$LINENO" 5; }; }
3321
 
else
3322
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323
 
$as_echo "yes" >&6; }
3324
3342
fi
3325
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3327
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328
 
$as_echo "$ac_file" >&6; }
3329
3343
ac_exeext=$ac_cv_exeext
3330
3344
 
3331
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3345
# Check that the compiler produces executables we can run.  If not, either
 
3346
# the compiler is broken, or we cross compile.
 
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3348
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3349
# If not cross compiling, check that we can run a simple program.
 
3350
if test "$cross_compiling" != yes; then
 
3351
  if { ac_try='./$ac_file'
 
3352
  { { case "(($ac_try" in
 
3353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3354
  *) ac_try_echo=$ac_try;;
 
3355
esac
 
3356
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3357
$as_echo "$ac_try_echo"; } >&5
 
3358
  (eval "$ac_try") 2>&5
 
3359
  ac_status=$?
 
3360
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3361
  test $ac_status = 0; }; }; then
 
3362
    cross_compiling=no
 
3363
  else
 
3364
    if test "$cross_compiling" = maybe; then
 
3365
        cross_compiling=yes
 
3366
    else
 
3367
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3368
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3369
as_fn_error "cannot run C compiled programs.
 
3370
If you meant to cross compile, use \`--host'.
 
3371
See \`config.log' for more details." "$LINENO" 5; }
 
3372
    fi
 
3373
  fi
 
3374
fi
 
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3376
$as_echo "yes" >&6; }
 
3377
 
 
3378
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3332
3379
ac_clean_files=$ac_clean_files_save
 
3380
# Check that the compiler produces executables we can run.  If not, either
 
3381
# the compiler is broken, or we cross compile.
 
3382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3383
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3385
$as_echo "$cross_compiling" >&6; }
 
3386
 
3333
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334
3388
$as_echo_n "checking for suffix of executables... " >&6; }
3335
3389
if { { ac_try="$ac_link"
3362
3416
as_fn_error "cannot compute suffix of executables: cannot compile and link
3363
3417
See \`config.log' for more details." "$LINENO" 5; }
3364
3418
fi
3365
 
rm -f conftest conftest$ac_cv_exeext
 
3419
rm -f conftest$ac_cv_exeext
3366
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367
3421
$as_echo "$ac_cv_exeext" >&6; }
3368
3422
 
3369
3423
rm -f conftest.$ac_ext
3370
3424
EXEEXT=$ac_cv_exeext
3371
3425
ac_exeext=$EXEEXT
3372
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373
 
/* end confdefs.h.  */
3374
 
#include <stdio.h>
3375
 
int
3376
 
main ()
3377
 
{
3378
 
FILE *f = fopen ("conftest.out", "w");
3379
 
 return ferror (f) || fclose (f) != 0;
3380
 
 
3381
 
  ;
3382
 
  return 0;
3383
 
}
3384
 
_ACEOF
3385
 
ac_clean_files="$ac_clean_files conftest.out"
3386
 
# Check that the compiler produces executables we can run.  If not, either
3387
 
# the compiler is broken, or we cross compile.
3388
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3390
 
if test "$cross_compiling" != yes; then
3391
 
  { { ac_try="$ac_link"
3392
 
case "(($ac_try" in
3393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394
 
  *) ac_try_echo=$ac_try;;
3395
 
esac
3396
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397
 
$as_echo "$ac_try_echo"; } >&5
3398
 
  (eval "$ac_link") 2>&5
3399
 
  ac_status=$?
3400
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401
 
  test $ac_status = 0; }
3402
 
  if { ac_try='./conftest$ac_cv_exeext'
3403
 
  { { case "(($ac_try" in
3404
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405
 
  *) ac_try_echo=$ac_try;;
3406
 
esac
3407
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408
 
$as_echo "$ac_try_echo"; } >&5
3409
 
  (eval "$ac_try") 2>&5
3410
 
  ac_status=$?
3411
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412
 
  test $ac_status = 0; }; }; then
3413
 
    cross_compiling=no
3414
 
  else
3415
 
    if test "$cross_compiling" = maybe; then
3416
 
        cross_compiling=yes
3417
 
    else
3418
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420
 
as_fn_error "cannot run C compiled programs.
3421
 
If you meant to cross compile, use \`--host'.
3422
 
See \`config.log' for more details." "$LINENO" 5; }
3423
 
    fi
3424
 
  fi
3425
 
fi
3426
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427
 
$as_echo "$cross_compiling" >&6; }
3428
 
 
3429
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430
 
ac_clean_files=$ac_clean_files_save
3431
3426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432
3427
$as_echo_n "checking for suffix of object files... " >&6; }
3433
3428
if test "${ac_cv_objext+set}" = set; then :
4153
4148
 
4154
4149
 
4155
4150
 
4156
 
PACKAGE=freeciv
 
4151
BUG_URL="http://gna.org/projects/freeciv/"
 
4152
WIKI_URL="http://www.freeciv.org/"
 
4153
MAIL_ADDRESS="freeciv-dev AT gna.org"
4157
4154
 
4158
4155
 
4159
4156
$as_echo "#define FC_CONFIG_H 1" >>confdefs.h
4160
4157
 
4161
4158
 
4162
 
$as_echo "#define BUG_URL \"http://gna.org/projects/freeciv/\"" >>confdefs.h
 
4159
cat >>confdefs.h <<_ACEOF
 
4160
#define BUG_URL "$BUG_URL"
 
4161
_ACEOF
4163
4162
 
4164
4163
 
4165
4164
$as_echo "#define META_URL \"http://meta.freeciv.org/metaserver.phtml\"" >>confdefs.h
4166
4165
 
4167
4166
 
4168
 
$as_echo "#define WIKI_URL \"http://www.freeciv.org/\"" >>confdefs.h
 
4167
cat >>confdefs.h <<_ACEOF
 
4168
#define WIKI_URL "$WIKI_URL"
 
4169
_ACEOF
4169
4170
 
4170
4171
 
4171
4172
 
4172
4173
$as_echo "#define DEFAULT_SOCK_PORT 5556" >>confdefs.h
4173
4174
 
4174
4175
 
 
4176
 
 
4177
 
 
4178
 
 
4179
 
 
4180
VERSION_SCRIPT_SILENT=yes
 
4181
#/bin/sh
 
4182
#
4175
4183
#  Copyright (C) 2004-2008 Freeciv team
4176
4184
 
4177
4185
# Version definition for Freeciv.
4178
4186
 
4179
4187
MAJOR_VERSION="2"
4180
 
MINOR_VERSION="2"
4181
 
PATCH_VERSION="7"
 
4188
MINOR_VERSION="3"
 
4189
PATCH_VERSION="0"
4182
4190
VERSION_LABEL=""
4183
4191
 
4184
4192
IS_DEVEL_VERSION=0
4185
4193
IS_BETA_VERSION=0
4186
4194
 
4187
 
NEXT_STABLE_VERSION="2.3.0"
4188
 
RELEASE_MONTH=11
 
4195
NEXT_STABLE_VERSION="2.4.0"
 
4196
RELEASE_MONTH=8
 
4197
 
 
4198
DATASUBDIR=2.3
4189
4199
 
4190
4200
# Freeciv network capstring: see documentation in common/capstr.c
4191
4201
#
4197
4207
#   - Avoid adding a new mandatory capability to the development branch for
4198
4208
#     as long as possible.  We want to maintain network compatibility with
4199
4209
#     the stable branch for as long as possible.
4200
 
NETWORK_CAPSTRING_MANDATORY="+2.2b"
4201
 
NETWORK_CAPSTRING_OPTIONAL="trade_illness"
 
4210
NETWORK_CAPSTRING_MANDATORY="+Freeciv-2.3-network"
 
4211
NETWORK_CAPSTRING_OPTIONAL=""
 
4212
 
 
4213
if test x$VERSION_SCRIPT_SILENT != xyes ; then
 
4214
  VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${VERSION_LABEL}
 
4215
  echo ${VERSION}
 
4216
fi
4202
4217
 
4203
4218
 
4204
4219
VERSION_WITHOUT_LABEL=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}
4205
4220
VERSION=${VERSION_WITHOUT_LABEL}${VERSION_LABEL}
4206
4221
 
4207
4222
 
4208
 
 
4209
4223
cat >>confdefs.h <<_ACEOF
4210
4224
#define MAJOR_VERSION $MAJOR_VERSION
4211
4225
_ACEOF
4266
4280
 
4267
4281
 
4268
4282
 
 
4283
 
 
4284
cat >>confdefs.h <<_ACEOF
 
4285
#define DATASUBDIR "$DATASUBDIR"
 
4286
_ACEOF
 
4287
 
 
4288
 
 
4289
 
4269
4290
am__api_version='1.11'
4270
4291
 
4271
4292
# Find a good install program.  We prefer a C program (faster),
4580
4601
 
4581
4602
fi
4582
4603
 
4583
 
  test -d ./--version && rmdir ./--version
4584
4604
  if test "${ac_cv_path_mkdir+set}" = set; then
4585
4605
    MKDIR_P="$ac_cv_path_mkdir -p"
4586
4606
  else
4588
4608
    # value for MKDIR_P within a source directory, because that will
4589
4609
    # break other packages using the cache if that directory is
4590
4610
    # removed, or if the value is a relative name.
 
4611
    test -d ./--version && rmdir ./--version
4591
4612
    MKDIR_P="$ac_install_sh -d"
4592
4613
  fi
4593
4614
fi
4765
4786
 
4766
4787
 
4767
4788
# Define the identity of the package.
4768
 
 PACKAGE=$PACKAGE
4769
 
 VERSION=$VERSION
 
4789
 PACKAGE='freeciv'
 
4790
 VERSION='2.3.0'
4770
4791
 
4771
4792
 
4772
4793
cat >>confdefs.h <<_ACEOF
4934
4955
 
4935
4956
 
4936
4957
 
 
4958
# Check whether --enable-silent-rules was given.
 
4959
if test "${enable_silent_rules+set}" = set; then :
 
4960
  enableval=$enable_silent_rules;
 
4961
fi
 
4962
 
 
4963
case $enable_silent_rules in
 
4964
yes) AM_DEFAULT_VERBOSITY=0;;
 
4965
no)  AM_DEFAULT_VERBOSITY=1;;
 
4966
*)   AM_DEFAULT_VERBOSITY=0;;
 
4967
esac
 
4968
AM_BACKSLASH='\'
 
4969
 
 
4970
 
4937
4971
 
4938
4972
    # Check whether --enable-auth was given.
4939
4973
if test "${enable_auth+set}" = set; then :
5214
5248
 
5215
5249
if test x$ipv6 != xno ; then
5216
5250
  ipv6_possible=true
5217
 
  for ac_func in gethostbyname2 inet_pton inet_ntop getnameinfo
 
5251
  for ac_func in getaddrinfo inet_pton inet_ntop getnameinfo
5218
5252
do :
5219
5253
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5220
5254
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5369
5403
  elif test "x$gui" = "xall" ; then
5370
5404
    client=all
5371
5405
  else
5372
 
    if test "x$gui" = "xgtk"    ||
5373
 
       test "x$gui" = "xgtk2"   ||
 
5406
    if test "x$gui" = "xgtk2"   ||
5374
5407
       test "x$gui" = "xgtk2.0" ||
5375
5408
       test "x$gui" = "xgtk20"  ||
5376
5409
       test "x$gui" = "xgtk-2.0" ; then
5377
5410
      gui_gtk2=yes
 
5411
    elif test "x$gui" = "xgtk" ; then
 
5412
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: for requested client 'gtk' enabled gtk2-client, but that default may change in the future" >&5
 
5413
$as_echo "$as_me: WARNING: for requested client 'gtk' enabled gtk2-client, but that default may change in the future" >&2;}
 
5414
      gui_gtk2=yes
5378
5415
    else
5379
5416
      if test ! -d "${srcdir}/client/gui-$gui" ; then
5380
5417
        as_fn_error "bad value ${gui} for --enable-client" "$LINENO" 5
6067
6104
... rest of stderr output deleted ...
6068
6105
         10q' conftest.err >conftest.er1
6069
6106
    cat conftest.er1 >&5
 
6107
    rm -f conftest.er1 conftest.err
6070
6108
  fi
6071
 
  rm -f conftest.er1 conftest.err
6072
6109
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073
6110
  test $ac_status = 0; }
6074
6111
done
6422
6459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6423
6460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424
6461
 
6425
 
ac_ext=cpp
6426
 
ac_cpp='$CXXCPP $CPPFLAGS'
6427
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6430
 
if test -z "$CXX"; then
6431
 
  if test -n "$CCC"; then
6432
 
    CXX=$CCC
6433
 
  else
6434
 
    if test -n "$ac_tool_prefix"; then
6435
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6436
 
  do
6437
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6438
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6439
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440
 
$as_echo_n "checking for $ac_word... " >&6; }
6441
 
if test "${ac_cv_prog_CXX+set}" = set; then :
6442
 
  $as_echo_n "(cached) " >&6
6443
 
else
6444
 
  if test -n "$CXX"; then
6445
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6446
 
else
6447
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448
 
for as_dir in $PATH
6449
 
do
6450
 
  IFS=$as_save_IFS
6451
 
  test -z "$as_dir" && as_dir=.
6452
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6453
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6455
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456
 
    break 2
6457
 
  fi
6458
 
done
6459
 
  done
6460
 
IFS=$as_save_IFS
6461
 
 
6462
 
fi
6463
 
fi
6464
 
CXX=$ac_cv_prog_CXX
6465
 
if test -n "$CXX"; then
6466
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6467
 
$as_echo "$CXX" >&6; }
6468
 
else
6469
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470
 
$as_echo "no" >&6; }
6471
 
fi
6472
 
 
6473
 
 
6474
 
    test -n "$CXX" && break
6475
 
  done
6476
 
fi
6477
 
if test -z "$CXX"; then
6478
 
  ac_ct_CXX=$CXX
6479
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6480
 
do
6481
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6482
 
set dummy $ac_prog; ac_word=$2
6483
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484
 
$as_echo_n "checking for $ac_word... " >&6; }
6485
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6486
 
  $as_echo_n "(cached) " >&6
6487
 
else
6488
 
  if test -n "$ac_ct_CXX"; then
6489
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6490
 
else
6491
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492
 
for as_dir in $PATH
6493
 
do
6494
 
  IFS=$as_save_IFS
6495
 
  test -z "$as_dir" && as_dir=.
6496
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6497
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
6499
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500
 
    break 2
6501
 
  fi
6502
 
done
6503
 
  done
6504
 
IFS=$as_save_IFS
6505
 
 
6506
 
fi
6507
 
fi
6508
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6509
 
if test -n "$ac_ct_CXX"; then
6510
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6511
 
$as_echo "$ac_ct_CXX" >&6; }
6512
 
else
6513
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
 
$as_echo "no" >&6; }
6515
 
fi
6516
 
 
6517
 
 
6518
 
  test -n "$ac_ct_CXX" && break
6519
 
done
6520
 
 
6521
 
  if test "x$ac_ct_CXX" = x; then
6522
 
    CXX="g++"
6523
 
  else
6524
 
    case $cross_compiling:$ac_tool_warned in
6525
 
yes:)
6526
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528
 
ac_tool_warned=yes ;;
6529
 
esac
6530
 
    CXX=$ac_ct_CXX
6531
 
  fi
6532
 
fi
6533
 
 
6534
 
  fi
6535
 
fi
6536
 
# Provide some information about the compiler.
6537
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6538
 
set X $ac_compile
6539
 
ac_compiler=$2
6540
 
for ac_option in --version -v -V -qversion; do
6541
 
  { { ac_try="$ac_compiler $ac_option >&5"
6542
 
case "(($ac_try" in
6543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544
 
  *) ac_try_echo=$ac_try;;
6545
 
esac
6546
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6547
 
$as_echo "$ac_try_echo"; } >&5
6548
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6549
 
  ac_status=$?
6550
 
  if test -s conftest.err; then
6551
 
    sed '10a\
6552
 
... rest of stderr output deleted ...
6553
 
         10q' conftest.err >conftest.er1
6554
 
    cat conftest.er1 >&5
6555
 
  fi
6556
 
  rm -f conftest.er1 conftest.err
6557
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558
 
  test $ac_status = 0; }
6559
 
done
6560
 
 
6561
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6562
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6563
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6564
 
  $as_echo_n "(cached) " >&6
6565
 
else
6566
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
 
/* end confdefs.h.  */
6568
 
 
6569
 
int
6570
 
main ()
6571
 
{
6572
 
#ifndef __GNUC__
6573
 
       choke me
6574
 
#endif
6575
 
 
6576
 
  ;
6577
 
  return 0;
6578
 
}
6579
 
_ACEOF
6580
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6581
 
  ac_compiler_gnu=yes
6582
 
else
6583
 
  ac_compiler_gnu=no
6584
 
fi
6585
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6587
 
 
6588
 
fi
6589
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6590
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6591
 
if test $ac_compiler_gnu = yes; then
6592
 
  GXX=yes
6593
 
else
6594
 
  GXX=
6595
 
fi
6596
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
6597
 
ac_save_CXXFLAGS=$CXXFLAGS
6598
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6599
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6600
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
6601
 
  $as_echo_n "(cached) " >&6
6602
 
else
6603
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6604
 
   ac_cxx_werror_flag=yes
6605
 
   ac_cv_prog_cxx_g=no
6606
 
   CXXFLAGS="-g"
6607
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608
 
/* end confdefs.h.  */
6609
 
 
6610
 
int
6611
 
main ()
6612
 
{
6613
 
 
6614
 
  ;
6615
 
  return 0;
6616
 
}
6617
 
_ACEOF
6618
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6619
 
  ac_cv_prog_cxx_g=yes
6620
 
else
6621
 
  CXXFLAGS=""
6622
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623
 
/* end confdefs.h.  */
6624
 
 
6625
 
int
6626
 
main ()
6627
 
{
6628
 
 
6629
 
  ;
6630
 
  return 0;
6631
 
}
6632
 
_ACEOF
6633
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6634
 
 
6635
 
else
6636
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6637
 
         CXXFLAGS="-g"
6638
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639
 
/* end confdefs.h.  */
6640
 
 
6641
 
int
6642
 
main ()
6643
 
{
6644
 
 
6645
 
  ;
6646
 
  return 0;
6647
 
}
6648
 
_ACEOF
6649
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6650
 
  ac_cv_prog_cxx_g=yes
6651
 
fi
6652
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653
 
fi
6654
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655
 
fi
6656
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6658
 
fi
6659
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6660
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
6661
 
if test "$ac_test_CXXFLAGS" = set; then
6662
 
  CXXFLAGS=$ac_save_CXXFLAGS
6663
 
elif test $ac_cv_prog_cxx_g = yes; then
6664
 
  if test "$GXX" = yes; then
6665
 
    CXXFLAGS="-g -O2"
6666
 
  else
6667
 
    CXXFLAGS="-g"
6668
 
  fi
6669
 
else
6670
 
  if test "$GXX" = yes; then
6671
 
    CXXFLAGS="-O2"
6672
 
  else
6673
 
    CXXFLAGS=
6674
 
  fi
6675
 
fi
6676
 
ac_ext=c
6677
 
ac_cpp='$CPP $CPPFLAGS'
6678
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
 
 
6682
 
depcc="$CXX"  am_compiler_list=
6683
 
 
6684
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6685
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
6686
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6687
 
  $as_echo_n "(cached) " >&6
6688
 
else
6689
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6690
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6691
 
  # making bogus files that we don't know about and never remove.  For
6692
 
  # instance it was reported that on HP-UX the gcc test will end up
6693
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6694
 
  # in D'.
6695
 
  mkdir conftest.dir
6696
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6697
 
  # using a relative directory.
6698
 
  cp "$am_depcomp" conftest.dir
6699
 
  cd conftest.dir
6700
 
  # We will build objects and dependencies in a subdirectory because
6701
 
  # it helps to detect inapplicable dependency modes.  For instance
6702
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6703
 
  # side effect of compilation, but ICC will put the dependencies in
6704
 
  # the current directory while Tru64 will put them in the object
6705
 
  # directory.
6706
 
  mkdir sub
6707
 
 
6708
 
  am_cv_CXX_dependencies_compiler_type=none
6709
 
  if test "$am_compiler_list" = ""; then
6710
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6711
 
  fi
6712
 
  am__universal=false
6713
 
  case " $depcc " in #(
6714
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6715
 
     esac
6716
 
 
6717
 
  for depmode in $am_compiler_list; do
6718
 
    # Setup a source with many dependencies, because some compilers
6719
 
    # like to wrap large dependency lists on column 80 (with \), and
6720
 
    # we should not choose a depcomp mode which is confused by this.
6721
 
    #
6722
 
    # We need to recreate these files for each test, as the compiler may
6723
 
    # overwrite some of them when testing with obscure command lines.
6724
 
    # This happens at least with the AIX C compiler.
6725
 
    : > sub/conftest.c
6726
 
    for i in 1 2 3 4 5 6; do
6727
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6728
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6729
 
      # Solaris 8's {/usr,}/bin/sh.
6730
 
      touch sub/conftst$i.h
6731
 
    done
6732
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6733
 
 
6734
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6735
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6736
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
6737
 
    # versions had trouble with output in subdirs
6738
 
    am__obj=sub/conftest.${OBJEXT-o}
6739
 
    am__minus_obj="-o $am__obj"
6740
 
    case $depmode in
6741
 
    gcc)
6742
 
      # This depmode causes a compiler race in universal mode.
6743
 
      test "$am__universal" = false || continue
6744
 
      ;;
6745
 
    nosideeffect)
6746
 
      # after this tag, mechanisms are not by side-effect, so they'll
6747
 
      # only be used when explicitly requested
6748
 
      if test "x$enable_dependency_tracking" = xyes; then
6749
 
        continue
6750
 
      else
6751
 
        break
6752
 
      fi
6753
 
      ;;
6754
 
    msvisualcpp | msvcmsys)
6755
 
      # This compiler won't grok `-c -o', but also, the minuso test has
6756
 
      # not run yet.  These depmodes are late enough in the game, and
6757
 
      # so weak that their functioning should not be impacted.
6758
 
      am__obj=conftest.${OBJEXT-o}
6759
 
      am__minus_obj=
6760
 
      ;;
6761
 
    none) break ;;
6762
 
    esac
6763
 
    if depmode=$depmode \
6764
 
       source=sub/conftest.c object=$am__obj \
6765
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6766
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6767
 
         >/dev/null 2>conftest.err &&
6768
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6769
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6770
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6771
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6772
 
      # icc doesn't choke on unknown options, it will just issue warnings
6773
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6774
 
      # that says an option was ignored or not supported.
6775
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6776
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6777
 
      # The diagnosis changed in icc 8.0:
6778
 
      #   icc: Command line remark: option '-MP' not supported
6779
 
      if (grep 'ignoring option' conftest.err ||
6780
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6781
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6782
 
        break
6783
 
      fi
6784
 
    fi
6785
 
  done
6786
 
 
6787
 
  cd ..
6788
 
  rm -rf conftest.dir
6789
 
else
6790
 
  am_cv_CXX_dependencies_compiler_type=none
6791
 
fi
6792
 
 
6793
 
fi
6794
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6795
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6796
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6797
 
 
6798
 
 if
6799
 
  test "x$enable_dependency_tracking" != xno \
6800
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6801
 
  am__fastdepCXX_TRUE=
6802
 
  am__fastdepCXX_FALSE='#'
6803
 
else
6804
 
  am__fastdepCXX_TRUE='#'
6805
 
  am__fastdepCXX_FALSE=
6806
 
fi
6807
 
 
6808
 
 
6809
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
6810
6463
$as_echo_n "checking whether the C++ compiler works... " >&6; }
6811
6464
ac_ext=cpp
6814
6467
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815
6468
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816
6469
 
 
6470
ac_ext=cpp
 
6471
ac_cpp='$CXXCPP $CPPFLAGS'
 
6472
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6473
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6474
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6475
if test -z "$CXX"; then
 
6476
  if test -n "$CCC"; then
 
6477
    CXX=$CCC
 
6478
  else
 
6479
    if test -n "$ac_tool_prefix"; then
 
6480
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6481
  do
 
6482
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6483
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6485
$as_echo_n "checking for $ac_word... " >&6; }
 
6486
if test "${ac_cv_prog_CXX+set}" = set; then :
 
6487
  $as_echo_n "(cached) " >&6
 
6488
else
 
6489
  if test -n "$CXX"; then
 
6490
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6491
else
 
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6493
for as_dir in $PATH
 
6494
do
 
6495
  IFS=$as_save_IFS
 
6496
  test -z "$as_dir" && as_dir=.
 
6497
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6499
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6500
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6501
    break 2
 
6502
  fi
 
6503
done
 
6504
  done
 
6505
IFS=$as_save_IFS
 
6506
 
 
6507
fi
 
6508
fi
 
6509
CXX=$ac_cv_prog_CXX
 
6510
if test -n "$CXX"; then
 
6511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
6512
$as_echo "$CXX" >&6; }
 
6513
else
 
6514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6515
$as_echo "no" >&6; }
 
6516
fi
 
6517
 
 
6518
 
 
6519
    test -n "$CXX" && break
 
6520
  done
 
6521
fi
 
6522
if test -z "$CXX"; then
 
6523
  ac_ct_CXX=$CXX
 
6524
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6525
do
 
6526
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6527
set dummy $ac_prog; ac_word=$2
 
6528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6529
$as_echo_n "checking for $ac_word... " >&6; }
 
6530
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
6531
  $as_echo_n "(cached) " >&6
 
6532
else
 
6533
  if test -n "$ac_ct_CXX"; then
 
6534
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6535
else
 
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6537
for as_dir in $PATH
 
6538
do
 
6539
  IFS=$as_save_IFS
 
6540
  test -z "$as_dir" && as_dir=.
 
6541
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6542
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6543
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6544
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6545
    break 2
 
6546
  fi
 
6547
done
 
6548
  done
 
6549
IFS=$as_save_IFS
 
6550
 
 
6551
fi
 
6552
fi
 
6553
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6554
if test -n "$ac_ct_CXX"; then
 
6555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
6556
$as_echo "$ac_ct_CXX" >&6; }
 
6557
else
 
6558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6559
$as_echo "no" >&6; }
 
6560
fi
 
6561
 
 
6562
 
 
6563
  test -n "$ac_ct_CXX" && break
 
6564
done
 
6565
 
 
6566
  if test "x$ac_ct_CXX" = x; then
 
6567
    CXX="g++"
 
6568
  else
 
6569
    case $cross_compiling:$ac_tool_warned in
 
6570
yes:)
 
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6572
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6573
ac_tool_warned=yes ;;
 
6574
esac
 
6575
    CXX=$ac_ct_CXX
 
6576
  fi
 
6577
fi
 
6578
 
 
6579
  fi
 
6580
fi
 
6581
# Provide some information about the compiler.
 
6582
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
6583
set X $ac_compile
 
6584
ac_compiler=$2
 
6585
for ac_option in --version -v -V -qversion; do
 
6586
  { { ac_try="$ac_compiler $ac_option >&5"
 
6587
case "(($ac_try" in
 
6588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6589
  *) ac_try_echo=$ac_try;;
 
6590
esac
 
6591
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6592
$as_echo "$ac_try_echo"; } >&5
 
6593
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
6594
  ac_status=$?
 
6595
  if test -s conftest.err; then
 
6596
    sed '10a\
 
6597
... rest of stderr output deleted ...
 
6598
         10q' conftest.err >conftest.er1
 
6599
    cat conftest.er1 >&5
 
6600
    rm -f conftest.er1 conftest.err
 
6601
  fi
 
6602
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6603
  test $ac_status = 0; }
 
6604
done
 
6605
 
 
6606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
6607
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
6608
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
6609
  $as_echo_n "(cached) " >&6
 
6610
else
 
6611
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6612
/* end confdefs.h.  */
 
6613
 
 
6614
int
 
6615
main ()
 
6616
{
 
6617
#ifndef __GNUC__
 
6618
       choke me
 
6619
#endif
 
6620
 
 
6621
  ;
 
6622
  return 0;
 
6623
}
 
6624
_ACEOF
 
6625
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6626
  ac_compiler_gnu=yes
 
6627
else
 
6628
  ac_compiler_gnu=no
 
6629
fi
 
6630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6631
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6632
 
 
6633
fi
 
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
6635
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
6636
if test $ac_compiler_gnu = yes; then
 
6637
  GXX=yes
 
6638
else
 
6639
  GXX=
 
6640
fi
 
6641
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6642
ac_save_CXXFLAGS=$CXXFLAGS
 
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
6644
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
6645
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
6646
  $as_echo_n "(cached) " >&6
 
6647
else
 
6648
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
6649
   ac_cxx_werror_flag=yes
 
6650
   ac_cv_prog_cxx_g=no
 
6651
   CXXFLAGS="-g"
 
6652
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6653
/* end confdefs.h.  */
 
6654
 
 
6655
int
 
6656
main ()
 
6657
{
 
6658
 
 
6659
  ;
 
6660
  return 0;
 
6661
}
 
6662
_ACEOF
 
6663
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6664
  ac_cv_prog_cxx_g=yes
 
6665
else
 
6666
  CXXFLAGS=""
 
6667
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6668
/* end confdefs.h.  */
 
6669
 
 
6670
int
 
6671
main ()
 
6672
{
 
6673
 
 
6674
  ;
 
6675
  return 0;
 
6676
}
 
6677
_ACEOF
 
6678
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6679
 
 
6680
else
 
6681
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6682
         CXXFLAGS="-g"
 
6683
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6684
/* end confdefs.h.  */
 
6685
 
 
6686
int
 
6687
main ()
 
6688
{
 
6689
 
 
6690
  ;
 
6691
  return 0;
 
6692
}
 
6693
_ACEOF
 
6694
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6695
  ac_cv_prog_cxx_g=yes
 
6696
fi
 
6697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6698
fi
 
6699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6700
fi
 
6701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6702
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6703
fi
 
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
6705
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6706
if test "$ac_test_CXXFLAGS" = set; then
 
6707
  CXXFLAGS=$ac_save_CXXFLAGS
 
6708
elif test $ac_cv_prog_cxx_g = yes; then
 
6709
  if test "$GXX" = yes; then
 
6710
    CXXFLAGS="-g -O2"
 
6711
  else
 
6712
    CXXFLAGS="-g"
 
6713
  fi
 
6714
else
 
6715
  if test "$GXX" = yes; then
 
6716
    CXXFLAGS="-O2"
 
6717
  else
 
6718
    CXXFLAGS=
 
6719
  fi
 
6720
fi
 
6721
ac_ext=cpp
 
6722
ac_cpp='$CXXCPP $CPPFLAGS'
 
6723
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6724
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6725
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6726
 
 
6727
depcc="$CXX"  am_compiler_list=
 
6728
 
 
6729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6730
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6731
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
6732
  $as_echo_n "(cached) " >&6
 
6733
else
 
6734
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6735
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6736
  # making bogus files that we don't know about and never remove.  For
 
6737
  # instance it was reported that on HP-UX the gcc test will end up
 
6738
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6739
  # in D'.
 
6740
  mkdir conftest.dir
 
6741
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6742
  # using a relative directory.
 
6743
  cp "$am_depcomp" conftest.dir
 
6744
  cd conftest.dir
 
6745
  # We will build objects and dependencies in a subdirectory because
 
6746
  # it helps to detect inapplicable dependency modes.  For instance
 
6747
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6748
  # side effect of compilation, but ICC will put the dependencies in
 
6749
  # the current directory while Tru64 will put them in the object
 
6750
  # directory.
 
6751
  mkdir sub
 
6752
 
 
6753
  am_cv_CXX_dependencies_compiler_type=none
 
6754
  if test "$am_compiler_list" = ""; then
 
6755
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6756
  fi
 
6757
  am__universal=false
 
6758
  case " $depcc " in #(
 
6759
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6760
     esac
 
6761
 
 
6762
  for depmode in $am_compiler_list; do
 
6763
    # Setup a source with many dependencies, because some compilers
 
6764
    # like to wrap large dependency lists on column 80 (with \), and
 
6765
    # we should not choose a depcomp mode which is confused by this.
 
6766
    #
 
6767
    # We need to recreate these files for each test, as the compiler may
 
6768
    # overwrite some of them when testing with obscure command lines.
 
6769
    # This happens at least with the AIX C compiler.
 
6770
    : > sub/conftest.c
 
6771
    for i in 1 2 3 4 5 6; do
 
6772
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6773
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6774
      # Solaris 8's {/usr,}/bin/sh.
 
6775
      touch sub/conftst$i.h
 
6776
    done
 
6777
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6778
 
 
6779
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6780
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6781
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6782
    # versions had trouble with output in subdirs
 
6783
    am__obj=sub/conftest.${OBJEXT-o}
 
6784
    am__minus_obj="-o $am__obj"
 
6785
    case $depmode in
 
6786
    gcc)
 
6787
      # This depmode causes a compiler race in universal mode.
 
6788
      test "$am__universal" = false || continue
 
6789
      ;;
 
6790
    nosideeffect)
 
6791
      # after this tag, mechanisms are not by side-effect, so they'll
 
6792
      # only be used when explicitly requested
 
6793
      if test "x$enable_dependency_tracking" = xyes; then
 
6794
        continue
 
6795
      else
 
6796
        break
 
6797
      fi
 
6798
      ;;
 
6799
    msvisualcpp | msvcmsys)
 
6800
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6801
      # not run yet.  These depmodes are late enough in the game, and
 
6802
      # so weak that their functioning should not be impacted.
 
6803
      am__obj=conftest.${OBJEXT-o}
 
6804
      am__minus_obj=
 
6805
      ;;
 
6806
    none) break ;;
 
6807
    esac
 
6808
    if depmode=$depmode \
 
6809
       source=sub/conftest.c object=$am__obj \
 
6810
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6811
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6812
         >/dev/null 2>conftest.err &&
 
6813
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6814
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6815
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6816
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6817
      # icc doesn't choke on unknown options, it will just issue warnings
 
6818
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6819
      # that says an option was ignored or not supported.
 
6820
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6821
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6822
      # The diagnosis changed in icc 8.0:
 
6823
      #   icc: Command line remark: option '-MP' not supported
 
6824
      if (grep 'ignoring option' conftest.err ||
 
6825
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6826
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6827
        break
 
6828
      fi
 
6829
    fi
 
6830
  done
 
6831
 
 
6832
  cd ..
 
6833
  rm -rf conftest.dir
 
6834
else
 
6835
  am_cv_CXX_dependencies_compiler_type=none
 
6836
fi
 
6837
 
 
6838
fi
 
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6840
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6841
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6842
 
 
6843
 if
 
6844
  test "x$enable_dependency_tracking" != xno \
 
6845
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6846
  am__fastdepCXX_TRUE=
 
6847
  am__fastdepCXX_FALSE='#'
 
6848
else
 
6849
  am__fastdepCXX_TRUE='#'
 
6850
  am__fastdepCXX_FALSE=
 
6851
fi
 
6852
 
 
6853
 
6817
6854
 
6818
6855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819
6856
/* end confdefs.h.  */
6895
6932
 
6896
6933
 
6897
6934
 
6898
 
macro_version='2.2.6b'
6899
 
macro_revision='1.3017'
 
6935
macro_version='2.2.6'
 
6936
macro_revision='1.3012'
6900
6937
 
6901
6938
 
6902
6939
 
7366
7403
else
7367
7404
  lt_cv_nm_interface="BSD nm"
7368
7405
  echo "int some_variable = 0;" > conftest.$ac_ext
7369
 
  (eval echo "\"\$as_me:7369: $ac_compile\"" >&5)
 
7406
  (eval echo "\"\$as_me:7406: $ac_compile\"" >&5)
7370
7407
  (eval "$ac_compile" 2>conftest.err)
7371
7408
  cat conftest.err >&5
7372
 
  (eval echo "\"\$as_me:7372: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
7409
  (eval echo "\"\$as_me:7409: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7373
7410
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7374
7411
  cat conftest.err >&5
7375
 
  (eval echo "\"\$as_me:7375: output\"" >&5)
 
7412
  (eval echo "\"\$as_me:7412: output\"" >&5)
7376
7413
  cat conftest.out >&5
7377
7414
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7378
7415
    lt_cv_nm_interface="MS dumpbin"
7827
7864
  ;;
7828
7865
 
7829
7866
# This must be Linux ELF.
7830
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7867
linux* | k*bsd*-gnu)
7831
7868
  lt_cv_deplibs_check_method=pass_all
7832
7869
  ;;
7833
7870
 
7834
 
netbsd* | netbsdelf*-gnu)
 
7871
netbsd*)
7835
7872
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7836
7873
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7837
7874
  else
8566
8603
  ;;
8567
8604
*-*-irix6*)
8568
8605
  # Find out which ABI we are using.
8569
 
  echo '#line 8569 "configure"' > conftest.$ac_ext
 
8606
  echo '#line 8606 "configure"' > conftest.$ac_ext
8570
8607
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8571
8608
  (eval $ac_compile) 2>&5
8572
8609
  ac_status=$?
9458
9495
... rest of stderr output deleted ...
9459
9496
         10q' conftest.err >conftest.er1
9460
9497
    cat conftest.er1 >&5
 
9498
    rm -f conftest.er1 conftest.err
9461
9499
  fi
9462
 
  rm -f conftest.er1 conftest.err
9463
9500
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464
9501
  test $ac_status = 0; }
9465
9502
done
10320
10357
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10321
10358
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10322
10359
   -e 's:$: $lt_compiler_flag:'`
10323
 
   (eval echo "\"\$as_me:10323: $lt_compile\"" >&5)
 
10360
   (eval echo "\"\$as_me:10360: $lt_compile\"" >&5)
10324
10361
   (eval "$lt_compile" 2>conftest.err)
10325
10362
   ac_status=$?
10326
10363
   cat conftest.err >&5
10327
 
   echo "$as_me:10327: \$? = $ac_status" >&5
 
10364
   echo "$as_me:10364: \$? = $ac_status" >&5
10328
10365
   if (exit $ac_status) && test -s "$ac_outfile"; then
10329
10366
     # The compiler can only warn and ignore the option if not recognized
10330
10367
     # So say no if there are warnings other than the usual output.
10489
10526
      lt_prog_compiler_static='-non_shared'
10490
10527
      ;;
10491
10528
 
10492
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10529
    linux* | k*bsd*-gnu)
10493
10530
      case $cc_basename in
10494
10531
      # old Intel for x86_64 which still supported -KPIC.
10495
10532
      ecc*)
10659
10696
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10660
10697
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661
10698
   -e 's:$: $lt_compiler_flag:'`
10662
 
   (eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
 
10699
   (eval echo "\"\$as_me:10699: $lt_compile\"" >&5)
10663
10700
   (eval "$lt_compile" 2>conftest.err)
10664
10701
   ac_status=$?
10665
10702
   cat conftest.err >&5
10666
 
   echo "$as_me:10666: \$? = $ac_status" >&5
 
10703
   echo "$as_me:10703: \$? = $ac_status" >&5
10667
10704
   if (exit $ac_status) && test -s "$ac_outfile"; then
10668
10705
     # The compiler can only warn and ignore the option if not recognized
10669
10706
     # So say no if there are warnings other than the usual output.
10764
10801
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10765
10802
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10766
10803
   -e 's:$: $lt_compiler_flag:'`
10767
 
   (eval echo "\"\$as_me:10767: $lt_compile\"" >&5)
 
10804
   (eval echo "\"\$as_me:10804: $lt_compile\"" >&5)
10768
10805
   (eval "$lt_compile" 2>out/conftest.err)
10769
10806
   ac_status=$?
10770
10807
   cat out/conftest.err >&5
10771
 
   echo "$as_me:10771: \$? = $ac_status" >&5
 
10808
   echo "$as_me:10808: \$? = $ac_status" >&5
10772
10809
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10773
10810
   then
10774
10811
     # The compiler can only warn and ignore the option if not recognized
10819
10856
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10820
10857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10821
10858
   -e 's:$: $lt_compiler_flag:'`
10822
 
   (eval echo "\"\$as_me:10822: $lt_compile\"" >&5)
 
10859
   (eval echo "\"\$as_me:10859: $lt_compile\"" >&5)
10823
10860
   (eval "$lt_compile" 2>out/conftest.err)
10824
10861
   ac_status=$?
10825
10862
   cat out/conftest.err >&5
10826
 
   echo "$as_me:10826: \$? = $ac_status" >&5
 
10863
   echo "$as_me:10863: \$? = $ac_status" >&5
10827
10864
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10828
10865
   then
10829
10866
     # The compiler can only warn and ignore the option if not recognized
10938
10975
  openbsd*)
10939
10976
    with_gnu_ld=no
10940
10977
    ;;
10941
 
  linux* | k*bsd*-gnu)
10942
 
    link_all_deplibs=no
10943
 
    ;;
10944
10978
  esac
10945
10979
 
10946
10980
  ld_shlibs=yes
10962
10996
    fi
10963
10997
    supports_anon_versioning=no
10964
10998
    case `$LD -v 2>&1` in
10965
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
10966
10999
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10967
11000
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10968
11001
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11054
11087
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11055
11088
      ;;
11056
11089
 
11057
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
11090
    gnu* | linux* | tpf* | k*bsd*-gnu)
11058
11091
      tmp_diet=no
11059
11092
      if test "$host_os" = linux-dietlibc; then
11060
11093
        case $cc_basename in
11124
11157
      fi
11125
11158
      ;;
11126
11159
 
11127
 
    netbsd* | netbsdelf*-gnu)
 
11160
    netbsd*)
11128
11161
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11129
11162
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11130
11163
        wlarc=
11299
11332
        if test "$aix_use_runtimelinking" = yes; then
11300
11333
          shared_flag="$shared_flag "'${wl}-G'
11301
11334
        fi
11302
 
        link_all_deplibs=no
11303
11335
      else
11304
11336
        # not using gcc
11305
11337
        if test "$host_cpu" = ia64; then
11626
11658
      link_all_deplibs=yes
11627
11659
      ;;
11628
11660
 
11629
 
    netbsd* | netbsdelf*-gnu)
 
11661
    netbsd*)
11630
11662
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11631
11663
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11632
11664
      else
12516
12548
  ;;
12517
12549
 
12518
12550
# This must be Linux ELF.
12519
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12551
linux* | k*bsd*-gnu)
12520
12552
  version_type=linux
12521
12553
  need_lib_prefix=no
12522
12554
  need_version=no
12571
12603
  dynamic_linker='GNU/Linux ld.so'
12572
12604
  ;;
12573
12605
 
12574
 
netbsdelf*-gnu)
12575
 
  version_type=linux
12576
 
  need_lib_prefix=no
12577
 
  need_version=no
12578
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12579
 
  soname_spec='${libname}${release}${shared_ext}$major'
12580
 
  shlibpath_var=LD_LIBRARY_PATH
12581
 
  shlibpath_overrides_runpath=no
12582
 
  hardcode_into_libs=yes
12583
 
  dynamic_linker='NetBSD ld.elf_so'
12584
 
  ;;
12585
 
 
12586
12606
netbsd*)
12587
12607
  version_type=sunos
12588
12608
  need_lib_prefix=no
13203
13223
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13204
13224
  lt_status=$lt_dlunknown
13205
13225
  cat > conftest.$ac_ext <<_LT_EOF
13206
 
#line 13206 "configure"
 
13226
#line 13226 "configure"
13207
13227
#include "confdefs.h"
13208
13228
 
13209
13229
#if HAVE_DLFCN_H
13299
13319
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13300
13320
  lt_status=$lt_dlunknown
13301
13321
  cat > conftest.$ac_ext <<_LT_EOF
13302
 
#line 13302 "configure"
 
13322
#line 13322 "configure"
13303
13323
#include "confdefs.h"
13304
13324
 
13305
13325
#if HAVE_DLFCN_H
14239
14259
        inherit_rpath_CXX=yes
14240
14260
        ;;
14241
14261
 
14242
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14262
      linux* | k*bsd*-gnu)
14243
14263
        case $cc_basename in
14244
14264
          KCC*)
14245
14265
            # Kuck and Associates, Inc. (KAI) C++ Compiler
15067
15087
            ;;
15068
15088
        esac
15069
15089
        ;;
15070
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
15090
      linux* | k*bsd*-gnu)
15071
15091
        case $cc_basename in
15072
15092
          KCC*)
15073
15093
            # KAI C++ Compiler
15131
15151
            ;;
15132
15152
        esac
15133
15153
        ;;
15134
 
      netbsd* | netbsdelf*-gnu)
 
15154
      netbsd*)
15135
15155
        ;;
15136
15156
      *qnx* | *nto*)
15137
15157
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15255
15275
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256
15276
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257
15277
   -e 's:$: $lt_compiler_flag:'`
15258
 
   (eval echo "\"\$as_me:15258: $lt_compile\"" >&5)
 
15278
   (eval echo "\"\$as_me:15278: $lt_compile\"" >&5)
15259
15279
   (eval "$lt_compile" 2>conftest.err)
15260
15280
   ac_status=$?
15261
15281
   cat conftest.err >&5
15262
 
   echo "$as_me:15262: \$? = $ac_status" >&5
 
15282
   echo "$as_me:15282: \$? = $ac_status" >&5
15263
15283
   if (exit $ac_status) && test -s "$ac_outfile"; then
15264
15284
     # The compiler can only warn and ignore the option if not recognized
15265
15285
     # So say no if there are warnings other than the usual output.
15354
15374
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355
15375
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356
15376
   -e 's:$: $lt_compiler_flag:'`
15357
 
   (eval echo "\"\$as_me:15357: $lt_compile\"" >&5)
 
15377
   (eval echo "\"\$as_me:15377: $lt_compile\"" >&5)
15358
15378
   (eval "$lt_compile" 2>out/conftest.err)
15359
15379
   ac_status=$?
15360
15380
   cat out/conftest.err >&5
15361
 
   echo "$as_me:15361: \$? = $ac_status" >&5
 
15381
   echo "$as_me:15381: \$? = $ac_status" >&5
15362
15382
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363
15383
   then
15364
15384
     # The compiler can only warn and ignore the option if not recognized
15406
15426
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15407
15427
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15408
15428
   -e 's:$: $lt_compiler_flag:'`
15409
 
   (eval echo "\"\$as_me:15409: $lt_compile\"" >&5)
 
15429
   (eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
15410
15430
   (eval "$lt_compile" 2>out/conftest.err)
15411
15431
   ac_status=$?
15412
15432
   cat out/conftest.err >&5
15413
 
   echo "$as_me:15413: \$? = $ac_status" >&5
 
15433
   echo "$as_me:15433: \$? = $ac_status" >&5
15414
15434
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15415
15435
   then
15416
15436
     # The compiler can only warn and ignore the option if not recognized
15482
15502
  cygwin* | mingw* | cegcc*)
15483
15503
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15484
15504
  ;;
15485
 
  linux* | k*bsd*-gnu)
15486
 
    link_all_deplibs_CXX=no
15487
 
  ;;
15488
15505
  *)
15489
15506
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15490
15507
  ;;
15984
16001
  ;;
15985
16002
 
15986
16003
# This must be Linux ELF.
15987
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
16004
linux* | k*bsd*-gnu)
15988
16005
  version_type=linux
15989
16006
  need_lib_prefix=no
15990
16007
  need_version=no
16039
16056
  dynamic_linker='GNU/Linux ld.so'
16040
16057
  ;;
16041
16058
 
16042
 
netbsdelf*-gnu)
16043
 
  version_type=linux
16044
 
  need_lib_prefix=no
16045
 
  need_version=no
16046
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16047
 
  soname_spec='${libname}${release}${shared_ext}$major'
16048
 
  shlibpath_var=LD_LIBRARY_PATH
16049
 
  shlibpath_overrides_runpath=no
16050
 
  hardcode_into_libs=yes
16051
 
  dynamic_linker='NetBSD ld.elf_so'
16052
 
  ;;
16053
 
 
16054
16059
netbsd*)
16055
16060
  version_type=sunos
16056
16061
  need_lib_prefix=no
17468
17473
 
17469
17474
fi
17470
17475
 
17471
 
ALL_LINGUAS="ar cs ca da de el en_GB eo es et fa fi fr he hu it ja ko lt
 
17476
ALL_LINGUAS="ar cs ca da de el en_GB eo es et fa fi fr ga gd he hu it ja ko lt
17472
17477
nl nb no pl pt pt_BR ro ru sv tr uk zh_CN"
17473
17478
 
17474
17479
# Check whether --enable-nls was given.
18503
18508
fi
18504
18509
 
18505
18510
EXTRA_DEBUG_CFLAGS=""
18506
 
EXTRA_DEBUG_CXXFLAGS=""
18507
18511
 
18508
18512
 
18509
18513
ac_ext=c
18556
18560
 
18557
18561
 
18558
18562
 
18559
 
ac_ext=cpp
18560
 
ac_cpp='$CXXCPP $CPPFLAGS'
18561
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18564
 
 
18565
 
 
18566
 
flags_save="`eval echo '$'CXXFLAGS`"
18567
 
accepted_flags=""
18568
 
 
18569
 
for flag in -Wall -Wpointer-arith -Wcast-align -Wno-unused-but-set-variable
18570
 
do
18571
 
  CXXFLAGS="$flags_save $accepted_flags $flag "
18572
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573
 
/* end confdefs.h.  */
18574
 
int a;
18575
 
_ACEOF
18576
 
if ac_fn_cxx_try_compile "$LINENO"; then :
18577
 
 
18578
 
old_value="`eval echo '$'accepted_flags`"
18579
 
if test "x$old_value" = "x" ; then
18580
 
  accepted_flags="$flag"
18581
 
elif test "x$flag" != "x" ; then
18582
 
  accepted_flags="$old_value $flag"
18583
 
fi
18584
 
 
18585
 
fi
18586
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587
 
done
18588
 
 
18589
 
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
18590
 
if test "x$old_value" = "x" ; then
18591
 
  EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
18592
 
elif test "x$accepted_flags" != "x" ; then
18593
 
  EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
18594
 
fi
18595
 
 
18596
 
 
18597
 
CXXFLAGS="$flags_save"
18598
 
 
18599
 
ac_ext=c
18600
 
ac_cpp='$CPP $CPPFLAGS'
18601
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18602
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18603
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604
 
 
18605
 
 
18606
 
 
18607
 
 
18608
 
 
18609
18563
# Check whether --enable-debug was given.
18610
18564
if test "${enable_debug+set}" = set; then :
18611
18565
  enableval=$enable_debug; case "${enableval}" in
18612
 
  yes) enable_debug=yes ;;
18613
 
  some) enable_debug=some ;;
18614
 
  no)  enable_debug=no ;;
18615
 
  *)   as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
 
18566
  yes)    enable_debug=yes ;;
 
18567
  some)   enable_debug=some ;;
 
18568
  checks) enable_debug=checks ;;
 
18569
  no)     enable_debug=no ;;
 
18570
  *)      as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
18616
18571
esac
18617
18572
else
18618
18573
  enable_debug=some
18619
18574
fi
18620
18575
 
18621
18576
 
18622
 
if test "x$enable_debug" = "xyes"; then
 
18577
if test "x$enable_debug" = "xyes" -o "x$enable_debug" = "xchecks"; then
18623
18578
 
18624
18579
$as_echo "#define DEBUG 1" >>confdefs.h
18625
18580
 
18723
18678
 
18724
18679
 
18725
18680
 
 
18681
 
 
18682
  if test "x$enable_debug" = "xchecks"; then
 
18683
 
 
18684
 
 
18685
ac_ext=c
 
18686
ac_cpp='$CPP $CPPFLAGS'
 
18687
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18688
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18689
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18690
 
 
18691
 
 
18692
flags_save="`eval echo '$'CFLAGS`"
 
18693
accepted_flags=""
 
18694
 
 
18695
for flag in -Werror -Wall -Wpointer-arith -Wcast-align
 
18696
do
 
18697
  CFLAGS="$flags_save $accepted_flags $flag "
 
18698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18699
/* end confdefs.h.  */
 
18700
int a;
 
18701
_ACEOF
 
18702
if ac_fn_c_try_compile "$LINENO"; then :
 
18703
 
 
18704
old_value="`eval echo '$'accepted_flags`"
 
18705
if test "x$old_value" = "x" ; then
 
18706
  accepted_flags="$flag"
 
18707
elif test "x$flag" != "x" ; then
 
18708
  accepted_flags="$old_value $flag"
 
18709
fi
 
18710
 
 
18711
fi
 
18712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18713
done
 
18714
 
 
18715
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
 
18716
if test "x$old_value" = "x" ; then
 
18717
  EXTRA_DEBUG_CFLAGS="$accepted_flags"
 
18718
elif test "x$accepted_flags" != "x" ; then
 
18719
  EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
 
18720
fi
 
18721
 
 
18722
 
 
18723
CFLAGS="$flags_save"
 
18724
 
 
18725
ac_ext=c
 
18726
ac_cpp='$CPP $CPPFLAGS'
 
18727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18730
 
 
18731
 
 
18732
 
 
18733
 
 
18734
 
 
18735
ac_ext=c
 
18736
ac_cpp='$CPP $CPPFLAGS'
 
18737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18740
 
 
18741
 
 
18742
flags_save="`eval echo '$'CFLAGS`"
 
18743
accepted_flags=""
 
18744
 
 
18745
for flag in -Wmissing-prototypes -Wmissing-declarations
 
18746
do
 
18747
  CFLAGS="$flags_save $accepted_flags $flag "
 
18748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18749
/* end confdefs.h.  */
 
18750
int a;
 
18751
_ACEOF
 
18752
if ac_fn_c_try_compile "$LINENO"; then :
 
18753
 
 
18754
old_value="`eval echo '$'accepted_flags`"
 
18755
if test "x$old_value" = "x" ; then
 
18756
  accepted_flags="$flag"
 
18757
elif test "x$flag" != "x" ; then
 
18758
  accepted_flags="$old_value $flag"
 
18759
fi
 
18760
 
 
18761
fi
 
18762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18763
done
 
18764
 
 
18765
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
 
18766
if test "x$old_value" = "x" ; then
 
18767
  EXTRA_DEBUG_CFLAGS="$accepted_flags"
 
18768
elif test "x$accepted_flags" != "x" ; then
 
18769
  EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
 
18770
fi
 
18771
 
 
18772
 
 
18773
CFLAGS="$flags_save"
 
18774
 
 
18775
ac_ext=c
 
18776
ac_cpp='$CPP $CPPFLAGS'
 
18777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18780
 
 
18781
 
 
18782
 
 
18783
 
 
18784
 
 
18785
ac_ext=c
 
18786
ac_cpp='$CPP $CPPFLAGS'
 
18787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18790
 
 
18791
 
 
18792
flags_save="`eval echo '$'CFLAGS`"
 
18793
accepted_flags=""
 
18794
 
 
18795
for flag in -Wstrict-prototypes -Wnested-externs -Wl,--no-add-needed
 
18796
do
 
18797
  CFLAGS="$flags_save $accepted_flags $flag "
 
18798
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18799
/* end confdefs.h.  */
 
18800
int a;
 
18801
_ACEOF
 
18802
if ac_fn_c_try_compile "$LINENO"; then :
 
18803
 
 
18804
old_value="`eval echo '$'accepted_flags`"
 
18805
if test "x$old_value" = "x" ; then
 
18806
  accepted_flags="$flag"
 
18807
elif test "x$flag" != "x" ; then
 
18808
  accepted_flags="$old_value $flag"
 
18809
fi
 
18810
 
 
18811
fi
 
18812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18813
done
 
18814
 
 
18815
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
 
18816
if test "x$old_value" = "x" ; then
 
18817
  EXTRA_DEBUG_CFLAGS="$accepted_flags"
 
18818
elif test "x$accepted_flags" != "x" ; then
 
18819
  EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
 
18820
fi
 
18821
 
 
18822
 
 
18823
CFLAGS="$flags_save"
 
18824
 
 
18825
ac_ext=c
 
18826
ac_cpp='$CPP $CPPFLAGS'
 
18827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18830
 
 
18831
 
 
18832
 
 
18833
 
 
18834
 
 
18835
ac_ext=cpp
 
18836
ac_cpp='$CXXCPP $CPPFLAGS'
 
18837
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18838
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18839
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18840
 
 
18841
 
 
18842
flags_save="`eval echo '$'CXXFLAGS`"
 
18843
accepted_flags=""
 
18844
 
 
18845
for flag in -Werror -Wall -Wpointer-arith -Wcast-align
 
18846
do
 
18847
  CXXFLAGS="$flags_save $accepted_flags $flag "
 
18848
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18849
/* end confdefs.h.  */
 
18850
int a;
 
18851
_ACEOF
 
18852
if ac_fn_cxx_try_compile "$LINENO"; then :
 
18853
 
 
18854
old_value="`eval echo '$'accepted_flags`"
 
18855
if test "x$old_value" = "x" ; then
 
18856
  accepted_flags="$flag"
 
18857
elif test "x$flag" != "x" ; then
 
18858
  accepted_flags="$old_value $flag"
 
18859
fi
 
18860
 
 
18861
fi
 
18862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18863
done
 
18864
 
 
18865
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
 
18866
if test "x$old_value" = "x" ; then
 
18867
  EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
 
18868
elif test "x$accepted_flags" != "x" ; then
 
18869
  EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
 
18870
fi
 
18871
 
 
18872
 
 
18873
CXXFLAGS="$flags_save"
 
18874
 
 
18875
ac_ext=c
 
18876
ac_cpp='$CPP $CPPFLAGS'
 
18877
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18878
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18879
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18880
 
 
18881
 
 
18882
 
 
18883
 
 
18884
 
 
18885
ac_ext=cpp
 
18886
ac_cpp='$CXXCPP $CPPFLAGS'
 
18887
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18888
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18889
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
18890
 
 
18891
 
 
18892
flags_save="`eval echo '$'CXXFLAGS`"
 
18893
accepted_flags=""
 
18894
 
 
18895
for flag in --Wmissing-declarations
 
18896
do
 
18897
  CXXFLAGS="$flags_save $accepted_flags $flag "
 
18898
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18899
/* end confdefs.h.  */
 
18900
int a;
 
18901
_ACEOF
 
18902
if ac_fn_cxx_try_compile "$LINENO"; then :
 
18903
 
 
18904
old_value="`eval echo '$'accepted_flags`"
 
18905
if test "x$old_value" = "x" ; then
 
18906
  accepted_flags="$flag"
 
18907
elif test "x$flag" != "x" ; then
 
18908
  accepted_flags="$old_value $flag"
 
18909
fi
 
18910
 
 
18911
fi
 
18912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18913
done
 
18914
 
 
18915
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
 
18916
if test "x$old_value" = "x" ; then
 
18917
  EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
 
18918
elif test "x$accepted_flags" != "x" ; then
 
18919
  EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
 
18920
fi
 
18921
 
 
18922
 
 
18923
CXXFLAGS="$flags_save"
 
18924
 
 
18925
ac_ext=c
 
18926
ac_cpp='$CPP $CPPFLAGS'
 
18927
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18928
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18929
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18930
 
 
18931
 
 
18932
 
 
18933
  fi
18726
18934
else
18727
18935
  if test "x$enable_debug" = "xno"; then
18728
18936
 
18832
19040
fi
18833
19041
 
18834
19042
 
 
19043
# Check whether --enable-gprof was given.
 
19044
if test "${enable_gprof+set}" = set; then :
 
19045
  enableval=$enable_gprof; case "${enableval}" in
 
19046
  yes) enable_gprof=yes ;;
 
19047
  no)  enable_gprof=no ;;
 
19048
  *)   as_fn_error "bad value ${enableval} for --enable-gprof" "$LINENO" 5 ;;
 
19049
esac
 
19050
else
 
19051
  enable_gprof=no
 
19052
fi
 
19053
 
 
19054
 
 
19055
if test "x$enable_gprof" = "xyes"; then
 
19056
 
 
19057
 
 
19058
ac_ext=c
 
19059
ac_cpp='$CPP $CPPFLAGS'
 
19060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19063
 
 
19064
 
 
19065
flags_save="`eval echo '$'CFLAGS`"
 
19066
accepted_flags=""
 
19067
 
 
19068
for flag in -pg
 
19069
do
 
19070
  CFLAGS="$flags_save $accepted_flags $flag "
 
19071
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19072
/* end confdefs.h.  */
 
19073
int a;
 
19074
_ACEOF
 
19075
if ac_fn_c_try_compile "$LINENO"; then :
 
19076
 
 
19077
old_value="`eval echo '$'accepted_flags`"
 
19078
if test "x$old_value" = "x" ; then
 
19079
  accepted_flags="$flag"
 
19080
elif test "x$flag" != "x" ; then
 
19081
  accepted_flags="$old_value $flag"
 
19082
fi
 
19083
 
 
19084
fi
 
19085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19086
done
 
19087
 
 
19088
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
 
19089
if test "x$old_value" = "x" ; then
 
19090
  EXTRA_DEBUG_CFLAGS="$accepted_flags"
 
19091
elif test "x$accepted_flags" != "x" ; then
 
19092
  EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
 
19093
fi
 
19094
 
 
19095
 
 
19096
CFLAGS="$flags_save"
 
19097
 
 
19098
ac_ext=c
 
19099
ac_cpp='$CPP $CPPFLAGS'
 
19100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19103
 
 
19104
 
 
19105
 
 
19106
 
 
19107
 
 
19108
ac_ext=cpp
 
19109
ac_cpp='$CXXCPP $CPPFLAGS'
 
19110
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19111
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19112
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
19113
 
 
19114
 
 
19115
flags_save="`eval echo '$'CXXFLAGS`"
 
19116
accepted_flags=""
 
19117
 
 
19118
for flag in -pg
 
19119
do
 
19120
  CXXFLAGS="$flags_save $accepted_flags $flag "
 
19121
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19122
/* end confdefs.h.  */
 
19123
int a;
 
19124
_ACEOF
 
19125
if ac_fn_cxx_try_compile "$LINENO"; then :
 
19126
 
 
19127
old_value="`eval echo '$'accepted_flags`"
 
19128
if test "x$old_value" = "x" ; then
 
19129
  accepted_flags="$flag"
 
19130
elif test "x$flag" != "x" ; then
 
19131
  accepted_flags="$old_value $flag"
 
19132
fi
 
19133
 
 
19134
fi
 
19135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19136
done
 
19137
 
 
19138
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
 
19139
if test "x$old_value" = "x" ; then
 
19140
  EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
 
19141
elif test "x$accepted_flags" != "x" ; then
 
19142
  EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
 
19143
fi
 
19144
 
 
19145
 
 
19146
CXXFLAGS="$flags_save"
 
19147
 
 
19148
ac_ext=c
 
19149
ac_cpp='$CPP $CPPFLAGS'
 
19150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19153
 
 
19154
 
 
19155
 
 
19156
fi
 
19157
 
 
19158
 
18835
19159
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
18836
19160
$as_echo_n "checking for C99 variadic macros... " >&6; }
18837
19161
if test "${ac_cv_c99_variadic_macros+set}" = set; then :
19150
19474
 
19151
19475
fi
19152
19476
 
 
19477
CPPFLAGS="$CPPFLAGS -DBINDIR=\"\\\"$bindir\\\"\""
 
19478
 
19153
19479
COMMON_LIBS=-lm
19154
19480
UTILITY_LIBS=
19155
19481
 
24091
24417
$as_echo "yes" >&6; }
24092
24418
        SOUND_SDL_OK=true
24093
24419
      else
24094
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, found header but not library!" >&5
24095
 
$as_echo "no, found header but not library!" >&6; }
 
24420
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&5
 
24421
$as_echo "no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&6; }
24096
24422
      fi
24097
24423
    else
24098
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, install SDL_mixer first: http://www.libsdl.org/projects/SDL_mixer/index.html" >&5
24099
 
$as_echo "no, install SDL_mixer first: http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; }
 
24424
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&5
 
24425
$as_echo "no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; }
24100
24426
      SDL_mixer="xno"
24101
24427
    fi
24102
24428
  fi
24299
24625
do
24300
24626
  for j in $libggz_header;
24301
24627
  do
24302
 
    echo "configure: 24302: $i/$j" >&5
 
24628
    echo "configure: 24628: $i/$j" >&5
24303
24629
    if test -r "$i/$j"; then
24304
24630
      echo "taking that" >&5
24305
24631
      libggz_incdir=$i
24555
24881
do
24556
24882
  for j in $ggzmod_header;
24557
24883
  do
24558
 
    echo "configure: 24558: $i/$j" >&5
 
24884
    echo "configure: 24884: $i/$j" >&5
24559
24885
    if test -r "$i/$j"; then
24560
24886
      echo "taking that" >&5
24561
24887
      ggzmod_incdir=$i
24685
25011
do
24686
25012
  for j in ggz-config;
24687
25013
  do
24688
 
    echo "configure: 24688: $i/$j" >&5
 
25014
    echo "configure: 25014: $i/$j" >&5
24689
25015
    if test -r "$i/$j"; then
24690
25016
      echo "taking that" >&5
24691
25017
      ggz_config_dir=$i
24914
25240
do
24915
25241
  for j in $ggz_gtk_header;
24916
25242
  do
24917
 
    echo "configure: 24917: $i/$j" >&5
 
25243
    echo "configure: 25243: $i/$j" >&5
24918
25244
    if test -r "$i/$j"; then
24919
25245
      echo "taking that" >&5
24920
25246
      ggz_gtk_incdir=$i
25106
25432
do
25107
25433
  for j in $libggz_header;
25108
25434
  do
25109
 
    echo "configure: 25109: $i/$j" >&5
 
25435
    echo "configure: 25435: $i/$j" >&5
25110
25436
    if test -r "$i/$j"; then
25111
25437
      echo "taking that" >&5
25112
25438
      libggz_incdir=$i
25358
25684
do
25359
25685
  for j in $ggzdmod_header;
25360
25686
  do
25361
 
    echo "configure: 25361: $i/$j" >&5
 
25687
    echo "configure: 25687: $i/$j" >&5
25362
25688
    if test -r "$i/$j"; then
25363
25689
      echo "taking that" >&5
25364
25690
      ggzdmod_incdir=$i
25788
26114
do
25789
26115
  for j in $libggz_header;
25790
26116
  do
25791
 
    echo "configure: 25791: $i/$j" >&5
 
26117
    echo "configure: 26117: $i/$j" >&5
25792
26118
    if test -r "$i/$j"; then
25793
26119
      echo "taking that" >&5
25794
26120
      libggz_incdir=$i
26044
26370
do
26045
26371
  for j in $ggzmod_header;
26046
26372
  do
26047
 
    echo "configure: 26047: $i/$j" >&5
 
26373
    echo "configure: 26373: $i/$j" >&5
26048
26374
    if test -r "$i/$j"; then
26049
26375
      echo "taking that" >&5
26050
26376
      ggzmod_incdir=$i
26174
26500
do
26175
26501
  for j in ggz-config;
26176
26502
  do
26177
 
    echo "configure: 26177: $i/$j" >&5
 
26503
    echo "configure: 26503: $i/$j" >&5
26178
26504
    if test -r "$i/$j"; then
26179
26505
      echo "taking that" >&5
26180
26506
      ggz_config_dir=$i
26403
26729
do
26404
26730
  for j in $ggz_gtk_header;
26405
26731
  do
26406
 
    echo "configure: 26406: $i/$j" >&5
 
26732
    echo "configure: 26732: $i/$j" >&5
26407
26733
    if test -r "$i/$j"; then
26408
26734
      echo "taking that" >&5
26409
26735
      ggz_gtk_incdir=$i
26595
26921
do
26596
26922
  for j in $libggz_header;
26597
26923
  do
26598
 
    echo "configure: 26598: $i/$j" >&5
 
26924
    echo "configure: 26924: $i/$j" >&5
26599
26925
    if test -r "$i/$j"; then
26600
26926
      echo "taking that" >&5
26601
26927
      libggz_incdir=$i
26847
27173
do
26848
27174
  for j in $ggzdmod_header;
26849
27175
  do
26850
 
    echo "configure: 26850: $i/$j" >&5
 
27176
    echo "configure: 27176: $i/$j" >&5
26851
27177
    if test -r "$i/$j"; then
26852
27178
      echo "taking that" >&5
26853
27179
      ggzdmod_incdir=$i
27167
27493
fi
27168
27494
 
27169
27495
 
27170
 
 
27171
 
 
 
27496
modinst=no
 
27497
# Check whether --enable-gtktest was given.
 
27498
if test "${enable_gtktest+set}" = set; then :
 
27499
  enableval=$enable_gtktest;
 
27500
else
 
27501
  enable_gtktest=yes
 
27502
fi
 
27503
 
 
27504
 
 
27505
  pkg_config_args=gtk+-2.0
 
27506
  for module in .
 
27507
  do
 
27508
      case "$module" in
 
27509
         gthread)
 
27510
             pkg_config_args="$pkg_config_args gthread-2.0"
 
27511
         ;;
 
27512
      esac
 
27513
  done
 
27514
 
 
27515
  no_gtk=""
 
27516
 
 
27517
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
27518
set dummy pkg-config; ac_word=$2
 
27519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
27520
$as_echo_n "checking for $ac_word... " >&6; }
 
27521
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
27522
  $as_echo_n "(cached) " >&6
 
27523
else
 
27524
  case $PKG_CONFIG in
 
27525
  [\\/]* | ?:[\\/]*)
 
27526
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
27527
  ;;
 
27528
  *)
 
27529
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27530
for as_dir in $PATH
 
27531
do
 
27532
  IFS=$as_save_IFS
 
27533
  test -z "$as_dir" && as_dir=.
 
27534
    for ac_exec_ext in '' $ac_executable_extensions; do
 
27535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
27536
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
27537
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
27538
    break 2
 
27539
  fi
 
27540
done
 
27541
  done
 
27542
IFS=$as_save_IFS
 
27543
 
 
27544
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
27545
  ;;
 
27546
esac
 
27547
fi
 
27548
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
27549
if test -n "$PKG_CONFIG"; then
 
27550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
27551
$as_echo "$PKG_CONFIG" >&6; }
 
27552
else
 
27553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27554
$as_echo "no" >&6; }
 
27555
fi
 
27556
 
 
27557
 
 
27558
 
 
27559
  if test x$PKG_CONFIG != xno ; then
 
27560
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
 
27561
      :
 
27562
    else
 
27563
      echo *** pkg-config too old; version 0.7 or better required.
 
27564
      no_gtk=yes
 
27565
      PKG_CONFIG=no
 
27566
    fi
 
27567
  else
 
27568
    no_gtk=yes
 
27569
  fi
 
27570
 
 
27571
  min_gtk_version=2.6.0
 
27572
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
 
27573
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
 
27574
 
 
27575
  if test x$PKG_CONFIG != xno ; then
 
27576
    ## don't try to run the test against uninstalled libtool libs
 
27577
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
27578
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
27579
          enable_gtktest=no
 
27580
    fi
 
27581
 
 
27582
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
27583
          :
 
27584
    else
 
27585
          no_gtk=yes
 
27586
    fi
 
27587
  fi
 
27588
 
 
27589
  if test x"$no_gtk" = x ; then
 
27590
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
27591
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
27592
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
27593
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
27594
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
27595
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
27596
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
27597
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
27598
    if test "x$enable_gtktest" = "xyes" ; then
 
27599
      ac_save_CFLAGS="$CFLAGS"
 
27600
      ac_save_LIBS="$LIBS"
 
27601
      CFLAGS="$CFLAGS $GTK_CFLAGS"
 
27602
      LIBS="$GTK_LIBS $LIBS"
 
27603
      rm -f conf.gtktest
 
27604
      if test "$cross_compiling" = yes; then :
 
27605
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
27606
else
 
27607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27608
/* end confdefs.h.  */
 
27609
 
 
27610
#include <gtk/gtk.h>
 
27611
#include <stdio.h>
 
27612
#include <stdlib.h>
 
27613
 
 
27614
int
 
27615
main ()
 
27616
{
 
27617
  int major, minor, micro;
 
27618
  char *tmp_version;
 
27619
 
 
27620
  system ("touch conf.gtktest");
 
27621
 
 
27622
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
27623
  tmp_version = g_strdup("$min_gtk_version");
 
27624
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
27625
     printf("%s, bad version string\n", "$min_gtk_version");
 
27626
     exit(1);
 
27627
   }
 
27628
 
 
27629
  if ((gtk_major_version != $gtk_config_major_version) ||
 
27630
      (gtk_minor_version != $gtk_config_minor_version) ||
 
27631
      (gtk_micro_version != $gtk_config_micro_version))
 
27632
    {
 
27633
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
 
27634
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 
27635
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
27636
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
27637
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 
27638
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
27639
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
27640
      printf("*** required on your system.\n");
 
27641
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
27642
      printf("*** to point to the correct configuration files\n");
 
27643
    }
 
27644
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 
27645
           (gtk_minor_version != GTK_MINOR_VERSION) ||
 
27646
           (gtk_micro_version != GTK_MICRO_VERSION))
 
27647
    {
 
27648
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 
27649
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 
27650
      printf("*** library (version %d.%d.%d)\n",
 
27651
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
27652
    }
 
27653
  else
 
27654
    {
 
27655
      if ((gtk_major_version > major) ||
 
27656
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 
27657
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 
27658
      {
 
27659
        return 0;
 
27660
       }
 
27661
     else
 
27662
      {
 
27663
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 
27664
               gtk_major_version, gtk_minor_version, gtk_micro_version);
 
27665
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 
27666
               major, minor, micro);
 
27667
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 
27668
        printf("***\n");
 
27669
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
27670
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
27671
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
27672
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
27673
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
27674
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
27675
        printf("*** so that the correct libraries are found at run-time))\n");
 
27676
      }
 
27677
    }
 
27678
  return 1;
 
27679
}
 
27680
 
 
27681
_ACEOF
 
27682
if ac_fn_c_try_run "$LINENO"; then :
 
27683
 
 
27684
else
 
27685
  no_gtk=yes
 
27686
fi
 
27687
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
27688
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
27689
fi
 
27690
 
 
27691
       CFLAGS="$ac_save_CFLAGS"
 
27692
       LIBS="$ac_save_LIBS"
 
27693
     fi
 
27694
  fi
 
27695
  if test "x$no_gtk" = x ; then
 
27696
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
 
27697
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
 
27698
 
 
27699
 
 
27700
pkg_failed=no
 
27701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
 
27702
$as_echo_n "checking for GTHREAD... " >&6; }
 
27703
 
 
27704
if test -n "$PKG_CONFIG"; then
 
27705
    if test -n "$GTHREAD_CFLAGS"; then
 
27706
        pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
 
27707
    else
 
27708
        if test -n "$PKG_CONFIG" && \
 
27709
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
 
27710
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
 
27711
  ac_status=$?
 
27712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
27713
  test $ac_status = 0; }; then
 
27714
  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
 
27715
else
 
27716
  pkg_failed=yes
 
27717
fi
 
27718
    fi
 
27719
else
 
27720
        pkg_failed=untried
 
27721
fi
 
27722
if test -n "$PKG_CONFIG"; then
 
27723
    if test -n "$GTHREAD_LIBS"; then
 
27724
        pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
 
27725
    else
 
27726
        if test -n "$PKG_CONFIG" && \
 
27727
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
 
27728
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
 
27729
  ac_status=$?
 
27730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
27731
  test $ac_status = 0; }; then
 
27732
  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
 
27733
else
 
27734
  pkg_failed=yes
 
27735
fi
 
27736
    fi
 
27737
else
 
27738
        pkg_failed=untried
 
27739
fi
 
27740
 
 
27741
 
 
27742
 
 
27743
if test $pkg_failed = yes; then
 
27744
 
 
27745
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
27746
        _pkg_short_errors_supported=yes
 
27747
else
 
27748
        _pkg_short_errors_supported=no
 
27749
fi
 
27750
        if test $_pkg_short_errors_supported = yes; then
 
27751
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0"`
 
27752
        else
 
27753
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0"`
 
27754
        fi
 
27755
        # Put the nasty error message in config.log where it belongs
 
27756
        echo "$GTHREAD_PKG_ERRORS" >&5
 
27757
 
 
27758
        as_fn_error "Package requirements (gthread-2.0) were not met:
 
27759
 
 
27760
$GTHREAD_PKG_ERRORS
 
27761
 
 
27762
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
27763
installed software in a non-standard prefix.
 
27764
 
 
27765
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
27766
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
27767
See the pkg-config man page for more details.
 
27768
" "$LINENO" 5
 
27769
elif test $pkg_failed = untried; then
 
27770
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
27771
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
27772
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
27773
is in your PATH or set the PKG_CONFIG environment variable to the full
 
27774
path to pkg-config.
 
27775
 
 
27776
Alternatively, you may set the environment variables GTHREAD_CFLAGS
 
27777
and GTHREAD_LIBS to avoid the need to call pkg-config.
 
27778
See the pkg-config man page for more details.
 
27779
 
 
27780
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
27781
See \`config.log' for more details." "$LINENO" 5; }
 
27782
else
 
27783
        GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
 
27784
        GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
 
27785
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
27786
$as_echo "yes" >&6; }
 
27787
 
 
27788
  modinst=yes
 
27789
  MP_gtk2_CFLAGS="$GTK_CFLAGS $GTHREAD_CFLAGS"
 
27790
  MP_gtk2_LIBS="$GTK_LIBS $GTHREAD_LIBS"
 
27791
  if test "x$MINGW32" = "xyes"; then
 
27792
        MP_gtk2_CFLAGS="$MP_gtk2_CFLAGS -mms-bitfields"
 
27793
    MP_gtk2_LIBS="$GTK_LIBS"
 
27794
    MP_gtk2_LDFLAGS="$MP_gtk2_LDFLAGS -mwindows"
 
27795
  fi
 
27796
 
 
27797
fi
 
27798
  else
 
27799
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27800
$as_echo "no" >&6; }
 
27801
     if test "$PKG_CONFIG" = "no" ; then
 
27802
       echo "*** A new enough version of pkg-config was not found."
 
27803
       echo "*** See http://pkgconfig.sourceforge.net"
 
27804
     else
 
27805
       if test -f conf.gtktest ; then
 
27806
        :
 
27807
       else
 
27808
          echo "*** Could not run GTK+ test program, checking why..."
 
27809
          ac_save_CFLAGS="$CFLAGS"
 
27810
          ac_save_LIBS="$LIBS"
 
27811
          CFLAGS="$CFLAGS $GTK_CFLAGS"
 
27812
          LIBS="$LIBS $GTK_LIBS"
 
27813
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27814
/* end confdefs.h.  */
 
27815
 
 
27816
#include <gtk/gtk.h>
 
27817
#include <stdio.h>
 
27818
 
 
27819
int
 
27820
main ()
 
27821
{
 
27822
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
27823
  ;
 
27824
  return 0;
 
27825
}
 
27826
_ACEOF
 
27827
if ac_fn_c_try_link "$LINENO"; then :
 
27828
   echo "*** The test program compiled, but did not run. This usually means"
 
27829
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
27830
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
 
27831
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
27832
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
27833
          echo "*** is required on your system"
 
27834
          echo "***"
 
27835
          echo "*** If you have an old version installed, it is best to remove it, although"
 
27836
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
27837
else
 
27838
   echo "*** The test program failed to compile or link. See the file config.log for the"
 
27839
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
 
27840
fi
 
27841
rm -f core conftest.err conftest.$ac_objext \
 
27842
    conftest$ac_exeext conftest.$ac_ext
 
27843
          CFLAGS="$ac_save_CFLAGS"
 
27844
          LIBS="$ac_save_LIBS"
 
27845
       fi
 
27846
     fi
 
27847
     GTK_CFLAGS=""
 
27848
     GTK_LIBS=""
 
27849
     :
 
27850
  fi
 
27851
 
 
27852
 
 
27853
  rm -f conf.gtktest
 
27854
 
 
27855
 if test "x$modinst" = "xyes"; then
 
27856
  MODINST_TRUE=
 
27857
  MODINST_FALSE='#'
 
27858
else
 
27859
  MODINST_TRUE='#'
 
27860
  MODINST_FALSE=
 
27861
fi
27172
27862
 
27173
27863
 
27174
27864
 
28475
29165
fi
28476
29166
 
28477
29167
 
28478
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28479
 
$as_echo_n "checking return type of signal handlers... " >&6; }
28480
 
if test "${ac_cv_type_signal+set}" = set; then :
28481
 
  $as_echo_n "(cached) " >&6
28482
 
else
28483
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28484
 
/* end confdefs.h.  */
28485
 
#include <sys/types.h>
28486
 
#include <signal.h>
28487
 
 
28488
 
int
28489
 
main ()
28490
 
{
28491
 
return *(signal (0, 0)) (0) == 1;
28492
 
  ;
28493
 
  return 0;
28494
 
}
28495
 
_ACEOF
28496
 
if ac_fn_c_try_compile "$LINENO"; then :
28497
 
  ac_cv_type_signal=int
28498
 
else
28499
 
  ac_cv_type_signal=void
28500
 
fi
28501
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28502
 
fi
28503
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28504
 
$as_echo "$ac_cv_type_signal" >&6; }
28505
 
 
28506
 
cat >>confdefs.h <<_ACEOF
28507
 
#define RETSIGTYPE $ac_cv_type_signal
28508
 
_ACEOF
28509
 
 
28510
 
 
28511
29168
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
28512
29169
if test "x$ac_cv_type_pid_t" = x""yes; then :
28513
29170
 
28881
29538
for ac_func in bind connect fileno flock ftime gethostbyname gethostname \
28882
29539
                getpwuid inet_aton select snooze strcasecmp strcasestr \
28883
29540
                strerror strlcat strlcpy strncasecmp strstr uname usleep \
28884
 
                getline
 
29541
                getline _strcoll stricoll _stricoll strcasecoll
28885
29542
do :
28886
29543
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28887
29544
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29221
29878
 
29222
29879
 
29223
29880
if test x"$MINGW32" = xyes; then
29224
 
  DEFAULT_DATA_PATH=".;data;~/.freeciv;$datadir/freeciv"
 
29881
  DEFAULT_DATA_PATH=".;data;~/.freeciv/$DATASUBDIR;$datadir/freeciv"
 
29882
  DEFAULT_SAVE_PATH=".;~/.freeciv/saves"
 
29883
  DEFAULT_SCENARIO_PATH=".;data/scenario;~/.freeciv/$DATASUBDIR/scenarios;~/.freeciv/scenarios;$datadir/freeciv/scenario"
29225
29884
else
29226
 
  DEFAULT_DATA_PATH=".:data:~/.freeciv:$datadir/freeciv"
 
29885
  DEFAULT_DATA_PATH=".:data:~/.freeciv/$DATASUBDIR:$datadir/freeciv"
 
29886
  DEFAULT_SAVE_PATH=".:~/.freeciv/saves"
 
29887
  DEFAULT_SCENARIO_PATH=".:data/scenario:~/.freeciv/$DATASUBDIR/scenarios:~/.freeciv/scenarios:$datadir/freeciv/scenario"
29227
29888
fi
29228
29889
CPPFLAGS="$CPPFLAGS -DDEFAULT_DATA_PATH=\"\\\"$DEFAULT_DATA_PATH\\\"\""
 
29890
CPPFLAGS="$CPPFLAGS -DDEFAULT_SAVES_PATH=\"\\\"$DEFAULT_SAVES_PATH\\\"\""
 
29891
CPPFLAGS="$CPPFLAGS -DDEFAULT_SCENARIO_PATH=\"\\\"$DEFAULT_SCENARIO_PATH\\\"\""
29229
29892
 
29230
29893
if test -n "$WITH_EFENCE"; then
29231
29894
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
29614
30277
 
29615
30278
 
29616
30279
CFLAGS="$EXTRA_DEBUG_CFLAGS $CFLAGS"
29617
 
CXXFLAGS="$EXTRA_DEBUG_CXXFLAGS $CXXFLAGS"
29618
30280
 
29619
 
CONFIGURE_DEPENDENCIES="$CONFIGURE_DEPENDENCIES \$(top_srcdir)/version.in"
 
30281
CONFIGURE_DEPENDENCIES="$CONFIGURE_DEPENDENCIES \$(top_srcdir)/fc_version"
29620
30282
 
29621
30283
 
29622
30284
 
29630
30292
_ACEOF
29631
30293
 
29632
30294
 
29633
 
cat >>confdefs.h <<_ACEOF
29634
 
#define FC_STORE_CXXFLAGS '$CXXFLAGS'
29635
 
_ACEOF
29636
 
 
29637
 
 
29638
 
ac_config_files="$ac_config_files Makefile data/Makefile data/civclient.dsc data/civserver.dsc data/civserver.room data/hex2t/Makefile data/amplio/Makefile data/buildings/Makefile data/flags/Makefile data/misc/Makefile data/trident/Makefile data/isophex/Makefile data/isotrident/Makefile data/stdsounds/Makefile data/default/Makefile data/civ1/Makefile data/civ2/Makefile data/scenario/Makefile data/nation/Makefile data/themes/Makefile data/themes/gui-gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile data/themes/gui-sdl/Makefile data/themes/gui-sdl/human/Makefile data/wonders/Makefile data/icons/Makefile utility/Makefile utility/ftwl/Makefile dependencies/Makefile dependencies/lua-5.1/Makefile dependencies/lua-5.1/src/Makefile dependencies/tolua-5.1/Makefile dependencies/tolua-5.1/src/Makefile dependencies/tolua-5.1/src/lib/Makefile dependencies/tolua-5.1/src/bin/Makefile common/Makefile common/aicore/Makefile ai/Makefile tests/Makefile win32/Makefile client/Makefile client/agents/Makefile client/include/Makefile client/gui-sdl/Makefile client/gui-gtk-2.0/Makefile client/gui-xaw/Makefile client/gui-win32/Makefile client/gui-ftwl/Makefile client/gui-stub/Makefile server/Makefile server/generator/Makefile server/scripting/Makefile manual/Makefile po/Makefile.in doc/Makefile doc/man/Makefile doc/ca/Makefile doc/de/Makefile doc/fr/Makefile doc/it/Makefile doc/ja/Makefile doc/nl/Makefile doc/sv/Makefile freeciv.spec:bootstrap/freeciv.spec.in bootstrap/undep.sh data/Freeciv client/freeciv.desktop:bootstrap/freeciv.desktop.in server/freeciv-server.desktop:bootstrap/freeciv-server.desktop.in"
 
30295
ac_config_files="$ac_config_files Makefile data/Makefile data/civclient.dsc data/civserver.dsc data/civserver.room data/hex2t/Makefile data/amplio2/Makefile data/buildings/Makefile data/flags/Makefile data/misc/Makefile data/trident/Makefile data/isophex/Makefile data/isotrident/Makefile data/stdsounds/Makefile data/default/Makefile data/multiplayer/Makefile data/experimental/Makefile data/civ1/Makefile data/civ2/Makefile data/scenario/Makefile data/nation/Makefile data/themes/Makefile data/themes/gui-gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile data/themes/gui-sdl/Makefile data/themes/gui-sdl/human/Makefile data/wonders/Makefile data/icons/Makefile utility/Makefile utility/ftwl/Makefile dependencies/Makefile dependencies/lua-5.1/Makefile dependencies/lua-5.1/src/Makefile dependencies/tolua-5.1/Makefile dependencies/tolua-5.1/src/Makefile dependencies/tolua-5.1/src/lib/Makefile dependencies/tolua-5.1/src/bin/Makefile common/Makefile common/aicore/Makefile ai/Makefile tests/Makefile win32/Makefile client/Makefile client/agents/Makefile client/include/Makefile client/gui-sdl/Makefile client/gui-gtk-2.0/Makefile client/gui-xaw/Makefile client/gui-win32/Makefile client/gui-ftwl/Makefile client/gui-stub/Makefile server/Makefile server/advisors/Makefile server/generator/Makefile server/scripting/Makefile manual/Makefile modinst/Makefile po/Makefile.in doc/Makefile doc/man/Makefile doc/man/freeciv-client.6 doc/man/freeciv-server.6 doc/ca/Makefile doc/de/Makefile doc/fr/Makefile doc/it/Makefile doc/ja/Makefile doc/nl/Makefile doc/sv/Makefile freeciv.spec:bootstrap/freeciv.spec.in bootstrap/undep.sh data/Freeciv client/freeciv.desktop:bootstrap/freeciv.desktop.in server/freeciv-server.desktop:bootstrap/freeciv-server.desktop.in"
29639
30296
 
29640
30297
ac_config_files="$ac_config_files civ:bootstrap/civ.in"
29641
30298
 
29819
30476
  as_fn_error "conditional \"CLIENT\" was never defined.
29820
30477
Usually this means the macro was only invoked conditionally." "$LINENO" 5
29821
30478
fi
 
30479
if test -z "${MODINST_TRUE}" && test -z "${MODINST_FALSE}"; then
 
30480
  as_fn_error "conditional \"MODINST\" was never defined.
 
30481
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
30482
fi
29822
30483
if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
29823
30484
  as_fn_error "conditional \"AUDIO_SDL\" was never defined.
29824
30485
Usually this means the macro was only invoked conditionally." "$LINENO" 5
30279
30940
# report actual input values of CONFIG_FILES etc. instead of their
30280
30941
# values after options handling.
30281
30942
ac_log="
30282
 
This file was extended by $as_me, which was
30283
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
30943
This file was extended by freeciv $as_me 2.3.0, which was
 
30944
generated by GNU Autoconf 2.64.  Invocation command line was
30284
30945
 
30285
30946
  CONFIG_FILES    = $CONFIG_FILES
30286
30947
  CONFIG_HEADERS  = $CONFIG_HEADERS
30320
30981
 
30321
30982
  -h, --help       print this help, then exit
30322
30983
  -V, --version    print version number and configuration settings, then exit
30323
 
      --config     print configuration, then exit
30324
30984
  -q, --quiet, --silent
30325
30985
                   do not print progress messages
30326
30986
  -d, --debug      don't remove temporary files
30343
31003
 
30344
31004
_ACEOF
30345
31005
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30346
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30347
31006
ac_cs_version="\\
30348
 
config.status
30349
 
configured by $0, generated by GNU Autoconf 2.65,
30350
 
  with options \\"\$ac_cs_config\\"
 
31007
freeciv config.status 2.3.0
 
31008
configured by $0, generated by GNU Autoconf 2.64,
 
31009
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30351
31010
 
30352
31011
Copyright (C) 2009 Free Software Foundation, Inc.
30353
31012
This config.status script is free software; the Free Software Foundation
30385
31044
    ac_cs_recheck=: ;;
30386
31045
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30387
31046
    $as_echo "$ac_cs_version"; exit ;;
30388
 
  --config | --confi | --conf | --con | --co | --c )
30389
 
    $as_echo "$ac_cs_config"; exit ;;
30390
31047
  --debug | --debu | --deb | --de | --d | -d )
30391
31048
    debug=: ;;
30392
31049
  --file | --fil | --fi | --f )
30840
31497
    "data/civserver.dsc") CONFIG_FILES="$CONFIG_FILES data/civserver.dsc" ;;
30841
31498
    "data/civserver.room") CONFIG_FILES="$CONFIG_FILES data/civserver.room" ;;
30842
31499
    "data/hex2t/Makefile") CONFIG_FILES="$CONFIG_FILES data/hex2t/Makefile" ;;
30843
 
    "data/amplio/Makefile") CONFIG_FILES="$CONFIG_FILES data/amplio/Makefile" ;;
 
31500
    "data/amplio2/Makefile") CONFIG_FILES="$CONFIG_FILES data/amplio2/Makefile" ;;
30844
31501
    "data/buildings/Makefile") CONFIG_FILES="$CONFIG_FILES data/buildings/Makefile" ;;
30845
31502
    "data/flags/Makefile") CONFIG_FILES="$CONFIG_FILES data/flags/Makefile" ;;
30846
31503
    "data/misc/Makefile") CONFIG_FILES="$CONFIG_FILES data/misc/Makefile" ;;
30849
31506
    "data/isotrident/Makefile") CONFIG_FILES="$CONFIG_FILES data/isotrident/Makefile" ;;
30850
31507
    "data/stdsounds/Makefile") CONFIG_FILES="$CONFIG_FILES data/stdsounds/Makefile" ;;
30851
31508
    "data/default/Makefile") CONFIG_FILES="$CONFIG_FILES data/default/Makefile" ;;
 
31509
    "data/multiplayer/Makefile") CONFIG_FILES="$CONFIG_FILES data/multiplayer/Makefile" ;;
 
31510
    "data/experimental/Makefile") CONFIG_FILES="$CONFIG_FILES data/experimental/Makefile" ;;
30852
31511
    "data/civ1/Makefile") CONFIG_FILES="$CONFIG_FILES data/civ1/Makefile" ;;
30853
31512
    "data/civ2/Makefile") CONFIG_FILES="$CONFIG_FILES data/civ2/Makefile" ;;
30854
31513
    "data/scenario/Makefile") CONFIG_FILES="$CONFIG_FILES data/scenario/Makefile" ;;
30903
31562
    "client/gui-ftwl/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-ftwl/Makefile" ;;
30904
31563
    "client/gui-stub/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-stub/Makefile" ;;
30905
31564
    "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
 
31565
    "server/advisors/Makefile") CONFIG_FILES="$CONFIG_FILES server/advisors/Makefile" ;;
30906
31566
    "server/generator/Makefile") CONFIG_FILES="$CONFIG_FILES server/generator/Makefile" ;;
30907
31567
    "server/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES server/scripting/Makefile" ;;
30908
31568
    "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
 
31569
    "modinst/Makefile") CONFIG_FILES="$CONFIG_FILES modinst/Makefile" ;;
30909
31570
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30910
31571
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30911
31572
    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
 
31573
    "doc/man/freeciv-client.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-client.6" ;;
 
31574
    "doc/man/freeciv-server.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-server.6" ;;
30912
31575
    "doc/ca/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ca/Makefile" ;;
30913
31576
    "doc/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/de/Makefile" ;;
30914
31577
    "doc/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;;
31028
31691
t delim
31029
31692
:nl
31030
31693
h
31031
 
s/\(.\{148\}\)..*/\1/
 
31694
s/\(.\{148\}\).*/\1/
31032
31695
t more1
31033
31696
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31034
31697
p
31042
31705
t nl
31043
31706
:delim
31044
31707
h
31045
 
s/\(.\{148\}\)..*/\1/
 
31708
s/\(.\{148\}\).*/\1/
31046
31709
t more2
31047
31710
s/["\\]/\\&/g; s/^/"/; s/$/"/
31048
31711
p
32511
33174
{ $as_echo "$as_me:${as_lineno-$LINENO}:
32512
33175
****************** Configuration Summary ******************
32513
33176
 
32514
 
  Build freeciv client: $client
32515
 
    Debugging support:  $enable_debug
 
33177
  Build freeciv client:  $client
 
33178
    Debugging support:     $enable_debug
 
33179
    Profiling support:     $enable_gprof
32516
33180
 
32517
 
  Client frontends:
 
33181
  Maintained client frontends:
32518
33182
    Gtk-2.0: $gui_gtk2
32519
33183
    SDL:     $gui_sdl
32520
33184
    Xaw:     $gui_xaw
 
33185
    Stub:    $gui_stub
 
33186
 
 
33187
  Not maintained client frontends:
 
33188
  (no guarantee that they even compile)
32521
33189
    Win32:   $gui_win32
32522
33190
    FTWL:    $gui_ftwl
32523
 
    Stub:    $gui_stub
32524
33191
 
32525
 
  Build freeciv server:    $server
 
33192
  Build freeciv server:  $server
32526
33193
    Debugging support:     $enable_debug
 
33194
    Profiling support:     $enable_gprof
32527
33195
    Auth database support: $auth
32528
33196
" >&5
32529
33197
$as_echo "$as_me:
32530
33198
****************** Configuration Summary ******************
32531
33199
 
32532
 
  Build freeciv client: $client
32533
 
    Debugging support:  $enable_debug
 
33200
  Build freeciv client:  $client
 
33201
    Debugging support:     $enable_debug
 
33202
    Profiling support:     $enable_gprof
32534
33203
 
32535
 
  Client frontends:
 
33204
  Maintained client frontends:
32536
33205
    Gtk-2.0: $gui_gtk2
32537
33206
    SDL:     $gui_sdl
32538
33207
    Xaw:     $gui_xaw
 
33208
    Stub:    $gui_stub
 
33209
 
 
33210
  Not maintained client frontends:
 
33211
  (no guarantee that they even compile)
32539
33212
    Win32:   $gui_win32
32540
33213
    FTWL:    $gui_ftwl
32541
 
    Stub:    $gui_stub
32542
33214
 
32543
 
  Build freeciv server:    $server
 
33215
  Build freeciv server:  $server
32544
33216
    Debugging support:     $enable_debug
 
33217
    Profiling support:     $enable_gprof
32545
33218
    Auth database support: $auth
32546
33219
" >&6;}
32547
33220