~vcs-imports/tuxtype/trunk

« back to all changes in this revision

Viewing changes to configure

  • Committer: dbruce-guest
  • Date: 2008-11-24 13:42:10 UTC
  • Revision ID: vcs-imports@canonical.com-20081124134210-owbqr2ral094y8to
Re-ran gettextize to add in-tree libintl (needed for Windows cross-build).
Got crossbuild working again, cleaned up configure.ac and Makefile.am's.
Fixed crashing bug in new word list editing feature that segfaulted if word list not user-writable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
578
578
PACKAGE_STRING='Tux Typing 1.7.0'
579
579
PACKAGE_BUGREPORT='tux4kids-tuxtype-dev@lists.alioth.debian.org'
580
580
 
581
 
ac_unique_file="src/funcs.h"
 
581
ac_unique_file="src/playgame.c"
 
582
ac_unique_file="config.h.in"
582
583
gt_needs=
583
 
ac_default_prefix=/usr/local
584
584
# Factoring default headers for most tests.
585
585
ac_includes_default="\
586
586
#include <stdio.h>
688
688
AMTAR
689
689
am__tar
690
690
am__untar
 
691
NAME_VERSION
691
692
USE_NLS
 
693
GETTEXT_MACRO_VERSION
692
694
MSGFMT
693
695
GMSGFMT
694
696
MSGFMT_015
696
698
XGETTEXT
697
699
XGETTEXT_015
698
700
MSGMERGE
 
701
XGETTEXT_EXTRA_OPTIONS
699
702
CC
700
703
CFLAGS
701
704
LDFLAGS
712
715
CCDEPMODE
713
716
am__fastdepCC_TRUE
714
717
am__fastdepCC_FALSE
715
 
INTL_MACOSX_LIBS
 
718
CPP
 
719
GREP
 
720
EGREP
 
721
GLIBC2
 
722
RANLIB
 
723
CFLAG_VISIBILITY
 
724
HAVE_VISIBILITY
 
725
ALLOCA
 
726
PRI_MACROS_BROKEN
 
727
LIBPTH
 
728
LTLIBPTH
 
729
LIBPTH_PREFIX
 
730
LIBTHREAD
 
731
LTLIBTHREAD
 
732
LIBMULTITHREAD
 
733
LTLIBMULTITHREAD
716
734
LIBICONV
717
735
LTLIBICONV
 
736
INTLBISON
 
737
GLIBC21
 
738
INTL_MACOSX_LIBS
 
739
HAVE_POSIX_PRINTF
 
740
HAVE_ASPRINTF
 
741
HAVE_SNPRINTF
 
742
HAVE_WPRINTF
 
743
WOE32DLL
 
744
WOE32
 
745
WINDRES
 
746
LTLIBC
 
747
BUILD_INCLUDED_LIBINTL
 
748
USE_INCLUDED_LIBINTL
 
749
CATOBJEXT
 
750
DATADIRNAME
 
751
INSTOBJEXT
 
752
GENCAT
 
753
INTLOBJS
 
754
INTL_LIBTOOL_SUFFIX_PREFIX
718
755
INTLLIBS
719
756
LIBINTL
720
757
LTLIBINTL
721
758
POSUB
722
 
LN_S
 
759
YACC
 
760
YFLAGS
723
761
SDL_CONFIG
724
762
SDL_CFLAGS
725
763
SDL_LIBS
726
764
BUILD_MINGW32_TRUE
727
765
BUILD_MINGW32_FALSE
728
 
WINDRES
729
 
CPP
730
 
GREP
731
 
EGREP
 
766
LIBOBJS
 
767
POW_LIB
 
768
PACKAGE_DATA_DIR
732
769
NSI_INSTALL_DIR
733
770
NSI_BUILD_TRUE
734
771
NSI_BUILD_FALSE
735
772
NSI_DLL_DIR
736
773
NSIS
737
 
LIBOBJS
738
774
LTLIBOBJS'
739
775
ac_subst_files=''
740
776
      ac_precious_vars='build_alias
745
781
LDFLAGS
746
782
LIBS
747
783
CPPFLAGS
748
 
CPP'
 
784
CPP
 
785
YACC
 
786
YFLAGS'
749
787
 
750
788
 
751
789
# Initialize some variables set by options.
1329
1367
  --disable-nls           do not use Native Language Support
1330
1368
  --disable-dependency-tracking  speeds up one-time build
1331
1369
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1370
  --enable-threads={posix|solaris|pth|win32}
 
1371
                          specify multithreading API
 
1372
  --disable-threads       build without multithread safety
1332
1373
  --disable-rpath         do not hardcode runtime library paths
1333
1374
  --disable-sdltest       Do not try to compile and run a test SDL program
1334
1375
 
1336
1377
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1337
1378
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1338
1379
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1380
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
 
1381
  --without-libpth-prefix     don't search for libpth in includedir and libdir
1339
1382
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1340
1383
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1384
  --with-included-gettext use the GNU gettext library included here
1341
1385
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1342
1386
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1343
1387
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1355
1399
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356
1400
              you have headers in a nonstandard directory <include dir>
1357
1401
  CPP         C preprocessor
 
1402
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1403
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1404
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1405
              This script will default YFLAGS to the empty string to avoid a
 
1406
              default value of `-d' given by some make applications.
1358
1407
 
1359
1408
Use these variables to override the choices made by `configure' or to help
1360
1409
it to find libraries and programs with nonstandard names/locations.
1789
1838
 
1790
1839
 
1791
1840
 
 
1841
 
 
1842
 
1792
1843
ac_aux_dir=
1793
1844
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1794
1845
  if test -f "$ac_dir/install-sh"; then
1948
1999
  program_prefix=${target_alias}-
1949
2000
 
1950
2001
 
1951
 
 
1952
2002
# Tell Automake not to be as strict about packaging standards for tuxtype
1953
2003
# as it would be for an official Gnu program:
1954
2004
am__api_version='1.10'
2403
2453
 
2404
2454
 
2405
2455
 
 
2456
 
2406
2457
ac_config_headers="$ac_config_headers config.h"
2407
2458
 
2408
2459
 
 
2460
NAME_VERSION=$PACKAGE-$VERSION
 
2461
 
 
2462
 
 
2463
cat >>confdefs.h <<_ACEOF
 
2464
#define PROGRAM_NAME "$PACKAGE"
 
2465
_ACEOF
 
2466
 
 
2467
 
 
2468
 
 
2469
 
2409
2470
# To link gettext library
2410
2471
 
 
2472
cat >>confdefs.h <<\_ACEOF
 
2473
#define _GNU_SOURCE 1
 
2474
_ACEOF
 
2475
 
 
2476
 
 
2477
 
 
2478
 
2411
2479
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2412
2480
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2413
2481
    # Check whether --enable-nls was given.
2423
2491
 
2424
2492
 
2425
2493
 
 
2494
      GETTEXT_MACRO_VERSION=0.17
 
2495
 
 
2496
 
2426
2497
 
2427
2498
 
2428
2499
# Prepare PATH_SEPARATOR.
2698
2769
        test -n "$localedir" || localedir='${datadir}/locale'
2699
2770
 
2700
2771
 
 
2772
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
2773
 
 
2774
 
2701
2775
  ac_config_commands="$ac_config_commands po-directories"
2702
2776
 
2703
2777
 
2704
 
 
2705
 
      if test "X$prefix" = "XNONE"; then
2706
 
    acl_final_prefix="$ac_default_prefix"
2707
 
  else
2708
 
    acl_final_prefix="$prefix"
2709
 
  fi
2710
 
  if test "X$exec_prefix" = "XNONE"; then
2711
 
    acl_final_exec_prefix='${prefix}'
2712
 
  else
2713
 
    acl_final_exec_prefix="$exec_prefix"
2714
 
  fi
2715
 
  acl_save_prefix="$prefix"
2716
 
  prefix="$acl_final_prefix"
2717
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2718
 
  prefix="$acl_save_prefix"
2719
 
 
2720
2778
DEPDIR="${am__leading_dot}deps"
2721
2779
 
2722
2780
ac_config_commands="$ac_config_commands depfiles"
3807
3865
 
3808
3866
 
3809
3867
 
 
3868
ac_ext=c
 
3869
ac_cpp='$CPP $CPPFLAGS'
 
3870
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3871
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3873
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3874
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3875
# On Suns, sometimes $CPP names a directory.
 
3876
if test -n "$CPP" && test -d "$CPP"; then
 
3877
  CPP=
 
3878
fi
 
3879
if test -z "$CPP"; then
 
3880
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3882
else
 
3883
      # Double quotes because CPP needs to be expanded
 
3884
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3885
    do
 
3886
      ac_preproc_ok=false
 
3887
for ac_c_preproc_warn_flag in '' yes
 
3888
do
 
3889
  # Use a header file that comes with gcc, so configuring glibc
 
3890
  # with a fresh cross-compiler works.
 
3891
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3892
  # <limits.h> exists even on freestanding compilers.
 
3893
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3894
  # not just through cpp. "Syntax error" is here to catch this case.
 
3895
  cat >conftest.$ac_ext <<_ACEOF
 
3896
/* confdefs.h.  */
 
3897
_ACEOF
 
3898
cat confdefs.h >>conftest.$ac_ext
 
3899
cat >>conftest.$ac_ext <<_ACEOF
 
3900
/* end confdefs.h.  */
 
3901
#ifdef __STDC__
 
3902
# include <limits.h>
 
3903
#else
 
3904
# include <assert.h>
 
3905
#endif
 
3906
                     Syntax error
 
3907
_ACEOF
 
3908
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3909
case "(($ac_try" in
 
3910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3911
  *) ac_try_echo=$ac_try;;
 
3912
esac
 
3913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3914
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3915
  ac_status=$?
 
3916
  grep -v '^ *+' conftest.er1 >conftest.err
 
3917
  rm -f conftest.er1
 
3918
  cat conftest.err >&5
 
3919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3920
  (exit $ac_status); } >/dev/null && {
 
3921
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3922
         test ! -s conftest.err
 
3923
       }; then
 
3924
  :
 
3925
else
 
3926
  echo "$as_me: failed program was:" >&5
 
3927
sed 's/^/| /' conftest.$ac_ext >&5
 
3928
 
 
3929
  # Broken: fails on valid input.
 
3930
continue
 
3931
fi
 
3932
 
 
3933
rm -f conftest.err conftest.$ac_ext
 
3934
 
 
3935
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3936
  # can be detected and how.
 
3937
  cat >conftest.$ac_ext <<_ACEOF
 
3938
/* confdefs.h.  */
 
3939
_ACEOF
 
3940
cat confdefs.h >>conftest.$ac_ext
 
3941
cat >>conftest.$ac_ext <<_ACEOF
 
3942
/* end confdefs.h.  */
 
3943
#include <ac_nonexistent.h>
 
3944
_ACEOF
 
3945
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3946
case "(($ac_try" in
 
3947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3948
  *) ac_try_echo=$ac_try;;
 
3949
esac
 
3950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3951
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3952
  ac_status=$?
 
3953
  grep -v '^ *+' conftest.er1 >conftest.err
 
3954
  rm -f conftest.er1
 
3955
  cat conftest.err >&5
 
3956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3957
  (exit $ac_status); } >/dev/null && {
 
3958
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3959
         test ! -s conftest.err
 
3960
       }; then
 
3961
  # Broken: success on invalid input.
 
3962
continue
 
3963
else
 
3964
  echo "$as_me: failed program was:" >&5
 
3965
sed 's/^/| /' conftest.$ac_ext >&5
 
3966
 
 
3967
  # Passes both tests.
 
3968
ac_preproc_ok=:
 
3969
break
 
3970
fi
 
3971
 
 
3972
rm -f conftest.err conftest.$ac_ext
 
3973
 
 
3974
done
 
3975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3976
rm -f conftest.err conftest.$ac_ext
 
3977
if $ac_preproc_ok; then
 
3978
  break
 
3979
fi
 
3980
 
 
3981
    done
 
3982
    ac_cv_prog_CPP=$CPP
 
3983
 
 
3984
fi
 
3985
  CPP=$ac_cv_prog_CPP
 
3986
else
 
3987
  ac_cv_prog_CPP=$CPP
 
3988
fi
 
3989
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3990
echo "${ECHO_T}$CPP" >&6; }
 
3991
ac_preproc_ok=false
 
3992
for ac_c_preproc_warn_flag in '' yes
 
3993
do
 
3994
  # Use a header file that comes with gcc, so configuring glibc
 
3995
  # with a fresh cross-compiler works.
 
3996
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3997
  # <limits.h> exists even on freestanding compilers.
 
3998
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3999
  # not just through cpp. "Syntax error" is here to catch this case.
 
4000
  cat >conftest.$ac_ext <<_ACEOF
 
4001
/* confdefs.h.  */
 
4002
_ACEOF
 
4003
cat confdefs.h >>conftest.$ac_ext
 
4004
cat >>conftest.$ac_ext <<_ACEOF
 
4005
/* end confdefs.h.  */
 
4006
#ifdef __STDC__
 
4007
# include <limits.h>
 
4008
#else
 
4009
# include <assert.h>
 
4010
#endif
 
4011
                     Syntax error
 
4012
_ACEOF
 
4013
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4014
case "(($ac_try" in
 
4015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4016
  *) ac_try_echo=$ac_try;;
 
4017
esac
 
4018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4019
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4020
  ac_status=$?
 
4021
  grep -v '^ *+' conftest.er1 >conftest.err
 
4022
  rm -f conftest.er1
 
4023
  cat conftest.err >&5
 
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4025
  (exit $ac_status); } >/dev/null && {
 
4026
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4027
         test ! -s conftest.err
 
4028
       }; then
 
4029
  :
 
4030
else
 
4031
  echo "$as_me: failed program was:" >&5
 
4032
sed 's/^/| /' conftest.$ac_ext >&5
 
4033
 
 
4034
  # Broken: fails on valid input.
 
4035
continue
 
4036
fi
 
4037
 
 
4038
rm -f conftest.err conftest.$ac_ext
 
4039
 
 
4040
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4041
  # can be detected and how.
 
4042
  cat >conftest.$ac_ext <<_ACEOF
 
4043
/* confdefs.h.  */
 
4044
_ACEOF
 
4045
cat confdefs.h >>conftest.$ac_ext
 
4046
cat >>conftest.$ac_ext <<_ACEOF
 
4047
/* end confdefs.h.  */
 
4048
#include <ac_nonexistent.h>
 
4049
_ACEOF
 
4050
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4051
case "(($ac_try" in
 
4052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4053
  *) ac_try_echo=$ac_try;;
 
4054
esac
 
4055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4056
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4057
  ac_status=$?
 
4058
  grep -v '^ *+' conftest.er1 >conftest.err
 
4059
  rm -f conftest.er1
 
4060
  cat conftest.err >&5
 
4061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4062
  (exit $ac_status); } >/dev/null && {
 
4063
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4064
         test ! -s conftest.err
 
4065
       }; then
 
4066
  # Broken: success on invalid input.
 
4067
continue
 
4068
else
 
4069
  echo "$as_me: failed program was:" >&5
 
4070
sed 's/^/| /' conftest.$ac_ext >&5
 
4071
 
 
4072
  # Passes both tests.
 
4073
ac_preproc_ok=:
 
4074
break
 
4075
fi
 
4076
 
 
4077
rm -f conftest.err conftest.$ac_ext
 
4078
 
 
4079
done
 
4080
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4081
rm -f conftest.err conftest.$ac_ext
 
4082
if $ac_preproc_ok; then
 
4083
  :
 
4084
else
 
4085
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4086
See \`config.log' for more details." >&5
 
4087
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4088
See \`config.log' for more details." >&2;}
 
4089
   { (exit 1); exit 1; }; }
 
4090
fi
 
4091
 
 
4092
ac_ext=c
 
4093
ac_cpp='$CPP $CPPFLAGS'
 
4094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4097
 
 
4098
 
 
4099
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4100
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4101
if test "${ac_cv_path_GREP+set}" = set; then
 
4102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4103
else
 
4104
  # Extract the first word of "grep ggrep" to use in msg output
 
4105
if test -z "$GREP"; then
 
4106
set dummy grep ggrep; ac_prog_name=$2
 
4107
if test "${ac_cv_path_GREP+set}" = set; then
 
4108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4109
else
 
4110
  ac_path_GREP_found=false
 
4111
# Loop through the user's path and test for each of PROGNAME-LIST
 
4112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4113
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4114
do
 
4115
  IFS=$as_save_IFS
 
4116
  test -z "$as_dir" && as_dir=.
 
4117
  for ac_prog in grep ggrep; do
 
4118
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4119
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4120
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4121
    # Check for GNU ac_path_GREP and select it if it is found.
 
4122
  # Check for GNU $ac_path_GREP
 
4123
case `"$ac_path_GREP" --version 2>&1` in
 
4124
*GNU*)
 
4125
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4126
*)
 
4127
  ac_count=0
 
4128
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4129
  while :
 
4130
  do
 
4131
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4132
    mv "conftest.tmp" "conftest.in"
 
4133
    cp "conftest.in" "conftest.nl"
 
4134
    echo 'GREP' >> "conftest.nl"
 
4135
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4136
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4137
    ac_count=`expr $ac_count + 1`
 
4138
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4139
      # Best one so far, save it but keep looking for a better one
 
4140
      ac_cv_path_GREP="$ac_path_GREP"
 
4141
      ac_path_GREP_max=$ac_count
 
4142
    fi
 
4143
    # 10*(2^10) chars as input seems more than enough
 
4144
    test $ac_count -gt 10 && break
 
4145
  done
 
4146
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4147
esac
 
4148
 
 
4149
 
 
4150
    $ac_path_GREP_found && break 3
 
4151
  done
 
4152
done
 
4153
 
 
4154
done
 
4155
IFS=$as_save_IFS
 
4156
 
 
4157
 
 
4158
fi
 
4159
 
 
4160
GREP="$ac_cv_path_GREP"
 
4161
if test -z "$GREP"; then
 
4162
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4163
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4164
   { (exit 1); exit 1; }; }
 
4165
fi
 
4166
 
 
4167
else
 
4168
  ac_cv_path_GREP=$GREP
 
4169
fi
 
4170
 
 
4171
 
 
4172
fi
 
4173
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4174
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4175
 GREP="$ac_cv_path_GREP"
 
4176
 
 
4177
 
 
4178
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4179
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4180
if test "${ac_cv_path_EGREP+set}" = set; then
 
4181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4182
else
 
4183
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4184
   then ac_cv_path_EGREP="$GREP -E"
 
4185
   else
 
4186
     # Extract the first word of "egrep" to use in msg output
 
4187
if test -z "$EGREP"; then
 
4188
set dummy egrep; ac_prog_name=$2
 
4189
if test "${ac_cv_path_EGREP+set}" = set; then
 
4190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4191
else
 
4192
  ac_path_EGREP_found=false
 
4193
# Loop through the user's path and test for each of PROGNAME-LIST
 
4194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4195
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4196
do
 
4197
  IFS=$as_save_IFS
 
4198
  test -z "$as_dir" && as_dir=.
 
4199
  for ac_prog in egrep; do
 
4200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4201
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4202
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4203
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4204
  # Check for GNU $ac_path_EGREP
 
4205
case `"$ac_path_EGREP" --version 2>&1` in
 
4206
*GNU*)
 
4207
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4208
*)
 
4209
  ac_count=0
 
4210
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4211
  while :
 
4212
  do
 
4213
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4214
    mv "conftest.tmp" "conftest.in"
 
4215
    cp "conftest.in" "conftest.nl"
 
4216
    echo 'EGREP' >> "conftest.nl"
 
4217
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4218
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4219
    ac_count=`expr $ac_count + 1`
 
4220
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4221
      # Best one so far, save it but keep looking for a better one
 
4222
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4223
      ac_path_EGREP_max=$ac_count
 
4224
    fi
 
4225
    # 10*(2^10) chars as input seems more than enough
 
4226
    test $ac_count -gt 10 && break
 
4227
  done
 
4228
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4229
esac
 
4230
 
 
4231
 
 
4232
    $ac_path_EGREP_found && break 3
 
4233
  done
 
4234
done
 
4235
 
 
4236
done
 
4237
IFS=$as_save_IFS
 
4238
 
 
4239
 
 
4240
fi
 
4241
 
 
4242
EGREP="$ac_cv_path_EGREP"
 
4243
if test -z "$EGREP"; then
 
4244
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4245
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4246
   { (exit 1); exit 1; }; }
 
4247
fi
 
4248
 
 
4249
else
 
4250
  ac_cv_path_EGREP=$EGREP
 
4251
fi
 
4252
 
 
4253
 
 
4254
   fi
 
4255
fi
 
4256
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4257
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4258
 EGREP="$ac_cv_path_EGREP"
 
4259
 
 
4260
 
 
4261
 
 
4262
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
 
4263
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
 
4264
if test "${ac_cv_gnu_library_2+set}" = set; then
 
4265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4266
else
 
4267
  cat >conftest.$ac_ext <<_ACEOF
 
4268
/* confdefs.h.  */
 
4269
_ACEOF
 
4270
cat confdefs.h >>conftest.$ac_ext
 
4271
cat >>conftest.$ac_ext <<_ACEOF
 
4272
/* end confdefs.h.  */
 
4273
 
 
4274
#include <features.h>
 
4275
#ifdef __GNU_LIBRARY__
 
4276
 #if (__GLIBC__ >= 2)
 
4277
  Lucky GNU user
 
4278
 #endif
 
4279
#endif
 
4280
 
 
4281
_ACEOF
 
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4283
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
4284
  ac_cv_gnu_library_2=yes
 
4285
else
 
4286
  ac_cv_gnu_library_2=no
 
4287
fi
 
4288
rm -f conftest*
 
4289
 
 
4290
 
 
4291
 
 
4292
fi
 
4293
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
 
4294
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
 
4295
 
 
4296
    GLIBC2="$ac_cv_gnu_library_2"
 
4297
 
 
4298
 
 
4299
if test -n "$ac_tool_prefix"; then
 
4300
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4301
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4304
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4306
else
 
4307
  if test -n "$RANLIB"; then
 
4308
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4309
else
 
4310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4311
for as_dir in $PATH
 
4312
do
 
4313
  IFS=$as_save_IFS
 
4314
  test -z "$as_dir" && as_dir=.
 
4315
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4317
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4318
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4319
    break 2
 
4320
  fi
 
4321
done
 
4322
done
 
4323
IFS=$as_save_IFS
 
4324
 
 
4325
fi
 
4326
fi
 
4327
RANLIB=$ac_cv_prog_RANLIB
 
4328
if test -n "$RANLIB"; then
 
4329
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4330
echo "${ECHO_T}$RANLIB" >&6; }
 
4331
else
 
4332
  { echo "$as_me:$LINENO: result: no" >&5
 
4333
echo "${ECHO_T}no" >&6; }
 
4334
fi
 
4335
 
 
4336
 
 
4337
fi
 
4338
if test -z "$ac_cv_prog_RANLIB"; then
 
4339
  ac_ct_RANLIB=$RANLIB
 
4340
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4341
set dummy ranlib; ac_word=$2
 
4342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4344
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4346
else
 
4347
  if test -n "$ac_ct_RANLIB"; then
 
4348
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4349
else
 
4350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4351
for as_dir in $PATH
 
4352
do
 
4353
  IFS=$as_save_IFS
 
4354
  test -z "$as_dir" && as_dir=.
 
4355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4357
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4359
    break 2
 
4360
  fi
 
4361
done
 
4362
done
 
4363
IFS=$as_save_IFS
 
4364
 
 
4365
fi
 
4366
fi
 
4367
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4368
if test -n "$ac_ct_RANLIB"; then
 
4369
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4370
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
4371
else
 
4372
  { echo "$as_me:$LINENO: result: no" >&5
 
4373
echo "${ECHO_T}no" >&6; }
 
4374
fi
 
4375
 
 
4376
  if test "x$ac_ct_RANLIB" = x; then
 
4377
    RANLIB=":"
 
4378
  else
 
4379
    case $cross_compiling:$ac_tool_warned in
 
4380
yes:)
 
4381
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4382
whose name does not start with the host triplet.  If you think this
 
4383
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4384
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4385
whose name does not start with the host triplet.  If you think this
 
4386
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4387
ac_tool_warned=yes ;;
 
4388
esac
 
4389
    RANLIB=$ac_ct_RANLIB
 
4390
  fi
 
4391
else
 
4392
  RANLIB="$ac_cv_prog_RANLIB"
 
4393
fi
 
4394
 
 
4395
 
 
4396
 
 
4397
  CFLAG_VISIBILITY=
 
4398
  HAVE_VISIBILITY=0
 
4399
  if test -n "$GCC"; then
 
4400
    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
 
4401
echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
 
4402
    if test "${gl_cv_cc_visibility+set}" = set; then
 
4403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4404
else
 
4405
 
 
4406
      gl_save_CFLAGS="$CFLAGS"
 
4407
      CFLAGS="$CFLAGS -fvisibility=hidden"
 
4408
      cat >conftest.$ac_ext <<_ACEOF
 
4409
/* confdefs.h.  */
 
4410
_ACEOF
 
4411
cat confdefs.h >>conftest.$ac_ext
 
4412
cat >>conftest.$ac_ext <<_ACEOF
 
4413
/* end confdefs.h.  */
 
4414
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
 
4415
         extern __attribute__((__visibility__("default"))) int exportedvar;
 
4416
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
 
4417
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
 
4418
int
 
4419
main ()
 
4420
{
 
4421
 
 
4422
  ;
 
4423
  return 0;
 
4424
}
 
4425
_ACEOF
 
4426
rm -f conftest.$ac_objext
 
4427
if { (ac_try="$ac_compile"
 
4428
case "(($ac_try" in
 
4429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4430
  *) ac_try_echo=$ac_try;;
 
4431
esac
 
4432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4433
  (eval "$ac_compile") 2>conftest.er1
 
4434
  ac_status=$?
 
4435
  grep -v '^ *+' conftest.er1 >conftest.err
 
4436
  rm -f conftest.er1
 
4437
  cat conftest.err >&5
 
4438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4439
  (exit $ac_status); } && {
 
4440
         test -z "$ac_c_werror_flag" ||
 
4441
         test ! -s conftest.err
 
4442
       } && test -s conftest.$ac_objext; then
 
4443
  gl_cv_cc_visibility=yes
 
4444
else
 
4445
  echo "$as_me: failed program was:" >&5
 
4446
sed 's/^/| /' conftest.$ac_ext >&5
 
4447
 
 
4448
        gl_cv_cc_visibility=no
 
4449
fi
 
4450
 
 
4451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4452
      CFLAGS="$gl_save_CFLAGS"
 
4453
fi
 
4454
 
 
4455
    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
 
4456
echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
 
4457
    if test $gl_cv_cc_visibility = yes; then
 
4458
      CFLAG_VISIBILITY="-fvisibility=hidden"
 
4459
      HAVE_VISIBILITY=1
 
4460
    fi
 
4461
  fi
 
4462
 
 
4463
 
 
4464
 
 
4465
cat >>confdefs.h <<_ACEOF
 
4466
#define HAVE_VISIBILITY $HAVE_VISIBILITY
 
4467
_ACEOF
 
4468
 
 
4469
 
 
4470
{ echo "$as_me:$LINENO: checking for inline" >&5
 
4471
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
4472
if test "${ac_cv_c_inline+set}" = set; then
 
4473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4474
else
 
4475
  ac_cv_c_inline=no
 
4476
for ac_kw in inline __inline__ __inline; do
 
4477
  cat >conftest.$ac_ext <<_ACEOF
 
4478
/* confdefs.h.  */
 
4479
_ACEOF
 
4480
cat confdefs.h >>conftest.$ac_ext
 
4481
cat >>conftest.$ac_ext <<_ACEOF
 
4482
/* end confdefs.h.  */
 
4483
#ifndef __cplusplus
 
4484
typedef int foo_t;
 
4485
static $ac_kw foo_t static_foo () {return 0; }
 
4486
$ac_kw foo_t foo () {return 0; }
 
4487
#endif
 
4488
 
 
4489
_ACEOF
 
4490
rm -f conftest.$ac_objext
 
4491
if { (ac_try="$ac_compile"
 
4492
case "(($ac_try" in
 
4493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4494
  *) ac_try_echo=$ac_try;;
 
4495
esac
 
4496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4497
  (eval "$ac_compile") 2>conftest.er1
 
4498
  ac_status=$?
 
4499
  grep -v '^ *+' conftest.er1 >conftest.err
 
4500
  rm -f conftest.er1
 
4501
  cat conftest.err >&5
 
4502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4503
  (exit $ac_status); } && {
 
4504
         test -z "$ac_c_werror_flag" ||
 
4505
         test ! -s conftest.err
 
4506
       } && test -s conftest.$ac_objext; then
 
4507
  ac_cv_c_inline=$ac_kw
 
4508
else
 
4509
  echo "$as_me: failed program was:" >&5
 
4510
sed 's/^/| /' conftest.$ac_ext >&5
 
4511
 
 
4512
 
 
4513
fi
 
4514
 
 
4515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4516
  test "$ac_cv_c_inline" != no && break
 
4517
done
 
4518
 
 
4519
fi
 
4520
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4521
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
4522
 
 
4523
 
 
4524
case $ac_cv_c_inline in
 
4525
  inline | yes) ;;
 
4526
  *)
 
4527
    case $ac_cv_c_inline in
 
4528
      no) ac_val=;;
 
4529
      *) ac_val=$ac_cv_c_inline;;
 
4530
    esac
 
4531
    cat >>confdefs.h <<_ACEOF
 
4532
#ifndef __cplusplus
 
4533
#define inline $ac_val
 
4534
#endif
 
4535
_ACEOF
 
4536
    ;;
 
4537
esac
 
4538
 
 
4539
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4540
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4541
if test "${ac_cv_header_stdc+set}" = set; then
 
4542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4543
else
 
4544
  cat >conftest.$ac_ext <<_ACEOF
 
4545
/* confdefs.h.  */
 
4546
_ACEOF
 
4547
cat confdefs.h >>conftest.$ac_ext
 
4548
cat >>conftest.$ac_ext <<_ACEOF
 
4549
/* end confdefs.h.  */
 
4550
#include <stdlib.h>
 
4551
#include <stdarg.h>
 
4552
#include <string.h>
 
4553
#include <float.h>
 
4554
 
 
4555
int
 
4556
main ()
 
4557
{
 
4558
 
 
4559
  ;
 
4560
  return 0;
 
4561
}
 
4562
_ACEOF
 
4563
rm -f conftest.$ac_objext
 
4564
if { (ac_try="$ac_compile"
 
4565
case "(($ac_try" in
 
4566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4567
  *) ac_try_echo=$ac_try;;
 
4568
esac
 
4569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4570
  (eval "$ac_compile") 2>conftest.er1
 
4571
  ac_status=$?
 
4572
  grep -v '^ *+' conftest.er1 >conftest.err
 
4573
  rm -f conftest.er1
 
4574
  cat conftest.err >&5
 
4575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4576
  (exit $ac_status); } && {
 
4577
         test -z "$ac_c_werror_flag" ||
 
4578
         test ! -s conftest.err
 
4579
       } && test -s conftest.$ac_objext; then
 
4580
  ac_cv_header_stdc=yes
 
4581
else
 
4582
  echo "$as_me: failed program was:" >&5
 
4583
sed 's/^/| /' conftest.$ac_ext >&5
 
4584
 
 
4585
        ac_cv_header_stdc=no
 
4586
fi
 
4587
 
 
4588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4589
 
 
4590
if test $ac_cv_header_stdc = yes; then
 
4591
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4592
  cat >conftest.$ac_ext <<_ACEOF
 
4593
/* confdefs.h.  */
 
4594
_ACEOF
 
4595
cat confdefs.h >>conftest.$ac_ext
 
4596
cat >>conftest.$ac_ext <<_ACEOF
 
4597
/* end confdefs.h.  */
 
4598
#include <string.h>
 
4599
 
 
4600
_ACEOF
 
4601
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4602
  $EGREP "memchr" >/dev/null 2>&1; then
 
4603
  :
 
4604
else
 
4605
  ac_cv_header_stdc=no
 
4606
fi
 
4607
rm -f conftest*
 
4608
 
 
4609
fi
 
4610
 
 
4611
if test $ac_cv_header_stdc = yes; then
 
4612
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4613
  cat >conftest.$ac_ext <<_ACEOF
 
4614
/* confdefs.h.  */
 
4615
_ACEOF
 
4616
cat confdefs.h >>conftest.$ac_ext
 
4617
cat >>conftest.$ac_ext <<_ACEOF
 
4618
/* end confdefs.h.  */
 
4619
#include <stdlib.h>
 
4620
 
 
4621
_ACEOF
 
4622
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4623
  $EGREP "free" >/dev/null 2>&1; then
 
4624
  :
 
4625
else
 
4626
  ac_cv_header_stdc=no
 
4627
fi
 
4628
rm -f conftest*
 
4629
 
 
4630
fi
 
4631
 
 
4632
if test $ac_cv_header_stdc = yes; then
 
4633
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4634
  if test "$cross_compiling" = yes; then
 
4635
  :
 
4636
else
 
4637
  cat >conftest.$ac_ext <<_ACEOF
 
4638
/* confdefs.h.  */
 
4639
_ACEOF
 
4640
cat confdefs.h >>conftest.$ac_ext
 
4641
cat >>conftest.$ac_ext <<_ACEOF
 
4642
/* end confdefs.h.  */
 
4643
#include <ctype.h>
 
4644
#include <stdlib.h>
 
4645
#if ((' ' & 0x0FF) == 0x020)
 
4646
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4647
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4648
#else
 
4649
# define ISLOWER(c) \
 
4650
                   (('a' <= (c) && (c) <= 'i') \
 
4651
                     || ('j' <= (c) && (c) <= 'r') \
 
4652
                     || ('s' <= (c) && (c) <= 'z'))
 
4653
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4654
#endif
 
4655
 
 
4656
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4657
int
 
4658
main ()
 
4659
{
 
4660
  int i;
 
4661
  for (i = 0; i < 256; i++)
 
4662
    if (XOR (islower (i), ISLOWER (i))
 
4663
        || toupper (i) != TOUPPER (i))
 
4664
      return 2;
 
4665
  return 0;
 
4666
}
 
4667
_ACEOF
 
4668
rm -f conftest$ac_exeext
 
4669
if { (ac_try="$ac_link"
 
4670
case "(($ac_try" in
 
4671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4672
  *) ac_try_echo=$ac_try;;
 
4673
esac
 
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4675
  (eval "$ac_link") 2>&5
 
4676
  ac_status=$?
 
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4678
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4679
  { (case "(($ac_try" in
 
4680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4681
  *) ac_try_echo=$ac_try;;
 
4682
esac
 
4683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4684
  (eval "$ac_try") 2>&5
 
4685
  ac_status=$?
 
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4687
  (exit $ac_status); }; }; then
 
4688
  :
 
4689
else
 
4690
  echo "$as_me: program exited with status $ac_status" >&5
 
4691
echo "$as_me: failed program was:" >&5
 
4692
sed 's/^/| /' conftest.$ac_ext >&5
 
4693
 
 
4694
( exit $ac_status )
 
4695
ac_cv_header_stdc=no
 
4696
fi
 
4697
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4698
fi
 
4699
 
 
4700
 
 
4701
fi
 
4702
fi
 
4703
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4704
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4705
if test $ac_cv_header_stdc = yes; then
 
4706
 
 
4707
cat >>confdefs.h <<\_ACEOF
 
4708
#define STDC_HEADERS 1
 
4709
_ACEOF
 
4710
 
 
4711
fi
 
4712
 
 
4713
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4714
 
 
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4724
                  inttypes.h stdint.h unistd.h
 
4725
do
 
4726
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4727
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4728
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4729
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4731
else
 
4732
  cat >conftest.$ac_ext <<_ACEOF
 
4733
/* confdefs.h.  */
 
4734
_ACEOF
 
4735
cat confdefs.h >>conftest.$ac_ext
 
4736
cat >>conftest.$ac_ext <<_ACEOF
 
4737
/* end confdefs.h.  */
 
4738
$ac_includes_default
 
4739
 
 
4740
#include <$ac_header>
 
4741
_ACEOF
 
4742
rm -f conftest.$ac_objext
 
4743
if { (ac_try="$ac_compile"
 
4744
case "(($ac_try" in
 
4745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4746
  *) ac_try_echo=$ac_try;;
 
4747
esac
 
4748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4749
  (eval "$ac_compile") 2>conftest.er1
 
4750
  ac_status=$?
 
4751
  grep -v '^ *+' conftest.er1 >conftest.err
 
4752
  rm -f conftest.er1
 
4753
  cat conftest.err >&5
 
4754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4755
  (exit $ac_status); } && {
 
4756
         test -z "$ac_c_werror_flag" ||
 
4757
         test ! -s conftest.err
 
4758
       } && test -s conftest.$ac_objext; then
 
4759
  eval "$as_ac_Header=yes"
 
4760
else
 
4761
  echo "$as_me: failed program was:" >&5
 
4762
sed 's/^/| /' conftest.$ac_ext >&5
 
4763
 
 
4764
        eval "$as_ac_Header=no"
 
4765
fi
 
4766
 
 
4767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4768
fi
 
4769
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4770
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4771
echo "${ECHO_T}$ac_res" >&6; }
 
4772
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4773
  cat >>confdefs.h <<_ACEOF
 
4774
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4775
_ACEOF
 
4776
 
 
4777
fi
 
4778
 
 
4779
done
 
4780
 
 
4781
 
 
4782
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
4783
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
4784
if test "${ac_cv_type_size_t+set}" = set; then
 
4785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4786
else
 
4787
  cat >conftest.$ac_ext <<_ACEOF
 
4788
/* confdefs.h.  */
 
4789
_ACEOF
 
4790
cat confdefs.h >>conftest.$ac_ext
 
4791
cat >>conftest.$ac_ext <<_ACEOF
 
4792
/* end confdefs.h.  */
 
4793
$ac_includes_default
 
4794
typedef size_t ac__type_new_;
 
4795
int
 
4796
main ()
 
4797
{
 
4798
if ((ac__type_new_ *) 0)
 
4799
  return 0;
 
4800
if (sizeof (ac__type_new_))
 
4801
  return 0;
 
4802
  ;
 
4803
  return 0;
 
4804
}
 
4805
_ACEOF
 
4806
rm -f conftest.$ac_objext
 
4807
if { (ac_try="$ac_compile"
 
4808
case "(($ac_try" in
 
4809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4810
  *) ac_try_echo=$ac_try;;
 
4811
esac
 
4812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4813
  (eval "$ac_compile") 2>conftest.er1
 
4814
  ac_status=$?
 
4815
  grep -v '^ *+' conftest.er1 >conftest.err
 
4816
  rm -f conftest.er1
 
4817
  cat conftest.err >&5
 
4818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4819
  (exit $ac_status); } && {
 
4820
         test -z "$ac_c_werror_flag" ||
 
4821
         test ! -s conftest.err
 
4822
       } && test -s conftest.$ac_objext; then
 
4823
  ac_cv_type_size_t=yes
 
4824
else
 
4825
  echo "$as_me: failed program was:" >&5
 
4826
sed 's/^/| /' conftest.$ac_ext >&5
 
4827
 
 
4828
        ac_cv_type_size_t=no
 
4829
fi
 
4830
 
 
4831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4832
fi
 
4833
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4834
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
4835
if test $ac_cv_type_size_t = yes; then
 
4836
  :
 
4837
else
 
4838
 
 
4839
cat >>confdefs.h <<_ACEOF
 
4840
#define size_t unsigned int
 
4841
_ACEOF
 
4842
 
 
4843
fi
 
4844
 
 
4845
 
 
4846
  { echo "$as_me:$LINENO: checking for stdint.h" >&5
 
4847
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
 
4848
if test "${gl_cv_header_stdint_h+set}" = set; then
 
4849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4850
else
 
4851
  cat >conftest.$ac_ext <<_ACEOF
 
4852
/* confdefs.h.  */
 
4853
_ACEOF
 
4854
cat confdefs.h >>conftest.$ac_ext
 
4855
cat >>conftest.$ac_ext <<_ACEOF
 
4856
/* end confdefs.h.  */
 
4857
#include <sys/types.h>
 
4858
#include <stdint.h>
 
4859
int
 
4860
main ()
 
4861
{
 
4862
uintmax_t i = (uintmax_t) -1; return !i;
 
4863
  ;
 
4864
  return 0;
 
4865
}
 
4866
_ACEOF
 
4867
rm -f conftest.$ac_objext
 
4868
if { (ac_try="$ac_compile"
 
4869
case "(($ac_try" in
 
4870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4871
  *) ac_try_echo=$ac_try;;
 
4872
esac
 
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4874
  (eval "$ac_compile") 2>conftest.er1
 
4875
  ac_status=$?
 
4876
  grep -v '^ *+' conftest.er1 >conftest.err
 
4877
  rm -f conftest.er1
 
4878
  cat conftest.err >&5
 
4879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4880
  (exit $ac_status); } && {
 
4881
         test -z "$ac_c_werror_flag" ||
 
4882
         test ! -s conftest.err
 
4883
       } && test -s conftest.$ac_objext; then
 
4884
  gl_cv_header_stdint_h=yes
 
4885
else
 
4886
  echo "$as_me: failed program was:" >&5
 
4887
sed 's/^/| /' conftest.$ac_ext >&5
 
4888
 
 
4889
        gl_cv_header_stdint_h=no
 
4890
fi
 
4891
 
 
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4893
fi
 
4894
{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
4895
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
 
4896
  if test $gl_cv_header_stdint_h = yes; then
 
4897
 
 
4898
cat >>confdefs.h <<_ACEOF
 
4899
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
4900
_ACEOF
 
4901
 
 
4902
  fi
 
4903
 
 
4904
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
4905
# for constant arguments.  Useless!
 
4906
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
4907
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
4908
if test "${ac_cv_working_alloca_h+set}" = set; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
else
 
4911
  cat >conftest.$ac_ext <<_ACEOF
 
4912
/* confdefs.h.  */
 
4913
_ACEOF
 
4914
cat confdefs.h >>conftest.$ac_ext
 
4915
cat >>conftest.$ac_ext <<_ACEOF
 
4916
/* end confdefs.h.  */
 
4917
#include <alloca.h>
 
4918
int
 
4919
main ()
 
4920
{
 
4921
char *p = (char *) alloca (2 * sizeof (int));
 
4922
                          if (p) return 0;
 
4923
  ;
 
4924
  return 0;
 
4925
}
 
4926
_ACEOF
 
4927
rm -f conftest.$ac_objext conftest$ac_exeext
 
4928
if { (ac_try="$ac_link"
 
4929
case "(($ac_try" in
 
4930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4931
  *) ac_try_echo=$ac_try;;
 
4932
esac
 
4933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4934
  (eval "$ac_link") 2>conftest.er1
 
4935
  ac_status=$?
 
4936
  grep -v '^ *+' conftest.er1 >conftest.err
 
4937
  rm -f conftest.er1
 
4938
  cat conftest.err >&5
 
4939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4940
  (exit $ac_status); } && {
 
4941
         test -z "$ac_c_werror_flag" ||
 
4942
         test ! -s conftest.err
 
4943
       } && test -s conftest$ac_exeext &&
 
4944
       $as_test_x conftest$ac_exeext; then
 
4945
  ac_cv_working_alloca_h=yes
 
4946
else
 
4947
  echo "$as_me: failed program was:" >&5
 
4948
sed 's/^/| /' conftest.$ac_ext >&5
 
4949
 
 
4950
        ac_cv_working_alloca_h=no
 
4951
fi
 
4952
 
 
4953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4954
      conftest$ac_exeext conftest.$ac_ext
 
4955
fi
 
4956
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
4957
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
4958
if test $ac_cv_working_alloca_h = yes; then
 
4959
 
 
4960
cat >>confdefs.h <<\_ACEOF
 
4961
#define HAVE_ALLOCA_H 1
 
4962
_ACEOF
 
4963
 
 
4964
fi
 
4965
 
 
4966
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
4967
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
4968
if test "${ac_cv_func_alloca_works+set}" = set; then
 
4969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4970
else
 
4971
  cat >conftest.$ac_ext <<_ACEOF
 
4972
/* confdefs.h.  */
 
4973
_ACEOF
 
4974
cat confdefs.h >>conftest.$ac_ext
 
4975
cat >>conftest.$ac_ext <<_ACEOF
 
4976
/* end confdefs.h.  */
 
4977
#ifdef __GNUC__
 
4978
# define alloca __builtin_alloca
 
4979
#else
 
4980
# ifdef _MSC_VER
 
4981
#  include <malloc.h>
 
4982
#  define alloca _alloca
 
4983
# else
 
4984
#  ifdef HAVE_ALLOCA_H
 
4985
#   include <alloca.h>
 
4986
#  else
 
4987
#   ifdef _AIX
 
4988
 #pragma alloca
 
4989
#   else
 
4990
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
4991
char *alloca ();
 
4992
#    endif
 
4993
#   endif
 
4994
#  endif
 
4995
# endif
 
4996
#endif
 
4997
 
 
4998
int
 
4999
main ()
 
5000
{
 
5001
char *p = (char *) alloca (1);
 
5002
                                    if (p) return 0;
 
5003
  ;
 
5004
  return 0;
 
5005
}
 
5006
_ACEOF
 
5007
rm -f conftest.$ac_objext conftest$ac_exeext
 
5008
if { (ac_try="$ac_link"
 
5009
case "(($ac_try" in
 
5010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5011
  *) ac_try_echo=$ac_try;;
 
5012
esac
 
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5014
  (eval "$ac_link") 2>conftest.er1
 
5015
  ac_status=$?
 
5016
  grep -v '^ *+' conftest.er1 >conftest.err
 
5017
  rm -f conftest.er1
 
5018
  cat conftest.err >&5
 
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5020
  (exit $ac_status); } && {
 
5021
         test -z "$ac_c_werror_flag" ||
 
5022
         test ! -s conftest.err
 
5023
       } && test -s conftest$ac_exeext &&
 
5024
       $as_test_x conftest$ac_exeext; then
 
5025
  ac_cv_func_alloca_works=yes
 
5026
else
 
5027
  echo "$as_me: failed program was:" >&5
 
5028
sed 's/^/| /' conftest.$ac_ext >&5
 
5029
 
 
5030
        ac_cv_func_alloca_works=no
 
5031
fi
 
5032
 
 
5033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5034
      conftest$ac_exeext conftest.$ac_ext
 
5035
fi
 
5036
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
5037
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
5038
 
 
5039
if test $ac_cv_func_alloca_works = yes; then
 
5040
 
 
5041
cat >>confdefs.h <<\_ACEOF
 
5042
#define HAVE_ALLOCA 1
 
5043
_ACEOF
 
5044
 
 
5045
else
 
5046
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
5047
# that cause trouble.  Some versions do not even contain alloca or
 
5048
# contain a buggy version.  If you still want to use their alloca,
 
5049
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
5050
 
 
5051
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
5052
 
 
5053
cat >>confdefs.h <<\_ACEOF
 
5054
#define C_ALLOCA 1
 
5055
_ACEOF
 
5056
 
 
5057
 
 
5058
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
5059
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
5060
if test "${ac_cv_os_cray+set}" = set; then
 
5061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5062
else
 
5063
  cat >conftest.$ac_ext <<_ACEOF
 
5064
/* confdefs.h.  */
 
5065
_ACEOF
 
5066
cat confdefs.h >>conftest.$ac_ext
 
5067
cat >>conftest.$ac_ext <<_ACEOF
 
5068
/* end confdefs.h.  */
 
5069
#if defined CRAY && ! defined CRAY2
 
5070
webecray
 
5071
#else
 
5072
wenotbecray
 
5073
#endif
 
5074
 
 
5075
_ACEOF
 
5076
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5077
  $EGREP "webecray" >/dev/null 2>&1; then
 
5078
  ac_cv_os_cray=yes
 
5079
else
 
5080
  ac_cv_os_cray=no
 
5081
fi
 
5082
rm -f conftest*
 
5083
 
 
5084
fi
 
5085
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
5086
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
5087
if test $ac_cv_os_cray = yes; then
 
5088
  for ac_func in _getb67 GETB67 getb67; do
 
5089
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5090
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5091
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5092
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5094
else
 
5095
  cat >conftest.$ac_ext <<_ACEOF
 
5096
/* confdefs.h.  */
 
5097
_ACEOF
 
5098
cat confdefs.h >>conftest.$ac_ext
 
5099
cat >>conftest.$ac_ext <<_ACEOF
 
5100
/* end confdefs.h.  */
 
5101
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5102
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5103
#define $ac_func innocuous_$ac_func
 
5104
 
 
5105
/* System header to define __stub macros and hopefully few prototypes,
 
5106
    which can conflict with char $ac_func (); below.
 
5107
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5108
    <limits.h> exists even on freestanding compilers.  */
 
5109
 
 
5110
#ifdef __STDC__
 
5111
# include <limits.h>
 
5112
#else
 
5113
# include <assert.h>
 
5114
#endif
 
5115
 
 
5116
#undef $ac_func
 
5117
 
 
5118
/* Override any GCC internal prototype to avoid an error.
 
5119
   Use char because int might match the return type of a GCC
 
5120
   builtin and then its argument prototype would still apply.  */
 
5121
#ifdef __cplusplus
 
5122
extern "C"
 
5123
#endif
 
5124
char $ac_func ();
 
5125
/* The GNU C library defines this for functions which it implements
 
5126
    to always fail with ENOSYS.  Some functions are actually named
 
5127
    something starting with __ and the normal name is an alias.  */
 
5128
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5129
choke me
 
5130
#endif
 
5131
 
 
5132
int
 
5133
main ()
 
5134
{
 
5135
return $ac_func ();
 
5136
  ;
 
5137
  return 0;
 
5138
}
 
5139
_ACEOF
 
5140
rm -f conftest.$ac_objext conftest$ac_exeext
 
5141
if { (ac_try="$ac_link"
 
5142
case "(($ac_try" in
 
5143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5144
  *) ac_try_echo=$ac_try;;
 
5145
esac
 
5146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5147
  (eval "$ac_link") 2>conftest.er1
 
5148
  ac_status=$?
 
5149
  grep -v '^ *+' conftest.er1 >conftest.err
 
5150
  rm -f conftest.er1
 
5151
  cat conftest.err >&5
 
5152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5153
  (exit $ac_status); } && {
 
5154
         test -z "$ac_c_werror_flag" ||
 
5155
         test ! -s conftest.err
 
5156
       } && test -s conftest$ac_exeext &&
 
5157
       $as_test_x conftest$ac_exeext; then
 
5158
  eval "$as_ac_var=yes"
 
5159
else
 
5160
  echo "$as_me: failed program was:" >&5
 
5161
sed 's/^/| /' conftest.$ac_ext >&5
 
5162
 
 
5163
        eval "$as_ac_var=no"
 
5164
fi
 
5165
 
 
5166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5167
      conftest$ac_exeext conftest.$ac_ext
 
5168
fi
 
5169
ac_res=`eval echo '${'$as_ac_var'}'`
 
5170
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5171
echo "${ECHO_T}$ac_res" >&6; }
 
5172
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5173
 
 
5174
cat >>confdefs.h <<_ACEOF
 
5175
#define CRAY_STACKSEG_END $ac_func
 
5176
_ACEOF
 
5177
 
 
5178
    break
 
5179
fi
 
5180
 
 
5181
  done
 
5182
fi
 
5183
 
 
5184
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
5185
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
5186
if test "${ac_cv_c_stack_direction+set}" = set; then
 
5187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5188
else
 
5189
  if test "$cross_compiling" = yes; then
 
5190
  ac_cv_c_stack_direction=0
 
5191
else
 
5192
  cat >conftest.$ac_ext <<_ACEOF
 
5193
/* confdefs.h.  */
 
5194
_ACEOF
 
5195
cat confdefs.h >>conftest.$ac_ext
 
5196
cat >>conftest.$ac_ext <<_ACEOF
 
5197
/* end confdefs.h.  */
 
5198
$ac_includes_default
 
5199
int
 
5200
find_stack_direction ()
 
5201
{
 
5202
  static char *addr = 0;
 
5203
  auto char dummy;
 
5204
  if (addr == 0)
 
5205
    {
 
5206
      addr = &dummy;
 
5207
      return find_stack_direction ();
 
5208
    }
 
5209
  else
 
5210
    return (&dummy > addr) ? 1 : -1;
 
5211
}
 
5212
 
 
5213
int
 
5214
main ()
 
5215
{
 
5216
  return find_stack_direction () < 0;
 
5217
}
 
5218
_ACEOF
 
5219
rm -f conftest$ac_exeext
 
5220
if { (ac_try="$ac_link"
 
5221
case "(($ac_try" in
 
5222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5223
  *) ac_try_echo=$ac_try;;
 
5224
esac
 
5225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5226
  (eval "$ac_link") 2>&5
 
5227
  ac_status=$?
 
5228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5229
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5230
  { (case "(($ac_try" in
 
5231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5232
  *) ac_try_echo=$ac_try;;
 
5233
esac
 
5234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5235
  (eval "$ac_try") 2>&5
 
5236
  ac_status=$?
 
5237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5238
  (exit $ac_status); }; }; then
 
5239
  ac_cv_c_stack_direction=1
 
5240
else
 
5241
  echo "$as_me: program exited with status $ac_status" >&5
 
5242
echo "$as_me: failed program was:" >&5
 
5243
sed 's/^/| /' conftest.$ac_ext >&5
 
5244
 
 
5245
( exit $ac_status )
 
5246
ac_cv_c_stack_direction=-1
 
5247
fi
 
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5249
fi
 
5250
 
 
5251
 
 
5252
fi
 
5253
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
5254
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
5255
 
 
5256
cat >>confdefs.h <<_ACEOF
 
5257
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
5258
_ACEOF
 
5259
 
 
5260
 
 
5261
fi
 
5262
 
 
5263
 
 
5264
 
 
5265
for ac_header in stdlib.h unistd.h
 
5266
do
 
5267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5268
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5269
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5273
fi
 
5274
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5275
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5276
echo "${ECHO_T}$ac_res" >&6; }
 
5277
else
 
5278
  # Is the header compilable?
 
5279
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5281
cat >conftest.$ac_ext <<_ACEOF
 
5282
/* confdefs.h.  */
 
5283
_ACEOF
 
5284
cat confdefs.h >>conftest.$ac_ext
 
5285
cat >>conftest.$ac_ext <<_ACEOF
 
5286
/* end confdefs.h.  */
 
5287
$ac_includes_default
 
5288
#include <$ac_header>
 
5289
_ACEOF
 
5290
rm -f conftest.$ac_objext
 
5291
if { (ac_try="$ac_compile"
 
5292
case "(($ac_try" in
 
5293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5294
  *) ac_try_echo=$ac_try;;
 
5295
esac
 
5296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5297
  (eval "$ac_compile") 2>conftest.er1
 
5298
  ac_status=$?
 
5299
  grep -v '^ *+' conftest.er1 >conftest.err
 
5300
  rm -f conftest.er1
 
5301
  cat conftest.err >&5
 
5302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5303
  (exit $ac_status); } && {
 
5304
         test -z "$ac_c_werror_flag" ||
 
5305
         test ! -s conftest.err
 
5306
       } && test -s conftest.$ac_objext; then
 
5307
  ac_header_compiler=yes
 
5308
else
 
5309
  echo "$as_me: failed program was:" >&5
 
5310
sed 's/^/| /' conftest.$ac_ext >&5
 
5311
 
 
5312
        ac_header_compiler=no
 
5313
fi
 
5314
 
 
5315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5317
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5318
 
 
5319
# Is the header present?
 
5320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5322
cat >conftest.$ac_ext <<_ACEOF
 
5323
/* confdefs.h.  */
 
5324
_ACEOF
 
5325
cat confdefs.h >>conftest.$ac_ext
 
5326
cat >>conftest.$ac_ext <<_ACEOF
 
5327
/* end confdefs.h.  */
 
5328
#include <$ac_header>
 
5329
_ACEOF
 
5330
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5331
case "(($ac_try" in
 
5332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5333
  *) ac_try_echo=$ac_try;;
 
5334
esac
 
5335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5336
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5337
  ac_status=$?
 
5338
  grep -v '^ *+' conftest.er1 >conftest.err
 
5339
  rm -f conftest.er1
 
5340
  cat conftest.err >&5
 
5341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5342
  (exit $ac_status); } >/dev/null && {
 
5343
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5344
         test ! -s conftest.err
 
5345
       }; then
 
5346
  ac_header_preproc=yes
 
5347
else
 
5348
  echo "$as_me: failed program was:" >&5
 
5349
sed 's/^/| /' conftest.$ac_ext >&5
 
5350
 
 
5351
  ac_header_preproc=no
 
5352
fi
 
5353
 
 
5354
rm -f conftest.err conftest.$ac_ext
 
5355
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5356
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5357
 
 
5358
# So?  What about this header?
 
5359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5360
  yes:no: )
 
5361
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5362
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5363
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5364
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5365
    ac_header_preproc=yes
 
5366
    ;;
 
5367
  no:yes:* )
 
5368
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5369
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5370
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5371
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5372
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5373
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5374
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5375
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5376
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5378
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5379
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5380
    ( cat <<\_ASBOX
 
5381
## ----------------------------------------------------------- ##
 
5382
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
5383
## ----------------------------------------------------------- ##
 
5384
_ASBOX
 
5385
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5386
    ;;
 
5387
esac
 
5388
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5392
else
 
5393
  eval "$as_ac_Header=\$ac_header_preproc"
 
5394
fi
 
5395
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5396
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5397
echo "${ECHO_T}$ac_res" >&6; }
 
5398
 
 
5399
fi
 
5400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5401
  cat >>confdefs.h <<_ACEOF
 
5402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5403
_ACEOF
 
5404
 
 
5405
fi
 
5406
 
 
5407
done
 
5408
 
 
5409
 
 
5410
for ac_func in getpagesize
 
5411
do
 
5412
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5413
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5414
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5415
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5417
else
 
5418
  cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5425
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5426
#define $ac_func innocuous_$ac_func
 
5427
 
 
5428
/* System header to define __stub macros and hopefully few prototypes,
 
5429
    which can conflict with char $ac_func (); below.
 
5430
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5431
    <limits.h> exists even on freestanding compilers.  */
 
5432
 
 
5433
#ifdef __STDC__
 
5434
# include <limits.h>
 
5435
#else
 
5436
# include <assert.h>
 
5437
#endif
 
5438
 
 
5439
#undef $ac_func
 
5440
 
 
5441
/* Override any GCC internal prototype to avoid an error.
 
5442
   Use char because int might match the return type of a GCC
 
5443
   builtin and then its argument prototype would still apply.  */
 
5444
#ifdef __cplusplus
 
5445
extern "C"
 
5446
#endif
 
5447
char $ac_func ();
 
5448
/* The GNU C library defines this for functions which it implements
 
5449
    to always fail with ENOSYS.  Some functions are actually named
 
5450
    something starting with __ and the normal name is an alias.  */
 
5451
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5452
choke me
 
5453
#endif
 
5454
 
 
5455
int
 
5456
main ()
 
5457
{
 
5458
return $ac_func ();
 
5459
  ;
 
5460
  return 0;
 
5461
}
 
5462
_ACEOF
 
5463
rm -f conftest.$ac_objext conftest$ac_exeext
 
5464
if { (ac_try="$ac_link"
 
5465
case "(($ac_try" in
 
5466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5467
  *) ac_try_echo=$ac_try;;
 
5468
esac
 
5469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5470
  (eval "$ac_link") 2>conftest.er1
 
5471
  ac_status=$?
 
5472
  grep -v '^ *+' conftest.er1 >conftest.err
 
5473
  rm -f conftest.er1
 
5474
  cat conftest.err >&5
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); } && {
 
5477
         test -z "$ac_c_werror_flag" ||
 
5478
         test ! -s conftest.err
 
5479
       } && test -s conftest$ac_exeext &&
 
5480
       $as_test_x conftest$ac_exeext; then
 
5481
  eval "$as_ac_var=yes"
 
5482
else
 
5483
  echo "$as_me: failed program was:" >&5
 
5484
sed 's/^/| /' conftest.$ac_ext >&5
 
5485
 
 
5486
        eval "$as_ac_var=no"
 
5487
fi
 
5488
 
 
5489
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5490
      conftest$ac_exeext conftest.$ac_ext
 
5491
fi
 
5492
ac_res=`eval echo '${'$as_ac_var'}'`
 
5493
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5494
echo "${ECHO_T}$ac_res" >&6; }
 
5495
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5496
  cat >>confdefs.h <<_ACEOF
 
5497
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5498
_ACEOF
 
5499
 
 
5500
fi
 
5501
done
 
5502
 
 
5503
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
5504
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
 
5505
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5507
else
 
5508
  if test "$cross_compiling" = yes; then
 
5509
  ac_cv_func_mmap_fixed_mapped=no
 
5510
else
 
5511
  cat >conftest.$ac_ext <<_ACEOF
 
5512
/* confdefs.h.  */
 
5513
_ACEOF
 
5514
cat confdefs.h >>conftest.$ac_ext
 
5515
cat >>conftest.$ac_ext <<_ACEOF
 
5516
/* end confdefs.h.  */
 
5517
$ac_includes_default
 
5518
/* malloc might have been renamed as rpl_malloc. */
 
5519
#undef malloc
 
5520
 
 
5521
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5522
   Here is a matrix of mmap possibilities:
 
5523
        mmap private not fixed
 
5524
        mmap private fixed at somewhere currently unmapped
 
5525
        mmap private fixed at somewhere already mapped
 
5526
        mmap shared not fixed
 
5527
        mmap shared fixed at somewhere currently unmapped
 
5528
        mmap shared fixed at somewhere already mapped
 
5529
   For private mappings, we should verify that changes cannot be read()
 
5530
   back from the file, nor mmap's back from the file at a different
 
5531
   address.  (There have been systems where private was not correctly
 
5532
   implemented like the infamous i386 svr4.0, and systems where the
 
5533
   VM page cache was not coherent with the file system buffer cache
 
5534
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5535
   For shared mappings, we should conversely verify that changes get
 
5536
   propagated back to all the places they're supposed to be.
 
5537
 
 
5538
   Grep wants private fixed already mapped.
 
5539
   The main things grep needs to know about mmap are:
 
5540
   * does it exist and is it safe to write into the mmap'd area
 
5541
   * how to use it (BSD variants)  */
 
5542
 
 
5543
#include <fcntl.h>
 
5544
#include <sys/mman.h>
 
5545
 
 
5546
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
5547
char *malloc ();
 
5548
#endif
 
5549
 
 
5550
/* This mess was copied from the GNU getpagesize.h.  */
 
5551
#ifndef HAVE_GETPAGESIZE
 
5552
/* Assume that all systems that can run configure have sys/param.h.  */
 
5553
# ifndef HAVE_SYS_PARAM_H
 
5554
#  define HAVE_SYS_PARAM_H 1
 
5555
# endif
 
5556
 
 
5557
# ifdef _SC_PAGESIZE
 
5558
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5559
# else /* no _SC_PAGESIZE */
 
5560
#  ifdef HAVE_SYS_PARAM_H
 
5561
#   include <sys/param.h>
 
5562
#   ifdef EXEC_PAGESIZE
 
5563
#    define getpagesize() EXEC_PAGESIZE
 
5564
#   else /* no EXEC_PAGESIZE */
 
5565
#    ifdef NBPG
 
5566
#     define getpagesize() NBPG * CLSIZE
 
5567
#     ifndef CLSIZE
 
5568
#      define CLSIZE 1
 
5569
#     endif /* no CLSIZE */
 
5570
#    else /* no NBPG */
 
5571
#     ifdef NBPC
 
5572
#      define getpagesize() NBPC
 
5573
#     else /* no NBPC */
 
5574
#      ifdef PAGESIZE
 
5575
#       define getpagesize() PAGESIZE
 
5576
#      endif /* PAGESIZE */
 
5577
#     endif /* no NBPC */
 
5578
#    endif /* no NBPG */
 
5579
#   endif /* no EXEC_PAGESIZE */
 
5580
#  else /* no HAVE_SYS_PARAM_H */
 
5581
#   define getpagesize() 8192   /* punt totally */
 
5582
#  endif /* no HAVE_SYS_PARAM_H */
 
5583
# endif /* no _SC_PAGESIZE */
 
5584
 
 
5585
#endif /* no HAVE_GETPAGESIZE */
 
5586
 
 
5587
int
 
5588
main ()
 
5589
{
 
5590
  char *data, *data2, *data3;
 
5591
  int i, pagesize;
 
5592
  int fd;
 
5593
 
 
5594
  pagesize = getpagesize ();
 
5595
 
 
5596
  /* First, make a file with some known garbage in it. */
 
5597
  data = (char *) malloc (pagesize);
 
5598
  if (!data)
 
5599
    return 1;
 
5600
  for (i = 0; i < pagesize; ++i)
 
5601
    *(data + i) = rand ();
 
5602
  umask (0);
 
5603
  fd = creat ("conftest.mmap", 0600);
 
5604
  if (fd < 0)
 
5605
    return 1;
 
5606
  if (write (fd, data, pagesize) != pagesize)
 
5607
    return 1;
 
5608
  close (fd);
 
5609
 
 
5610
  /* Next, try to mmap the file at a fixed address which already has
 
5611
     something else allocated at it.  If we can, also make sure that
 
5612
     we see the same garbage.  */
 
5613
  fd = open ("conftest.mmap", O_RDWR);
 
5614
  if (fd < 0)
 
5615
    return 1;
 
5616
  data2 = (char *) malloc (2 * pagesize);
 
5617
  if (!data2)
 
5618
    return 1;
 
5619
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
 
5620
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5621
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5622
    return 1;
 
5623
  for (i = 0; i < pagesize; ++i)
 
5624
    if (*(data + i) != *(data2 + i))
 
5625
      return 1;
 
5626
 
 
5627
  /* Finally, make sure that changes to the mapped area do not
 
5628
     percolate back to the file as seen by read().  (This is a bug on
 
5629
     some variants of i386 svr4.0.)  */
 
5630
  for (i = 0; i < pagesize; ++i)
 
5631
    *(data2 + i) = *(data2 + i) + 1;
 
5632
  data3 = (char *) malloc (pagesize);
 
5633
  if (!data3)
 
5634
    return 1;
 
5635
  if (read (fd, data3, pagesize) != pagesize)
 
5636
    return 1;
 
5637
  for (i = 0; i < pagesize; ++i)
 
5638
    if (*(data + i) != *(data3 + i))
 
5639
      return 1;
 
5640
  close (fd);
 
5641
  return 0;
 
5642
}
 
5643
_ACEOF
 
5644
rm -f conftest$ac_exeext
 
5645
if { (ac_try="$ac_link"
 
5646
case "(($ac_try" in
 
5647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5648
  *) ac_try_echo=$ac_try;;
 
5649
esac
 
5650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5651
  (eval "$ac_link") 2>&5
 
5652
  ac_status=$?
 
5653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5654
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5655
  { (case "(($ac_try" in
 
5656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5657
  *) ac_try_echo=$ac_try;;
 
5658
esac
 
5659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5660
  (eval "$ac_try") 2>&5
 
5661
  ac_status=$?
 
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5663
  (exit $ac_status); }; }; then
 
5664
  ac_cv_func_mmap_fixed_mapped=yes
 
5665
else
 
5666
  echo "$as_me: program exited with status $ac_status" >&5
 
5667
echo "$as_me: failed program was:" >&5
 
5668
sed 's/^/| /' conftest.$ac_ext >&5
 
5669
 
 
5670
( exit $ac_status )
 
5671
ac_cv_func_mmap_fixed_mapped=no
 
5672
fi
 
5673
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5674
fi
 
5675
 
 
5676
 
 
5677
fi
 
5678
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5679
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
 
5680
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5681
 
 
5682
cat >>confdefs.h <<\_ACEOF
 
5683
#define HAVE_MMAP 1
 
5684
_ACEOF
 
5685
 
 
5686
fi
 
5687
rm -f conftest.mmap
 
5688
 
 
5689
 
 
5690
 
 
5691
  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
5692
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
 
5693
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
5694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5695
else
 
5696
 
 
5697
      gt_cv_int_divbyzero_sigfpe=
 
5698
      case "$host_os" in
 
5699
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
 
5700
          # On MacOS X 10.2 or newer, just assume the same as when cross-
 
5701
          # compiling. If we were to perform the real test, 1 Crash Report
 
5702
          # dialog window would pop up.
 
5703
          case "$host_cpu" in
 
5704
            i[34567]86 | x86_64)
 
5705
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
 
5706
          esac
 
5707
          ;;
 
5708
      esac
 
5709
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
 
5710
        if test "$cross_compiling" = yes; then
 
5711
 
 
5712
            # Guess based on the CPU.
 
5713
            case "$host_cpu" in
 
5714
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
 
5715
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
5716
              *)
 
5717
                gt_cv_int_divbyzero_sigfpe="guessing no";;
 
5718
            esac
 
5719
 
 
5720
else
 
5721
  cat >conftest.$ac_ext <<_ACEOF
 
5722
/* confdefs.h.  */
 
5723
_ACEOF
 
5724
cat confdefs.h >>conftest.$ac_ext
 
5725
cat >>conftest.$ac_ext <<_ACEOF
 
5726
/* end confdefs.h.  */
 
5727
 
 
5728
#include <stdlib.h>
 
5729
#include <signal.h>
 
5730
 
 
5731
static void
 
5732
sigfpe_handler (int sig)
 
5733
{
 
5734
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
5735
  exit (sig != SIGFPE);
 
5736
}
 
5737
 
 
5738
int x = 1;
 
5739
int y = 0;
 
5740
int z;
 
5741
int nan;
 
5742
 
 
5743
int main ()
 
5744
{
 
5745
  signal (SIGFPE, sigfpe_handler);
 
5746
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
5747
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
5748
  signal (SIGTRAP, sigfpe_handler);
 
5749
#endif
 
5750
/* Linux/SPARC yields signal SIGILL.  */
 
5751
#if defined (__sparc__) && defined (__linux__)
 
5752
  signal (SIGILL, sigfpe_handler);
 
5753
#endif
 
5754
 
 
5755
  z = x / y;
 
5756
  nan = y / y;
 
5757
  exit (1);
 
5758
}
 
5759
 
 
5760
_ACEOF
 
5761
rm -f conftest$ac_exeext
 
5762
if { (ac_try="$ac_link"
 
5763
case "(($ac_try" in
 
5764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5765
  *) ac_try_echo=$ac_try;;
 
5766
esac
 
5767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5768
  (eval "$ac_link") 2>&5
 
5769
  ac_status=$?
 
5770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5771
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5772
  { (case "(($ac_try" in
 
5773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5774
  *) ac_try_echo=$ac_try;;
 
5775
esac
 
5776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5777
  (eval "$ac_try") 2>&5
 
5778
  ac_status=$?
 
5779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5780
  (exit $ac_status); }; }; then
 
5781
  gt_cv_int_divbyzero_sigfpe=yes
 
5782
else
 
5783
  echo "$as_me: program exited with status $ac_status" >&5
 
5784
echo "$as_me: failed program was:" >&5
 
5785
sed 's/^/| /' conftest.$ac_ext >&5
 
5786
 
 
5787
( exit $ac_status )
 
5788
gt_cv_int_divbyzero_sigfpe=no
 
5789
fi
 
5790
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5791
fi
 
5792
 
 
5793
 
 
5794
      fi
 
5795
 
 
5796
fi
 
5797
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
5798
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
 
5799
  case "$gt_cv_int_divbyzero_sigfpe" in
 
5800
    *yes) value=1;;
 
5801
    *) value=0;;
 
5802
  esac
 
5803
 
 
5804
cat >>confdefs.h <<_ACEOF
 
5805
#define INTDIV0_RAISES_SIGFPE $value
 
5806
_ACEOF
 
5807
 
 
5808
 
 
5809
 
 
5810
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
5811
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
5812
if test "${gl_cv_header_inttypes_h+set}" = set; then
 
5813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5814
else
 
5815
  cat >conftest.$ac_ext <<_ACEOF
 
5816
/* confdefs.h.  */
 
5817
_ACEOF
 
5818
cat confdefs.h >>conftest.$ac_ext
 
5819
cat >>conftest.$ac_ext <<_ACEOF
 
5820
/* end confdefs.h.  */
 
5821
#include <sys/types.h>
 
5822
#include <inttypes.h>
 
5823
int
 
5824
main ()
 
5825
{
 
5826
uintmax_t i = (uintmax_t) -1; return !i;
 
5827
  ;
 
5828
  return 0;
 
5829
}
 
5830
_ACEOF
 
5831
rm -f conftest.$ac_objext
 
5832
if { (ac_try="$ac_compile"
 
5833
case "(($ac_try" in
 
5834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5835
  *) ac_try_echo=$ac_try;;
 
5836
esac
 
5837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5838
  (eval "$ac_compile") 2>conftest.er1
 
5839
  ac_status=$?
 
5840
  grep -v '^ *+' conftest.er1 >conftest.err
 
5841
  rm -f conftest.er1
 
5842
  cat conftest.err >&5
 
5843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5844
  (exit $ac_status); } && {
 
5845
         test -z "$ac_c_werror_flag" ||
 
5846
         test ! -s conftest.err
 
5847
       } && test -s conftest.$ac_objext; then
 
5848
  gl_cv_header_inttypes_h=yes
 
5849
else
 
5850
  echo "$as_me: failed program was:" >&5
 
5851
sed 's/^/| /' conftest.$ac_ext >&5
 
5852
 
 
5853
        gl_cv_header_inttypes_h=no
 
5854
fi
 
5855
 
 
5856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5857
fi
 
5858
{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
5859
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
 
5860
  if test $gl_cv_header_inttypes_h = yes; then
 
5861
 
 
5862
cat >>confdefs.h <<_ACEOF
 
5863
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
5864
_ACEOF
 
5865
 
 
5866
  fi
 
5867
 
 
5868
 
 
5869
  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
5870
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
 
5871
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
5872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5873
else
 
5874
  cat >conftest.$ac_ext <<_ACEOF
 
5875
/* confdefs.h.  */
 
5876
_ACEOF
 
5877
cat confdefs.h >>conftest.$ac_ext
 
5878
cat >>conftest.$ac_ext <<_ACEOF
 
5879
/* end confdefs.h.  */
 
5880
unsigned long long int ull = 18446744073709551615ULL;
 
5881
            typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
 
5882
                           ? 1 : -1)];
 
5883
           int i = 63;
 
5884
int
 
5885
main ()
 
5886
{
 
5887
unsigned long long int ullmax = 18446744073709551615ull;
 
5888
            return (ull << 63 | ull >> 63 | ull << i | ull >> i
 
5889
                    | ullmax / ull | ullmax % ull);
 
5890
  ;
 
5891
  return 0;
 
5892
}
 
5893
_ACEOF
 
5894
rm -f conftest.$ac_objext conftest$ac_exeext
 
5895
if { (ac_try="$ac_link"
 
5896
case "(($ac_try" in
 
5897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5898
  *) ac_try_echo=$ac_try;;
 
5899
esac
 
5900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5901
  (eval "$ac_link") 2>conftest.er1
 
5902
  ac_status=$?
 
5903
  grep -v '^ *+' conftest.er1 >conftest.err
 
5904
  rm -f conftest.er1
 
5905
  cat conftest.err >&5
 
5906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5907
  (exit $ac_status); } && {
 
5908
         test -z "$ac_c_werror_flag" ||
 
5909
         test ! -s conftest.err
 
5910
       } && test -s conftest$ac_exeext &&
 
5911
       $as_test_x conftest$ac_exeext; then
 
5912
  ac_cv_type_unsigned_long_long_int=yes
 
5913
else
 
5914
  echo "$as_me: failed program was:" >&5
 
5915
sed 's/^/| /' conftest.$ac_ext >&5
 
5916
 
 
5917
        ac_cv_type_unsigned_long_long_int=no
 
5918
fi
 
5919
 
 
5920
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5921
      conftest$ac_exeext conftest.$ac_ext
 
5922
fi
 
5923
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
5924
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
 
5925
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
5926
 
 
5927
cat >>confdefs.h <<\_ACEOF
 
5928
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
5929
_ACEOF
 
5930
 
 
5931
  fi
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
5937
 
 
5938
    test $ac_cv_type_unsigned_long_long_int = yes \
 
5939
      && ac_type='unsigned long long' \
 
5940
      || ac_type='unsigned long'
 
5941
 
 
5942
cat >>confdefs.h <<_ACEOF
 
5943
#define uintmax_t $ac_type
 
5944
_ACEOF
 
5945
 
 
5946
  else
 
5947
 
 
5948
cat >>confdefs.h <<\_ACEOF
 
5949
#define HAVE_UINTMAX_T 1
 
5950
_ACEOF
 
5951
 
 
5952
  fi
 
5953
 
 
5954
 
 
5955
 
 
5956
for ac_header in inttypes.h
 
5957
do
 
5958
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5959
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5960
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5962
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5964
fi
 
5965
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5966
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5967
echo "${ECHO_T}$ac_res" >&6; }
 
5968
else
 
5969
  # Is the header compilable?
 
5970
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5971
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5972
cat >conftest.$ac_ext <<_ACEOF
 
5973
/* confdefs.h.  */
 
5974
_ACEOF
 
5975
cat confdefs.h >>conftest.$ac_ext
 
5976
cat >>conftest.$ac_ext <<_ACEOF
 
5977
/* end confdefs.h.  */
 
5978
$ac_includes_default
 
5979
#include <$ac_header>
 
5980
_ACEOF
 
5981
rm -f conftest.$ac_objext
 
5982
if { (ac_try="$ac_compile"
 
5983
case "(($ac_try" in
 
5984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5985
  *) ac_try_echo=$ac_try;;
 
5986
esac
 
5987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5988
  (eval "$ac_compile") 2>conftest.er1
 
5989
  ac_status=$?
 
5990
  grep -v '^ *+' conftest.er1 >conftest.err
 
5991
  rm -f conftest.er1
 
5992
  cat conftest.err >&5
 
5993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5994
  (exit $ac_status); } && {
 
5995
         test -z "$ac_c_werror_flag" ||
 
5996
         test ! -s conftest.err
 
5997
       } && test -s conftest.$ac_objext; then
 
5998
  ac_header_compiler=yes
 
5999
else
 
6000
  echo "$as_me: failed program was:" >&5
 
6001
sed 's/^/| /' conftest.$ac_ext >&5
 
6002
 
 
6003
        ac_header_compiler=no
 
6004
fi
 
6005
 
 
6006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6007
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6008
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6009
 
 
6010
# Is the header present?
 
6011
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6012
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
6013
cat >conftest.$ac_ext <<_ACEOF
 
6014
/* confdefs.h.  */
 
6015
_ACEOF
 
6016
cat confdefs.h >>conftest.$ac_ext
 
6017
cat >>conftest.$ac_ext <<_ACEOF
 
6018
/* end confdefs.h.  */
 
6019
#include <$ac_header>
 
6020
_ACEOF
 
6021
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6022
case "(($ac_try" in
 
6023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6024
  *) ac_try_echo=$ac_try;;
 
6025
esac
 
6026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6027
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6028
  ac_status=$?
 
6029
  grep -v '^ *+' conftest.er1 >conftest.err
 
6030
  rm -f conftest.er1
 
6031
  cat conftest.err >&5
 
6032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6033
  (exit $ac_status); } >/dev/null && {
 
6034
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6035
         test ! -s conftest.err
 
6036
       }; then
 
6037
  ac_header_preproc=yes
 
6038
else
 
6039
  echo "$as_me: failed program was:" >&5
 
6040
sed 's/^/| /' conftest.$ac_ext >&5
 
6041
 
 
6042
  ac_header_preproc=no
 
6043
fi
 
6044
 
 
6045
rm -f conftest.err conftest.$ac_ext
 
6046
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6047
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6048
 
 
6049
# So?  What about this header?
 
6050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6051
  yes:no: )
 
6052
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6053
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6054
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6055
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6056
    ac_header_preproc=yes
 
6057
    ;;
 
6058
  no:yes:* )
 
6059
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6060
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6061
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6062
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6063
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6064
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6065
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6066
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6067
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6068
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6069
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6070
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6071
    ( cat <<\_ASBOX
 
6072
## ----------------------------------------------------------- ##
 
6073
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
6074
## ----------------------------------------------------------- ##
 
6075
_ASBOX
 
6076
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6077
    ;;
 
6078
esac
 
6079
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6080
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6081
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6083
else
 
6084
  eval "$as_ac_Header=\$ac_header_preproc"
 
6085
fi
 
6086
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6087
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6088
echo "${ECHO_T}$ac_res" >&6; }
 
6089
 
 
6090
fi
 
6091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6092
  cat >>confdefs.h <<_ACEOF
 
6093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6094
_ACEOF
 
6095
 
 
6096
fi
 
6097
 
 
6098
done
 
6099
 
 
6100
  if test $ac_cv_header_inttypes_h = yes; then
 
6101
    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
6102
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
 
6103
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
6104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6105
else
 
6106
 
 
6107
        cat >conftest.$ac_ext <<_ACEOF
 
6108
/* confdefs.h.  */
 
6109
_ACEOF
 
6110
cat confdefs.h >>conftest.$ac_ext
 
6111
cat >>conftest.$ac_ext <<_ACEOF
 
6112
/* end confdefs.h.  */
 
6113
#include <inttypes.h>
 
6114
#ifdef PRId32
 
6115
char *p = PRId32;
 
6116
#endif
 
6117
 
 
6118
int
 
6119
main ()
 
6120
{
 
6121
 
 
6122
  ;
 
6123
  return 0;
 
6124
}
 
6125
_ACEOF
 
6126
rm -f conftest.$ac_objext
 
6127
if { (ac_try="$ac_compile"
 
6128
case "(($ac_try" in
 
6129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6130
  *) ac_try_echo=$ac_try;;
 
6131
esac
 
6132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6133
  (eval "$ac_compile") 2>conftest.er1
 
6134
  ac_status=$?
 
6135
  grep -v '^ *+' conftest.er1 >conftest.err
 
6136
  rm -f conftest.er1
 
6137
  cat conftest.err >&5
 
6138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6139
  (exit $ac_status); } && {
 
6140
         test -z "$ac_c_werror_flag" ||
 
6141
         test ! -s conftest.err
 
6142
       } && test -s conftest.$ac_objext; then
 
6143
  gt_cv_inttypes_pri_broken=no
 
6144
else
 
6145
  echo "$as_me: failed program was:" >&5
 
6146
sed 's/^/| /' conftest.$ac_ext >&5
 
6147
 
 
6148
        gt_cv_inttypes_pri_broken=yes
 
6149
fi
 
6150
 
 
6151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6152
 
 
6153
fi
 
6154
{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
6155
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
 
6156
  fi
 
6157
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
6158
 
 
6159
cat >>confdefs.h <<_ACEOF
 
6160
#define PRI_MACROS_BROKEN 1
 
6161
_ACEOF
 
6162
 
 
6163
    PRI_MACROS_BROKEN=1
 
6164
  else
 
6165
    PRI_MACROS_BROKEN=0
 
6166
  fi
 
6167
 
 
6168
 
 
6169
 
 
6170
{ echo "$as_me:$LINENO: checking for AIX" >&5
 
6171
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
 
6172
cat >conftest.$ac_ext <<_ACEOF
 
6173
/* confdefs.h.  */
 
6174
_ACEOF
 
6175
cat confdefs.h >>conftest.$ac_ext
 
6176
cat >>conftest.$ac_ext <<_ACEOF
 
6177
/* end confdefs.h.  */
 
6178
#ifdef _AIX
 
6179
  yes
 
6180
#endif
 
6181
 
 
6182
_ACEOF
 
6183
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6184
  $EGREP "yes" >/dev/null 2>&1; then
 
6185
  { echo "$as_me:$LINENO: result: yes" >&5
 
6186
echo "${ECHO_T}yes" >&6; }
 
6187
cat >>confdefs.h <<\_ACEOF
 
6188
#define _ALL_SOURCE 1
 
6189
_ACEOF
 
6190
 
 
6191
else
 
6192
  { echo "$as_me:$LINENO: result: no" >&5
 
6193
echo "${ECHO_T}no" >&6; }
 
6194
fi
 
6195
rm -f conftest*
 
6196
 
 
6197
 
 
6198
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
6199
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
6200
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
6201
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
6202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6203
fi
 
6204
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
6205
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
6206
else
 
6207
  # Is the header compilable?
 
6208
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
6209
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
 
6210
cat >conftest.$ac_ext <<_ACEOF
 
6211
/* confdefs.h.  */
 
6212
_ACEOF
 
6213
cat confdefs.h >>conftest.$ac_ext
 
6214
cat >>conftest.$ac_ext <<_ACEOF
 
6215
/* end confdefs.h.  */
 
6216
$ac_includes_default
 
6217
#include <minix/config.h>
 
6218
_ACEOF
 
6219
rm -f conftest.$ac_objext
 
6220
if { (ac_try="$ac_compile"
 
6221
case "(($ac_try" in
 
6222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6223
  *) ac_try_echo=$ac_try;;
 
6224
esac
 
6225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6226
  (eval "$ac_compile") 2>conftest.er1
 
6227
  ac_status=$?
 
6228
  grep -v '^ *+' conftest.er1 >conftest.err
 
6229
  rm -f conftest.er1
 
6230
  cat conftest.err >&5
 
6231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6232
  (exit $ac_status); } && {
 
6233
         test -z "$ac_c_werror_flag" ||
 
6234
         test ! -s conftest.err
 
6235
       } && test -s conftest.$ac_objext; then
 
6236
  ac_header_compiler=yes
 
6237
else
 
6238
  echo "$as_me: failed program was:" >&5
 
6239
sed 's/^/| /' conftest.$ac_ext >&5
 
6240
 
 
6241
        ac_header_compiler=no
 
6242
fi
 
6243
 
 
6244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6245
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6246
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6247
 
 
6248
# Is the header present?
 
6249
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
6250
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
 
6251
cat >conftest.$ac_ext <<_ACEOF
 
6252
/* confdefs.h.  */
 
6253
_ACEOF
 
6254
cat confdefs.h >>conftest.$ac_ext
 
6255
cat >>conftest.$ac_ext <<_ACEOF
 
6256
/* end confdefs.h.  */
 
6257
#include <minix/config.h>
 
6258
_ACEOF
 
6259
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6260
case "(($ac_try" in
 
6261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6262
  *) ac_try_echo=$ac_try;;
 
6263
esac
 
6264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6265
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6266
  ac_status=$?
 
6267
  grep -v '^ *+' conftest.er1 >conftest.err
 
6268
  rm -f conftest.er1
 
6269
  cat conftest.err >&5
 
6270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6271
  (exit $ac_status); } >/dev/null && {
 
6272
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6273
         test ! -s conftest.err
 
6274
       }; then
 
6275
  ac_header_preproc=yes
 
6276
else
 
6277
  echo "$as_me: failed program was:" >&5
 
6278
sed 's/^/| /' conftest.$ac_ext >&5
 
6279
 
 
6280
  ac_header_preproc=no
 
6281
fi
 
6282
 
 
6283
rm -f conftest.err conftest.$ac_ext
 
6284
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6285
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6286
 
 
6287
# So?  What about this header?
 
6288
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6289
  yes:no: )
 
6290
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6291
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6292
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
6293
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
6294
    ac_header_preproc=yes
 
6295
    ;;
 
6296
  no:yes:* )
 
6297
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
6298
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
6299
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
6300
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
6301
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
6302
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
6303
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6304
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6305
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
6306
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
6307
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
6308
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
6309
    ( cat <<\_ASBOX
 
6310
## ----------------------------------------------------------- ##
 
6311
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
6312
## ----------------------------------------------------------- ##
 
6313
_ASBOX
 
6314
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6315
    ;;
 
6316
esac
 
6317
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
6318
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
6319
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
6320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6321
else
 
6322
  ac_cv_header_minix_config_h=$ac_header_preproc
 
6323
fi
 
6324
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
6325
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
6326
 
 
6327
fi
 
6328
if test $ac_cv_header_minix_config_h = yes; then
 
6329
  MINIX=yes
 
6330
else
 
6331
  MINIX=
 
6332
fi
 
6333
 
 
6334
 
 
6335
if test "$MINIX" = yes; then
 
6336
 
 
6337
cat >>confdefs.h <<\_ACEOF
 
6338
#define _POSIX_SOURCE 1
 
6339
_ACEOF
 
6340
 
 
6341
 
 
6342
cat >>confdefs.h <<\_ACEOF
 
6343
#define _POSIX_1_SOURCE 2
 
6344
_ACEOF
 
6345
 
 
6346
 
 
6347
cat >>confdefs.h <<\_ACEOF
 
6348
#define _MINIX 1
 
6349
_ACEOF
 
6350
 
 
6351
fi
 
6352
 
 
6353
 
 
6354
 
 
6355
 
 
6356
 
 
6357
 
 
6358
 
 
6359
 
 
6360
 
 
6361
 
 
6362
 
 
6363
  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
6364
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
 
6365
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
6366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6367
else
 
6368
  cat >conftest.$ac_ext <<_ACEOF
 
6369
/* confdefs.h.  */
 
6370
_ACEOF
 
6371
cat confdefs.h >>conftest.$ac_ext
 
6372
cat >>conftest.$ac_ext <<_ACEOF
 
6373
/* end confdefs.h.  */
 
6374
 
 
6375
#         define __EXTENSIONS__ 1
 
6376
          $ac_includes_default
 
6377
int
 
6378
main ()
 
6379
{
 
6380
 
 
6381
  ;
 
6382
  return 0;
 
6383
}
 
6384
_ACEOF
 
6385
rm -f conftest.$ac_objext
 
6386
if { (ac_try="$ac_compile"
 
6387
case "(($ac_try" in
 
6388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6389
  *) ac_try_echo=$ac_try;;
 
6390
esac
 
6391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6392
  (eval "$ac_compile") 2>conftest.er1
 
6393
  ac_status=$?
 
6394
  grep -v '^ *+' conftest.er1 >conftest.err
 
6395
  rm -f conftest.er1
 
6396
  cat conftest.err >&5
 
6397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6398
  (exit $ac_status); } && {
 
6399
         test -z "$ac_c_werror_flag" ||
 
6400
         test ! -s conftest.err
 
6401
       } && test -s conftest.$ac_objext; then
 
6402
  ac_cv_safe_to_define___extensions__=yes
 
6403
else
 
6404
  echo "$as_me: failed program was:" >&5
 
6405
sed 's/^/| /' conftest.$ac_ext >&5
 
6406
 
 
6407
        ac_cv_safe_to_define___extensions__=no
 
6408
fi
 
6409
 
 
6410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6411
fi
 
6412
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
6413
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
 
6414
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
6415
    cat >>confdefs.h <<\_ACEOF
 
6416
#define __EXTENSIONS__ 1
 
6417
_ACEOF
 
6418
 
 
6419
  cat >>confdefs.h <<\_ACEOF
 
6420
#define _POSIX_PTHREAD_SEMANTICS 1
 
6421
_ACEOF
 
6422
 
 
6423
  cat >>confdefs.h <<\_ACEOF
 
6424
#define _TANDEM_SOURCE 1
 
6425
_ACEOF
 
6426
 
 
6427
 
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
    # Check whether --enable-threads was given.
 
6433
if test "${enable_threads+set}" = set; then
 
6434
  enableval=$enable_threads; gl_use_threads=$enableval
 
6435
else
 
6436
  case "$host_os" in
 
6437
                            osf*) gl_use_threads=no ;;
 
6438
       *)    gl_use_threads=yes ;;
 
6439
     esac
 
6440
 
 
6441
fi
 
6442
 
 
6443
  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
6444
    # For using <pthread.h>:
 
6445
    case "$host_os" in
 
6446
      osf*)
 
6447
        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
 
6448
        # groks <pthread.h>. cc also understands the flag -pthread, but
 
6449
        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
 
6450
        # 2. putting a flag into CPPFLAGS that has an effect on the linker
 
6451
        # causes the AC_TRY_LINK test below to succeed unexpectedly,
 
6452
        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
 
6453
        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
6454
        ;;
 
6455
    esac
 
6456
    # Some systems optimize for single-threaded programs by default, and
 
6457
    # need special flags to disable these optimizations. For example, the
 
6458
    # definition of 'errno' in <errno.h>.
 
6459
    case "$host_os" in
 
6460
      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
 
6461
      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
 
6462
    esac
 
6463
  fi
 
6464
 
 
6465
 
 
6466
 
 
6467
 
 
6468
 
 
6469
      if test "X$prefix" = "XNONE"; then
 
6470
    acl_final_prefix="$ac_default_prefix"
 
6471
  else
 
6472
    acl_final_prefix="$prefix"
 
6473
  fi
 
6474
  if test "X$exec_prefix" = "XNONE"; then
 
6475
    acl_final_exec_prefix='${prefix}'
 
6476
  else
 
6477
    acl_final_exec_prefix="$exec_prefix"
 
6478
  fi
 
6479
  acl_save_prefix="$prefix"
 
6480
  prefix="$acl_final_prefix"
 
6481
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
6482
  prefix="$acl_save_prefix"
 
6483
 
 
6484
 
3810
6485
# Check whether --with-gnu-ld was given.
3811
6486
if test "${with_gnu_ld+set}" = set; then
3812
6487
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3939
6614
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3940
6615
echo "${ECHO_T}$acl_cv_rpath" >&6; }
3941
6616
  wl="$acl_cv_wl"
3942
 
  libext="$acl_cv_libext"
3943
 
  shlibext="$acl_cv_shlibext"
3944
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3945
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3946
 
  hardcode_direct="$acl_cv_hardcode_direct"
3947
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
6617
  acl_libext="$acl_cv_libext"
 
6618
  acl_shlibext="$acl_cv_shlibext"
 
6619
  acl_libname_spec="$acl_cv_libname_spec"
 
6620
  acl_library_names_spec="$acl_cv_library_names_spec"
 
6621
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
6622
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
6623
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
6624
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3948
6625
    # Check whether --enable-rpath was given.
3949
6626
if test "${enable_rpath+set}" = set; then
3950
6627
  enableval=$enable_rpath; :
3974
6651
 
3975
6652
 
3976
6653
 
 
6654
  gl_threads_api=none
 
6655
  LIBTHREAD=
 
6656
  LTLIBTHREAD=
 
6657
  LIBMULTITHREAD=
 
6658
  LTLIBMULTITHREAD=
 
6659
  if test "$gl_use_threads" != no; then
 
6660
        { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
 
6661
echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
 
6662
    gl_have_weak=no
 
6663
    cat >conftest.$ac_ext <<_ACEOF
 
6664
/* confdefs.h.  */
 
6665
_ACEOF
 
6666
cat confdefs.h >>conftest.$ac_ext
 
6667
cat >>conftest.$ac_ext <<_ACEOF
 
6668
/* end confdefs.h.  */
 
6669
extern void xyzzy ();
 
6670
#pragma weak xyzzy
 
6671
int
 
6672
main ()
 
6673
{
 
6674
xyzzy();
 
6675
  ;
 
6676
  return 0;
 
6677
}
 
6678
_ACEOF
 
6679
rm -f conftest.$ac_objext conftest$ac_exeext
 
6680
if { (ac_try="$ac_link"
 
6681
case "(($ac_try" in
 
6682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6683
  *) ac_try_echo=$ac_try;;
 
6684
esac
 
6685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6686
  (eval "$ac_link") 2>conftest.er1
 
6687
  ac_status=$?
 
6688
  grep -v '^ *+' conftest.er1 >conftest.err
 
6689
  rm -f conftest.er1
 
6690
  cat conftest.err >&5
 
6691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6692
  (exit $ac_status); } && {
 
6693
         test -z "$ac_c_werror_flag" ||
 
6694
         test ! -s conftest.err
 
6695
       } && test -s conftest$ac_exeext &&
 
6696
       $as_test_x conftest$ac_exeext; then
 
6697
  gl_have_weak=yes
 
6698
else
 
6699
  echo "$as_me: failed program was:" >&5
 
6700
sed 's/^/| /' conftest.$ac_ext >&5
 
6701
 
 
6702
 
 
6703
fi
 
6704
 
 
6705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6706
      conftest$ac_exeext conftest.$ac_ext
 
6707
    { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
 
6708
echo "${ECHO_T}$gl_have_weak" >&6; }
 
6709
    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
6710
      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
 
6711
      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
 
6712
      if test "${ac_cv_header_pthread_h+set}" = set; then
 
6713
  { echo "$as_me:$LINENO: checking for pthread.h" >&5
 
6714
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
 
6715
if test "${ac_cv_header_pthread_h+set}" = set; then
 
6716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6717
fi
 
6718
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
6719
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
 
6720
else
 
6721
  # Is the header compilable?
 
6722
{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
 
6723
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
 
6724
cat >conftest.$ac_ext <<_ACEOF
 
6725
/* confdefs.h.  */
 
6726
_ACEOF
 
6727
cat confdefs.h >>conftest.$ac_ext
 
6728
cat >>conftest.$ac_ext <<_ACEOF
 
6729
/* end confdefs.h.  */
 
6730
$ac_includes_default
 
6731
#include <pthread.h>
 
6732
_ACEOF
 
6733
rm -f conftest.$ac_objext
 
6734
if { (ac_try="$ac_compile"
 
6735
case "(($ac_try" in
 
6736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6737
  *) ac_try_echo=$ac_try;;
 
6738
esac
 
6739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6740
  (eval "$ac_compile") 2>conftest.er1
 
6741
  ac_status=$?
 
6742
  grep -v '^ *+' conftest.er1 >conftest.err
 
6743
  rm -f conftest.er1
 
6744
  cat conftest.err >&5
 
6745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6746
  (exit $ac_status); } && {
 
6747
         test -z "$ac_c_werror_flag" ||
 
6748
         test ! -s conftest.err
 
6749
       } && test -s conftest.$ac_objext; then
 
6750
  ac_header_compiler=yes
 
6751
else
 
6752
  echo "$as_me: failed program was:" >&5
 
6753
sed 's/^/| /' conftest.$ac_ext >&5
 
6754
 
 
6755
        ac_header_compiler=no
 
6756
fi
 
6757
 
 
6758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6759
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6760
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6761
 
 
6762
# Is the header present?
 
6763
{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
 
6764
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
 
6765
cat >conftest.$ac_ext <<_ACEOF
 
6766
/* confdefs.h.  */
 
6767
_ACEOF
 
6768
cat confdefs.h >>conftest.$ac_ext
 
6769
cat >>conftest.$ac_ext <<_ACEOF
 
6770
/* end confdefs.h.  */
 
6771
#include <pthread.h>
 
6772
_ACEOF
 
6773
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6774
case "(($ac_try" in
 
6775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6776
  *) ac_try_echo=$ac_try;;
 
6777
esac
 
6778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6779
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6780
  ac_status=$?
 
6781
  grep -v '^ *+' conftest.er1 >conftest.err
 
6782
  rm -f conftest.er1
 
6783
  cat conftest.err >&5
 
6784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6785
  (exit $ac_status); } >/dev/null && {
 
6786
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6787
         test ! -s conftest.err
 
6788
       }; then
 
6789
  ac_header_preproc=yes
 
6790
else
 
6791
  echo "$as_me: failed program was:" >&5
 
6792
sed 's/^/| /' conftest.$ac_ext >&5
 
6793
 
 
6794
  ac_header_preproc=no
 
6795
fi
 
6796
 
 
6797
rm -f conftest.err conftest.$ac_ext
 
6798
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6799
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6800
 
 
6801
# So?  What about this header?
 
6802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6803
  yes:no: )
 
6804
    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6805
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6806
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
 
6807
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
 
6808
    ac_header_preproc=yes
 
6809
    ;;
 
6810
  no:yes:* )
 
6811
    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
 
6812
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
 
6813
    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
 
6814
echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
 
6815
    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
 
6816
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
 
6817
    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6818
echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6819
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
 
6820
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
 
6821
    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
 
6822
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
 
6823
    ( cat <<\_ASBOX
 
6824
## ----------------------------------------------------------- ##
 
6825
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
6826
## ----------------------------------------------------------- ##
 
6827
_ASBOX
 
6828
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6829
    ;;
 
6830
esac
 
6831
{ echo "$as_me:$LINENO: checking for pthread.h" >&5
 
6832
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
 
6833
if test "${ac_cv_header_pthread_h+set}" = set; then
 
6834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6835
else
 
6836
  ac_cv_header_pthread_h=$ac_header_preproc
 
6837
fi
 
6838
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
6839
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
 
6840
 
 
6841
fi
 
6842
if test $ac_cv_header_pthread_h = yes; then
 
6843
  gl_have_pthread_h=yes
 
6844
else
 
6845
  gl_have_pthread_h=no
 
6846
fi
 
6847
 
 
6848
 
 
6849
      if test "$gl_have_pthread_h" = yes; then
 
6850
        # Other possible tests:
 
6851
        #   -lpthreads (FSU threads, PCthreads)
 
6852
        #   -lgthreads
 
6853
        gl_have_pthread=
 
6854
        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
 
6855
        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
 
6856
        # the second one only in libpthread, and lock.c needs it.
 
6857
        cat >conftest.$ac_ext <<_ACEOF
 
6858
/* confdefs.h.  */
 
6859
_ACEOF
 
6860
cat confdefs.h >>conftest.$ac_ext
 
6861
cat >>conftest.$ac_ext <<_ACEOF
 
6862
/* end confdefs.h.  */
 
6863
#include <pthread.h>
 
6864
int
 
6865
main ()
 
6866
{
 
6867
pthread_mutex_lock((pthread_mutex_t*)0);
 
6868
           pthread_mutexattr_init((pthread_mutexattr_t*)0);
 
6869
  ;
 
6870
  return 0;
 
6871
}
 
6872
_ACEOF
 
6873
rm -f conftest.$ac_objext conftest$ac_exeext
 
6874
if { (ac_try="$ac_link"
 
6875
case "(($ac_try" in
 
6876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6877
  *) ac_try_echo=$ac_try;;
 
6878
esac
 
6879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6880
  (eval "$ac_link") 2>conftest.er1
 
6881
  ac_status=$?
 
6882
  grep -v '^ *+' conftest.er1 >conftest.err
 
6883
  rm -f conftest.er1
 
6884
  cat conftest.err >&5
 
6885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6886
  (exit $ac_status); } && {
 
6887
         test -z "$ac_c_werror_flag" ||
 
6888
         test ! -s conftest.err
 
6889
       } && test -s conftest$ac_exeext &&
 
6890
       $as_test_x conftest$ac_exeext; then
 
6891
  gl_have_pthread=yes
 
6892
else
 
6893
  echo "$as_me: failed program was:" >&5
 
6894
sed 's/^/| /' conftest.$ac_ext >&5
 
6895
 
 
6896
 
 
6897
fi
 
6898
 
 
6899
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6900
      conftest$ac_exeext conftest.$ac_ext
 
6901
        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
 
6902
        # since it is defined as a macro on OSF/1.)
 
6903
        if test -n "$gl_have_pthread"; then
 
6904
          # The program links fine without libpthread. But it may actually
 
6905
          # need to link with libpthread in order to create multiple threads.
 
6906
          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
6907
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
 
6908
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
6909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6910
else
 
6911
  ac_check_lib_save_LIBS=$LIBS
 
6912
LIBS="-lpthread  $LIBS"
 
6913
cat >conftest.$ac_ext <<_ACEOF
 
6914
/* confdefs.h.  */
 
6915
_ACEOF
 
6916
cat confdefs.h >>conftest.$ac_ext
 
6917
cat >>conftest.$ac_ext <<_ACEOF
 
6918
/* end confdefs.h.  */
 
6919
 
 
6920
/* Override any GCC internal prototype to avoid an error.
 
6921
   Use char because int might match the return type of a GCC
 
6922
   builtin and then its argument prototype would still apply.  */
 
6923
#ifdef __cplusplus
 
6924
extern "C"
 
6925
#endif
 
6926
char pthread_kill ();
 
6927
int
 
6928
main ()
 
6929
{
 
6930
return pthread_kill ();
 
6931
  ;
 
6932
  return 0;
 
6933
}
 
6934
_ACEOF
 
6935
rm -f conftest.$ac_objext conftest$ac_exeext
 
6936
if { (ac_try="$ac_link"
 
6937
case "(($ac_try" in
 
6938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6939
  *) ac_try_echo=$ac_try;;
 
6940
esac
 
6941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6942
  (eval "$ac_link") 2>conftest.er1
 
6943
  ac_status=$?
 
6944
  grep -v '^ *+' conftest.er1 >conftest.err
 
6945
  rm -f conftest.er1
 
6946
  cat conftest.err >&5
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); } && {
 
6949
         test -z "$ac_c_werror_flag" ||
 
6950
         test ! -s conftest.err
 
6951
       } && test -s conftest$ac_exeext &&
 
6952
       $as_test_x conftest$ac_exeext; then
 
6953
  ac_cv_lib_pthread_pthread_kill=yes
 
6954
else
 
6955
  echo "$as_me: failed program was:" >&5
 
6956
sed 's/^/| /' conftest.$ac_ext >&5
 
6957
 
 
6958
        ac_cv_lib_pthread_pthread_kill=no
 
6959
fi
 
6960
 
 
6961
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6962
      conftest$ac_exeext conftest.$ac_ext
 
6963
LIBS=$ac_check_lib_save_LIBS
 
6964
fi
 
6965
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
6966
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
 
6967
if test $ac_cv_lib_pthread_pthread_kill = yes; then
 
6968
  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
6969
             # On Solaris and HP-UX, most pthread functions exist also in libc.
 
6970
             # Therefore pthread_in_use() needs to actually try to create a
 
6971
             # thread: pthread_create from libc will fail, whereas
 
6972
             # pthread_create will actually create a thread.
 
6973
             case "$host_os" in
 
6974
               solaris* | hpux*)
 
6975
 
 
6976
cat >>confdefs.h <<\_ACEOF
 
6977
#define PTHREAD_IN_USE_DETECTION_HARD 1
 
6978
_ACEOF
 
6979
 
 
6980
             esac
 
6981
 
 
6982
fi
 
6983
 
 
6984
        else
 
6985
          # Some library is needed. Try libpthread and libc_r.
 
6986
          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
6987
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
 
6988
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
6989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6990
else
 
6991
  ac_check_lib_save_LIBS=$LIBS
 
6992
LIBS="-lpthread  $LIBS"
 
6993
cat >conftest.$ac_ext <<_ACEOF
 
6994
/* confdefs.h.  */
 
6995
_ACEOF
 
6996
cat confdefs.h >>conftest.$ac_ext
 
6997
cat >>conftest.$ac_ext <<_ACEOF
 
6998
/* end confdefs.h.  */
 
6999
 
 
7000
/* Override any GCC internal prototype to avoid an error.
 
7001
   Use char because int might match the return type of a GCC
 
7002
   builtin and then its argument prototype would still apply.  */
 
7003
#ifdef __cplusplus
 
7004
extern "C"
 
7005
#endif
 
7006
char pthread_kill ();
 
7007
int
 
7008
main ()
 
7009
{
 
7010
return pthread_kill ();
 
7011
  ;
 
7012
  return 0;
 
7013
}
 
7014
_ACEOF
 
7015
rm -f conftest.$ac_objext conftest$ac_exeext
 
7016
if { (ac_try="$ac_link"
 
7017
case "(($ac_try" in
 
7018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7019
  *) ac_try_echo=$ac_try;;
 
7020
esac
 
7021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7022
  (eval "$ac_link") 2>conftest.er1
 
7023
  ac_status=$?
 
7024
  grep -v '^ *+' conftest.er1 >conftest.err
 
7025
  rm -f conftest.er1
 
7026
  cat conftest.err >&5
 
7027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7028
  (exit $ac_status); } && {
 
7029
         test -z "$ac_c_werror_flag" ||
 
7030
         test ! -s conftest.err
 
7031
       } && test -s conftest$ac_exeext &&
 
7032
       $as_test_x conftest$ac_exeext; then
 
7033
  ac_cv_lib_pthread_pthread_kill=yes
 
7034
else
 
7035
  echo "$as_me: failed program was:" >&5
 
7036
sed 's/^/| /' conftest.$ac_ext >&5
 
7037
 
 
7038
        ac_cv_lib_pthread_pthread_kill=no
 
7039
fi
 
7040
 
 
7041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7042
      conftest$ac_exeext conftest.$ac_ext
 
7043
LIBS=$ac_check_lib_save_LIBS
 
7044
fi
 
7045
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
7046
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
 
7047
if test $ac_cv_lib_pthread_pthread_kill = yes; then
 
7048
  gl_have_pthread=yes
 
7049
             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
 
7050
             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
7051
fi
 
7052
 
 
7053
          if test -z "$gl_have_pthread"; then
 
7054
            # For FreeBSD 4.
 
7055
            { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
 
7056
echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
 
7057
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
 
7058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7059
else
 
7060
  ac_check_lib_save_LIBS=$LIBS
 
7061
LIBS="-lc_r  $LIBS"
 
7062
cat >conftest.$ac_ext <<_ACEOF
 
7063
/* confdefs.h.  */
 
7064
_ACEOF
 
7065
cat confdefs.h >>conftest.$ac_ext
 
7066
cat >>conftest.$ac_ext <<_ACEOF
 
7067
/* end confdefs.h.  */
 
7068
 
 
7069
/* Override any GCC internal prototype to avoid an error.
 
7070
   Use char because int might match the return type of a GCC
 
7071
   builtin and then its argument prototype would still apply.  */
 
7072
#ifdef __cplusplus
 
7073
extern "C"
 
7074
#endif
 
7075
char pthread_kill ();
 
7076
int
 
7077
main ()
 
7078
{
 
7079
return pthread_kill ();
 
7080
  ;
 
7081
  return 0;
 
7082
}
 
7083
_ACEOF
 
7084
rm -f conftest.$ac_objext conftest$ac_exeext
 
7085
if { (ac_try="$ac_link"
 
7086
case "(($ac_try" in
 
7087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7088
  *) ac_try_echo=$ac_try;;
 
7089
esac
 
7090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7091
  (eval "$ac_link") 2>conftest.er1
 
7092
  ac_status=$?
 
7093
  grep -v '^ *+' conftest.er1 >conftest.err
 
7094
  rm -f conftest.er1
 
7095
  cat conftest.err >&5
 
7096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7097
  (exit $ac_status); } && {
 
7098
         test -z "$ac_c_werror_flag" ||
 
7099
         test ! -s conftest.err
 
7100
       } && test -s conftest$ac_exeext &&
 
7101
       $as_test_x conftest$ac_exeext; then
 
7102
  ac_cv_lib_c_r_pthread_kill=yes
 
7103
else
 
7104
  echo "$as_me: failed program was:" >&5
 
7105
sed 's/^/| /' conftest.$ac_ext >&5
 
7106
 
 
7107
        ac_cv_lib_c_r_pthread_kill=no
 
7108
fi
 
7109
 
 
7110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7111
      conftest$ac_exeext conftest.$ac_ext
 
7112
LIBS=$ac_check_lib_save_LIBS
 
7113
fi
 
7114
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
 
7115
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
 
7116
if test $ac_cv_lib_c_r_pthread_kill = yes; then
 
7117
  gl_have_pthread=yes
 
7118
               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
 
7119
               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
 
7120
fi
 
7121
 
 
7122
          fi
 
7123
        fi
 
7124
        if test -n "$gl_have_pthread"; then
 
7125
          gl_threads_api=posix
 
7126
 
 
7127
cat >>confdefs.h <<\_ACEOF
 
7128
#define USE_POSIX_THREADS 1
 
7129
_ACEOF
 
7130
 
 
7131
          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
7132
            if test $gl_have_weak = yes; then
 
7133
 
 
7134
cat >>confdefs.h <<\_ACEOF
 
7135
#define USE_POSIX_THREADS_WEAK 1
 
7136
_ACEOF
 
7137
 
 
7138
              LIBTHREAD=
 
7139
              LTLIBTHREAD=
 
7140
            fi
 
7141
          fi
 
7142
          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
 
7143
          # pthread_rwlock_* functions.
 
7144
          { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
 
7145
echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
 
7146
if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
 
7147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7148
else
 
7149
  cat >conftest.$ac_ext <<_ACEOF
 
7150
/* confdefs.h.  */
 
7151
_ACEOF
 
7152
cat confdefs.h >>conftest.$ac_ext
 
7153
cat >>conftest.$ac_ext <<_ACEOF
 
7154
/* end confdefs.h.  */
 
7155
#include <pthread.h>
 
7156
 
 
7157
typedef pthread_rwlock_t ac__type_new_;
 
7158
int
 
7159
main ()
 
7160
{
 
7161
if ((ac__type_new_ *) 0)
 
7162
  return 0;
 
7163
if (sizeof (ac__type_new_))
 
7164
  return 0;
 
7165
  ;
 
7166
  return 0;
 
7167
}
 
7168
_ACEOF
 
7169
rm -f conftest.$ac_objext
 
7170
if { (ac_try="$ac_compile"
 
7171
case "(($ac_try" in
 
7172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7173
  *) ac_try_echo=$ac_try;;
 
7174
esac
 
7175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7176
  (eval "$ac_compile") 2>conftest.er1
 
7177
  ac_status=$?
 
7178
  grep -v '^ *+' conftest.er1 >conftest.err
 
7179
  rm -f conftest.er1
 
7180
  cat conftest.err >&5
 
7181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7182
  (exit $ac_status); } && {
 
7183
         test -z "$ac_c_werror_flag" ||
 
7184
         test ! -s conftest.err
 
7185
       } && test -s conftest.$ac_objext; then
 
7186
  ac_cv_type_pthread_rwlock_t=yes
 
7187
else
 
7188
  echo "$as_me: failed program was:" >&5
 
7189
sed 's/^/| /' conftest.$ac_ext >&5
 
7190
 
 
7191
        ac_cv_type_pthread_rwlock_t=no
 
7192
fi
 
7193
 
 
7194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7195
fi
 
7196
{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
 
7197
echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
 
7198
if test $ac_cv_type_pthread_rwlock_t = yes; then
 
7199
 
 
7200
cat >>confdefs.h <<\_ACEOF
 
7201
#define HAVE_PTHREAD_RWLOCK 1
 
7202
_ACEOF
 
7203
 
 
7204
fi
 
7205
 
 
7206
          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
 
7207
          cat >conftest.$ac_ext <<_ACEOF
 
7208
/* confdefs.h.  */
 
7209
_ACEOF
 
7210
cat confdefs.h >>conftest.$ac_ext
 
7211
cat >>conftest.$ac_ext <<_ACEOF
 
7212
/* end confdefs.h.  */
 
7213
#include <pthread.h>
 
7214
int
 
7215
main ()
 
7216
{
 
7217
#if __FreeBSD__ == 4
 
7218
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
 
7219
#else
 
7220
int x = (int)PTHREAD_MUTEX_RECURSIVE;
 
7221
return !x;
 
7222
#endif
 
7223
  ;
 
7224
  return 0;
 
7225
}
 
7226
_ACEOF
 
7227
rm -f conftest.$ac_objext
 
7228
if { (ac_try="$ac_compile"
 
7229
case "(($ac_try" in
 
7230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7231
  *) ac_try_echo=$ac_try;;
 
7232
esac
 
7233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7234
  (eval "$ac_compile") 2>conftest.er1
 
7235
  ac_status=$?
 
7236
  grep -v '^ *+' conftest.er1 >conftest.err
 
7237
  rm -f conftest.er1
 
7238
  cat conftest.err >&5
 
7239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7240
  (exit $ac_status); } && {
 
7241
         test -z "$ac_c_werror_flag" ||
 
7242
         test ! -s conftest.err
 
7243
       } && test -s conftest.$ac_objext; then
 
7244
 
 
7245
cat >>confdefs.h <<\_ACEOF
 
7246
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
 
7247
_ACEOF
 
7248
 
 
7249
else
 
7250
  echo "$as_me: failed program was:" >&5
 
7251
sed 's/^/| /' conftest.$ac_ext >&5
 
7252
 
 
7253
 
 
7254
fi
 
7255
 
 
7256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7257
        fi
 
7258
      fi
 
7259
    fi
 
7260
    if test -z "$gl_have_pthread"; then
 
7261
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
 
7262
        gl_have_solaristhread=
 
7263
        gl_save_LIBS="$LIBS"
 
7264
        LIBS="$LIBS -lthread"
 
7265
        cat >conftest.$ac_ext <<_ACEOF
 
7266
/* confdefs.h.  */
 
7267
_ACEOF
 
7268
cat confdefs.h >>conftest.$ac_ext
 
7269
cat >>conftest.$ac_ext <<_ACEOF
 
7270
/* end confdefs.h.  */
 
7271
#include <thread.h>
 
7272
#include <synch.h>
 
7273
int
 
7274
main ()
 
7275
{
 
7276
thr_self();
 
7277
  ;
 
7278
  return 0;
 
7279
}
 
7280
_ACEOF
 
7281
rm -f conftest.$ac_objext conftest$ac_exeext
 
7282
if { (ac_try="$ac_link"
 
7283
case "(($ac_try" in
 
7284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7285
  *) ac_try_echo=$ac_try;;
 
7286
esac
 
7287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7288
  (eval "$ac_link") 2>conftest.er1
 
7289
  ac_status=$?
 
7290
  grep -v '^ *+' conftest.er1 >conftest.err
 
7291
  rm -f conftest.er1
 
7292
  cat conftest.err >&5
 
7293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7294
  (exit $ac_status); } && {
 
7295
         test -z "$ac_c_werror_flag" ||
 
7296
         test ! -s conftest.err
 
7297
       } && test -s conftest$ac_exeext &&
 
7298
       $as_test_x conftest$ac_exeext; then
 
7299
  gl_have_solaristhread=yes
 
7300
else
 
7301
  echo "$as_me: failed program was:" >&5
 
7302
sed 's/^/| /' conftest.$ac_ext >&5
 
7303
 
 
7304
 
 
7305
fi
 
7306
 
 
7307
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7308
      conftest$ac_exeext conftest.$ac_ext
 
7309
        LIBS="$gl_save_LIBS"
 
7310
        if test -n "$gl_have_solaristhread"; then
 
7311
          gl_threads_api=solaris
 
7312
          LIBTHREAD=-lthread
 
7313
          LTLIBTHREAD=-lthread
 
7314
          LIBMULTITHREAD="$LIBTHREAD"
 
7315
          LTLIBMULTITHREAD="$LTLIBTHREAD"
 
7316
 
 
7317
cat >>confdefs.h <<\_ACEOF
 
7318
#define USE_SOLARIS_THREADS 1
 
7319
_ACEOF
 
7320
 
 
7321
          if test $gl_have_weak = yes; then
 
7322
 
 
7323
cat >>confdefs.h <<\_ACEOF
 
7324
#define USE_SOLARIS_THREADS_WEAK 1
 
7325
_ACEOF
 
7326
 
 
7327
            LIBTHREAD=
 
7328
            LTLIBTHREAD=
 
7329
          fi
 
7330
        fi
 
7331
      fi
 
7332
    fi
 
7333
    if test "$gl_use_threads" = pth; then
 
7334
      gl_save_CPPFLAGS="$CPPFLAGS"
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
 
 
7340
  { echo "$as_me:$LINENO: checking how to link with libpth" >&5
 
7341
echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
 
7342
if test "${ac_cv_libpth_libs+set}" = set; then
 
7343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7344
else
 
7345
 
 
7346
 
 
7347
 
 
7348
 
 
7349
 
 
7350
    use_additional=yes
 
7351
 
 
7352
  acl_save_prefix="$prefix"
 
7353
  prefix="$acl_final_prefix"
 
7354
  acl_save_exec_prefix="$exec_prefix"
 
7355
  exec_prefix="$acl_final_exec_prefix"
 
7356
 
 
7357
    eval additional_includedir=\"$includedir\"
 
7358
    eval additional_libdir=\"$libdir\"
 
7359
 
 
7360
  exec_prefix="$acl_save_exec_prefix"
 
7361
  prefix="$acl_save_prefix"
 
7362
 
 
7363
 
 
7364
# Check whether --with-libpth-prefix was given.
 
7365
if test "${with_libpth_prefix+set}" = set; then
 
7366
  withval=$with_libpth_prefix;
 
7367
    if test "X$withval" = "Xno"; then
 
7368
      use_additional=no
 
7369
    else
 
7370
      if test "X$withval" = "X"; then
 
7371
 
 
7372
  acl_save_prefix="$prefix"
 
7373
  prefix="$acl_final_prefix"
 
7374
  acl_save_exec_prefix="$exec_prefix"
 
7375
  exec_prefix="$acl_final_exec_prefix"
 
7376
 
 
7377
          eval additional_includedir=\"$includedir\"
 
7378
          eval additional_libdir=\"$libdir\"
 
7379
 
 
7380
  exec_prefix="$acl_save_exec_prefix"
 
7381
  prefix="$acl_save_prefix"
 
7382
 
 
7383
      else
 
7384
        additional_includedir="$withval/include"
 
7385
        additional_libdir="$withval/$acl_libdirstem"
 
7386
      fi
 
7387
    fi
 
7388
 
 
7389
fi
 
7390
 
 
7391
      LIBPTH=
 
7392
  LTLIBPTH=
 
7393
  INCPTH=
 
7394
  LIBPTH_PREFIX=
 
7395
  rpathdirs=
 
7396
  ltrpathdirs=
 
7397
  names_already_handled=
 
7398
  names_next_round='pth '
 
7399
  while test -n "$names_next_round"; do
 
7400
    names_this_round="$names_next_round"
 
7401
    names_next_round=
 
7402
    for name in $names_this_round; do
 
7403
      already_handled=
 
7404
      for n in $names_already_handled; do
 
7405
        if test "$n" = "$name"; then
 
7406
          already_handled=yes
 
7407
          break
 
7408
        fi
 
7409
      done
 
7410
      if test -z "$already_handled"; then
 
7411
        names_already_handled="$names_already_handled $name"
 
7412
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
7413
        eval value=\"\$HAVE_LIB$uppername\"
 
7414
        if test -n "$value"; then
 
7415
          if test "$value" = yes; then
 
7416
            eval value=\"\$LIB$uppername\"
 
7417
            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
 
7418
            eval value=\"\$LTLIB$uppername\"
 
7419
            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
 
7420
          else
 
7421
                                    :
 
7422
          fi
 
7423
        else
 
7424
                              found_dir=
 
7425
          found_la=
 
7426
          found_so=
 
7427
          found_a=
 
7428
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
7429
          if test -n "$acl_shlibext"; then
 
7430
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
7431
          else
 
7432
            shrext=
 
7433
          fi
 
7434
          if test $use_additional = yes; then
 
7435
            dir="$additional_libdir"
 
7436
                                    if test -n "$acl_shlibext"; then
 
7437
              if test -f "$dir/$libname$shrext"; then
 
7438
                found_dir="$dir"
 
7439
                found_so="$dir/$libname$shrext"
 
7440
              else
 
7441
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7442
                  ver=`(cd "$dir" && \
 
7443
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
7444
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
7445
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7446
                        | sed 1q ) 2>/dev/null`
 
7447
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7448
                    found_dir="$dir"
 
7449
                    found_so="$dir/$libname$shrext.$ver"
 
7450
                  fi
 
7451
                else
 
7452
                  eval library_names=\"$acl_library_names_spec\"
 
7453
                  for f in $library_names; do
 
7454
                    if test -f "$dir/$f"; then
 
7455
                      found_dir="$dir"
 
7456
                      found_so="$dir/$f"
 
7457
                      break
 
7458
                    fi
 
7459
                  done
 
7460
                fi
 
7461
              fi
 
7462
            fi
 
7463
                        if test "X$found_dir" = "X"; then
 
7464
              if test -f "$dir/$libname.$acl_libext"; then
 
7465
                found_dir="$dir"
 
7466
                found_a="$dir/$libname.$acl_libext"
 
7467
              fi
 
7468
            fi
 
7469
            if test "X$found_dir" != "X"; then
 
7470
              if test -f "$dir/$libname.la"; then
 
7471
                found_la="$dir/$libname.la"
 
7472
              fi
 
7473
            fi
 
7474
          fi
 
7475
          if test "X$found_dir" = "X"; then
 
7476
            for x in $LDFLAGS $LTLIBPTH; do
 
7477
 
 
7478
  acl_save_prefix="$prefix"
 
7479
  prefix="$acl_final_prefix"
 
7480
  acl_save_exec_prefix="$exec_prefix"
 
7481
  exec_prefix="$acl_final_exec_prefix"
 
7482
  eval x=\"$x\"
 
7483
  exec_prefix="$acl_save_exec_prefix"
 
7484
  prefix="$acl_save_prefix"
 
7485
 
 
7486
              case "$x" in
 
7487
                -L*)
 
7488
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
7489
                                    if test -n "$acl_shlibext"; then
 
7490
                    if test -f "$dir/$libname$shrext"; then
 
7491
                      found_dir="$dir"
 
7492
                      found_so="$dir/$libname$shrext"
 
7493
                    else
 
7494
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7495
                        ver=`(cd "$dir" && \
 
7496
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
7497
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
7498
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7499
                              | sed 1q ) 2>/dev/null`
 
7500
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7501
                          found_dir="$dir"
 
7502
                          found_so="$dir/$libname$shrext.$ver"
 
7503
                        fi
 
7504
                      else
 
7505
                        eval library_names=\"$acl_library_names_spec\"
 
7506
                        for f in $library_names; do
 
7507
                          if test -f "$dir/$f"; then
 
7508
                            found_dir="$dir"
 
7509
                            found_so="$dir/$f"
 
7510
                            break
 
7511
                          fi
 
7512
                        done
 
7513
                      fi
 
7514
                    fi
 
7515
                  fi
 
7516
                                    if test "X$found_dir" = "X"; then
 
7517
                    if test -f "$dir/$libname.$acl_libext"; then
 
7518
                      found_dir="$dir"
 
7519
                      found_a="$dir/$libname.$acl_libext"
 
7520
                    fi
 
7521
                  fi
 
7522
                  if test "X$found_dir" != "X"; then
 
7523
                    if test -f "$dir/$libname.la"; then
 
7524
                      found_la="$dir/$libname.la"
 
7525
                    fi
 
7526
                  fi
 
7527
                  ;;
 
7528
              esac
 
7529
              if test "X$found_dir" != "X"; then
 
7530
                break
 
7531
              fi
 
7532
            done
 
7533
          fi
 
7534
          if test "X$found_dir" != "X"; then
 
7535
                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
 
7536
            if test "X$found_so" != "X"; then
 
7537
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
7538
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
7539
              else
 
7540
                                                                                haveit=
 
7541
                for x in $ltrpathdirs; do
 
7542
                  if test "X$x" = "X$found_dir"; then
 
7543
                    haveit=yes
 
7544
                    break
 
7545
                  fi
 
7546
                done
 
7547
                if test -z "$haveit"; then
 
7548
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
7549
                fi
 
7550
                                if test "$acl_hardcode_direct" = yes; then
 
7551
                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
7552
                else
 
7553
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
7554
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
7555
                                                            haveit=
 
7556
                    for x in $rpathdirs; do
 
7557
                      if test "X$x" = "X$found_dir"; then
 
7558
                        haveit=yes
 
7559
                        break
 
7560
                      fi
 
7561
                    done
 
7562
                    if test -z "$haveit"; then
 
7563
                      rpathdirs="$rpathdirs $found_dir"
 
7564
                    fi
 
7565
                  else
 
7566
                                                                                haveit=
 
7567
                    for x in $LDFLAGS $LIBPTH; do
 
7568
 
 
7569
  acl_save_prefix="$prefix"
 
7570
  prefix="$acl_final_prefix"
 
7571
  acl_save_exec_prefix="$exec_prefix"
 
7572
  exec_prefix="$acl_final_exec_prefix"
 
7573
  eval x=\"$x\"
 
7574
  exec_prefix="$acl_save_exec_prefix"
 
7575
  prefix="$acl_save_prefix"
 
7576
 
 
7577
                      if test "X$x" = "X-L$found_dir"; then
 
7578
                        haveit=yes
 
7579
                        break
 
7580
                      fi
 
7581
                    done
 
7582
                    if test -z "$haveit"; then
 
7583
                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
 
7584
                    fi
 
7585
                    if test "$acl_hardcode_minus_L" != no; then
 
7586
                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
7587
                    else
 
7588
                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
7589
                    fi
 
7590
                  fi
 
7591
                fi
 
7592
              fi
 
7593
            else
 
7594
              if test "X$found_a" != "X"; then
 
7595
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
 
7596
              else
 
7597
                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
 
7598
              fi
 
7599
            fi
 
7600
                        additional_includedir=
 
7601
            case "$found_dir" in
 
7602
              */$acl_libdirstem | */$acl_libdirstem/)
 
7603
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
7604
                LIBPTH_PREFIX="$basedir"
 
7605
                additional_includedir="$basedir/include"
 
7606
                ;;
 
7607
            esac
 
7608
            if test "X$additional_includedir" != "X"; then
 
7609
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
7610
                haveit=
 
7611
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
7612
                  if test -n "$GCC"; then
 
7613
                    case $host_os in
 
7614
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7615
                    esac
 
7616
                  fi
 
7617
                fi
 
7618
                if test -z "$haveit"; then
 
7619
                  for x in $CPPFLAGS $INCPTH; do
 
7620
 
 
7621
  acl_save_prefix="$prefix"
 
7622
  prefix="$acl_final_prefix"
 
7623
  acl_save_exec_prefix="$exec_prefix"
 
7624
  exec_prefix="$acl_final_exec_prefix"
 
7625
  eval x=\"$x\"
 
7626
  exec_prefix="$acl_save_exec_prefix"
 
7627
  prefix="$acl_save_prefix"
 
7628
 
 
7629
                    if test "X$x" = "X-I$additional_includedir"; then
 
7630
                      haveit=yes
 
7631
                      break
 
7632
                    fi
 
7633
                  done
 
7634
                  if test -z "$haveit"; then
 
7635
                    if test -d "$additional_includedir"; then
 
7636
                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
 
7637
                    fi
 
7638
                  fi
 
7639
                fi
 
7640
              fi
 
7641
            fi
 
7642
                        if test -n "$found_la"; then
 
7643
                                                        save_libdir="$libdir"
 
7644
              case "$found_la" in
 
7645
                */* | *\\*) . "$found_la" ;;
 
7646
                *) . "./$found_la" ;;
 
7647
              esac
 
7648
              libdir="$save_libdir"
 
7649
                            for dep in $dependency_libs; do
 
7650
                case "$dep" in
 
7651
                  -L*)
 
7652
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
7653
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
7654
                      haveit=
 
7655
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
7656
                        if test -n "$GCC"; then
 
7657
                          case $host_os in
 
7658
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7659
                          esac
 
7660
                        fi
 
7661
                      fi
 
7662
                      if test -z "$haveit"; then
 
7663
                        haveit=
 
7664
                        for x in $LDFLAGS $LIBPTH; do
 
7665
 
 
7666
  acl_save_prefix="$prefix"
 
7667
  prefix="$acl_final_prefix"
 
7668
  acl_save_exec_prefix="$exec_prefix"
 
7669
  exec_prefix="$acl_final_exec_prefix"
 
7670
  eval x=\"$x\"
 
7671
  exec_prefix="$acl_save_exec_prefix"
 
7672
  prefix="$acl_save_prefix"
 
7673
 
 
7674
                          if test "X$x" = "X-L$additional_libdir"; then
 
7675
                            haveit=yes
 
7676
                            break
 
7677
                          fi
 
7678
                        done
 
7679
                        if test -z "$haveit"; then
 
7680
                          if test -d "$additional_libdir"; then
 
7681
                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
 
7682
                          fi
 
7683
                        fi
 
7684
                        haveit=
 
7685
                        for x in $LDFLAGS $LTLIBPTH; do
 
7686
 
 
7687
  acl_save_prefix="$prefix"
 
7688
  prefix="$acl_final_prefix"
 
7689
  acl_save_exec_prefix="$exec_prefix"
 
7690
  exec_prefix="$acl_final_exec_prefix"
 
7691
  eval x=\"$x\"
 
7692
  exec_prefix="$acl_save_exec_prefix"
 
7693
  prefix="$acl_save_prefix"
 
7694
 
 
7695
                          if test "X$x" = "X-L$additional_libdir"; then
 
7696
                            haveit=yes
 
7697
                            break
 
7698
                          fi
 
7699
                        done
 
7700
                        if test -z "$haveit"; then
 
7701
                          if test -d "$additional_libdir"; then
 
7702
                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
 
7703
                          fi
 
7704
                        fi
 
7705
                      fi
 
7706
                    fi
 
7707
                    ;;
 
7708
                  -R*)
 
7709
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7710
                    if test "$enable_rpath" != no; then
 
7711
                                                                  haveit=
 
7712
                      for x in $rpathdirs; do
 
7713
                        if test "X$x" = "X$dir"; then
 
7714
                          haveit=yes
 
7715
                          break
 
7716
                        fi
 
7717
                      done
 
7718
                      if test -z "$haveit"; then
 
7719
                        rpathdirs="$rpathdirs $dir"
 
7720
                      fi
 
7721
                                                                  haveit=
 
7722
                      for x in $ltrpathdirs; do
 
7723
                        if test "X$x" = "X$dir"; then
 
7724
                          haveit=yes
 
7725
                          break
 
7726
                        fi
 
7727
                      done
 
7728
                      if test -z "$haveit"; then
 
7729
                        ltrpathdirs="$ltrpathdirs $dir"
 
7730
                      fi
 
7731
                    fi
 
7732
                    ;;
 
7733
                  -l*)
 
7734
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7735
                    ;;
 
7736
                  *.la)
 
7737
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7738
                    ;;
 
7739
                  *)
 
7740
                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
 
7741
                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
 
7742
                    ;;
 
7743
                esac
 
7744
              done
 
7745
            fi
 
7746
          else
 
7747
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
7748
            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
 
7749
          fi
 
7750
        fi
 
7751
      fi
 
7752
    done
 
7753
  done
 
7754
  if test "X$rpathdirs" != "X"; then
 
7755
    if test -n "$acl_hardcode_libdir_separator"; then
 
7756
                        alldirs=
 
7757
      for found_dir in $rpathdirs; do
 
7758
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
7759
      done
 
7760
            acl_save_libdir="$libdir"
 
7761
      libdir="$alldirs"
 
7762
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7763
      libdir="$acl_save_libdir"
 
7764
      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
7765
    else
 
7766
            for found_dir in $rpathdirs; do
 
7767
        acl_save_libdir="$libdir"
 
7768
        libdir="$found_dir"
 
7769
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7770
        libdir="$acl_save_libdir"
 
7771
        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
7772
      done
 
7773
    fi
 
7774
  fi
 
7775
  if test "X$ltrpathdirs" != "X"; then
 
7776
            for found_dir in $ltrpathdirs; do
 
7777
      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
 
7778
    done
 
7779
  fi
 
7780
 
 
7781
    ac_cv_libpth_libs="$LIBPTH"
 
7782
    ac_cv_libpth_ltlibs="$LTLIBPTH"
 
7783
    ac_cv_libpth_cppflags="$INCPTH"
 
7784
    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
 
7785
 
 
7786
fi
 
7787
{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
 
7788
echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
 
7789
  LIBPTH="$ac_cv_libpth_libs"
 
7790
  LTLIBPTH="$ac_cv_libpth_ltlibs"
 
7791
  INCPTH="$ac_cv_libpth_cppflags"
 
7792
  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
 
7793
 
 
7794
  for element in $INCPTH; do
 
7795
    haveit=
 
7796
    for x in $CPPFLAGS; do
 
7797
 
 
7798
  acl_save_prefix="$prefix"
 
7799
  prefix="$acl_final_prefix"
 
7800
  acl_save_exec_prefix="$exec_prefix"
 
7801
  exec_prefix="$acl_final_exec_prefix"
 
7802
  eval x=\"$x\"
 
7803
  exec_prefix="$acl_save_exec_prefix"
 
7804
  prefix="$acl_save_prefix"
 
7805
 
 
7806
      if test "X$x" = "X$element"; then
 
7807
        haveit=yes
 
7808
        break
 
7809
      fi
 
7810
    done
 
7811
    if test -z "$haveit"; then
 
7812
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
7813
    fi
 
7814
  done
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
      HAVE_LIBPTH=yes
 
7820
 
 
7821
 
 
7822
 
 
7823
      gl_have_pth=
 
7824
      gl_save_LIBS="$LIBS"
 
7825
      LIBS="$LIBS -lpth"
 
7826
      cat >conftest.$ac_ext <<_ACEOF
 
7827
/* confdefs.h.  */
 
7828
_ACEOF
 
7829
cat confdefs.h >>conftest.$ac_ext
 
7830
cat >>conftest.$ac_ext <<_ACEOF
 
7831
/* end confdefs.h.  */
 
7832
#include <pth.h>
 
7833
int
 
7834
main ()
 
7835
{
 
7836
pth_self();
 
7837
  ;
 
7838
  return 0;
 
7839
}
 
7840
_ACEOF
 
7841
rm -f conftest.$ac_objext conftest$ac_exeext
 
7842
if { (ac_try="$ac_link"
 
7843
case "(($ac_try" in
 
7844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7845
  *) ac_try_echo=$ac_try;;
 
7846
esac
 
7847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7848
  (eval "$ac_link") 2>conftest.er1
 
7849
  ac_status=$?
 
7850
  grep -v '^ *+' conftest.er1 >conftest.err
 
7851
  rm -f conftest.er1
 
7852
  cat conftest.err >&5
 
7853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7854
  (exit $ac_status); } && {
 
7855
         test -z "$ac_c_werror_flag" ||
 
7856
         test ! -s conftest.err
 
7857
       } && test -s conftest$ac_exeext &&
 
7858
       $as_test_x conftest$ac_exeext; then
 
7859
  gl_have_pth=yes
 
7860
else
 
7861
  echo "$as_me: failed program was:" >&5
 
7862
sed 's/^/| /' conftest.$ac_ext >&5
 
7863
 
 
7864
 
 
7865
fi
 
7866
 
 
7867
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7868
      conftest$ac_exeext conftest.$ac_ext
 
7869
      LIBS="$gl_save_LIBS"
 
7870
      if test -n "$gl_have_pth"; then
 
7871
        gl_threads_api=pth
 
7872
        LIBTHREAD="$LIBPTH"
 
7873
        LTLIBTHREAD="$LTLIBPTH"
 
7874
        LIBMULTITHREAD="$LIBTHREAD"
 
7875
        LTLIBMULTITHREAD="$LTLIBTHREAD"
 
7876
 
 
7877
cat >>confdefs.h <<\_ACEOF
 
7878
#define USE_PTH_THREADS 1
 
7879
_ACEOF
 
7880
 
 
7881
        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
7882
          if test $gl_have_weak = yes; then
 
7883
 
 
7884
cat >>confdefs.h <<\_ACEOF
 
7885
#define USE_PTH_THREADS_WEAK 1
 
7886
_ACEOF
 
7887
 
 
7888
            LIBTHREAD=
 
7889
            LTLIBTHREAD=
 
7890
          fi
 
7891
        fi
 
7892
      else
 
7893
        CPPFLAGS="$gl_save_CPPFLAGS"
 
7894
      fi
 
7895
    fi
 
7896
    if test -z "$gl_have_pthread"; then
 
7897
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
 
7898
        if { case "$host_os" in
 
7899
               mingw*) true;;
 
7900
               *) false;;
 
7901
             esac
 
7902
           }; then
 
7903
          gl_threads_api=win32
 
7904
 
 
7905
cat >>confdefs.h <<\_ACEOF
 
7906
#define USE_WIN32_THREADS 1
 
7907
_ACEOF
 
7908
 
 
7909
        fi
 
7910
      fi
 
7911
    fi
 
7912
  fi
 
7913
  { echo "$as_me:$LINENO: checking for multithread API to use" >&5
 
7914
echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
 
7915
  { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
 
7916
echo "${ECHO_T}$gl_threads_api" >&6; }
 
7917
 
 
7918
 
 
7919
 
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
3977
7932
 
3978
7933
 
3979
7934
 
4023
7978
      LIBICONV=
4024
7979
  LTLIBICONV=
4025
7980
  INCICONV=
 
7981
  LIBICONV_PREFIX=
4026
7982
  rpathdirs=
4027
7983
  ltrpathdirs=
4028
7984
  names_already_handled=
4056
8012
          found_la=
4057
8013
          found_so=
4058
8014
          found_a=
 
8015
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
8016
          if test -n "$acl_shlibext"; then
 
8017
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
8018
          else
 
8019
            shrext=
 
8020
          fi
4059
8021
          if test $use_additional = yes; then
4060
 
            if test -n "$shlibext" \
4061
 
               && { test -f "$additional_libdir/lib$name.$shlibext" \
4062
 
                    || { test "$shlibext" = dll \
4063
 
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
4064
 
              found_dir="$additional_libdir"
4065
 
              if test -f "$additional_libdir/lib$name.$shlibext"; then
4066
 
                found_so="$additional_libdir/lib$name.$shlibext"
 
8022
            dir="$additional_libdir"
 
8023
                                    if test -n "$acl_shlibext"; then
 
8024
              if test -f "$dir/$libname$shrext"; then
 
8025
                found_dir="$dir"
 
8026
                found_so="$dir/$libname$shrext"
4067
8027
              else
4068
 
                found_so="$additional_libdir/lib$name.dll.a"
4069
 
              fi
4070
 
              if test -f "$additional_libdir/lib$name.la"; then
4071
 
                found_la="$additional_libdir/lib$name.la"
4072
 
              fi
4073
 
            else
4074
 
              if test -f "$additional_libdir/lib$name.$libext"; then
4075
 
                found_dir="$additional_libdir"
4076
 
                found_a="$additional_libdir/lib$name.$libext"
4077
 
                if test -f "$additional_libdir/lib$name.la"; then
4078
 
                  found_la="$additional_libdir/lib$name.la"
 
8028
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8029
                  ver=`(cd "$dir" && \
 
8030
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
8031
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
8032
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8033
                        | sed 1q ) 2>/dev/null`
 
8034
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8035
                    found_dir="$dir"
 
8036
                    found_so="$dir/$libname$shrext.$ver"
 
8037
                  fi
 
8038
                else
 
8039
                  eval library_names=\"$acl_library_names_spec\"
 
8040
                  for f in $library_names; do
 
8041
                    if test -f "$dir/$f"; then
 
8042
                      found_dir="$dir"
 
8043
                      found_so="$dir/$f"
 
8044
                      break
 
8045
                    fi
 
8046
                  done
4079
8047
                fi
4080
8048
              fi
4081
8049
            fi
 
8050
                        if test "X$found_dir" = "X"; then
 
8051
              if test -f "$dir/$libname.$acl_libext"; then
 
8052
                found_dir="$dir"
 
8053
                found_a="$dir/$libname.$acl_libext"
 
8054
              fi
 
8055
            fi
 
8056
            if test "X$found_dir" != "X"; then
 
8057
              if test -f "$dir/$libname.la"; then
 
8058
                found_la="$dir/$libname.la"
 
8059
              fi
 
8060
            fi
4082
8061
          fi
4083
8062
          if test "X$found_dir" = "X"; then
4084
8063
            for x in $LDFLAGS $LTLIBICONV; do
4094
8073
              case "$x" in
4095
8074
                -L*)
4096
8075
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4097
 
                  if test -n "$shlibext" \
4098
 
                     && { test -f "$dir/lib$name.$shlibext" \
4099
 
                          || { test "$shlibext" = dll \
4100
 
                               && test -f "$dir/lib$name.dll.a"; }; }; then
4101
 
                    found_dir="$dir"
4102
 
                    if test -f "$dir/lib$name.$shlibext"; then
4103
 
                      found_so="$dir/lib$name.$shlibext"
 
8076
                                    if test -n "$acl_shlibext"; then
 
8077
                    if test -f "$dir/$libname$shrext"; then
 
8078
                      found_dir="$dir"
 
8079
                      found_so="$dir/$libname$shrext"
4104
8080
                    else
4105
 
                      found_so="$dir/lib$name.dll.a"
4106
 
                    fi
4107
 
                    if test -f "$dir/lib$name.la"; then
4108
 
                      found_la="$dir/lib$name.la"
4109
 
                    fi
4110
 
                  else
4111
 
                    if test -f "$dir/lib$name.$libext"; then
4112
 
                      found_dir="$dir"
4113
 
                      found_a="$dir/lib$name.$libext"
4114
 
                      if test -f "$dir/lib$name.la"; then
4115
 
                        found_la="$dir/lib$name.la"
 
8081
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8082
                        ver=`(cd "$dir" && \
 
8083
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
8084
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
8085
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8086
                              | sed 1q ) 2>/dev/null`
 
8087
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8088
                          found_dir="$dir"
 
8089
                          found_so="$dir/$libname$shrext.$ver"
 
8090
                        fi
 
8091
                      else
 
8092
                        eval library_names=\"$acl_library_names_spec\"
 
8093
                        for f in $library_names; do
 
8094
                          if test -f "$dir/$f"; then
 
8095
                            found_dir="$dir"
 
8096
                            found_so="$dir/$f"
 
8097
                            break
 
8098
                          fi
 
8099
                        done
4116
8100
                      fi
4117
8101
                    fi
4118
8102
                  fi
 
8103
                                    if test "X$found_dir" = "X"; then
 
8104
                    if test -f "$dir/$libname.$acl_libext"; then
 
8105
                      found_dir="$dir"
 
8106
                      found_a="$dir/$libname.$acl_libext"
 
8107
                    fi
 
8108
                  fi
 
8109
                  if test "X$found_dir" != "X"; then
 
8110
                    if test -f "$dir/$libname.la"; then
 
8111
                      found_la="$dir/$libname.la"
 
8112
                    fi
 
8113
                  fi
4119
8114
                  ;;
4120
8115
              esac
4121
8116
              if test "X$found_dir" != "X"; then
4139
8134
                if test -z "$haveit"; then
4140
8135
                  ltrpathdirs="$ltrpathdirs $found_dir"
4141
8136
                fi
4142
 
                                if test "$hardcode_direct" = yes; then
 
8137
                                if test "$acl_hardcode_direct" = yes; then
4143
8138
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4144
8139
                else
4145
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
8140
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4146
8141
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4147
8142
                                                            haveit=
4148
8143
                    for x in $rpathdirs; do
4174
8169
                    if test -z "$haveit"; then
4175
8170
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4176
8171
                    fi
4177
 
                    if test "$hardcode_minus_L" != no; then
 
8172
                    if test "$acl_hardcode_minus_L" != no; then
4178
8173
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4179
8174
                    else
4180
8175
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4193
8188
            case "$found_dir" in
4194
8189
              */$acl_libdirstem | */$acl_libdirstem/)
4195
8190
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
8191
                LIBICONV_PREFIX="$basedir"
4196
8192
                additional_includedir="$basedir/include"
4197
8193
                ;;
4198
8194
            esac
4343
8339
    done
4344
8340
  done
4345
8341
  if test "X$rpathdirs" != "X"; then
4346
 
    if test -n "$hardcode_libdir_separator"; then
 
8342
    if test -n "$acl_hardcode_libdir_separator"; then
4347
8343
                        alldirs=
4348
8344
      for found_dir in $rpathdirs; do
4349
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
8345
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4350
8346
      done
4351
8347
            acl_save_libdir="$libdir"
4352
8348
      libdir="$alldirs"
4353
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
8349
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
4354
8350
      libdir="$acl_save_libdir"
4355
8351
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4356
8352
    else
4357
8353
            for found_dir in $rpathdirs; do
4358
8354
        acl_save_libdir="$libdir"
4359
8355
        libdir="$found_dir"
4360
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
8356
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
4361
8357
        libdir="$acl_save_libdir"
4362
8358
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4363
8359
      done
4373
8369
 
4374
8370
 
4375
8371
 
4376
 
 
4377
 
 
4378
 
 
4379
 
 
4380
 
 
4381
 
 
4382
 
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
 
 
4389
 
 
4390
 
 
4391
 
 
4392
 
 
4393
 
 
4394
 
 
4395
 
 
4396
 
 
4397
 
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4398
 
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
4399
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4401
 
else
4402
 
  gt_save_LIBS="$LIBS"
4403
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4404
 
     cat >conftest.$ac_ext <<_ACEOF
4405
 
/* confdefs.h.  */
4406
 
_ACEOF
4407
 
cat confdefs.h >>conftest.$ac_ext
4408
 
cat >>conftest.$ac_ext <<_ACEOF
4409
 
/* end confdefs.h.  */
4410
 
#include <CoreFoundation/CFPreferences.h>
4411
 
int
4412
 
main ()
4413
 
{
4414
 
CFPreferencesCopyAppValue(NULL, NULL)
4415
 
  ;
4416
 
  return 0;
4417
 
}
4418
 
_ACEOF
4419
 
rm -f conftest.$ac_objext conftest$ac_exeext
4420
 
if { (ac_try="$ac_link"
4421
 
case "(($ac_try" in
4422
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423
 
  *) ac_try_echo=$ac_try;;
4424
 
esac
4425
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426
 
  (eval "$ac_link") 2>conftest.er1
4427
 
  ac_status=$?
4428
 
  grep -v '^ *+' conftest.er1 >conftest.err
4429
 
  rm -f conftest.er1
4430
 
  cat conftest.err >&5
4431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
 
  (exit $ac_status); } && {
4433
 
         test -z "$ac_c_werror_flag" ||
4434
 
         test ! -s conftest.err
4435
 
       } && test -s conftest$ac_exeext &&
4436
 
       $as_test_x conftest$ac_exeext; then
4437
 
  gt_cv_func_CFPreferencesCopyAppValue=yes
4438
 
else
4439
 
  echo "$as_me: failed program was:" >&5
4440
 
sed 's/^/| /' conftest.$ac_ext >&5
4441
 
 
4442
 
        gt_cv_func_CFPreferencesCopyAppValue=no
4443
 
fi
4444
 
 
4445
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446
 
      conftest$ac_exeext conftest.$ac_ext
4447
 
     LIBS="$gt_save_LIBS"
4448
 
fi
4449
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4450
 
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4451
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4452
 
 
4453
 
cat >>confdefs.h <<\_ACEOF
4454
 
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4455
 
_ACEOF
4456
 
 
4457
 
  fi
4458
 
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4459
 
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
4460
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4462
 
else
4463
 
  gt_save_LIBS="$LIBS"
4464
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4465
 
     cat >conftest.$ac_ext <<_ACEOF
4466
 
/* confdefs.h.  */
4467
 
_ACEOF
4468
 
cat confdefs.h >>conftest.$ac_ext
4469
 
cat >>conftest.$ac_ext <<_ACEOF
4470
 
/* end confdefs.h.  */
4471
 
#include <CoreFoundation/CFLocale.h>
4472
 
int
4473
 
main ()
4474
 
{
4475
 
CFLocaleCopyCurrent();
4476
 
  ;
4477
 
  return 0;
4478
 
}
4479
 
_ACEOF
4480
 
rm -f conftest.$ac_objext conftest$ac_exeext
4481
 
if { (ac_try="$ac_link"
4482
 
case "(($ac_try" in
4483
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484
 
  *) ac_try_echo=$ac_try;;
4485
 
esac
4486
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487
 
  (eval "$ac_link") 2>conftest.er1
4488
 
  ac_status=$?
4489
 
  grep -v '^ *+' conftest.er1 >conftest.err
4490
 
  rm -f conftest.er1
4491
 
  cat conftest.err >&5
4492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
 
  (exit $ac_status); } && {
4494
 
         test -z "$ac_c_werror_flag" ||
4495
 
         test ! -s conftest.err
4496
 
       } && test -s conftest$ac_exeext &&
4497
 
       $as_test_x conftest$ac_exeext; then
4498
 
  gt_cv_func_CFLocaleCopyCurrent=yes
4499
 
else
4500
 
  echo "$as_me: failed program was:" >&5
4501
 
sed 's/^/| /' conftest.$ac_ext >&5
4502
 
 
4503
 
        gt_cv_func_CFLocaleCopyCurrent=no
4504
 
fi
4505
 
 
4506
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507
 
      conftest$ac_exeext conftest.$ac_ext
4508
 
     LIBS="$gt_save_LIBS"
4509
 
fi
4510
 
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4511
 
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4512
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4513
 
 
4514
 
cat >>confdefs.h <<\_ACEOF
4515
 
#define HAVE_CFLOCALECOPYCURRENT 1
4516
 
_ACEOF
4517
 
 
4518
 
  fi
4519
 
  INTL_MACOSX_LIBS=
4520
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4521
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4522
 
  fi
4523
 
 
4524
 
 
4525
 
 
4526
 
 
4527
 
 
4528
 
 
4529
 
  LIBINTL=
4530
 
  LTLIBINTL=
4531
 
  POSUB=
4532
 
 
4533
 
    case " $gt_needs " in
4534
 
    *" need-formatstring-macros "*) gt_api_version=3 ;;
4535
 
    *" need-ngettext "*) gt_api_version=2 ;;
4536
 
    *) gt_api_version=1 ;;
4537
 
  esac
4538
 
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
4539
 
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
4540
 
 
4541
 
    if test "$USE_NLS" = "yes"; then
4542
 
    gt_use_preinstalled_gnugettext=no
4543
 
 
4544
 
 
4545
 
        if test $gt_api_version -ge 3; then
4546
 
          gt_revision_test_code='[
4547
 
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
4548
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
4549
 
#endif
4550
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
4551
 
]'
4552
 
        else
4553
 
          gt_revision_test_code=
4554
 
        fi
4555
 
        if test $gt_api_version -ge 2; then
4556
 
          gt_expression_test_code=' + * ngettext ("", "", 0)'
4557
 
        else
4558
 
          gt_expression_test_code=
4559
 
        fi
4560
 
 
4561
 
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4562
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4563
 
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
4564
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4565
 
else
4566
 
  cat >conftest.$ac_ext <<_ACEOF
4567
 
/* confdefs.h.  */
4568
 
_ACEOF
4569
 
cat confdefs.h >>conftest.$ac_ext
4570
 
cat >>conftest.$ac_ext <<_ACEOF
4571
 
/* end confdefs.h.  */
4572
 
#include <libintl.h>
4573
 
$gt_revision_test_code
4574
 
extern int _nl_msg_cat_cntr;
4575
 
extern int *_nl_domain_bindings;
4576
 
int
4577
 
main ()
4578
 
{
4579
 
bindtextdomain ("", "");
4580
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
4581
 
  ;
4582
 
  return 0;
4583
 
}
4584
 
_ACEOF
4585
 
rm -f conftest.$ac_objext conftest$ac_exeext
4586
 
if { (ac_try="$ac_link"
4587
 
case "(($ac_try" in
4588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589
 
  *) ac_try_echo=$ac_try;;
4590
 
esac
4591
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592
 
  (eval "$ac_link") 2>conftest.er1
4593
 
  ac_status=$?
4594
 
  grep -v '^ *+' conftest.er1 >conftest.err
4595
 
  rm -f conftest.er1
4596
 
  cat conftest.err >&5
4597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598
 
  (exit $ac_status); } && {
4599
 
         test -z "$ac_c_werror_flag" ||
4600
 
         test ! -s conftest.err
4601
 
       } && test -s conftest$ac_exeext &&
4602
 
       $as_test_x conftest$ac_exeext; then
4603
 
  eval "$gt_func_gnugettext_libc=yes"
4604
 
else
4605
 
  echo "$as_me: failed program was:" >&5
4606
 
sed 's/^/| /' conftest.$ac_ext >&5
4607
 
 
4608
 
        eval "$gt_func_gnugettext_libc=no"
4609
 
fi
4610
 
 
4611
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4612
 
      conftest$ac_exeext conftest.$ac_ext
4613
 
fi
4614
 
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
4615
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4616
 
echo "${ECHO_T}$ac_res" >&6; }
4617
 
 
4618
 
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
8372
  cat >conftest.$ac_ext <<_ACEOF
 
8373
/* confdefs.h.  */
 
8374
_ACEOF
 
8375
cat confdefs.h >>conftest.$ac_ext
 
8376
cat >>conftest.$ac_ext <<_ACEOF
 
8377
/* end confdefs.h.  */
 
8378
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
 
8379
int
 
8380
main ()
 
8381
{
 
8382
 
 
8383
  ;
 
8384
  return 0;
 
8385
}
 
8386
_ACEOF
 
8387
rm -f conftest.$ac_objext conftest$ac_exeext
 
8388
if { (ac_try="$ac_link"
 
8389
case "(($ac_try" in
 
8390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8391
  *) ac_try_echo=$ac_try;;
 
8392
esac
 
8393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8394
  (eval "$ac_link") 2>conftest.er1
 
8395
  ac_status=$?
 
8396
  grep -v '^ *+' conftest.er1 >conftest.err
 
8397
  rm -f conftest.er1
 
8398
  cat conftest.err >&5
 
8399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8400
  (exit $ac_status); } && {
 
8401
         test -z "$ac_c_werror_flag" ||
 
8402
         test ! -s conftest.err
 
8403
       } && test -s conftest$ac_exeext &&
 
8404
       $as_test_x conftest$ac_exeext; then
 
8405
 
 
8406
cat >>confdefs.h <<\_ACEOF
 
8407
#define HAVE_BUILTIN_EXPECT 1
 
8408
_ACEOF
 
8409
 
 
8410
else
 
8411
  echo "$as_me: failed program was:" >&5
 
8412
sed 's/^/| /' conftest.$ac_ext >&5
 
8413
 
 
8414
 
 
8415
fi
 
8416
 
 
8417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8418
      conftest$ac_exeext conftest.$ac_ext
 
8419
 
 
8420
 
 
8421
 
 
8422
 
 
8423
 
 
8424
 
 
8425
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
 
8426
do
 
8427
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8428
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8429
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8430
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8431
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8433
fi
 
8434
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8435
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8436
echo "${ECHO_T}$ac_res" >&6; }
 
8437
else
 
8438
  # Is the header compilable?
 
8439
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8440
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
8441
cat >conftest.$ac_ext <<_ACEOF
 
8442
/* confdefs.h.  */
 
8443
_ACEOF
 
8444
cat confdefs.h >>conftest.$ac_ext
 
8445
cat >>conftest.$ac_ext <<_ACEOF
 
8446
/* end confdefs.h.  */
 
8447
$ac_includes_default
 
8448
#include <$ac_header>
 
8449
_ACEOF
 
8450
rm -f conftest.$ac_objext
 
8451
if { (ac_try="$ac_compile"
 
8452
case "(($ac_try" in
 
8453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8454
  *) ac_try_echo=$ac_try;;
 
8455
esac
 
8456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8457
  (eval "$ac_compile") 2>conftest.er1
 
8458
  ac_status=$?
 
8459
  grep -v '^ *+' conftest.er1 >conftest.err
 
8460
  rm -f conftest.er1
 
8461
  cat conftest.err >&5
 
8462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8463
  (exit $ac_status); } && {
 
8464
         test -z "$ac_c_werror_flag" ||
 
8465
         test ! -s conftest.err
 
8466
       } && test -s conftest.$ac_objext; then
 
8467
  ac_header_compiler=yes
 
8468
else
 
8469
  echo "$as_me: failed program was:" >&5
 
8470
sed 's/^/| /' conftest.$ac_ext >&5
 
8471
 
 
8472
        ac_header_compiler=no
 
8473
fi
 
8474
 
 
8475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8476
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8477
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
8478
 
 
8479
# Is the header present?
 
8480
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8481
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
8482
cat >conftest.$ac_ext <<_ACEOF
 
8483
/* confdefs.h.  */
 
8484
_ACEOF
 
8485
cat confdefs.h >>conftest.$ac_ext
 
8486
cat >>conftest.$ac_ext <<_ACEOF
 
8487
/* end confdefs.h.  */
 
8488
#include <$ac_header>
 
8489
_ACEOF
 
8490
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8491
case "(($ac_try" in
 
8492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8493
  *) ac_try_echo=$ac_try;;
 
8494
esac
 
8495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8496
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8497
  ac_status=$?
 
8498
  grep -v '^ *+' conftest.er1 >conftest.err
 
8499
  rm -f conftest.er1
 
8500
  cat conftest.err >&5
 
8501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8502
  (exit $ac_status); } >/dev/null && {
 
8503
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8504
         test ! -s conftest.err
 
8505
       }; then
 
8506
  ac_header_preproc=yes
 
8507
else
 
8508
  echo "$as_me: failed program was:" >&5
 
8509
sed 's/^/| /' conftest.$ac_ext >&5
 
8510
 
 
8511
  ac_header_preproc=no
 
8512
fi
 
8513
 
 
8514
rm -f conftest.err conftest.$ac_ext
 
8515
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8516
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
8517
 
 
8518
# So?  What about this header?
 
8519
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8520
  yes:no: )
 
8521
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8522
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8523
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8524
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8525
    ac_header_preproc=yes
 
8526
    ;;
 
8527
  no:yes:* )
 
8528
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8529
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8530
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8531
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8532
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8533
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8534
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8535
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8536
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8537
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8538
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8539
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8540
    ( cat <<\_ASBOX
 
8541
## ----------------------------------------------------------- ##
 
8542
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
8543
## ----------------------------------------------------------- ##
 
8544
_ASBOX
 
8545
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
8546
    ;;
 
8547
esac
 
8548
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8550
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8552
else
 
8553
  eval "$as_ac_Header=\$ac_header_preproc"
 
8554
fi
 
8555
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8556
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8557
echo "${ECHO_T}$ac_res" >&6; }
 
8558
 
 
8559
fi
 
8560
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8561
  cat >>confdefs.h <<_ACEOF
 
8562
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8563
_ACEOF
 
8564
 
 
8565
fi
 
8566
 
 
8567
done
 
8568
 
 
8569
 
 
8570
 
 
8571
 
 
8572
 
 
8573
 
 
8574
 
 
8575
 
 
8576
 
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
 
 
8583
 
 
8584
 
 
8585
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
 
8586
    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
 
8587
    argz_next __fsetlocking
 
8588
do
 
8589
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8590
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8591
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8592
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8594
else
 
8595
  cat >conftest.$ac_ext <<_ACEOF
 
8596
/* confdefs.h.  */
 
8597
_ACEOF
 
8598
cat confdefs.h >>conftest.$ac_ext
 
8599
cat >>conftest.$ac_ext <<_ACEOF
 
8600
/* end confdefs.h.  */
 
8601
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8602
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8603
#define $ac_func innocuous_$ac_func
 
8604
 
 
8605
/* System header to define __stub macros and hopefully few prototypes,
 
8606
    which can conflict with char $ac_func (); below.
 
8607
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8608
    <limits.h> exists even on freestanding compilers.  */
 
8609
 
 
8610
#ifdef __STDC__
 
8611
# include <limits.h>
 
8612
#else
 
8613
# include <assert.h>
 
8614
#endif
 
8615
 
 
8616
#undef $ac_func
 
8617
 
 
8618
/* Override any GCC internal prototype to avoid an error.
 
8619
   Use char because int might match the return type of a GCC
 
8620
   builtin and then its argument prototype would still apply.  */
 
8621
#ifdef __cplusplus
 
8622
extern "C"
 
8623
#endif
 
8624
char $ac_func ();
 
8625
/* The GNU C library defines this for functions which it implements
 
8626
    to always fail with ENOSYS.  Some functions are actually named
 
8627
    something starting with __ and the normal name is an alias.  */
 
8628
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8629
choke me
 
8630
#endif
 
8631
 
 
8632
int
 
8633
main ()
 
8634
{
 
8635
return $ac_func ();
 
8636
  ;
 
8637
  return 0;
 
8638
}
 
8639
_ACEOF
 
8640
rm -f conftest.$ac_objext conftest$ac_exeext
 
8641
if { (ac_try="$ac_link"
 
8642
case "(($ac_try" in
 
8643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8644
  *) ac_try_echo=$ac_try;;
 
8645
esac
 
8646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8647
  (eval "$ac_link") 2>conftest.er1
 
8648
  ac_status=$?
 
8649
  grep -v '^ *+' conftest.er1 >conftest.err
 
8650
  rm -f conftest.er1
 
8651
  cat conftest.err >&5
 
8652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8653
  (exit $ac_status); } && {
 
8654
         test -z "$ac_c_werror_flag" ||
 
8655
         test ! -s conftest.err
 
8656
       } && test -s conftest$ac_exeext &&
 
8657
       $as_test_x conftest$ac_exeext; then
 
8658
  eval "$as_ac_var=yes"
 
8659
else
 
8660
  echo "$as_me: failed program was:" >&5
 
8661
sed 's/^/| /' conftest.$ac_ext >&5
 
8662
 
 
8663
        eval "$as_ac_var=no"
 
8664
fi
 
8665
 
 
8666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8667
      conftest$ac_exeext conftest.$ac_ext
 
8668
fi
 
8669
ac_res=`eval echo '${'$as_ac_var'}'`
 
8670
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8671
echo "${ECHO_T}$ac_res" >&6; }
 
8672
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8673
  cat >>confdefs.h <<_ACEOF
 
8674
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8675
_ACEOF
 
8676
 
 
8677
fi
 
8678
done
 
8679
 
 
8680
 
 
8681
 
 
8682
  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
8683
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
 
8684
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
8685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8686
else
 
8687
  cat >conftest.$ac_ext <<_ACEOF
 
8688
/* confdefs.h.  */
 
8689
_ACEOF
 
8690
cat confdefs.h >>conftest.$ac_ext
 
8691
cat >>conftest.$ac_ext <<_ACEOF
 
8692
/* end confdefs.h.  */
 
8693
#include <stdio.h>
 
8694
int
 
8695
main ()
 
8696
{
 
8697
 
 
8698
#ifndef feof_unlocked
 
8699
  char *p = (char *) feof_unlocked;
 
8700
#endif
 
8701
 
 
8702
  ;
 
8703
  return 0;
 
8704
}
 
8705
_ACEOF
 
8706
rm -f conftest.$ac_objext
 
8707
if { (ac_try="$ac_compile"
 
8708
case "(($ac_try" in
 
8709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8710
  *) ac_try_echo=$ac_try;;
 
8711
esac
 
8712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8713
  (eval "$ac_compile") 2>conftest.er1
 
8714
  ac_status=$?
 
8715
  grep -v '^ *+' conftest.er1 >conftest.err
 
8716
  rm -f conftest.er1
 
8717
  cat conftest.err >&5
 
8718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8719
  (exit $ac_status); } && {
 
8720
         test -z "$ac_c_werror_flag" ||
 
8721
         test ! -s conftest.err
 
8722
       } && test -s conftest.$ac_objext; then
 
8723
  ac_cv_have_decl_feof_unlocked=yes
 
8724
else
 
8725
  echo "$as_me: failed program was:" >&5
 
8726
sed 's/^/| /' conftest.$ac_ext >&5
 
8727
 
 
8728
        ac_cv_have_decl_feof_unlocked=no
 
8729
fi
 
8730
 
 
8731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8732
fi
 
8733
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
8734
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
 
8735
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
8736
    gt_value=1
 
8737
  else
 
8738
    gt_value=0
 
8739
  fi
 
8740
 
 
8741
cat >>confdefs.h <<_ACEOF
 
8742
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
8743
_ACEOF
 
8744
 
 
8745
 
 
8746
 
 
8747
  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
8748
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
 
8749
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
8750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8751
else
 
8752
  cat >conftest.$ac_ext <<_ACEOF
 
8753
/* confdefs.h.  */
 
8754
_ACEOF
 
8755
cat confdefs.h >>conftest.$ac_ext
 
8756
cat >>conftest.$ac_ext <<_ACEOF
 
8757
/* end confdefs.h.  */
 
8758
#include <stdio.h>
 
8759
int
 
8760
main ()
 
8761
{
 
8762
 
 
8763
#ifndef fgets_unlocked
 
8764
  char *p = (char *) fgets_unlocked;
 
8765
#endif
 
8766
 
 
8767
  ;
 
8768
  return 0;
 
8769
}
 
8770
_ACEOF
 
8771
rm -f conftest.$ac_objext
 
8772
if { (ac_try="$ac_compile"
 
8773
case "(($ac_try" in
 
8774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8775
  *) ac_try_echo=$ac_try;;
 
8776
esac
 
8777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8778
  (eval "$ac_compile") 2>conftest.er1
 
8779
  ac_status=$?
 
8780
  grep -v '^ *+' conftest.er1 >conftest.err
 
8781
  rm -f conftest.er1
 
8782
  cat conftest.err >&5
 
8783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8784
  (exit $ac_status); } && {
 
8785
         test -z "$ac_c_werror_flag" ||
 
8786
         test ! -s conftest.err
 
8787
       } && test -s conftest.$ac_objext; then
 
8788
  ac_cv_have_decl_fgets_unlocked=yes
 
8789
else
 
8790
  echo "$as_me: failed program was:" >&5
 
8791
sed 's/^/| /' conftest.$ac_ext >&5
 
8792
 
 
8793
        ac_cv_have_decl_fgets_unlocked=no
 
8794
fi
 
8795
 
 
8796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8797
fi
 
8798
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
8799
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
 
8800
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
8801
    gt_value=1
 
8802
  else
 
8803
    gt_value=0
 
8804
  fi
 
8805
 
 
8806
cat >>confdefs.h <<_ACEOF
 
8807
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
8808
_ACEOF
 
8809
 
 
8810
 
 
8811
 
4619
8812
 
4620
8813
 
4621
8814
 
4757
8950
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4758
8951
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4759
8952
  if test "$am_cv_func_iconv" = yes; then
 
8953
    { echo "$as_me:$LINENO: checking for working iconv" >&5
 
8954
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
 
8955
if test "${am_cv_func_iconv_works+set}" = set; then
 
8956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8957
else
 
8958
 
 
8959
            am_save_LIBS="$LIBS"
 
8960
      if test $am_cv_lib_iconv = yes; then
 
8961
        LIBS="$LIBS $LIBICONV"
 
8962
      fi
 
8963
      if test "$cross_compiling" = yes; then
 
8964
  case "$host_os" in
 
8965
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
8966
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
8967
         esac
 
8968
else
 
8969
  cat >conftest.$ac_ext <<_ACEOF
 
8970
/* confdefs.h.  */
 
8971
_ACEOF
 
8972
cat confdefs.h >>conftest.$ac_ext
 
8973
cat >>conftest.$ac_ext <<_ACEOF
 
8974
/* end confdefs.h.  */
 
8975
 
 
8976
#include <iconv.h>
 
8977
#include <string.h>
 
8978
int main ()
 
8979
{
 
8980
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
8981
     returns.  */
 
8982
  {
 
8983
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
8984
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
8985
      {
 
8986
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
8987
        char buf[10];
 
8988
        const char *inptr = input;
 
8989
        size_t inbytesleft = strlen (input);
 
8990
        char *outptr = buf;
 
8991
        size_t outbytesleft = sizeof (buf);
 
8992
        size_t res = iconv (cd_utf8_to_88591,
 
8993
                            (char **) &inptr, &inbytesleft,
 
8994
                            &outptr, &outbytesleft);
 
8995
        if (res == 0)
 
8996
          return 1;
 
8997
      }
 
8998
  }
 
8999
#if 0 /* This bug could be worked around by the caller.  */
 
9000
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
9001
  {
 
9002
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
9003
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
9004
      {
 
9005
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
9006
        char buf[50];
 
9007
        const char *inptr = input;
 
9008
        size_t inbytesleft = strlen (input);
 
9009
        char *outptr = buf;
 
9010
        size_t outbytesleft = sizeof (buf);
 
9011
        size_t res = iconv (cd_88591_to_utf8,
 
9012
                            (char **) &inptr, &inbytesleft,
 
9013
                            &outptr, &outbytesleft);
 
9014
        if ((int)res > 0)
 
9015
          return 1;
 
9016
      }
 
9017
  }
 
9018
#endif
 
9019
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
9020
     provided.  */
 
9021
  if (/* Try standardized names.  */
 
9022
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
9023
      /* Try IRIX, OSF/1 names.  */
 
9024
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
9025
      /* Try AIX names.  */
 
9026
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
9027
      /* Try HP-UX names.  */
 
9028
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
9029
    return 1;
 
9030
  return 0;
 
9031
}
 
9032
_ACEOF
 
9033
rm -f conftest$ac_exeext
 
9034
if { (ac_try="$ac_link"
 
9035
case "(($ac_try" in
 
9036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9037
  *) ac_try_echo=$ac_try;;
 
9038
esac
 
9039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9040
  (eval "$ac_link") 2>&5
 
9041
  ac_status=$?
 
9042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9043
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9044
  { (case "(($ac_try" in
 
9045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9046
  *) ac_try_echo=$ac_try;;
 
9047
esac
 
9048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9049
  (eval "$ac_try") 2>&5
 
9050
  ac_status=$?
 
9051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9052
  (exit $ac_status); }; }; then
 
9053
  am_cv_func_iconv_works=yes
 
9054
else
 
9055
  echo "$as_me: program exited with status $ac_status" >&5
 
9056
echo "$as_me: failed program was:" >&5
 
9057
sed 's/^/| /' conftest.$ac_ext >&5
 
9058
 
 
9059
( exit $ac_status )
 
9060
am_cv_func_iconv_works=no
 
9061
fi
 
9062
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9063
fi
 
9064
 
 
9065
 
 
9066
      LIBS="$am_save_LIBS"
 
9067
 
 
9068
fi
 
9069
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
9070
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
 
9071
    case "$am_cv_func_iconv_works" in
 
9072
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
9073
      *)   am_func_iconv=yes ;;
 
9074
    esac
 
9075
  else
 
9076
    am_func_iconv=no am_cv_lib_iconv=no
 
9077
  fi
 
9078
  if test "$am_func_iconv" = yes; then
4760
9079
 
4761
9080
cat >>confdefs.h <<\_ACEOF
4762
9081
#define HAVE_ICONV 1
4776
9095
 
4777
9096
 
4778
9097
 
 
9098
  if test "$am_cv_func_iconv" = yes; then
 
9099
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
9100
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
 
9101
    if test "${am_cv_proto_iconv+set}" = set; then
 
9102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9103
else
 
9104
 
 
9105
      cat >conftest.$ac_ext <<_ACEOF
 
9106
/* confdefs.h.  */
 
9107
_ACEOF
 
9108
cat confdefs.h >>conftest.$ac_ext
 
9109
cat >>conftest.$ac_ext <<_ACEOF
 
9110
/* end confdefs.h.  */
 
9111
 
 
9112
#include <stdlib.h>
 
9113
#include <iconv.h>
 
9114
extern
 
9115
#ifdef __cplusplus
 
9116
"C"
 
9117
#endif
 
9118
#if defined(__STDC__) || defined(__cplusplus)
 
9119
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
9120
#else
 
9121
size_t iconv();
 
9122
#endif
 
9123
 
 
9124
int
 
9125
main ()
 
9126
{
 
9127
 
 
9128
  ;
 
9129
  return 0;
 
9130
}
 
9131
_ACEOF
 
9132
rm -f conftest.$ac_objext
 
9133
if { (ac_try="$ac_compile"
 
9134
case "(($ac_try" in
 
9135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9136
  *) ac_try_echo=$ac_try;;
 
9137
esac
 
9138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9139
  (eval "$ac_compile") 2>conftest.er1
 
9140
  ac_status=$?
 
9141
  grep -v '^ *+' conftest.er1 >conftest.err
 
9142
  rm -f conftest.er1
 
9143
  cat conftest.err >&5
 
9144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9145
  (exit $ac_status); } && {
 
9146
         test -z "$ac_c_werror_flag" ||
 
9147
         test ! -s conftest.err
 
9148
       } && test -s conftest.$ac_objext; then
 
9149
  am_cv_proto_iconv_arg1=""
 
9150
else
 
9151
  echo "$as_me: failed program was:" >&5
 
9152
sed 's/^/| /' conftest.$ac_ext >&5
 
9153
 
 
9154
        am_cv_proto_iconv_arg1="const"
 
9155
fi
 
9156
 
 
9157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9158
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
9159
fi
 
9160
 
 
9161
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
9162
    { echo "$as_me:$LINENO: result: ${ac_t:-
 
9163
         }$am_cv_proto_iconv" >&5
 
9164
echo "${ECHO_T}${ac_t:-
 
9165
         }$am_cv_proto_iconv" >&6; }
 
9166
 
 
9167
cat >>confdefs.h <<_ACEOF
 
9168
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
9169
_ACEOF
 
9170
 
 
9171
  fi
 
9172
 
 
9173
 
 
9174
      { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
 
9175
echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
 
9176
if test "${gt_cv_nl_locale_name+set}" = set; then
 
9177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9178
else
 
9179
  cat >conftest.$ac_ext <<_ACEOF
 
9180
/* confdefs.h.  */
 
9181
_ACEOF
 
9182
cat confdefs.h >>conftest.$ac_ext
 
9183
cat >>conftest.$ac_ext <<_ACEOF
 
9184
/* end confdefs.h.  */
 
9185
#include <langinfo.h>
 
9186
#include <locale.h>
 
9187
int
 
9188
main ()
 
9189
{
 
9190
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
 
9191
       return !cs;
 
9192
 
 
9193
  ;
 
9194
  return 0;
 
9195
}
 
9196
_ACEOF
 
9197
rm -f conftest.$ac_objext conftest$ac_exeext
 
9198
if { (ac_try="$ac_link"
 
9199
case "(($ac_try" in
 
9200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9201
  *) ac_try_echo=$ac_try;;
 
9202
esac
 
9203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9204
  (eval "$ac_link") 2>conftest.er1
 
9205
  ac_status=$?
 
9206
  grep -v '^ *+' conftest.er1 >conftest.err
 
9207
  rm -f conftest.er1
 
9208
  cat conftest.err >&5
 
9209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9210
  (exit $ac_status); } && {
 
9211
         test -z "$ac_c_werror_flag" ||
 
9212
         test ! -s conftest.err
 
9213
       } && test -s conftest$ac_exeext &&
 
9214
       $as_test_x conftest$ac_exeext; then
 
9215
  gt_cv_nl_locale_name=yes
 
9216
else
 
9217
  echo "$as_me: failed program was:" >&5
 
9218
sed 's/^/| /' conftest.$ac_ext >&5
 
9219
 
 
9220
        gt_cv_nl_locale_name=no
 
9221
fi
 
9222
 
 
9223
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9224
      conftest$ac_exeext conftest.$ac_ext
 
9225
 
 
9226
fi
 
9227
{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
 
9228
echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
 
9229
  if test $gt_cv_nl_locale_name = yes; then
 
9230
 
 
9231
cat >>confdefs.h <<\_ACEOF
 
9232
#define HAVE_NL_LOCALE_NAME 1
 
9233
_ACEOF
 
9234
 
 
9235
  fi
 
9236
 
 
9237
                      for ac_prog in bison
 
9238
do
 
9239
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9240
set dummy $ac_prog; ac_word=$2
 
9241
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9242
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9243
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
9244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9245
else
 
9246
  if test -n "$INTLBISON"; then
 
9247
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
9248
else
 
9249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9250
for as_dir in $PATH
 
9251
do
 
9252
  IFS=$as_save_IFS
 
9253
  test -z "$as_dir" && as_dir=.
 
9254
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9256
    ac_cv_prog_INTLBISON="$ac_prog"
 
9257
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9258
    break 2
 
9259
  fi
 
9260
done
 
9261
done
 
9262
IFS=$as_save_IFS
 
9263
 
 
9264
fi
 
9265
fi
 
9266
INTLBISON=$ac_cv_prog_INTLBISON
 
9267
if test -n "$INTLBISON"; then
 
9268
  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
9269
echo "${ECHO_T}$INTLBISON" >&6; }
 
9270
else
 
9271
  { echo "$as_me:$LINENO: result: no" >&5
 
9272
echo "${ECHO_T}no" >&6; }
 
9273
fi
 
9274
 
 
9275
 
 
9276
  test -n "$INTLBISON" && break
 
9277
done
 
9278
 
 
9279
  if test -z "$INTLBISON"; then
 
9280
    ac_verc_fail=yes
 
9281
  else
 
9282
        { echo "$as_me:$LINENO: checking version of bison" >&5
 
9283
echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
 
9284
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
9285
    case $ac_prog_version in
 
9286
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
9287
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
9288
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
9289
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
9290
    esac
 
9291
    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
9292
echo "${ECHO_T}$ac_prog_version" >&6; }
 
9293
  fi
 
9294
  if test $ac_verc_fail = yes; then
 
9295
    INTLBISON=:
 
9296
  fi
 
9297
 
 
9298
 
 
9299
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
9300
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
9301
if test "${ac_cv_type_long_long_int+set}" = set; then
 
9302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9303
else
 
9304
  cat >conftest.$ac_ext <<_ACEOF
 
9305
 
 
9306
  /* confdefs.h.  */
 
9307
_ACEOF
 
9308
cat confdefs.h >>conftest.$ac_ext
 
9309
cat >>conftest.$ac_ext <<_ACEOF
 
9310
/* end confdefs.h.  */
 
9311
/* Test preprocessor.  */
 
9312
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
9313
        error in preprocessor;
 
9314
      #endif
 
9315
      #if ! (18446744073709551615ULL <= -1ull)
 
9316
        error in preprocessor;
 
9317
      #endif
 
9318
      /* Test literals.  */
 
9319
      long long int ll = 9223372036854775807ll;
 
9320
      long long int nll = -9223372036854775807LL;
 
9321
      unsigned long long int ull = 18446744073709551615ULL;
 
9322
      /* Test constant expressions.   */
 
9323
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
9324
                     ? 1 : -1)];
 
9325
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
9326
                     ? 1 : -1)];
 
9327
      int i = 63;
 
9328
int
 
9329
main ()
 
9330
{
 
9331
/* Test availability of runtime routines for shift and division.  */
 
9332
      long long int llmax = 9223372036854775807ll;
 
9333
      unsigned long long int ullmax = 18446744073709551615ull;
 
9334
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
9335
              | (llmax / ll) | (llmax % ll)
 
9336
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
9337
              | (ullmax / ull) | (ullmax % ull));
 
9338
  ;
 
9339
  return 0;
 
9340
}
 
9341
 
 
9342
_ACEOF
 
9343
rm -f conftest.$ac_objext conftest$ac_exeext
 
9344
if { (ac_try="$ac_link"
 
9345
case "(($ac_try" in
 
9346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9347
  *) ac_try_echo=$ac_try;;
 
9348
esac
 
9349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9350
  (eval "$ac_link") 2>conftest.er1
 
9351
  ac_status=$?
 
9352
  grep -v '^ *+' conftest.er1 >conftest.err
 
9353
  rm -f conftest.er1
 
9354
  cat conftest.err >&5
 
9355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9356
  (exit $ac_status); } && {
 
9357
         test -z "$ac_c_werror_flag" ||
 
9358
         test ! -s conftest.err
 
9359
       } && test -s conftest$ac_exeext &&
 
9360
       $as_test_x conftest$ac_exeext; then
 
9361
                        if test "$cross_compiling" = yes; then
 
9362
  ac_cv_type_long_long_int=yes
 
9363
else
 
9364
  cat >conftest.$ac_ext <<_ACEOF
 
9365
/* confdefs.h.  */
 
9366
_ACEOF
 
9367
cat confdefs.h >>conftest.$ac_ext
 
9368
cat >>conftest.$ac_ext <<_ACEOF
 
9369
/* end confdefs.h.  */
 
9370
#include <limits.h>
 
9371
               #ifndef LLONG_MAX
 
9372
               # define HALF \
 
9373
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
9374
               # define LLONG_MAX (HALF - 1 + HALF)
 
9375
               #endif
 
9376
int
 
9377
main ()
 
9378
{
 
9379
long long int n = 1;
 
9380
               int i;
 
9381
               for (i = 0; ; i++)
 
9382
                 {
 
9383
                   long long int m = n << i;
 
9384
                   if (m >> i != n)
 
9385
                     return 1;
 
9386
                   if (LLONG_MAX / 2 < m)
 
9387
                     break;
 
9388
                 }
 
9389
               return 0;
 
9390
  ;
 
9391
  return 0;
 
9392
}
 
9393
_ACEOF
 
9394
rm -f conftest$ac_exeext
 
9395
if { (ac_try="$ac_link"
 
9396
case "(($ac_try" in
 
9397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9398
  *) ac_try_echo=$ac_try;;
 
9399
esac
 
9400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9401
  (eval "$ac_link") 2>&5
 
9402
  ac_status=$?
 
9403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9404
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9405
  { (case "(($ac_try" in
 
9406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9407
  *) ac_try_echo=$ac_try;;
 
9408
esac
 
9409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9410
  (eval "$ac_try") 2>&5
 
9411
  ac_status=$?
 
9412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9413
  (exit $ac_status); }; }; then
 
9414
  ac_cv_type_long_long_int=yes
 
9415
else
 
9416
  echo "$as_me: program exited with status $ac_status" >&5
 
9417
echo "$as_me: failed program was:" >&5
 
9418
sed 's/^/| /' conftest.$ac_ext >&5
 
9419
 
 
9420
( exit $ac_status )
 
9421
ac_cv_type_long_long_int=no
 
9422
fi
 
9423
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9424
fi
 
9425
 
 
9426
 
 
9427
else
 
9428
  echo "$as_me: failed program was:" >&5
 
9429
sed 's/^/| /' conftest.$ac_ext >&5
 
9430
 
 
9431
        ac_cv_type_long_long_int=no
 
9432
fi
 
9433
 
 
9434
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9435
      conftest$ac_exeext conftest.$ac_ext
 
9436
fi
 
9437
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
9438
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
9439
  if test $ac_cv_type_long_long_int = yes; then
 
9440
 
 
9441
cat >>confdefs.h <<\_ACEOF
 
9442
#define HAVE_LONG_LONG_INT 1
 
9443
_ACEOF
 
9444
 
 
9445
  fi
 
9446
 
 
9447
 
 
9448
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
9449
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
9450
if test "${gt_cv_c_wchar_t+set}" = set; then
 
9451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9452
else
 
9453
  cat >conftest.$ac_ext <<_ACEOF
 
9454
/* confdefs.h.  */
 
9455
_ACEOF
 
9456
cat confdefs.h >>conftest.$ac_ext
 
9457
cat >>conftest.$ac_ext <<_ACEOF
 
9458
/* end confdefs.h.  */
 
9459
#include <stddef.h>
 
9460
       wchar_t foo = (wchar_t)'\0';
 
9461
int
 
9462
main ()
 
9463
{
 
9464
 
 
9465
  ;
 
9466
  return 0;
 
9467
}
 
9468
_ACEOF
 
9469
rm -f conftest.$ac_objext
 
9470
if { (ac_try="$ac_compile"
 
9471
case "(($ac_try" in
 
9472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9473
  *) ac_try_echo=$ac_try;;
 
9474
esac
 
9475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9476
  (eval "$ac_compile") 2>conftest.er1
 
9477
  ac_status=$?
 
9478
  grep -v '^ *+' conftest.er1 >conftest.err
 
9479
  rm -f conftest.er1
 
9480
  cat conftest.err >&5
 
9481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9482
  (exit $ac_status); } && {
 
9483
         test -z "$ac_c_werror_flag" ||
 
9484
         test ! -s conftest.err
 
9485
       } && test -s conftest.$ac_objext; then
 
9486
  gt_cv_c_wchar_t=yes
 
9487
else
 
9488
  echo "$as_me: failed program was:" >&5
 
9489
sed 's/^/| /' conftest.$ac_ext >&5
 
9490
 
 
9491
        gt_cv_c_wchar_t=no
 
9492
fi
 
9493
 
 
9494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9495
fi
 
9496
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
9497
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
 
9498
  if test $gt_cv_c_wchar_t = yes; then
 
9499
 
 
9500
cat >>confdefs.h <<\_ACEOF
 
9501
#define HAVE_WCHAR_T 1
 
9502
_ACEOF
 
9503
 
 
9504
  fi
 
9505
 
 
9506
 
 
9507
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
9508
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
9509
if test "${gt_cv_c_wint_t+set}" = set; then
 
9510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9511
else
 
9512
  cat >conftest.$ac_ext <<_ACEOF
 
9513
/* confdefs.h.  */
 
9514
_ACEOF
 
9515
cat confdefs.h >>conftest.$ac_ext
 
9516
cat >>conftest.$ac_ext <<_ACEOF
 
9517
/* end confdefs.h.  */
 
9518
 
 
9519
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
9520
   <wchar.h>.
 
9521
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
9522
   before <wchar.h>.  */
 
9523
#include <stddef.h>
 
9524
#include <stdio.h>
 
9525
#include <time.h>
 
9526
#include <wchar.h>
 
9527
       wint_t foo = (wchar_t)'\0';
 
9528
int
 
9529
main ()
 
9530
{
 
9531
 
 
9532
  ;
 
9533
  return 0;
 
9534
}
 
9535
_ACEOF
 
9536
rm -f conftest.$ac_objext
 
9537
if { (ac_try="$ac_compile"
 
9538
case "(($ac_try" in
 
9539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9540
  *) ac_try_echo=$ac_try;;
 
9541
esac
 
9542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9543
  (eval "$ac_compile") 2>conftest.er1
 
9544
  ac_status=$?
 
9545
  grep -v '^ *+' conftest.er1 >conftest.err
 
9546
  rm -f conftest.er1
 
9547
  cat conftest.err >&5
 
9548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9549
  (exit $ac_status); } && {
 
9550
         test -z "$ac_c_werror_flag" ||
 
9551
         test ! -s conftest.err
 
9552
       } && test -s conftest.$ac_objext; then
 
9553
  gt_cv_c_wint_t=yes
 
9554
else
 
9555
  echo "$as_me: failed program was:" >&5
 
9556
sed 's/^/| /' conftest.$ac_ext >&5
 
9557
 
 
9558
        gt_cv_c_wint_t=no
 
9559
fi
 
9560
 
 
9561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9562
fi
 
9563
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
9564
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
9565
  if test $gt_cv_c_wint_t = yes; then
 
9566
 
 
9567
cat >>confdefs.h <<\_ACEOF
 
9568
#define HAVE_WINT_T 1
 
9569
_ACEOF
 
9570
 
 
9571
  fi
 
9572
 
 
9573
 
 
9574
 
 
9575
 
 
9576
  { echo "$as_me:$LINENO: checking for intmax_t" >&5
 
9577
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
 
9578
if test "${gt_cv_c_intmax_t+set}" = set; then
 
9579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9580
else
 
9581
  cat >conftest.$ac_ext <<_ACEOF
 
9582
/* confdefs.h.  */
 
9583
_ACEOF
 
9584
cat confdefs.h >>conftest.$ac_ext
 
9585
cat >>conftest.$ac_ext <<_ACEOF
 
9586
/* end confdefs.h.  */
 
9587
 
 
9588
#include <stddef.h>
 
9589
#include <stdlib.h>
 
9590
#if HAVE_STDINT_H_WITH_UINTMAX
 
9591
#include <stdint.h>
 
9592
#endif
 
9593
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
9594
#include <inttypes.h>
 
9595
#endif
 
9596
 
 
9597
int
 
9598
main ()
 
9599
{
 
9600
intmax_t x = -1;
 
9601
        return !x;
 
9602
  ;
 
9603
  return 0;
 
9604
}
 
9605
_ACEOF
 
9606
rm -f conftest.$ac_objext
 
9607
if { (ac_try="$ac_compile"
 
9608
case "(($ac_try" in
 
9609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9610
  *) ac_try_echo=$ac_try;;
 
9611
esac
 
9612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9613
  (eval "$ac_compile") 2>conftest.er1
 
9614
  ac_status=$?
 
9615
  grep -v '^ *+' conftest.er1 >conftest.err
 
9616
  rm -f conftest.er1
 
9617
  cat conftest.err >&5
 
9618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9619
  (exit $ac_status); } && {
 
9620
         test -z "$ac_c_werror_flag" ||
 
9621
         test ! -s conftest.err
 
9622
       } && test -s conftest.$ac_objext; then
 
9623
  gt_cv_c_intmax_t=yes
 
9624
else
 
9625
  echo "$as_me: failed program was:" >&5
 
9626
sed 's/^/| /' conftest.$ac_ext >&5
 
9627
 
 
9628
        gt_cv_c_intmax_t=no
 
9629
fi
 
9630
 
 
9631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9632
fi
 
9633
{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
9634
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
 
9635
  if test $gt_cv_c_intmax_t = yes; then
 
9636
 
 
9637
cat >>confdefs.h <<\_ACEOF
 
9638
#define HAVE_INTMAX_T 1
 
9639
_ACEOF
 
9640
 
 
9641
  fi
 
9642
 
 
9643
 
 
9644
 
 
9645
  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
9646
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
 
9647
if test "${gt_cv_func_printf_posix+set}" = set; then
 
9648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9649
else
 
9650
 
 
9651
      if test "$cross_compiling" = yes; then
 
9652
 
 
9653
        cat >conftest.$ac_ext <<_ACEOF
 
9654
/* confdefs.h.  */
 
9655
_ACEOF
 
9656
cat confdefs.h >>conftest.$ac_ext
 
9657
cat >>conftest.$ac_ext <<_ACEOF
 
9658
/* end confdefs.h.  */
 
9659
 
 
9660
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
9661
  notposix
 
9662
#endif
 
9663
 
 
9664
_ACEOF
 
9665
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9666
  $EGREP "notposix" >/dev/null 2>&1; then
 
9667
  gt_cv_func_printf_posix="guessing no"
 
9668
else
 
9669
  gt_cv_func_printf_posix="guessing yes"
 
9670
fi
 
9671
rm -f conftest*
 
9672
 
 
9673
 
 
9674
else
 
9675
  cat >conftest.$ac_ext <<_ACEOF
 
9676
/* confdefs.h.  */
 
9677
_ACEOF
 
9678
cat confdefs.h >>conftest.$ac_ext
 
9679
cat >>conftest.$ac_ext <<_ACEOF
 
9680
/* end confdefs.h.  */
 
9681
 
 
9682
#include <stdio.h>
 
9683
#include <string.h>
 
9684
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
9685
   dollar expansion (possibly an autoconf bug).  */
 
9686
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
9687
static char buf[100];
 
9688
int main ()
 
9689
{
 
9690
  sprintf (buf, format, 33, 55);
 
9691
  return (strcmp (buf, "55 33") != 0);
 
9692
}
 
9693
_ACEOF
 
9694
rm -f conftest$ac_exeext
 
9695
if { (ac_try="$ac_link"
 
9696
case "(($ac_try" in
 
9697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9698
  *) ac_try_echo=$ac_try;;
 
9699
esac
 
9700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9701
  (eval "$ac_link") 2>&5
 
9702
  ac_status=$?
 
9703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9704
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9705
  { (case "(($ac_try" in
 
9706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9707
  *) ac_try_echo=$ac_try;;
 
9708
esac
 
9709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9710
  (eval "$ac_try") 2>&5
 
9711
  ac_status=$?
 
9712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9713
  (exit $ac_status); }; }; then
 
9714
  gt_cv_func_printf_posix=yes
 
9715
else
 
9716
  echo "$as_me: program exited with status $ac_status" >&5
 
9717
echo "$as_me: failed program was:" >&5
 
9718
sed 's/^/| /' conftest.$ac_ext >&5
 
9719
 
 
9720
( exit $ac_status )
 
9721
gt_cv_func_printf_posix=no
 
9722
fi
 
9723
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9724
fi
 
9725
 
 
9726
 
 
9727
 
 
9728
fi
 
9729
{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
9730
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
 
9731
  case $gt_cv_func_printf_posix in
 
9732
    *yes)
 
9733
 
 
9734
cat >>confdefs.h <<\_ACEOF
 
9735
#define HAVE_POSIX_PRINTF 1
 
9736
_ACEOF
 
9737
 
 
9738
      ;;
 
9739
  esac
 
9740
 
 
9741
 
 
9742
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
9743
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
 
9744
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
9745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9746
else
 
9747
  cat >conftest.$ac_ext <<_ACEOF
 
9748
/* confdefs.h.  */
 
9749
_ACEOF
 
9750
cat confdefs.h >>conftest.$ac_ext
 
9751
cat >>conftest.$ac_ext <<_ACEOF
 
9752
/* end confdefs.h.  */
 
9753
 
 
9754
#include <features.h>
 
9755
#ifdef __GNU_LIBRARY__
 
9756
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
9757
  Lucky GNU user
 
9758
 #endif
 
9759
#endif
 
9760
 
 
9761
_ACEOF
 
9762
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9763
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
9764
  ac_cv_gnu_library_2_1=yes
 
9765
else
 
9766
  ac_cv_gnu_library_2_1=no
 
9767
fi
 
9768
rm -f conftest*
 
9769
 
 
9770
 
 
9771
 
 
9772
fi
 
9773
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
9774
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
 
9775
 
 
9776
    GLIBC21="$ac_cv_gnu_library_2_1"
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
for ac_header in stdint.h
 
9782
do
 
9783
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9784
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9785
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9786
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9787
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9789
fi
 
9790
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9791
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9792
echo "${ECHO_T}$ac_res" >&6; }
 
9793
else
 
9794
  # Is the header compilable?
 
9795
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9796
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9797
cat >conftest.$ac_ext <<_ACEOF
 
9798
/* confdefs.h.  */
 
9799
_ACEOF
 
9800
cat confdefs.h >>conftest.$ac_ext
 
9801
cat >>conftest.$ac_ext <<_ACEOF
 
9802
/* end confdefs.h.  */
 
9803
$ac_includes_default
 
9804
#include <$ac_header>
 
9805
_ACEOF
 
9806
rm -f conftest.$ac_objext
 
9807
if { (ac_try="$ac_compile"
 
9808
case "(($ac_try" in
 
9809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9810
  *) ac_try_echo=$ac_try;;
 
9811
esac
 
9812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9813
  (eval "$ac_compile") 2>conftest.er1
 
9814
  ac_status=$?
 
9815
  grep -v '^ *+' conftest.er1 >conftest.err
 
9816
  rm -f conftest.er1
 
9817
  cat conftest.err >&5
 
9818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9819
  (exit $ac_status); } && {
 
9820
         test -z "$ac_c_werror_flag" ||
 
9821
         test ! -s conftest.err
 
9822
       } && test -s conftest.$ac_objext; then
 
9823
  ac_header_compiler=yes
 
9824
else
 
9825
  echo "$as_me: failed program was:" >&5
 
9826
sed 's/^/| /' conftest.$ac_ext >&5
 
9827
 
 
9828
        ac_header_compiler=no
 
9829
fi
 
9830
 
 
9831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9832
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9833
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9834
 
 
9835
# Is the header present?
 
9836
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9837
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9838
cat >conftest.$ac_ext <<_ACEOF
 
9839
/* confdefs.h.  */
 
9840
_ACEOF
 
9841
cat confdefs.h >>conftest.$ac_ext
 
9842
cat >>conftest.$ac_ext <<_ACEOF
 
9843
/* end confdefs.h.  */
 
9844
#include <$ac_header>
 
9845
_ACEOF
 
9846
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9847
case "(($ac_try" in
 
9848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9849
  *) ac_try_echo=$ac_try;;
 
9850
esac
 
9851
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9852
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9853
  ac_status=$?
 
9854
  grep -v '^ *+' conftest.er1 >conftest.err
 
9855
  rm -f conftest.er1
 
9856
  cat conftest.err >&5
 
9857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9858
  (exit $ac_status); } >/dev/null && {
 
9859
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9860
         test ! -s conftest.err
 
9861
       }; then
 
9862
  ac_header_preproc=yes
 
9863
else
 
9864
  echo "$as_me: failed program was:" >&5
 
9865
sed 's/^/| /' conftest.$ac_ext >&5
 
9866
 
 
9867
  ac_header_preproc=no
 
9868
fi
 
9869
 
 
9870
rm -f conftest.err conftest.$ac_ext
 
9871
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9872
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9873
 
 
9874
# So?  What about this header?
 
9875
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9876
  yes:no: )
 
9877
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9878
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9879
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9880
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9881
    ac_header_preproc=yes
 
9882
    ;;
 
9883
  no:yes:* )
 
9884
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9885
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9886
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9887
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9888
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9889
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9890
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9891
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9892
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9893
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9894
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9895
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9896
    ( cat <<\_ASBOX
 
9897
## ----------------------------------------------------------- ##
 
9898
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
9899
## ----------------------------------------------------------- ##
 
9900
_ASBOX
 
9901
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
9902
    ;;
 
9903
esac
 
9904
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9905
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9906
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9908
else
 
9909
  eval "$as_ac_Header=\$ac_header_preproc"
 
9910
fi
 
9911
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9912
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9913
echo "${ECHO_T}$ac_res" >&6; }
 
9914
 
 
9915
fi
 
9916
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9917
  cat >>confdefs.h <<_ACEOF
 
9918
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9919
_ACEOF
 
9920
 
 
9921
fi
 
9922
 
 
9923
done
 
9924
 
 
9925
    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
9926
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
 
9927
  if test "${gl_cv_size_max+set}" = set; then
 
9928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9929
else
 
9930
 
 
9931
    gl_cv_size_max=
 
9932
    cat >conftest.$ac_ext <<_ACEOF
 
9933
/* confdefs.h.  */
 
9934
_ACEOF
 
9935
cat confdefs.h >>conftest.$ac_ext
 
9936
cat >>conftest.$ac_ext <<_ACEOF
 
9937
/* end confdefs.h.  */
 
9938
 
 
9939
#include <limits.h>
 
9940
#if HAVE_STDINT_H
 
9941
#include <stdint.h>
 
9942
#endif
 
9943
#ifdef SIZE_MAX
 
9944
Found it
 
9945
#endif
 
9946
 
 
9947
_ACEOF
 
9948
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9949
  $EGREP "Found it" >/dev/null 2>&1; then
 
9950
  gl_cv_size_max=yes
 
9951
fi
 
9952
rm -f conftest*
 
9953
 
 
9954
    if test -z "$gl_cv_size_max"; then
 
9955
                        if test "$cross_compiling" = yes; then
 
9956
  # Depending upon the size, compute the lo and hi bounds.
 
9957
cat >conftest.$ac_ext <<_ACEOF
 
9958
/* confdefs.h.  */
 
9959
_ACEOF
 
9960
cat confdefs.h >>conftest.$ac_ext
 
9961
cat >>conftest.$ac_ext <<_ACEOF
 
9962
/* end confdefs.h.  */
 
9963
#include <stddef.h>
 
9964
#include <limits.h>
 
9965
int
 
9966
main ()
 
9967
{
 
9968
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
 
9969
test_array [0] = 0
 
9970
 
 
9971
  ;
 
9972
  return 0;
 
9973
}
 
9974
_ACEOF
 
9975
rm -f conftest.$ac_objext
 
9976
if { (ac_try="$ac_compile"
 
9977
case "(($ac_try" in
 
9978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9979
  *) ac_try_echo=$ac_try;;
 
9980
esac
 
9981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9982
  (eval "$ac_compile") 2>conftest.er1
 
9983
  ac_status=$?
 
9984
  grep -v '^ *+' conftest.er1 >conftest.err
 
9985
  rm -f conftest.er1
 
9986
  cat conftest.err >&5
 
9987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9988
  (exit $ac_status); } && {
 
9989
         test -z "$ac_c_werror_flag" ||
 
9990
         test ! -s conftest.err
 
9991
       } && test -s conftest.$ac_objext; then
 
9992
  ac_lo=0 ac_mid=0
 
9993
  while :; do
 
9994
    cat >conftest.$ac_ext <<_ACEOF
 
9995
/* confdefs.h.  */
 
9996
_ACEOF
 
9997
cat confdefs.h >>conftest.$ac_ext
 
9998
cat >>conftest.$ac_ext <<_ACEOF
 
9999
/* end confdefs.h.  */
 
10000
#include <stddef.h>
 
10001
#include <limits.h>
 
10002
int
 
10003
main ()
 
10004
{
 
10005
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
10006
test_array [0] = 0
 
10007
 
 
10008
  ;
 
10009
  return 0;
 
10010
}
 
10011
_ACEOF
 
10012
rm -f conftest.$ac_objext
 
10013
if { (ac_try="$ac_compile"
 
10014
case "(($ac_try" in
 
10015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10016
  *) ac_try_echo=$ac_try;;
 
10017
esac
 
10018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10019
  (eval "$ac_compile") 2>conftest.er1
 
10020
  ac_status=$?
 
10021
  grep -v '^ *+' conftest.er1 >conftest.err
 
10022
  rm -f conftest.er1
 
10023
  cat conftest.err >&5
 
10024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10025
  (exit $ac_status); } && {
 
10026
         test -z "$ac_c_werror_flag" ||
 
10027
         test ! -s conftest.err
 
10028
       } && test -s conftest.$ac_objext; then
 
10029
  ac_hi=$ac_mid; break
 
10030
else
 
10031
  echo "$as_me: failed program was:" >&5
 
10032
sed 's/^/| /' conftest.$ac_ext >&5
 
10033
 
 
10034
        ac_lo=`expr $ac_mid + 1`
 
10035
                        if test $ac_lo -le $ac_mid; then
 
10036
                          ac_lo= ac_hi=
 
10037
                          break
 
10038
                        fi
 
10039
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
10040
fi
 
10041
 
 
10042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10043
  done
 
10044
else
 
10045
  echo "$as_me: failed program was:" >&5
 
10046
sed 's/^/| /' conftest.$ac_ext >&5
 
10047
 
 
10048
        cat >conftest.$ac_ext <<_ACEOF
 
10049
/* confdefs.h.  */
 
10050
_ACEOF
 
10051
cat confdefs.h >>conftest.$ac_ext
 
10052
cat >>conftest.$ac_ext <<_ACEOF
 
10053
/* end confdefs.h.  */
 
10054
#include <stddef.h>
 
10055
#include <limits.h>
 
10056
int
 
10057
main ()
 
10058
{
 
10059
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
 
10060
test_array [0] = 0
 
10061
 
 
10062
  ;
 
10063
  return 0;
 
10064
}
 
10065
_ACEOF
 
10066
rm -f conftest.$ac_objext
 
10067
if { (ac_try="$ac_compile"
 
10068
case "(($ac_try" in
 
10069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10070
  *) ac_try_echo=$ac_try;;
 
10071
esac
 
10072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10073
  (eval "$ac_compile") 2>conftest.er1
 
10074
  ac_status=$?
 
10075
  grep -v '^ *+' conftest.er1 >conftest.err
 
10076
  rm -f conftest.er1
 
10077
  cat conftest.err >&5
 
10078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10079
  (exit $ac_status); } && {
 
10080
         test -z "$ac_c_werror_flag" ||
 
10081
         test ! -s conftest.err
 
10082
       } && test -s conftest.$ac_objext; then
 
10083
  ac_hi=-1 ac_mid=-1
 
10084
  while :; do
 
10085
    cat >conftest.$ac_ext <<_ACEOF
 
10086
/* confdefs.h.  */
 
10087
_ACEOF
 
10088
cat confdefs.h >>conftest.$ac_ext
 
10089
cat >>conftest.$ac_ext <<_ACEOF
 
10090
/* end confdefs.h.  */
 
10091
#include <stddef.h>
 
10092
#include <limits.h>
 
10093
int
 
10094
main ()
 
10095
{
 
10096
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
 
10097
test_array [0] = 0
 
10098
 
 
10099
  ;
 
10100
  return 0;
 
10101
}
 
10102
_ACEOF
 
10103
rm -f conftest.$ac_objext
 
10104
if { (ac_try="$ac_compile"
 
10105
case "(($ac_try" in
 
10106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10107
  *) ac_try_echo=$ac_try;;
 
10108
esac
 
10109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10110
  (eval "$ac_compile") 2>conftest.er1
 
10111
  ac_status=$?
 
10112
  grep -v '^ *+' conftest.er1 >conftest.err
 
10113
  rm -f conftest.er1
 
10114
  cat conftest.err >&5
 
10115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10116
  (exit $ac_status); } && {
 
10117
         test -z "$ac_c_werror_flag" ||
 
10118
         test ! -s conftest.err
 
10119
       } && test -s conftest.$ac_objext; then
 
10120
  ac_lo=$ac_mid; break
 
10121
else
 
10122
  echo "$as_me: failed program was:" >&5
 
10123
sed 's/^/| /' conftest.$ac_ext >&5
 
10124
 
 
10125
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
10126
                        if test $ac_mid -le $ac_hi; then
 
10127
                          ac_lo= ac_hi=
 
10128
                          break
 
10129
                        fi
 
10130
                        ac_mid=`expr 2 '*' $ac_mid`
 
10131
fi
 
10132
 
 
10133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10134
  done
 
10135
else
 
10136
  echo "$as_me: failed program was:" >&5
 
10137
sed 's/^/| /' conftest.$ac_ext >&5
 
10138
 
 
10139
        ac_lo= ac_hi=
 
10140
fi
 
10141
 
 
10142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10143
fi
 
10144
 
 
10145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10146
# Binary search between lo and hi bounds.
 
10147
while test "x$ac_lo" != "x$ac_hi"; do
 
10148
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10149
  cat >conftest.$ac_ext <<_ACEOF
 
10150
/* confdefs.h.  */
 
10151
_ACEOF
 
10152
cat confdefs.h >>conftest.$ac_ext
 
10153
cat >>conftest.$ac_ext <<_ACEOF
 
10154
/* end confdefs.h.  */
 
10155
#include <stddef.h>
 
10156
#include <limits.h>
 
10157
int
 
10158
main ()
 
10159
{
 
10160
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
10161
test_array [0] = 0
 
10162
 
 
10163
  ;
 
10164
  return 0;
 
10165
}
 
10166
_ACEOF
 
10167
rm -f conftest.$ac_objext
 
10168
if { (ac_try="$ac_compile"
 
10169
case "(($ac_try" in
 
10170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10171
  *) ac_try_echo=$ac_try;;
 
10172
esac
 
10173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10174
  (eval "$ac_compile") 2>conftest.er1
 
10175
  ac_status=$?
 
10176
  grep -v '^ *+' conftest.er1 >conftest.err
 
10177
  rm -f conftest.er1
 
10178
  cat conftest.err >&5
 
10179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10180
  (exit $ac_status); } && {
 
10181
         test -z "$ac_c_werror_flag" ||
 
10182
         test ! -s conftest.err
 
10183
       } && test -s conftest.$ac_objext; then
 
10184
  ac_hi=$ac_mid
 
10185
else
 
10186
  echo "$as_me: failed program was:" >&5
 
10187
sed 's/^/| /' conftest.$ac_ext >&5
 
10188
 
 
10189
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
10190
fi
 
10191
 
 
10192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10193
done
 
10194
case $ac_lo in
 
10195
?*) size_t_bits_minus_1=$ac_lo;;
 
10196
'') size_t_bits_minus_1= ;;
 
10197
esac
 
10198
else
 
10199
  cat >conftest.$ac_ext <<_ACEOF
 
10200
/* confdefs.h.  */
 
10201
_ACEOF
 
10202
cat confdefs.h >>conftest.$ac_ext
 
10203
cat >>conftest.$ac_ext <<_ACEOF
 
10204
/* end confdefs.h.  */
 
10205
#include <stddef.h>
 
10206
#include <limits.h>
 
10207
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
10208
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
10209
#include <stdio.h>
 
10210
#include <stdlib.h>
 
10211
int
 
10212
main ()
 
10213
{
 
10214
 
 
10215
  FILE *f = fopen ("conftest.val", "w");
 
10216
  if (! f)
 
10217
    return 1;
 
10218
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
 
10219
    {
 
10220
      long int i = longval ();
 
10221
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
10222
        return 1;
 
10223
      fprintf (f, "%ld\n", i);
 
10224
    }
 
10225
  else
 
10226
    {
 
10227
      unsigned long int i = ulongval ();
 
10228
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
10229
        return 1;
 
10230
      fprintf (f, "%lu\n", i);
 
10231
    }
 
10232
  return ferror (f) || fclose (f) != 0;
 
10233
 
 
10234
  ;
 
10235
  return 0;
 
10236
}
 
10237
_ACEOF
 
10238
rm -f conftest$ac_exeext
 
10239
if { (ac_try="$ac_link"
 
10240
case "(($ac_try" in
 
10241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10242
  *) ac_try_echo=$ac_try;;
 
10243
esac
 
10244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10245
  (eval "$ac_link") 2>&5
 
10246
  ac_status=$?
 
10247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10248
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10249
  { (case "(($ac_try" in
 
10250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10251
  *) ac_try_echo=$ac_try;;
 
10252
esac
 
10253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10254
  (eval "$ac_try") 2>&5
 
10255
  ac_status=$?
 
10256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10257
  (exit $ac_status); }; }; then
 
10258
  size_t_bits_minus_1=`cat conftest.val`
 
10259
else
 
10260
  echo "$as_me: program exited with status $ac_status" >&5
 
10261
echo "$as_me: failed program was:" >&5
 
10262
sed 's/^/| /' conftest.$ac_ext >&5
 
10263
 
 
10264
( exit $ac_status )
 
10265
size_t_bits_minus_1=
 
10266
fi
 
10267
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10268
fi
 
10269
rm -f conftest.val
 
10270
      if test "$cross_compiling" = yes; then
 
10271
  # Depending upon the size, compute the lo and hi bounds.
 
10272
cat >conftest.$ac_ext <<_ACEOF
 
10273
/* confdefs.h.  */
 
10274
_ACEOF
 
10275
cat confdefs.h >>conftest.$ac_ext
 
10276
cat >>conftest.$ac_ext <<_ACEOF
 
10277
/* end confdefs.h.  */
 
10278
#include <stddef.h>
 
10279
int
 
10280
main ()
 
10281
{
 
10282
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
10283
test_array [0] = 0
 
10284
 
 
10285
  ;
 
10286
  return 0;
 
10287
}
 
10288
_ACEOF
 
10289
rm -f conftest.$ac_objext
 
10290
if { (ac_try="$ac_compile"
 
10291
case "(($ac_try" in
 
10292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10293
  *) ac_try_echo=$ac_try;;
 
10294
esac
 
10295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10296
  (eval "$ac_compile") 2>conftest.er1
 
10297
  ac_status=$?
 
10298
  grep -v '^ *+' conftest.er1 >conftest.err
 
10299
  rm -f conftest.er1
 
10300
  cat conftest.err >&5
 
10301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10302
  (exit $ac_status); } && {
 
10303
         test -z "$ac_c_werror_flag" ||
 
10304
         test ! -s conftest.err
 
10305
       } && test -s conftest.$ac_objext; then
 
10306
  ac_lo=0 ac_mid=0
 
10307
  while :; do
 
10308
    cat >conftest.$ac_ext <<_ACEOF
 
10309
/* confdefs.h.  */
 
10310
_ACEOF
 
10311
cat confdefs.h >>conftest.$ac_ext
 
10312
cat >>conftest.$ac_ext <<_ACEOF
 
10313
/* end confdefs.h.  */
 
10314
#include <stddef.h>
 
10315
int
 
10316
main ()
 
10317
{
 
10318
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
10319
test_array [0] = 0
 
10320
 
 
10321
  ;
 
10322
  return 0;
 
10323
}
 
10324
_ACEOF
 
10325
rm -f conftest.$ac_objext
 
10326
if { (ac_try="$ac_compile"
 
10327
case "(($ac_try" in
 
10328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10329
  *) ac_try_echo=$ac_try;;
 
10330
esac
 
10331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10332
  (eval "$ac_compile") 2>conftest.er1
 
10333
  ac_status=$?
 
10334
  grep -v '^ *+' conftest.er1 >conftest.err
 
10335
  rm -f conftest.er1
 
10336
  cat conftest.err >&5
 
10337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10338
  (exit $ac_status); } && {
 
10339
         test -z "$ac_c_werror_flag" ||
 
10340
         test ! -s conftest.err
 
10341
       } && test -s conftest.$ac_objext; then
 
10342
  ac_hi=$ac_mid; break
 
10343
else
 
10344
  echo "$as_me: failed program was:" >&5
 
10345
sed 's/^/| /' conftest.$ac_ext >&5
 
10346
 
 
10347
        ac_lo=`expr $ac_mid + 1`
 
10348
                        if test $ac_lo -le $ac_mid; then
 
10349
                          ac_lo= ac_hi=
 
10350
                          break
 
10351
                        fi
 
10352
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
10353
fi
 
10354
 
 
10355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10356
  done
 
10357
else
 
10358
  echo "$as_me: failed program was:" >&5
 
10359
sed 's/^/| /' conftest.$ac_ext >&5
 
10360
 
 
10361
        cat >conftest.$ac_ext <<_ACEOF
 
10362
/* confdefs.h.  */
 
10363
_ACEOF
 
10364
cat confdefs.h >>conftest.$ac_ext
 
10365
cat >>conftest.$ac_ext <<_ACEOF
 
10366
/* end confdefs.h.  */
 
10367
#include <stddef.h>
 
10368
int
 
10369
main ()
 
10370
{
 
10371
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
10372
test_array [0] = 0
 
10373
 
 
10374
  ;
 
10375
  return 0;
 
10376
}
 
10377
_ACEOF
 
10378
rm -f conftest.$ac_objext
 
10379
if { (ac_try="$ac_compile"
 
10380
case "(($ac_try" in
 
10381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10382
  *) ac_try_echo=$ac_try;;
 
10383
esac
 
10384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10385
  (eval "$ac_compile") 2>conftest.er1
 
10386
  ac_status=$?
 
10387
  grep -v '^ *+' conftest.er1 >conftest.err
 
10388
  rm -f conftest.er1
 
10389
  cat conftest.err >&5
 
10390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10391
  (exit $ac_status); } && {
 
10392
         test -z "$ac_c_werror_flag" ||
 
10393
         test ! -s conftest.err
 
10394
       } && test -s conftest.$ac_objext; then
 
10395
  ac_hi=-1 ac_mid=-1
 
10396
  while :; do
 
10397
    cat >conftest.$ac_ext <<_ACEOF
 
10398
/* confdefs.h.  */
 
10399
_ACEOF
 
10400
cat confdefs.h >>conftest.$ac_ext
 
10401
cat >>conftest.$ac_ext <<_ACEOF
 
10402
/* end confdefs.h.  */
 
10403
#include <stddef.h>
 
10404
int
 
10405
main ()
 
10406
{
 
10407
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
10408
test_array [0] = 0
 
10409
 
 
10410
  ;
 
10411
  return 0;
 
10412
}
 
10413
_ACEOF
 
10414
rm -f conftest.$ac_objext
 
10415
if { (ac_try="$ac_compile"
 
10416
case "(($ac_try" in
 
10417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10418
  *) ac_try_echo=$ac_try;;
 
10419
esac
 
10420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10421
  (eval "$ac_compile") 2>conftest.er1
 
10422
  ac_status=$?
 
10423
  grep -v '^ *+' conftest.er1 >conftest.err
 
10424
  rm -f conftest.er1
 
10425
  cat conftest.err >&5
 
10426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10427
  (exit $ac_status); } && {
 
10428
         test -z "$ac_c_werror_flag" ||
 
10429
         test ! -s conftest.err
 
10430
       } && test -s conftest.$ac_objext; then
 
10431
  ac_lo=$ac_mid; break
 
10432
else
 
10433
  echo "$as_me: failed program was:" >&5
 
10434
sed 's/^/| /' conftest.$ac_ext >&5
 
10435
 
 
10436
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
10437
                        if test $ac_mid -le $ac_hi; then
 
10438
                          ac_lo= ac_hi=
 
10439
                          break
 
10440
                        fi
 
10441
                        ac_mid=`expr 2 '*' $ac_mid`
 
10442
fi
 
10443
 
 
10444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10445
  done
 
10446
else
 
10447
  echo "$as_me: failed program was:" >&5
 
10448
sed 's/^/| /' conftest.$ac_ext >&5
 
10449
 
 
10450
        ac_lo= ac_hi=
 
10451
fi
 
10452
 
 
10453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10454
fi
 
10455
 
 
10456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10457
# Binary search between lo and hi bounds.
 
10458
while test "x$ac_lo" != "x$ac_hi"; do
 
10459
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10460
  cat >conftest.$ac_ext <<_ACEOF
 
10461
/* confdefs.h.  */
 
10462
_ACEOF
 
10463
cat confdefs.h >>conftest.$ac_ext
 
10464
cat >>conftest.$ac_ext <<_ACEOF
 
10465
/* end confdefs.h.  */
 
10466
#include <stddef.h>
 
10467
int
 
10468
main ()
 
10469
{
 
10470
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
10471
test_array [0] = 0
 
10472
 
 
10473
  ;
 
10474
  return 0;
 
10475
}
 
10476
_ACEOF
 
10477
rm -f conftest.$ac_objext
 
10478
if { (ac_try="$ac_compile"
 
10479
case "(($ac_try" in
 
10480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10481
  *) ac_try_echo=$ac_try;;
 
10482
esac
 
10483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10484
  (eval "$ac_compile") 2>conftest.er1
 
10485
  ac_status=$?
 
10486
  grep -v '^ *+' conftest.er1 >conftest.err
 
10487
  rm -f conftest.er1
 
10488
  cat conftest.err >&5
 
10489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10490
  (exit $ac_status); } && {
 
10491
         test -z "$ac_c_werror_flag" ||
 
10492
         test ! -s conftest.err
 
10493
       } && test -s conftest.$ac_objext; then
 
10494
  ac_hi=$ac_mid
 
10495
else
 
10496
  echo "$as_me: failed program was:" >&5
 
10497
sed 's/^/| /' conftest.$ac_ext >&5
 
10498
 
 
10499
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
10500
fi
 
10501
 
 
10502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10503
done
 
10504
case $ac_lo in
 
10505
?*) fits_in_uint=$ac_lo;;
 
10506
'') fits_in_uint= ;;
 
10507
esac
 
10508
else
 
10509
  cat >conftest.$ac_ext <<_ACEOF
 
10510
/* confdefs.h.  */
 
10511
_ACEOF
 
10512
cat confdefs.h >>conftest.$ac_ext
 
10513
cat >>conftest.$ac_ext <<_ACEOF
 
10514
/* end confdefs.h.  */
 
10515
#include <stddef.h>
 
10516
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
10517
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
10518
#include <stdio.h>
 
10519
#include <stdlib.h>
 
10520
int
 
10521
main ()
 
10522
{
 
10523
 
 
10524
  FILE *f = fopen ("conftest.val", "w");
 
10525
  if (! f)
 
10526
    return 1;
 
10527
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
10528
    {
 
10529
      long int i = longval ();
 
10530
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
10531
        return 1;
 
10532
      fprintf (f, "%ld\n", i);
 
10533
    }
 
10534
  else
 
10535
    {
 
10536
      unsigned long int i = ulongval ();
 
10537
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
10538
        return 1;
 
10539
      fprintf (f, "%lu\n", i);
 
10540
    }
 
10541
  return ferror (f) || fclose (f) != 0;
 
10542
 
 
10543
  ;
 
10544
  return 0;
 
10545
}
 
10546
_ACEOF
 
10547
rm -f conftest$ac_exeext
 
10548
if { (ac_try="$ac_link"
 
10549
case "(($ac_try" in
 
10550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10551
  *) ac_try_echo=$ac_try;;
 
10552
esac
 
10553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10554
  (eval "$ac_link") 2>&5
 
10555
  ac_status=$?
 
10556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10557
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10558
  { (case "(($ac_try" in
 
10559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10560
  *) ac_try_echo=$ac_try;;
 
10561
esac
 
10562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10563
  (eval "$ac_try") 2>&5
 
10564
  ac_status=$?
 
10565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10566
  (exit $ac_status); }; }; then
 
10567
  fits_in_uint=`cat conftest.val`
 
10568
else
 
10569
  echo "$as_me: program exited with status $ac_status" >&5
 
10570
echo "$as_me: failed program was:" >&5
 
10571
sed 's/^/| /' conftest.$ac_ext >&5
 
10572
 
 
10573
( exit $ac_status )
 
10574
fits_in_uint=
 
10575
fi
 
10576
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10577
fi
 
10578
rm -f conftest.val
 
10579
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
10580
        if test $fits_in_uint = 1; then
 
10581
                              cat >conftest.$ac_ext <<_ACEOF
 
10582
/* confdefs.h.  */
 
10583
_ACEOF
 
10584
cat confdefs.h >>conftest.$ac_ext
 
10585
cat >>conftest.$ac_ext <<_ACEOF
 
10586
/* end confdefs.h.  */
 
10587
#include <stddef.h>
 
10588
            extern size_t foo;
 
10589
            extern unsigned long foo;
 
10590
 
 
10591
int
 
10592
main ()
 
10593
{
 
10594
 
 
10595
  ;
 
10596
  return 0;
 
10597
}
 
10598
_ACEOF
 
10599
rm -f conftest.$ac_objext
 
10600
if { (ac_try="$ac_compile"
 
10601
case "(($ac_try" in
 
10602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10603
  *) ac_try_echo=$ac_try;;
 
10604
esac
 
10605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10606
  (eval "$ac_compile") 2>conftest.er1
 
10607
  ac_status=$?
 
10608
  grep -v '^ *+' conftest.er1 >conftest.err
 
10609
  rm -f conftest.er1
 
10610
  cat conftest.err >&5
 
10611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10612
  (exit $ac_status); } && {
 
10613
         test -z "$ac_c_werror_flag" ||
 
10614
         test ! -s conftest.err
 
10615
       } && test -s conftest.$ac_objext; then
 
10616
  fits_in_uint=0
 
10617
else
 
10618
  echo "$as_me: failed program was:" >&5
 
10619
sed 's/^/| /' conftest.$ac_ext >&5
 
10620
 
 
10621
 
 
10622
fi
 
10623
 
 
10624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10625
        fi
 
10626
                                if test $fits_in_uint = 1; then
 
10627
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
10628
        else
 
10629
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
10630
        fi
 
10631
      else
 
10632
                gl_cv_size_max='((size_t)~(size_t)0)'
 
10633
      fi
 
10634
    fi
 
10635
 
 
10636
fi
 
10637
 
 
10638
  { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
 
10639
echo "${ECHO_T}$gl_cv_size_max" >&6; }
 
10640
  if test "$gl_cv_size_max" != yes; then
 
10641
 
 
10642
cat >>confdefs.h <<_ACEOF
 
10643
#define SIZE_MAX $gl_cv_size_max
 
10644
_ACEOF
 
10645
 
 
10646
  fi
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
for ac_header in stdint.h
 
10653
do
 
10654
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10655
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
10656
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
10658
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
10659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10660
fi
 
10661
ac_res=`eval echo '${'$as_ac_Header'}'`
 
10662
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10663
echo "${ECHO_T}$ac_res" >&6; }
 
10664
else
 
10665
  # Is the header compilable?
 
10666
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10667
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
10668
cat >conftest.$ac_ext <<_ACEOF
 
10669
/* confdefs.h.  */
 
10670
_ACEOF
 
10671
cat confdefs.h >>conftest.$ac_ext
 
10672
cat >>conftest.$ac_ext <<_ACEOF
 
10673
/* end confdefs.h.  */
 
10674
$ac_includes_default
 
10675
#include <$ac_header>
 
10676
_ACEOF
 
10677
rm -f conftest.$ac_objext
 
10678
if { (ac_try="$ac_compile"
 
10679
case "(($ac_try" in
 
10680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10681
  *) ac_try_echo=$ac_try;;
 
10682
esac
 
10683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10684
  (eval "$ac_compile") 2>conftest.er1
 
10685
  ac_status=$?
 
10686
  grep -v '^ *+' conftest.er1 >conftest.err
 
10687
  rm -f conftest.er1
 
10688
  cat conftest.err >&5
 
10689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10690
  (exit $ac_status); } && {
 
10691
         test -z "$ac_c_werror_flag" ||
 
10692
         test ! -s conftest.err
 
10693
       } && test -s conftest.$ac_objext; then
 
10694
  ac_header_compiler=yes
 
10695
else
 
10696
  echo "$as_me: failed program was:" >&5
 
10697
sed 's/^/| /' conftest.$ac_ext >&5
 
10698
 
 
10699
        ac_header_compiler=no
 
10700
fi
 
10701
 
 
10702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10703
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10704
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
10705
 
 
10706
# Is the header present?
 
10707
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10708
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
10709
cat >conftest.$ac_ext <<_ACEOF
 
10710
/* confdefs.h.  */
 
10711
_ACEOF
 
10712
cat confdefs.h >>conftest.$ac_ext
 
10713
cat >>conftest.$ac_ext <<_ACEOF
 
10714
/* end confdefs.h.  */
 
10715
#include <$ac_header>
 
10716
_ACEOF
 
10717
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
10718
case "(($ac_try" in
 
10719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10720
  *) ac_try_echo=$ac_try;;
 
10721
esac
 
10722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10723
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
10724
  ac_status=$?
 
10725
  grep -v '^ *+' conftest.er1 >conftest.err
 
10726
  rm -f conftest.er1
 
10727
  cat conftest.err >&5
 
10728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10729
  (exit $ac_status); } >/dev/null && {
 
10730
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
10731
         test ! -s conftest.err
 
10732
       }; then
 
10733
  ac_header_preproc=yes
 
10734
else
 
10735
  echo "$as_me: failed program was:" >&5
 
10736
sed 's/^/| /' conftest.$ac_ext >&5
 
10737
 
 
10738
  ac_header_preproc=no
 
10739
fi
 
10740
 
 
10741
rm -f conftest.err conftest.$ac_ext
 
10742
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10743
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
10744
 
 
10745
# So?  What about this header?
 
10746
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10747
  yes:no: )
 
10748
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10749
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10750
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10751
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10752
    ac_header_preproc=yes
 
10753
    ;;
 
10754
  no:yes:* )
 
10755
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10756
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10757
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10758
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10759
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10760
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10761
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10762
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10763
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10764
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10765
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10766
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10767
    ( cat <<\_ASBOX
 
10768
## ----------------------------------------------------------- ##
 
10769
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
10770
## ----------------------------------------------------------- ##
 
10771
_ASBOX
 
10772
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
10773
    ;;
 
10774
esac
 
10775
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
10777
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
10778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10779
else
 
10780
  eval "$as_ac_Header=\$ac_header_preproc"
 
10781
fi
 
10782
ac_res=`eval echo '${'$as_ac_Header'}'`
 
10783
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10784
echo "${ECHO_T}$ac_res" >&6; }
 
10785
 
 
10786
fi
 
10787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10788
  cat >>confdefs.h <<_ACEOF
 
10789
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10790
_ACEOF
 
10791
 
 
10792
fi
 
10793
 
 
10794
done
 
10795
 
 
10796
 
 
10797
 
 
10798
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
10799
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
10800
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
10801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10802
else
 
10803
  gt_save_LIBS="$LIBS"
 
10804
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
10805
     cat >conftest.$ac_ext <<_ACEOF
 
10806
/* confdefs.h.  */
 
10807
_ACEOF
 
10808
cat confdefs.h >>conftest.$ac_ext
 
10809
cat >>conftest.$ac_ext <<_ACEOF
 
10810
/* end confdefs.h.  */
 
10811
#include <CoreFoundation/CFPreferences.h>
 
10812
int
 
10813
main ()
 
10814
{
 
10815
CFPreferencesCopyAppValue(NULL, NULL)
 
10816
  ;
 
10817
  return 0;
 
10818
}
 
10819
_ACEOF
 
10820
rm -f conftest.$ac_objext conftest$ac_exeext
 
10821
if { (ac_try="$ac_link"
 
10822
case "(($ac_try" in
 
10823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10824
  *) ac_try_echo=$ac_try;;
 
10825
esac
 
10826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10827
  (eval "$ac_link") 2>conftest.er1
 
10828
  ac_status=$?
 
10829
  grep -v '^ *+' conftest.er1 >conftest.err
 
10830
  rm -f conftest.er1
 
10831
  cat conftest.err >&5
 
10832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10833
  (exit $ac_status); } && {
 
10834
         test -z "$ac_c_werror_flag" ||
 
10835
         test ! -s conftest.err
 
10836
       } && test -s conftest$ac_exeext &&
 
10837
       $as_test_x conftest$ac_exeext; then
 
10838
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
10839
else
 
10840
  echo "$as_me: failed program was:" >&5
 
10841
sed 's/^/| /' conftest.$ac_ext >&5
 
10842
 
 
10843
        gt_cv_func_CFPreferencesCopyAppValue=no
 
10844
fi
 
10845
 
 
10846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10847
      conftest$ac_exeext conftest.$ac_ext
 
10848
     LIBS="$gt_save_LIBS"
 
10849
fi
 
10850
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
10851
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
10852
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
10853
 
 
10854
cat >>confdefs.h <<\_ACEOF
 
10855
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
10856
_ACEOF
 
10857
 
 
10858
  fi
 
10859
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
10860
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
10861
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
10862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10863
else
 
10864
  gt_save_LIBS="$LIBS"
 
10865
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
10866
     cat >conftest.$ac_ext <<_ACEOF
 
10867
/* confdefs.h.  */
 
10868
_ACEOF
 
10869
cat confdefs.h >>conftest.$ac_ext
 
10870
cat >>conftest.$ac_ext <<_ACEOF
 
10871
/* end confdefs.h.  */
 
10872
#include <CoreFoundation/CFLocale.h>
 
10873
int
 
10874
main ()
 
10875
{
 
10876
CFLocaleCopyCurrent();
 
10877
  ;
 
10878
  return 0;
 
10879
}
 
10880
_ACEOF
 
10881
rm -f conftest.$ac_objext conftest$ac_exeext
 
10882
if { (ac_try="$ac_link"
 
10883
case "(($ac_try" in
 
10884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10885
  *) ac_try_echo=$ac_try;;
 
10886
esac
 
10887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10888
  (eval "$ac_link") 2>conftest.er1
 
10889
  ac_status=$?
 
10890
  grep -v '^ *+' conftest.er1 >conftest.err
 
10891
  rm -f conftest.er1
 
10892
  cat conftest.err >&5
 
10893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10894
  (exit $ac_status); } && {
 
10895
         test -z "$ac_c_werror_flag" ||
 
10896
         test ! -s conftest.err
 
10897
       } && test -s conftest$ac_exeext &&
 
10898
       $as_test_x conftest$ac_exeext; then
 
10899
  gt_cv_func_CFLocaleCopyCurrent=yes
 
10900
else
 
10901
  echo "$as_me: failed program was:" >&5
 
10902
sed 's/^/| /' conftest.$ac_ext >&5
 
10903
 
 
10904
        gt_cv_func_CFLocaleCopyCurrent=no
 
10905
fi
 
10906
 
 
10907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10908
      conftest$ac_exeext conftest.$ac_ext
 
10909
     LIBS="$gt_save_LIBS"
 
10910
fi
 
10911
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
10912
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
10913
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
10914
 
 
10915
cat >>confdefs.h <<\_ACEOF
 
10916
#define HAVE_CFLOCALECOPYCURRENT 1
 
10917
_ACEOF
 
10918
 
 
10919
  fi
 
10920
  INTL_MACOSX_LIBS=
 
10921
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
10922
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
10923
  fi
 
10924
 
 
10925
 
 
10926
 
 
10927
 
 
10928
 
 
10929
 
 
10930
 
 
10931
  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
10932
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
 
10933
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
10934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10935
else
 
10936
  cat >conftest.$ac_ext <<_ACEOF
 
10937
/* confdefs.h.  */
 
10938
_ACEOF
 
10939
cat confdefs.h >>conftest.$ac_ext
 
10940
cat >>conftest.$ac_ext <<_ACEOF
 
10941
/* end confdefs.h.  */
 
10942
$ac_includes_default
 
10943
typedef ptrdiff_t ac__type_new_;
 
10944
int
 
10945
main ()
 
10946
{
 
10947
if ((ac__type_new_ *) 0)
 
10948
  return 0;
 
10949
if (sizeof (ac__type_new_))
 
10950
  return 0;
 
10951
  ;
 
10952
  return 0;
 
10953
}
 
10954
_ACEOF
 
10955
rm -f conftest.$ac_objext
 
10956
if { (ac_try="$ac_compile"
 
10957
case "(($ac_try" in
 
10958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10959
  *) ac_try_echo=$ac_try;;
 
10960
esac
 
10961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10962
  (eval "$ac_compile") 2>conftest.er1
 
10963
  ac_status=$?
 
10964
  grep -v '^ *+' conftest.er1 >conftest.err
 
10965
  rm -f conftest.er1
 
10966
  cat conftest.err >&5
 
10967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10968
  (exit $ac_status); } && {
 
10969
         test -z "$ac_c_werror_flag" ||
 
10970
         test ! -s conftest.err
 
10971
       } && test -s conftest.$ac_objext; then
 
10972
  ac_cv_type_ptrdiff_t=yes
 
10973
else
 
10974
  echo "$as_me: failed program was:" >&5
 
10975
sed 's/^/| /' conftest.$ac_ext >&5
 
10976
 
 
10977
        ac_cv_type_ptrdiff_t=no
 
10978
fi
 
10979
 
 
10980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10981
fi
 
10982
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
10983
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
 
10984
if test $ac_cv_type_ptrdiff_t = yes; then
 
10985
  :
 
10986
else
 
10987
 
 
10988
cat >>confdefs.h <<\_ACEOF
 
10989
#define ptrdiff_t long
 
10990
_ACEOF
 
10991
 
 
10992
 
 
10993
fi
 
10994
 
 
10995
 
 
10996
 
 
10997
 
 
10998
for ac_header in stddef.h stdlib.h string.h
 
10999
do
 
11000
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11001
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11002
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11003
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11004
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11006
fi
 
11007
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11008
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11009
echo "${ECHO_T}$ac_res" >&6; }
 
11010
else
 
11011
  # Is the header compilable?
 
11012
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11013
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
11014
cat >conftest.$ac_ext <<_ACEOF
 
11015
/* confdefs.h.  */
 
11016
_ACEOF
 
11017
cat confdefs.h >>conftest.$ac_ext
 
11018
cat >>conftest.$ac_ext <<_ACEOF
 
11019
/* end confdefs.h.  */
 
11020
$ac_includes_default
 
11021
#include <$ac_header>
 
11022
_ACEOF
 
11023
rm -f conftest.$ac_objext
 
11024
if { (ac_try="$ac_compile"
 
11025
case "(($ac_try" in
 
11026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11027
  *) ac_try_echo=$ac_try;;
 
11028
esac
 
11029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11030
  (eval "$ac_compile") 2>conftest.er1
 
11031
  ac_status=$?
 
11032
  grep -v '^ *+' conftest.er1 >conftest.err
 
11033
  rm -f conftest.er1
 
11034
  cat conftest.err >&5
 
11035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11036
  (exit $ac_status); } && {
 
11037
         test -z "$ac_c_werror_flag" ||
 
11038
         test ! -s conftest.err
 
11039
       } && test -s conftest.$ac_objext; then
 
11040
  ac_header_compiler=yes
 
11041
else
 
11042
  echo "$as_me: failed program was:" >&5
 
11043
sed 's/^/| /' conftest.$ac_ext >&5
 
11044
 
 
11045
        ac_header_compiler=no
 
11046
fi
 
11047
 
 
11048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11049
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11050
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
11051
 
 
11052
# Is the header present?
 
11053
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
11055
cat >conftest.$ac_ext <<_ACEOF
 
11056
/* confdefs.h.  */
 
11057
_ACEOF
 
11058
cat confdefs.h >>conftest.$ac_ext
 
11059
cat >>conftest.$ac_ext <<_ACEOF
 
11060
/* end confdefs.h.  */
 
11061
#include <$ac_header>
 
11062
_ACEOF
 
11063
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
11064
case "(($ac_try" in
 
11065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11066
  *) ac_try_echo=$ac_try;;
 
11067
esac
 
11068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11069
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
11070
  ac_status=$?
 
11071
  grep -v '^ *+' conftest.er1 >conftest.err
 
11072
  rm -f conftest.er1
 
11073
  cat conftest.err >&5
 
11074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11075
  (exit $ac_status); } >/dev/null && {
 
11076
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
11077
         test ! -s conftest.err
 
11078
       }; then
 
11079
  ac_header_preproc=yes
 
11080
else
 
11081
  echo "$as_me: failed program was:" >&5
 
11082
sed 's/^/| /' conftest.$ac_ext >&5
 
11083
 
 
11084
  ac_header_preproc=no
 
11085
fi
 
11086
 
 
11087
rm -f conftest.err conftest.$ac_ext
 
11088
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11089
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
11090
 
 
11091
# So?  What about this header?
 
11092
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11093
  yes:no: )
 
11094
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11095
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11096
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11097
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11098
    ac_header_preproc=yes
 
11099
    ;;
 
11100
  no:yes:* )
 
11101
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11102
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11103
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11104
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11105
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11106
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11107
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11108
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11109
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11110
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11111
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11112
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11113
    ( cat <<\_ASBOX
 
11114
## ----------------------------------------------------------- ##
 
11115
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
11116
## ----------------------------------------------------------- ##
 
11117
_ASBOX
 
11118
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
11119
    ;;
 
11120
esac
 
11121
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11122
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11123
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11125
else
 
11126
  eval "$as_ac_Header=\$ac_header_preproc"
 
11127
fi
 
11128
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11129
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11130
echo "${ECHO_T}$ac_res" >&6; }
 
11131
 
 
11132
fi
 
11133
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11134
  cat >>confdefs.h <<_ACEOF
 
11135
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11136
_ACEOF
 
11137
 
 
11138
fi
 
11139
 
 
11140
done
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
 
11150
do
 
11151
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11152
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11153
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11154
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11156
else
 
11157
  cat >conftest.$ac_ext <<_ACEOF
 
11158
/* confdefs.h.  */
 
11159
_ACEOF
 
11160
cat confdefs.h >>conftest.$ac_ext
 
11161
cat >>conftest.$ac_ext <<_ACEOF
 
11162
/* end confdefs.h.  */
 
11163
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11164
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11165
#define $ac_func innocuous_$ac_func
 
11166
 
 
11167
/* System header to define __stub macros and hopefully few prototypes,
 
11168
    which can conflict with char $ac_func (); below.
 
11169
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11170
    <limits.h> exists even on freestanding compilers.  */
 
11171
 
 
11172
#ifdef __STDC__
 
11173
# include <limits.h>
 
11174
#else
 
11175
# include <assert.h>
 
11176
#endif
 
11177
 
 
11178
#undef $ac_func
 
11179
 
 
11180
/* Override any GCC internal prototype to avoid an error.
 
11181
   Use char because int might match the return type of a GCC
 
11182
   builtin and then its argument prototype would still apply.  */
 
11183
#ifdef __cplusplus
 
11184
extern "C"
 
11185
#endif
 
11186
char $ac_func ();
 
11187
/* The GNU C library defines this for functions which it implements
 
11188
    to always fail with ENOSYS.  Some functions are actually named
 
11189
    something starting with __ and the normal name is an alias.  */
 
11190
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11191
choke me
 
11192
#endif
 
11193
 
 
11194
int
 
11195
main ()
 
11196
{
 
11197
return $ac_func ();
 
11198
  ;
 
11199
  return 0;
 
11200
}
 
11201
_ACEOF
 
11202
rm -f conftest.$ac_objext conftest$ac_exeext
 
11203
if { (ac_try="$ac_link"
 
11204
case "(($ac_try" in
 
11205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11206
  *) ac_try_echo=$ac_try;;
 
11207
esac
 
11208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11209
  (eval "$ac_link") 2>conftest.er1
 
11210
  ac_status=$?
 
11211
  grep -v '^ *+' conftest.er1 >conftest.err
 
11212
  rm -f conftest.er1
 
11213
  cat conftest.err >&5
 
11214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11215
  (exit $ac_status); } && {
 
11216
         test -z "$ac_c_werror_flag" ||
 
11217
         test ! -s conftest.err
 
11218
       } && test -s conftest$ac_exeext &&
 
11219
       $as_test_x conftest$ac_exeext; then
 
11220
  eval "$as_ac_var=yes"
 
11221
else
 
11222
  echo "$as_me: failed program was:" >&5
 
11223
sed 's/^/| /' conftest.$ac_ext >&5
 
11224
 
 
11225
        eval "$as_ac_var=no"
 
11226
fi
 
11227
 
 
11228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11229
      conftest$ac_exeext conftest.$ac_ext
 
11230
fi
 
11231
ac_res=`eval echo '${'$as_ac_var'}'`
 
11232
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11233
echo "${ECHO_T}$ac_res" >&6; }
 
11234
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11235
  cat >>confdefs.h <<_ACEOF
 
11236
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11237
_ACEOF
 
11238
 
 
11239
fi
 
11240
done
 
11241
 
 
11242
 
 
11243
 
 
11244
  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
11245
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
 
11246
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
11247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11248
else
 
11249
  cat >conftest.$ac_ext <<_ACEOF
 
11250
/* confdefs.h.  */
 
11251
_ACEOF
 
11252
cat confdefs.h >>conftest.$ac_ext
 
11253
cat >>conftest.$ac_ext <<_ACEOF
 
11254
/* end confdefs.h.  */
 
11255
#include <stdio.h>
 
11256
int
 
11257
main ()
 
11258
{
 
11259
 
 
11260
#ifndef _snprintf
 
11261
  char *p = (char *) _snprintf;
 
11262
#endif
 
11263
 
 
11264
  ;
 
11265
  return 0;
 
11266
}
 
11267
_ACEOF
 
11268
rm -f conftest.$ac_objext
 
11269
if { (ac_try="$ac_compile"
 
11270
case "(($ac_try" in
 
11271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11272
  *) ac_try_echo=$ac_try;;
 
11273
esac
 
11274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11275
  (eval "$ac_compile") 2>conftest.er1
 
11276
  ac_status=$?
 
11277
  grep -v '^ *+' conftest.er1 >conftest.err
 
11278
  rm -f conftest.er1
 
11279
  cat conftest.err >&5
 
11280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11281
  (exit $ac_status); } && {
 
11282
         test -z "$ac_c_werror_flag" ||
 
11283
         test ! -s conftest.err
 
11284
       } && test -s conftest.$ac_objext; then
 
11285
  ac_cv_have_decl__snprintf=yes
 
11286
else
 
11287
  echo "$as_me: failed program was:" >&5
 
11288
sed 's/^/| /' conftest.$ac_ext >&5
 
11289
 
 
11290
        ac_cv_have_decl__snprintf=no
 
11291
fi
 
11292
 
 
11293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11294
fi
 
11295
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
11296
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
 
11297
  if test $ac_cv_have_decl__snprintf = yes; then
 
11298
    gt_value=1
 
11299
  else
 
11300
    gt_value=0
 
11301
  fi
 
11302
 
 
11303
cat >>confdefs.h <<_ACEOF
 
11304
#define HAVE_DECL__SNPRINTF $gt_value
 
11305
_ACEOF
 
11306
 
 
11307
 
 
11308
 
 
11309
  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
11310
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
 
11311
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
11312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11313
else
 
11314
  cat >conftest.$ac_ext <<_ACEOF
 
11315
/* confdefs.h.  */
 
11316
_ACEOF
 
11317
cat confdefs.h >>conftest.$ac_ext
 
11318
cat >>conftest.$ac_ext <<_ACEOF
 
11319
/* end confdefs.h.  */
 
11320
#include <stdio.h>
 
11321
int
 
11322
main ()
 
11323
{
 
11324
 
 
11325
#ifndef _snwprintf
 
11326
  char *p = (char *) _snwprintf;
 
11327
#endif
 
11328
 
 
11329
  ;
 
11330
  return 0;
 
11331
}
 
11332
_ACEOF
 
11333
rm -f conftest.$ac_objext
 
11334
if { (ac_try="$ac_compile"
 
11335
case "(($ac_try" in
 
11336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11337
  *) ac_try_echo=$ac_try;;
 
11338
esac
 
11339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11340
  (eval "$ac_compile") 2>conftest.er1
 
11341
  ac_status=$?
 
11342
  grep -v '^ *+' conftest.er1 >conftest.err
 
11343
  rm -f conftest.er1
 
11344
  cat conftest.err >&5
 
11345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11346
  (exit $ac_status); } && {
 
11347
         test -z "$ac_c_werror_flag" ||
 
11348
         test ! -s conftest.err
 
11349
       } && test -s conftest.$ac_objext; then
 
11350
  ac_cv_have_decl__snwprintf=yes
 
11351
else
 
11352
  echo "$as_me: failed program was:" >&5
 
11353
sed 's/^/| /' conftest.$ac_ext >&5
 
11354
 
 
11355
        ac_cv_have_decl__snwprintf=no
 
11356
fi
 
11357
 
 
11358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11359
fi
 
11360
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
11361
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
 
11362
  if test $ac_cv_have_decl__snwprintf = yes; then
 
11363
    gt_value=1
 
11364
  else
 
11365
    gt_value=0
 
11366
  fi
 
11367
 
 
11368
cat >>confdefs.h <<_ACEOF
 
11369
#define HAVE_DECL__SNWPRINTF $gt_value
 
11370
_ACEOF
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
11376
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
 
11377
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
11378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11379
else
 
11380
  cat >conftest.$ac_ext <<_ACEOF
 
11381
/* confdefs.h.  */
 
11382
_ACEOF
 
11383
cat confdefs.h >>conftest.$ac_ext
 
11384
cat >>conftest.$ac_ext <<_ACEOF
 
11385
/* end confdefs.h.  */
 
11386
#include <stdio.h>
 
11387
int
 
11388
main ()
 
11389
{
 
11390
 
 
11391
#ifndef getc_unlocked
 
11392
  char *p = (char *) getc_unlocked;
 
11393
#endif
 
11394
 
 
11395
  ;
 
11396
  return 0;
 
11397
}
 
11398
_ACEOF
 
11399
rm -f conftest.$ac_objext
 
11400
if { (ac_try="$ac_compile"
 
11401
case "(($ac_try" in
 
11402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11403
  *) ac_try_echo=$ac_try;;
 
11404
esac
 
11405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11406
  (eval "$ac_compile") 2>conftest.er1
 
11407
  ac_status=$?
 
11408
  grep -v '^ *+' conftest.er1 >conftest.err
 
11409
  rm -f conftest.er1
 
11410
  cat conftest.err >&5
 
11411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11412
  (exit $ac_status); } && {
 
11413
         test -z "$ac_c_werror_flag" ||
 
11414
         test ! -s conftest.err
 
11415
       } && test -s conftest.$ac_objext; then
 
11416
  ac_cv_have_decl_getc_unlocked=yes
 
11417
else
 
11418
  echo "$as_me: failed program was:" >&5
 
11419
sed 's/^/| /' conftest.$ac_ext >&5
 
11420
 
 
11421
        ac_cv_have_decl_getc_unlocked=no
 
11422
fi
 
11423
 
 
11424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11425
fi
 
11426
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
11427
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
 
11428
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
11429
    gt_value=1
 
11430
  else
 
11431
    gt_value=0
 
11432
  fi
 
11433
 
 
11434
cat >>confdefs.h <<_ACEOF
 
11435
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
11436
_ACEOF
 
11437
 
 
11438
 
 
11439
 
 
11440
  case $gt_cv_func_printf_posix in
 
11441
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
11442
    *) HAVE_POSIX_PRINTF=0 ;;
 
11443
  esac
 
11444
 
 
11445
  if test "$ac_cv_func_asprintf" = yes; then
 
11446
    HAVE_ASPRINTF=1
 
11447
  else
 
11448
    HAVE_ASPRINTF=0
 
11449
  fi
 
11450
 
 
11451
  if test "$ac_cv_func_snprintf" = yes; then
 
11452
    HAVE_SNPRINTF=1
 
11453
  else
 
11454
    HAVE_SNPRINTF=0
 
11455
  fi
 
11456
 
 
11457
  if test "$ac_cv_func_wprintf" = yes; then
 
11458
    HAVE_WPRINTF=1
 
11459
  else
 
11460
    HAVE_WPRINTF=0
 
11461
  fi
 
11462
 
 
11463
 
 
11464
 
 
11465
  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
11466
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
 
11467
if test "${am_cv_langinfo_codeset+set}" = set; then
 
11468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11469
else
 
11470
  cat >conftest.$ac_ext <<_ACEOF
 
11471
/* confdefs.h.  */
 
11472
_ACEOF
 
11473
cat confdefs.h >>conftest.$ac_ext
 
11474
cat >>conftest.$ac_ext <<_ACEOF
 
11475
/* end confdefs.h.  */
 
11476
#include <langinfo.h>
 
11477
int
 
11478
main ()
 
11479
{
 
11480
char* cs = nl_langinfo(CODESET); return !cs;
 
11481
  ;
 
11482
  return 0;
 
11483
}
 
11484
_ACEOF
 
11485
rm -f conftest.$ac_objext conftest$ac_exeext
 
11486
if { (ac_try="$ac_link"
 
11487
case "(($ac_try" in
 
11488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11489
  *) ac_try_echo=$ac_try;;
 
11490
esac
 
11491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11492
  (eval "$ac_link") 2>conftest.er1
 
11493
  ac_status=$?
 
11494
  grep -v '^ *+' conftest.er1 >conftest.err
 
11495
  rm -f conftest.er1
 
11496
  cat conftest.err >&5
 
11497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11498
  (exit $ac_status); } && {
 
11499
         test -z "$ac_c_werror_flag" ||
 
11500
         test ! -s conftest.err
 
11501
       } && test -s conftest$ac_exeext &&
 
11502
       $as_test_x conftest$ac_exeext; then
 
11503
  am_cv_langinfo_codeset=yes
 
11504
else
 
11505
  echo "$as_me: failed program was:" >&5
 
11506
sed 's/^/| /' conftest.$ac_ext >&5
 
11507
 
 
11508
        am_cv_langinfo_codeset=no
 
11509
fi
 
11510
 
 
11511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11512
      conftest$ac_exeext conftest.$ac_ext
 
11513
 
 
11514
fi
 
11515
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
11516
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
 
11517
  if test $am_cv_langinfo_codeset = yes; then
 
11518
 
 
11519
cat >>confdefs.h <<\_ACEOF
 
11520
#define HAVE_LANGINFO_CODESET 1
 
11521
_ACEOF
 
11522
 
 
11523
  fi
 
11524
 
 
11525
 
 
11526
  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
11527
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
11528
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
 
11529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11530
else
 
11531
  cat >conftest.$ac_ext <<_ACEOF
 
11532
/* confdefs.h.  */
 
11533
_ACEOF
 
11534
cat confdefs.h >>conftest.$ac_ext
 
11535
cat >>conftest.$ac_ext <<_ACEOF
 
11536
/* end confdefs.h.  */
 
11537
#include <locale.h>
 
11538
int
 
11539
main ()
 
11540
{
 
11541
return LC_MESSAGES
 
11542
  ;
 
11543
  return 0;
 
11544
}
 
11545
_ACEOF
 
11546
rm -f conftest.$ac_objext conftest$ac_exeext
 
11547
if { (ac_try="$ac_link"
 
11548
case "(($ac_try" in
 
11549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11550
  *) ac_try_echo=$ac_try;;
 
11551
esac
 
11552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11553
  (eval "$ac_link") 2>conftest.er1
 
11554
  ac_status=$?
 
11555
  grep -v '^ *+' conftest.er1 >conftest.err
 
11556
  rm -f conftest.er1
 
11557
  cat conftest.err >&5
 
11558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11559
  (exit $ac_status); } && {
 
11560
         test -z "$ac_c_werror_flag" ||
 
11561
         test ! -s conftest.err
 
11562
       } && test -s conftest$ac_exeext &&
 
11563
       $as_test_x conftest$ac_exeext; then
 
11564
  gt_cv_val_LC_MESSAGES=yes
 
11565
else
 
11566
  echo "$as_me: failed program was:" >&5
 
11567
sed 's/^/| /' conftest.$ac_ext >&5
 
11568
 
 
11569
        gt_cv_val_LC_MESSAGES=no
 
11570
fi
 
11571
 
 
11572
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11573
      conftest$ac_exeext conftest.$ac_ext
 
11574
fi
 
11575
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
 
11576
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
 
11577
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
11578
 
 
11579
cat >>confdefs.h <<\_ACEOF
 
11580
#define HAVE_LC_MESSAGES 1
 
11581
_ACEOF
 
11582
 
 
11583
  fi
 
11584
 
 
11585
 
 
11586
                if test "$enable_shared" = yes; then
 
11587
    case "$host_os" in
 
11588
      mingw* | cygwin*) is_woe32dll=yes ;;
 
11589
      *) is_woe32dll=no ;;
 
11590
    esac
 
11591
  else
 
11592
    is_woe32dll=no
 
11593
  fi
 
11594
  WOE32DLL=$is_woe32dll
 
11595
 
 
11596
 
 
11597
      case "$host_os" in
 
11598
    mingw* | cygwin*) is_woe32=yes ;;
 
11599
    *) is_woe32=no ;;
 
11600
  esac
 
11601
  WOE32=$is_woe32
 
11602
 
 
11603
  if test $WOE32 = yes; then
 
11604
        if test -n "$ac_tool_prefix"; then
 
11605
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
11606
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
11607
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
11609
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
11610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11611
else
 
11612
  if test -n "$WINDRES"; then
 
11613
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
11614
else
 
11615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11616
for as_dir in $PATH
 
11617
do
 
11618
  IFS=$as_save_IFS
 
11619
  test -z "$as_dir" && as_dir=.
 
11620
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11622
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
11623
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11624
    break 2
 
11625
  fi
 
11626
done
 
11627
done
 
11628
IFS=$as_save_IFS
 
11629
 
 
11630
fi
 
11631
fi
 
11632
WINDRES=$ac_cv_prog_WINDRES
 
11633
if test -n "$WINDRES"; then
 
11634
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
 
11635
echo "${ECHO_T}$WINDRES" >&6; }
 
11636
else
 
11637
  { echo "$as_me:$LINENO: result: no" >&5
 
11638
echo "${ECHO_T}no" >&6; }
 
11639
fi
 
11640
 
 
11641
 
 
11642
fi
 
11643
if test -z "$ac_cv_prog_WINDRES"; then
 
11644
  ac_ct_WINDRES=$WINDRES
 
11645
  # Extract the first word of "windres", so it can be a program name with args.
 
11646
set dummy windres; ac_word=$2
 
11647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
11649
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
11650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11651
else
 
11652
  if test -n "$ac_ct_WINDRES"; then
 
11653
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
11654
else
 
11655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11656
for as_dir in $PATH
 
11657
do
 
11658
  IFS=$as_save_IFS
 
11659
  test -z "$as_dir" && as_dir=.
 
11660
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11662
    ac_cv_prog_ac_ct_WINDRES="windres"
 
11663
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11664
    break 2
 
11665
  fi
 
11666
done
 
11667
done
 
11668
IFS=$as_save_IFS
 
11669
 
 
11670
fi
 
11671
fi
 
11672
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
11673
if test -n "$ac_ct_WINDRES"; then
 
11674
  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
11675
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
 
11676
else
 
11677
  { echo "$as_me:$LINENO: result: no" >&5
 
11678
echo "${ECHO_T}no" >&6; }
 
11679
fi
 
11680
 
 
11681
  if test "x$ac_ct_WINDRES" = x; then
 
11682
    WINDRES=""
 
11683
  else
 
11684
    case $cross_compiling:$ac_tool_warned in
 
11685
yes:)
 
11686
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
11687
whose name does not start with the host triplet.  If you think this
 
11688
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
11689
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
11690
whose name does not start with the host triplet.  If you think this
 
11691
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
11692
ac_tool_warned=yes ;;
 
11693
esac
 
11694
    WINDRES=$ac_ct_WINDRES
 
11695
  fi
 
11696
else
 
11697
  WINDRES="$ac_cv_prog_WINDRES"
 
11698
fi
 
11699
 
 
11700
  fi
 
11701
 
 
11702
              case "$host_os" in
 
11703
    hpux*) LTLIBC="" ;;
 
11704
    *)     LTLIBC="-lc" ;;
 
11705
  esac
 
11706
 
 
11707
 
 
11708
 
 
11709
 
 
11710
 
 
11711
 
 
11712
 
 
11713
 
 
11714
 
 
11715
 
 
11716
 
 
11717
 
 
11718
 
 
11719
 
 
11720
 
 
11721
 
 
11722
 
 
11723
 
 
11724
 
 
11725
 
 
11726
 
 
11727
 
 
11728
 
 
11729
 
 
11730
 
 
11731
 
 
11732
 
 
11733
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
11734
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
11735
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
11736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11737
else
 
11738
  gt_save_LIBS="$LIBS"
 
11739
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
11740
     cat >conftest.$ac_ext <<_ACEOF
 
11741
/* confdefs.h.  */
 
11742
_ACEOF
 
11743
cat confdefs.h >>conftest.$ac_ext
 
11744
cat >>conftest.$ac_ext <<_ACEOF
 
11745
/* end confdefs.h.  */
 
11746
#include <CoreFoundation/CFPreferences.h>
 
11747
int
 
11748
main ()
 
11749
{
 
11750
CFPreferencesCopyAppValue(NULL, NULL)
 
11751
  ;
 
11752
  return 0;
 
11753
}
 
11754
_ACEOF
 
11755
rm -f conftest.$ac_objext conftest$ac_exeext
 
11756
if { (ac_try="$ac_link"
 
11757
case "(($ac_try" in
 
11758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11759
  *) ac_try_echo=$ac_try;;
 
11760
esac
 
11761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11762
  (eval "$ac_link") 2>conftest.er1
 
11763
  ac_status=$?
 
11764
  grep -v '^ *+' conftest.er1 >conftest.err
 
11765
  rm -f conftest.er1
 
11766
  cat conftest.err >&5
 
11767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11768
  (exit $ac_status); } && {
 
11769
         test -z "$ac_c_werror_flag" ||
 
11770
         test ! -s conftest.err
 
11771
       } && test -s conftest$ac_exeext &&
 
11772
       $as_test_x conftest$ac_exeext; then
 
11773
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
11774
else
 
11775
  echo "$as_me: failed program was:" >&5
 
11776
sed 's/^/| /' conftest.$ac_ext >&5
 
11777
 
 
11778
        gt_cv_func_CFPreferencesCopyAppValue=no
 
11779
fi
 
11780
 
 
11781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11782
      conftest$ac_exeext conftest.$ac_ext
 
11783
     LIBS="$gt_save_LIBS"
 
11784
fi
 
11785
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
11786
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
11787
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
11788
 
 
11789
cat >>confdefs.h <<\_ACEOF
 
11790
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
11791
_ACEOF
 
11792
 
 
11793
  fi
 
11794
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
11795
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
11796
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
11797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11798
else
 
11799
  gt_save_LIBS="$LIBS"
 
11800
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
11801
     cat >conftest.$ac_ext <<_ACEOF
 
11802
/* confdefs.h.  */
 
11803
_ACEOF
 
11804
cat confdefs.h >>conftest.$ac_ext
 
11805
cat >>conftest.$ac_ext <<_ACEOF
 
11806
/* end confdefs.h.  */
 
11807
#include <CoreFoundation/CFLocale.h>
 
11808
int
 
11809
main ()
 
11810
{
 
11811
CFLocaleCopyCurrent();
 
11812
  ;
 
11813
  return 0;
 
11814
}
 
11815
_ACEOF
 
11816
rm -f conftest.$ac_objext conftest$ac_exeext
 
11817
if { (ac_try="$ac_link"
 
11818
case "(($ac_try" in
 
11819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11820
  *) ac_try_echo=$ac_try;;
 
11821
esac
 
11822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11823
  (eval "$ac_link") 2>conftest.er1
 
11824
  ac_status=$?
 
11825
  grep -v '^ *+' conftest.er1 >conftest.err
 
11826
  rm -f conftest.er1
 
11827
  cat conftest.err >&5
 
11828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11829
  (exit $ac_status); } && {
 
11830
         test -z "$ac_c_werror_flag" ||
 
11831
         test ! -s conftest.err
 
11832
       } && test -s conftest$ac_exeext &&
 
11833
       $as_test_x conftest$ac_exeext; then
 
11834
  gt_cv_func_CFLocaleCopyCurrent=yes
 
11835
else
 
11836
  echo "$as_me: failed program was:" >&5
 
11837
sed 's/^/| /' conftest.$ac_ext >&5
 
11838
 
 
11839
        gt_cv_func_CFLocaleCopyCurrent=no
 
11840
fi
 
11841
 
 
11842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11843
      conftest$ac_exeext conftest.$ac_ext
 
11844
     LIBS="$gt_save_LIBS"
 
11845
fi
 
11846
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
11847
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
11848
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
11849
 
 
11850
cat >>confdefs.h <<\_ACEOF
 
11851
#define HAVE_CFLOCALECOPYCURRENT 1
 
11852
_ACEOF
 
11853
 
 
11854
  fi
 
11855
  INTL_MACOSX_LIBS=
 
11856
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
11857
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
11858
  fi
 
11859
 
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
    BUILD_INCLUDED_LIBINTL=no
 
11866
    USE_INCLUDED_LIBINTL=no
 
11867
 
 
11868
  LIBINTL=
 
11869
  LTLIBINTL=
 
11870
  POSUB=
 
11871
 
 
11872
    case " $gt_needs " in
 
11873
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
11874
    *" need-ngettext "*) gt_api_version=2 ;;
 
11875
    *) gt_api_version=1 ;;
 
11876
  esac
 
11877
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
11878
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
11879
 
 
11880
    if test "$USE_NLS" = "yes"; then
 
11881
    gt_use_preinstalled_gnugettext=no
 
11882
 
 
11883
      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
11884
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
 
11885
 
 
11886
# Check whether --with-included-gettext was given.
 
11887
if test "${with_included_gettext+set}" = set; then
 
11888
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
 
11889
else
 
11890
  nls_cv_force_use_gnu_gettext=no
 
11891
fi
 
11892
 
 
11893
      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
11894
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
 
11895
 
 
11896
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
11897
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
11898
 
 
11899
 
 
11900
        if test $gt_api_version -ge 3; then
 
11901
          gt_revision_test_code='
 
11902
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
11903
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
11904
#endif
 
11905
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
11906
'
 
11907
        else
 
11908
          gt_revision_test_code=
 
11909
        fi
 
11910
        if test $gt_api_version -ge 2; then
 
11911
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
11912
        else
 
11913
          gt_expression_test_code=
 
11914
        fi
 
11915
 
 
11916
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
11917
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
 
11918
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
 
11919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11920
else
 
11921
  cat >conftest.$ac_ext <<_ACEOF
 
11922
/* confdefs.h.  */
 
11923
_ACEOF
 
11924
cat confdefs.h >>conftest.$ac_ext
 
11925
cat >>conftest.$ac_ext <<_ACEOF
 
11926
/* end confdefs.h.  */
 
11927
#include <libintl.h>
 
11928
$gt_revision_test_code
 
11929
extern int _nl_msg_cat_cntr;
 
11930
extern int *_nl_domain_bindings;
 
11931
int
 
11932
main ()
 
11933
{
 
11934
bindtextdomain ("", "");
 
11935
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
11936
  ;
 
11937
  return 0;
 
11938
}
 
11939
_ACEOF
 
11940
rm -f conftest.$ac_objext conftest$ac_exeext
 
11941
if { (ac_try="$ac_link"
 
11942
case "(($ac_try" in
 
11943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11944
  *) ac_try_echo=$ac_try;;
 
11945
esac
 
11946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11947
  (eval "$ac_link") 2>conftest.er1
 
11948
  ac_status=$?
 
11949
  grep -v '^ *+' conftest.er1 >conftest.err
 
11950
  rm -f conftest.er1
 
11951
  cat conftest.err >&5
 
11952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11953
  (exit $ac_status); } && {
 
11954
         test -z "$ac_c_werror_flag" ||
 
11955
         test ! -s conftest.err
 
11956
       } && test -s conftest$ac_exeext &&
 
11957
       $as_test_x conftest$ac_exeext; then
 
11958
  eval "$gt_func_gnugettext_libc=yes"
 
11959
else
 
11960
  echo "$as_me: failed program was:" >&5
 
11961
sed 's/^/| /' conftest.$ac_ext >&5
 
11962
 
 
11963
        eval "$gt_func_gnugettext_libc=no"
 
11964
fi
 
11965
 
 
11966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11967
      conftest$ac_exeext conftest.$ac_ext
 
11968
fi
 
11969
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
 
11970
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11971
echo "${ECHO_T}$ac_res" >&6; }
 
11972
 
 
11973
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
11974
 
4779
11975
 
4780
11976
 
4781
11977
 
4824
12020
      LIBINTL=
4825
12021
  LTLIBINTL=
4826
12022
  INCINTL=
 
12023
  LIBINTL_PREFIX=
4827
12024
  rpathdirs=
4828
12025
  ltrpathdirs=
4829
12026
  names_already_handled=
4857
12054
          found_la=
4858
12055
          found_so=
4859
12056
          found_a=
 
12057
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
12058
          if test -n "$acl_shlibext"; then
 
12059
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
12060
          else
 
12061
            shrext=
 
12062
          fi
4860
12063
          if test $use_additional = yes; then
4861
 
            if test -n "$shlibext" \
4862
 
               && { test -f "$additional_libdir/lib$name.$shlibext" \
4863
 
                    || { test "$shlibext" = dll \
4864
 
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
4865
 
              found_dir="$additional_libdir"
4866
 
              if test -f "$additional_libdir/lib$name.$shlibext"; then
4867
 
                found_so="$additional_libdir/lib$name.$shlibext"
 
12064
            dir="$additional_libdir"
 
12065
                                    if test -n "$acl_shlibext"; then
 
12066
              if test -f "$dir/$libname$shrext"; then
 
12067
                found_dir="$dir"
 
12068
                found_so="$dir/$libname$shrext"
4868
12069
              else
4869
 
                found_so="$additional_libdir/lib$name.dll.a"
4870
 
              fi
4871
 
              if test -f "$additional_libdir/lib$name.la"; then
4872
 
                found_la="$additional_libdir/lib$name.la"
4873
 
              fi
4874
 
            else
4875
 
              if test -f "$additional_libdir/lib$name.$libext"; then
4876
 
                found_dir="$additional_libdir"
4877
 
                found_a="$additional_libdir/lib$name.$libext"
4878
 
                if test -f "$additional_libdir/lib$name.la"; then
4879
 
                  found_la="$additional_libdir/lib$name.la"
 
12070
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12071
                  ver=`(cd "$dir" && \
 
12072
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
12073
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
12074
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12075
                        | sed 1q ) 2>/dev/null`
 
12076
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12077
                    found_dir="$dir"
 
12078
                    found_so="$dir/$libname$shrext.$ver"
 
12079
                  fi
 
12080
                else
 
12081
                  eval library_names=\"$acl_library_names_spec\"
 
12082
                  for f in $library_names; do
 
12083
                    if test -f "$dir/$f"; then
 
12084
                      found_dir="$dir"
 
12085
                      found_so="$dir/$f"
 
12086
                      break
 
12087
                    fi
 
12088
                  done
4880
12089
                fi
4881
12090
              fi
4882
12091
            fi
 
12092
                        if test "X$found_dir" = "X"; then
 
12093
              if test -f "$dir/$libname.$acl_libext"; then
 
12094
                found_dir="$dir"
 
12095
                found_a="$dir/$libname.$acl_libext"
 
12096
              fi
 
12097
            fi
 
12098
            if test "X$found_dir" != "X"; then
 
12099
              if test -f "$dir/$libname.la"; then
 
12100
                found_la="$dir/$libname.la"
 
12101
              fi
 
12102
            fi
4883
12103
          fi
4884
12104
          if test "X$found_dir" = "X"; then
4885
12105
            for x in $LDFLAGS $LTLIBINTL; do
4895
12115
              case "$x" in
4896
12116
                -L*)
4897
12117
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4898
 
                  if test -n "$shlibext" \
4899
 
                     && { test -f "$dir/lib$name.$shlibext" \
4900
 
                          || { test "$shlibext" = dll \
4901
 
                               && test -f "$dir/lib$name.dll.a"; }; }; then
4902
 
                    found_dir="$dir"
4903
 
                    if test -f "$dir/lib$name.$shlibext"; then
4904
 
                      found_so="$dir/lib$name.$shlibext"
 
12118
                                    if test -n "$acl_shlibext"; then
 
12119
                    if test -f "$dir/$libname$shrext"; then
 
12120
                      found_dir="$dir"
 
12121
                      found_so="$dir/$libname$shrext"
4905
12122
                    else
4906
 
                      found_so="$dir/lib$name.dll.a"
4907
 
                    fi
4908
 
                    if test -f "$dir/lib$name.la"; then
4909
 
                      found_la="$dir/lib$name.la"
4910
 
                    fi
4911
 
                  else
4912
 
                    if test -f "$dir/lib$name.$libext"; then
4913
 
                      found_dir="$dir"
4914
 
                      found_a="$dir/lib$name.$libext"
4915
 
                      if test -f "$dir/lib$name.la"; then
4916
 
                        found_la="$dir/lib$name.la"
 
12123
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12124
                        ver=`(cd "$dir" && \
 
12125
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
12126
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
12127
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12128
                              | sed 1q ) 2>/dev/null`
 
12129
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12130
                          found_dir="$dir"
 
12131
                          found_so="$dir/$libname$shrext.$ver"
 
12132
                        fi
 
12133
                      else
 
12134
                        eval library_names=\"$acl_library_names_spec\"
 
12135
                        for f in $library_names; do
 
12136
                          if test -f "$dir/$f"; then
 
12137
                            found_dir="$dir"
 
12138
                            found_so="$dir/$f"
 
12139
                            break
 
12140
                          fi
 
12141
                        done
4917
12142
                      fi
4918
12143
                    fi
4919
12144
                  fi
 
12145
                                    if test "X$found_dir" = "X"; then
 
12146
                    if test -f "$dir/$libname.$acl_libext"; then
 
12147
                      found_dir="$dir"
 
12148
                      found_a="$dir/$libname.$acl_libext"
 
12149
                    fi
 
12150
                  fi
 
12151
                  if test "X$found_dir" != "X"; then
 
12152
                    if test -f "$dir/$libname.la"; then
 
12153
                      found_la="$dir/$libname.la"
 
12154
                    fi
 
12155
                  fi
4920
12156
                  ;;
4921
12157
              esac
4922
12158
              if test "X$found_dir" != "X"; then
4940
12176
                if test -z "$haveit"; then
4941
12177
                  ltrpathdirs="$ltrpathdirs $found_dir"
4942
12178
                fi
4943
 
                                if test "$hardcode_direct" = yes; then
 
12179
                                if test "$acl_hardcode_direct" = yes; then
4944
12180
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4945
12181
                else
4946
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
12182
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4947
12183
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4948
12184
                                                            haveit=
4949
12185
                    for x in $rpathdirs; do
4975
12211
                    if test -z "$haveit"; then
4976
12212
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4977
12213
                    fi
4978
 
                    if test "$hardcode_minus_L" != no; then
 
12214
                    if test "$acl_hardcode_minus_L" != no; then
4979
12215
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4980
12216
                    else
4981
12217
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4994
12230
            case "$found_dir" in
4995
12231
              */$acl_libdirstem | */$acl_libdirstem/)
4996
12232
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
12233
                LIBINTL_PREFIX="$basedir"
4997
12234
                additional_includedir="$basedir/include"
4998
12235
                ;;
4999
12236
            esac
5144
12381
    done
5145
12382
  done
5146
12383
  if test "X$rpathdirs" != "X"; then
5147
 
    if test -n "$hardcode_libdir_separator"; then
 
12384
    if test -n "$acl_hardcode_libdir_separator"; then
5148
12385
                        alldirs=
5149
12386
      for found_dir in $rpathdirs; do
5150
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
12387
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5151
12388
      done
5152
12389
            acl_save_libdir="$libdir"
5153
12390
      libdir="$alldirs"
5154
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
12391
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5155
12392
      libdir="$acl_save_libdir"
5156
12393
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5157
12394
    else
5158
12395
            for found_dir in $rpathdirs; do
5159
12396
        acl_save_libdir="$libdir"
5160
12397
        libdir="$found_dir"
5161
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
12398
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5162
12399
        libdir="$acl_save_libdir"
5163
12400
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5164
12401
      done
5307
12544
        fi
5308
12545
 
5309
12546
 
 
12547
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
12548
                              nls_cv_use_gnu_gettext=yes
 
12549
        fi
 
12550
      fi
 
12551
 
 
12552
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
12553
                BUILD_INCLUDED_LIBINTL=yes
 
12554
        USE_INCLUDED_LIBINTL=yes
 
12555
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
 
12556
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
 
12557
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
12558
      fi
 
12559
 
 
12560
      CATOBJEXT=
 
12561
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
12562
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
12563
                CATOBJEXT=.gmo
 
12564
      fi
 
12565
 
5310
12566
 
5311
12567
    if test -n "$INTL_MACOSX_LIBS"; then
5312
12568
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
5397
12653
  fi
5398
12654
 
5399
12655
 
 
12656
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
12657
      BUILD_INCLUDED_LIBINTL=yes
 
12658
    fi
 
12659
 
 
12660
 
 
12661
 
 
12662
 
 
12663
 
 
12664
        nls_cv_header_intl=
 
12665
    nls_cv_header_libgt=
 
12666
 
 
12667
        DATADIRNAME=share
 
12668
 
 
12669
 
 
12670
        INSTOBJEXT=.mo
 
12671
 
 
12672
 
 
12673
        GENCAT=gencat
 
12674
 
 
12675
 
 
12676
        INTLOBJS=
 
12677
    if test "$USE_INCLUDED_LIBINTL" = yes; then
 
12678
      INTLOBJS="\$(GETTOBJS)"
 
12679
    fi
 
12680
 
 
12681
 
 
12682
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
12683
 
 
12684
 
5400
12685
 
5401
12686
    INTLLIBS="$LIBINTL"
5402
12687
 
5407
12692
 
5408
12693
 
5409
12694
 
 
12695
# ----------------------------------------------------------------------
5410
12696
# Checks for programs.
 
12697
# ----------------------------------------------------------------------
 
12698
 
5411
12699
ac_ext=c
5412
12700
ac_cpp='$CPP $CPPFLAGS'
5413
12701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272
13560
 
6273
13561
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6274
13562
 
6275
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6276
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6277
 
LN_S=$as_ln_s
6278
 
if test "$LN_S" = "ln -s"; then
6279
 
  { echo "$as_me:$LINENO: result: yes" >&5
6280
 
echo "${ECHO_T}yes" >&6; }
6281
 
else
6282
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6283
 
echo "${ECHO_T}no, using $LN_S" >&6; }
6284
 
fi
6285
 
 
6286
13563
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6287
13564
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6288
13565
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6313
13590
  SET_MAKE="MAKE=${MAKE-make}"
6314
13591
fi
6315
13592
 
6316
 
 
6317
 
# AC_PROG_CPP
6318
 
# AC_PROG_CXX
6319
 
 
6320
 
 
6321
 
if test "x$prefix" = "xNONE"; then
6322
 
  prefix=$ac_default_prefix
6323
 
  ac_configure_args="$ac_configure_args --prefix $prefix"
6324
 
fi
6325
 
 
 
13593
for ac_prog in gawk mawk nawk awk
 
13594
do
 
13595
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13596
set dummy $ac_prog; ac_word=$2
 
13597
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13599
if test "${ac_cv_prog_AWK+set}" = set; then
 
13600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13601
else
 
13602
  if test -n "$AWK"; then
 
13603
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
13604
else
 
13605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13606
for as_dir in $PATH
 
13607
do
 
13608
  IFS=$as_save_IFS
 
13609
  test -z "$as_dir" && as_dir=.
 
13610
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13612
    ac_cv_prog_AWK="$ac_prog"
 
13613
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13614
    break 2
 
13615
  fi
 
13616
done
 
13617
done
 
13618
IFS=$as_save_IFS
 
13619
 
 
13620
fi
 
13621
fi
 
13622
AWK=$ac_cv_prog_AWK
 
13623
if test -n "$AWK"; then
 
13624
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
13625
echo "${ECHO_T}$AWK" >&6; }
 
13626
else
 
13627
  { echo "$as_me:$LINENO: result: no" >&5
 
13628
echo "${ECHO_T}no" >&6; }
 
13629
fi
 
13630
 
 
13631
 
 
13632
  test -n "$AWK" && break
 
13633
done
 
13634
 
 
13635
ac_ext=c
 
13636
ac_cpp='$CPP $CPPFLAGS'
 
13637
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13638
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13639
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13640
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
13641
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
13642
# On Suns, sometimes $CPP names a directory.
 
13643
if test -n "$CPP" && test -d "$CPP"; then
 
13644
  CPP=
 
13645
fi
 
13646
if test -z "$CPP"; then
 
13647
  if test "${ac_cv_prog_CPP+set}" = set; then
 
13648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13649
else
 
13650
      # Double quotes because CPP needs to be expanded
 
13651
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
13652
    do
 
13653
      ac_preproc_ok=false
 
13654
for ac_c_preproc_warn_flag in '' yes
 
13655
do
 
13656
  # Use a header file that comes with gcc, so configuring glibc
 
13657
  # with a fresh cross-compiler works.
 
13658
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13659
  # <limits.h> exists even on freestanding compilers.
 
13660
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13661
  # not just through cpp. "Syntax error" is here to catch this case.
 
13662
  cat >conftest.$ac_ext <<_ACEOF
 
13663
/* confdefs.h.  */
 
13664
_ACEOF
 
13665
cat confdefs.h >>conftest.$ac_ext
 
13666
cat >>conftest.$ac_ext <<_ACEOF
 
13667
/* end confdefs.h.  */
 
13668
#ifdef __STDC__
 
13669
# include <limits.h>
 
13670
#else
 
13671
# include <assert.h>
 
13672
#endif
 
13673
                     Syntax error
 
13674
_ACEOF
 
13675
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13676
case "(($ac_try" in
 
13677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13678
  *) ac_try_echo=$ac_try;;
 
13679
esac
 
13680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13681
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13682
  ac_status=$?
 
13683
  grep -v '^ *+' conftest.er1 >conftest.err
 
13684
  rm -f conftest.er1
 
13685
  cat conftest.err >&5
 
13686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13687
  (exit $ac_status); } >/dev/null && {
 
13688
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13689
         test ! -s conftest.err
 
13690
       }; then
 
13691
  :
 
13692
else
 
13693
  echo "$as_me: failed program was:" >&5
 
13694
sed 's/^/| /' conftest.$ac_ext >&5
 
13695
 
 
13696
  # Broken: fails on valid input.
 
13697
continue
 
13698
fi
 
13699
 
 
13700
rm -f conftest.err conftest.$ac_ext
 
13701
 
 
13702
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13703
  # can be detected and how.
 
13704
  cat >conftest.$ac_ext <<_ACEOF
 
13705
/* confdefs.h.  */
 
13706
_ACEOF
 
13707
cat confdefs.h >>conftest.$ac_ext
 
13708
cat >>conftest.$ac_ext <<_ACEOF
 
13709
/* end confdefs.h.  */
 
13710
#include <ac_nonexistent.h>
 
13711
_ACEOF
 
13712
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13713
case "(($ac_try" in
 
13714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13715
  *) ac_try_echo=$ac_try;;
 
13716
esac
 
13717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13718
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13719
  ac_status=$?
 
13720
  grep -v '^ *+' conftest.er1 >conftest.err
 
13721
  rm -f conftest.er1
 
13722
  cat conftest.err >&5
 
13723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13724
  (exit $ac_status); } >/dev/null && {
 
13725
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13726
         test ! -s conftest.err
 
13727
       }; then
 
13728
  # Broken: success on invalid input.
 
13729
continue
 
13730
else
 
13731
  echo "$as_me: failed program was:" >&5
 
13732
sed 's/^/| /' conftest.$ac_ext >&5
 
13733
 
 
13734
  # Passes both tests.
 
13735
ac_preproc_ok=:
 
13736
break
 
13737
fi
 
13738
 
 
13739
rm -f conftest.err conftest.$ac_ext
 
13740
 
 
13741
done
 
13742
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13743
rm -f conftest.err conftest.$ac_ext
 
13744
if $ac_preproc_ok; then
 
13745
  break
 
13746
fi
 
13747
 
 
13748
    done
 
13749
    ac_cv_prog_CPP=$CPP
 
13750
 
 
13751
fi
 
13752
  CPP=$ac_cv_prog_CPP
 
13753
else
 
13754
  ac_cv_prog_CPP=$CPP
 
13755
fi
 
13756
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
13757
echo "${ECHO_T}$CPP" >&6; }
 
13758
ac_preproc_ok=false
 
13759
for ac_c_preproc_warn_flag in '' yes
 
13760
do
 
13761
  # Use a header file that comes with gcc, so configuring glibc
 
13762
  # with a fresh cross-compiler works.
 
13763
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13764
  # <limits.h> exists even on freestanding compilers.
 
13765
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
13766
  # not just through cpp. "Syntax error" is here to catch this case.
 
13767
  cat >conftest.$ac_ext <<_ACEOF
 
13768
/* confdefs.h.  */
 
13769
_ACEOF
 
13770
cat confdefs.h >>conftest.$ac_ext
 
13771
cat >>conftest.$ac_ext <<_ACEOF
 
13772
/* end confdefs.h.  */
 
13773
#ifdef __STDC__
 
13774
# include <limits.h>
 
13775
#else
 
13776
# include <assert.h>
 
13777
#endif
 
13778
                     Syntax error
 
13779
_ACEOF
 
13780
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13781
case "(($ac_try" in
 
13782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13783
  *) ac_try_echo=$ac_try;;
 
13784
esac
 
13785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13786
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13787
  ac_status=$?
 
13788
  grep -v '^ *+' conftest.er1 >conftest.err
 
13789
  rm -f conftest.er1
 
13790
  cat conftest.err >&5
 
13791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13792
  (exit $ac_status); } >/dev/null && {
 
13793
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13794
         test ! -s conftest.err
 
13795
       }; then
 
13796
  :
 
13797
else
 
13798
  echo "$as_me: failed program was:" >&5
 
13799
sed 's/^/| /' conftest.$ac_ext >&5
 
13800
 
 
13801
  # Broken: fails on valid input.
 
13802
continue
 
13803
fi
 
13804
 
 
13805
rm -f conftest.err conftest.$ac_ext
 
13806
 
 
13807
  # OK, works on sane cases.  Now check whether nonexistent headers
 
13808
  # can be detected and how.
 
13809
  cat >conftest.$ac_ext <<_ACEOF
 
13810
/* confdefs.h.  */
 
13811
_ACEOF
 
13812
cat confdefs.h >>conftest.$ac_ext
 
13813
cat >>conftest.$ac_ext <<_ACEOF
 
13814
/* end confdefs.h.  */
 
13815
#include <ac_nonexistent.h>
 
13816
_ACEOF
 
13817
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13818
case "(($ac_try" in
 
13819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13820
  *) ac_try_echo=$ac_try;;
 
13821
esac
 
13822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13823
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13824
  ac_status=$?
 
13825
  grep -v '^ *+' conftest.er1 >conftest.err
 
13826
  rm -f conftest.er1
 
13827
  cat conftest.err >&5
 
13828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13829
  (exit $ac_status); } >/dev/null && {
 
13830
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13831
         test ! -s conftest.err
 
13832
       }; then
 
13833
  # Broken: success on invalid input.
 
13834
continue
 
13835
else
 
13836
  echo "$as_me: failed program was:" >&5
 
13837
sed 's/^/| /' conftest.$ac_ext >&5
 
13838
 
 
13839
  # Passes both tests.
 
13840
ac_preproc_ok=:
 
13841
break
 
13842
fi
 
13843
 
 
13844
rm -f conftest.err conftest.$ac_ext
 
13845
 
 
13846
done
 
13847
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
13848
rm -f conftest.err conftest.$ac_ext
 
13849
if $ac_preproc_ok; then
 
13850
  :
 
13851
else
 
13852
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
13853
See \`config.log' for more details." >&5
 
13854
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
13855
See \`config.log' for more details." >&2;}
 
13856
   { (exit 1); exit 1; }; }
 
13857
fi
 
13858
 
 
13859
ac_ext=c
 
13860
ac_cpp='$CPP $CPPFLAGS'
 
13861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13864
 
 
13865
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
13866
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
13867
if test -z "$MKDIR_P"; then
 
13868
  if test "${ac_cv_path_mkdir+set}" = set; then
 
13869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13870
else
 
13871
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13872
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
13873
do
 
13874
  IFS=$as_save_IFS
 
13875
  test -z "$as_dir" && as_dir=.
 
13876
  for ac_prog in mkdir gmkdir; do
 
13877
         for ac_exec_ext in '' $ac_executable_extensions; do
 
13878
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
13879
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
13880
             'mkdir (GNU coreutils) '* | \
 
13881
             'mkdir (coreutils) '* | \
 
13882
             'mkdir (fileutils) '4.1*)
 
13883
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
13884
               break 3;;
 
13885
           esac
 
13886
         done
 
13887
       done
 
13888
done
 
13889
IFS=$as_save_IFS
 
13890
 
 
13891
fi
 
13892
 
 
13893
  if test "${ac_cv_path_mkdir+set}" = set; then
 
13894
    MKDIR_P="$ac_cv_path_mkdir -p"
 
13895
  else
 
13896
    # As a last resort, use the slow shell script.  Don't cache a
 
13897
    # value for MKDIR_P within a source directory, because that will
 
13898
    # break other packages using the cache if that directory is
 
13899
    # removed, or if the value is a relative name.
 
13900
    test -d ./--version && rmdir ./--version
 
13901
    MKDIR_P="$ac_install_sh -d"
 
13902
  fi
 
13903
fi
 
13904
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
13905
echo "${ECHO_T}$MKDIR_P" >&6; }
 
13906
 
 
13907
if test -n "$ac_tool_prefix"; then
 
13908
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
13909
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
13910
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13911
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13912
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
13913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13914
else
 
13915
  if test -n "$RANLIB"; then
 
13916
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
13917
else
 
13918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13919
for as_dir in $PATH
 
13920
do
 
13921
  IFS=$as_save_IFS
 
13922
  test -z "$as_dir" && as_dir=.
 
13923
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13924
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13925
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
13926
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13927
    break 2
 
13928
  fi
 
13929
done
 
13930
done
 
13931
IFS=$as_save_IFS
 
13932
 
 
13933
fi
 
13934
fi
 
13935
RANLIB=$ac_cv_prog_RANLIB
 
13936
if test -n "$RANLIB"; then
 
13937
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
13938
echo "${ECHO_T}$RANLIB" >&6; }
 
13939
else
 
13940
  { echo "$as_me:$LINENO: result: no" >&5
 
13941
echo "${ECHO_T}no" >&6; }
 
13942
fi
 
13943
 
 
13944
 
 
13945
fi
 
13946
if test -z "$ac_cv_prog_RANLIB"; then
 
13947
  ac_ct_RANLIB=$RANLIB
 
13948
  # Extract the first word of "ranlib", so it can be a program name with args.
 
13949
set dummy ranlib; ac_word=$2
 
13950
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13951
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13952
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
13953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13954
else
 
13955
  if test -n "$ac_ct_RANLIB"; then
 
13956
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
13957
else
 
13958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13959
for as_dir in $PATH
 
13960
do
 
13961
  IFS=$as_save_IFS
 
13962
  test -z "$as_dir" && as_dir=.
 
13963
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13964
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13965
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
13966
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13967
    break 2
 
13968
  fi
 
13969
done
 
13970
done
 
13971
IFS=$as_save_IFS
 
13972
 
 
13973
fi
 
13974
fi
 
13975
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
13976
if test -n "$ac_ct_RANLIB"; then
 
13977
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
13978
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
13979
else
 
13980
  { echo "$as_me:$LINENO: result: no" >&5
 
13981
echo "${ECHO_T}no" >&6; }
 
13982
fi
 
13983
 
 
13984
  if test "x$ac_ct_RANLIB" = x; then
 
13985
    RANLIB=":"
 
13986
  else
 
13987
    case $cross_compiling:$ac_tool_warned in
 
13988
yes:)
 
13989
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
13990
whose name does not start with the host triplet.  If you think this
 
13991
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
13992
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
13993
whose name does not start with the host triplet.  If you think this
 
13994
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
13995
ac_tool_warned=yes ;;
 
13996
esac
 
13997
    RANLIB=$ac_ct_RANLIB
 
13998
  fi
 
13999
else
 
14000
  RANLIB="$ac_cv_prog_RANLIB"
 
14001
fi
 
14002
 
 
14003
for ac_prog in 'bison -y' byacc
 
14004
do
 
14005
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
14006
set dummy $ac_prog; ac_word=$2
 
14007
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14008
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
14009
if test "${ac_cv_prog_YACC+set}" = set; then
 
14010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14011
else
 
14012
  if test -n "$YACC"; then
 
14013
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
14014
else
 
14015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14016
for as_dir in $PATH
 
14017
do
 
14018
  IFS=$as_save_IFS
 
14019
  test -z "$as_dir" && as_dir=.
 
14020
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14021
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14022
    ac_cv_prog_YACC="$ac_prog"
 
14023
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14024
    break 2
 
14025
  fi
 
14026
done
 
14027
done
 
14028
IFS=$as_save_IFS
 
14029
 
 
14030
fi
 
14031
fi
 
14032
YACC=$ac_cv_prog_YACC
 
14033
if test -n "$YACC"; then
 
14034
  { echo "$as_me:$LINENO: result: $YACC" >&5
 
14035
echo "${ECHO_T}$YACC" >&6; }
 
14036
else
 
14037
  { echo "$as_me:$LINENO: result: no" >&5
 
14038
echo "${ECHO_T}no" >&6; }
 
14039
fi
 
14040
 
 
14041
 
 
14042
  test -n "$YACC" && break
 
14043
done
 
14044
test -n "$YACC" || YACC="yacc"
 
14045
 
 
14046
 
 
14047
 
 
14048
#AC_PREFIX_DEFAULT(/usr/local)
 
14049
#if test "x$prefix" = "xNONE"; then
 
14050
#  prefix=$ac_default_prefix
 
14051
#  ac_configure_args="$ac_configure_args --prefix $prefix"
 
14052
#fi
 
14053
 
 
14054
# -----------------------------------------------------------------------
6326
14055
# Checks for libraries.
 
14056
# -----------------------------------------------------------------------
 
14057
 
6327
14058
# Check for SDL
6328
 
SDL_VERSION=1.2.5
6329
 
 
6330
 
 
 
14059
SDL_VERSION=1.2.0
6331
14060
 
6332
14061
 
6333
14062
# Check whether --with-sdl-prefix was given.
6628
14357
     SDL_CFLAGS=""
6629
14358
     SDL_CXXFLAGS=""
6630
14359
     SDL_LIBS=""
6631
 
     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
6632
 
echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
 
14360
     { { echo "$as_me:$LINENO: error: SDL version $SDL_VERSION not found! http://www.libsdl.org" >&5
 
14361
echo "$as_me: error: SDL version $SDL_VERSION not found! http://www.libsdl.org" >&2;}
6633
14362
   { (exit 1); exit 1; }; }
 
14363
 
6634
14364
  fi
6635
14365
 
6636
14366
 
6637
14367
  rm -f conf.sdltest
6638
14368
 
6639
14369
 
6640
 
 
6641
 
{ echo "$as_me:$LINENO: checking for Mix_PlayMusic in -lSDL_mixer" >&5
6642
 
echo $ECHO_N "checking for Mix_PlayMusic in -lSDL_mixer... $ECHO_C" >&6; }
6643
 
if test "${ac_cv_lib_SDL_mixer_Mix_PlayMusic+set}" = set; then
 
14370
CFLAGS="$CFLAGS $SDL_CFLAGS"
 
14371
 
 
14372
 
 
14373
# Check platform - see if WinMain needed:
 
14374
{ echo "$as_me:$LINENO: checking for native Win32" >&5
 
14375
echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
 
14376
case "$host" in
 
14377
  *-*-mingw*)
 
14378
    native_win32=yes
 
14379
    ;;
 
14380
  *)
 
14381
    native_win32=no
 
14382
    ;;
 
14383
esac
 
14384
{ echo "$as_me:$LINENO: result: $native_win32" >&5
 
14385
echo "${ECHO_T}$native_win32" >&6; }
 
14386
 
 
14387
 if test $native_win32 = yes; then
 
14388
  BUILD_MINGW32_TRUE=
 
14389
  BUILD_MINGW32_FALSE='#'
 
14390
else
 
14391
  BUILD_MINGW32_TRUE='#'
 
14392
  BUILD_MINGW32_FALSE=
 
14393
fi
 
14394
 
 
14395
 
 
14396
if test $native_win32 = yes; then
 
14397
  LIBS="$LIBS -lmingw32 -lSDLmain -lSDL"
 
14398
else
 
14399
  LIBS="$LIBS $SDL_LIBS"
 
14400
fi
 
14401
 
 
14402
 
 
14403
 
 
14404
 
 
14405
{ echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
 
14406
echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
 
14407
if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
 
14408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14409
else
 
14410
  ac_check_lib_save_LIBS=$LIBS
 
14411
LIBS="-lSDL_image  $LIBS"
 
14412
cat >conftest.$ac_ext <<_ACEOF
 
14413
/* confdefs.h.  */
 
14414
_ACEOF
 
14415
cat confdefs.h >>conftest.$ac_ext
 
14416
cat >>conftest.$ac_ext <<_ACEOF
 
14417
/* end confdefs.h.  */
 
14418
 
 
14419
/* Override any GCC internal prototype to avoid an error.
 
14420
   Use char because int might match the return type of a GCC
 
14421
   builtin and then its argument prototype would still apply.  */
 
14422
#ifdef __cplusplus
 
14423
extern "C"
 
14424
#endif
 
14425
char IMG_Load ();
 
14426
int
 
14427
main ()
 
14428
{
 
14429
return IMG_Load ();
 
14430
  ;
 
14431
  return 0;
 
14432
}
 
14433
_ACEOF
 
14434
rm -f conftest.$ac_objext conftest$ac_exeext
 
14435
if { (ac_try="$ac_link"
 
14436
case "(($ac_try" in
 
14437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14438
  *) ac_try_echo=$ac_try;;
 
14439
esac
 
14440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14441
  (eval "$ac_link") 2>conftest.er1
 
14442
  ac_status=$?
 
14443
  grep -v '^ *+' conftest.er1 >conftest.err
 
14444
  rm -f conftest.er1
 
14445
  cat conftest.err >&5
 
14446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14447
  (exit $ac_status); } && {
 
14448
         test -z "$ac_c_werror_flag" ||
 
14449
         test ! -s conftest.err
 
14450
       } && test -s conftest$ac_exeext &&
 
14451
       $as_test_x conftest$ac_exeext; then
 
14452
  ac_cv_lib_SDL_image_IMG_Load=yes
 
14453
else
 
14454
  echo "$as_me: failed program was:" >&5
 
14455
sed 's/^/| /' conftest.$ac_ext >&5
 
14456
 
 
14457
        ac_cv_lib_SDL_image_IMG_Load=no
 
14458
fi
 
14459
 
 
14460
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14461
      conftest$ac_exeext conftest.$ac_ext
 
14462
LIBS=$ac_check_lib_save_LIBS
 
14463
fi
 
14464
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
 
14465
echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
 
14466
if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
 
14467
  cat >>confdefs.h <<_ACEOF
 
14468
#define HAVE_LIBSDL_IMAGE 1
 
14469
_ACEOF
 
14470
 
 
14471
  LIBS="-lSDL_image $LIBS"
 
14472
 
 
14473
else
 
14474
  { { echo "$as_me:$LINENO: error: SDL_image not found! http://www.libsdl.org/projects/SDL_image" >&5
 
14475
echo "$as_me: error: SDL_image not found! http://www.libsdl.org/projects/SDL_image" >&2;}
 
14476
   { (exit 1); exit 1; }; }
 
14477
fi
 
14478
 
 
14479
 
 
14480
 
 
14481
{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
 
14482
echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
 
14483
if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
6644
14484
  echo $ECHO_N "(cached) $ECHO_C" >&6
6645
14485
else
6646
14486
  ac_check_lib_save_LIBS=$LIBS
6658
14498
#ifdef __cplusplus
6659
14499
extern "C"
6660
14500
#endif
6661
 
char Mix_PlayMusic ();
 
14501
char Mix_OpenAudio ();
6662
14502
int
6663
14503
main ()
6664
14504
{
6665
 
return Mix_PlayMusic ();
 
14505
return Mix_OpenAudio ();
6666
14506
  ;
6667
14507
  return 0;
6668
14508
}
6685
14525
         test ! -s conftest.err
6686
14526
       } && test -s conftest$ac_exeext &&
6687
14527
       $as_test_x conftest$ac_exeext; then
6688
 
  ac_cv_lib_SDL_mixer_Mix_PlayMusic=yes
 
14528
  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
6689
14529
else
6690
14530
  echo "$as_me: failed program was:" >&5
6691
14531
sed 's/^/| /' conftest.$ac_ext >&5
6692
14532
 
6693
 
        ac_cv_lib_SDL_mixer_Mix_PlayMusic=no
 
14533
        ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
6694
14534
fi
6695
14535
 
6696
14536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6697
14537
      conftest$ac_exeext conftest.$ac_ext
6698
14538
LIBS=$ac_check_lib_save_LIBS
6699
14539
fi
6700
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_PlayMusic" >&5
6701
 
echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_PlayMusic" >&6; }
6702
 
if test $ac_cv_lib_SDL_mixer_Mix_PlayMusic = yes; then
 
14540
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
 
14541
echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
 
14542
if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
6703
14543
  cat >>confdefs.h <<_ACEOF
6704
14544
#define HAVE_LIBSDL_MIXER 1
6705
14545
_ACEOF
6707
14547
  LIBS="-lSDL_mixer $LIBS"
6708
14548
 
6709
14549
else
6710
 
  { { echo "$as_me:$LINENO: error: SDL_mixer not found http://www.libsdl.org/projects/SDL_mixer" >&5
6711
 
echo "$as_me: error: SDL_mixer not found http://www.libsdl.org/projects/SDL_mixer" >&2;}
 
14550
  { { echo "$as_me:$LINENO: error: SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" >&5
 
14551
echo "$as_me: error: SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" >&2;}
6712
14552
   { (exit 1); exit 1; }; }
6713
14553
fi
6714
14554
 
6783
14623
  LIBS="-lSDL_ttf $LIBS"
6784
14624
 
6785
14625
else
6786
 
  { { echo "$as_me:$LINENO: error: SDL_ttf not found http://www.libsdl.org/projects/SDL_ttf" >&5
6787
 
echo "$as_me: error: SDL_ttf not found http://www.libsdl.org/projects/SDL_ttf" >&2;}
6788
 
   { (exit 1); exit 1; }; }
6789
 
fi
6790
 
 
6791
 
 
6792
 
 
6793
 
{ echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
6794
 
echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
6795
 
if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
6796
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6797
 
else
6798
 
  ac_check_lib_save_LIBS=$LIBS
6799
 
LIBS="-lSDL_image  $LIBS"
6800
 
cat >conftest.$ac_ext <<_ACEOF
6801
 
/* confdefs.h.  */
6802
 
_ACEOF
6803
 
cat confdefs.h >>conftest.$ac_ext
6804
 
cat >>conftest.$ac_ext <<_ACEOF
6805
 
/* end confdefs.h.  */
6806
 
 
6807
 
/* Override any GCC internal prototype to avoid an error.
6808
 
   Use char because int might match the return type of a GCC
6809
 
   builtin and then its argument prototype would still apply.  */
6810
 
#ifdef __cplusplus
6811
 
extern "C"
6812
 
#endif
6813
 
char IMG_Load ();
6814
 
int
6815
 
main ()
6816
 
{
6817
 
return IMG_Load ();
6818
 
  ;
6819
 
  return 0;
6820
 
}
6821
 
_ACEOF
6822
 
rm -f conftest.$ac_objext conftest$ac_exeext
6823
 
if { (ac_try="$ac_link"
6824
 
case "(($ac_try" in
6825
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826
 
  *) ac_try_echo=$ac_try;;
6827
 
esac
6828
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829
 
  (eval "$ac_link") 2>conftest.er1
6830
 
  ac_status=$?
6831
 
  grep -v '^ *+' conftest.er1 >conftest.err
6832
 
  rm -f conftest.er1
6833
 
  cat conftest.err >&5
6834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
 
  (exit $ac_status); } && {
6836
 
         test -z "$ac_c_werror_flag" ||
6837
 
         test ! -s conftest.err
6838
 
       } && test -s conftest$ac_exeext &&
6839
 
       $as_test_x conftest$ac_exeext; then
6840
 
  ac_cv_lib_SDL_image_IMG_Load=yes
6841
 
else
6842
 
  echo "$as_me: failed program was:" >&5
6843
 
sed 's/^/| /' conftest.$ac_ext >&5
6844
 
 
6845
 
        ac_cv_lib_SDL_image_IMG_Load=no
6846
 
fi
6847
 
 
6848
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6849
 
      conftest$ac_exeext conftest.$ac_ext
6850
 
LIBS=$ac_check_lib_save_LIBS
6851
 
fi
6852
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
6853
 
echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
6854
 
if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
6855
 
  cat >>confdefs.h <<_ACEOF
6856
 
#define HAVE_LIBSDL_IMAGE 1
6857
 
_ACEOF
6858
 
 
6859
 
  LIBS="-lSDL_image $LIBS"
6860
 
 
6861
 
else
6862
 
  { { echo "$as_me:$LINENO: error: SDL_image not found http://www.libsdl.org/projects/SDL_image" >&5
6863
 
echo "$as_me: error: SDL_image not found http://www.libsdl.org/projects/SDL_image" >&2;}
6864
 
   { (exit 1); exit 1; }; }
6865
 
fi
 
14626
  { { echo "$as_me:$LINENO: error: SDL_ttf not found! http://www.libsdl.org/projects/SDL_ttf" >&5
 
14627
echo "$as_me: error: SDL_ttf not found! http://www.libsdl.org/projects/SDL_ttf" >&2;}
 
14628
   { (exit 1); exit 1; }; }
 
14629
fi
 
14630
 
 
14631
 
6866
14632
 
6867
14633
 
6868
14634
# FIXME would be better to skip check for win32 build
6942
14708
 
6943
14709
 
6944
14710
 
6945
 
#
6946
 
SDL_CFLAGS=`sdl-config --cflags`
6947
 
CFLAGS="$CFLAGS $SDL_CFLAGS"
6948
 
 
6949
 
SDL_LIBS=`sdl-config --libs`
6950
 
LIBS="$SDL_LIBS $LIBS"
6951
 
 
6952
 
# Check platform - see if see if building for Windows:
6953
 
{ echo "$as_me:$LINENO: checking for native Win32" >&5
6954
 
echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
6955
 
case "$host" in
6956
 
  *-*-mingw*)
6957
 
    native_win32=yes
6958
 
    ;;
6959
 
  *)
6960
 
    native_win32=no
6961
 
    ;;
6962
 
esac
6963
 
{ echo "$as_me:$LINENO: result: $native_win32" >&5
6964
 
echo "${ECHO_T}$native_win32" >&6; }
6965
 
 
6966
 
 if test "$native_win32" = yes; then
6967
 
  BUILD_MINGW32_TRUE=
6968
 
  BUILD_MINGW32_FALSE='#'
6969
 
else
6970
 
  BUILD_MINGW32_TRUE='#'
6971
 
  BUILD_MINGW32_FALSE=
6972
 
fi
6973
 
 
6974
 
 
6975
 
if test "$native_win32" = yes; then
6976
 
 
6977
 
 
6978
 
cat >>confdefs.h <<\_ACEOF
6979
 
#define BUILD_MINGW32 1
6980
 
_ACEOF
6981
 
 
6982
 
   CFLAGS="$CFLAGS -D__GW32__"
6983
 
   LIBS="-lmingw32 -lSDLmain $LIBS -luuid -lole32 -lwsock32 -mwindows"
6984
 
   CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
6985
 
   #CPPFLAGS="$CPPFLAGS -I$prefix/include/glibc"
6986
 
   # Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
6987
 
set dummy "$target_alias-windres"; ac_word=$2
6988
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990
 
if test "${ac_cv_path_WINDRES+set}" = set; then
6991
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6992
 
else
6993
 
  case $WINDRES in
6994
 
  [\\/]* | ?:[\\/]*)
6995
 
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
6996
 
  ;;
6997
 
  *)
6998
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999
 
for as_dir in $PATH
7000
 
do
7001
 
  IFS=$as_save_IFS
7002
 
  test -z "$as_dir" && as_dir=.
7003
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7004
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005
 
    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
7006
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007
 
    break 2
7008
 
  fi
7009
 
done
7010
 
done
7011
 
IFS=$as_save_IFS
7012
 
 
7013
 
  test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
7014
 
  ;;
7015
 
esac
7016
 
fi
7017
 
WINDRES=$ac_cv_path_WINDRES
7018
 
if test -n "$WINDRES"; then
7019
 
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
7020
 
echo "${ECHO_T}$WINDRES" >&6; }
7021
 
else
7022
 
  { echo "$as_me:$LINENO: result: no" >&5
7023
 
echo "${ECHO_T}no" >&6; }
7024
 
fi
7025
 
 
7026
 
 
7027
 
fi
7028
 
 
7029
 
 
 
14711
 
 
14712
 
 
14713
# --------------------------------------------------------------------------------------
7030
14714
# Checks for header files.
7031
 
ac_ext=c
7032
 
ac_cpp='$CPP $CPPFLAGS'
7033
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7037
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7038
 
# On Suns, sometimes $CPP names a directory.
7039
 
if test -n "$CPP" && test -d "$CPP"; then
7040
 
  CPP=
7041
 
fi
7042
 
if test -z "$CPP"; then
7043
 
  if test "${ac_cv_prog_CPP+set}" = set; then
7044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7045
 
else
7046
 
      # Double quotes because CPP needs to be expanded
7047
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7048
 
    do
7049
 
      ac_preproc_ok=false
7050
 
for ac_c_preproc_warn_flag in '' yes
7051
 
do
7052
 
  # Use a header file that comes with gcc, so configuring glibc
7053
 
  # with a fresh cross-compiler works.
7054
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055
 
  # <limits.h> exists even on freestanding compilers.
7056
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7057
 
  # not just through cpp. "Syntax error" is here to catch this case.
7058
 
  cat >conftest.$ac_ext <<_ACEOF
7059
 
/* confdefs.h.  */
7060
 
_ACEOF
7061
 
cat confdefs.h >>conftest.$ac_ext
7062
 
cat >>conftest.$ac_ext <<_ACEOF
7063
 
/* end confdefs.h.  */
7064
 
#ifdef __STDC__
7065
 
# include <limits.h>
7066
 
#else
7067
 
# include <assert.h>
7068
 
#endif
7069
 
                     Syntax error
7070
 
_ACEOF
7071
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7072
 
case "(($ac_try" in
7073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074
 
  *) ac_try_echo=$ac_try;;
7075
 
esac
7076
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7078
 
  ac_status=$?
7079
 
  grep -v '^ *+' conftest.er1 >conftest.err
7080
 
  rm -f conftest.er1
7081
 
  cat conftest.err >&5
7082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083
 
  (exit $ac_status); } >/dev/null && {
7084
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7085
 
         test ! -s conftest.err
7086
 
       }; then
7087
 
  :
7088
 
else
7089
 
  echo "$as_me: failed program was:" >&5
7090
 
sed 's/^/| /' conftest.$ac_ext >&5
7091
 
 
7092
 
  # Broken: fails on valid input.
7093
 
continue
7094
 
fi
7095
 
 
7096
 
rm -f conftest.err conftest.$ac_ext
7097
 
 
7098
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7099
 
  # can be detected and how.
7100
 
  cat >conftest.$ac_ext <<_ACEOF
7101
 
/* confdefs.h.  */
7102
 
_ACEOF
7103
 
cat confdefs.h >>conftest.$ac_ext
7104
 
cat >>conftest.$ac_ext <<_ACEOF
7105
 
/* end confdefs.h.  */
7106
 
#include <ac_nonexistent.h>
7107
 
_ACEOF
7108
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7109
 
case "(($ac_try" in
7110
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111
 
  *) ac_try_echo=$ac_try;;
7112
 
esac
7113
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7115
 
  ac_status=$?
7116
 
  grep -v '^ *+' conftest.er1 >conftest.err
7117
 
  rm -f conftest.er1
7118
 
  cat conftest.err >&5
7119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120
 
  (exit $ac_status); } >/dev/null && {
7121
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7122
 
         test ! -s conftest.err
7123
 
       }; then
7124
 
  # Broken: success on invalid input.
7125
 
continue
7126
 
else
7127
 
  echo "$as_me: failed program was:" >&5
7128
 
sed 's/^/| /' conftest.$ac_ext >&5
7129
 
 
7130
 
  # Passes both tests.
7131
 
ac_preproc_ok=:
7132
 
break
7133
 
fi
7134
 
 
7135
 
rm -f conftest.err conftest.$ac_ext
7136
 
 
7137
 
done
7138
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7139
 
rm -f conftest.err conftest.$ac_ext
7140
 
if $ac_preproc_ok; then
7141
 
  break
7142
 
fi
7143
 
 
7144
 
    done
7145
 
    ac_cv_prog_CPP=$CPP
7146
 
 
7147
 
fi
7148
 
  CPP=$ac_cv_prog_CPP
7149
 
else
7150
 
  ac_cv_prog_CPP=$CPP
7151
 
fi
7152
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
7153
 
echo "${ECHO_T}$CPP" >&6; }
7154
 
ac_preproc_ok=false
7155
 
for ac_c_preproc_warn_flag in '' yes
7156
 
do
7157
 
  # Use a header file that comes with gcc, so configuring glibc
7158
 
  # with a fresh cross-compiler works.
7159
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160
 
  # <limits.h> exists even on freestanding compilers.
7161
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7162
 
  # not just through cpp. "Syntax error" is here to catch this case.
7163
 
  cat >conftest.$ac_ext <<_ACEOF
7164
 
/* confdefs.h.  */
7165
 
_ACEOF
7166
 
cat confdefs.h >>conftest.$ac_ext
7167
 
cat >>conftest.$ac_ext <<_ACEOF
7168
 
/* end confdefs.h.  */
7169
 
#ifdef __STDC__
7170
 
# include <limits.h>
7171
 
#else
7172
 
# include <assert.h>
7173
 
#endif
7174
 
                     Syntax error
7175
 
_ACEOF
7176
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7177
 
case "(($ac_try" in
7178
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179
 
  *) ac_try_echo=$ac_try;;
7180
 
esac
7181
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7183
 
  ac_status=$?
7184
 
  grep -v '^ *+' conftest.er1 >conftest.err
7185
 
  rm -f conftest.er1
7186
 
  cat conftest.err >&5
7187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188
 
  (exit $ac_status); } >/dev/null && {
7189
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7190
 
         test ! -s conftest.err
7191
 
       }; then
7192
 
  :
7193
 
else
7194
 
  echo "$as_me: failed program was:" >&5
7195
 
sed 's/^/| /' conftest.$ac_ext >&5
7196
 
 
7197
 
  # Broken: fails on valid input.
7198
 
continue
7199
 
fi
7200
 
 
7201
 
rm -f conftest.err conftest.$ac_ext
7202
 
 
7203
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7204
 
  # can be detected and how.
7205
 
  cat >conftest.$ac_ext <<_ACEOF
7206
 
/* confdefs.h.  */
7207
 
_ACEOF
7208
 
cat confdefs.h >>conftest.$ac_ext
7209
 
cat >>conftest.$ac_ext <<_ACEOF
7210
 
/* end confdefs.h.  */
7211
 
#include <ac_nonexistent.h>
7212
 
_ACEOF
7213
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7214
 
case "(($ac_try" in
7215
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216
 
  *) ac_try_echo=$ac_try;;
7217
 
esac
7218
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7220
 
  ac_status=$?
7221
 
  grep -v '^ *+' conftest.er1 >conftest.err
7222
 
  rm -f conftest.er1
7223
 
  cat conftest.err >&5
7224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225
 
  (exit $ac_status); } >/dev/null && {
7226
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7227
 
         test ! -s conftest.err
7228
 
       }; then
7229
 
  # Broken: success on invalid input.
7230
 
continue
7231
 
else
7232
 
  echo "$as_me: failed program was:" >&5
7233
 
sed 's/^/| /' conftest.$ac_ext >&5
7234
 
 
7235
 
  # Passes both tests.
7236
 
ac_preproc_ok=:
7237
 
break
7238
 
fi
7239
 
 
7240
 
rm -f conftest.err conftest.$ac_ext
7241
 
 
7242
 
done
7243
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7244
 
rm -f conftest.err conftest.$ac_ext
7245
 
if $ac_preproc_ok; then
7246
 
  :
7247
 
else
7248
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7249
 
See \`config.log' for more details." >&5
7250
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7251
 
See \`config.log' for more details." >&2;}
7252
 
   { (exit 1); exit 1; }; }
7253
 
fi
7254
 
 
7255
 
ac_ext=c
7256
 
ac_cpp='$CPP $CPPFLAGS'
7257
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
 
 
7261
 
 
7262
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7263
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7264
 
if test "${ac_cv_path_GREP+set}" = set; then
7265
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7266
 
else
7267
 
  # Extract the first word of "grep ggrep" to use in msg output
7268
 
if test -z "$GREP"; then
7269
 
set dummy grep ggrep; ac_prog_name=$2
7270
 
if test "${ac_cv_path_GREP+set}" = set; then
7271
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7272
 
else
7273
 
  ac_path_GREP_found=false
7274
 
# Loop through the user's path and test for each of PROGNAME-LIST
7275
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7277
 
do
7278
 
  IFS=$as_save_IFS
7279
 
  test -z "$as_dir" && as_dir=.
7280
 
  for ac_prog in grep ggrep; do
7281
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7282
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7283
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7284
 
    # Check for GNU ac_path_GREP and select it if it is found.
7285
 
  # Check for GNU $ac_path_GREP
7286
 
case `"$ac_path_GREP" --version 2>&1` in
7287
 
*GNU*)
7288
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7289
 
*)
7290
 
  ac_count=0
7291
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7292
 
  while :
7293
 
  do
7294
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
7295
 
    mv "conftest.tmp" "conftest.in"
7296
 
    cp "conftest.in" "conftest.nl"
7297
 
    echo 'GREP' >> "conftest.nl"
7298
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7299
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7300
 
    ac_count=`expr $ac_count + 1`
7301
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7302
 
      # Best one so far, save it but keep looking for a better one
7303
 
      ac_cv_path_GREP="$ac_path_GREP"
7304
 
      ac_path_GREP_max=$ac_count
7305
 
    fi
7306
 
    # 10*(2^10) chars as input seems more than enough
7307
 
    test $ac_count -gt 10 && break
7308
 
  done
7309
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7310
 
esac
7311
 
 
7312
 
 
7313
 
    $ac_path_GREP_found && break 3
7314
 
  done
7315
 
done
7316
 
 
7317
 
done
7318
 
IFS=$as_save_IFS
7319
 
 
7320
 
 
7321
 
fi
7322
 
 
7323
 
GREP="$ac_cv_path_GREP"
7324
 
if test -z "$GREP"; then
7325
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7326
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7327
 
   { (exit 1); exit 1; }; }
7328
 
fi
7329
 
 
7330
 
else
7331
 
  ac_cv_path_GREP=$GREP
7332
 
fi
7333
 
 
7334
 
 
7335
 
fi
7336
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7337
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7338
 
 GREP="$ac_cv_path_GREP"
7339
 
 
7340
 
 
7341
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
7342
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7343
 
if test "${ac_cv_path_EGREP+set}" = set; then
7344
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7345
 
else
7346
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7347
 
   then ac_cv_path_EGREP="$GREP -E"
7348
 
   else
7349
 
     # Extract the first word of "egrep" to use in msg output
7350
 
if test -z "$EGREP"; then
7351
 
set dummy egrep; ac_prog_name=$2
7352
 
if test "${ac_cv_path_EGREP+set}" = set; then
7353
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7354
 
else
7355
 
  ac_path_EGREP_found=false
7356
 
# Loop through the user's path and test for each of PROGNAME-LIST
7357
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7359
 
do
7360
 
  IFS=$as_save_IFS
7361
 
  test -z "$as_dir" && as_dir=.
7362
 
  for ac_prog in egrep; do
7363
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7364
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7365
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7366
 
    # Check for GNU ac_path_EGREP and select it if it is found.
7367
 
  # Check for GNU $ac_path_EGREP
7368
 
case `"$ac_path_EGREP" --version 2>&1` in
7369
 
*GNU*)
7370
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7371
 
*)
7372
 
  ac_count=0
7373
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7374
 
  while :
7375
 
  do
7376
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
7377
 
    mv "conftest.tmp" "conftest.in"
7378
 
    cp "conftest.in" "conftest.nl"
7379
 
    echo 'EGREP' >> "conftest.nl"
7380
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7381
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7382
 
    ac_count=`expr $ac_count + 1`
7383
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7384
 
      # Best one so far, save it but keep looking for a better one
7385
 
      ac_cv_path_EGREP="$ac_path_EGREP"
7386
 
      ac_path_EGREP_max=$ac_count
7387
 
    fi
7388
 
    # 10*(2^10) chars as input seems more than enough
7389
 
    test $ac_count -gt 10 && break
7390
 
  done
7391
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7392
 
esac
7393
 
 
7394
 
 
7395
 
    $ac_path_EGREP_found && break 3
7396
 
  done
7397
 
done
7398
 
 
7399
 
done
7400
 
IFS=$as_save_IFS
7401
 
 
7402
 
 
7403
 
fi
7404
 
 
7405
 
EGREP="$ac_cv_path_EGREP"
7406
 
if test -z "$EGREP"; then
7407
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7408
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7409
 
   { (exit 1); exit 1; }; }
7410
 
fi
7411
 
 
7412
 
else
7413
 
  ac_cv_path_EGREP=$EGREP
7414
 
fi
7415
 
 
7416
 
 
7417
 
   fi
7418
 
fi
7419
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7420
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7421
 
 EGREP="$ac_cv_path_EGREP"
7422
 
 
 
14715
# --------------------------------------------------------------------------------------
 
14716
 
 
14717
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
14718
# for constant arguments.  Useless!
 
14719
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
14720
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
14721
if test "${ac_cv_working_alloca_h+set}" = set; then
 
14722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14723
else
 
14724
  cat >conftest.$ac_ext <<_ACEOF
 
14725
/* confdefs.h.  */
 
14726
_ACEOF
 
14727
cat confdefs.h >>conftest.$ac_ext
 
14728
cat >>conftest.$ac_ext <<_ACEOF
 
14729
/* end confdefs.h.  */
 
14730
#include <alloca.h>
 
14731
int
 
14732
main ()
 
14733
{
 
14734
char *p = (char *) alloca (2 * sizeof (int));
 
14735
                          if (p) return 0;
 
14736
  ;
 
14737
  return 0;
 
14738
}
 
14739
_ACEOF
 
14740
rm -f conftest.$ac_objext conftest$ac_exeext
 
14741
if { (ac_try="$ac_link"
 
14742
case "(($ac_try" in
 
14743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14744
  *) ac_try_echo=$ac_try;;
 
14745
esac
 
14746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14747
  (eval "$ac_link") 2>conftest.er1
 
14748
  ac_status=$?
 
14749
  grep -v '^ *+' conftest.er1 >conftest.err
 
14750
  rm -f conftest.er1
 
14751
  cat conftest.err >&5
 
14752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14753
  (exit $ac_status); } && {
 
14754
         test -z "$ac_c_werror_flag" ||
 
14755
         test ! -s conftest.err
 
14756
       } && test -s conftest$ac_exeext &&
 
14757
       $as_test_x conftest$ac_exeext; then
 
14758
  ac_cv_working_alloca_h=yes
 
14759
else
 
14760
  echo "$as_me: failed program was:" >&5
 
14761
sed 's/^/| /' conftest.$ac_ext >&5
 
14762
 
 
14763
        ac_cv_working_alloca_h=no
 
14764
fi
 
14765
 
 
14766
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14767
      conftest$ac_exeext conftest.$ac_ext
 
14768
fi
 
14769
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
14770
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
14771
if test $ac_cv_working_alloca_h = yes; then
 
14772
 
 
14773
cat >>confdefs.h <<\_ACEOF
 
14774
#define HAVE_ALLOCA_H 1
 
14775
_ACEOF
 
14776
 
 
14777
fi
 
14778
 
 
14779
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
14780
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
14781
if test "${ac_cv_func_alloca_works+set}" = set; then
 
14782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14783
else
 
14784
  cat >conftest.$ac_ext <<_ACEOF
 
14785
/* confdefs.h.  */
 
14786
_ACEOF
 
14787
cat confdefs.h >>conftest.$ac_ext
 
14788
cat >>conftest.$ac_ext <<_ACEOF
 
14789
/* end confdefs.h.  */
 
14790
#ifdef __GNUC__
 
14791
# define alloca __builtin_alloca
 
14792
#else
 
14793
# ifdef _MSC_VER
 
14794
#  include <malloc.h>
 
14795
#  define alloca _alloca
 
14796
# else
 
14797
#  ifdef HAVE_ALLOCA_H
 
14798
#   include <alloca.h>
 
14799
#  else
 
14800
#   ifdef _AIX
 
14801
 #pragma alloca
 
14802
#   else
 
14803
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
14804
char *alloca ();
 
14805
#    endif
 
14806
#   endif
 
14807
#  endif
 
14808
# endif
 
14809
#endif
 
14810
 
 
14811
int
 
14812
main ()
 
14813
{
 
14814
char *p = (char *) alloca (1);
 
14815
                                    if (p) return 0;
 
14816
  ;
 
14817
  return 0;
 
14818
}
 
14819
_ACEOF
 
14820
rm -f conftest.$ac_objext conftest$ac_exeext
 
14821
if { (ac_try="$ac_link"
 
14822
case "(($ac_try" in
 
14823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14824
  *) ac_try_echo=$ac_try;;
 
14825
esac
 
14826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14827
  (eval "$ac_link") 2>conftest.er1
 
14828
  ac_status=$?
 
14829
  grep -v '^ *+' conftest.er1 >conftest.err
 
14830
  rm -f conftest.er1
 
14831
  cat conftest.err >&5
 
14832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14833
  (exit $ac_status); } && {
 
14834
         test -z "$ac_c_werror_flag" ||
 
14835
         test ! -s conftest.err
 
14836
       } && test -s conftest$ac_exeext &&
 
14837
       $as_test_x conftest$ac_exeext; then
 
14838
  ac_cv_func_alloca_works=yes
 
14839
else
 
14840
  echo "$as_me: failed program was:" >&5
 
14841
sed 's/^/| /' conftest.$ac_ext >&5
 
14842
 
 
14843
        ac_cv_func_alloca_works=no
 
14844
fi
 
14845
 
 
14846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14847
      conftest$ac_exeext conftest.$ac_ext
 
14848
fi
 
14849
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
14850
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
14851
 
 
14852
if test $ac_cv_func_alloca_works = yes; then
 
14853
 
 
14854
cat >>confdefs.h <<\_ACEOF
 
14855
#define HAVE_ALLOCA 1
 
14856
_ACEOF
 
14857
 
 
14858
else
 
14859
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
14860
# that cause trouble.  Some versions do not even contain alloca or
 
14861
# contain a buggy version.  If you still want to use their alloca,
 
14862
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
14863
 
 
14864
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
14865
 
 
14866
cat >>confdefs.h <<\_ACEOF
 
14867
#define C_ALLOCA 1
 
14868
_ACEOF
 
14869
 
 
14870
 
 
14871
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
14872
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
14873
if test "${ac_cv_os_cray+set}" = set; then
 
14874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14875
else
 
14876
  cat >conftest.$ac_ext <<_ACEOF
 
14877
/* confdefs.h.  */
 
14878
_ACEOF
 
14879
cat confdefs.h >>conftest.$ac_ext
 
14880
cat >>conftest.$ac_ext <<_ACEOF
 
14881
/* end confdefs.h.  */
 
14882
#if defined CRAY && ! defined CRAY2
 
14883
webecray
 
14884
#else
 
14885
wenotbecray
 
14886
#endif
 
14887
 
 
14888
_ACEOF
 
14889
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14890
  $EGREP "webecray" >/dev/null 2>&1; then
 
14891
  ac_cv_os_cray=yes
 
14892
else
 
14893
  ac_cv_os_cray=no
 
14894
fi
 
14895
rm -f conftest*
 
14896
 
 
14897
fi
 
14898
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
14899
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
14900
if test $ac_cv_os_cray = yes; then
 
14901
  for ac_func in _getb67 GETB67 getb67; do
 
14902
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14903
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14904
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14905
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14907
else
 
14908
  cat >conftest.$ac_ext <<_ACEOF
 
14909
/* confdefs.h.  */
 
14910
_ACEOF
 
14911
cat confdefs.h >>conftest.$ac_ext
 
14912
cat >>conftest.$ac_ext <<_ACEOF
 
14913
/* end confdefs.h.  */
 
14914
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14915
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14916
#define $ac_func innocuous_$ac_func
 
14917
 
 
14918
/* System header to define __stub macros and hopefully few prototypes,
 
14919
    which can conflict with char $ac_func (); below.
 
14920
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14921
    <limits.h> exists even on freestanding compilers.  */
 
14922
 
 
14923
#ifdef __STDC__
 
14924
# include <limits.h>
 
14925
#else
 
14926
# include <assert.h>
 
14927
#endif
 
14928
 
 
14929
#undef $ac_func
 
14930
 
 
14931
/* Override any GCC internal prototype to avoid an error.
 
14932
   Use char because int might match the return type of a GCC
 
14933
   builtin and then its argument prototype would still apply.  */
 
14934
#ifdef __cplusplus
 
14935
extern "C"
 
14936
#endif
 
14937
char $ac_func ();
 
14938
/* The GNU C library defines this for functions which it implements
 
14939
    to always fail with ENOSYS.  Some functions are actually named
 
14940
    something starting with __ and the normal name is an alias.  */
 
14941
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14942
choke me
 
14943
#endif
 
14944
 
 
14945
int
 
14946
main ()
 
14947
{
 
14948
return $ac_func ();
 
14949
  ;
 
14950
  return 0;
 
14951
}
 
14952
_ACEOF
 
14953
rm -f conftest.$ac_objext conftest$ac_exeext
 
14954
if { (ac_try="$ac_link"
 
14955
case "(($ac_try" in
 
14956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14957
  *) ac_try_echo=$ac_try;;
 
14958
esac
 
14959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14960
  (eval "$ac_link") 2>conftest.er1
 
14961
  ac_status=$?
 
14962
  grep -v '^ *+' conftest.er1 >conftest.err
 
14963
  rm -f conftest.er1
 
14964
  cat conftest.err >&5
 
14965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14966
  (exit $ac_status); } && {
 
14967
         test -z "$ac_c_werror_flag" ||
 
14968
         test ! -s conftest.err
 
14969
       } && test -s conftest$ac_exeext &&
 
14970
       $as_test_x conftest$ac_exeext; then
 
14971
  eval "$as_ac_var=yes"
 
14972
else
 
14973
  echo "$as_me: failed program was:" >&5
 
14974
sed 's/^/| /' conftest.$ac_ext >&5
 
14975
 
 
14976
        eval "$as_ac_var=no"
 
14977
fi
 
14978
 
 
14979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14980
      conftest$ac_exeext conftest.$ac_ext
 
14981
fi
 
14982
ac_res=`eval echo '${'$as_ac_var'}'`
 
14983
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14984
echo "${ECHO_T}$ac_res" >&6; }
 
14985
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14986
 
 
14987
cat >>confdefs.h <<_ACEOF
 
14988
#define CRAY_STACKSEG_END $ac_func
 
14989
_ACEOF
 
14990
 
 
14991
    break
 
14992
fi
 
14993
 
 
14994
  done
 
14995
fi
 
14996
 
 
14997
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
14998
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
14999
if test "${ac_cv_c_stack_direction+set}" = set; then
 
15000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15001
else
 
15002
  if test "$cross_compiling" = yes; then
 
15003
  ac_cv_c_stack_direction=0
 
15004
else
 
15005
  cat >conftest.$ac_ext <<_ACEOF
 
15006
/* confdefs.h.  */
 
15007
_ACEOF
 
15008
cat confdefs.h >>conftest.$ac_ext
 
15009
cat >>conftest.$ac_ext <<_ACEOF
 
15010
/* end confdefs.h.  */
 
15011
$ac_includes_default
 
15012
int
 
15013
find_stack_direction ()
 
15014
{
 
15015
  static char *addr = 0;
 
15016
  auto char dummy;
 
15017
  if (addr == 0)
 
15018
    {
 
15019
      addr = &dummy;
 
15020
      return find_stack_direction ();
 
15021
    }
 
15022
  else
 
15023
    return (&dummy > addr) ? 1 : -1;
 
15024
}
 
15025
 
 
15026
int
 
15027
main ()
 
15028
{
 
15029
  return find_stack_direction () < 0;
 
15030
}
 
15031
_ACEOF
 
15032
rm -f conftest$ac_exeext
 
15033
if { (ac_try="$ac_link"
 
15034
case "(($ac_try" in
 
15035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15036
  *) ac_try_echo=$ac_try;;
 
15037
esac
 
15038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15039
  (eval "$ac_link") 2>&5
 
15040
  ac_status=$?
 
15041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15042
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15043
  { (case "(($ac_try" in
 
15044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15045
  *) ac_try_echo=$ac_try;;
 
15046
esac
 
15047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15048
  (eval "$ac_try") 2>&5
 
15049
  ac_status=$?
 
15050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15051
  (exit $ac_status); }; }; then
 
15052
  ac_cv_c_stack_direction=1
 
15053
else
 
15054
  echo "$as_me: program exited with status $ac_status" >&5
 
15055
echo "$as_me: failed program was:" >&5
 
15056
sed 's/^/| /' conftest.$ac_ext >&5
 
15057
 
 
15058
( exit $ac_status )
 
15059
ac_cv_c_stack_direction=-1
 
15060
fi
 
15061
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15062
fi
 
15063
 
 
15064
 
 
15065
fi
 
15066
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
15067
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
15068
 
 
15069
cat >>confdefs.h <<_ACEOF
 
15070
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
15071
_ACEOF
 
15072
 
 
15073
 
 
15074
fi
 
15075
 
 
15076
 
 
15077
 
 
15078
 
 
15079
 
 
15080
 
 
15081
ac_header_dirent=no
 
15082
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
15083
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
15084
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
15085
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
15086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15088
else
 
15089
  cat >conftest.$ac_ext <<_ACEOF
 
15090
/* confdefs.h.  */
 
15091
_ACEOF
 
15092
cat confdefs.h >>conftest.$ac_ext
 
15093
cat >>conftest.$ac_ext <<_ACEOF
 
15094
/* end confdefs.h.  */
 
15095
#include <sys/types.h>
 
15096
#include <$ac_hdr>
 
15097
 
 
15098
int
 
15099
main ()
 
15100
{
 
15101
if ((DIR *) 0)
 
15102
return 0;
 
15103
  ;
 
15104
  return 0;
 
15105
}
 
15106
_ACEOF
 
15107
rm -f conftest.$ac_objext
 
15108
if { (ac_try="$ac_compile"
 
15109
case "(($ac_try" in
 
15110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15111
  *) ac_try_echo=$ac_try;;
 
15112
esac
 
15113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15114
  (eval "$ac_compile") 2>conftest.er1
 
15115
  ac_status=$?
 
15116
  grep -v '^ *+' conftest.er1 >conftest.err
 
15117
  rm -f conftest.er1
 
15118
  cat conftest.err >&5
 
15119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15120
  (exit $ac_status); } && {
 
15121
         test -z "$ac_c_werror_flag" ||
 
15122
         test ! -s conftest.err
 
15123
       } && test -s conftest.$ac_objext; then
 
15124
  eval "$as_ac_Header=yes"
 
15125
else
 
15126
  echo "$as_me: failed program was:" >&5
 
15127
sed 's/^/| /' conftest.$ac_ext >&5
 
15128
 
 
15129
        eval "$as_ac_Header=no"
 
15130
fi
 
15131
 
 
15132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15133
fi
 
15134
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15135
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15136
echo "${ECHO_T}$ac_res" >&6; }
 
15137
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15138
  cat >>confdefs.h <<_ACEOF
 
15139
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
15140
_ACEOF
 
15141
 
 
15142
ac_header_dirent=$ac_hdr; break
 
15143
fi
 
15144
 
 
15145
done
 
15146
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
15147
if test $ac_header_dirent = dirent.h; then
 
15148
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
15149
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
15150
if test "${ac_cv_search_opendir+set}" = set; then
 
15151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15152
else
 
15153
  ac_func_search_save_LIBS=$LIBS
 
15154
cat >conftest.$ac_ext <<_ACEOF
 
15155
/* confdefs.h.  */
 
15156
_ACEOF
 
15157
cat confdefs.h >>conftest.$ac_ext
 
15158
cat >>conftest.$ac_ext <<_ACEOF
 
15159
/* end confdefs.h.  */
 
15160
 
 
15161
/* Override any GCC internal prototype to avoid an error.
 
15162
   Use char because int might match the return type of a GCC
 
15163
   builtin and then its argument prototype would still apply.  */
 
15164
#ifdef __cplusplus
 
15165
extern "C"
 
15166
#endif
 
15167
char opendir ();
 
15168
int
 
15169
main ()
 
15170
{
 
15171
return opendir ();
 
15172
  ;
 
15173
  return 0;
 
15174
}
 
15175
_ACEOF
 
15176
for ac_lib in '' dir; do
 
15177
  if test -z "$ac_lib"; then
 
15178
    ac_res="none required"
 
15179
  else
 
15180
    ac_res=-l$ac_lib
 
15181
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
15182
  fi
 
15183
  rm -f conftest.$ac_objext conftest$ac_exeext
 
15184
if { (ac_try="$ac_link"
 
15185
case "(($ac_try" in
 
15186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15187
  *) ac_try_echo=$ac_try;;
 
15188
esac
 
15189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15190
  (eval "$ac_link") 2>conftest.er1
 
15191
  ac_status=$?
 
15192
  grep -v '^ *+' conftest.er1 >conftest.err
 
15193
  rm -f conftest.er1
 
15194
  cat conftest.err >&5
 
15195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15196
  (exit $ac_status); } && {
 
15197
         test -z "$ac_c_werror_flag" ||
 
15198
         test ! -s conftest.err
 
15199
       } && test -s conftest$ac_exeext &&
 
15200
       $as_test_x conftest$ac_exeext; then
 
15201
  ac_cv_search_opendir=$ac_res
 
15202
else
 
15203
  echo "$as_me: failed program was:" >&5
 
15204
sed 's/^/| /' conftest.$ac_ext >&5
 
15205
 
 
15206
 
 
15207
fi
 
15208
 
 
15209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15210
      conftest$ac_exeext
 
15211
  if test "${ac_cv_search_opendir+set}" = set; then
 
15212
  break
 
15213
fi
 
15214
done
 
15215
if test "${ac_cv_search_opendir+set}" = set; then
 
15216
  :
 
15217
else
 
15218
  ac_cv_search_opendir=no
 
15219
fi
 
15220
rm conftest.$ac_ext
 
15221
LIBS=$ac_func_search_save_LIBS
 
15222
fi
 
15223
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
15224
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
15225
ac_res=$ac_cv_search_opendir
 
15226
if test "$ac_res" != no; then
 
15227
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
15228
 
 
15229
fi
 
15230
 
 
15231
else
 
15232
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
15233
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
15234
if test "${ac_cv_search_opendir+set}" = set; then
 
15235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15236
else
 
15237
  ac_func_search_save_LIBS=$LIBS
 
15238
cat >conftest.$ac_ext <<_ACEOF
 
15239
/* confdefs.h.  */
 
15240
_ACEOF
 
15241
cat confdefs.h >>conftest.$ac_ext
 
15242
cat >>conftest.$ac_ext <<_ACEOF
 
15243
/* end confdefs.h.  */
 
15244
 
 
15245
/* Override any GCC internal prototype to avoid an error.
 
15246
   Use char because int might match the return type of a GCC
 
15247
   builtin and then its argument prototype would still apply.  */
 
15248
#ifdef __cplusplus
 
15249
extern "C"
 
15250
#endif
 
15251
char opendir ();
 
15252
int
 
15253
main ()
 
15254
{
 
15255
return opendir ();
 
15256
  ;
 
15257
  return 0;
 
15258
}
 
15259
_ACEOF
 
15260
for ac_lib in '' x; do
 
15261
  if test -z "$ac_lib"; then
 
15262
    ac_res="none required"
 
15263
  else
 
15264
    ac_res=-l$ac_lib
 
15265
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
15266
  fi
 
15267
  rm -f conftest.$ac_objext conftest$ac_exeext
 
15268
if { (ac_try="$ac_link"
 
15269
case "(($ac_try" in
 
15270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15271
  *) ac_try_echo=$ac_try;;
 
15272
esac
 
15273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15274
  (eval "$ac_link") 2>conftest.er1
 
15275
  ac_status=$?
 
15276
  grep -v '^ *+' conftest.er1 >conftest.err
 
15277
  rm -f conftest.er1
 
15278
  cat conftest.err >&5
 
15279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15280
  (exit $ac_status); } && {
 
15281
         test -z "$ac_c_werror_flag" ||
 
15282
         test ! -s conftest.err
 
15283
       } && test -s conftest$ac_exeext &&
 
15284
       $as_test_x conftest$ac_exeext; then
 
15285
  ac_cv_search_opendir=$ac_res
 
15286
else
 
15287
  echo "$as_me: failed program was:" >&5
 
15288
sed 's/^/| /' conftest.$ac_ext >&5
 
15289
 
 
15290
 
 
15291
fi
 
15292
 
 
15293
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15294
      conftest$ac_exeext
 
15295
  if test "${ac_cv_search_opendir+set}" = set; then
 
15296
  break
 
15297
fi
 
15298
done
 
15299
if test "${ac_cv_search_opendir+set}" = set; then
 
15300
  :
 
15301
else
 
15302
  ac_cv_search_opendir=no
 
15303
fi
 
15304
rm conftest.$ac_ext
 
15305
LIBS=$ac_func_search_save_LIBS
 
15306
fi
 
15307
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
15308
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
15309
ac_res=$ac_cv_search_opendir
 
15310
if test "$ac_res" != no; then
 
15311
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
15312
 
 
15313
fi
 
15314
 
 
15315
fi
7423
15316
 
7424
15317
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7425
15318
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7595
15488
 
7596
15489
fi
7597
15490
 
7598
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7599
 
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
7608
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7609
 
                  inttypes.h stdint.h unistd.h
7610
 
do
7611
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7613
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7614
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7616
 
else
7617
 
  cat >conftest.$ac_ext <<_ACEOF
7618
 
/* confdefs.h.  */
7619
 
_ACEOF
7620
 
cat confdefs.h >>conftest.$ac_ext
7621
 
cat >>conftest.$ac_ext <<_ACEOF
7622
 
/* end confdefs.h.  */
7623
 
$ac_includes_default
7624
 
 
7625
 
#include <$ac_header>
7626
 
_ACEOF
7627
 
rm -f conftest.$ac_objext
7628
 
if { (ac_try="$ac_compile"
7629
 
case "(($ac_try" in
7630
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631
 
  *) ac_try_echo=$ac_try;;
7632
 
esac
7633
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634
 
  (eval "$ac_compile") 2>conftest.er1
7635
 
  ac_status=$?
7636
 
  grep -v '^ *+' conftest.er1 >conftest.err
7637
 
  rm -f conftest.er1
7638
 
  cat conftest.err >&5
7639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640
 
  (exit $ac_status); } && {
7641
 
         test -z "$ac_c_werror_flag" ||
7642
 
         test ! -s conftest.err
7643
 
       } && test -s conftest.$ac_objext; then
7644
 
  eval "$as_ac_Header=yes"
7645
 
else
7646
 
  echo "$as_me: failed program was:" >&5
7647
 
sed 's/^/| /' conftest.$ac_ext >&5
7648
 
 
7649
 
        eval "$as_ac_Header=no"
7650
 
fi
7651
 
 
7652
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653
 
fi
7654
 
ac_res=`eval echo '${'$as_ac_Header'}'`
7655
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7656
 
echo "${ECHO_T}$ac_res" >&6; }
7657
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7658
 
  cat >>confdefs.h <<_ACEOF
7659
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7660
 
_ACEOF
7661
 
 
7662
 
fi
7663
 
 
7664
 
done
7665
 
 
7666
 
 
7667
 
 
7668
 
 
7669
 
for ac_header in stdlib.h string.h
 
15491
 
 
15492
 
 
15493
 
 
15494
 
 
15495
 
 
15496
 
 
15497
 
 
15498
 
 
15499
 
 
15500
 
 
15501
 
 
15502
 
 
15503
 
 
15504
 
 
15505
 
 
15506
 
 
15507
 
 
15508
 
 
15509
 
 
15510
 
 
15511
 
 
15512
for ac_header in argz.h error.h errno.h fcntl.h float.h iconv.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h unistd.h wchar.h
7670
15513
do
7671
15514
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672
15515
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7811
15654
done
7812
15655
 
7813
15656
 
 
15657
 
 
15658
# --------------------------------------------------------------------------------------------
7814
15659
# Checks for typedefs, structures, and compiler characteristics.
 
15660
# --------------------------------------------------------------------------------------------
 
15661
 
 
15662
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
15663
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
15664
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
15665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15666
else
 
15667
  cat >conftest.$ac_ext <<_ACEOF
 
15668
/* confdefs.h.  */
 
15669
_ACEOF
 
15670
cat confdefs.h >>conftest.$ac_ext
 
15671
cat >>conftest.$ac_ext <<_ACEOF
 
15672
/* end confdefs.h.  */
 
15673
 
 
15674
#include <stdbool.h>
 
15675
#ifndef bool
 
15676
 "error: bool is not defined"
 
15677
#endif
 
15678
#ifndef false
 
15679
 "error: false is not defined"
 
15680
#endif
 
15681
#if false
 
15682
 "error: false is not 0"
 
15683
#endif
 
15684
#ifndef true
 
15685
 "error: true is not defined"
 
15686
#endif
 
15687
#if true != 1
 
15688
 "error: true is not 1"
 
15689
#endif
 
15690
#ifndef __bool_true_false_are_defined
 
15691
 "error: __bool_true_false_are_defined is not defined"
 
15692
#endif
 
15693
 
 
15694
        struct s { _Bool s: 1; _Bool t; } s;
 
15695
 
 
15696
        char a[true == 1 ? 1 : -1];
 
15697
        char b[false == 0 ? 1 : -1];
 
15698
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
15699
        char d[(bool) 0.5 == true ? 1 : -1];
 
15700
        bool e = &s;
 
15701
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
15702
        char g[true];
 
15703
        char h[sizeof (_Bool)];
 
15704
        char i[sizeof s.t];
 
15705
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
15706
        _Bool n[m];
 
15707
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
15708
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
15709
#       if defined __xlc__ || defined __GNUC__
 
15710
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
15711
            reported by James Lemley on 2005-10-05; see
 
15712
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
15713
            This test is not quite right, since xlc is allowed to
 
15714
            reject this program, as the initializer for xlcbug is
 
15715
            not one of the forms that C requires support for.
 
15716
            However, doing the test right would require a runtime
 
15717
            test, and that would make cross-compilation harder.
 
15718
            Let us hope that IBM fixes the xlc bug, and also adds
 
15719
            support for this kind of constant expression.  In the
 
15720
            meantime, this test will reject xlc, which is OK, since
 
15721
            our stdbool.h substitute should suffice.  We also test
 
15722
            this with GCC, where it should work, to detect more
 
15723
            quickly whether someone messes up the test in the
 
15724
            future.  */
 
15725
         char digs[] = "0123456789";
 
15726
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
15727
#       endif
 
15728
        /* Catch a bug in an HP-UX C compiler.  See
 
15729
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
15730
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
15731
         */
 
15732
        _Bool q = true;
 
15733
        _Bool *pq = &q;
 
15734
 
 
15735
int
 
15736
main ()
 
15737
{
 
15738
 
 
15739
        *pq |= q;
 
15740
        *pq |= ! q;
 
15741
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
15742
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
15743
                + !m + !n + !o + !p + !q + !pq);
 
15744
 
 
15745
  ;
 
15746
  return 0;
 
15747
}
 
15748
_ACEOF
 
15749
rm -f conftest.$ac_objext
 
15750
if { (ac_try="$ac_compile"
 
15751
case "(($ac_try" in
 
15752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15753
  *) ac_try_echo=$ac_try;;
 
15754
esac
 
15755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15756
  (eval "$ac_compile") 2>conftest.er1
 
15757
  ac_status=$?
 
15758
  grep -v '^ *+' conftest.er1 >conftest.err
 
15759
  rm -f conftest.er1
 
15760
  cat conftest.err >&5
 
15761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15762
  (exit $ac_status); } && {
 
15763
         test -z "$ac_c_werror_flag" ||
 
15764
         test ! -s conftest.err
 
15765
       } && test -s conftest.$ac_objext; then
 
15766
  ac_cv_header_stdbool_h=yes
 
15767
else
 
15768
  echo "$as_me: failed program was:" >&5
 
15769
sed 's/^/| /' conftest.$ac_ext >&5
 
15770
 
 
15771
        ac_cv_header_stdbool_h=no
 
15772
fi
 
15773
 
 
15774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15775
fi
 
15776
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
15777
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
 
15778
{ echo "$as_me:$LINENO: checking for _Bool" >&5
 
15779
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
15780
if test "${ac_cv_type__Bool+set}" = set; then
 
15781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15782
else
 
15783
  cat >conftest.$ac_ext <<_ACEOF
 
15784
/* confdefs.h.  */
 
15785
_ACEOF
 
15786
cat confdefs.h >>conftest.$ac_ext
 
15787
cat >>conftest.$ac_ext <<_ACEOF
 
15788
/* end confdefs.h.  */
 
15789
$ac_includes_default
 
15790
typedef _Bool ac__type_new_;
 
15791
int
 
15792
main ()
 
15793
{
 
15794
if ((ac__type_new_ *) 0)
 
15795
  return 0;
 
15796
if (sizeof (ac__type_new_))
 
15797
  return 0;
 
15798
  ;
 
15799
  return 0;
 
15800
}
 
15801
_ACEOF
 
15802
rm -f conftest.$ac_objext
 
15803
if { (ac_try="$ac_compile"
 
15804
case "(($ac_try" in
 
15805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15806
  *) ac_try_echo=$ac_try;;
 
15807
esac
 
15808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15809
  (eval "$ac_compile") 2>conftest.er1
 
15810
  ac_status=$?
 
15811
  grep -v '^ *+' conftest.er1 >conftest.err
 
15812
  rm -f conftest.er1
 
15813
  cat conftest.err >&5
 
15814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15815
  (exit $ac_status); } && {
 
15816
         test -z "$ac_c_werror_flag" ||
 
15817
         test ! -s conftest.err
 
15818
       } && test -s conftest.$ac_objext; then
 
15819
  ac_cv_type__Bool=yes
 
15820
else
 
15821
  echo "$as_me: failed program was:" >&5
 
15822
sed 's/^/| /' conftest.$ac_ext >&5
 
15823
 
 
15824
        ac_cv_type__Bool=no
 
15825
fi
 
15826
 
 
15827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15828
fi
 
15829
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
15830
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
15831
if test $ac_cv_type__Bool = yes; then
 
15832
 
 
15833
cat >>confdefs.h <<_ACEOF
 
15834
#define HAVE__BOOL 1
 
15835
_ACEOF
 
15836
 
 
15837
 
 
15838
fi
 
15839
 
 
15840
if test $ac_cv_header_stdbool_h = yes; then
 
15841
 
 
15842
cat >>confdefs.h <<\_ACEOF
 
15843
#define HAVE_STDBOOL_H 1
 
15844
_ACEOF
 
15845
 
 
15846
fi
 
15847
 
7815
15848
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7816
15849
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7817
15850
if test "${ac_cv_c_const+set}" = set; then
7987
16020
    ;;
7988
16021
esac
7989
16022
 
7990
 
 
 
16023
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
16024
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
16025
if test "${ac_cv_type_mode_t+set}" = set; then
 
16026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16027
else
 
16028
  cat >conftest.$ac_ext <<_ACEOF
 
16029
/* confdefs.h.  */
 
16030
_ACEOF
 
16031
cat confdefs.h >>conftest.$ac_ext
 
16032
cat >>conftest.$ac_ext <<_ACEOF
 
16033
/* end confdefs.h.  */
 
16034
$ac_includes_default
 
16035
typedef mode_t ac__type_new_;
 
16036
int
 
16037
main ()
 
16038
{
 
16039
if ((ac__type_new_ *) 0)
 
16040
  return 0;
 
16041
if (sizeof (ac__type_new_))
 
16042
  return 0;
 
16043
  ;
 
16044
  return 0;
 
16045
}
 
16046
_ACEOF
 
16047
rm -f conftest.$ac_objext
 
16048
if { (ac_try="$ac_compile"
 
16049
case "(($ac_try" in
 
16050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16051
  *) ac_try_echo=$ac_try;;
 
16052
esac
 
16053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16054
  (eval "$ac_compile") 2>conftest.er1
 
16055
  ac_status=$?
 
16056
  grep -v '^ *+' conftest.er1 >conftest.err
 
16057
  rm -f conftest.er1
 
16058
  cat conftest.err >&5
 
16059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16060
  (exit $ac_status); } && {
 
16061
         test -z "$ac_c_werror_flag" ||
 
16062
         test ! -s conftest.err
 
16063
       } && test -s conftest.$ac_objext; then
 
16064
  ac_cv_type_mode_t=yes
 
16065
else
 
16066
  echo "$as_me: failed program was:" >&5
 
16067
sed 's/^/| /' conftest.$ac_ext >&5
 
16068
 
 
16069
        ac_cv_type_mode_t=no
 
16070
fi
 
16071
 
 
16072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16073
fi
 
16074
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
16075
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
16076
if test $ac_cv_type_mode_t = yes; then
 
16077
  :
 
16078
else
 
16079
 
 
16080
cat >>confdefs.h <<_ACEOF
 
16081
#define mode_t int
 
16082
_ACEOF
 
16083
 
 
16084
fi
 
16085
 
 
16086
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
16087
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
16088
if test "${ac_cv_type_size_t+set}" = set; then
 
16089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16090
else
 
16091
  cat >conftest.$ac_ext <<_ACEOF
 
16092
/* confdefs.h.  */
 
16093
_ACEOF
 
16094
cat confdefs.h >>conftest.$ac_ext
 
16095
cat >>conftest.$ac_ext <<_ACEOF
 
16096
/* end confdefs.h.  */
 
16097
$ac_includes_default
 
16098
typedef size_t ac__type_new_;
 
16099
int
 
16100
main ()
 
16101
{
 
16102
if ((ac__type_new_ *) 0)
 
16103
  return 0;
 
16104
if (sizeof (ac__type_new_))
 
16105
  return 0;
 
16106
  ;
 
16107
  return 0;
 
16108
}
 
16109
_ACEOF
 
16110
rm -f conftest.$ac_objext
 
16111
if { (ac_try="$ac_compile"
 
16112
case "(($ac_try" in
 
16113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16114
  *) ac_try_echo=$ac_try;;
 
16115
esac
 
16116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16117
  (eval "$ac_compile") 2>conftest.er1
 
16118
  ac_status=$?
 
16119
  grep -v '^ *+' conftest.er1 >conftest.err
 
16120
  rm -f conftest.er1
 
16121
  cat conftest.err >&5
 
16122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16123
  (exit $ac_status); } && {
 
16124
         test -z "$ac_c_werror_flag" ||
 
16125
         test ! -s conftest.err
 
16126
       } && test -s conftest.$ac_objext; then
 
16127
  ac_cv_type_size_t=yes
 
16128
else
 
16129
  echo "$as_me: failed program was:" >&5
 
16130
sed 's/^/| /' conftest.$ac_ext >&5
 
16131
 
 
16132
        ac_cv_type_size_t=no
 
16133
fi
 
16134
 
 
16135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16136
fi
 
16137
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
16138
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
16139
if test $ac_cv_type_size_t = yes; then
 
16140
  :
 
16141
else
 
16142
 
 
16143
cat >>confdefs.h <<_ACEOF
 
16144
#define size_t unsigned int
 
16145
_ACEOF
 
16146
 
 
16147
fi
 
16148
 
 
16149
{ echo "$as_me:$LINENO: checking for working volatile" >&5
 
16150
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
16151
if test "${ac_cv_c_volatile+set}" = set; then
 
16152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16153
else
 
16154
  cat >conftest.$ac_ext <<_ACEOF
 
16155
/* confdefs.h.  */
 
16156
_ACEOF
 
16157
cat confdefs.h >>conftest.$ac_ext
 
16158
cat >>conftest.$ac_ext <<_ACEOF
 
16159
/* end confdefs.h.  */
 
16160
 
 
16161
int
 
16162
main ()
 
16163
{
 
16164
 
 
16165
volatile int x;
 
16166
int * volatile y = (int *) 0;
 
16167
return !x && !y;
 
16168
  ;
 
16169
  return 0;
 
16170
}
 
16171
_ACEOF
 
16172
rm -f conftest.$ac_objext
 
16173
if { (ac_try="$ac_compile"
 
16174
case "(($ac_try" in
 
16175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16176
  *) ac_try_echo=$ac_try;;
 
16177
esac
 
16178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16179
  (eval "$ac_compile") 2>conftest.er1
 
16180
  ac_status=$?
 
16181
  grep -v '^ *+' conftest.er1 >conftest.err
 
16182
  rm -f conftest.er1
 
16183
  cat conftest.err >&5
 
16184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16185
  (exit $ac_status); } && {
 
16186
         test -z "$ac_c_werror_flag" ||
 
16187
         test ! -s conftest.err
 
16188
       } && test -s conftest.$ac_objext; then
 
16189
  ac_cv_c_volatile=yes
 
16190
else
 
16191
  echo "$as_me: failed program was:" >&5
 
16192
sed 's/^/| /' conftest.$ac_ext >&5
 
16193
 
 
16194
        ac_cv_c_volatile=no
 
16195
fi
 
16196
 
 
16197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16198
fi
 
16199
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
16200
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
16201
if test $ac_cv_c_volatile = no; then
 
16202
 
 
16203
cat >>confdefs.h <<\_ACEOF
 
16204
#define volatile
 
16205
_ACEOF
 
16206
 
 
16207
fi
 
16208
 
 
16209
{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
16210
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
 
16211
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
16212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16213
else
 
16214
  cat >conftest.$ac_ext <<_ACEOF
 
16215
/* confdefs.h.  */
 
16216
_ACEOF
 
16217
cat confdefs.h >>conftest.$ac_ext
 
16218
cat >>conftest.$ac_ext <<_ACEOF
 
16219
/* end confdefs.h.  */
 
16220
$ac_includes_default
 
16221
typedef ptrdiff_t ac__type_new_;
 
16222
int
 
16223
main ()
 
16224
{
 
16225
if ((ac__type_new_ *) 0)
 
16226
  return 0;
 
16227
if (sizeof (ac__type_new_))
 
16228
  return 0;
 
16229
  ;
 
16230
  return 0;
 
16231
}
 
16232
_ACEOF
 
16233
rm -f conftest.$ac_objext
 
16234
if { (ac_try="$ac_compile"
 
16235
case "(($ac_try" in
 
16236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16237
  *) ac_try_echo=$ac_try;;
 
16238
esac
 
16239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16240
  (eval "$ac_compile") 2>conftest.er1
 
16241
  ac_status=$?
 
16242
  grep -v '^ *+' conftest.er1 >conftest.err
 
16243
  rm -f conftest.er1
 
16244
  cat conftest.err >&5
 
16245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16246
  (exit $ac_status); } && {
 
16247
         test -z "$ac_c_werror_flag" ||
 
16248
         test ! -s conftest.err
 
16249
       } && test -s conftest.$ac_objext; then
 
16250
  ac_cv_type_ptrdiff_t=yes
 
16251
else
 
16252
  echo "$as_me: failed program was:" >&5
 
16253
sed 's/^/| /' conftest.$ac_ext >&5
 
16254
 
 
16255
        ac_cv_type_ptrdiff_t=no
 
16256
fi
 
16257
 
 
16258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16259
fi
 
16260
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
16261
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
 
16262
if test $ac_cv_type_ptrdiff_t = yes; then
 
16263
 
 
16264
cat >>confdefs.h <<_ACEOF
 
16265
#define HAVE_PTRDIFF_T 1
 
16266
_ACEOF
 
16267
 
 
16268
 
 
16269
fi
 
16270
 
 
16271
 
 
16272
 
 
16273
# -------------------------------------------------------------------------------------------
7991
16274
# Checks for library functions.
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
 
 
7997
 
for ac_func in atexit memset strchr strstr malloc
7998
 
do
7999
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8000
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8001
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8002
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8003
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8004
 
else
8005
 
  cat >conftest.$ac_ext <<_ACEOF
8006
 
/* confdefs.h.  */
8007
 
_ACEOF
8008
 
cat confdefs.h >>conftest.$ac_ext
8009
 
cat >>conftest.$ac_ext <<_ACEOF
8010
 
/* end confdefs.h.  */
8011
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8012
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8013
 
#define $ac_func innocuous_$ac_func
8014
 
 
8015
 
/* System header to define __stub macros and hopefully few prototypes,
8016
 
    which can conflict with char $ac_func (); below.
8017
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8018
 
    <limits.h> exists even on freestanding compilers.  */
8019
 
 
8020
 
#ifdef __STDC__
8021
 
# include <limits.h>
8022
 
#else
8023
 
# include <assert.h>
8024
 
#endif
8025
 
 
8026
 
#undef $ac_func
8027
 
 
8028
 
/* Override any GCC internal prototype to avoid an error.
8029
 
   Use char because int might match the return type of a GCC
8030
 
   builtin and then its argument prototype would still apply.  */
8031
 
#ifdef __cplusplus
8032
 
extern "C"
8033
 
#endif
8034
 
char $ac_func ();
8035
 
/* The GNU C library defines this for functions which it implements
8036
 
    to always fail with ENOSYS.  Some functions are actually named
8037
 
    something starting with __ and the normal name is an alias.  */
8038
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8039
 
choke me
8040
 
#endif
8041
 
 
8042
 
int
8043
 
main ()
8044
 
{
8045
 
return $ac_func ();
8046
 
  ;
8047
 
  return 0;
8048
 
}
8049
 
_ACEOF
8050
 
rm -f conftest.$ac_objext conftest$ac_exeext
8051
 
if { (ac_try="$ac_link"
8052
 
case "(($ac_try" in
8053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054
 
  *) ac_try_echo=$ac_try;;
8055
 
esac
8056
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057
 
  (eval "$ac_link") 2>conftest.er1
8058
 
  ac_status=$?
8059
 
  grep -v '^ *+' conftest.er1 >conftest.err
8060
 
  rm -f conftest.er1
8061
 
  cat conftest.err >&5
8062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063
 
  (exit $ac_status); } && {
8064
 
         test -z "$ac_c_werror_flag" ||
8065
 
         test ! -s conftest.err
8066
 
       } && test -s conftest$ac_exeext &&
8067
 
       $as_test_x conftest$ac_exeext; then
8068
 
  eval "$as_ac_var=yes"
8069
 
else
8070
 
  echo "$as_me: failed program was:" >&5
8071
 
sed 's/^/| /' conftest.$ac_ext >&5
8072
 
 
8073
 
        eval "$as_ac_var=no"
8074
 
fi
8075
 
 
8076
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8077
 
      conftest$ac_exeext conftest.$ac_ext
8078
 
fi
8079
 
ac_res=`eval echo '${'$as_ac_var'}'`
8080
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8081
 
echo "${ECHO_T}$ac_res" >&6; }
8082
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8083
 
  cat >>confdefs.h <<_ACEOF
8084
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8085
 
_ACEOF
8086
 
 
8087
 
fi
8088
 
done
8089
 
 
8090
 
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
# Sam's Install Kludge-work
8096
 
CPPFLAGS="$CPPFLAGS -DDATA_PREFIX=\\\"\$(prefix)\\\""
8097
 
 
8098
 
ac_config_files="$ac_config_files Makefile po/Makefile.in data/Makefile data/fonts/Makefile data/images/Makefile data/images/backgrounds/Makefile data/images/cities/Makefile data/images/comets/Makefile data/images/hands/Makefile data/images/icons/Makefile data/images/keyboard/Makefile data/images/menu/Makefile data/images/status/Makefile data/images/tux/Makefile data/scripts/Makefile data/sounds/Makefile data/themes/Makefile data/themes/armenian/Makefile data/themes/armenian/images/Makefile data/themes/bokmal/Makefile data/themes/bokmal/words/Makefile data/themes/bokmal/images/Makefile data/themes/bokmal/images/status/Makefile data/themes/brazilian-portuguese/Makefile data/themes/brazilian-portuguese/images/Makefile data/themes/brazilian-portuguese/words/Makefile data/themes/catalan/Makefile data/themes/catalan/words/Makefile data/themes/czech/Makefile data/themes/czech/words/Makefile data/themes/dansk/Makefile data/themes/dansk/sounds/Makefile data/themes/dansk/words/Makefile data/themes/deutsch/Makefile data/themes/deutsch/words/Makefile data/themes/espanol/Makefile data/themes/espanol/images/Makefile data/themes/espanol/words/Makefile data/themes/euskara/Makefile data/themes/euskara/images/Makefile data/themes/euskara/words/Makefile data/themes/french/Makefile data/themes/french/words/Makefile data/themes/greek/Makefile data/themes/greek/words/Makefile data/themes/italian/Makefile data/themes/italian/images/Makefile data/themes/italian/words/Makefile data/themes/jamaican/Makefile data/themes/jamaican/images/Makefile data/themes/jamaican/words/Makefile data/themes/lithuanian/Makefile data/themes/lithuanian/images/Makefile data/themes/lithuanian/images/status/Makefile data/themes/lithuanian/sounds/Makefile data/themes/lithuanian/words/Makefile data/themes/malayalam/Makefile data/themes/malayalam/images/Makefile data/themes/malayalam/images/status/Makefile data/themes/malayalam/images/keyboard/Makefile data/themes/malayalam/scripts/Makefile data/themes/malayalam/words/Makefile data/themes/nederlands/Makefile data/themes/nederlands/words/Makefile data/themes/nepali/Makefile data/themes/nepali/words/Makefile data/themes/nynorsk/Makefile data/themes/nynorsk/images/Makefile data/themes/nynorsk/images/status/Makefile data/themes/nynorsk/words/Makefile data/themes/russian/Makefile data/themes/russian/images/Makefile data/themes/russian/images/status/Makefile data/themes/russian/words/Makefile data/themes/svenska/Makefile data/themes/svenska/words/Makefile data/themes/swahili/Makefile data/themes/swahili/words/Makefile data/themes/wolof/Makefile data/themes/wolof/images/Makefile data/themes/wolof/words/Makefile data/words/Makefile doc/Makefile doc/en/Makefile src/Makefile nsis/tuxtype.nsi tuxtype.spec"
8099
 
 
8100
 
 
8101
 
# Support for building NSIS Win32 installer (adapted from TuxMath NSIS):
 
16275
# -------------------------------------------------------------------------------------------
 
16276
 
 
16277
 
 
16278
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
 
16279
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
 
16280
if test "${ac_cv_func_closedir_void+set}" = set; then
 
16281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16282
else
 
16283
  if test "$cross_compiling" = yes; then
 
16284
  ac_cv_func_closedir_void=yes
 
16285
else
 
16286
  cat >conftest.$ac_ext <<_ACEOF
 
16287
/* confdefs.h.  */
 
16288
_ACEOF
 
16289
cat confdefs.h >>conftest.$ac_ext
 
16290
cat >>conftest.$ac_ext <<_ACEOF
 
16291
/* end confdefs.h.  */
 
16292
$ac_includes_default
 
16293
#include <$ac_header_dirent>
 
16294
#ifndef __cplusplus
 
16295
int closedir ();
 
16296
#endif
 
16297
 
 
16298
int
 
16299
main ()
 
16300
{
 
16301
return closedir (opendir (".")) != 0;
 
16302
  ;
 
16303
  return 0;
 
16304
}
 
16305
_ACEOF
 
16306
rm -f conftest$ac_exeext
 
16307
if { (ac_try="$ac_link"
 
16308
case "(($ac_try" in
 
16309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16310
  *) ac_try_echo=$ac_try;;
 
16311
esac
 
16312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16313
  (eval "$ac_link") 2>&5
 
16314
  ac_status=$?
 
16315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16316
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16317
  { (case "(($ac_try" in
 
16318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16319
  *) ac_try_echo=$ac_try;;
 
16320
esac
 
16321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16322
  (eval "$ac_try") 2>&5
 
16323
  ac_status=$?
 
16324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16325
  (exit $ac_status); }; }; then
 
16326
  ac_cv_func_closedir_void=no
 
16327
else
 
16328
  echo "$as_me: program exited with status $ac_status" >&5
 
16329
echo "$as_me: failed program was:" >&5
 
16330
sed 's/^/| /' conftest.$ac_ext >&5
 
16331
 
 
16332
( exit $ac_status )
 
16333
ac_cv_func_closedir_void=yes
 
16334
fi
 
16335
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16336
fi
 
16337
 
 
16338
 
 
16339
fi
 
16340
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
 
16341
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
 
16342
if test $ac_cv_func_closedir_void = yes; then
 
16343
 
 
16344
cat >>confdefs.h <<\_ACEOF
 
16345
#define CLOSEDIR_VOID 1
 
16346
_ACEOF
 
16347
 
 
16348
fi
 
16349
 
 
16350
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
 
16351
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
 
16352
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
16353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16354
else
 
16355
  cat >conftest.$ac_ext <<_ACEOF
 
16356
/* confdefs.h.  */
 
16357
_ACEOF
 
16358
cat confdefs.h >>conftest.$ac_ext
 
16359
cat >>conftest.$ac_ext <<_ACEOF
 
16360
/* end confdefs.h.  */
 
16361
#include <error.h>
 
16362
int
 
16363
main ()
 
16364
{
 
16365
error_at_line (0, 0, "", 0, "an error occurred");
 
16366
  ;
 
16367
  return 0;
 
16368
}
 
16369
_ACEOF
 
16370
rm -f conftest.$ac_objext conftest$ac_exeext
 
16371
if { (ac_try="$ac_link"
 
16372
case "(($ac_try" in
 
16373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16374
  *) ac_try_echo=$ac_try;;
 
16375
esac
 
16376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16377
  (eval "$ac_link") 2>conftest.er1
 
16378
  ac_status=$?
 
16379
  grep -v '^ *+' conftest.er1 >conftest.err
 
16380
  rm -f conftest.er1
 
16381
  cat conftest.err >&5
 
16382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16383
  (exit $ac_status); } && {
 
16384
         test -z "$ac_c_werror_flag" ||
 
16385
         test ! -s conftest.err
 
16386
       } && test -s conftest$ac_exeext &&
 
16387
       $as_test_x conftest$ac_exeext; then
 
16388
  ac_cv_lib_error_at_line=yes
 
16389
else
 
16390
  echo "$as_me: failed program was:" >&5
 
16391
sed 's/^/| /' conftest.$ac_ext >&5
 
16392
 
 
16393
        ac_cv_lib_error_at_line=no
 
16394
fi
 
16395
 
 
16396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16397
      conftest$ac_exeext conftest.$ac_ext
 
16398
fi
 
16399
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
16400
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
 
16401
if test $ac_cv_lib_error_at_line = no; then
 
16402
  case " $LIBOBJS " in
 
16403
  *" error.$ac_objext "* ) ;;
 
16404
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
16405
 ;;
 
16406
esac
 
16407
 
 
16408
fi
 
16409
 
 
16410
#AC_FUNC_MALLOC
 
16411
 
 
16412
 
 
16413
for ac_header in stdlib.h unistd.h
 
16414
do
 
16415
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16416
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16417
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16418
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16419
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16421
fi
 
16422
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16423
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16424
echo "${ECHO_T}$ac_res" >&6; }
 
16425
else
 
16426
  # Is the header compilable?
 
16427
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16428
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
16429
cat >conftest.$ac_ext <<_ACEOF
 
16430
/* confdefs.h.  */
 
16431
_ACEOF
 
16432
cat confdefs.h >>conftest.$ac_ext
 
16433
cat >>conftest.$ac_ext <<_ACEOF
 
16434
/* end confdefs.h.  */
 
16435
$ac_includes_default
 
16436
#include <$ac_header>
 
16437
_ACEOF
 
16438
rm -f conftest.$ac_objext
 
16439
if { (ac_try="$ac_compile"
 
16440
case "(($ac_try" in
 
16441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16442
  *) ac_try_echo=$ac_try;;
 
16443
esac
 
16444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16445
  (eval "$ac_compile") 2>conftest.er1
 
16446
  ac_status=$?
 
16447
  grep -v '^ *+' conftest.er1 >conftest.err
 
16448
  rm -f conftest.er1
 
16449
  cat conftest.err >&5
 
16450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16451
  (exit $ac_status); } && {
 
16452
         test -z "$ac_c_werror_flag" ||
 
16453
         test ! -s conftest.err
 
16454
       } && test -s conftest.$ac_objext; then
 
16455
  ac_header_compiler=yes
 
16456
else
 
16457
  echo "$as_me: failed program was:" >&5
 
16458
sed 's/^/| /' conftest.$ac_ext >&5
 
16459
 
 
16460
        ac_header_compiler=no
 
16461
fi
 
16462
 
 
16463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16464
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16465
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
16466
 
 
16467
# Is the header present?
 
16468
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16469
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
16470
cat >conftest.$ac_ext <<_ACEOF
 
16471
/* confdefs.h.  */
 
16472
_ACEOF
 
16473
cat confdefs.h >>conftest.$ac_ext
 
16474
cat >>conftest.$ac_ext <<_ACEOF
 
16475
/* end confdefs.h.  */
 
16476
#include <$ac_header>
 
16477
_ACEOF
 
16478
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16479
case "(($ac_try" in
 
16480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16481
  *) ac_try_echo=$ac_try;;
 
16482
esac
 
16483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16484
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16485
  ac_status=$?
 
16486
  grep -v '^ *+' conftest.er1 >conftest.err
 
16487
  rm -f conftest.er1
 
16488
  cat conftest.err >&5
 
16489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16490
  (exit $ac_status); } >/dev/null && {
 
16491
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16492
         test ! -s conftest.err
 
16493
       }; then
 
16494
  ac_header_preproc=yes
 
16495
else
 
16496
  echo "$as_me: failed program was:" >&5
 
16497
sed 's/^/| /' conftest.$ac_ext >&5
 
16498
 
 
16499
  ac_header_preproc=no
 
16500
fi
 
16501
 
 
16502
rm -f conftest.err conftest.$ac_ext
 
16503
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16504
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
16505
 
 
16506
# So?  What about this header?
 
16507
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16508
  yes:no: )
 
16509
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
16510
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16511
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
16512
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
16513
    ac_header_preproc=yes
 
16514
    ;;
 
16515
  no:yes:* )
 
16516
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
16517
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
16518
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
16519
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
16520
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
16521
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
16522
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
16523
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16524
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
16525
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
16526
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
16527
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
16528
    ( cat <<\_ASBOX
 
16529
## ----------------------------------------------------------- ##
 
16530
## Report this to tux4kids-tuxtype-dev@lists.alioth.debian.org ##
 
16531
## ----------------------------------------------------------- ##
 
16532
_ASBOX
 
16533
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16534
    ;;
 
16535
esac
 
16536
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16537
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16538
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16540
else
 
16541
  eval "$as_ac_Header=\$ac_header_preproc"
 
16542
fi
 
16543
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16544
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16545
echo "${ECHO_T}$ac_res" >&6; }
 
16546
 
 
16547
fi
 
16548
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
16549
  cat >>confdefs.h <<_ACEOF
 
16550
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16551
_ACEOF
 
16552
 
 
16553
fi
 
16554
 
 
16555
done
 
16556
 
 
16557
 
 
16558
for ac_func in getpagesize
 
16559
do
 
16560
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16561
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16562
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
16563
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
16564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16565
else
 
16566
  cat >conftest.$ac_ext <<_ACEOF
 
16567
/* confdefs.h.  */
 
16568
_ACEOF
 
16569
cat confdefs.h >>conftest.$ac_ext
 
16570
cat >>conftest.$ac_ext <<_ACEOF
 
16571
/* end confdefs.h.  */
 
16572
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16573
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16574
#define $ac_func innocuous_$ac_func
 
16575
 
 
16576
/* System header to define __stub macros and hopefully few prototypes,
 
16577
    which can conflict with char $ac_func (); below.
 
16578
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16579
    <limits.h> exists even on freestanding compilers.  */
 
16580
 
 
16581
#ifdef __STDC__
 
16582
# include <limits.h>
 
16583
#else
 
16584
# include <assert.h>
 
16585
#endif
 
16586
 
 
16587
#undef $ac_func
 
16588
 
 
16589
/* Override any GCC internal prototype to avoid an error.
 
16590
   Use char because int might match the return type of a GCC
 
16591
   builtin and then its argument prototype would still apply.  */
 
16592
#ifdef __cplusplus
 
16593
extern "C"
 
16594
#endif
 
16595
char $ac_func ();
 
16596
/* The GNU C library defines this for functions which it implements
 
16597
    to always fail with ENOSYS.  Some functions are actually named
 
16598
    something starting with __ and the normal name is an alias.  */
 
16599
#if defined __stub_$ac_func || defined __stub___$ac_func
 
16600
choke me
 
16601
#endif
 
16602
 
 
16603
int
 
16604
main ()
 
16605
{
 
16606
return $ac_func ();
 
16607
  ;
 
16608
  return 0;
 
16609
}
 
16610
_ACEOF
 
16611
rm -f conftest.$ac_objext conftest$ac_exeext
 
16612
if { (ac_try="$ac_link"
 
16613
case "(($ac_try" in
 
16614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16615
  *) ac_try_echo=$ac_try;;
 
16616
esac
 
16617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16618
  (eval "$ac_link") 2>conftest.er1
 
16619
  ac_status=$?
 
16620
  grep -v '^ *+' conftest.er1 >conftest.err
 
16621
  rm -f conftest.er1
 
16622
  cat conftest.err >&5
 
16623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16624
  (exit $ac_status); } && {
 
16625
         test -z "$ac_c_werror_flag" ||
 
16626
         test ! -s conftest.err
 
16627
       } && test -s conftest$ac_exeext &&
 
16628
       $as_test_x conftest$ac_exeext; then
 
16629
  eval "$as_ac_var=yes"
 
16630
else
 
16631
  echo "$as_me: failed program was:" >&5
 
16632
sed 's/^/| /' conftest.$ac_ext >&5
 
16633
 
 
16634
        eval "$as_ac_var=no"
 
16635
fi
 
16636
 
 
16637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16638
      conftest$ac_exeext conftest.$ac_ext
 
16639
fi
 
16640
ac_res=`eval echo '${'$as_ac_var'}'`
 
16641
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16642
echo "${ECHO_T}$ac_res" >&6; }
 
16643
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16644
  cat >>confdefs.h <<_ACEOF
 
16645
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16646
_ACEOF
 
16647
 
 
16648
fi
 
16649
done
 
16650
 
 
16651
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
16652
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
 
16653
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
16654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16655
else
 
16656
  if test "$cross_compiling" = yes; then
 
16657
  ac_cv_func_mmap_fixed_mapped=no
 
16658
else
 
16659
  cat >conftest.$ac_ext <<_ACEOF
 
16660
/* confdefs.h.  */
 
16661
_ACEOF
 
16662
cat confdefs.h >>conftest.$ac_ext
 
16663
cat >>conftest.$ac_ext <<_ACEOF
 
16664
/* end confdefs.h.  */
 
16665
$ac_includes_default
 
16666
/* malloc might have been renamed as rpl_malloc. */
 
16667
#undef malloc
 
16668
 
 
16669
/* Thanks to Mike Haertel and Jim Avera for this test.
 
16670
   Here is a matrix of mmap possibilities:
 
16671
        mmap private not fixed
 
16672
        mmap private fixed at somewhere currently unmapped
 
16673
        mmap private fixed at somewhere already mapped
 
16674
        mmap shared not fixed
 
16675
        mmap shared fixed at somewhere currently unmapped
 
16676
        mmap shared fixed at somewhere already mapped
 
16677
   For private mappings, we should verify that changes cannot be read()
 
16678
   back from the file, nor mmap's back from the file at a different
 
16679
   address.  (There have been systems where private was not correctly
 
16680
   implemented like the infamous i386 svr4.0, and systems where the
 
16681
   VM page cache was not coherent with the file system buffer cache
 
16682
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
16683
   For shared mappings, we should conversely verify that changes get
 
16684
   propagated back to all the places they're supposed to be.
 
16685
 
 
16686
   Grep wants private fixed already mapped.
 
16687
   The main things grep needs to know about mmap are:
 
16688
   * does it exist and is it safe to write into the mmap'd area
 
16689
   * how to use it (BSD variants)  */
 
16690
 
 
16691
#include <fcntl.h>
 
16692
#include <sys/mman.h>
 
16693
 
 
16694
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
16695
char *malloc ();
 
16696
#endif
 
16697
 
 
16698
/* This mess was copied from the GNU getpagesize.h.  */
 
16699
#ifndef HAVE_GETPAGESIZE
 
16700
/* Assume that all systems that can run configure have sys/param.h.  */
 
16701
# ifndef HAVE_SYS_PARAM_H
 
16702
#  define HAVE_SYS_PARAM_H 1
 
16703
# endif
 
16704
 
 
16705
# ifdef _SC_PAGESIZE
 
16706
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
16707
# else /* no _SC_PAGESIZE */
 
16708
#  ifdef HAVE_SYS_PARAM_H
 
16709
#   include <sys/param.h>
 
16710
#   ifdef EXEC_PAGESIZE
 
16711
#    define getpagesize() EXEC_PAGESIZE
 
16712
#   else /* no EXEC_PAGESIZE */
 
16713
#    ifdef NBPG
 
16714
#     define getpagesize() NBPG * CLSIZE
 
16715
#     ifndef CLSIZE
 
16716
#      define CLSIZE 1
 
16717
#     endif /* no CLSIZE */
 
16718
#    else /* no NBPG */
 
16719
#     ifdef NBPC
 
16720
#      define getpagesize() NBPC
 
16721
#     else /* no NBPC */
 
16722
#      ifdef PAGESIZE
 
16723
#       define getpagesize() PAGESIZE
 
16724
#      endif /* PAGESIZE */
 
16725
#     endif /* no NBPC */
 
16726
#    endif /* no NBPG */
 
16727
#   endif /* no EXEC_PAGESIZE */
 
16728
#  else /* no HAVE_SYS_PARAM_H */
 
16729
#   define getpagesize() 8192   /* punt totally */
 
16730
#  endif /* no HAVE_SYS_PARAM_H */
 
16731
# endif /* no _SC_PAGESIZE */
 
16732
 
 
16733
#endif /* no HAVE_GETPAGESIZE */
 
16734
 
 
16735
int
 
16736
main ()
 
16737
{
 
16738
  char *data, *data2, *data3;
 
16739
  int i, pagesize;
 
16740
  int fd;
 
16741
 
 
16742
  pagesize = getpagesize ();
 
16743
 
 
16744
  /* First, make a file with some known garbage in it. */
 
16745
  data = (char *) malloc (pagesize);
 
16746
  if (!data)
 
16747
    return 1;
 
16748
  for (i = 0; i < pagesize; ++i)
 
16749
    *(data + i) = rand ();
 
16750
  umask (0);
 
16751
  fd = creat ("conftest.mmap", 0600);
 
16752
  if (fd < 0)
 
16753
    return 1;
 
16754
  if (write (fd, data, pagesize) != pagesize)
 
16755
    return 1;
 
16756
  close (fd);
 
16757
 
 
16758
  /* Next, try to mmap the file at a fixed address which already has
 
16759
     something else allocated at it.  If we can, also make sure that
 
16760
     we see the same garbage.  */
 
16761
  fd = open ("conftest.mmap", O_RDWR);
 
16762
  if (fd < 0)
 
16763
    return 1;
 
16764
  data2 = (char *) malloc (2 * pagesize);
 
16765
  if (!data2)
 
16766
    return 1;
 
16767
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
 
16768
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
16769
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
16770
    return 1;
 
16771
  for (i = 0; i < pagesize; ++i)
 
16772
    if (*(data + i) != *(data2 + i))
 
16773
      return 1;
 
16774
 
 
16775
  /* Finally, make sure that changes to the mapped area do not
 
16776
     percolate back to the file as seen by read().  (This is a bug on
 
16777
     some variants of i386 svr4.0.)  */
 
16778
  for (i = 0; i < pagesize; ++i)
 
16779
    *(data2 + i) = *(data2 + i) + 1;
 
16780
  data3 = (char *) malloc (pagesize);
 
16781
  if (!data3)
 
16782
    return 1;
 
16783
  if (read (fd, data3, pagesize) != pagesize)
 
16784
    return 1;
 
16785
  for (i = 0; i < pagesize; ++i)
 
16786
    if (*(data + i) != *(data3 + i))
 
16787
      return 1;
 
16788
  close (fd);
 
16789
  return 0;
 
16790
}
 
16791
_ACEOF
 
16792
rm -f conftest$ac_exeext
 
16793
if { (ac_try="$ac_link"
 
16794
case "(($ac_try" in
 
16795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16796
  *) ac_try_echo=$ac_try;;
 
16797
esac
 
16798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16799
  (eval "$ac_link") 2>&5
 
16800
  ac_status=$?
 
16801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16802
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16803
  { (case "(($ac_try" in
 
16804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16805
  *) ac_try_echo=$ac_try;;
 
16806
esac
 
16807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16808
  (eval "$ac_try") 2>&5
 
16809
  ac_status=$?
 
16810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16811
  (exit $ac_status); }; }; then
 
16812
  ac_cv_func_mmap_fixed_mapped=yes
 
16813
else
 
16814
  echo "$as_me: program exited with status $ac_status" >&5
 
16815
echo "$as_me: failed program was:" >&5
 
16816
sed 's/^/| /' conftest.$ac_ext >&5
 
16817
 
 
16818
( exit $ac_status )
 
16819
ac_cv_func_mmap_fixed_mapped=no
 
16820
fi
 
16821
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16822
fi
 
16823
 
 
16824
 
 
16825
fi
 
16826
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
16827
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
 
16828
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
16829
 
 
16830
cat >>confdefs.h <<\_ACEOF
 
16831
#define HAVE_MMAP 1
 
16832
_ACEOF
 
16833
 
 
16834
fi
 
16835
rm -f conftest.mmap
 
16836
 
 
16837
#AC_FUNC_REALLOC
 
16838
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
16839
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
 
16840
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
16841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16842
else
 
16843
  rm -f conftest.sym conftest.file
 
16844
echo >conftest.file
 
16845
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
16846
  if test "$cross_compiling" = yes; then
 
16847
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16848
else
 
16849
  cat >conftest.$ac_ext <<_ACEOF
 
16850
/* confdefs.h.  */
 
16851
_ACEOF
 
16852
cat confdefs.h >>conftest.$ac_ext
 
16853
cat >>conftest.$ac_ext <<_ACEOF
 
16854
/* end confdefs.h.  */
 
16855
$ac_includes_default
 
16856
int
 
16857
main ()
 
16858
{
 
16859
struct stat sbuf;
 
16860
     /* Linux will dereference the symlink and fail.
 
16861
        That is better in the sense that it means we will not
 
16862
        have to compile and use the lstat wrapper.  */
 
16863
     return lstat ("conftest.sym/", &sbuf) == 0;
 
16864
  ;
 
16865
  return 0;
 
16866
}
 
16867
_ACEOF
 
16868
rm -f conftest$ac_exeext
 
16869
if { (ac_try="$ac_link"
 
16870
case "(($ac_try" in
 
16871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16872
  *) ac_try_echo=$ac_try;;
 
16873
esac
 
16874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16875
  (eval "$ac_link") 2>&5
 
16876
  ac_status=$?
 
16877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16878
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16879
  { (case "(($ac_try" in
 
16880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16881
  *) ac_try_echo=$ac_try;;
 
16882
esac
 
16883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16884
  (eval "$ac_try") 2>&5
 
16885
  ac_status=$?
 
16886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16887
  (exit $ac_status); }; }; then
 
16888
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
16889
else
 
16890
  echo "$as_me: program exited with status $ac_status" >&5
 
16891
echo "$as_me: failed program was:" >&5
 
16892
sed 's/^/| /' conftest.$ac_ext >&5
 
16893
 
 
16894
( exit $ac_status )
 
16895
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16896
fi
 
16897
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16898
fi
 
16899
 
 
16900
 
 
16901
else
 
16902
  # If the `ln -s' command failed, then we probably don't even
 
16903
  # have an lstat function.
 
16904
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
16905
fi
 
16906
rm -f conftest.sym conftest.file
 
16907
 
 
16908
fi
 
16909
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
16910
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
16911
 
 
16912
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
16913
 
 
16914
cat >>confdefs.h <<_ACEOF
 
16915
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
16916
_ACEOF
 
16917
 
 
16918
 
 
16919
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
16920
  case " $LIBOBJS " in
 
16921
  *" lstat.$ac_objext "* ) ;;
 
16922
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
16923
 ;;
 
16924
esac
 
16925
 
 
16926
fi
 
16927
 
 
16928
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
16929
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
 
16930
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
16931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16932
else
 
16933
  if test "$cross_compiling" = yes; then
 
16934
  ac_cv_func_stat_empty_string_bug=yes
 
16935
else
 
16936
  cat >conftest.$ac_ext <<_ACEOF
 
16937
/* confdefs.h.  */
 
16938
_ACEOF
 
16939
cat confdefs.h >>conftest.$ac_ext
 
16940
cat >>conftest.$ac_ext <<_ACEOF
 
16941
/* end confdefs.h.  */
 
16942
$ac_includes_default
 
16943
int
 
16944
main ()
 
16945
{
 
16946
struct stat sbuf;
 
16947
  return stat ("", &sbuf) == 0;
 
16948
  ;
 
16949
  return 0;
 
16950
}
 
16951
_ACEOF
 
16952
rm -f conftest$ac_exeext
 
16953
if { (ac_try="$ac_link"
 
16954
case "(($ac_try" in
 
16955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16956
  *) ac_try_echo=$ac_try;;
 
16957
esac
 
16958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16959
  (eval "$ac_link") 2>&5
 
16960
  ac_status=$?
 
16961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16962
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16963
  { (case "(($ac_try" in
 
16964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16965
  *) ac_try_echo=$ac_try;;
 
16966
esac
 
16967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16968
  (eval "$ac_try") 2>&5
 
16969
  ac_status=$?
 
16970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16971
  (exit $ac_status); }; }; then
 
16972
  ac_cv_func_stat_empty_string_bug=no
 
16973
else
 
16974
  echo "$as_me: program exited with status $ac_status" >&5
 
16975
echo "$as_me: failed program was:" >&5
 
16976
sed 's/^/| /' conftest.$ac_ext >&5
 
16977
 
 
16978
( exit $ac_status )
 
16979
ac_cv_func_stat_empty_string_bug=yes
 
16980
fi
 
16981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16982
fi
 
16983
 
 
16984
 
 
16985
fi
 
16986
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
16987
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
 
16988
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
16989
  case " $LIBOBJS " in
 
16990
  *" stat.$ac_objext "* ) ;;
 
16991
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
16992
 ;;
 
16993
esac
 
16994
 
 
16995
 
 
16996
cat >>confdefs.h <<_ACEOF
 
16997
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
16998
_ACEOF
 
16999
 
 
17000
fi
 
17001
 
 
17002
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
 
17003
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
 
17004
if test "${ac_cv_func_strcoll_works+set}" = set; then
 
17005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17006
else
 
17007
  if test "$cross_compiling" = yes; then
 
17008
  ac_cv_func_strcoll_works=no
 
17009
else
 
17010
  cat >conftest.$ac_ext <<_ACEOF
 
17011
/* confdefs.h.  */
 
17012
_ACEOF
 
17013
cat confdefs.h >>conftest.$ac_ext
 
17014
cat >>conftest.$ac_ext <<_ACEOF
 
17015
/* end confdefs.h.  */
 
17016
$ac_includes_default
 
17017
int
 
17018
main ()
 
17019
{
 
17020
return (strcoll ("abc", "def") >= 0 ||
 
17021
         strcoll ("ABC", "DEF") >= 0 ||
 
17022
         strcoll ("123", "456") >= 0)
 
17023
  ;
 
17024
  return 0;
 
17025
}
 
17026
_ACEOF
 
17027
rm -f conftest$ac_exeext
 
17028
if { (ac_try="$ac_link"
 
17029
case "(($ac_try" in
 
17030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17031
  *) ac_try_echo=$ac_try;;
 
17032
esac
 
17033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17034
  (eval "$ac_link") 2>&5
 
17035
  ac_status=$?
 
17036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17037
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17038
  { (case "(($ac_try" in
 
17039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17040
  *) ac_try_echo=$ac_try;;
 
17041
esac
 
17042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17043
  (eval "$ac_try") 2>&5
 
17044
  ac_status=$?
 
17045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17046
  (exit $ac_status); }; }; then
 
17047
  ac_cv_func_strcoll_works=yes
 
17048
else
 
17049
  echo "$as_me: program exited with status $ac_status" >&5
 
17050
echo "$as_me: failed program was:" >&5
 
17051
sed 's/^/| /' conftest.$ac_ext >&5
 
17052
 
 
17053
( exit $ac_status )
 
17054
ac_cv_func_strcoll_works=no
 
17055
fi
 
17056
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17057
fi
 
17058
 
 
17059
 
 
17060
fi
 
17061
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
 
17062
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
 
17063
if test $ac_cv_func_strcoll_works = yes; then
 
17064
 
 
17065
cat >>confdefs.h <<\_ACEOF
 
17066
#define HAVE_STRCOLL 1
 
17067
_ACEOF
 
17068
 
 
17069
fi
 
17070
 
 
17071
{ echo "$as_me:$LINENO: checking for working strtod" >&5
 
17072
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
 
17073
if test "${ac_cv_func_strtod+set}" = set; then
 
17074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17075
else
 
17076
  if test "$cross_compiling" = yes; then
 
17077
  ac_cv_func_strtod=no
 
17078
else
 
17079
  cat >conftest.$ac_ext <<_ACEOF
 
17080
/* confdefs.h.  */
 
17081
_ACEOF
 
17082
cat confdefs.h >>conftest.$ac_ext
 
17083
cat >>conftest.$ac_ext <<_ACEOF
 
17084
/* end confdefs.h.  */
 
17085
 
 
17086
$ac_includes_default
 
17087
#ifndef strtod
 
17088
double strtod ();
 
17089
#endif
 
17090
int
 
17091
main()
 
17092
{
 
17093
  {
 
17094
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
 
17095
    char *string = " +69";
 
17096
    char *term;
 
17097
    double value;
 
17098
    value = strtod (string, &term);
 
17099
    if (value != 69 || term != (string + 4))
 
17100
      return 1;
 
17101
  }
 
17102
 
 
17103
  {
 
17104
    /* Under Solaris 2.4, strtod returns the wrong value for the
 
17105
       terminating character under some conditions.  */
 
17106
    char *string = "NaN";
 
17107
    char *term;
 
17108
    strtod (string, &term);
 
17109
    if (term != string && *(term - 1) == 0)
 
17110
      return 1;
 
17111
  }
 
17112
  return 0;
 
17113
}
 
17114
 
 
17115
_ACEOF
 
17116
rm -f conftest$ac_exeext
 
17117
if { (ac_try="$ac_link"
 
17118
case "(($ac_try" in
 
17119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17120
  *) ac_try_echo=$ac_try;;
 
17121
esac
 
17122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17123
  (eval "$ac_link") 2>&5
 
17124
  ac_status=$?
 
17125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17126
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17127
  { (case "(($ac_try" in
 
17128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17129
  *) ac_try_echo=$ac_try;;
 
17130
esac
 
17131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17132
  (eval "$ac_try") 2>&5
 
17133
  ac_status=$?
 
17134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17135
  (exit $ac_status); }; }; then
 
17136
  ac_cv_func_strtod=yes
 
17137
else
 
17138
  echo "$as_me: program exited with status $ac_status" >&5
 
17139
echo "$as_me: failed program was:" >&5
 
17140
sed 's/^/| /' conftest.$ac_ext >&5
 
17141
 
 
17142
( exit $ac_status )
 
17143
ac_cv_func_strtod=no
 
17144
fi
 
17145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17146
fi
 
17147
 
 
17148
 
 
17149
fi
 
17150
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
 
17151
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
 
17152
if test $ac_cv_func_strtod = no; then
 
17153
  case " $LIBOBJS " in
 
17154
  *" strtod.$ac_objext "* ) ;;
 
17155
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
 
17156
 ;;
 
17157
esac
 
17158
 
 
17159
{ echo "$as_me:$LINENO: checking for pow" >&5
 
17160
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
 
17161
if test "${ac_cv_func_pow+set}" = set; then
 
17162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17163
else
 
17164
  cat >conftest.$ac_ext <<_ACEOF
 
17165
/* confdefs.h.  */
 
17166
_ACEOF
 
17167
cat confdefs.h >>conftest.$ac_ext
 
17168
cat >>conftest.$ac_ext <<_ACEOF
 
17169
/* end confdefs.h.  */
 
17170
/* Define pow to an innocuous variant, in case <limits.h> declares pow.
 
17171
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17172
#define pow innocuous_pow
 
17173
 
 
17174
/* System header to define __stub macros and hopefully few prototypes,
 
17175
    which can conflict with char pow (); below.
 
17176
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17177
    <limits.h> exists even on freestanding compilers.  */
 
17178
 
 
17179
#ifdef __STDC__
 
17180
# include <limits.h>
 
17181
#else
 
17182
# include <assert.h>
 
17183
#endif
 
17184
 
 
17185
#undef pow
 
17186
 
 
17187
/* Override any GCC internal prototype to avoid an error.
 
17188
   Use char because int might match the return type of a GCC
 
17189
   builtin and then its argument prototype would still apply.  */
 
17190
#ifdef __cplusplus
 
17191
extern "C"
 
17192
#endif
 
17193
char pow ();
 
17194
/* The GNU C library defines this for functions which it implements
 
17195
    to always fail with ENOSYS.  Some functions are actually named
 
17196
    something starting with __ and the normal name is an alias.  */
 
17197
#if defined __stub_pow || defined __stub___pow
 
17198
choke me
 
17199
#endif
 
17200
 
 
17201
int
 
17202
main ()
 
17203
{
 
17204
return pow ();
 
17205
  ;
 
17206
  return 0;
 
17207
}
 
17208
_ACEOF
 
17209
rm -f conftest.$ac_objext conftest$ac_exeext
 
17210
if { (ac_try="$ac_link"
 
17211
case "(($ac_try" in
 
17212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17213
  *) ac_try_echo=$ac_try;;
 
17214
esac
 
17215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17216
  (eval "$ac_link") 2>conftest.er1
 
17217
  ac_status=$?
 
17218
  grep -v '^ *+' conftest.er1 >conftest.err
 
17219
  rm -f conftest.er1
 
17220
  cat conftest.err >&5
 
17221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17222
  (exit $ac_status); } && {
 
17223
         test -z "$ac_c_werror_flag" ||
 
17224
         test ! -s conftest.err
 
17225
       } && test -s conftest$ac_exeext &&
 
17226
       $as_test_x conftest$ac_exeext; then
 
17227
  ac_cv_func_pow=yes
 
17228
else
 
17229
  echo "$as_me: failed program was:" >&5
 
17230
sed 's/^/| /' conftest.$ac_ext >&5
 
17231
 
 
17232
        ac_cv_func_pow=no
 
17233
fi
 
17234
 
 
17235
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17236
      conftest$ac_exeext conftest.$ac_ext
 
17237
fi
 
17238
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
 
17239
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
 
17240
 
 
17241
if test $ac_cv_func_pow = no; then
 
17242
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
17243
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
 
17244
if test "${ac_cv_lib_m_pow+set}" = set; then
 
17245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17246
else
 
17247
  ac_check_lib_save_LIBS=$LIBS
 
17248
LIBS="-lm  $LIBS"
 
17249
cat >conftest.$ac_ext <<_ACEOF
 
17250
/* confdefs.h.  */
 
17251
_ACEOF
 
17252
cat confdefs.h >>conftest.$ac_ext
 
17253
cat >>conftest.$ac_ext <<_ACEOF
 
17254
/* end confdefs.h.  */
 
17255
 
 
17256
/* Override any GCC internal prototype to avoid an error.
 
17257
   Use char because int might match the return type of a GCC
 
17258
   builtin and then its argument prototype would still apply.  */
 
17259
#ifdef __cplusplus
 
17260
extern "C"
 
17261
#endif
 
17262
char pow ();
 
17263
int
 
17264
main ()
 
17265
{
 
17266
return pow ();
 
17267
  ;
 
17268
  return 0;
 
17269
}
 
17270
_ACEOF
 
17271
rm -f conftest.$ac_objext conftest$ac_exeext
 
17272
if { (ac_try="$ac_link"
 
17273
case "(($ac_try" in
 
17274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17275
  *) ac_try_echo=$ac_try;;
 
17276
esac
 
17277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17278
  (eval "$ac_link") 2>conftest.er1
 
17279
  ac_status=$?
 
17280
  grep -v '^ *+' conftest.er1 >conftest.err
 
17281
  rm -f conftest.er1
 
17282
  cat conftest.err >&5
 
17283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17284
  (exit $ac_status); } && {
 
17285
         test -z "$ac_c_werror_flag" ||
 
17286
         test ! -s conftest.err
 
17287
       } && test -s conftest$ac_exeext &&
 
17288
       $as_test_x conftest$ac_exeext; then
 
17289
  ac_cv_lib_m_pow=yes
 
17290
else
 
17291
  echo "$as_me: failed program was:" >&5
 
17292
sed 's/^/| /' conftest.$ac_ext >&5
 
17293
 
 
17294
        ac_cv_lib_m_pow=no
 
17295
fi
 
17296
 
 
17297
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17298
      conftest$ac_exeext conftest.$ac_ext
 
17299
LIBS=$ac_check_lib_save_LIBS
 
17300
fi
 
17301
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
17302
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
 
17303
if test $ac_cv_lib_m_pow = yes; then
 
17304
  POW_LIB=-lm
 
17305
else
 
17306
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
 
17307
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
 
17308
fi
 
17309
 
 
17310
fi
 
17311
 
 
17312
fi
 
17313
 
 
17314
 
 
17315
for ac_func in vprintf
 
17316
do
 
17317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17322
else
 
17323
  cat >conftest.$ac_ext <<_ACEOF
 
17324
/* confdefs.h.  */
 
17325
_ACEOF
 
17326
cat confdefs.h >>conftest.$ac_ext
 
17327
cat >>conftest.$ac_ext <<_ACEOF
 
17328
/* end confdefs.h.  */
 
17329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17330
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17331
#define $ac_func innocuous_$ac_func
 
17332
 
 
17333
/* System header to define __stub macros and hopefully few prototypes,
 
17334
    which can conflict with char $ac_func (); below.
 
17335
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17336
    <limits.h> exists even on freestanding compilers.  */
 
17337
 
 
17338
#ifdef __STDC__
 
17339
# include <limits.h>
 
17340
#else
 
17341
# include <assert.h>
 
17342
#endif
 
17343
 
 
17344
#undef $ac_func
 
17345
 
 
17346
/* Override any GCC internal prototype to avoid an error.
 
17347
   Use char because int might match the return type of a GCC
 
17348
   builtin and then its argument prototype would still apply.  */
 
17349
#ifdef __cplusplus
 
17350
extern "C"
 
17351
#endif
 
17352
char $ac_func ();
 
17353
/* The GNU C library defines this for functions which it implements
 
17354
    to always fail with ENOSYS.  Some functions are actually named
 
17355
    something starting with __ and the normal name is an alias.  */
 
17356
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17357
choke me
 
17358
#endif
 
17359
 
 
17360
int
 
17361
main ()
 
17362
{
 
17363
return $ac_func ();
 
17364
  ;
 
17365
  return 0;
 
17366
}
 
17367
_ACEOF
 
17368
rm -f conftest.$ac_objext conftest$ac_exeext
 
17369
if { (ac_try="$ac_link"
 
17370
case "(($ac_try" in
 
17371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17372
  *) ac_try_echo=$ac_try;;
 
17373
esac
 
17374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17375
  (eval "$ac_link") 2>conftest.er1
 
17376
  ac_status=$?
 
17377
  grep -v '^ *+' conftest.er1 >conftest.err
 
17378
  rm -f conftest.er1
 
17379
  cat conftest.err >&5
 
17380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17381
  (exit $ac_status); } && {
 
17382
         test -z "$ac_c_werror_flag" ||
 
17383
         test ! -s conftest.err
 
17384
       } && test -s conftest$ac_exeext &&
 
17385
       $as_test_x conftest$ac_exeext; then
 
17386
  eval "$as_ac_var=yes"
 
17387
else
 
17388
  echo "$as_me: failed program was:" >&5
 
17389
sed 's/^/| /' conftest.$ac_ext >&5
 
17390
 
 
17391
        eval "$as_ac_var=no"
 
17392
fi
 
17393
 
 
17394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17395
      conftest$ac_exeext conftest.$ac_ext
 
17396
fi
 
17397
ac_res=`eval echo '${'$as_ac_var'}'`
 
17398
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17399
echo "${ECHO_T}$ac_res" >&6; }
 
17400
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17401
  cat >>confdefs.h <<_ACEOF
 
17402
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17403
_ACEOF
 
17404
 
 
17405
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
 
17406
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
 
17407
if test "${ac_cv_func__doprnt+set}" = set; then
 
17408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17409
else
 
17410
  cat >conftest.$ac_ext <<_ACEOF
 
17411
/* confdefs.h.  */
 
17412
_ACEOF
 
17413
cat confdefs.h >>conftest.$ac_ext
 
17414
cat >>conftest.$ac_ext <<_ACEOF
 
17415
/* end confdefs.h.  */
 
17416
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
17417
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17418
#define _doprnt innocuous__doprnt
 
17419
 
 
17420
/* System header to define __stub macros and hopefully few prototypes,
 
17421
    which can conflict with char _doprnt (); below.
 
17422
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17423
    <limits.h> exists even on freestanding compilers.  */
 
17424
 
 
17425
#ifdef __STDC__
 
17426
# include <limits.h>
 
17427
#else
 
17428
# include <assert.h>
 
17429
#endif
 
17430
 
 
17431
#undef _doprnt
 
17432
 
 
17433
/* Override any GCC internal prototype to avoid an error.
 
17434
   Use char because int might match the return type of a GCC
 
17435
   builtin and then its argument prototype would still apply.  */
 
17436
#ifdef __cplusplus
 
17437
extern "C"
 
17438
#endif
 
17439
char _doprnt ();
 
17440
/* The GNU C library defines this for functions which it implements
 
17441
    to always fail with ENOSYS.  Some functions are actually named
 
17442
    something starting with __ and the normal name is an alias.  */
 
17443
#if defined __stub__doprnt || defined __stub____doprnt
 
17444
choke me
 
17445
#endif
 
17446
 
 
17447
int
 
17448
main ()
 
17449
{
 
17450
return _doprnt ();
 
17451
  ;
 
17452
  return 0;
 
17453
}
 
17454
_ACEOF
 
17455
rm -f conftest.$ac_objext conftest$ac_exeext
 
17456
if { (ac_try="$ac_link"
 
17457
case "(($ac_try" in
 
17458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17459
  *) ac_try_echo=$ac_try;;
 
17460
esac
 
17461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17462
  (eval "$ac_link") 2>conftest.er1
 
17463
  ac_status=$?
 
17464
  grep -v '^ *+' conftest.er1 >conftest.err
 
17465
  rm -f conftest.er1
 
17466
  cat conftest.err >&5
 
17467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17468
  (exit $ac_status); } && {
 
17469
         test -z "$ac_c_werror_flag" ||
 
17470
         test ! -s conftest.err
 
17471
       } && test -s conftest$ac_exeext &&
 
17472
       $as_test_x conftest$ac_exeext; then
 
17473
  ac_cv_func__doprnt=yes
 
17474
else
 
17475
  echo "$as_me: failed program was:" >&5
 
17476
sed 's/^/| /' conftest.$ac_ext >&5
 
17477
 
 
17478
        ac_cv_func__doprnt=no
 
17479
fi
 
17480
 
 
17481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17482
      conftest$ac_exeext conftest.$ac_ext
 
17483
fi
 
17484
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
17485
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
 
17486
if test $ac_cv_func__doprnt = yes; then
 
17487
 
 
17488
cat >>confdefs.h <<\_ACEOF
 
17489
#define HAVE_DOPRNT 1
 
17490
_ACEOF
 
17491
 
 
17492
fi
 
17493
 
 
17494
fi
 
17495
done
 
17496
 
 
17497
 
 
17498
 
 
17499
 
 
17500
 
 
17501
 
 
17502
 
 
17503
 
 
17504
 
 
17505
 
 
17506
 
 
17507
 
 
17508
 
 
17509
 
 
17510
 
 
17511
 
 
17512
 
 
17513
 
 
17514
 
 
17515
 
 
17516
 
 
17517
 
 
17518
 
 
17519
 
 
17520
 
 
17521
 
 
17522
for ac_func in __argz_count __argz_next __argz_stringify atexit bcopy getcwd localtime_r memmove mempcpy memset mkdir munmap nl_langinfo scandir setlocale stpcpy strcasecmp strchr strcspn strdup strncasecmp strndup strstr strtoul
 
17523
do
 
17524
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17525
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17526
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17527
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17529
else
 
17530
  cat >conftest.$ac_ext <<_ACEOF
 
17531
/* confdefs.h.  */
 
17532
_ACEOF
 
17533
cat confdefs.h >>conftest.$ac_ext
 
17534
cat >>conftest.$ac_ext <<_ACEOF
 
17535
/* end confdefs.h.  */
 
17536
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17537
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17538
#define $ac_func innocuous_$ac_func
 
17539
 
 
17540
/* System header to define __stub macros and hopefully few prototypes,
 
17541
    which can conflict with char $ac_func (); below.
 
17542
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17543
    <limits.h> exists even on freestanding compilers.  */
 
17544
 
 
17545
#ifdef __STDC__
 
17546
# include <limits.h>
 
17547
#else
 
17548
# include <assert.h>
 
17549
#endif
 
17550
 
 
17551
#undef $ac_func
 
17552
 
 
17553
/* Override any GCC internal prototype to avoid an error.
 
17554
   Use char because int might match the return type of a GCC
 
17555
   builtin and then its argument prototype would still apply.  */
 
17556
#ifdef __cplusplus
 
17557
extern "C"
 
17558
#endif
 
17559
char $ac_func ();
 
17560
/* The GNU C library defines this for functions which it implements
 
17561
    to always fail with ENOSYS.  Some functions are actually named
 
17562
    something starting with __ and the normal name is an alias.  */
 
17563
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17564
choke me
 
17565
#endif
 
17566
 
 
17567
int
 
17568
main ()
 
17569
{
 
17570
return $ac_func ();
 
17571
  ;
 
17572
  return 0;
 
17573
}
 
17574
_ACEOF
 
17575
rm -f conftest.$ac_objext conftest$ac_exeext
 
17576
if { (ac_try="$ac_link"
 
17577
case "(($ac_try" in
 
17578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17579
  *) ac_try_echo=$ac_try;;
 
17580
esac
 
17581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17582
  (eval "$ac_link") 2>conftest.er1
 
17583
  ac_status=$?
 
17584
  grep -v '^ *+' conftest.er1 >conftest.err
 
17585
  rm -f conftest.er1
 
17586
  cat conftest.err >&5
 
17587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17588
  (exit $ac_status); } && {
 
17589
         test -z "$ac_c_werror_flag" ||
 
17590
         test ! -s conftest.err
 
17591
       } && test -s conftest$ac_exeext &&
 
17592
       $as_test_x conftest$ac_exeext; then
 
17593
  eval "$as_ac_var=yes"
 
17594
else
 
17595
  echo "$as_me: failed program was:" >&5
 
17596
sed 's/^/| /' conftest.$ac_ext >&5
 
17597
 
 
17598
        eval "$as_ac_var=no"
 
17599
fi
 
17600
 
 
17601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17602
      conftest$ac_exeext conftest.$ac_ext
 
17603
fi
 
17604
ac_res=`eval echo '${'$as_ac_var'}'`
 
17605
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17606
echo "${ECHO_T}$ac_res" >&6; }
 
17607
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17608
  cat >>confdefs.h <<_ACEOF
 
17609
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17610
_ACEOF
 
17611
 
 
17612
fi
 
17613
done
 
17614
 
 
17615
 
 
17616
# Set PACKAGE_DATA_DIR
 
17617
PACKAGE_DATA_DIR="data"
 
17618
 
 
17619
 
 
17620
#AM_CONDITIONAL(BUILD_MINGW32, test "$native_win32" = yes)
 
17621
 
 
17622
if test $native_win32 = yes; then
 
17623
 
 
17624
cat >>confdefs.h <<\_ACEOF
 
17625
#define BUILD_MINGW32 1
 
17626
_ACEOF
 
17627
 
 
17628
   CFLAGS="$CFLAGS -D__GW32__"
 
17629
   LIBS="$LIBS -luuid -lole32 -lwsock32 -mwindows"
 
17630
   CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
 
17631
   # Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
 
17632
set dummy "$target_alias-windres"; ac_word=$2
 
17633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
17635
if test "${ac_cv_path_WINDRES+set}" = set; then
 
17636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17637
else
 
17638
  case $WINDRES in
 
17639
  [\\/]* | ?:[\\/]*)
 
17640
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
 
17641
  ;;
 
17642
  *)
 
17643
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17644
for as_dir in $PATH
 
17645
do
 
17646
  IFS=$as_save_IFS
 
17647
  test -z "$as_dir" && as_dir=.
 
17648
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17650
    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
 
17651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17652
    break 2
 
17653
  fi
 
17654
done
 
17655
done
 
17656
IFS=$as_save_IFS
 
17657
 
 
17658
  test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
 
17659
  ;;
 
17660
esac
 
17661
fi
 
17662
WINDRES=$ac_cv_path_WINDRES
 
17663
if test -n "$WINDRES"; then
 
17664
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
 
17665
echo "${ECHO_T}$WINDRES" >&6; }
 
17666
else
 
17667
  { echo "$as_me:$LINENO: result: no" >&5
 
17668
echo "${ECHO_T}no" >&6; }
 
17669
fi
 
17670
 
 
17671
 
 
17672
fi
 
17673
 
 
17674
 
 
17675
# ------------------------------------------------------------
 
17676
# Support for building NSIS Win32 installer:
 
17677
# ------------------------------------------------------------
 
17678
 
8102
17679
NSI_INSTALL_DIR=mingw32
8103
17680
 
8104
17681
 
8112
17689
fi
8113
17690
 
8114
17691
 
8115
 
 if test "$dll_path" = no; then
 
17692
 if test $dll_path = no; then
8116
17693
  NSI_BUILD_TRUE=
8117
17694
  NSI_BUILD_FALSE='#'
8118
17695
else
8126
17703
fi
8127
17704
 
8128
17705
 
8129
 
 
8130
17706
# Extract the first word of "makensis", so it can be a program name with args.
8131
17707
set dummy makensis; ac_word=$2
8132
17708
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8154
17730
done
8155
17731
IFS=$as_save_IFS
8156
17732
 
8157
 
  test -z "$ac_cv_path_NSIS" && ac_cv_path_NSIS="no"
8158
17733
  ;;
8159
17734
esac
8160
17735
fi
8170
17745
 
8171
17746
 
8172
17747
 
 
17748
## Sam's Install Kludge-work
 
17749
#CPPFLAGS="$CPPFLAGS -DDATA_PREFIX=\\\"\$(prefix)\\\""
 
17750
 
 
17751
# ---------------------------------------------------------------
 
17752
# Create Makefiles
 
17753
# ---------------------------------------------------------------
 
17754
 
 
17755
ac_config_files="$ac_config_files Makefile po/Makefile.in intl/Makefile data/Makefile data/fonts/Makefile data/images/Makefile data/images/backgrounds/Makefile data/images/cities/Makefile data/images/comets/Makefile data/images/hands/Makefile data/images/icons/Makefile data/images/keyboard/Makefile data/images/menu/Makefile data/images/status/Makefile data/images/tux/Makefile data/scripts/Makefile data/sounds/Makefile data/themes/Makefile data/themes/armenian/Makefile data/themes/armenian/images/Makefile data/themes/bokmal/Makefile data/themes/bokmal/words/Makefile data/themes/bokmal/images/Makefile data/themes/bokmal/images/status/Makefile data/themes/brazilian-portuguese/Makefile data/themes/brazilian-portuguese/images/Makefile data/themes/brazilian-portuguese/words/Makefile data/themes/catalan/Makefile data/themes/catalan/words/Makefile data/themes/czech/Makefile data/themes/czech/words/Makefile data/themes/dansk/Makefile data/themes/dansk/sounds/Makefile data/themes/dansk/words/Makefile data/themes/deutsch/Makefile data/themes/deutsch/words/Makefile data/themes/espanol/Makefile data/themes/espanol/images/Makefile data/themes/espanol/words/Makefile data/themes/euskara/Makefile data/themes/euskara/images/Makefile data/themes/euskara/words/Makefile data/themes/french/Makefile data/themes/french/words/Makefile data/themes/greek/Makefile data/themes/greek/words/Makefile data/themes/italian/Makefile data/themes/italian/images/Makefile data/themes/italian/words/Makefile data/themes/jamaican/Makefile data/themes/jamaican/images/Makefile data/themes/jamaican/words/Makefile data/themes/lithuanian/Makefile data/themes/lithuanian/images/Makefile data/themes/lithuanian/images/status/Makefile data/themes/lithuanian/sounds/Makefile data/themes/lithuanian/words/Makefile data/themes/malayalam/Makefile data/themes/malayalam/images/Makefile data/themes/malayalam/images/status/Makefile data/themes/malayalam/images/keyboard/Makefile data/themes/malayalam/scripts/Makefile data/themes/malayalam/words/Makefile data/themes/nederlands/Makefile data/themes/nederlands/words/Makefile data/themes/nepali/Makefile data/themes/nepali/words/Makefile data/themes/nynorsk/Makefile data/themes/nynorsk/images/Makefile data/themes/nynorsk/images/status/Makefile data/themes/nynorsk/words/Makefile data/themes/russian/Makefile data/themes/russian/images/Makefile data/themes/russian/images/status/Makefile data/themes/russian/words/Makefile data/themes/svenska/Makefile data/themes/svenska/words/Makefile data/themes/swahili/Makefile data/themes/swahili/words/Makefile data/themes/wolof/Makefile data/themes/wolof/images/Makefile data/themes/wolof/words/Makefile data/words/Makefile doc/Makefile doc/en/Makefile src/Makefile nsis/tuxtype.nsi tuxtype.spec"
 
17756
 
 
17757
 
8173
17758
cat >confcache <<\_ACEOF
8174
17759
# This file is a shell script that caches the results of configure
8175
17760
# tests run on this system so they can be shared between configure
8780
18365
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8781
18366
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8782
18367
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
18368
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8783
18369
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
8784
18370
    "data/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES data/fonts/Makefile" ;;
8785
18371
    "data/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;;
8998
18584
AMTAR!$AMTAR$ac_delim
8999
18585
am__tar!$am__tar$ac_delim
9000
18586
am__untar!$am__untar$ac_delim
 
18587
NAME_VERSION!$NAME_VERSION$ac_delim
9001
18588
USE_NLS!$USE_NLS$ac_delim
 
18589
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
9002
18590
MSGFMT!$MSGFMT$ac_delim
9003
18591
GMSGFMT!$GMSGFMT$ac_delim
9004
18592
MSGFMT_015!$MSGFMT_015$ac_delim
9006
18594
XGETTEXT!$XGETTEXT$ac_delim
9007
18595
XGETTEXT_015!$XGETTEXT_015$ac_delim
9008
18596
MSGMERGE!$MSGMERGE$ac_delim
 
18597
XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
9009
18598
CC!$CC$ac_delim
9010
18599
CFLAGS!$CFLAGS$ac_delim
9011
18600
LDFLAGS!$LDFLAGS$ac_delim
9021
18610
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9022
18611
CCDEPMODE!$CCDEPMODE$ac_delim
9023
18612
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
18613
_ACEOF
 
18614
 
 
18615
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
18616
    break
 
18617
  elif $ac_last_try; then
 
18618
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
18619
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
18620
   { (exit 1); exit 1; }; }
 
18621
  else
 
18622
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
18623
  fi
 
18624
done
 
18625
 
 
18626
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
18627
if test -n "$ac_eof"; then
 
18628
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
18629
  ac_eof=`expr $ac_eof + 1`
 
18630
fi
 
18631
 
 
18632
cat >>$CONFIG_STATUS <<_ACEOF
 
18633
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
18634
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
18635
_ACEOF
 
18636
sed '
 
18637
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
18638
s/^/s,@/; s/!/@,|#_!!_#|/
 
18639
:n
 
18640
t n
 
18641
s/'"$ac_delim"'$/,g/; t
 
18642
s/$/\\/; p
 
18643
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
18644
' >>$CONFIG_STATUS <conf$$subs.sed
 
18645
rm -f conf$$subs.sed
 
18646
cat >>$CONFIG_STATUS <<_ACEOF
 
18647
CEOF$ac_eof
 
18648
_ACEOF
 
18649
 
 
18650
 
 
18651
ac_delim='%!_!# '
 
18652
for ac_last_try in false false false false false :; do
 
18653
  cat >conf$$subs.sed <<_ACEOF
9024
18654
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9025
 
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
18655
CPP!$CPP$ac_delim
 
18656
GREP!$GREP$ac_delim
 
18657
EGREP!$EGREP$ac_delim
 
18658
GLIBC2!$GLIBC2$ac_delim
 
18659
RANLIB!$RANLIB$ac_delim
 
18660
CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
 
18661
HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
 
18662
ALLOCA!$ALLOCA$ac_delim
 
18663
PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
 
18664
LIBPTH!$LIBPTH$ac_delim
 
18665
LTLIBPTH!$LTLIBPTH$ac_delim
 
18666
LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
 
18667
LIBTHREAD!$LIBTHREAD$ac_delim
 
18668
LTLIBTHREAD!$LTLIBTHREAD$ac_delim
 
18669
LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
 
18670
LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
9026
18671
LIBICONV!$LIBICONV$ac_delim
9027
 
_ACEOF
9028
 
 
9029
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9030
 
    break
9031
 
  elif $ac_last_try; then
9032
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9033
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9034
 
   { (exit 1); exit 1; }; }
9035
 
  else
9036
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9037
 
  fi
9038
 
done
9039
 
 
9040
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9041
 
if test -n "$ac_eof"; then
9042
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9043
 
  ac_eof=`expr $ac_eof + 1`
9044
 
fi
9045
 
 
9046
 
cat >>$CONFIG_STATUS <<_ACEOF
9047
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9048
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9049
 
_ACEOF
9050
 
sed '
9051
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9052
 
s/^/s,@/; s/!/@,|#_!!_#|/
9053
 
:n
9054
 
t n
9055
 
s/'"$ac_delim"'$/,g/; t
9056
 
s/$/\\/; p
9057
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9058
 
' >>$CONFIG_STATUS <conf$$subs.sed
9059
 
rm -f conf$$subs.sed
9060
 
cat >>$CONFIG_STATUS <<_ACEOF
9061
 
CEOF$ac_eof
9062
 
_ACEOF
9063
 
 
9064
 
 
9065
 
ac_delim='%!_!# '
9066
 
for ac_last_try in false false false false false :; do
9067
 
  cat >conf$$subs.sed <<_ACEOF
9068
18672
LTLIBICONV!$LTLIBICONV$ac_delim
 
18673
INTLBISON!$INTLBISON$ac_delim
 
18674
GLIBC21!$GLIBC21$ac_delim
 
18675
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
18676
HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
 
18677
HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
 
18678
HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
 
18679
HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
 
18680
WOE32DLL!$WOE32DLL$ac_delim
 
18681
WOE32!$WOE32$ac_delim
 
18682
WINDRES!$WINDRES$ac_delim
 
18683
LTLIBC!$LTLIBC$ac_delim
 
18684
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
 
18685
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
 
18686
CATOBJEXT!$CATOBJEXT$ac_delim
 
18687
DATADIRNAME!$DATADIRNAME$ac_delim
 
18688
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
18689
GENCAT!$GENCAT$ac_delim
 
18690
INTLOBJS!$INTLOBJS$ac_delim
 
18691
INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
9069
18692
INTLLIBS!$INTLLIBS$ac_delim
9070
18693
LIBINTL!$LIBINTL$ac_delim
9071
18694
LTLIBINTL!$LTLIBINTL$ac_delim
9072
18695
POSUB!$POSUB$ac_delim
9073
 
LN_S!$LN_S$ac_delim
 
18696
YACC!$YACC$ac_delim
 
18697
YFLAGS!$YFLAGS$ac_delim
9074
18698
SDL_CONFIG!$SDL_CONFIG$ac_delim
9075
18699
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
9076
18700
SDL_LIBS!$SDL_LIBS$ac_delim
9077
18701
BUILD_MINGW32_TRUE!$BUILD_MINGW32_TRUE$ac_delim
9078
18702
BUILD_MINGW32_FALSE!$BUILD_MINGW32_FALSE$ac_delim
9079
 
WINDRES!$WINDRES$ac_delim
9080
 
CPP!$CPP$ac_delim
9081
 
GREP!$GREP$ac_delim
9082
 
EGREP!$EGREP$ac_delim
 
18703
LIBOBJS!$LIBOBJS$ac_delim
 
18704
POW_LIB!$POW_LIB$ac_delim
 
18705
PACKAGE_DATA_DIR!$PACKAGE_DATA_DIR$ac_delim
9083
18706
NSI_INSTALL_DIR!$NSI_INSTALL_DIR$ac_delim
9084
18707
NSI_BUILD_TRUE!$NSI_BUILD_TRUE$ac_delim
9085
18708
NSI_BUILD_FALSE!$NSI_BUILD_FALSE$ac_delim
9086
18709
NSI_DLL_DIR!$NSI_DLL_DIR$ac_delim
9087
18710
NSIS!$NSIS$ac_delim
9088
 
LIBOBJS!$LIBOBJS$ac_delim
9089
18711
LTLIBOBJS!$LTLIBOBJS$ac_delim
9090
18712
_ACEOF
9091
18713
 
9092
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
 
18714
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
9093
18715
    break
9094
18716
  elif $ac_last_try; then
9095
18717
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5