2357
2423
test "$program_prefix$program_suffix$program_transform_name" = \
2358
2424
NONENONEs,x,x, &&
2359
2425
program_prefix=${target_alias}-
2360
am__api_version='1.10'
2427
ac_cpp='$CPP $CPPFLAGS'
2428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431
if test -n "$ac_tool_prefix"; then
2432
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435
$as_echo_n "checking for $ac_word... " >&6; }
2436
if test "${ac_cv_prog_CC+set}" = set; then
2437
$as_echo_n "(cached) " >&6
2439
if test -n "$CC"; then
2440
ac_cv_prog_CC="$CC" # Let the user override the test.
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
test -z "$as_dir" && as_dir=.
2447
for ac_exec_ext in '' $ac_executable_extensions; do
2448
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460
if test -n "$CC"; then
2461
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2462
$as_echo "$CC" >&6; }
2464
{ $as_echo "$as_me:$LINENO: result: no" >&5
2465
$as_echo "no" >&6; }
2470
if test -z "$ac_cv_prog_CC"; then
2472
# Extract the first word of "gcc", so it can be a program name with args.
2473
set dummy gcc; ac_word=$2
2474
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475
$as_echo_n "checking for $ac_word... " >&6; }
2476
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477
$as_echo_n "(cached) " >&6
2479
if test -n "$ac_ct_CC"; then
2480
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486
test -z "$as_dir" && as_dir=.
2487
for ac_exec_ext in '' $ac_executable_extensions; do
2488
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489
ac_cv_prog_ac_ct_CC="gcc"
2490
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500
if test -n "$ac_ct_CC"; then
2501
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502
$as_echo "$ac_ct_CC" >&6; }
2504
{ $as_echo "$as_me:$LINENO: result: no" >&5
2505
$as_echo "no" >&6; }
2508
if test "x$ac_ct_CC" = x; then
2511
case $cross_compiling:$ac_tool_warned in
2513
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515
ac_tool_warned=yes ;;
2523
if test -z "$CC"; then
2524
if test -n "$ac_tool_prefix"; then
2525
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526
set dummy ${ac_tool_prefix}cc; ac_word=$2
2527
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528
$as_echo_n "checking for $ac_word... " >&6; }
2529
if test "${ac_cv_prog_CC+set}" = set; then
2530
$as_echo_n "(cached) " >&6
2532
if test -n "$CC"; then
2533
ac_cv_prog_CC="$CC" # Let the user override the test.
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539
test -z "$as_dir" && as_dir=.
2540
for ac_exec_ext in '' $ac_executable_extensions; do
2541
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542
ac_cv_prog_CC="${ac_tool_prefix}cc"
2543
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553
if test -n "$CC"; then
2554
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2555
$as_echo "$CC" >&6; }
2557
{ $as_echo "$as_me:$LINENO: result: no" >&5
2558
$as_echo "no" >&6; }
2564
if test -z "$CC"; then
2565
# Extract the first word of "cc", so it can be a program name with args.
2566
set dummy cc; ac_word=$2
2567
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568
$as_echo_n "checking for $ac_word... " >&6; }
2569
if test "${ac_cv_prog_CC+set}" = set; then
2570
$as_echo_n "(cached) " >&6
2572
if test -n "$CC"; then
2573
ac_cv_prog_CC="$CC" # Let the user override the test.
2576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580
test -z "$as_dir" && as_dir=.
2581
for ac_exec_ext in '' $ac_executable_extensions; do
2582
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584
ac_prog_rejected=yes
2588
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595
if test $ac_prog_rejected = yes; then
2596
# We found a bogon in the path, so make sure we never use it.
2597
set dummy $ac_cv_prog_CC
2599
if test $# != 0; then
2600
# We chose a different compiler from the bogus one.
2601
# However, it has the same basename, so the bogon will be chosen
2602
# first if we set CC to just the basename; use the full file name.
2604
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610
if test -n "$CC"; then
2611
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2612
$as_echo "$CC" >&6; }
2614
{ $as_echo "$as_me:$LINENO: result: no" >&5
2615
$as_echo "no" >&6; }
2620
if test -z "$CC"; then
2621
if test -n "$ac_tool_prefix"; then
2622
for ac_prog in cl.exe
2624
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2627
$as_echo_n "checking for $ac_word... " >&6; }
2628
if test "${ac_cv_prog_CC+set}" = set; then
2629
$as_echo_n "(cached) " >&6
2631
if test -n "$CC"; then
2632
ac_cv_prog_CC="$CC" # Let the user override the test.
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638
test -z "$as_dir" && as_dir=.
2639
for ac_exec_ext in '' $ac_executable_extensions; do
2640
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
if test -n "$CC"; then
2653
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2654
$as_echo "$CC" >&6; }
2656
{ $as_echo "$as_me:$LINENO: result: no" >&5
2657
$as_echo "no" >&6; }
2661
test -n "$CC" && break
2664
if test -z "$CC"; then
2666
for ac_prog in cl.exe
2668
# Extract the first word of "$ac_prog", so it can be a program name with args.
2669
set dummy $ac_prog; ac_word=$2
2670
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2671
$as_echo_n "checking for $ac_word... " >&6; }
2672
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673
$as_echo_n "(cached) " >&6
2675
if test -n "$ac_ct_CC"; then
2676
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682
test -z "$as_dir" && as_dir=.
2683
for ac_exec_ext in '' $ac_executable_extensions; do
2684
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685
ac_cv_prog_ac_ct_CC="$ac_prog"
2686
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696
if test -n "$ac_ct_CC"; then
2697
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698
$as_echo "$ac_ct_CC" >&6; }
2700
{ $as_echo "$as_me:$LINENO: result: no" >&5
2701
$as_echo "no" >&6; }
2705
test -n "$ac_ct_CC" && break
2708
if test "x$ac_ct_CC" = x; then
2711
case $cross_compiling:$ac_tool_warned in
2713
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2714
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715
ac_tool_warned=yes ;;
2724
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727
See \`config.log' for more details." >&5
2728
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2729
See \`config.log' for more details." >&2;}
2730
{ (exit 1); exit 1; }; }; }
2732
# Provide some information about the compiler.
2733
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2736
{ (ac_try="$ac_compiler --version >&5"
2738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739
*) ac_try_echo=$ac_try;;
2741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742
$as_echo "$ac_try_echo") >&5
2743
(eval "$ac_compiler --version >&5") 2>&5
2745
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
(exit $ac_status); }
2747
{ (ac_try="$ac_compiler -v >&5"
2749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750
*) ac_try_echo=$ac_try;;
2752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753
$as_echo "$ac_try_echo") >&5
2754
(eval "$ac_compiler -v >&5") 2>&5
2756
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
(exit $ac_status); }
2758
{ (ac_try="$ac_compiler -V >&5"
2760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761
*) ac_try_echo=$ac_try;;
2763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764
$as_echo "$ac_try_echo") >&5
2765
(eval "$ac_compiler -V >&5") 2>&5
2767
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768
(exit $ac_status); }
2770
cat >conftest.$ac_ext <<_ACEOF
2773
cat confdefs.h >>conftest.$ac_ext
2774
cat >>conftest.$ac_ext <<_ACEOF
2775
/* end confdefs.h. */
2785
ac_clean_files_save=$ac_clean_files
2786
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2787
# Try to create an executable without -o first, disregard a.out.
2788
# It will help us diagnose broken compilers, and finding out an intuition
2790
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791
$as_echo_n "checking for C compiler default output file name... " >&6; }
2792
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794
# The possible output files:
2795
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2798
for ac_file in $ac_files
2801
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2802
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807
if { (ac_try="$ac_link_default"
2809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810
*) ac_try_echo=$ac_try;;
2812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813
$as_echo "$ac_try_echo") >&5
2814
(eval "$ac_link_default") 2>&5
2816
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817
(exit $ac_status); }; then
2818
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2821
# so that the user can short-circuit this test for compilers unknown to
2823
for ac_file in $ac_files ''
2825
test -f "$ac_file" || continue
2827
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2830
# We found the default executable, but exeext='' is most
2834
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838
# We set ac_cv_exeext here because the later test for it is not
2839
# safe: cross compilers may not add the suffix if given an `-o'
2840
# argument, so we may need to know it at that point already.
2841
# Even if this section looks crufty: it has the advantage of
2848
test "$ac_cv_exeext" = no && ac_cv_exeext=
2854
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2855
$as_echo "$ac_file" >&6; }
2856
if test -z "$ac_file"; then
2857
$as_echo "$as_me: failed program was:" >&5
2858
sed 's/^/| /' conftest.$ac_ext >&5
2860
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2861
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2863
See \`config.log' for more details." >&5
2864
$as_echo "$as_me: error: C compiler cannot create executables
2865
See \`config.log' for more details." >&2;}
2866
{ (exit 77); exit 77; }; }; }
2869
ac_exeext=$ac_cv_exeext
2871
# Check that the compiler produces executables we can run. If not, either
2872
# the compiler is broken, or we cross compile.
2873
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874
$as_echo_n "checking whether the C compiler works... " >&6; }
2875
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876
# If not cross compiling, check that we can run a simple program.
2877
if test "$cross_compiling" != yes; then
2878
if { ac_try='./$ac_file'
2879
{ (case "(($ac_try" in
2880
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881
*) ac_try_echo=$ac_try;;
2883
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884
$as_echo "$ac_try_echo") >&5
2885
(eval "$ac_try") 2>&5
2887
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
(exit $ac_status); }; }; then
2891
if test "$cross_compiling" = maybe; then
2894
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2895
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897
If you meant to cross compile, use \`--host'.
2898
See \`config.log' for more details." >&5
2899
$as_echo "$as_me: error: cannot run C compiled programs.
2900
If you meant to cross compile, use \`--host'.
2901
See \`config.log' for more details." >&2;}
2902
{ (exit 1); exit 1; }; }; }
2906
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2907
$as_echo "yes" >&6; }
2909
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2910
ac_clean_files=$ac_clean_files_save
2911
# Check that the compiler produces executables we can run. If not, either
2912
# the compiler is broken, or we cross compile.
2913
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914
$as_echo_n "checking whether we are cross compiling... " >&6; }
2915
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916
$as_echo "$cross_compiling" >&6; }
2918
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919
$as_echo_n "checking for suffix of executables... " >&6; }
2920
if { (ac_try="$ac_link"
2922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923
*) ac_try_echo=$ac_try;;
2925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926
$as_echo "$ac_try_echo") >&5
2927
(eval "$ac_link") 2>&5
2929
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930
(exit $ac_status); }; then
2931
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2932
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933
# work properly (i.e., refer to `conftest.exe'), while it won't with
2935
for ac_file in conftest.exe conftest conftest.*; do
2936
test -f "$ac_file" || continue
2938
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2939
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2946
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948
See \`config.log' for more details." >&5
2949
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950
See \`config.log' for more details." >&2;}
2951
{ (exit 1); exit 1; }; }; }
2954
rm -f conftest$ac_cv_exeext
2955
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956
$as_echo "$ac_cv_exeext" >&6; }
2958
rm -f conftest.$ac_ext
2959
EXEEXT=$ac_cv_exeext
2961
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962
$as_echo_n "checking for suffix of object files... " >&6; }
2963
if test "${ac_cv_objext+set}" = set; then
2964
$as_echo_n "(cached) " >&6
2966
cat >conftest.$ac_ext <<_ACEOF
2969
cat confdefs.h >>conftest.$ac_ext
2970
cat >>conftest.$ac_ext <<_ACEOF
2971
/* end confdefs.h. */
2981
rm -f conftest.o conftest.obj
2982
if { (ac_try="$ac_compile"
2984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985
*) ac_try_echo=$ac_try;;
2987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988
$as_echo "$ac_try_echo") >&5
2989
(eval "$ac_compile") 2>&5
2991
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
(exit $ac_status); }; then
2993
for ac_file in conftest.o conftest.obj conftest.*; do
2994
test -f "$ac_file" || continue;
2996
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2997
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002
$as_echo "$as_me: failed program was:" >&5
3003
sed 's/^/| /' conftest.$ac_ext >&5
3005
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3006
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3008
See \`config.log' for more details." >&5
3009
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3010
See \`config.log' for more details." >&2;}
3011
{ (exit 1); exit 1; }; }; }
3014
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3017
$as_echo "$ac_cv_objext" >&6; }
3018
OBJEXT=$ac_cv_objext
3020
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3021
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3022
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3023
$as_echo_n "(cached) " >&6
3025
cat >conftest.$ac_ext <<_ACEOF
3028
cat confdefs.h >>conftest.$ac_ext
3029
cat >>conftest.$ac_ext <<_ACEOF
3030
/* end confdefs.h. */
3043
rm -f conftest.$ac_objext
3044
if { (ac_try="$ac_compile"
3046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047
*) ac_try_echo=$ac_try;;
3049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050
$as_echo "$ac_try_echo") >&5
3051
(eval "$ac_compile") 2>conftest.er1
3053
grep -v '^ *+' conftest.er1 >conftest.err
3055
cat conftest.err >&5
3056
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); } && {
3058
test -z "$ac_c_werror_flag" ||
3059
test ! -s conftest.err
3060
} && test -s conftest.$ac_objext; then
3063
$as_echo "$as_me: failed program was:" >&5
3064
sed 's/^/| /' conftest.$ac_ext >&5
3069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3073
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3074
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3075
if test $ac_compiler_gnu = yes; then
3080
ac_test_CFLAGS=${CFLAGS+set}
3081
ac_save_CFLAGS=$CFLAGS
3082
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3084
if test "${ac_cv_prog_cc_g+set}" = set; then
3085
$as_echo_n "(cached) " >&6
3087
ac_save_c_werror_flag=$ac_c_werror_flag
3088
ac_c_werror_flag=yes
3091
cat >conftest.$ac_ext <<_ACEOF
3094
cat confdefs.h >>conftest.$ac_ext
3095
cat >>conftest.$ac_ext <<_ACEOF
3096
/* end confdefs.h. */
3106
rm -f conftest.$ac_objext
3107
if { (ac_try="$ac_compile"
3109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110
*) ac_try_echo=$ac_try;;
3112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113
$as_echo "$ac_try_echo") >&5
3114
(eval "$ac_compile") 2>conftest.er1
3116
grep -v '^ *+' conftest.er1 >conftest.err
3118
cat conftest.err >&5
3119
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120
(exit $ac_status); } && {
3121
test -z "$ac_c_werror_flag" ||
3122
test ! -s conftest.err
3123
} && test -s conftest.$ac_objext; then
3126
$as_echo "$as_me: failed program was:" >&5
3127
sed 's/^/| /' conftest.$ac_ext >&5
3130
cat >conftest.$ac_ext <<_ACEOF
3133
cat confdefs.h >>conftest.$ac_ext
3134
cat >>conftest.$ac_ext <<_ACEOF
3135
/* end confdefs.h. */
3145
rm -f conftest.$ac_objext
3146
if { (ac_try="$ac_compile"
3148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149
*) ac_try_echo=$ac_try;;
3151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152
$as_echo "$ac_try_echo") >&5
3153
(eval "$ac_compile") 2>conftest.er1
3155
grep -v '^ *+' conftest.er1 >conftest.err
3157
cat conftest.err >&5
3158
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159
(exit $ac_status); } && {
3160
test -z "$ac_c_werror_flag" ||
3161
test ! -s conftest.err
3162
} && test -s conftest.$ac_objext; then
3165
$as_echo "$as_me: failed program was:" >&5
3166
sed 's/^/| /' conftest.$ac_ext >&5
3168
ac_c_werror_flag=$ac_save_c_werror_flag
3170
cat >conftest.$ac_ext <<_ACEOF
3173
cat confdefs.h >>conftest.$ac_ext
3174
cat >>conftest.$ac_ext <<_ACEOF
3175
/* end confdefs.h. */
3185
rm -f conftest.$ac_objext
3186
if { (ac_try="$ac_compile"
3188
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189
*) ac_try_echo=$ac_try;;
3191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192
$as_echo "$ac_try_echo") >&5
3193
(eval "$ac_compile") 2>conftest.er1
3195
grep -v '^ *+' conftest.er1 >conftest.err
3197
cat conftest.err >&5
3198
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
(exit $ac_status); } && {
3200
test -z "$ac_c_werror_flag" ||
3201
test ! -s conftest.err
3202
} && test -s conftest.$ac_objext; then
3205
$as_echo "$as_me: failed program was:" >&5
3206
sed 's/^/| /' conftest.$ac_ext >&5
3211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218
ac_c_werror_flag=$ac_save_c_werror_flag
3220
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3221
$as_echo "$ac_cv_prog_cc_g" >&6; }
3222
if test "$ac_test_CFLAGS" = set; then
3223
CFLAGS=$ac_save_CFLAGS
3224
elif test $ac_cv_prog_cc_g = yes; then
3225
if test "$GCC" = yes; then
3231
if test "$GCC" = yes; then
3237
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3238
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3239
if test "${ac_cv_prog_cc_c89+set}" = set; then
3240
$as_echo_n "(cached) " >&6
3242
ac_cv_prog_cc_c89=no
3244
cat >conftest.$ac_ext <<_ACEOF
3247
cat confdefs.h >>conftest.$ac_ext
3248
cat >>conftest.$ac_ext <<_ACEOF
3249
/* end confdefs.h. */
3252
#include <sys/types.h>
3253
#include <sys/stat.h>
3254
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3255
struct buf { int x; };
3256
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3257
static char *e (p, i)
3263
static char *f (char * (*g) (char **, int), char **p, ...)
3268
s = g (p, va_arg (v,int));
3273
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3274
function prototypes and stuff, but not '\xHH' hex character constants.
3275
These don't provoke an error unfortunately, instead are silently treated
3276
as 'x'. The following induces an error, until -std is added to get
3277
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3278
array size at least. It's necessary to write '\x00'==0 to get something
3279
that's true only with -std. */
3280
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3282
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3283
inside strings and character constants. */
3285
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3287
int test (int i, double x);
3288
struct s1 {int (*f) (int a);};
3289
struct s2 {int (*f) (double a);};
3290
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3302
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3304
CC="$ac_save_CC $ac_arg"
3305
rm -f conftest.$ac_objext
3306
if { (ac_try="$ac_compile"
3308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309
*) ac_try_echo=$ac_try;;
3311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312
$as_echo "$ac_try_echo") >&5
3313
(eval "$ac_compile") 2>conftest.er1
3315
grep -v '^ *+' conftest.er1 >conftest.err
3317
cat conftest.err >&5
3318
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319
(exit $ac_status); } && {
3320
test -z "$ac_c_werror_flag" ||
3321
test ! -s conftest.err
3322
} && test -s conftest.$ac_objext; then
3323
ac_cv_prog_cc_c89=$ac_arg
3325
$as_echo "$as_me: failed program was:" >&5
3326
sed 's/^/| /' conftest.$ac_ext >&5
3331
rm -f core conftest.err conftest.$ac_objext
3332
test "x$ac_cv_prog_cc_c89" != "xno" && break
3334
rm -f conftest.$ac_ext
3339
case "x$ac_cv_prog_cc_c89" in
3341
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3342
$as_echo "none needed" >&6; } ;;
3344
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3345
$as_echo "unsupported" >&6; } ;;
3347
CC="$CC $ac_cv_prog_cc_c89"
3348
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3354
ac_cpp='$CPP $CPPFLAGS'
3355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361
ac_cpp='$CPP $CPPFLAGS'
3362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3367
# On Suns, sometimes $CPP names a directory.
3368
if test -n "$CPP" && test -d "$CPP"; then
3371
if test -z "$CPP"; then
3372
if test "${ac_cv_prog_CPP+set}" = set; then
3373
$as_echo_n "(cached) " >&6
3375
# Double quotes because CPP needs to be expanded
3376
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379
for ac_c_preproc_warn_flag in '' yes
3381
# Use a header file that comes with gcc, so configuring glibc
3382
# with a fresh cross-compiler works.
3383
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384
# <limits.h> exists even on freestanding compilers.
3385
# On the NeXT, cc -E runs the code through the compiler's parser,
3386
# not just through cpp. "Syntax error" is here to catch this case.
3387
cat >conftest.$ac_ext <<_ACEOF
3390
cat confdefs.h >>conftest.$ac_ext
3391
cat >>conftest.$ac_ext <<_ACEOF
3392
/* end confdefs.h. */
3394
# include <limits.h>
3396
# include <assert.h>
3400
if { (ac_try="$ac_cpp conftest.$ac_ext"
3402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403
*) ac_try_echo=$ac_try;;
3405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406
$as_echo "$ac_try_echo") >&5
3407
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409
grep -v '^ *+' conftest.er1 >conftest.err
3411
cat conftest.err >&5
3412
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413
(exit $ac_status); } >/dev/null && {
3414
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415
test ! -s conftest.err
3419
$as_echo "$as_me: failed program was:" >&5
3420
sed 's/^/| /' conftest.$ac_ext >&5
3422
# Broken: fails on valid input.
3426
rm -f conftest.err conftest.$ac_ext
3428
# OK, works on sane cases. Now check whether nonexistent headers
3429
# can be detected and how.
3430
cat >conftest.$ac_ext <<_ACEOF
3433
cat confdefs.h >>conftest.$ac_ext
3434
cat >>conftest.$ac_ext <<_ACEOF
3435
/* end confdefs.h. */
3436
#include <ac_nonexistent.h>
3438
if { (ac_try="$ac_cpp conftest.$ac_ext"
3440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441
*) ac_try_echo=$ac_try;;
3443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444
$as_echo "$ac_try_echo") >&5
3445
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447
grep -v '^ *+' conftest.er1 >conftest.err
3449
cat conftest.err >&5
3450
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451
(exit $ac_status); } >/dev/null && {
3452
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3453
test ! -s conftest.err
3455
# Broken: success on invalid input.
3458
$as_echo "$as_me: failed program was:" >&5
3459
sed 's/^/| /' conftest.$ac_ext >&5
3461
# Passes both tests.
3466
rm -f conftest.err conftest.$ac_ext
3469
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470
rm -f conftest.err conftest.$ac_ext
3471
if $ac_preproc_ok; then
3483
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3484
$as_echo "$CPP" >&6; }
3486
for ac_c_preproc_warn_flag in '' yes
3488
# Use a header file that comes with gcc, so configuring glibc
3489
# with a fresh cross-compiler works.
3490
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491
# <limits.h> exists even on freestanding compilers.
3492
# On the NeXT, cc -E runs the code through the compiler's parser,
3493
# not just through cpp. "Syntax error" is here to catch this case.
3494
cat >conftest.$ac_ext <<_ACEOF
3497
cat confdefs.h >>conftest.$ac_ext
3498
cat >>conftest.$ac_ext <<_ACEOF
3499
/* end confdefs.h. */
3501
# include <limits.h>
3503
# include <assert.h>
3507
if { (ac_try="$ac_cpp conftest.$ac_ext"
3509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510
*) ac_try_echo=$ac_try;;
3512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513
$as_echo "$ac_try_echo") >&5
3514
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516
grep -v '^ *+' conftest.er1 >conftest.err
3518
cat conftest.err >&5
3519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
(exit $ac_status); } >/dev/null && {
3521
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522
test ! -s conftest.err
3526
$as_echo "$as_me: failed program was:" >&5
3527
sed 's/^/| /' conftest.$ac_ext >&5
3529
# Broken: fails on valid input.
3533
rm -f conftest.err conftest.$ac_ext
3535
# OK, works on sane cases. Now check whether nonexistent headers
3536
# can be detected and how.
3537
cat >conftest.$ac_ext <<_ACEOF
3540
cat confdefs.h >>conftest.$ac_ext
3541
cat >>conftest.$ac_ext <<_ACEOF
3542
/* end confdefs.h. */
3543
#include <ac_nonexistent.h>
3545
if { (ac_try="$ac_cpp conftest.$ac_ext"
3547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548
*) ac_try_echo=$ac_try;;
3550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3551
$as_echo "$ac_try_echo") >&5
3552
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554
grep -v '^ *+' conftest.er1 >conftest.err
3556
cat conftest.err >&5
3557
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
(exit $ac_status); } >/dev/null && {
3559
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3560
test ! -s conftest.err
3562
# Broken: success on invalid input.
3565
$as_echo "$as_me: failed program was:" >&5
3566
sed 's/^/| /' conftest.$ac_ext >&5
3568
# Passes both tests.
3573
rm -f conftest.err conftest.$ac_ext
3576
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577
rm -f conftest.err conftest.$ac_ext
3578
if $ac_preproc_ok; then
3581
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3582
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3584
See \`config.log' for more details." >&5
3585
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3586
See \`config.log' for more details." >&2;}
3587
{ (exit 1); exit 1; }; }; }
3591
ac_cpp='$CPP $CPPFLAGS'
3592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3598
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3599
if test "${ac_cv_path_GREP+set}" = set; then
3600
$as_echo_n "(cached) " >&6
3602
if test -z "$GREP"; then
3603
ac_path_GREP_found=false
3604
# Loop through the user's path and test for each of PROGNAME-LIST
3605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3609
test -z "$as_dir" && as_dir=.
3610
for ac_prog in grep ggrep; do
3611
for ac_exec_ext in '' $ac_executable_extensions; do
3612
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3613
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3614
# Check for GNU ac_path_GREP and select it if it is found.
3615
# Check for GNU $ac_path_GREP
3616
case `"$ac_path_GREP" --version 2>&1` in
3618
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3621
$as_echo_n 0123456789 >"conftest.in"
3624
cat "conftest.in" "conftest.in" >"conftest.tmp"
3625
mv "conftest.tmp" "conftest.in"
3626
cp "conftest.in" "conftest.nl"
3627
$as_echo 'GREP' >> "conftest.nl"
3628
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3629
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3630
ac_count=`expr $ac_count + 1`
3631
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632
# Best one so far, save it but keep looking for a better one
3633
ac_cv_path_GREP="$ac_path_GREP"
3634
ac_path_GREP_max=$ac_count
3636
# 10*(2^10) chars as input seems more than enough
3637
test $ac_count -gt 10 && break
3639
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3642
$ac_path_GREP_found && break 3
3647
if test -z "$ac_cv_path_GREP"; then
3648
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3649
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3650
{ (exit 1); exit 1; }; }
3653
ac_cv_path_GREP=$GREP
3657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3658
$as_echo "$ac_cv_path_GREP" >&6; }
3659
GREP="$ac_cv_path_GREP"
3662
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3663
$as_echo_n "checking for egrep... " >&6; }
3664
if test "${ac_cv_path_EGREP+set}" = set; then
3665
$as_echo_n "(cached) " >&6
3667
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668
then ac_cv_path_EGREP="$GREP -E"
3670
if test -z "$EGREP"; then
3671
ac_path_EGREP_found=false
3672
# Loop through the user's path and test for each of PROGNAME-LIST
3673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3677
test -z "$as_dir" && as_dir=.
3678
for ac_prog in egrep; do
3679
for ac_exec_ext in '' $ac_executable_extensions; do
3680
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3681
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3682
# Check for GNU ac_path_EGREP and select it if it is found.
3683
# Check for GNU $ac_path_EGREP
3684
case `"$ac_path_EGREP" --version 2>&1` in
3686
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3689
$as_echo_n 0123456789 >"conftest.in"
3692
cat "conftest.in" "conftest.in" >"conftest.tmp"
3693
mv "conftest.tmp" "conftest.in"
3694
cp "conftest.in" "conftest.nl"
3695
$as_echo 'EGREP' >> "conftest.nl"
3696
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698
ac_count=`expr $ac_count + 1`
3699
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3700
# Best one so far, save it but keep looking for a better one
3701
ac_cv_path_EGREP="$ac_path_EGREP"
3702
ac_path_EGREP_max=$ac_count
3704
# 10*(2^10) chars as input seems more than enough
3705
test $ac_count -gt 10 && break
3707
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3710
$ac_path_EGREP_found && break 3
3715
if test -z "$ac_cv_path_EGREP"; then
3716
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718
{ (exit 1); exit 1; }; }
3721
ac_cv_path_EGREP=$EGREP
3726
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3727
$as_echo "$ac_cv_path_EGREP" >&6; }
3728
EGREP="$ac_cv_path_EGREP"
3731
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3732
$as_echo_n "checking for ANSI C header files... " >&6; }
3733
if test "${ac_cv_header_stdc+set}" = set; then
3734
$as_echo_n "(cached) " >&6
3736
cat >conftest.$ac_ext <<_ACEOF
3739
cat confdefs.h >>conftest.$ac_ext
3740
cat >>conftest.$ac_ext <<_ACEOF
3741
/* end confdefs.h. */
3755
rm -f conftest.$ac_objext
3756
if { (ac_try="$ac_compile"
3758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759
*) ac_try_echo=$ac_try;;
3761
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762
$as_echo "$ac_try_echo") >&5
3763
(eval "$ac_compile") 2>conftest.er1
3765
grep -v '^ *+' conftest.er1 >conftest.err
3767
cat conftest.err >&5
3768
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
(exit $ac_status); } && {
3770
test -z "$ac_c_werror_flag" ||
3771
test ! -s conftest.err
3772
} && test -s conftest.$ac_objext; then
3773
ac_cv_header_stdc=yes
3775
$as_echo "$as_me: failed program was:" >&5
3776
sed 's/^/| /' conftest.$ac_ext >&5
3778
ac_cv_header_stdc=no
3781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783
if test $ac_cv_header_stdc = yes; then
3784
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785
cat >conftest.$ac_ext <<_ACEOF
3788
cat confdefs.h >>conftest.$ac_ext
3789
cat >>conftest.$ac_ext <<_ACEOF
3790
/* end confdefs.h. */
3794
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795
$EGREP "memchr" >/dev/null 2>&1; then
3798
ac_cv_header_stdc=no
3804
if test $ac_cv_header_stdc = yes; then
3805
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3806
cat >conftest.$ac_ext <<_ACEOF
3809
cat confdefs.h >>conftest.$ac_ext
3810
cat >>conftest.$ac_ext <<_ACEOF
3811
/* end confdefs.h. */
3815
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816
$EGREP "free" >/dev/null 2>&1; then
3819
ac_cv_header_stdc=no
3825
if test $ac_cv_header_stdc = yes; then
3826
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3827
if test "$cross_compiling" = yes; then
3830
cat >conftest.$ac_ext <<_ACEOF
3833
cat confdefs.h >>conftest.$ac_ext
3834
cat >>conftest.$ac_ext <<_ACEOF
3835
/* end confdefs.h. */
3838
#if ((' ' & 0x0FF) == 0x020)
3839
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3840
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3842
# define ISLOWER(c) \
3843
(('a' <= (c) && (c) <= 'i') \
3844
|| ('j' <= (c) && (c) <= 'r') \
3845
|| ('s' <= (c) && (c) <= 'z'))
3846
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3849
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3854
for (i = 0; i < 256; i++)
3855
if (XOR (islower (i), ISLOWER (i))
3856
|| toupper (i) != TOUPPER (i))
3861
rm -f conftest$ac_exeext
3862
if { (ac_try="$ac_link"
3864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865
*) ac_try_echo=$ac_try;;
3867
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868
$as_echo "$ac_try_echo") >&5
3869
(eval "$ac_link") 2>&5
3871
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3873
{ (case "(($ac_try" in
3874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875
*) ac_try_echo=$ac_try;;
3877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3878
$as_echo "$ac_try_echo") >&5
3879
(eval "$ac_try") 2>&5
3881
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882
(exit $ac_status); }; }; then
3885
$as_echo "$as_me: program exited with status $ac_status" >&5
3886
$as_echo "$as_me: failed program was:" >&5
3887
sed 's/^/| /' conftest.$ac_ext >&5
3890
ac_cv_header_stdc=no
3892
rm -rf conftest.dSYM
3893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3900
$as_echo "$ac_cv_header_stdc" >&6; }
3901
if test $ac_cv_header_stdc = yes; then
3903
cat >>confdefs.h <<\_ACEOF
3904
#define STDC_HEADERS 1
3909
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3920
inttypes.h stdint.h unistd.h
3922
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3923
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3924
$as_echo_n "checking for $ac_header... " >&6; }
3925
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3926
$as_echo_n "(cached) " >&6
3928
cat >conftest.$ac_ext <<_ACEOF
3931
cat confdefs.h >>conftest.$ac_ext
3932
cat >>conftest.$ac_ext <<_ACEOF
3933
/* end confdefs.h. */
3934
$ac_includes_default
3936
#include <$ac_header>
3938
rm -f conftest.$ac_objext
3939
if { (ac_try="$ac_compile"
3941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942
*) ac_try_echo=$ac_try;;
3944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945
$as_echo "$ac_try_echo") >&5
3946
(eval "$ac_compile") 2>conftest.er1
3948
grep -v '^ *+' conftest.er1 >conftest.err
3950
cat conftest.err >&5
3951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952
(exit $ac_status); } && {
3953
test -z "$ac_c_werror_flag" ||
3954
test ! -s conftest.err
3955
} && test -s conftest.$ac_objext; then
3956
eval "$as_ac_Header=yes"
3958
$as_echo "$as_me: failed program was:" >&5
3959
sed 's/^/| /' conftest.$ac_ext >&5
3961
eval "$as_ac_Header=no"
3964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
ac_res=`eval 'as_val=${'$as_ac_Header'}
3967
$as_echo "$as_val"'`
3968
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3969
$as_echo "$ac_res" >&6; }
3970
as_val=`eval 'as_val=${'$as_ac_Header'}
3971
$as_echo "$as_val"'`
3972
if test "x$as_val" = x""yes; then
3973
cat >>confdefs.h <<_ACEOF
3974
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983
if test "${ac_cv_header_minix_config_h+set}" = set; then
3984
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3985
$as_echo_n "checking for minix/config.h... " >&6; }
3986
if test "${ac_cv_header_minix_config_h+set}" = set; then
3987
$as_echo_n "(cached) " >&6
3989
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3990
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3992
# Is the header compilable?
3993
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3994
$as_echo_n "checking minix/config.h usability... " >&6; }
3995
cat >conftest.$ac_ext <<_ACEOF
3998
cat confdefs.h >>conftest.$ac_ext
3999
cat >>conftest.$ac_ext <<_ACEOF
4000
/* end confdefs.h. */
4001
$ac_includes_default
4002
#include <minix/config.h>
4004
rm -f conftest.$ac_objext
4005
if { (ac_try="$ac_compile"
4007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008
*) ac_try_echo=$ac_try;;
4010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4011
$as_echo "$ac_try_echo") >&5
4012
(eval "$ac_compile") 2>conftest.er1
4014
grep -v '^ *+' conftest.er1 >conftest.err
4016
cat conftest.err >&5
4017
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018
(exit $ac_status); } && {
4019
test -z "$ac_c_werror_flag" ||
4020
test ! -s conftest.err
4021
} && test -s conftest.$ac_objext; then
4022
ac_header_compiler=yes
4024
$as_echo "$as_me: failed program was:" >&5
4025
sed 's/^/| /' conftest.$ac_ext >&5
4027
ac_header_compiler=no
4030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4032
$as_echo "$ac_header_compiler" >&6; }
4034
# Is the header present?
4035
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4036
$as_echo_n "checking minix/config.h presence... " >&6; }
4037
cat >conftest.$ac_ext <<_ACEOF
4040
cat confdefs.h >>conftest.$ac_ext
4041
cat >>conftest.$ac_ext <<_ACEOF
4042
/* end confdefs.h. */
4043
#include <minix/config.h>
4045
if { (ac_try="$ac_cpp conftest.$ac_ext"
4047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048
*) ac_try_echo=$ac_try;;
4050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051
$as_echo "$ac_try_echo") >&5
4052
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4054
grep -v '^ *+' conftest.er1 >conftest.err
4056
cat conftest.err >&5
4057
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058
(exit $ac_status); } >/dev/null && {
4059
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060
test ! -s conftest.err
4062
ac_header_preproc=yes
4064
$as_echo "$as_me: failed program was:" >&5
4065
sed 's/^/| /' conftest.$ac_ext >&5
4067
ac_header_preproc=no
4070
rm -f conftest.err conftest.$ac_ext
4071
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4072
$as_echo "$ac_header_preproc" >&6; }
4074
# So? What about this header?
4075
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4077
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4078
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4079
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4080
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4081
ac_header_preproc=yes
4084
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4085
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4086
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4087
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4088
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4089
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4090
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4091
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4092
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4093
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4094
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4095
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4099
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4100
$as_echo_n "checking for minix/config.h... " >&6; }
4101
if test "${ac_cv_header_minix_config_h+set}" = set; then
4102
$as_echo_n "(cached) " >&6
4104
ac_cv_header_minix_config_h=$ac_header_preproc
4106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4107
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4110
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4117
if test "$MINIX" = yes; then
4119
cat >>confdefs.h <<\_ACEOF
4120
#define _POSIX_SOURCE 1
4124
cat >>confdefs.h <<\_ACEOF
4125
#define _POSIX_1_SOURCE 2
4129
cat >>confdefs.h <<\_ACEOF
4137
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4138
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4139
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4140
$as_echo_n "(cached) " >&6
4142
cat >conftest.$ac_ext <<_ACEOF
4145
cat confdefs.h >>conftest.$ac_ext
4146
cat >>conftest.$ac_ext <<_ACEOF
4147
/* end confdefs.h. */
4149
# define __EXTENSIONS__ 1
4150
$ac_includes_default
4159
rm -f conftest.$ac_objext
4160
if { (ac_try="$ac_compile"
4162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163
*) ac_try_echo=$ac_try;;
4165
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166
$as_echo "$ac_try_echo") >&5
4167
(eval "$ac_compile") 2>conftest.er1
4169
grep -v '^ *+' conftest.er1 >conftest.err
4171
cat conftest.err >&5
4172
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
(exit $ac_status); } && {
4174
test -z "$ac_c_werror_flag" ||
4175
test ! -s conftest.err
4176
} && test -s conftest.$ac_objext; then
4177
ac_cv_safe_to_define___extensions__=yes
4179
$as_echo "$as_me: failed program was:" >&5
4180
sed 's/^/| /' conftest.$ac_ext >&5
4182
ac_cv_safe_to_define___extensions__=no
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4188
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4189
test $ac_cv_safe_to_define___extensions__ = yes &&
4190
cat >>confdefs.h <<\_ACEOF
4191
#define __EXTENSIONS__ 1
4194
cat >>confdefs.h <<\_ACEOF
4195
#define _ALL_SOURCE 1
4198
cat >>confdefs.h <<\_ACEOF
4199
#define _GNU_SOURCE 1
4202
cat >>confdefs.h <<\_ACEOF
4203
#define _POSIX_PTHREAD_SEMANTICS 1
4206
cat >>confdefs.h <<\_ACEOF
4207
#define _TANDEM_SOURCE 1
4211
am__api_version='1.11'
2362
4213
# Find a good install program. We prefer a C program (faster),
2363
4214
# so one script is as good as another. But avoid the broken or
15280
GETTEXT_PACKAGE=rrdtool
15283
cat >>confdefs.h <<_ACEOF
15284
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15290
for ac_header in locale.h
15292
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15295
$as_echo_n "checking for $ac_header... " >&6; }
15296
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297
$as_echo_n "(cached) " >&6
15299
ac_res=`eval 'as_val=${'$as_ac_Header'}
15300
$as_echo "$as_val"'`
15301
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15302
$as_echo "$ac_res" >&6; }
15304
# Is the header compilable?
15305
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15306
$as_echo_n "checking $ac_header usability... " >&6; }
15307
cat >conftest.$ac_ext <<_ACEOF
15310
cat confdefs.h >>conftest.$ac_ext
15311
cat >>conftest.$ac_ext <<_ACEOF
15312
/* end confdefs.h. */
15313
$ac_includes_default
15314
#include <$ac_header>
15316
rm -f conftest.$ac_objext
15317
if { (ac_try="$ac_compile"
15318
case "(($ac_try" in
15319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320
*) ac_try_echo=$ac_try;;
15322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15323
$as_echo "$ac_try_echo") >&5
15324
(eval "$ac_compile") 2>conftest.er1
15326
grep -v '^ *+' conftest.er1 >conftest.err
15328
cat conftest.err >&5
15329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330
(exit $ac_status); } && {
15331
test -z "$ac_c_werror_flag" ||
15332
test ! -s conftest.err
15333
} && test -s conftest.$ac_objext; then
15334
ac_header_compiler=yes
15336
$as_echo "$as_me: failed program was:" >&5
15337
sed 's/^/| /' conftest.$ac_ext >&5
15339
ac_header_compiler=no
15342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344
$as_echo "$ac_header_compiler" >&6; }
15346
# Is the header present?
15347
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348
$as_echo_n "checking $ac_header presence... " >&6; }
15349
cat >conftest.$ac_ext <<_ACEOF
15352
cat confdefs.h >>conftest.$ac_ext
15353
cat >>conftest.$ac_ext <<_ACEOF
15354
/* end confdefs.h. */
15355
#include <$ac_header>
15357
if { (ac_try="$ac_cpp conftest.$ac_ext"
15358
case "(($ac_try" in
15359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360
*) ac_try_echo=$ac_try;;
15362
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15363
$as_echo "$ac_try_echo") >&5
15364
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15366
grep -v '^ *+' conftest.er1 >conftest.err
15368
cat conftest.err >&5
15369
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370
(exit $ac_status); } >/dev/null && {
15371
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15372
test ! -s conftest.err
15374
ac_header_preproc=yes
15376
$as_echo "$as_me: failed program was:" >&5
15377
sed 's/^/| /' conftest.$ac_ext >&5
15379
ac_header_preproc=no
15382
rm -f conftest.err conftest.$ac_ext
15383
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384
$as_echo "$ac_header_preproc" >&6; }
15386
# So? What about this header?
15387
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15389
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393
ac_header_preproc=yes
15396
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15403
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15404
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15412
$as_echo_n "checking for $ac_header... " >&6; }
15413
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15414
$as_echo_n "(cached) " >&6
15416
eval "$as_ac_Header=\$ac_header_preproc"
15418
ac_res=`eval 'as_val=${'$as_ac_Header'}
15419
$as_echo "$as_val"'`
15420
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15421
$as_echo "$ac_res" >&6; }
15424
as_val=`eval 'as_val=${'$as_ac_Header'}
15425
$as_echo "$as_val"'`
15426
if test "x$as_val" = x""yes; then
15427
cat >>confdefs.h <<_ACEOF
15428
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15435
if test $ac_cv_header_locale_h = yes; then
15436
{ $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15437
$as_echo_n "checking for LC_MESSAGES... " >&6; }
15438
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15439
$as_echo_n "(cached) " >&6
15441
cat >conftest.$ac_ext <<_ACEOF
15444
cat confdefs.h >>conftest.$ac_ext
15445
cat >>conftest.$ac_ext <<_ACEOF
15446
/* end confdefs.h. */
15447
#include <locale.h>
15456
rm -f conftest.$ac_objext conftest$ac_exeext
15457
if { (ac_try="$ac_link"
15458
case "(($ac_try" in
15459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460
*) ac_try_echo=$ac_try;;
15462
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463
$as_echo "$ac_try_echo") >&5
15464
(eval "$ac_link") 2>conftest.er1
15466
grep -v '^ *+' conftest.er1 >conftest.err
15468
cat conftest.err >&5
15469
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470
(exit $ac_status); } && {
15471
test -z "$ac_c_werror_flag" ||
15472
test ! -s conftest.err
15473
} && test -s conftest$ac_exeext && {
15474
test "$cross_compiling" = yes ||
15475
$as_test_x conftest$ac_exeext
15477
am_cv_val_LC_MESSAGES=yes
15479
$as_echo "$as_me: failed program was:" >&5
15480
sed 's/^/| /' conftest.$ac_ext >&5
15482
am_cv_val_LC_MESSAGES=no
15485
rm -rf conftest.dSYM
15486
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15487
conftest$ac_exeext conftest.$ac_ext
15489
{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15490
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15491
if test $am_cv_val_LC_MESSAGES = yes; then
15493
cat >>confdefs.h <<\_ACEOF
15494
#define HAVE_LC_MESSAGES 1
15502
gt_cv_have_gettext=no
15508
if test "${ac_cv_header_libintl_h+set}" = set; then
15509
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15510
$as_echo_n "checking for libintl.h... " >&6; }
15511
if test "${ac_cv_header_libintl_h+set}" = set; then
15512
$as_echo_n "(cached) " >&6
15514
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15515
$as_echo "$ac_cv_header_libintl_h" >&6; }
15517
# Is the header compilable?
15518
{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
15519
$as_echo_n "checking libintl.h usability... " >&6; }
15520
cat >conftest.$ac_ext <<_ACEOF
15523
cat confdefs.h >>conftest.$ac_ext
15524
cat >>conftest.$ac_ext <<_ACEOF
15525
/* end confdefs.h. */
15526
$ac_includes_default
15527
#include <libintl.h>
15529
rm -f conftest.$ac_objext
15530
if { (ac_try="$ac_compile"
15531
case "(($ac_try" in
15532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533
*) ac_try_echo=$ac_try;;
15535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536
$as_echo "$ac_try_echo") >&5
15537
(eval "$ac_compile") 2>conftest.er1
15539
grep -v '^ *+' conftest.er1 >conftest.err
15541
cat conftest.err >&5
15542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543
(exit $ac_status); } && {
15544
test -z "$ac_c_werror_flag" ||
15545
test ! -s conftest.err
15546
} && test -s conftest.$ac_objext; then
15547
ac_header_compiler=yes
15549
$as_echo "$as_me: failed program was:" >&5
15550
sed 's/^/| /' conftest.$ac_ext >&5
15552
ac_header_compiler=no
15555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557
$as_echo "$ac_header_compiler" >&6; }
15559
# Is the header present?
15560
{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
15561
$as_echo_n "checking libintl.h presence... " >&6; }
15562
cat >conftest.$ac_ext <<_ACEOF
15565
cat confdefs.h >>conftest.$ac_ext
15566
cat >>conftest.$ac_ext <<_ACEOF
15567
/* end confdefs.h. */
15568
#include <libintl.h>
15570
if { (ac_try="$ac_cpp conftest.$ac_ext"
15571
case "(($ac_try" in
15572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573
*) ac_try_echo=$ac_try;;
15575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576
$as_echo "$ac_try_echo") >&5
15577
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15579
grep -v '^ *+' conftest.er1 >conftest.err
15581
cat conftest.err >&5
15582
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583
(exit $ac_status); } >/dev/null && {
15584
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15585
test ! -s conftest.err
15587
ac_header_preproc=yes
15589
$as_echo "$as_me: failed program was:" >&5
15590
sed 's/^/| /' conftest.$ac_ext >&5
15592
ac_header_preproc=no
15595
rm -f conftest.err conftest.$ac_ext
15596
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597
$as_echo "$ac_header_preproc" >&6; }
15599
# So? What about this header?
15600
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15602
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15603
$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15604
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15605
$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15606
ac_header_preproc=yes
15609
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15610
$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15611
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15612
$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15613
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15614
$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15615
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
15616
$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15617
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15618
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15619
{ $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15620
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15624
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
15625
$as_echo_n "checking for libintl.h... " >&6; }
15626
if test "${ac_cv_header_libintl_h+set}" = set; then
15627
$as_echo_n "(cached) " >&6
15629
ac_cv_header_libintl_h=$ac_header_preproc
15631
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15632
$as_echo "$ac_cv_header_libintl_h" >&6; }
15635
if test "x$ac_cv_header_libintl_h" = x""yes; then
15636
gt_cv_func_dgettext_libintl="no"
15637
libintl_extra_libs=""
15640
# First check in libc
15642
{ $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
15643
$as_echo_n "checking for ngettext in libc... " >&6; }
15644
if test "${gt_cv_func_ngettext_libc+set}" = set; then
15645
$as_echo_n "(cached) " >&6
15647
cat >conftest.$ac_ext <<_ACEOF
15650
cat confdefs.h >>conftest.$ac_ext
15651
cat >>conftest.$ac_ext <<_ACEOF
15652
/* end confdefs.h. */
15654
#include <libintl.h>
15659
return !ngettext ("","", 1)
15664
rm -f conftest.$ac_objext conftest$ac_exeext
15665
if { (ac_try="$ac_link"
15666
case "(($ac_try" in
15667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668
*) ac_try_echo=$ac_try;;
15670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15671
$as_echo "$ac_try_echo") >&5
15672
(eval "$ac_link") 2>conftest.er1
15674
grep -v '^ *+' conftest.er1 >conftest.err
15676
cat conftest.err >&5
15677
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678
(exit $ac_status); } && {
15679
test -z "$ac_c_werror_flag" ||
15680
test ! -s conftest.err
15681
} && test -s conftest$ac_exeext && {
15682
test "$cross_compiling" = yes ||
15683
$as_test_x conftest$ac_exeext
15685
gt_cv_func_ngettext_libc=yes
15687
$as_echo "$as_me: failed program was:" >&5
15688
sed 's/^/| /' conftest.$ac_ext >&5
15690
gt_cv_func_ngettext_libc=no
15693
rm -rf conftest.dSYM
15694
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695
conftest$ac_exeext conftest.$ac_ext
15698
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
15699
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
15701
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15702
{ $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
15703
$as_echo_n "checking for dgettext in libc... " >&6; }
15704
if test "${gt_cv_func_dgettext_libc+set}" = set; then
15705
$as_echo_n "(cached) " >&6
15707
cat >conftest.$ac_ext <<_ACEOF
15710
cat confdefs.h >>conftest.$ac_ext
15711
cat >>conftest.$ac_ext <<_ACEOF
15712
/* end confdefs.h. */
15714
#include <libintl.h>
15719
return !dgettext ("","")
15724
rm -f conftest.$ac_objext conftest$ac_exeext
15725
if { (ac_try="$ac_link"
15726
case "(($ac_try" in
15727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728
*) ac_try_echo=$ac_try;;
15730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15731
$as_echo "$ac_try_echo") >&5
15732
(eval "$ac_link") 2>conftest.er1
15734
grep -v '^ *+' conftest.er1 >conftest.err
15736
cat conftest.err >&5
15737
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738
(exit $ac_status); } && {
15739
test -z "$ac_c_werror_flag" ||
15740
test ! -s conftest.err
15741
} && test -s conftest$ac_exeext && {
15742
test "$cross_compiling" = yes ||
15743
$as_test_x conftest$ac_exeext
15745
gt_cv_func_dgettext_libc=yes
15747
$as_echo "$as_me: failed program was:" >&5
15748
sed 's/^/| /' conftest.$ac_ext >&5
15750
gt_cv_func_dgettext_libc=no
15753
rm -rf conftest.dSYM
15754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755
conftest$ac_exeext conftest.$ac_ext
15758
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
15759
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
15762
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15764
for ac_func in bind_textdomain_codeset
15766
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15768
$as_echo_n "checking for $ac_func... " >&6; }
15769
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15770
$as_echo_n "(cached) " >&6
15772
cat >conftest.$ac_ext <<_ACEOF
15775
cat confdefs.h >>conftest.$ac_ext
15776
cat >>conftest.$ac_ext <<_ACEOF
15777
/* end confdefs.h. */
15778
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15779
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15780
#define $ac_func innocuous_$ac_func
15782
/* System header to define __stub macros and hopefully few prototypes,
15783
which can conflict with char $ac_func (); below.
15784
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15785
<limits.h> exists even on freestanding compilers. */
15788
# include <limits.h>
15790
# include <assert.h>
15795
/* Override any GCC internal prototype to avoid an error.
15796
Use char because int might match the return type of a GCC
15797
builtin and then its argument prototype would still apply. */
15802
/* The GNU C library defines this for functions which it implements
15803
to always fail with ENOSYS. Some functions are actually named
15804
something starting with __ and the normal name is an alias. */
15805
#if defined __stub_$ac_func || defined __stub___$ac_func
15812
return $ac_func ();
15817
rm -f conftest.$ac_objext conftest$ac_exeext
15818
if { (ac_try="$ac_link"
15819
case "(($ac_try" in
15820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821
*) ac_try_echo=$ac_try;;
15823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15824
$as_echo "$ac_try_echo") >&5
15825
(eval "$ac_link") 2>conftest.er1
15827
grep -v '^ *+' conftest.er1 >conftest.err
15829
cat conftest.err >&5
15830
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831
(exit $ac_status); } && {
15832
test -z "$ac_c_werror_flag" ||
15833
test ! -s conftest.err
15834
} && test -s conftest$ac_exeext && {
15835
test "$cross_compiling" = yes ||
15836
$as_test_x conftest$ac_exeext
15838
eval "$as_ac_var=yes"
15840
$as_echo "$as_me: failed program was:" >&5
15841
sed 's/^/| /' conftest.$ac_ext >&5
15843
eval "$as_ac_var=no"
15846
rm -rf conftest.dSYM
15847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15848
conftest$ac_exeext conftest.$ac_ext
15850
ac_res=`eval 'as_val=${'$as_ac_var'}
15851
$as_echo "$as_val"'`
15852
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15853
$as_echo "$ac_res" >&6; }
15854
as_val=`eval 'as_val=${'$as_ac_var'}
15855
$as_echo "$as_val"'`
15856
if test "x$as_val" = x""yes; then
15857
cat >>confdefs.h <<_ACEOF
15858
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867
# If we don't have everything we want, check in libintl
15869
if test "$gt_cv_func_dgettext_libc" != "yes" \
15870
|| test "$gt_cv_func_ngettext_libc" != "yes" \
15871
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15873
{ $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
15874
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15875
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
15876
$as_echo_n "(cached) " >&6
15878
ac_check_lib_save_LIBS=$LIBS
15879
LIBS="-lintl $LIBS"
15880
cat >conftest.$ac_ext <<_ACEOF
15883
cat confdefs.h >>conftest.$ac_ext
15884
cat >>conftest.$ac_ext <<_ACEOF
15885
/* end confdefs.h. */
15887
/* Override any GCC internal prototype to avoid an error.
15888
Use char because int might match the return type of a GCC
15889
builtin and then its argument prototype would still apply. */
15893
char bindtextdomain ();
15897
return bindtextdomain ();
15902
rm -f conftest.$ac_objext conftest$ac_exeext
15903
if { (ac_try="$ac_link"
15904
case "(($ac_try" in
15905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906
*) ac_try_echo=$ac_try;;
15908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909
$as_echo "$ac_try_echo") >&5
15910
(eval "$ac_link") 2>conftest.er1
15912
grep -v '^ *+' conftest.er1 >conftest.err
15914
cat conftest.err >&5
15915
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916
(exit $ac_status); } && {
15917
test -z "$ac_c_werror_flag" ||
15918
test ! -s conftest.err
15919
} && test -s conftest$ac_exeext && {
15920
test "$cross_compiling" = yes ||
15921
$as_test_x conftest$ac_exeext
15923
ac_cv_lib_intl_bindtextdomain=yes
15925
$as_echo "$as_me: failed program was:" >&5
15926
sed 's/^/| /' conftest.$ac_ext >&5
15928
ac_cv_lib_intl_bindtextdomain=no
15931
rm -rf conftest.dSYM
15932
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15933
conftest$ac_exeext conftest.$ac_ext
15934
LIBS=$ac_check_lib_save_LIBS
15936
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
15937
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15938
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
15939
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
15940
$as_echo_n "checking for ngettext in -lintl... " >&6; }
15941
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
15942
$as_echo_n "(cached) " >&6
15944
ac_check_lib_save_LIBS=$LIBS
15945
LIBS="-lintl $LIBS"
15946
cat >conftest.$ac_ext <<_ACEOF
15949
cat confdefs.h >>conftest.$ac_ext
15950
cat >>conftest.$ac_ext <<_ACEOF
15951
/* end confdefs.h. */
15953
/* Override any GCC internal prototype to avoid an error.
15954
Use char because int might match the return type of a GCC
15955
builtin and then its argument prototype would still apply. */
15963
return ngettext ();
15968
rm -f conftest.$ac_objext conftest$ac_exeext
15969
if { (ac_try="$ac_link"
15970
case "(($ac_try" in
15971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972
*) ac_try_echo=$ac_try;;
15974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15975
$as_echo "$ac_try_echo") >&5
15976
(eval "$ac_link") 2>conftest.er1
15978
grep -v '^ *+' conftest.er1 >conftest.err
15980
cat conftest.err >&5
15981
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982
(exit $ac_status); } && {
15983
test -z "$ac_c_werror_flag" ||
15984
test ! -s conftest.err
15985
} && test -s conftest$ac_exeext && {
15986
test "$cross_compiling" = yes ||
15987
$as_test_x conftest$ac_exeext
15989
ac_cv_lib_intl_ngettext=yes
15991
$as_echo "$as_me: failed program was:" >&5
15992
sed 's/^/| /' conftest.$ac_ext >&5
15994
ac_cv_lib_intl_ngettext=no
15997
rm -rf conftest.dSYM
15998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999
conftest$ac_exeext conftest.$ac_ext
16000
LIBS=$ac_check_lib_save_LIBS
16002
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16003
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16004
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16005
{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16006
$as_echo_n "checking for dgettext in -lintl... " >&6; }
16007
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16008
$as_echo_n "(cached) " >&6
16010
ac_check_lib_save_LIBS=$LIBS
16011
LIBS="-lintl $LIBS"
16012
cat >conftest.$ac_ext <<_ACEOF
16015
cat confdefs.h >>conftest.$ac_ext
16016
cat >>conftest.$ac_ext <<_ACEOF
16017
/* end confdefs.h. */
16019
/* Override any GCC internal prototype to avoid an error.
16020
Use char because int might match the return type of a GCC
16021
builtin and then its argument prototype would still apply. */
16029
return dgettext ();
16034
rm -f conftest.$ac_objext conftest$ac_exeext
16035
if { (ac_try="$ac_link"
16036
case "(($ac_try" in
16037
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038
*) ac_try_echo=$ac_try;;
16040
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041
$as_echo "$ac_try_echo") >&5
16042
(eval "$ac_link") 2>conftest.er1
16044
grep -v '^ *+' conftest.er1 >conftest.err
16046
cat conftest.err >&5
16047
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
(exit $ac_status); } && {
16049
test -z "$ac_c_werror_flag" ||
16050
test ! -s conftest.err
16051
} && test -s conftest$ac_exeext && {
16052
test "$cross_compiling" = yes ||
16053
$as_test_x conftest$ac_exeext
16055
ac_cv_lib_intl_dgettext=yes
16057
$as_echo "$as_me: failed program was:" >&5
16058
sed 's/^/| /' conftest.$ac_ext >&5
16060
ac_cv_lib_intl_dgettext=no
16063
rm -rf conftest.dSYM
16064
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065
conftest$ac_exeext conftest.$ac_ext
16066
LIBS=$ac_check_lib_save_LIBS
16068
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16069
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16070
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
16071
gt_cv_func_dgettext_libintl=yes
16079
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16080
{ $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
16081
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
16082
{ $as_echo "$as_me:$LINENO: result: " >&5
16084
{ $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
16085
$as_echo_n "checking for ngettext in -lintl... " >&6; }
16086
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
16087
$as_echo_n "(cached) " >&6
16089
ac_check_lib_save_LIBS=$LIBS
16090
LIBS="-lintl -liconv $LIBS"
16091
cat >conftest.$ac_ext <<_ACEOF
16094
cat confdefs.h >>conftest.$ac_ext
16095
cat >>conftest.$ac_ext <<_ACEOF
16096
/* end confdefs.h. */
16098
/* Override any GCC internal prototype to avoid an error.
16099
Use char because int might match the return type of a GCC
16100
builtin and then its argument prototype would still apply. */
16108
return ngettext ();
16113
rm -f conftest.$ac_objext conftest$ac_exeext
16114
if { (ac_try="$ac_link"
16115
case "(($ac_try" in
16116
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117
*) ac_try_echo=$ac_try;;
16119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16120
$as_echo "$ac_try_echo") >&5
16121
(eval "$ac_link") 2>conftest.er1
16123
grep -v '^ *+' conftest.er1 >conftest.err
16125
cat conftest.err >&5
16126
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127
(exit $ac_status); } && {
16128
test -z "$ac_c_werror_flag" ||
16129
test ! -s conftest.err
16130
} && test -s conftest$ac_exeext && {
16131
test "$cross_compiling" = yes ||
16132
$as_test_x conftest$ac_exeext
16134
ac_cv_lib_intl_ngettext=yes
16136
$as_echo "$as_me: failed program was:" >&5
16137
sed 's/^/| /' conftest.$ac_ext >&5
16139
ac_cv_lib_intl_ngettext=no
16142
rm -rf conftest.dSYM
16143
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16144
conftest$ac_exeext conftest.$ac_ext
16145
LIBS=$ac_check_lib_save_LIBS
16147
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
16148
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16149
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
16150
{ $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
16151
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
16152
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
16153
$as_echo_n "(cached) " >&6
16155
ac_check_lib_save_LIBS=$LIBS
16156
LIBS="-lintl -liconv $LIBS"
16157
cat >conftest.$ac_ext <<_ACEOF
16160
cat confdefs.h >>conftest.$ac_ext
16161
cat >>conftest.$ac_ext <<_ACEOF
16162
/* end confdefs.h. */
16164
/* Override any GCC internal prototype to avoid an error.
16165
Use char because int might match the return type of a GCC
16166
builtin and then its argument prototype would still apply. */
16174
return dcgettext ();
16179
rm -f conftest.$ac_objext conftest$ac_exeext
16180
if { (ac_try="$ac_link"
16181
case "(($ac_try" in
16182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183
*) ac_try_echo=$ac_try;;
16185
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186
$as_echo "$ac_try_echo") >&5
16187
(eval "$ac_link") 2>conftest.er1
16189
grep -v '^ *+' conftest.er1 >conftest.err
16191
cat conftest.err >&5
16192
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193
(exit $ac_status); } && {
16194
test -z "$ac_c_werror_flag" ||
16195
test ! -s conftest.err
16196
} && test -s conftest$ac_exeext && {
16197
test "$cross_compiling" = yes ||
16198
$as_test_x conftest$ac_exeext
16200
ac_cv_lib_intl_dcgettext=yes
16202
$as_echo "$as_me: failed program was:" >&5
16203
sed 's/^/| /' conftest.$ac_ext >&5
16205
ac_cv_lib_intl_dcgettext=no
16208
rm -rf conftest.dSYM
16209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16210
conftest$ac_exeext conftest.$ac_ext
16211
LIBS=$ac_check_lib_save_LIBS
16213
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
16214
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16215
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
16216
gt_cv_func_dgettext_libintl=yes
16217
libintl_extra_libs=-liconv
16229
# If we found libintl, then check in it for bind_textdomain_codeset();
16230
# we'll prefer libc if neither have bind_textdomain_codeset(),
16231
# and both have dgettext and ngettext
16233
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16234
glib_save_LIBS="$LIBS"
16235
LIBS="$LIBS -lintl $libintl_extra_libs"
16236
unset ac_cv_func_bind_textdomain_codeset
16238
for ac_func in bind_textdomain_codeset
16240
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16242
$as_echo_n "checking for $ac_func... " >&6; }
16243
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16244
$as_echo_n "(cached) " >&6
16246
cat >conftest.$ac_ext <<_ACEOF
16249
cat confdefs.h >>conftest.$ac_ext
16250
cat >>conftest.$ac_ext <<_ACEOF
16251
/* end confdefs.h. */
16252
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16253
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16254
#define $ac_func innocuous_$ac_func
16256
/* System header to define __stub macros and hopefully few prototypes,
16257
which can conflict with char $ac_func (); below.
16258
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16259
<limits.h> exists even on freestanding compilers. */
16262
# include <limits.h>
16264
# include <assert.h>
16269
/* Override any GCC internal prototype to avoid an error.
16270
Use char because int might match the return type of a GCC
16271
builtin and then its argument prototype would still apply. */
16276
/* The GNU C library defines this for functions which it implements
16277
to always fail with ENOSYS. Some functions are actually named
16278
something starting with __ and the normal name is an alias. */
16279
#if defined __stub_$ac_func || defined __stub___$ac_func
16286
return $ac_func ();
16291
rm -f conftest.$ac_objext conftest$ac_exeext
16292
if { (ac_try="$ac_link"
16293
case "(($ac_try" in
16294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295
*) ac_try_echo=$ac_try;;
16297
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16298
$as_echo "$ac_try_echo") >&5
16299
(eval "$ac_link") 2>conftest.er1
16301
grep -v '^ *+' conftest.er1 >conftest.err
16303
cat conftest.err >&5
16304
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305
(exit $ac_status); } && {
16306
test -z "$ac_c_werror_flag" ||
16307
test ! -s conftest.err
16308
} && test -s conftest$ac_exeext && {
16309
test "$cross_compiling" = yes ||
16310
$as_test_x conftest$ac_exeext
16312
eval "$as_ac_var=yes"
16314
$as_echo "$as_me: failed program was:" >&5
16315
sed 's/^/| /' conftest.$ac_ext >&5
16317
eval "$as_ac_var=no"
16320
rm -rf conftest.dSYM
16321
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322
conftest$ac_exeext conftest.$ac_ext
16324
ac_res=`eval 'as_val=${'$as_ac_var'}
16325
$as_echo "$as_val"'`
16326
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16327
$as_echo "$ac_res" >&6; }
16328
as_val=`eval 'as_val=${'$as_ac_var'}
16329
$as_echo "$as_val"'`
16330
if test "x$as_val" = x""yes; then
16331
cat >>confdefs.h <<_ACEOF
16332
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16338
LIBS="$glib_save_LIBS"
16340
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16341
gt_cv_func_dgettext_libc=no
16343
if test "$gt_cv_func_dgettext_libc" = "yes" \
16344
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
16345
gt_cv_func_dgettext_libintl=no
16351
if test "$gt_cv_func_dgettext_libc" = "yes" \
16352
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
16353
gt_cv_have_gettext=yes
16356
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16357
INTLLIBS="-lintl $libintl_extra_libs"
16360
if test "$gt_cv_have_gettext" = "yes"; then
16362
cat >>confdefs.h <<\_ACEOF
16363
#define HAVE_GETTEXT 1
16366
# Extract the first word of "msgfmt", so it can be a program name with args.
16367
set dummy msgfmt; ac_word=$2
16368
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16369
$as_echo_n "checking for $ac_word... " >&6; }
16370
if test "${ac_cv_path_MSGFMT+set}" = set; then
16371
$as_echo_n "(cached) " >&6
16375
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16378
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16379
for ac_dir in $PATH; do
16380
test -z "$ac_dir" && ac_dir=.
16381
if test -f $ac_dir/$ac_word; then
16382
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16383
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16389
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16393
MSGFMT="$ac_cv_path_MSGFMT"
16394
if test "$MSGFMT" != "no"; then
16395
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16396
$as_echo "$MSGFMT" >&6; }
16398
{ $as_echo "$as_me:$LINENO: result: no" >&5
16399
$as_echo "no" >&6; }
16401
if test "$MSGFMT" != "no"; then
16402
glib_save_LIBS="$LIBS"
16403
LIBS="$LIBS $INTLLIBS"
16405
for ac_func in dcgettext
16407
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16409
$as_echo_n "checking for $ac_func... " >&6; }
16410
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16411
$as_echo_n "(cached) " >&6
16413
cat >conftest.$ac_ext <<_ACEOF
16416
cat confdefs.h >>conftest.$ac_ext
16417
cat >>conftest.$ac_ext <<_ACEOF
16418
/* end confdefs.h. */
16419
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16421
#define $ac_func innocuous_$ac_func
16423
/* System header to define __stub macros and hopefully few prototypes,
16424
which can conflict with char $ac_func (); below.
16425
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426
<limits.h> exists even on freestanding compilers. */
16429
# include <limits.h>
16431
# include <assert.h>
16436
/* Override any GCC internal prototype to avoid an error.
16437
Use char because int might match the return type of a GCC
16438
builtin and then its argument prototype would still apply. */
16443
/* The GNU C library defines this for functions which it implements
16444
to always fail with ENOSYS. Some functions are actually named
16445
something starting with __ and the normal name is an alias. */
16446
#if defined __stub_$ac_func || defined __stub___$ac_func
16453
return $ac_func ();
16458
rm -f conftest.$ac_objext conftest$ac_exeext
16459
if { (ac_try="$ac_link"
16460
case "(($ac_try" in
16461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462
*) ac_try_echo=$ac_try;;
16464
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465
$as_echo "$ac_try_echo") >&5
16466
(eval "$ac_link") 2>conftest.er1
16468
grep -v '^ *+' conftest.er1 >conftest.err
16470
cat conftest.err >&5
16471
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472
(exit $ac_status); } && {
16473
test -z "$ac_c_werror_flag" ||
16474
test ! -s conftest.err
16475
} && test -s conftest$ac_exeext && {
16476
test "$cross_compiling" = yes ||
16477
$as_test_x conftest$ac_exeext
16479
eval "$as_ac_var=yes"
16481
$as_echo "$as_me: failed program was:" >&5
16482
sed 's/^/| /' conftest.$ac_ext >&5
16484
eval "$as_ac_var=no"
16487
rm -rf conftest.dSYM
16488
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489
conftest$ac_exeext conftest.$ac_ext
16491
ac_res=`eval 'as_val=${'$as_ac_var'}
16492
$as_echo "$as_val"'`
16493
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16494
$as_echo "$ac_res" >&6; }
16495
as_val=`eval 'as_val=${'$as_ac_var'}
16496
$as_echo "$as_val"'`
16497
if test "x$as_val" = x""yes; then
16498
cat >>confdefs.h <<_ACEOF
16499
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16506
{ $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
16507
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
16508
cat >conftest.foo <<_ACEOF
16512
"Content-Type: text/plain; charset=UTF-8\n"
16513
"Project-Id-Version: test 1.0\n"
16514
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
16515
"Last-Translator: test <foo@bar.xx>\n"
16516
"Language-Team: C <LL@li.org>\n"
16517
"MIME-Version: 1.0\n"
16518
"Content-Transfer-Encoding: 8bit\n"
16521
if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
16522
($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525
(exit $ac_status); }; then
16526
MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
16527
$as_echo "yes" >&6; }
16528
else { $as_echo "$as_me:$LINENO: result: no" >&5
16529
$as_echo "no" >&6; }
16530
echo "$as_me: failed input was:" >&5
16531
sed 's/^/| /' conftest.foo >&5
16534
# Extract the first word of "gmsgfmt", so it can be a program name with args.
16535
set dummy gmsgfmt; ac_word=$2
16536
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16537
$as_echo_n "checking for $ac_word... " >&6; }
16538
if test "${ac_cv_path_GMSGFMT+set}" = set; then
16539
$as_echo_n "(cached) " >&6
16543
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547
for as_dir in $PATH
16550
test -z "$as_dir" && as_dir=.
16551
for ac_exec_ext in '' $ac_executable_extensions; do
16552
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16554
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16561
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16565
GMSGFMT=$ac_cv_path_GMSGFMT
16566
if test -n "$GMSGFMT"; then
16567
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16568
$as_echo "$GMSGFMT" >&6; }
16570
{ $as_echo "$as_me:$LINENO: result: no" >&5
16571
$as_echo "no" >&6; }
16575
# Extract the first word of "xgettext", so it can be a program name with args.
16576
set dummy xgettext; ac_word=$2
16577
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16578
$as_echo_n "checking for $ac_word... " >&6; }
16579
if test "${ac_cv_path_XGETTEXT+set}" = set; then
16580
$as_echo_n "(cached) " >&6
16582
case "$XGETTEXT" in
16584
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16587
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16588
for ac_dir in $PATH; do
16589
test -z "$ac_dir" && ac_dir=.
16590
if test -f $ac_dir/$ac_word; then
16591
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16592
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16598
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16602
XGETTEXT="$ac_cv_path_XGETTEXT"
16603
if test "$XGETTEXT" != ":"; then
16604
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16605
$as_echo "$XGETTEXT" >&6; }
16607
{ $as_echo "$as_me:$LINENO: result: no" >&5
16608
$as_echo "no" >&6; }
16611
cat >conftest.$ac_ext <<_ACEOF
16614
cat confdefs.h >>conftest.$ac_ext
16615
cat >>conftest.$ac_ext <<_ACEOF
16616
/* end confdefs.h. */
16621
extern int _nl_msg_cat_cntr;
16622
return _nl_msg_cat_cntr
16627
rm -f conftest.$ac_objext conftest$ac_exeext
16628
if { (ac_try="$ac_link"
16629
case "(($ac_try" in
16630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631
*) ac_try_echo=$ac_try;;
16633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16634
$as_echo "$ac_try_echo") >&5
16635
(eval "$ac_link") 2>conftest.er1
16637
grep -v '^ *+' conftest.er1 >conftest.err
16639
cat conftest.err >&5
16640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641
(exit $ac_status); } && {
16642
test -z "$ac_c_werror_flag" ||
16643
test ! -s conftest.err
16644
} && test -s conftest$ac_exeext && {
16645
test "$cross_compiling" = yes ||
16646
$as_test_x conftest$ac_exeext
16651
$as_echo "$as_me: failed program was:" >&5
16652
sed 's/^/| /' conftest.$ac_ext >&5
16656
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
16657
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
16658
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
16659
$as_echo_n "(cached) " >&6
16661
cat >conftest.$ac_ext <<_ACEOF
16664
cat confdefs.h >>conftest.$ac_ext
16665
cat >>conftest.$ac_ext <<_ACEOF
16666
/* end confdefs.h. */
16667
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
16668
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16669
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
16671
/* System header to define __stub macros and hopefully few prototypes,
16672
which can conflict with char bind_textdomain_codeset (); below.
16673
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16674
<limits.h> exists even on freestanding compilers. */
16677
# include <limits.h>
16679
# include <assert.h>
16682
#undef bind_textdomain_codeset
16684
/* Override any GCC internal prototype to avoid an error.
16685
Use char because int might match the return type of a GCC
16686
builtin and then its argument prototype would still apply. */
16690
char bind_textdomain_codeset ();
16691
/* The GNU C library defines this for functions which it implements
16692
to always fail with ENOSYS. Some functions are actually named
16693
something starting with __ and the normal name is an alias. */
16694
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
16701
return bind_textdomain_codeset ();
16706
rm -f conftest.$ac_objext conftest$ac_exeext
16707
if { (ac_try="$ac_link"
16708
case "(($ac_try" in
16709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710
*) ac_try_echo=$ac_try;;
16712
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713
$as_echo "$ac_try_echo") >&5
16714
(eval "$ac_link") 2>conftest.er1
16716
grep -v '^ *+' conftest.er1 >conftest.err
16718
cat conftest.err >&5
16719
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720
(exit $ac_status); } && {
16721
test -z "$ac_c_werror_flag" ||
16722
test ! -s conftest.err
16723
} && test -s conftest$ac_exeext && {
16724
test "$cross_compiling" = yes ||
16725
$as_test_x conftest$ac_exeext
16727
ac_cv_func_bind_textdomain_codeset=yes
16729
$as_echo "$as_me: failed program was:" >&5
16730
sed 's/^/| /' conftest.$ac_ext >&5
16732
ac_cv_func_bind_textdomain_codeset=no
16735
rm -rf conftest.dSYM
16736
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737
conftest$ac_exeext conftest.$ac_ext
16739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
16740
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
16741
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
16757
rm -rf conftest.dSYM
16758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16759
conftest$ac_exeext conftest.$ac_ext
16760
LIBS="$glib_save_LIBS"
16763
gt_cv_have_gettext=no
16771
if test "$gt_cv_have_gettext" = "yes" ; then
16773
cat >>confdefs.h <<\_ACEOF
16774
#define ENABLE_NLS 1
16779
if test "$XGETTEXT" != ":"; then
16780
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16783
{ $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16784
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16789
# We need to process the po/ directory.
16792
ac_config_commands="$ac_config_commands default-1"
16795
for lang in $ALL_LINGUAS; do
16796
GMOFILES="$GMOFILES $lang.gmo"
16797
POFILES="$POFILES $lang.po"
16812
if test "$gt_cv_have_gettext" = "yes"; then
16813
if test "x$ALL_LINGUAS" = "x"; then
16816
{ $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16817
$as_echo_n "checking for catalogs to be installed... " >&6; }
16819
for presentlang in $ALL_LINGUAS; do
16821
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16822
desiredlanguages="$LINGUAS"
16824
desiredlanguages="$ALL_LINGUAS"
16826
for desiredlang in $desiredlanguages; do
16827
# Use the presentlang catalog if desiredlang is
16828
# a. equal to presentlang, or
16829
# b. a variant of presentlang (because in this case,
16830
# presentlang can be used as a fallback for messages
16831
# which are not translated in the desiredlang catalog).
16832
case "$desiredlang" in
16833
"$presentlang"*) useit=yes;;
16836
if test $useit = yes; then
16837
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16840
LINGUAS=$NEW_LINGUAS
16841
{ $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
16842
$as_echo "$LINGUAS" >&6; }
16845
if test -n "$LINGUAS"; then
16846
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16851
if test -n "$ac_aux_dir"; then
16852
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16854
if test -z "$MKINSTALLDIRS"; then
16855
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16859
test -d po || mkdir po
16860
if test "x$srcdir" != "x."; then
16861
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16862
posrcprefix="$srcdir/"
16864
posrcprefix="../$srcdir/"
16870
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16871
< $srcdir/po/POTFILES.in > po/POTFILES
16874
# Check whether --enable-libintl was given.
16875
if test "${enable_libintl+set}" = set; then
16876
enableval=$enable_libintl;
16882
if test x$enable_libintl = xyes; then
16884
17092
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16885
17093
$as_echo_n "checking whether NLS is requested... " >&6; }
17248
# Extract the first word of "msgfmt", so it can be a program name with args.
17249
set dummy msgfmt; ac_word=$2
17250
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17251
$as_echo_n "checking for $ac_word... " >&6; }
17252
if test "${ac_cv_path_MSGFMT+set}" = set; then
17253
$as_echo_n "(cached) " >&6
17257
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261
for as_dir in $PATH
17264
test -z "$as_dir" && as_dir=.
17265
for ac_exec_ext in '' $ac_executable_extensions; do
17266
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17267
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17268
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17278
MSGFMT=$ac_cv_path_MSGFMT
17279
if test -n "$MSGFMT"; then
17280
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17281
$as_echo "$MSGFMT" >&6; }
17283
{ $as_echo "$as_me:$LINENO: result: no" >&5
17284
$as_echo "no" >&6; }
17288
# Extract the first word of "gmsgfmt", so it can be a program name with args.
17289
set dummy gmsgfmt; ac_word=$2
17290
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17291
$as_echo_n "checking for $ac_word... " >&6; }
17292
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17293
$as_echo_n "(cached) " >&6
17297
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301
for as_dir in $PATH
17304
test -z "$as_dir" && as_dir=.
17305
for ac_exec_ext in '' $ac_executable_extensions; do
17306
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17307
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17308
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17315
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17319
GMSGFMT=$ac_cv_path_GMSGFMT
17320
if test -n "$GMSGFMT"; then
17321
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17322
$as_echo "$GMSGFMT" >&6; }
17324
{ $as_echo "$as_me:$LINENO: result: no" >&5
17325
$as_echo "no" >&6; }
17329
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
17330
{ { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17331
$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17332
{ (exit 1); exit 1; }; }
17334
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
17335
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
17336
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
17337
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
17338
{ { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
17339
$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
17340
{ (exit 1); exit 1; }; }
17343
# Extract the first word of "perl", so it can be a program name with args.
17344
set dummy perl; ac_word=$2
17345
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17346
$as_echo_n "checking for $ac_word... " >&6; }
17347
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
17348
$as_echo_n "(cached) " >&6
17350
case $INTLTOOL_PERL in
17352
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
17355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17356
for as_dir in $PATH
17359
test -z "$as_dir" && as_dir=.
17360
for ac_exec_ext in '' $ac_executable_extensions; do
17361
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17362
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
17363
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17373
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
17374
if test -n "$INTLTOOL_PERL"; then
17375
{ $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
17376
$as_echo "$INTLTOOL_PERL" >&6; }
17378
{ $as_echo "$as_me:$LINENO: result: no" >&5
17379
$as_echo "no" >&6; }
17383
if test -z "$INTLTOOL_PERL"; then
17384
{ { $as_echo "$as_me:$LINENO: error: perl not found" >&5
17385
$as_echo "$as_me: error: perl not found" >&2;}
17386
{ (exit 1); exit 1; }; }
17388
{ $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
17389
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
17390
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
17391
if test $? -ne 0; then
17392
{ { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
17393
$as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
17394
{ (exit 1); exit 1; }; }
17396
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
17397
{ $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
17398
$as_echo "$IT_PERL_VERSION" >&6; }
17400
if test "xno-xml" != "xno-xml"; then
17401
{ $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
17402
$as_echo_n "checking for XML::Parser... " >&6; }
17403
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
17404
{ $as_echo "$as_me:$LINENO: result: ok" >&5
17405
$as_echo "ok" >&6; }
17407
{ { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
17408
$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
17409
{ (exit 1); exit 1; }; }
17413
# Substitute ALL_LINGUAS so we can use it in po/Makefile
17416
# Set DATADIRNAME correctly if it is not set yet
17417
# (copied from glib-gettext.m4)
17418
if test -z "$DATADIRNAME"; then
17419
cat >conftest.$ac_ext <<_ACEOF
17422
cat confdefs.h >>conftest.$ac_ext
17423
cat >>conftest.$ac_ext <<_ACEOF
17424
/* end confdefs.h. */
17429
extern int _nl_msg_cat_cntr;
17430
return _nl_msg_cat_cntr
17435
rm -f conftest.$ac_objext conftest$ac_exeext
17436
if { (ac_try="$ac_link"
17437
case "(($ac_try" in
17438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439
*) ac_try_echo=$ac_try;;
17441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17442
$as_echo "$ac_try_echo") >&5
17443
(eval "$ac_link") 2>conftest.er1
17445
grep -v '^ *+' conftest.er1 >conftest.err
17447
cat conftest.err >&5
17448
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449
(exit $ac_status); } && {
17450
test -z "$ac_c_werror_flag" ||
17451
test ! -s conftest.err
17452
} && test -s conftest$ac_exeext && {
17453
test "$cross_compiling" = yes ||
17454
$as_test_x conftest$ac_exeext
17458
$as_echo "$as_me: failed program was:" >&5
17459
sed 's/^/| /' conftest.$ac_ext >&5
17463
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
17464
$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
17465
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
17466
$as_echo_n "(cached) " >&6
17468
cat >conftest.$ac_ext <<_ACEOF
17471
cat confdefs.h >>conftest.$ac_ext
17472
cat >>conftest.$ac_ext <<_ACEOF
17473
/* end confdefs.h. */
17474
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
17475
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
17478
/* System header to define __stub macros and hopefully few prototypes,
17479
which can conflict with char bind_textdomain_codeset (); below.
17480
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481
<limits.h> exists even on freestanding compilers. */
17484
# include <limits.h>
17486
# include <assert.h>
17489
#undef bind_textdomain_codeset
17491
/* Override any GCC internal prototype to avoid an error.
17492
Use char because int might match the return type of a GCC
17493
builtin and then its argument prototype would still apply. */
17497
char bind_textdomain_codeset ();
17498
/* The GNU C library defines this for functions which it implements
17499
to always fail with ENOSYS. Some functions are actually named
17500
something starting with __ and the normal name is an alias. */
17501
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
17508
return bind_textdomain_codeset ();
17513
rm -f conftest.$ac_objext conftest$ac_exeext
17514
if { (ac_try="$ac_link"
17515
case "(($ac_try" in
17516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517
*) ac_try_echo=$ac_try;;
17519
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17520
$as_echo "$ac_try_echo") >&5
17521
(eval "$ac_link") 2>conftest.er1
17523
grep -v '^ *+' conftest.er1 >conftest.err
17525
cat conftest.err >&5
17526
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527
(exit $ac_status); } && {
17528
test -z "$ac_c_werror_flag" ||
17529
test ! -s conftest.err
17530
} && test -s conftest$ac_exeext && {
17531
test "$cross_compiling" = yes ||
17532
$as_test_x conftest$ac_exeext
17534
ac_cv_func_bind_textdomain_codeset=yes
17536
$as_echo "$as_me: failed program was:" >&5
17537
sed 's/^/| /' conftest.$ac_ext >&5
17539
ac_cv_func_bind_textdomain_codeset=no
17542
rm -rf conftest.dSYM
17543
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544
conftest$ac_exeext conftest.$ac_ext
17546
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
17547
$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
17548
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
17561
rm -rf conftest.dSYM
17562
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563
conftest$ac_exeext conftest.$ac_ext
17572
if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
17573
{ $as_echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
17574
$as_echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
17578
if test x$enable_libintl = xyes; then
17580
for ac_header in libintl.h
17582
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17585
$as_echo_n "checking for $ac_header... " >&6; }
17586
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587
$as_echo_n "(cached) " >&6
17589
ac_res=`eval 'as_val=${'$as_ac_Header'}
17590
$as_echo "$as_val"'`
17591
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17592
$as_echo "$ac_res" >&6; }
17594
# Is the header compilable?
17595
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17596
$as_echo_n "checking $ac_header usability... " >&6; }
17597
cat >conftest.$ac_ext <<_ACEOF
17600
cat confdefs.h >>conftest.$ac_ext
17601
cat >>conftest.$ac_ext <<_ACEOF
17602
/* end confdefs.h. */
17603
$ac_includes_default
17604
#include <$ac_header>
17606
rm -f conftest.$ac_objext
17607
if { (ac_try="$ac_compile"
17608
case "(($ac_try" in
17609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610
*) ac_try_echo=$ac_try;;
17612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17613
$as_echo "$ac_try_echo") >&5
17614
(eval "$ac_compile") 2>conftest.er1
17616
grep -v '^ *+' conftest.er1 >conftest.err
17618
cat conftest.err >&5
17619
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620
(exit $ac_status); } && {
17621
test -z "$ac_c_werror_flag" ||
17622
test ! -s conftest.err
17623
} && test -s conftest.$ac_objext; then
17624
ac_header_compiler=yes
17626
$as_echo "$as_me: failed program was:" >&5
17627
sed 's/^/| /' conftest.$ac_ext >&5
17629
ac_header_compiler=no
17632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17634
$as_echo "$ac_header_compiler" >&6; }
17636
# Is the header present?
17637
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17638
$as_echo_n "checking $ac_header presence... " >&6; }
17639
cat >conftest.$ac_ext <<_ACEOF
17642
cat confdefs.h >>conftest.$ac_ext
17643
cat >>conftest.$ac_ext <<_ACEOF
17644
/* end confdefs.h. */
17645
#include <$ac_header>
17647
if { (ac_try="$ac_cpp conftest.$ac_ext"
17648
case "(($ac_try" in
17649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650
*) ac_try_echo=$ac_try;;
17652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17653
$as_echo "$ac_try_echo") >&5
17654
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656
grep -v '^ *+' conftest.er1 >conftest.err
17658
cat conftest.err >&5
17659
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660
(exit $ac_status); } >/dev/null && {
17661
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662
test ! -s conftest.err
17664
ac_header_preproc=yes
17666
$as_echo "$as_me: failed program was:" >&5
17667
sed 's/^/| /' conftest.$ac_ext >&5
17669
ac_header_preproc=no
17672
rm -f conftest.err conftest.$ac_ext
17673
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674
$as_echo "$ac_header_preproc" >&6; }
17676
# So? What about this header?
17677
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17680
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17682
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17683
ac_header_preproc=yes
17686
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17687
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17688
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17689
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17690
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17691
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17692
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17693
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17694
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17695
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17696
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17697
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17701
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17702
$as_echo_n "checking for $ac_header... " >&6; }
17703
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17704
$as_echo_n "(cached) " >&6
17706
eval "$as_ac_Header=\$ac_header_preproc"
17708
ac_res=`eval 'as_val=${'$as_ac_Header'}
17709
$as_echo "$as_val"'`
17710
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17711
$as_echo "$ac_res" >&6; }
17714
as_val=`eval 'as_val=${'$as_ac_Header'}
17715
$as_echo "$as_val"'`
17716
if test "x$as_val" = x""yes; then
17717
cat >>confdefs.h <<_ACEOF
17718
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17722
{ $as_echo "$as_me:$LINENO: result: disabeling libintl build" >&5
17723
$as_echo "disabeling libintl build" >&6; }; enable_libintl=no
17730
if test x$enable_libintl = xyes ; then
17731
{ $as_echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
17732
$as_echo_n "checking for libintl_gettext in -lintl... " >&6; }
17733
if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
17734
$as_echo_n "(cached) " >&6
17736
ac_check_lib_save_LIBS=$LIBS
17737
LIBS="-lintl $LIBS"
17738
cat >conftest.$ac_ext <<_ACEOF
17741
cat confdefs.h >>conftest.$ac_ext
17742
cat >>conftest.$ac_ext <<_ACEOF
17743
/* end confdefs.h. */
17745
/* Override any GCC internal prototype to avoid an error.
17746
Use char because int might match the return type of a GCC
17747
builtin and then its argument prototype would still apply. */
17751
char libintl_gettext ();
17755
return libintl_gettext ();
17760
rm -f conftest.$ac_objext conftest$ac_exeext
17761
if { (ac_try="$ac_link"
17762
case "(($ac_try" in
17763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764
*) ac_try_echo=$ac_try;;
17766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767
$as_echo "$ac_try_echo") >&5
17768
(eval "$ac_link") 2>conftest.er1
17770
grep -v '^ *+' conftest.er1 >conftest.err
17772
cat conftest.err >&5
17773
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774
(exit $ac_status); } && {
17775
test -z "$ac_c_werror_flag" ||
17776
test ! -s conftest.err
17777
} && test -s conftest$ac_exeext && {
17778
test "$cross_compiling" = yes ||
17779
$as_test_x conftest$ac_exeext
17781
ac_cv_lib_intl_libintl_gettext=yes
17783
$as_echo "$as_me: failed program was:" >&5
17784
sed 's/^/| /' conftest.$ac_ext >&5
17786
ac_cv_lib_intl_libintl_gettext=no
17789
rm -rf conftest.dSYM
17790
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791
conftest$ac_exeext conftest.$ac_ext
17792
LIBS=$ac_check_lib_save_LIBS
17794
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
17795
$as_echo "$ac_cv_lib_intl_libintl_gettext" >&6; }
17796
if test "x$ac_cv_lib_intl_libintl_gettext" = x""yes; then
17797
LIB_LIBINTL="-lintl"
17804
if test x$enable_libintl = xyes; then
17805
BUILD_LIBINTL_TRUE=
17806
BUILD_LIBINTL_FALSE='#'
17808
BUILD_LIBINTL_TRUE='#'
17809
BUILD_LIBINTL_FALSE=
17813
if test x$enable_libintl = xyes; then
17815
cat >>confdefs.h <<\_ACEOF
17816
#define BUILD_LIBINTL /**/
17382
test -n "$localedir" || localedir='${datadir}/locale'
17385
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17388
ac_config_commands="$ac_config_commands po-directories"
17392
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
17393
$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17394
if test "${ac_cv_gnu_library_2+set}" = set; then
17395
$as_echo_n "(cached) " >&6
17397
cat >conftest.$ac_ext <<_ACEOF
17400
cat confdefs.h >>conftest.$ac_ext
17401
cat >>conftest.$ac_ext <<_ACEOF
17402
/* end confdefs.h. */
17404
#include <features.h>
17405
#ifdef __GNU_LIBRARY__
17406
#if (__GLIBC__ >= 2)
17412
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17413
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
17414
ac_cv_gnu_library_2=yes
17416
ac_cv_gnu_library_2=no
17423
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
17424
$as_echo "$ac_cv_gnu_library_2" >&6; }
17426
GLIBC2="$ac_cv_gnu_library_2"
17429
if test -n "$ac_tool_prefix"; then
17430
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17431
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17432
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17433
$as_echo_n "checking for $ac_word... " >&6; }
17434
if test "${ac_cv_prog_RANLIB+set}" = set; then
17435
$as_echo_n "(cached) " >&6
17437
if test -n "$RANLIB"; then
17438
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17441
for as_dir in $PATH
17444
test -z "$as_dir" && as_dir=.
17445
for ac_exec_ext in '' $ac_executable_extensions; do
17446
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17447
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17448
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17457
RANLIB=$ac_cv_prog_RANLIB
17458
if test -n "$RANLIB"; then
17459
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
17460
$as_echo "$RANLIB" >&6; }
17462
{ $as_echo "$as_me:$LINENO: result: no" >&5
17463
$as_echo "no" >&6; }
17468
if test -z "$ac_cv_prog_RANLIB"; then
17469
ac_ct_RANLIB=$RANLIB
17470
# Extract the first word of "ranlib", so it can be a program name with args.
17471
set dummy ranlib; ac_word=$2
17472
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17473
$as_echo_n "checking for $ac_word... " >&6; }
17474
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
17475
$as_echo_n "(cached) " >&6
17477
if test -n "$ac_ct_RANLIB"; then
17478
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481
for as_dir in $PATH
17484
test -z "$as_dir" && as_dir=.
17485
for ac_exec_ext in '' $ac_executable_extensions; do
17486
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17487
ac_cv_prog_ac_ct_RANLIB="ranlib"
17488
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17497
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17498
if test -n "$ac_ct_RANLIB"; then
17499
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
17500
$as_echo "$ac_ct_RANLIB" >&6; }
17502
{ $as_echo "$as_me:$LINENO: result: no" >&5
17503
$as_echo "no" >&6; }
17506
if test "x$ac_ct_RANLIB" = x; then
17509
case $cross_compiling:$ac_tool_warned in
17511
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17512
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17513
ac_tool_warned=yes ;;
17515
RANLIB=$ac_ct_RANLIB
17518
RANLIB="$ac_cv_prog_RANLIB"
17525
if test -n "$GCC"; then
17526
{ $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
17527
$as_echo_n "checking for simple visibility declarations... " >&6; }
17528
if test "${gl_cv_cc_visibility+set}" = set; then
17529
$as_echo_n "(cached) " >&6
17532
gl_save_CFLAGS="$CFLAGS"
17533
CFLAGS="$CFLAGS -fvisibility=hidden"
17534
cat >conftest.$ac_ext <<_ACEOF
17537
cat confdefs.h >>conftest.$ac_ext
17538
cat >>conftest.$ac_ext <<_ACEOF
17539
/* end confdefs.h. */
17540
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17541
extern __attribute__((__visibility__("default"))) int exportedvar;
17542
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17543
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17552
rm -f conftest.$ac_objext
17553
if { (ac_try="$ac_compile"
17554
case "(($ac_try" in
17555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556
*) ac_try_echo=$ac_try;;
17558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17559
$as_echo "$ac_try_echo") >&5
17560
(eval "$ac_compile") 2>conftest.er1
17562
grep -v '^ *+' conftest.er1 >conftest.err
17564
cat conftest.err >&5
17565
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
(exit $ac_status); } && {
17567
test -z "$ac_c_werror_flag" ||
17568
test ! -s conftest.err
17569
} && test -s conftest.$ac_objext; then
17570
gl_cv_cc_visibility=yes
17572
$as_echo "$as_me: failed program was:" >&5
17573
sed 's/^/| /' conftest.$ac_ext >&5
17575
gl_cv_cc_visibility=no
17578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17579
CFLAGS="$gl_save_CFLAGS"
17582
{ $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
17583
$as_echo "$gl_cv_cc_visibility" >&6; }
17584
if test $gl_cv_cc_visibility = yes; then
17585
CFLAG_VISIBILITY="-fvisibility=hidden"
17592
cat >>confdefs.h <<_ACEOF
17593
#define HAVE_VISIBILITY $HAVE_VISIBILITY
17597
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
17598
$as_echo_n "checking for inline... " >&6; }
17599
if test "${ac_cv_c_inline+set}" = set; then
17600
$as_echo_n "(cached) " >&6
17603
for ac_kw in inline __inline__ __inline; do
17604
cat >conftest.$ac_ext <<_ACEOF
17607
cat confdefs.h >>conftest.$ac_ext
17608
cat >>conftest.$ac_ext <<_ACEOF
17609
/* end confdefs.h. */
17610
#ifndef __cplusplus
17612
static $ac_kw foo_t static_foo () {return 0; }
17613
$ac_kw foo_t foo () {return 0; }
17617
rm -f conftest.$ac_objext
17618
if { (ac_try="$ac_compile"
17619
case "(($ac_try" in
17620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621
*) ac_try_echo=$ac_try;;
17623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17624
$as_echo "$ac_try_echo") >&5
17625
(eval "$ac_compile") 2>conftest.er1
17627
grep -v '^ *+' conftest.er1 >conftest.err
17629
cat conftest.err >&5
17630
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631
(exit $ac_status); } && {
17632
test -z "$ac_c_werror_flag" ||
17633
test ! -s conftest.err
17634
} && test -s conftest.$ac_objext; then
17635
ac_cv_c_inline=$ac_kw
17637
$as_echo "$as_me: failed program was:" >&5
17638
sed 's/^/| /' conftest.$ac_ext >&5
17643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644
test "$ac_cv_c_inline" != no && break
17648
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17649
$as_echo "$ac_cv_c_inline" >&6; }
17652
case $ac_cv_c_inline in
17655
case $ac_cv_c_inline in
17657
*) ac_val=$ac_cv_c_inline;;
17659
cat >>confdefs.h <<_ACEOF
17660
#ifndef __cplusplus
17661
#define inline $ac_val
17667
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
17668
$as_echo_n "checking for size_t... " >&6; }
17669
if test "${ac_cv_type_size_t+set}" = set; then
17670
$as_echo_n "(cached) " >&6
17672
ac_cv_type_size_t=no
17673
cat >conftest.$ac_ext <<_ACEOF
17676
cat confdefs.h >>conftest.$ac_ext
17677
cat >>conftest.$ac_ext <<_ACEOF
17678
/* end confdefs.h. */
17679
$ac_includes_default
17683
if (sizeof (size_t))
17689
rm -f conftest.$ac_objext
17690
if { (ac_try="$ac_compile"
17691
case "(($ac_try" in
17692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693
*) ac_try_echo=$ac_try;;
17695
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17696
$as_echo "$ac_try_echo") >&5
17697
(eval "$ac_compile") 2>conftest.er1
17699
grep -v '^ *+' conftest.er1 >conftest.err
17701
cat conftest.err >&5
17702
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703
(exit $ac_status); } && {
17704
test -z "$ac_c_werror_flag" ||
17705
test ! -s conftest.err
17706
} && test -s conftest.$ac_objext; then
17707
cat >conftest.$ac_ext <<_ACEOF
17710
cat confdefs.h >>conftest.$ac_ext
17711
cat >>conftest.$ac_ext <<_ACEOF
17712
/* end confdefs.h. */
17713
$ac_includes_default
17717
if (sizeof ((size_t)))
17723
rm -f conftest.$ac_objext
17724
if { (ac_try="$ac_compile"
17725
case "(($ac_try" in
17726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727
*) ac_try_echo=$ac_try;;
17729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17730
$as_echo "$ac_try_echo") >&5
17731
(eval "$ac_compile") 2>conftest.er1
17733
grep -v '^ *+' conftest.er1 >conftest.err
17735
cat conftest.err >&5
17736
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
(exit $ac_status); } && {
17738
test -z "$ac_c_werror_flag" ||
17739
test ! -s conftest.err
17740
} && test -s conftest.$ac_objext; then
17743
$as_echo "$as_me: failed program was:" >&5
17744
sed 's/^/| /' conftest.$ac_ext >&5
17746
ac_cv_type_size_t=yes
17749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751
$as_echo "$as_me: failed program was:" >&5
17752
sed 's/^/| /' conftest.$ac_ext >&5
17757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17760
$as_echo "$ac_cv_type_size_t" >&6; }
17761
if test "x$ac_cv_type_size_t" = x""yes; then
17765
cat >>confdefs.h <<_ACEOF
17766
#define size_t unsigned int
17772
{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17773
$as_echo_n "checking for stdint.h... " >&6; }
17774
if test "${gl_cv_header_stdint_h+set}" = set; then
17775
$as_echo_n "(cached) " >&6
17777
cat >conftest.$ac_ext <<_ACEOF
17780
cat confdefs.h >>conftest.$ac_ext
17781
cat >>conftest.$ac_ext <<_ACEOF
17782
/* end confdefs.h. */
17783
#include <sys/types.h>
17784
#include <stdint.h>
17788
uintmax_t i = (uintmax_t) -1; return !i;
17793
rm -f conftest.$ac_objext
17794
if { (ac_try="$ac_compile"
17795
case "(($ac_try" in
17796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797
*) ac_try_echo=$ac_try;;
17799
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800
$as_echo "$ac_try_echo") >&5
17801
(eval "$ac_compile") 2>conftest.er1
17803
grep -v '^ *+' conftest.er1 >conftest.err
17805
cat conftest.err >&5
17806
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807
(exit $ac_status); } && {
17808
test -z "$ac_c_werror_flag" ||
17809
test ! -s conftest.err
17810
} && test -s conftest.$ac_objext; then
17811
gl_cv_header_stdint_h=yes
17813
$as_echo "$as_me: failed program was:" >&5
17814
sed 's/^/| /' conftest.$ac_ext >&5
17816
gl_cv_header_stdint_h=no
17819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17822
$as_echo "$gl_cv_header_stdint_h" >&6; }
17823
if test $gl_cv_header_stdint_h = yes; then
17825
cat >>confdefs.h <<_ACEOF
17826
#define HAVE_STDINT_H_WITH_UINTMAX 1
17831
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17832
# for constant arguments. Useless!
17833
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
17834
$as_echo_n "checking for working alloca.h... " >&6; }
17835
if test "${ac_cv_working_alloca_h+set}" = set; then
17836
$as_echo_n "(cached) " >&6
17838
cat >conftest.$ac_ext <<_ACEOF
17841
cat confdefs.h >>conftest.$ac_ext
17842
cat >>conftest.$ac_ext <<_ACEOF
17843
/* end confdefs.h. */
17844
#include <alloca.h>
17848
char *p = (char *) alloca (2 * sizeof (int));
17854
rm -f conftest.$ac_objext conftest$ac_exeext
17855
if { (ac_try="$ac_link"
17856
case "(($ac_try" in
17857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858
*) ac_try_echo=$ac_try;;
17860
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861
$as_echo "$ac_try_echo") >&5
17862
(eval "$ac_link") 2>conftest.er1
17864
grep -v '^ *+' conftest.er1 >conftest.err
17866
cat conftest.err >&5
17867
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868
(exit $ac_status); } && {
17869
test -z "$ac_c_werror_flag" ||
17870
test ! -s conftest.err
17871
} && test -s conftest$ac_exeext && {
17872
test "$cross_compiling" = yes ||
17873
$as_test_x conftest$ac_exeext
17875
ac_cv_working_alloca_h=yes
17877
$as_echo "$as_me: failed program was:" >&5
17878
sed 's/^/| /' conftest.$ac_ext >&5
17880
ac_cv_working_alloca_h=no
17883
rm -rf conftest.dSYM
17884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885
conftest$ac_exeext conftest.$ac_ext
17887
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17888
$as_echo "$ac_cv_working_alloca_h" >&6; }
17889
if test $ac_cv_working_alloca_h = yes; then
17891
cat >>confdefs.h <<\_ACEOF
17892
#define HAVE_ALLOCA_H 1
17897
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
17898
$as_echo_n "checking for alloca... " >&6; }
17899
if test "${ac_cv_func_alloca_works+set}" = set; then
17900
$as_echo_n "(cached) " >&6
17902
cat >conftest.$ac_ext <<_ACEOF
17905
cat confdefs.h >>conftest.$ac_ext
17906
cat >>conftest.$ac_ext <<_ACEOF
17907
/* end confdefs.h. */
17909
# define alloca __builtin_alloca
17912
# include <malloc.h>
17913
# define alloca _alloca
17915
# ifdef HAVE_ALLOCA_H
17916
# include <alloca.h>
17921
# ifndef alloca /* predefined by HP cc +Olibcalls */
17932
char *p = (char *) alloca (1);
17938
rm -f conftest.$ac_objext conftest$ac_exeext
17939
if { (ac_try="$ac_link"
17940
case "(($ac_try" in
17941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942
*) ac_try_echo=$ac_try;;
17944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17945
$as_echo "$ac_try_echo") >&5
17946
(eval "$ac_link") 2>conftest.er1
17948
grep -v '^ *+' conftest.er1 >conftest.err
17950
cat conftest.err >&5
17951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952
(exit $ac_status); } && {
17953
test -z "$ac_c_werror_flag" ||
17954
test ! -s conftest.err
17955
} && test -s conftest$ac_exeext && {
17956
test "$cross_compiling" = yes ||
17957
$as_test_x conftest$ac_exeext
17959
ac_cv_func_alloca_works=yes
17961
$as_echo "$as_me: failed program was:" >&5
17962
sed 's/^/| /' conftest.$ac_ext >&5
17964
ac_cv_func_alloca_works=no
17967
rm -rf conftest.dSYM
17968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17969
conftest$ac_exeext conftest.$ac_ext
17971
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17972
$as_echo "$ac_cv_func_alloca_works" >&6; }
17974
if test $ac_cv_func_alloca_works = yes; then
17976
cat >>confdefs.h <<\_ACEOF
17977
#define HAVE_ALLOCA 1
17981
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
17982
# that cause trouble. Some versions do not even contain alloca or
17983
# contain a buggy version. If you still want to use their alloca,
17984
# use ar to extract alloca.o from them instead of compiling alloca.c.
17986
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17988
cat >>confdefs.h <<\_ACEOF
17993
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17994
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17995
if test "${ac_cv_os_cray+set}" = set; then
17996
$as_echo_n "(cached) " >&6
17998
cat >conftest.$ac_ext <<_ACEOF
18001
cat confdefs.h >>conftest.$ac_ext
18002
cat >>conftest.$ac_ext <<_ACEOF
18003
/* end confdefs.h. */
18004
#if defined CRAY && ! defined CRAY2
18011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18012
$EGREP "webecray" >/dev/null 2>&1; then
18020
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18021
$as_echo "$ac_cv_os_cray" >&6; }
18022
if test $ac_cv_os_cray = yes; then
18023
for ac_func in _getb67 GETB67 getb67; do
18024
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18025
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18026
$as_echo_n "checking for $ac_func... " >&6; }
18027
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18028
$as_echo_n "(cached) " >&6
18030
cat >conftest.$ac_ext <<_ACEOF
18033
cat confdefs.h >>conftest.$ac_ext
18034
cat >>conftest.$ac_ext <<_ACEOF
18035
/* end confdefs.h. */
18036
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18037
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18038
#define $ac_func innocuous_$ac_func
18040
/* System header to define __stub macros and hopefully few prototypes,
18041
which can conflict with char $ac_func (); below.
18042
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18043
<limits.h> exists even on freestanding compilers. */
18046
# include <limits.h>
18048
# include <assert.h>
18053
/* Override any GCC internal prototype to avoid an error.
18054
Use char because int might match the return type of a GCC
18055
builtin and then its argument prototype would still apply. */
18060
/* The GNU C library defines this for functions which it implements
18061
to always fail with ENOSYS. Some functions are actually named
18062
something starting with __ and the normal name is an alias. */
18063
#if defined __stub_$ac_func || defined __stub___$ac_func
18070
return $ac_func ();
18075
rm -f conftest.$ac_objext conftest$ac_exeext
18076
if { (ac_try="$ac_link"
18077
case "(($ac_try" in
18078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079
*) ac_try_echo=$ac_try;;
18081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18082
$as_echo "$ac_try_echo") >&5
18083
(eval "$ac_link") 2>conftest.er1
18085
grep -v '^ *+' conftest.er1 >conftest.err
18087
cat conftest.err >&5
18088
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089
(exit $ac_status); } && {
18090
test -z "$ac_c_werror_flag" ||
18091
test ! -s conftest.err
18092
} && test -s conftest$ac_exeext && {
18093
test "$cross_compiling" = yes ||
18094
$as_test_x conftest$ac_exeext
18096
eval "$as_ac_var=yes"
18098
$as_echo "$as_me: failed program was:" >&5
18099
sed 's/^/| /' conftest.$ac_ext >&5
18101
eval "$as_ac_var=no"
18104
rm -rf conftest.dSYM
18105
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18106
conftest$ac_exeext conftest.$ac_ext
18108
ac_res=`eval 'as_val=${'$as_ac_var'}
18109
$as_echo "$as_val"'`
18110
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18111
$as_echo "$ac_res" >&6; }
18112
as_val=`eval 'as_val=${'$as_ac_var'}
18113
$as_echo "$as_val"'`
18114
if test "x$as_val" = x""yes; then
18116
cat >>confdefs.h <<_ACEOF
18117
#define CRAY_STACKSEG_END $ac_func
18126
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18127
$as_echo_n "checking stack direction for C alloca... " >&6; }
18128
if test "${ac_cv_c_stack_direction+set}" = set; then
18129
$as_echo_n "(cached) " >&6
18131
if test "$cross_compiling" = yes; then
18132
ac_cv_c_stack_direction=0
18134
cat >conftest.$ac_ext <<_ACEOF
18137
cat confdefs.h >>conftest.$ac_ext
18138
cat >>conftest.$ac_ext <<_ACEOF
18139
/* end confdefs.h. */
18140
$ac_includes_default
18142
find_stack_direction ()
18144
static char *addr = 0;
18149
return find_stack_direction ();
18152
return (&dummy > addr) ? 1 : -1;
18158
return find_stack_direction () < 0;
18161
rm -f conftest$ac_exeext
18162
if { (ac_try="$ac_link"
18163
case "(($ac_try" in
18164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165
*) ac_try_echo=$ac_try;;
18167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18168
$as_echo "$ac_try_echo") >&5
18169
(eval "$ac_link") 2>&5
18171
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173
{ (case "(($ac_try" in
18174
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175
*) ac_try_echo=$ac_try;;
18177
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18178
$as_echo "$ac_try_echo") >&5
18179
(eval "$ac_try") 2>&5
18181
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182
(exit $ac_status); }; }; then
18183
ac_cv_c_stack_direction=1
18185
$as_echo "$as_me: program exited with status $ac_status" >&5
18186
$as_echo "$as_me: failed program was:" >&5
18187
sed 's/^/| /' conftest.$ac_ext >&5
18189
( exit $ac_status )
18190
ac_cv_c_stack_direction=-1
18192
rm -rf conftest.dSYM
18193
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18198
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18199
$as_echo "$ac_cv_c_stack_direction" >&6; }
18201
cat >>confdefs.h <<_ACEOF
18202
#define STACK_DIRECTION $ac_cv_c_stack_direction
18210
{ $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
18211
$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18212
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
18213
$as_echo_n "(cached) " >&6
18216
gt_cv_int_divbyzero_sigfpe=
18218
macos* | darwin[6-9]* | darwin[1-9][0-9]*)
18219
# On MacOS X 10.2 or newer, just assume the same as when cross-
18220
# compiling. If we were to perform the real test, 1 Crash Report
18221
# dialog window would pop up.
18222
case "$host_cpu" in
18223
i[34567]86 | x86_64)
18224
gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
18228
if test -z "$gt_cv_int_divbyzero_sigfpe"; then
18229
if test "$cross_compiling" = yes; then
18231
# Guess based on the CPU.
18232
case "$host_cpu" in
18233
alpha* | i[34567]86 | x86_64 | m68k | s390*)
18234
gt_cv_int_divbyzero_sigfpe="guessing yes";;
18236
gt_cv_int_divbyzero_sigfpe="guessing no";;
18240
cat >conftest.$ac_ext <<_ACEOF
18243
cat confdefs.h >>conftest.$ac_ext
18244
cat >>conftest.$ac_ext <<_ACEOF
18245
/* end confdefs.h. */
18247
#include <stdlib.h>
18248
#include <signal.h>
18251
sigfpe_handler (int sig)
18253
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18254
exit (sig != SIGFPE);
18264
signal (SIGFPE, sigfpe_handler);
18265
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18266
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18267
signal (SIGTRAP, sigfpe_handler);
18269
/* Linux/SPARC yields signal SIGILL. */
18270
#if defined (__sparc__) && defined (__linux__)
18271
signal (SIGILL, sigfpe_handler);
18280
rm -f conftest$ac_exeext
18281
if { (ac_try="$ac_link"
18282
case "(($ac_try" in
18283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284
*) ac_try_echo=$ac_try;;
18286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18287
$as_echo "$ac_try_echo") >&5
18288
(eval "$ac_link") 2>&5
18290
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18292
{ (case "(($ac_try" in
18293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294
*) ac_try_echo=$ac_try;;
18296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297
$as_echo "$ac_try_echo") >&5
18298
(eval "$ac_try") 2>&5
18300
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301
(exit $ac_status); }; }; then
18302
gt_cv_int_divbyzero_sigfpe=yes
18304
$as_echo "$as_me: program exited with status $ac_status" >&5
18305
$as_echo "$as_me: failed program was:" >&5
18306
sed 's/^/| /' conftest.$ac_ext >&5
18308
( exit $ac_status )
18309
gt_cv_int_divbyzero_sigfpe=no
18311
rm -rf conftest.dSYM
18312
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18319
{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
18320
$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18321
case "$gt_cv_int_divbyzero_sigfpe" in
18326
cat >>confdefs.h <<_ACEOF
18327
#define INTDIV0_RAISES_SIGFPE $value
18332
{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
18333
$as_echo_n "checking for inttypes.h... " >&6; }
18334
if test "${gl_cv_header_inttypes_h+set}" = set; then
18335
$as_echo_n "(cached) " >&6
18337
cat >conftest.$ac_ext <<_ACEOF
18340
cat confdefs.h >>conftest.$ac_ext
18341
cat >>conftest.$ac_ext <<_ACEOF
18342
/* end confdefs.h. */
18343
#include <sys/types.h>
18344
#include <inttypes.h>
18348
uintmax_t i = (uintmax_t) -1; return !i;
18353
rm -f conftest.$ac_objext
18354
if { (ac_try="$ac_compile"
18355
case "(($ac_try" in
18356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357
*) ac_try_echo=$ac_try;;
18359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360
$as_echo "$ac_try_echo") >&5
18361
(eval "$ac_compile") 2>conftest.er1
18363
grep -v '^ *+' conftest.er1 >conftest.err
18365
cat conftest.err >&5
18366
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367
(exit $ac_status); } && {
18368
test -z "$ac_c_werror_flag" ||
18369
test ! -s conftest.err
18370
} && test -s conftest.$ac_objext; then
18371
gl_cv_header_inttypes_h=yes
18373
$as_echo "$as_me: failed program was:" >&5
18374
sed 's/^/| /' conftest.$ac_ext >&5
18376
gl_cv_header_inttypes_h=no
18379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18381
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
18382
$as_echo "$gl_cv_header_inttypes_h" >&6; }
18383
if test $gl_cv_header_inttypes_h = yes; then
18385
cat >>confdefs.h <<_ACEOF
18386
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
18392
{ $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
18393
$as_echo_n "checking for unsigned long long int... " >&6; }
18394
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
18395
$as_echo_n "(cached) " >&6
18397
cat >conftest.$ac_ext <<_ACEOF
18401
cat confdefs.h >>conftest.$ac_ext
18402
cat >>conftest.$ac_ext <<_ACEOF
18403
/* end confdefs.h. */
18404
/* Test preprocessor. */
18405
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18406
error in preprocessor;
18408
#if ! (18446744073709551615ULL <= -1ull)
18409
error in preprocessor;
18411
/* Test literals. */
18412
long long int ll = 9223372036854775807ll;
18413
long long int nll = -9223372036854775807LL;
18414
unsigned long long int ull = 18446744073709551615ULL;
18415
/* Test constant expressions. */
18416
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18418
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18424
/* Test availability of runtime routines for shift and division. */
18425
long long int llmax = 9223372036854775807ll;
18426
unsigned long long int ullmax = 18446744073709551615ull;
18427
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18428
| (llmax / ll) | (llmax % ll)
18429
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18430
| (ullmax / ull) | (ullmax % ull));
18436
rm -f conftest.$ac_objext conftest$ac_exeext
18437
if { (ac_try="$ac_link"
18438
case "(($ac_try" in
18439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440
*) ac_try_echo=$ac_try;;
18442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18443
$as_echo "$ac_try_echo") >&5
18444
(eval "$ac_link") 2>conftest.er1
18446
grep -v '^ *+' conftest.er1 >conftest.err
18448
cat conftest.err >&5
18449
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450
(exit $ac_status); } && {
18451
test -z "$ac_c_werror_flag" ||
18452
test ! -s conftest.err
18453
} && test -s conftest$ac_exeext && {
18454
test "$cross_compiling" = yes ||
18455
$as_test_x conftest$ac_exeext
18457
ac_cv_type_unsigned_long_long_int=yes
18459
$as_echo "$as_me: failed program was:" >&5
18460
sed 's/^/| /' conftest.$ac_ext >&5
18462
ac_cv_type_unsigned_long_long_int=no
18465
rm -rf conftest.dSYM
18466
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18467
conftest$ac_exeext conftest.$ac_ext
18469
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
18470
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18471
if test $ac_cv_type_unsigned_long_long_int = yes; then
18473
cat >>confdefs.h <<\_ACEOF
18474
#define HAVE_UNSIGNED_LONG_LONG_INT 1
18482
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
18484
test $ac_cv_type_unsigned_long_long_int = yes \
18485
&& ac_type='unsigned long long' \
18486
|| ac_type='unsigned long'
18488
cat >>confdefs.h <<_ACEOF
18489
#define uintmax_t $ac_type
18494
cat >>confdefs.h <<\_ACEOF
18495
#define HAVE_UINTMAX_T 1
18502
for ac_header in inttypes.h
18504
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18505
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18506
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18507
$as_echo_n "checking for $ac_header... " >&6; }
18508
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18509
$as_echo_n "(cached) " >&6
18511
ac_res=`eval 'as_val=${'$as_ac_Header'}
18512
$as_echo "$as_val"'`
18513
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18514
$as_echo "$ac_res" >&6; }
18516
# Is the header compilable?
18517
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18518
$as_echo_n "checking $ac_header usability... " >&6; }
18519
cat >conftest.$ac_ext <<_ACEOF
18522
cat confdefs.h >>conftest.$ac_ext
18523
cat >>conftest.$ac_ext <<_ACEOF
18524
/* end confdefs.h. */
18525
$ac_includes_default
18526
#include <$ac_header>
18528
rm -f conftest.$ac_objext
18529
if { (ac_try="$ac_compile"
18530
case "(($ac_try" in
18531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532
*) ac_try_echo=$ac_try;;
18534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18535
$as_echo "$ac_try_echo") >&5
18536
(eval "$ac_compile") 2>conftest.er1
18538
grep -v '^ *+' conftest.er1 >conftest.err
18540
cat conftest.err >&5
18541
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542
(exit $ac_status); } && {
18543
test -z "$ac_c_werror_flag" ||
18544
test ! -s conftest.err
18545
} && test -s conftest.$ac_objext; then
18546
ac_header_compiler=yes
18548
$as_echo "$as_me: failed program was:" >&5
18549
sed 's/^/| /' conftest.$ac_ext >&5
18551
ac_header_compiler=no
18554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18556
$as_echo "$ac_header_compiler" >&6; }
18558
# Is the header present?
18559
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18560
$as_echo_n "checking $ac_header presence... " >&6; }
18561
cat >conftest.$ac_ext <<_ACEOF
18564
cat confdefs.h >>conftest.$ac_ext
18565
cat >>conftest.$ac_ext <<_ACEOF
18566
/* end confdefs.h. */
18567
#include <$ac_header>
18569
if { (ac_try="$ac_cpp conftest.$ac_ext"
18570
case "(($ac_try" in
18571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572
*) ac_try_echo=$ac_try;;
18574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18575
$as_echo "$ac_try_echo") >&5
18576
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18578
grep -v '^ *+' conftest.er1 >conftest.err
18580
cat conftest.err >&5
18581
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582
(exit $ac_status); } >/dev/null && {
18583
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18584
test ! -s conftest.err
18586
ac_header_preproc=yes
18588
$as_echo "$as_me: failed program was:" >&5
18589
sed 's/^/| /' conftest.$ac_ext >&5
18591
ac_header_preproc=no
18594
rm -f conftest.err conftest.$ac_ext
18595
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18596
$as_echo "$ac_header_preproc" >&6; }
18598
# So? What about this header?
18599
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18601
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18602
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18603
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18604
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18605
ac_header_preproc=yes
18608
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18609
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18610
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18611
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18612
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18613
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18614
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18615
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18616
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18617
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18618
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18619
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18623
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18624
$as_echo_n "checking for $ac_header... " >&6; }
18625
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18626
$as_echo_n "(cached) " >&6
18628
eval "$as_ac_Header=\$ac_header_preproc"
18630
ac_res=`eval 'as_val=${'$as_ac_Header'}
18631
$as_echo "$as_val"'`
18632
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18633
$as_echo "$ac_res" >&6; }
18636
as_val=`eval 'as_val=${'$as_ac_Header'}
18637
$as_echo "$as_val"'`
18638
if test "x$as_val" = x""yes; then
18639
cat >>confdefs.h <<_ACEOF
18640
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18647
if test $ac_cv_header_inttypes_h = yes; then
18648
{ $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18649
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18650
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18651
$as_echo_n "(cached) " >&6
18654
cat >conftest.$ac_ext <<_ACEOF
18657
cat confdefs.h >>conftest.$ac_ext
18658
cat >>conftest.$ac_ext <<_ACEOF
18659
/* end confdefs.h. */
18660
#include <inttypes.h>
18673
rm -f conftest.$ac_objext
18674
if { (ac_try="$ac_compile"
18675
case "(($ac_try" in
18676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677
*) ac_try_echo=$ac_try;;
18679
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18680
$as_echo "$ac_try_echo") >&5
18681
(eval "$ac_compile") 2>conftest.er1
18683
grep -v '^ *+' conftest.er1 >conftest.err
18685
cat conftest.err >&5
18686
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687
(exit $ac_status); } && {
18688
test -z "$ac_c_werror_flag" ||
18689
test ! -s conftest.err
18690
} && test -s conftest.$ac_objext; then
18691
gt_cv_inttypes_pri_broken=no
18693
$as_echo "$as_me: failed program was:" >&5
18694
sed 's/^/| /' conftest.$ac_ext >&5
18696
gt_cv_inttypes_pri_broken=yes
18699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702
{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18703
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18705
if test "$gt_cv_inttypes_pri_broken" = yes; then
18707
cat >>confdefs.h <<_ACEOF
18708
#define PRI_MACROS_BROKEN 1
18711
PRI_MACROS_BROKEN=1
18713
PRI_MACROS_BROKEN=0
18721
# Check whether --enable-threads was given.
18722
if test "${enable_threads+set}" = set; then
18723
enableval=$enable_threads; gl_use_threads=$enableval
18726
osf*) gl_use_threads=no ;;
18727
*) gl_use_threads=yes ;;
18732
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18733
# For using <pthread.h>:
18736
# On OSF/1, the compiler needs the flag -D_REENTRANT so that it
18737
# groks <pthread.h>. cc also understands the flag -pthread, but
18738
# we don't use it because 1. gcc-2.95 doesn't understand -pthread,
18739
# 2. putting a flag into CPPFLAGS that has an effect on the linker
18740
# causes the AC_TRY_LINK test below to succeed unexpectedly,
18741
# leading to wrong values of LIBTHREAD and LTLIBTHREAD.
18742
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
18745
# Some systems optimize for single-threaded programs by default, and
18746
# need special flags to disable these optimizations. For example, the
18747
# definition of 'errno' in <errno.h>.
18749
aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
18750
solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
18758
if test "X$prefix" = "XNONE"; then
18759
acl_final_prefix="$ac_default_prefix"
18761
acl_final_prefix="$prefix"
18763
if test "X$exec_prefix" = "XNONE"; then
18764
acl_final_exec_prefix='${prefix}'
18766
acl_final_exec_prefix="$exec_prefix"
18768
acl_save_prefix="$prefix"
18769
prefix="$acl_final_prefix"
18770
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18771
prefix="$acl_save_prefix"
18774
# Check whether --with-gnu-ld was given.
18775
if test "${with_gnu_ld+set}" = set; then
18776
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18781
# Prepare PATH_SEPARATOR.
18782
# The user is always right.
18783
if test "${PATH_SEPARATOR+set}" != set; then
18784
echo "#! /bin/sh" >conf$$.sh
18785
echo "exit 0" >>conf$$.sh
18787
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18795
if test "$GCC" = yes; then
18796
# Check if gcc -print-prog-name=ld gives a path.
18797
{ $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
18798
$as_echo_n "checking for ld used by GCC... " >&6; }
18801
# gcc leaves a trailing carriage return which upsets mingw
18802
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18804
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18807
# Accept absolute paths.
18808
[\\/]* | [A-Za-z]:[\\/]*)
18809
re_direlt='/[^/][^/]*/\.\./'
18810
# Canonicalize the path of ld
18811
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18812
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18813
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18815
test -z "$LD" && LD="$ac_prog"
18818
# If it fails, then pretend we aren't using GCC.
18822
# If it is relative, then search for the first ld in PATH.
18823
with_gnu_ld=unknown
18826
elif test "$with_gnu_ld" = yes; then
18827
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18828
$as_echo_n "checking for GNU ld... " >&6; }
18830
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18831
$as_echo_n "checking for non-GNU ld... " >&6; }
18833
if test "${acl_cv_path_LD+set}" = set; then
18834
$as_echo_n "(cached) " >&6
18836
if test -z "$LD"; then
18837
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18838
for ac_dir in $PATH; do
18839
test -z "$ac_dir" && ac_dir=.
18840
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18841
acl_cv_path_LD="$ac_dir/$ac_prog"
18842
# Check to see if the program is GNU ld. I'd rather use --version,
18843
# but apparently some GNU ld's only accept -v.
18844
# Break only if it was the GNU/non-GNU ld that we prefer.
18845
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18846
*GNU* | *'with BFD'*)
18847
test "$with_gnu_ld" != no && break ;;
18849
test "$with_gnu_ld" != yes && break ;;
18855
acl_cv_path_LD="$LD" # Let the user override the test with a path.
18859
LD="$acl_cv_path_LD"
18860
if test -n "$LD"; then
18861
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
18862
$as_echo "$LD" >&6; }
18864
{ $as_echo "$as_me:$LINENO: result: no" >&5
18865
$as_echo "no" >&6; }
18867
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18868
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18869
{ (exit 1); exit 1; }; }
18870
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18871
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18872
if test "${acl_cv_prog_gnu_ld+set}" = set; then
18873
$as_echo_n "(cached) " >&6
18875
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
18876
case `$LD -v 2>&1 </dev/null` in
18877
*GNU* | *'with BFD'*)
18878
acl_cv_prog_gnu_ld=yes ;;
18880
acl_cv_prog_gnu_ld=no ;;
18883
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
18884
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18885
with_gnu_ld=$acl_cv_prog_gnu_ld
18890
{ $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
18891
$as_echo_n "checking for shared library run path origin... " >&6; }
18892
if test "${acl_cv_rpath+set}" = set; then
18893
$as_echo_n "(cached) " >&6
18896
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18897
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18899
rm -f ./conftest.sh
18903
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
18904
$as_echo "$acl_cv_rpath" >&6; }
18906
acl_libext="$acl_cv_libext"
18907
acl_shlibext="$acl_cv_shlibext"
18908
acl_libname_spec="$acl_cv_libname_spec"
18909
acl_library_names_spec="$acl_cv_library_names_spec"
18910
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18911
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18912
acl_hardcode_direct="$acl_cv_hardcode_direct"
18913
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18914
# Check whether --enable-rpath was given.
18915
if test "${enable_rpath+set}" = set; then
18916
enableval=$enable_rpath; :
18924
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18925
if test -n "$searchpath"; then
18926
acl_save_IFS="${IFS= }"; IFS=":"
18927
for searchdir in $searchpath; do
18928
if test -d "$searchdir"; then
18929
case "$searchdir" in
18930
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18931
*) searchdir=`cd "$searchdir" && pwd`
18932
case "$searchdir" in
18933
*/lib64 ) acl_libdirstem=lib64 ;;
18938
IFS="$acl_save_IFS"
18943
gl_threads_api=none
18948
if test "$gl_use_threads" != no; then
18949
{ $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
18950
$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18952
cat >conftest.$ac_ext <<_ACEOF
18955
cat confdefs.h >>conftest.$ac_ext
18956
cat >>conftest.$ac_ext <<_ACEOF
18957
/* end confdefs.h. */
18958
extern void xyzzy ();
18968
rm -f conftest.$ac_objext conftest$ac_exeext
18969
if { (ac_try="$ac_link"
18970
case "(($ac_try" in
18971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972
*) ac_try_echo=$ac_try;;
18974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18975
$as_echo "$ac_try_echo") >&5
18976
(eval "$ac_link") 2>conftest.er1
18978
grep -v '^ *+' conftest.er1 >conftest.err
18980
cat conftest.err >&5
18981
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982
(exit $ac_status); } && {
18983
test -z "$ac_c_werror_flag" ||
18984
test ! -s conftest.err
18985
} && test -s conftest$ac_exeext && {
18986
test "$cross_compiling" = yes ||
18987
$as_test_x conftest$ac_exeext
18991
$as_echo "$as_me: failed program was:" >&5
18992
sed 's/^/| /' conftest.$ac_ext >&5
18997
rm -rf conftest.dSYM
18998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18999
conftest$ac_exeext conftest.$ac_ext
19000
{ $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
19001
$as_echo "$gl_have_weak" >&6; }
19002
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
19003
# On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19004
# it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
19005
if test "${ac_cv_header_pthread_h+set}" = set; then
19006
{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
19007
$as_echo_n "checking for pthread.h... " >&6; }
19008
if test "${ac_cv_header_pthread_h+set}" = set; then
19009
$as_echo_n "(cached) " >&6
19011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19012
$as_echo "$ac_cv_header_pthread_h" >&6; }
19014
# Is the header compilable?
19015
{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
19016
$as_echo_n "checking pthread.h usability... " >&6; }
19017
cat >conftest.$ac_ext <<_ACEOF
19020
cat confdefs.h >>conftest.$ac_ext
19021
cat >>conftest.$ac_ext <<_ACEOF
19022
/* end confdefs.h. */
19023
$ac_includes_default
19024
#include <pthread.h>
19026
rm -f conftest.$ac_objext
19027
if { (ac_try="$ac_compile"
19028
case "(($ac_try" in
19029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030
*) ac_try_echo=$ac_try;;
19032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19033
$as_echo "$ac_try_echo") >&5
19034
(eval "$ac_compile") 2>conftest.er1
19036
grep -v '^ *+' conftest.er1 >conftest.err
19038
cat conftest.err >&5
19039
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040
(exit $ac_status); } && {
19041
test -z "$ac_c_werror_flag" ||
19042
test ! -s conftest.err
19043
} && test -s conftest.$ac_objext; then
19044
ac_header_compiler=yes
19046
$as_echo "$as_me: failed program was:" >&5
19047
sed 's/^/| /' conftest.$ac_ext >&5
19049
ac_header_compiler=no
19052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19054
$as_echo "$ac_header_compiler" >&6; }
19056
# Is the header present?
19057
{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
19058
$as_echo_n "checking pthread.h presence... " >&6; }
19059
cat >conftest.$ac_ext <<_ACEOF
19062
cat confdefs.h >>conftest.$ac_ext
19063
cat >>conftest.$ac_ext <<_ACEOF
19064
/* end confdefs.h. */
19065
#include <pthread.h>
19067
if { (ac_try="$ac_cpp conftest.$ac_ext"
19068
case "(($ac_try" in
19069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070
*) ac_try_echo=$ac_try;;
19072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19073
$as_echo "$ac_try_echo") >&5
19074
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19076
grep -v '^ *+' conftest.er1 >conftest.err
19078
cat conftest.err >&5
19079
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080
(exit $ac_status); } >/dev/null && {
19081
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19082
test ! -s conftest.err
19084
ac_header_preproc=yes
19086
$as_echo "$as_me: failed program was:" >&5
19087
sed 's/^/| /' conftest.$ac_ext >&5
19089
ac_header_preproc=no
19092
rm -f conftest.err conftest.$ac_ext
19093
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19094
$as_echo "$ac_header_preproc" >&6; }
19096
# So? What about this header?
19097
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19099
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19100
$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19101
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19102
$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19103
ac_header_preproc=yes
19106
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19107
$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19108
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19109
$as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19110
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19111
$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19112
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19113
$as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19114
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19115
$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19116
{ $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19117
$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19121
{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
19122
$as_echo_n "checking for pthread.h... " >&6; }
19123
if test "${ac_cv_header_pthread_h+set}" = set; then
19124
$as_echo_n "(cached) " >&6
19126
ac_cv_header_pthread_h=$ac_header_preproc
19128
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19129
$as_echo "$ac_cv_header_pthread_h" >&6; }
19132
if test "x$ac_cv_header_pthread_h" = x""yes; then
19133
gl_have_pthread_h=yes
19135
gl_have_pthread_h=no
19139
if test "$gl_have_pthread_h" = yes; then
19140
# Other possible tests:
19141
# -lpthreads (FSU threads, PCthreads)
19144
# Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19145
# in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19146
# the second one only in libpthread, and lock.c needs it.
19147
cat >conftest.$ac_ext <<_ACEOF
19150
cat confdefs.h >>conftest.$ac_ext
19151
cat >>conftest.$ac_ext <<_ACEOF
19152
/* end confdefs.h. */
19153
#include <pthread.h>
19157
pthread_mutex_lock((pthread_mutex_t*)0);
19158
pthread_mutexattr_init((pthread_mutexattr_t*)0);
19163
rm -f conftest.$ac_objext conftest$ac_exeext
19164
if { (ac_try="$ac_link"
19165
case "(($ac_try" in
19166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167
*) ac_try_echo=$ac_try;;
19169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170
$as_echo "$ac_try_echo") >&5
19171
(eval "$ac_link") 2>conftest.er1
19173
grep -v '^ *+' conftest.er1 >conftest.err
19175
cat conftest.err >&5
19176
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177
(exit $ac_status); } && {
19178
test -z "$ac_c_werror_flag" ||
19179
test ! -s conftest.err
19180
} && test -s conftest$ac_exeext && {
19181
test "$cross_compiling" = yes ||
19182
$as_test_x conftest$ac_exeext
19184
gl_have_pthread=yes
19186
$as_echo "$as_me: failed program was:" >&5
19187
sed 's/^/| /' conftest.$ac_ext >&5
19192
rm -rf conftest.dSYM
19193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19194
conftest$ac_exeext conftest.$ac_ext
19195
# Test for libpthread by looking for pthread_kill. (Not pthread_self,
19196
# since it is defined as a macro on OSF/1.)
19197
if test -n "$gl_have_pthread"; then
19198
# The program links fine without libpthread. But it may actually
19199
# need to link with libpthread in order to create multiple threads.
19200
{ $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
19201
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19202
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
19203
$as_echo_n "(cached) " >&6
19205
ac_check_lib_save_LIBS=$LIBS
19206
LIBS="-lpthread $LIBS"
19207
cat >conftest.$ac_ext <<_ACEOF
19210
cat confdefs.h >>conftest.$ac_ext
19211
cat >>conftest.$ac_ext <<_ACEOF
19212
/* end confdefs.h. */
19214
/* Override any GCC internal prototype to avoid an error.
19215
Use char because int might match the return type of a GCC
19216
builtin and then its argument prototype would still apply. */
19220
char pthread_kill ();
19224
return pthread_kill ();
19229
rm -f conftest.$ac_objext conftest$ac_exeext
19230
if { (ac_try="$ac_link"
19231
case "(($ac_try" in
19232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233
*) ac_try_echo=$ac_try;;
19235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19236
$as_echo "$ac_try_echo") >&5
19237
(eval "$ac_link") 2>conftest.er1
19239
grep -v '^ *+' conftest.er1 >conftest.err
19241
cat conftest.err >&5
19242
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243
(exit $ac_status); } && {
19244
test -z "$ac_c_werror_flag" ||
19245
test ! -s conftest.err
19246
} && test -s conftest$ac_exeext && {
19247
test "$cross_compiling" = yes ||
19248
$as_test_x conftest$ac_exeext
19250
ac_cv_lib_pthread_pthread_kill=yes
19252
$as_echo "$as_me: failed program was:" >&5
19253
sed 's/^/| /' conftest.$ac_ext >&5
19255
ac_cv_lib_pthread_pthread_kill=no
19258
rm -rf conftest.dSYM
19259
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19260
conftest$ac_exeext conftest.$ac_ext
19261
LIBS=$ac_check_lib_save_LIBS
19263
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
19264
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19265
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
19266
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19267
# On Solaris and HP-UX, most pthread functions exist also in libc.
19268
# Therefore pthread_in_use() needs to actually try to create a
19269
# thread: pthread_create from libc will fail, whereas
19270
# pthread_create will actually create a thread.
19274
cat >>confdefs.h <<\_ACEOF
19275
#define PTHREAD_IN_USE_DETECTION_HARD 1
19283
# Some library is needed. Try libpthread and libc_r.
19284
{ $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
19285
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19286
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
19287
$as_echo_n "(cached) " >&6
19289
ac_check_lib_save_LIBS=$LIBS
19290
LIBS="-lpthread $LIBS"
19291
cat >conftest.$ac_ext <<_ACEOF
19294
cat confdefs.h >>conftest.$ac_ext
19295
cat >>conftest.$ac_ext <<_ACEOF
19296
/* end confdefs.h. */
19298
/* Override any GCC internal prototype to avoid an error.
19299
Use char because int might match the return type of a GCC
19300
builtin and then its argument prototype would still apply. */
19304
char pthread_kill ();
19308
return pthread_kill ();
19313
rm -f conftest.$ac_objext conftest$ac_exeext
19314
if { (ac_try="$ac_link"
19315
case "(($ac_try" in
19316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317
*) ac_try_echo=$ac_try;;
19319
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19320
$as_echo "$ac_try_echo") >&5
19321
(eval "$ac_link") 2>conftest.er1
19323
grep -v '^ *+' conftest.er1 >conftest.err
19325
cat conftest.err >&5
19326
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327
(exit $ac_status); } && {
19328
test -z "$ac_c_werror_flag" ||
19329
test ! -s conftest.err
19330
} && test -s conftest$ac_exeext && {
19331
test "$cross_compiling" = yes ||
19332
$as_test_x conftest$ac_exeext
19334
ac_cv_lib_pthread_pthread_kill=yes
19336
$as_echo "$as_me: failed program was:" >&5
19337
sed 's/^/| /' conftest.$ac_ext >&5
19339
ac_cv_lib_pthread_pthread_kill=no
19342
rm -rf conftest.dSYM
19343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19344
conftest$ac_exeext conftest.$ac_ext
19345
LIBS=$ac_check_lib_save_LIBS
19347
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
19348
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19349
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
19350
gl_have_pthread=yes
19351
LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
19352
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19355
if test -z "$gl_have_pthread"; then
19357
{ $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
19358
$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
19359
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
19360
$as_echo_n "(cached) " >&6
19362
ac_check_lib_save_LIBS=$LIBS
19364
cat >conftest.$ac_ext <<_ACEOF
19367
cat confdefs.h >>conftest.$ac_ext
19368
cat >>conftest.$ac_ext <<_ACEOF
19369
/* end confdefs.h. */
19371
/* Override any GCC internal prototype to avoid an error.
19372
Use char because int might match the return type of a GCC
19373
builtin and then its argument prototype would still apply. */
19377
char pthread_kill ();
19381
return pthread_kill ();
19386
rm -f conftest.$ac_objext conftest$ac_exeext
19387
if { (ac_try="$ac_link"
19388
case "(($ac_try" in
19389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390
*) ac_try_echo=$ac_try;;
19392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19393
$as_echo "$ac_try_echo") >&5
19394
(eval "$ac_link") 2>conftest.er1
19396
grep -v '^ *+' conftest.er1 >conftest.err
19398
cat conftest.err >&5
19399
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400
(exit $ac_status); } && {
19401
test -z "$ac_c_werror_flag" ||
19402
test ! -s conftest.err
19403
} && test -s conftest$ac_exeext && {
19404
test "$cross_compiling" = yes ||
19405
$as_test_x conftest$ac_exeext
19407
ac_cv_lib_c_r_pthread_kill=yes
19409
$as_echo "$as_me: failed program was:" >&5
19410
sed 's/^/| /' conftest.$ac_ext >&5
19412
ac_cv_lib_c_r_pthread_kill=no
19415
rm -rf conftest.dSYM
19416
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19417
conftest$ac_exeext conftest.$ac_ext
19418
LIBS=$ac_check_lib_save_LIBS
19420
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
19421
$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
19422
if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
19423
gl_have_pthread=yes
19424
LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
19425
LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
19430
if test -n "$gl_have_pthread"; then
19431
gl_threads_api=posix
19433
cat >>confdefs.h <<\_ACEOF
19434
#define USE_POSIX_THREADS 1
19437
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19438
if test $gl_have_weak = yes; then
19440
cat >>confdefs.h <<\_ACEOF
19441
#define USE_POSIX_THREADS_WEAK 1
19448
# OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
19449
# pthread_rwlock_* functions.
19450
{ $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
19451
$as_echo_n "checking for pthread_rwlock_t... " >&6; }
19452
if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
19453
$as_echo_n "(cached) " >&6
19455
ac_cv_type_pthread_rwlock_t=no
19456
cat >conftest.$ac_ext <<_ACEOF
19459
cat confdefs.h >>conftest.$ac_ext
19460
cat >>conftest.$ac_ext <<_ACEOF
19461
/* end confdefs.h. */
19462
#include <pthread.h>
19467
if (sizeof (pthread_rwlock_t))
19473
rm -f conftest.$ac_objext
19474
if { (ac_try="$ac_compile"
19475
case "(($ac_try" in
19476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477
*) ac_try_echo=$ac_try;;
19479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19480
$as_echo "$ac_try_echo") >&5
19481
(eval "$ac_compile") 2>conftest.er1
19483
grep -v '^ *+' conftest.er1 >conftest.err
19485
cat conftest.err >&5
19486
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487
(exit $ac_status); } && {
19488
test -z "$ac_c_werror_flag" ||
19489
test ! -s conftest.err
19490
} && test -s conftest.$ac_objext; then
19491
cat >conftest.$ac_ext <<_ACEOF
19494
cat confdefs.h >>conftest.$ac_ext
19495
cat >>conftest.$ac_ext <<_ACEOF
19496
/* end confdefs.h. */
19497
#include <pthread.h>
19502
if (sizeof ((pthread_rwlock_t)))
19508
rm -f conftest.$ac_objext
19509
if { (ac_try="$ac_compile"
19510
case "(($ac_try" in
19511
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512
*) ac_try_echo=$ac_try;;
19514
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19515
$as_echo "$ac_try_echo") >&5
19516
(eval "$ac_compile") 2>conftest.er1
19518
grep -v '^ *+' conftest.er1 >conftest.err
19520
cat conftest.err >&5
19521
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522
(exit $ac_status); } && {
19523
test -z "$ac_c_werror_flag" ||
19524
test ! -s conftest.err
19525
} && test -s conftest.$ac_objext; then
19528
$as_echo "$as_me: failed program was:" >&5
19529
sed 's/^/| /' conftest.$ac_ext >&5
19531
ac_cv_type_pthread_rwlock_t=yes
19534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536
$as_echo "$as_me: failed program was:" >&5
19537
sed 's/^/| /' conftest.$ac_ext >&5
19542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
19545
$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
19546
if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
19548
cat >>confdefs.h <<\_ACEOF
19549
#define HAVE_PTHREAD_RWLOCK 1
19554
# glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
19555
cat >conftest.$ac_ext <<_ACEOF
19558
cat confdefs.h >>conftest.$ac_ext
19559
cat >>conftest.$ac_ext <<_ACEOF
19560
/* end confdefs.h. */
19561
#include <pthread.h>
19565
#if __FreeBSD__ == 4
19566
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
19568
int x = (int)PTHREAD_MUTEX_RECURSIVE;
19575
rm -f conftest.$ac_objext
19576
if { (ac_try="$ac_compile"
19577
case "(($ac_try" in
19578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579
*) ac_try_echo=$ac_try;;
19581
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582
$as_echo "$ac_try_echo") >&5
19583
(eval "$ac_compile") 2>conftest.er1
19585
grep -v '^ *+' conftest.er1 >conftest.err
19587
cat conftest.err >&5
19588
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589
(exit $ac_status); } && {
19590
test -z "$ac_c_werror_flag" ||
19591
test ! -s conftest.err
19592
} && test -s conftest.$ac_objext; then
19594
cat >>confdefs.h <<\_ACEOF
19595
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
19599
$as_echo "$as_me: failed program was:" >&5
19600
sed 's/^/| /' conftest.$ac_ext >&5
19605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609
if test -z "$gl_have_pthread"; then
19610
if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
19611
gl_have_solaristhread=
19612
gl_save_LIBS="$LIBS"
19613
LIBS="$LIBS -lthread"
19614
cat >conftest.$ac_ext <<_ACEOF
19617
cat confdefs.h >>conftest.$ac_ext
19618
cat >>conftest.$ac_ext <<_ACEOF
19619
/* end confdefs.h. */
19620
#include <thread.h>
19630
rm -f conftest.$ac_objext conftest$ac_exeext
19631
if { (ac_try="$ac_link"
19632
case "(($ac_try" in
19633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634
*) ac_try_echo=$ac_try;;
19636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19637
$as_echo "$ac_try_echo") >&5
19638
(eval "$ac_link") 2>conftest.er1
19640
grep -v '^ *+' conftest.er1 >conftest.err
19642
cat conftest.err >&5
19643
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644
(exit $ac_status); } && {
19645
test -z "$ac_c_werror_flag" ||
19646
test ! -s conftest.err
19647
} && test -s conftest$ac_exeext && {
19648
test "$cross_compiling" = yes ||
19649
$as_test_x conftest$ac_exeext
19651
gl_have_solaristhread=yes
19653
$as_echo "$as_me: failed program was:" >&5
19654
sed 's/^/| /' conftest.$ac_ext >&5
19659
rm -rf conftest.dSYM
19660
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661
conftest$ac_exeext conftest.$ac_ext
19662
LIBS="$gl_save_LIBS"
19663
if test -n "$gl_have_solaristhread"; then
19664
gl_threads_api=solaris
19666
LTLIBTHREAD=-lthread
19667
LIBMULTITHREAD="$LIBTHREAD"
19668
LTLIBMULTITHREAD="$LTLIBTHREAD"
19670
cat >>confdefs.h <<\_ACEOF
19671
#define USE_SOLARIS_THREADS 1
19674
if test $gl_have_weak = yes; then
19676
cat >>confdefs.h <<\_ACEOF
19677
#define USE_SOLARIS_THREADS_WEAK 1
19686
if test "$gl_use_threads" = pth; then
19687
gl_save_CPPFLAGS="$CPPFLAGS"
19693
{ $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
19694
$as_echo_n "checking how to link with libpth... " >&6; }
19695
if test "${ac_cv_libpth_libs+set}" = set; then
19696
$as_echo_n "(cached) " >&6
19705
acl_save_prefix="$prefix"
19706
prefix="$acl_final_prefix"
19707
acl_save_exec_prefix="$exec_prefix"
19708
exec_prefix="$acl_final_exec_prefix"
19710
eval additional_includedir=\"$includedir\"
19711
eval additional_libdir=\"$libdir\"
19713
exec_prefix="$acl_save_exec_prefix"
19714
prefix="$acl_save_prefix"
19717
# Check whether --with-libpth-prefix was given.
19718
if test "${with_libpth_prefix+set}" = set; then
19719
withval=$with_libpth_prefix;
19720
if test "X$withval" = "Xno"; then
19723
if test "X$withval" = "X"; then
19725
acl_save_prefix="$prefix"
19726
prefix="$acl_final_prefix"
19727
acl_save_exec_prefix="$exec_prefix"
19728
exec_prefix="$acl_final_exec_prefix"
19730
eval additional_includedir=\"$includedir\"
19731
eval additional_libdir=\"$libdir\"
19733
exec_prefix="$acl_save_exec_prefix"
19734
prefix="$acl_save_prefix"
19737
additional_includedir="$withval/include"
19738
additional_libdir="$withval/$acl_libdirstem"
19750
names_already_handled=
19751
names_next_round='pth '
19752
while test -n "$names_next_round"; do
19753
names_this_round="$names_next_round"
19755
for name in $names_this_round; do
19757
for n in $names_already_handled; do
19758
if test "$n" = "$name"; then
19759
already_handled=yes
19763
if test -z "$already_handled"; then
19764
names_already_handled="$names_already_handled $name"
19765
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19766
eval value=\"\$HAVE_LIB$uppername\"
19767
if test -n "$value"; then
19768
if test "$value" = yes; then
19769
eval value=\"\$LIB$uppername\"
19770
test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
19771
eval value=\"\$LTLIB$uppername\"
19772
test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
19781
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19782
if test -n "$acl_shlibext"; then
19783
shrext=".$acl_shlibext" # typically: shrext=.so
19787
if test $use_additional = yes; then
19788
dir="$additional_libdir"
19789
if test -n "$acl_shlibext"; then
19790
if test -f "$dir/$libname$shrext"; then
19792
found_so="$dir/$libname$shrext"
19794
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19795
ver=`(cd "$dir" && \
19796
for f in "$libname$shrext".*; do echo "$f"; done \
19797
| sed -e "s,^$libname$shrext\\\\.,," \
19798
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19799
| sed 1q ) 2>/dev/null`
19800
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19802
found_so="$dir/$libname$shrext.$ver"
19805
eval library_names=\"$acl_library_names_spec\"
19806
for f in $library_names; do
19807
if test -f "$dir/$f"; then
19816
if test "X$found_dir" = "X"; then
19817
if test -f "$dir/$libname.$acl_libext"; then
19819
found_a="$dir/$libname.$acl_libext"
19822
if test "X$found_dir" != "X"; then
19823
if test -f "$dir/$libname.la"; then
19824
found_la="$dir/$libname.la"
19828
if test "X$found_dir" = "X"; then
19829
for x in $LDFLAGS $LTLIBPTH; do
19831
acl_save_prefix="$prefix"
19832
prefix="$acl_final_prefix"
19833
acl_save_exec_prefix="$exec_prefix"
19834
exec_prefix="$acl_final_exec_prefix"
19836
exec_prefix="$acl_save_exec_prefix"
19837
prefix="$acl_save_prefix"
19841
dir=`echo "X$x" | sed -e 's/^X-L//'`
19842
if test -n "$acl_shlibext"; then
19843
if test -f "$dir/$libname$shrext"; then
19845
found_so="$dir/$libname$shrext"
19847
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19848
ver=`(cd "$dir" && \
19849
for f in "$libname$shrext".*; do echo "$f"; done \
19850
| sed -e "s,^$libname$shrext\\\\.,," \
19851
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19852
| sed 1q ) 2>/dev/null`
19853
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19855
found_so="$dir/$libname$shrext.$ver"
19858
eval library_names=\"$acl_library_names_spec\"
19859
for f in $library_names; do
19860
if test -f "$dir/$f"; then
19869
if test "X$found_dir" = "X"; then
19870
if test -f "$dir/$libname.$acl_libext"; then
19872
found_a="$dir/$libname.$acl_libext"
19875
if test "X$found_dir" != "X"; then
19876
if test -f "$dir/$libname.la"; then
19877
found_la="$dir/$libname.la"
19882
if test "X$found_dir" != "X"; then
19887
if test "X$found_dir" != "X"; then
19888
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19889
if test "X$found_so" != "X"; then
19890
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19891
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19894
for x in $ltrpathdirs; do
19895
if test "X$x" = "X$found_dir"; then
19900
if test -z "$haveit"; then
19901
ltrpathdirs="$ltrpathdirs $found_dir"
19903
if test "$acl_hardcode_direct" = yes; then
19904
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19906
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19907
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19909
for x in $rpathdirs; do
19910
if test "X$x" = "X$found_dir"; then
19915
if test -z "$haveit"; then
19916
rpathdirs="$rpathdirs $found_dir"
19920
for x in $LDFLAGS $LIBPTH; do
19922
acl_save_prefix="$prefix"
19923
prefix="$acl_final_prefix"
19924
acl_save_exec_prefix="$exec_prefix"
19925
exec_prefix="$acl_final_exec_prefix"
19927
exec_prefix="$acl_save_exec_prefix"
19928
prefix="$acl_save_prefix"
19930
if test "X$x" = "X-L$found_dir"; then
19935
if test -z "$haveit"; then
19936
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19938
if test "$acl_hardcode_minus_L" != no; then
19939
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19941
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19947
if test "X$found_a" != "X"; then
19948
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19950
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19953
additional_includedir=
19954
case "$found_dir" in
19955
*/$acl_libdirstem | */$acl_libdirstem/)
19956
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19957
LIBPTH_PREFIX="$basedir"
19958
additional_includedir="$basedir/include"
19961
if test "X$additional_includedir" != "X"; then
19962
if test "X$additional_includedir" != "X/usr/include"; then
19964
if test "X$additional_includedir" = "X/usr/local/include"; then
19965
if test -n "$GCC"; then
19967
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19971
if test -z "$haveit"; then
19972
for x in $CPPFLAGS $INCPTH; do
19974
acl_save_prefix="$prefix"
19975
prefix="$acl_final_prefix"
19976
acl_save_exec_prefix="$exec_prefix"
19977
exec_prefix="$acl_final_exec_prefix"
19979
exec_prefix="$acl_save_exec_prefix"
19980
prefix="$acl_save_prefix"
19982
if test "X$x" = "X-I$additional_includedir"; then
19987
if test -z "$haveit"; then
19988
if test -d "$additional_includedir"; then
19989
INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19995
if test -n "$found_la"; then
19996
save_libdir="$libdir"
19997
case "$found_la" in
19998
*/* | *\\*) . "$found_la" ;;
19999
*) . "./$found_la" ;;
20001
libdir="$save_libdir"
20002
for dep in $dependency_libs; do
20005
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20006
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20008
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20009
if test -n "$GCC"; then
20011
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20015
if test -z "$haveit"; then
20017
for x in $LDFLAGS $LIBPTH; do
20019
acl_save_prefix="$prefix"
20020
prefix="$acl_final_prefix"
20021
acl_save_exec_prefix="$exec_prefix"
20022
exec_prefix="$acl_final_exec_prefix"
20024
exec_prefix="$acl_save_exec_prefix"
20025
prefix="$acl_save_prefix"
20027
if test "X$x" = "X-L$additional_libdir"; then
20032
if test -z "$haveit"; then
20033
if test -d "$additional_libdir"; then
20034
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
20038
for x in $LDFLAGS $LTLIBPTH; do
20040
acl_save_prefix="$prefix"
20041
prefix="$acl_final_prefix"
20042
acl_save_exec_prefix="$exec_prefix"
20043
exec_prefix="$acl_final_exec_prefix"
20045
exec_prefix="$acl_save_exec_prefix"
20046
prefix="$acl_save_prefix"
20048
if test "X$x" = "X-L$additional_libdir"; then
20053
if test -z "$haveit"; then
20054
if test -d "$additional_libdir"; then
20055
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
20062
dir=`echo "X$dep" | sed -e 's/^X-R//'`
20063
if test "$enable_rpath" != no; then
20065
for x in $rpathdirs; do
20066
if test "X$x" = "X$dir"; then
20071
if test -z "$haveit"; then
20072
rpathdirs="$rpathdirs $dir"
20075
for x in $ltrpathdirs; do
20076
if test "X$x" = "X$dir"; then
20081
if test -z "$haveit"; then
20082
ltrpathdirs="$ltrpathdirs $dir"
20087
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20090
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20093
LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
20094
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
20100
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
20101
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
20107
if test "X$rpathdirs" != "X"; then
20108
if test -n "$acl_hardcode_libdir_separator"; then
20110
for found_dir in $rpathdirs; do
20111
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20113
acl_save_libdir="$libdir"
20115
eval flag=\"$acl_hardcode_libdir_flag_spec\"
20116
libdir="$acl_save_libdir"
20117
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
20119
for found_dir in $rpathdirs; do
20120
acl_save_libdir="$libdir"
20121
libdir="$found_dir"
20122
eval flag=\"$acl_hardcode_libdir_flag_spec\"
20123
libdir="$acl_save_libdir"
20124
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
20128
if test "X$ltrpathdirs" != "X"; then
20129
for found_dir in $ltrpathdirs; do
20130
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
20134
ac_cv_libpth_libs="$LIBPTH"
20135
ac_cv_libpth_ltlibs="$LTLIBPTH"
20136
ac_cv_libpth_cppflags="$INCPTH"
20137
ac_cv_libpth_prefix="$LIBPTH_PREFIX"
20140
{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
20141
$as_echo "$ac_cv_libpth_libs" >&6; }
20142
LIBPTH="$ac_cv_libpth_libs"
20143
LTLIBPTH="$ac_cv_libpth_ltlibs"
20144
INCPTH="$ac_cv_libpth_cppflags"
20145
LIBPTH_PREFIX="$ac_cv_libpth_prefix"
20147
for element in $INCPTH; do
20149
for x in $CPPFLAGS; do
20151
acl_save_prefix="$prefix"
20152
prefix="$acl_final_prefix"
20153
acl_save_exec_prefix="$exec_prefix"
20154
exec_prefix="$acl_final_exec_prefix"
20156
exec_prefix="$acl_save_exec_prefix"
20157
prefix="$acl_save_prefix"
20159
if test "X$x" = "X$element"; then
20164
if test -z "$haveit"; then
20165
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20177
gl_save_LIBS="$LIBS"
20179
cat >conftest.$ac_ext <<_ACEOF
20182
cat confdefs.h >>conftest.$ac_ext
20183
cat >>conftest.$ac_ext <<_ACEOF
20184
/* end confdefs.h. */
20194
rm -f conftest.$ac_objext conftest$ac_exeext
20195
if { (ac_try="$ac_link"
20196
case "(($ac_try" in
20197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198
*) ac_try_echo=$ac_try;;
20200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20201
$as_echo "$ac_try_echo") >&5
20202
(eval "$ac_link") 2>conftest.er1
20204
grep -v '^ *+' conftest.er1 >conftest.err
20206
cat conftest.err >&5
20207
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208
(exit $ac_status); } && {
20209
test -z "$ac_c_werror_flag" ||
20210
test ! -s conftest.err
20211
} && test -s conftest$ac_exeext && {
20212
test "$cross_compiling" = yes ||
20213
$as_test_x conftest$ac_exeext
20217
$as_echo "$as_me: failed program was:" >&5
20218
sed 's/^/| /' conftest.$ac_ext >&5
20223
rm -rf conftest.dSYM
20224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225
conftest$ac_exeext conftest.$ac_ext
20226
LIBS="$gl_save_LIBS"
20227
if test -n "$gl_have_pth"; then
20229
LIBTHREAD="$LIBPTH"
20230
LTLIBTHREAD="$LTLIBPTH"
20231
LIBMULTITHREAD="$LIBTHREAD"
20232
LTLIBMULTITHREAD="$LTLIBTHREAD"
20234
cat >>confdefs.h <<\_ACEOF
20235
#define USE_PTH_THREADS 1
20238
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
20239
if test $gl_have_weak = yes; then
20241
cat >>confdefs.h <<\_ACEOF
20242
#define USE_PTH_THREADS_WEAK 1
20250
CPPFLAGS="$gl_save_CPPFLAGS"
20253
if test -z "$gl_have_pthread"; then
20254
if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
20255
if { case "$host_os" in
20260
gl_threads_api=win32
20262
cat >>confdefs.h <<\_ACEOF
20263
#define USE_WIN32_THREADS 1
20270
{ $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
20271
$as_echo_n "checking for multithread API to use... " >&6; }
20272
{ $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
20273
$as_echo "$gl_threads_api" >&6; }
20296
acl_save_prefix="$prefix"
20297
prefix="$acl_final_prefix"
20298
acl_save_exec_prefix="$exec_prefix"
20299
exec_prefix="$acl_final_exec_prefix"
20301
eval additional_includedir=\"$includedir\"
20302
eval additional_libdir=\"$libdir\"
20304
exec_prefix="$acl_save_exec_prefix"
20305
prefix="$acl_save_prefix"
20308
# Check whether --with-libiconv-prefix was given.
20309
if test "${with_libiconv_prefix+set}" = set; then
20310
withval=$with_libiconv_prefix;
20311
if test "X$withval" = "Xno"; then
20314
if test "X$withval" = "X"; then
20316
acl_save_prefix="$prefix"
20317
prefix="$acl_final_prefix"
20318
acl_save_exec_prefix="$exec_prefix"
20319
exec_prefix="$acl_final_exec_prefix"
20321
eval additional_includedir=\"$includedir\"
20322
eval additional_libdir=\"$libdir\"
20324
exec_prefix="$acl_save_exec_prefix"
20325
prefix="$acl_save_prefix"
20328
additional_includedir="$withval/include"
20329
additional_libdir="$withval/$acl_libdirstem"
20341
names_already_handled=
20342
names_next_round='iconv '
20343
while test -n "$names_next_round"; do
20344
names_this_round="$names_next_round"
20346
for name in $names_this_round; do
20348
for n in $names_already_handled; do
20349
if test "$n" = "$name"; then
20350
already_handled=yes
20354
if test -z "$already_handled"; then
20355
names_already_handled="$names_already_handled $name"
20356
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20357
eval value=\"\$HAVE_LIB$uppername\"
20358
if test -n "$value"; then
20359
if test "$value" = yes; then
20360
eval value=\"\$LIB$uppername\"
20361
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20362
eval value=\"\$LTLIB$uppername\"
20363
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20372
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20373
if test -n "$acl_shlibext"; then
20374
shrext=".$acl_shlibext" # typically: shrext=.so
20378
if test $use_additional = yes; then
20379
dir="$additional_libdir"
20380
if test -n "$acl_shlibext"; then
20381
if test -f "$dir/$libname$shrext"; then
20383
found_so="$dir/$libname$shrext"
20385
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20386
ver=`(cd "$dir" && \
20387
for f in "$libname$shrext".*; do echo "$f"; done \
20388
| sed -e "s,^$libname$shrext\\\\.,," \
20389
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20390
| sed 1q ) 2>/dev/null`
20391
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20393
found_so="$dir/$libname$shrext.$ver"
20396
eval library_names=\"$acl_library_names_spec\"
20397
for f in $library_names; do
20398
if test -f "$dir/$f"; then
20407
if test "X$found_dir" = "X"; then
20408
if test -f "$dir/$libname.$acl_libext"; then
20410
found_a="$dir/$libname.$acl_libext"
20413
if test "X$found_dir" != "X"; then
20414
if test -f "$dir/$libname.la"; then
20415
found_la="$dir/$libname.la"
20419
if test "X$found_dir" = "X"; then
20420
for x in $LDFLAGS $LTLIBICONV; do
20422
acl_save_prefix="$prefix"
20423
prefix="$acl_final_prefix"
20424
acl_save_exec_prefix="$exec_prefix"
20425
exec_prefix="$acl_final_exec_prefix"
20427
exec_prefix="$acl_save_exec_prefix"
20428
prefix="$acl_save_prefix"
20432
dir=`echo "X$x" | sed -e 's/^X-L//'`
20433
if test -n "$acl_shlibext"; then
20434
if test -f "$dir/$libname$shrext"; then
20436
found_so="$dir/$libname$shrext"
20438
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20439
ver=`(cd "$dir" && \
20440
for f in "$libname$shrext".*; do echo "$f"; done \
20441
| sed -e "s,^$libname$shrext\\\\.,," \
20442
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20443
| sed 1q ) 2>/dev/null`
20444
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20446
found_so="$dir/$libname$shrext.$ver"
20449
eval library_names=\"$acl_library_names_spec\"
20450
for f in $library_names; do
20451
if test -f "$dir/$f"; then
20460
if test "X$found_dir" = "X"; then
20461
if test -f "$dir/$libname.$acl_libext"; then
20463
found_a="$dir/$libname.$acl_libext"
20466
if test "X$found_dir" != "X"; then
20467
if test -f "$dir/$libname.la"; then
20468
found_la="$dir/$libname.la"
20473
if test "X$found_dir" != "X"; then
20478
if test "X$found_dir" != "X"; then
20479
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20480
if test "X$found_so" != "X"; then
20481
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20482
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20485
for x in $ltrpathdirs; do
20486
if test "X$x" = "X$found_dir"; then
20491
if test -z "$haveit"; then
20492
ltrpathdirs="$ltrpathdirs $found_dir"
20494
if test "$acl_hardcode_direct" = yes; then
20495
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20497
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20498
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20500
for x in $rpathdirs; do
20501
if test "X$x" = "X$found_dir"; then
20506
if test -z "$haveit"; then
20507
rpathdirs="$rpathdirs $found_dir"
20511
for x in $LDFLAGS $LIBICONV; do
20513
acl_save_prefix="$prefix"
20514
prefix="$acl_final_prefix"
20515
acl_save_exec_prefix="$exec_prefix"
20516
exec_prefix="$acl_final_exec_prefix"
20518
exec_prefix="$acl_save_exec_prefix"
20519
prefix="$acl_save_prefix"
20521
if test "X$x" = "X-L$found_dir"; then
20526
if test -z "$haveit"; then
20527
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20529
if test "$acl_hardcode_minus_L" != no; then
20530
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20532
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20538
if test "X$found_a" != "X"; then
20539
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20541
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20544
additional_includedir=
20545
case "$found_dir" in
20546
*/$acl_libdirstem | */$acl_libdirstem/)
20547
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20548
LIBICONV_PREFIX="$basedir"
20549
additional_includedir="$basedir/include"
20552
if test "X$additional_includedir" != "X"; then
20553
if test "X$additional_includedir" != "X/usr/include"; then
20555
if test "X$additional_includedir" = "X/usr/local/include"; then
20556
if test -n "$GCC"; then
20558
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20562
if test -z "$haveit"; then
20563
for x in $CPPFLAGS $INCICONV; do
20565
acl_save_prefix="$prefix"
20566
prefix="$acl_final_prefix"
20567
acl_save_exec_prefix="$exec_prefix"
20568
exec_prefix="$acl_final_exec_prefix"
20570
exec_prefix="$acl_save_exec_prefix"
20571
prefix="$acl_save_prefix"
20573
if test "X$x" = "X-I$additional_includedir"; then
20578
if test -z "$haveit"; then
20579
if test -d "$additional_includedir"; then
20580
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20586
if test -n "$found_la"; then
20587
save_libdir="$libdir"
20588
case "$found_la" in
20589
*/* | *\\*) . "$found_la" ;;
20590
*) . "./$found_la" ;;
20592
libdir="$save_libdir"
20593
for dep in $dependency_libs; do
20596
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20597
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20599
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20600
if test -n "$GCC"; then
20602
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20606
if test -z "$haveit"; then
20608
for x in $LDFLAGS $LIBICONV; do
20610
acl_save_prefix="$prefix"
20611
prefix="$acl_final_prefix"
20612
acl_save_exec_prefix="$exec_prefix"
20613
exec_prefix="$acl_final_exec_prefix"
20615
exec_prefix="$acl_save_exec_prefix"
20616
prefix="$acl_save_prefix"
20618
if test "X$x" = "X-L$additional_libdir"; then
20623
if test -z "$haveit"; then
20624
if test -d "$additional_libdir"; then
20625
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20629
for x in $LDFLAGS $LTLIBICONV; do
20631
acl_save_prefix="$prefix"
20632
prefix="$acl_final_prefix"
20633
acl_save_exec_prefix="$exec_prefix"
20634
exec_prefix="$acl_final_exec_prefix"
20636
exec_prefix="$acl_save_exec_prefix"
20637
prefix="$acl_save_prefix"
20639
if test "X$x" = "X-L$additional_libdir"; then
20644
if test -z "$haveit"; then
20645
if test -d "$additional_libdir"; then
20646
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20653
dir=`echo "X$dep" | sed -e 's/^X-R//'`
20654
if test "$enable_rpath" != no; then
20656
for x in $rpathdirs; do
20657
if test "X$x" = "X$dir"; then
20662
if test -z "$haveit"; then
20663
rpathdirs="$rpathdirs $dir"
20666
for x in $ltrpathdirs; do
20667
if test "X$x" = "X$dir"; then
20672
if test -z "$haveit"; then
20673
ltrpathdirs="$ltrpathdirs $dir"
20678
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20681
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20684
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20685
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20691
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20692
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20698
if test "X$rpathdirs" != "X"; then
20699
if test -n "$acl_hardcode_libdir_separator"; then
20701
for found_dir in $rpathdirs; do
20702
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20704
acl_save_libdir="$libdir"
20706
eval flag=\"$acl_hardcode_libdir_flag_spec\"
20707
libdir="$acl_save_libdir"
20708
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20710
for found_dir in $rpathdirs; do
20711
acl_save_libdir="$libdir"
20712
libdir="$found_dir"
20713
eval flag=\"$acl_hardcode_libdir_flag_spec\"
20714
libdir="$acl_save_libdir"
20715
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20719
if test "X$ltrpathdirs" != "X"; then
20720
for found_dir in $ltrpathdirs; do
20721
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20729
cat >conftest.$ac_ext <<_ACEOF
20732
cat confdefs.h >>conftest.$ac_ext
20733
cat >>conftest.$ac_ext <<_ACEOF
20734
/* end confdefs.h. */
20735
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
20744
rm -f conftest.$ac_objext conftest$ac_exeext
20745
if { (ac_try="$ac_link"
20746
case "(($ac_try" in
20747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748
*) ac_try_echo=$ac_try;;
20750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751
$as_echo "$ac_try_echo") >&5
20752
(eval "$ac_link") 2>conftest.er1
20754
grep -v '^ *+' conftest.er1 >conftest.err
20756
cat conftest.err >&5
20757
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758
(exit $ac_status); } && {
20759
test -z "$ac_c_werror_flag" ||
20760
test ! -s conftest.err
20761
} && test -s conftest$ac_exeext && {
20762
test "$cross_compiling" = yes ||
20763
$as_test_x conftest$ac_exeext
20766
cat >>confdefs.h <<\_ACEOF
20767
#define HAVE_BUILTIN_EXPECT 1
20771
$as_echo "$as_me: failed program was:" >&5
20772
sed 's/^/| /' conftest.$ac_ext >&5
20777
rm -rf conftest.dSYM
20778
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20779
conftest$ac_exeext conftest.$ac_ext
20786
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
20788
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20789
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20790
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20791
$as_echo_n "checking for $ac_header... " >&6; }
20792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20793
$as_echo_n "(cached) " >&6
20795
ac_res=`eval 'as_val=${'$as_ac_Header'}
20796
$as_echo "$as_val"'`
20797
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20798
$as_echo "$ac_res" >&6; }
20800
# Is the header compilable?
20801
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20802
$as_echo_n "checking $ac_header usability... " >&6; }
20803
cat >conftest.$ac_ext <<_ACEOF
20806
cat confdefs.h >>conftest.$ac_ext
20807
cat >>conftest.$ac_ext <<_ACEOF
20808
/* end confdefs.h. */
20809
$ac_includes_default
20810
#include <$ac_header>
20812
rm -f conftest.$ac_objext
20813
if { (ac_try="$ac_compile"
20814
case "(($ac_try" in
20815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816
*) ac_try_echo=$ac_try;;
20818
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20819
$as_echo "$ac_try_echo") >&5
20820
(eval "$ac_compile") 2>conftest.er1
20822
grep -v '^ *+' conftest.er1 >conftest.err
20824
cat conftest.err >&5
20825
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826
(exit $ac_status); } && {
20827
test -z "$ac_c_werror_flag" ||
20828
test ! -s conftest.err
20829
} && test -s conftest.$ac_objext; then
20830
ac_header_compiler=yes
20832
$as_echo "$as_me: failed program was:" >&5
20833
sed 's/^/| /' conftest.$ac_ext >&5
20835
ac_header_compiler=no
20838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20840
$as_echo "$ac_header_compiler" >&6; }
20842
# Is the header present?
20843
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20844
$as_echo_n "checking $ac_header presence... " >&6; }
20845
cat >conftest.$ac_ext <<_ACEOF
20848
cat confdefs.h >>conftest.$ac_ext
20849
cat >>conftest.$ac_ext <<_ACEOF
20850
/* end confdefs.h. */
20851
#include <$ac_header>
20853
if { (ac_try="$ac_cpp conftest.$ac_ext"
20854
case "(($ac_try" in
20855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856
*) ac_try_echo=$ac_try;;
20858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20859
$as_echo "$ac_try_echo") >&5
20860
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20862
grep -v '^ *+' conftest.er1 >conftest.err
20864
cat conftest.err >&5
20865
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866
(exit $ac_status); } >/dev/null && {
20867
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20868
test ! -s conftest.err
20870
ac_header_preproc=yes
20872
$as_echo "$as_me: failed program was:" >&5
20873
sed 's/^/| /' conftest.$ac_ext >&5
20875
ac_header_preproc=no
20878
rm -f conftest.err conftest.$ac_ext
20879
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20880
$as_echo "$ac_header_preproc" >&6; }
20882
# So? What about this header?
20883
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20885
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20886
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20887
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20888
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20889
ac_header_preproc=yes
20892
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20893
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20894
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20895
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20896
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20897
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20898
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20899
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20900
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20901
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20902
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20903
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20907
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20908
$as_echo_n "checking for $ac_header... " >&6; }
20909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20910
$as_echo_n "(cached) " >&6
20912
eval "$as_ac_Header=\$ac_header_preproc"
20914
ac_res=`eval 'as_val=${'$as_ac_Header'}
20915
$as_echo "$as_val"'`
20916
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20917
$as_echo "$ac_res" >&6; }
20920
as_val=`eval 'as_val=${'$as_ac_Header'}
20921
$as_echo "$as_val"'`
20922
if test "x$as_val" = x""yes; then
20923
cat >>confdefs.h <<_ACEOF
20924
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20947
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
20948
stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
20949
argz_next __fsetlocking
20951
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20952
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20953
$as_echo_n "checking for $ac_func... " >&6; }
20954
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20955
$as_echo_n "(cached) " >&6
20957
cat >conftest.$ac_ext <<_ACEOF
20960
cat confdefs.h >>conftest.$ac_ext
20961
cat >>conftest.$ac_ext <<_ACEOF
20962
/* end confdefs.h. */
20963
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20964
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20965
#define $ac_func innocuous_$ac_func
20967
/* System header to define __stub macros and hopefully few prototypes,
20968
which can conflict with char $ac_func (); below.
20969
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20970
<limits.h> exists even on freestanding compilers. */
20973
# include <limits.h>
20975
# include <assert.h>
20980
/* Override any GCC internal prototype to avoid an error.
20981
Use char because int might match the return type of a GCC
20982
builtin and then its argument prototype would still apply. */
20987
/* The GNU C library defines this for functions which it implements
20988
to always fail with ENOSYS. Some functions are actually named
20989
something starting with __ and the normal name is an alias. */
20990
#if defined __stub_$ac_func || defined __stub___$ac_func
20997
return $ac_func ();
21002
rm -f conftest.$ac_objext conftest$ac_exeext
21003
if { (ac_try="$ac_link"
21004
case "(($ac_try" in
21005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006
*) ac_try_echo=$ac_try;;
21008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21009
$as_echo "$ac_try_echo") >&5
21010
(eval "$ac_link") 2>conftest.er1
21012
grep -v '^ *+' conftest.er1 >conftest.err
21014
cat conftest.err >&5
21015
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016
(exit $ac_status); } && {
21017
test -z "$ac_c_werror_flag" ||
21018
test ! -s conftest.err
21019
} && test -s conftest$ac_exeext && {
21020
test "$cross_compiling" = yes ||
21021
$as_test_x conftest$ac_exeext
21023
eval "$as_ac_var=yes"
21025
$as_echo "$as_me: failed program was:" >&5
21026
sed 's/^/| /' conftest.$ac_ext >&5
21028
eval "$as_ac_var=no"
21031
rm -rf conftest.dSYM
21032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033
conftest$ac_exeext conftest.$ac_ext
21035
ac_res=`eval 'as_val=${'$as_ac_var'}
21036
$as_echo "$as_val"'`
21037
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21038
$as_echo "$ac_res" >&6; }
21039
as_val=`eval 'as_val=${'$as_ac_var'}
21040
$as_echo "$as_val"'`
21041
if test "x$as_val" = x""yes; then
21042
cat >>confdefs.h <<_ACEOF
21043
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21051
{ $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21052
$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
21053
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21054
$as_echo_n "(cached) " >&6
21056
cat >conftest.$ac_ext <<_ACEOF
21059
cat confdefs.h >>conftest.$ac_ext
21060
cat >>conftest.$ac_ext <<_ACEOF
21061
/* end confdefs.h. */
21067
#ifndef feof_unlocked
21068
char *p = (char *) feof_unlocked;
21075
rm -f conftest.$ac_objext
21076
if { (ac_try="$ac_compile"
21077
case "(($ac_try" in
21078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079
*) ac_try_echo=$ac_try;;
21081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21082
$as_echo "$ac_try_echo") >&5
21083
(eval "$ac_compile") 2>conftest.er1
21085
grep -v '^ *+' conftest.er1 >conftest.err
21087
cat conftest.err >&5
21088
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089
(exit $ac_status); } && {
21090
test -z "$ac_c_werror_flag" ||
21091
test ! -s conftest.err
21092
} && test -s conftest.$ac_objext; then
21093
ac_cv_have_decl_feof_unlocked=yes
21095
$as_echo "$as_me: failed program was:" >&5
21096
sed 's/^/| /' conftest.$ac_ext >&5
21098
ac_cv_have_decl_feof_unlocked=no
21101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21104
$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
21105
if test $ac_cv_have_decl_feof_unlocked = yes; then
21111
cat >>confdefs.h <<_ACEOF
21112
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
21117
{ $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21118
$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
21119
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21120
$as_echo_n "(cached) " >&6
21122
cat >conftest.$ac_ext <<_ACEOF
21125
cat confdefs.h >>conftest.$ac_ext
21126
cat >>conftest.$ac_ext <<_ACEOF
21127
/* end confdefs.h. */
21133
#ifndef fgets_unlocked
21134
char *p = (char *) fgets_unlocked;
21141
rm -f conftest.$ac_objext
21142
if { (ac_try="$ac_compile"
21143
case "(($ac_try" in
21144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145
*) ac_try_echo=$ac_try;;
21147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148
$as_echo "$ac_try_echo") >&5
21149
(eval "$ac_compile") 2>conftest.er1
21151
grep -v '^ *+' conftest.er1 >conftest.err
21153
cat conftest.err >&5
21154
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155
(exit $ac_status); } && {
21156
test -z "$ac_c_werror_flag" ||
21157
test ! -s conftest.err
21158
} && test -s conftest.$ac_objext; then
21159
ac_cv_have_decl_fgets_unlocked=yes
21161
$as_echo "$as_me: failed program was:" >&5
21162
sed 's/^/| /' conftest.$ac_ext >&5
21164
ac_cv_have_decl_fgets_unlocked=no
21167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21170
$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
21171
if test $ac_cv_have_decl_fgets_unlocked = yes; then
21177
cat >>confdefs.h <<_ACEOF
21178
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
21188
am_save_CPPFLAGS="$CPPFLAGS"
21190
for element in $INCICONV; do
21192
for x in $CPPFLAGS; do
21194
acl_save_prefix="$prefix"
21195
prefix="$acl_final_prefix"
21196
acl_save_exec_prefix="$exec_prefix"
21197
exec_prefix="$acl_final_exec_prefix"
21199
exec_prefix="$acl_save_exec_prefix"
21200
prefix="$acl_save_prefix"
21202
if test "X$x" = "X$element"; then
21207
if test -z "$haveit"; then
21208
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21213
{ $as_echo "$as_me:$LINENO: checking for iconv" >&5
21214
$as_echo_n "checking for iconv... " >&6; }
21215
if test "${am_cv_func_iconv+set}" = set; then
21216
$as_echo_n "(cached) " >&6
21219
am_cv_func_iconv="no, consider installing GNU libiconv"
21221
cat >conftest.$ac_ext <<_ACEOF
21224
cat confdefs.h >>conftest.$ac_ext
21225
cat >>conftest.$ac_ext <<_ACEOF
21226
/* end confdefs.h. */
21227
#include <stdlib.h>
21232
iconv_t cd = iconv_open("","");
21233
iconv(cd,NULL,NULL,NULL,NULL);
21239
rm -f conftest.$ac_objext conftest$ac_exeext
21240
if { (ac_try="$ac_link"
21241
case "(($ac_try" in
21242
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243
*) ac_try_echo=$ac_try;;
21245
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21246
$as_echo "$ac_try_echo") >&5
21247
(eval "$ac_link") 2>conftest.er1
21249
grep -v '^ *+' conftest.er1 >conftest.err
21251
cat conftest.err >&5
21252
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253
(exit $ac_status); } && {
21254
test -z "$ac_c_werror_flag" ||
21255
test ! -s conftest.err
21256
} && test -s conftest$ac_exeext && {
21257
test "$cross_compiling" = yes ||
21258
$as_test_x conftest$ac_exeext
21260
am_cv_func_iconv=yes
21262
$as_echo "$as_me: failed program was:" >&5
21263
sed 's/^/| /' conftest.$ac_ext >&5
21268
rm -rf conftest.dSYM
21269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21270
conftest$ac_exeext conftest.$ac_ext
21271
if test "$am_cv_func_iconv" != yes; then
21272
am_save_LIBS="$LIBS"
21273
LIBS="$LIBS $LIBICONV"
21274
cat >conftest.$ac_ext <<_ACEOF
21277
cat confdefs.h >>conftest.$ac_ext
21278
cat >>conftest.$ac_ext <<_ACEOF
21279
/* end confdefs.h. */
21280
#include <stdlib.h>
21285
iconv_t cd = iconv_open("","");
21286
iconv(cd,NULL,NULL,NULL,NULL);
21292
rm -f conftest.$ac_objext conftest$ac_exeext
21293
if { (ac_try="$ac_link"
21294
case "(($ac_try" in
21295
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296
*) ac_try_echo=$ac_try;;
21298
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21299
$as_echo "$ac_try_echo") >&5
21300
(eval "$ac_link") 2>conftest.er1
21302
grep -v '^ *+' conftest.er1 >conftest.err
21304
cat conftest.err >&5
21305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306
(exit $ac_status); } && {
21307
test -z "$ac_c_werror_flag" ||
21308
test ! -s conftest.err
21309
} && test -s conftest$ac_exeext && {
21310
test "$cross_compiling" = yes ||
21311
$as_test_x conftest$ac_exeext
21313
am_cv_lib_iconv=yes
21314
am_cv_func_iconv=yes
21316
$as_echo "$as_me: failed program was:" >&5
21317
sed 's/^/| /' conftest.$ac_ext >&5
21322
rm -rf conftest.dSYM
21323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324
conftest$ac_exeext conftest.$ac_ext
21325
LIBS="$am_save_LIBS"
21329
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21330
$as_echo "$am_cv_func_iconv" >&6; }
21331
if test "$am_cv_func_iconv" = yes; then
21332
{ $as_echo "$as_me:$LINENO: checking for working iconv" >&5
21333
$as_echo_n "checking for working iconv... " >&6; }
21334
if test "${am_cv_func_iconv_works+set}" = set; then
21335
$as_echo_n "(cached) " >&6
21338
am_save_LIBS="$LIBS"
21339
if test $am_cv_lib_iconv = yes; then
21340
LIBS="$LIBS $LIBICONV"
21342
if test "$cross_compiling" = yes; then
21344
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21345
*) am_cv_func_iconv_works="guessing yes" ;;
21348
cat >conftest.$ac_ext <<_ACEOF
21351
cat confdefs.h >>conftest.$ac_ext
21352
cat >>conftest.$ac_ext <<_ACEOF
21353
/* end confdefs.h. */
21356
#include <string.h>
21359
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21362
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21363
if (cd_utf8_to_88591 != (iconv_t)(-1))
21365
static const char input[] = "\342\202\254"; /* EURO SIGN */
21367
const char *inptr = input;
21368
size_t inbytesleft = strlen (input);
21369
char *outptr = buf;
21370
size_t outbytesleft = sizeof (buf);
21371
size_t res = iconv (cd_utf8_to_88591,
21372
(char **) &inptr, &inbytesleft,
21373
&outptr, &outbytesleft);
21378
#if 0 /* This bug could be worked around by the caller. */
21379
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21381
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21382
if (cd_88591_to_utf8 != (iconv_t)(-1))
21384
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21386
const char *inptr = input;
21387
size_t inbytesleft = strlen (input);
21388
char *outptr = buf;
21389
size_t outbytesleft = sizeof (buf);
21390
size_t res = iconv (cd_88591_to_utf8,
21391
(char **) &inptr, &inbytesleft,
21392
&outptr, &outbytesleft);
21398
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21400
if (/* Try standardized names. */
21401
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21402
/* Try IRIX, OSF/1 names. */
21403
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21404
/* Try AIX names. */
21405
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21406
/* Try HP-UX names. */
21407
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21412
rm -f conftest$ac_exeext
21413
if { (ac_try="$ac_link"
21414
case "(($ac_try" in
21415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416
*) ac_try_echo=$ac_try;;
21418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21419
$as_echo "$ac_try_echo") >&5
21420
(eval "$ac_link") 2>&5
21422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21424
{ (case "(($ac_try" in
21425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426
*) ac_try_echo=$ac_try;;
21428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21429
$as_echo "$ac_try_echo") >&5
21430
(eval "$ac_try") 2>&5
21432
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433
(exit $ac_status); }; }; then
21434
am_cv_func_iconv_works=yes
21436
$as_echo "$as_me: program exited with status $ac_status" >&5
21437
$as_echo "$as_me: failed program was:" >&5
21438
sed 's/^/| /' conftest.$ac_ext >&5
21440
( exit $ac_status )
21441
am_cv_func_iconv_works=no
21443
rm -rf conftest.dSYM
21444
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448
LIBS="$am_save_LIBS"
21451
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21452
$as_echo "$am_cv_func_iconv_works" >&6; }
21453
case "$am_cv_func_iconv_works" in
21454
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
21455
*) am_func_iconv=yes ;;
21458
am_func_iconv=no am_cv_lib_iconv=no
21460
if test "$am_func_iconv" = yes; then
21462
cat >>confdefs.h <<\_ACEOF
21463
#define HAVE_ICONV 1
21467
if test "$am_cv_lib_iconv" = yes; then
21468
{ $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21469
$as_echo_n "checking how to link with libiconv... " >&6; }
21470
{ $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21471
$as_echo "$LIBICONV" >&6; }
21473
CPPFLAGS="$am_save_CPPFLAGS"
21480
if test "$am_cv_func_iconv" = yes; then
21481
{ $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
21482
$as_echo_n "checking for iconv declaration... " >&6; }
21483
if test "${am_cv_proto_iconv+set}" = set; then
21484
$as_echo_n "(cached) " >&6
21487
cat >conftest.$ac_ext <<_ACEOF
21490
cat confdefs.h >>conftest.$ac_ext
21491
cat >>conftest.$ac_ext <<_ACEOF
21492
/* end confdefs.h. */
21494
#include <stdlib.h>
21500
#if defined(__STDC__) || defined(__cplusplus)
21501
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21514
rm -f conftest.$ac_objext
21515
if { (ac_try="$ac_compile"
21516
case "(($ac_try" in
21517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518
*) ac_try_echo=$ac_try;;
21520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21521
$as_echo "$ac_try_echo") >&5
21522
(eval "$ac_compile") 2>conftest.er1
21524
grep -v '^ *+' conftest.er1 >conftest.err
21526
cat conftest.err >&5
21527
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528
(exit $ac_status); } && {
21529
test -z "$ac_c_werror_flag" ||
21530
test ! -s conftest.err
21531
} && test -s conftest.$ac_objext; then
21532
am_cv_proto_iconv_arg1=""
21534
$as_echo "$as_me: failed program was:" >&5
21535
sed 's/^/| /' conftest.$ac_ext >&5
21537
am_cv_proto_iconv_arg1="const"
21540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21544
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21545
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
21546
}$am_cv_proto_iconv" >&5
21548
}$am_cv_proto_iconv" >&6; }
21550
cat >>confdefs.h <<_ACEOF
21551
#define ICONV_CONST $am_cv_proto_iconv_arg1
21557
{ $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
21558
$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
21559
if test "${gt_cv_nl_locale_name+set}" = set; then
21560
$as_echo_n "(cached) " >&6
21562
cat >conftest.$ac_ext <<_ACEOF
21565
cat confdefs.h >>conftest.$ac_ext
21566
cat >>conftest.$ac_ext <<_ACEOF
21567
/* end confdefs.h. */
21568
#include <langinfo.h>
21569
#include <locale.h>
21573
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
21580
rm -f conftest.$ac_objext conftest$ac_exeext
21581
if { (ac_try="$ac_link"
21582
case "(($ac_try" in
21583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584
*) ac_try_echo=$ac_try;;
21586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21587
$as_echo "$ac_try_echo") >&5
21588
(eval "$ac_link") 2>conftest.er1
21590
grep -v '^ *+' conftest.er1 >conftest.err
21592
cat conftest.err >&5
21593
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594
(exit $ac_status); } && {
21595
test -z "$ac_c_werror_flag" ||
21596
test ! -s conftest.err
21597
} && test -s conftest$ac_exeext && {
21598
test "$cross_compiling" = yes ||
21599
$as_test_x conftest$ac_exeext
21601
gt_cv_nl_locale_name=yes
21603
$as_echo "$as_me: failed program was:" >&5
21604
sed 's/^/| /' conftest.$ac_ext >&5
21606
gt_cv_nl_locale_name=no
21609
rm -rf conftest.dSYM
21610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21611
conftest$ac_exeext conftest.$ac_ext
21614
{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
21615
$as_echo "$gt_cv_nl_locale_name" >&6; }
21616
if test $gt_cv_nl_locale_name = yes; then
21618
cat >>confdefs.h <<\_ACEOF
21619
#define HAVE_NL_LOCALE_NAME 1
21624
for ac_prog in bison
21626
# Extract the first word of "$ac_prog", so it can be a program name with args.
21627
set dummy $ac_prog; ac_word=$2
21628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21629
$as_echo_n "checking for $ac_word... " >&6; }
21630
if test "${ac_cv_prog_INTLBISON+set}" = set; then
21631
$as_echo_n "(cached) " >&6
21633
if test -n "$INTLBISON"; then
21634
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
21636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21637
for as_dir in $PATH
21640
test -z "$as_dir" && as_dir=.
21641
for ac_exec_ext in '' $ac_executable_extensions; do
21642
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21643
ac_cv_prog_INTLBISON="$ac_prog"
21644
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21653
INTLBISON=$ac_cv_prog_INTLBISON
21654
if test -n "$INTLBISON"; then
21655
{ $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
21656
$as_echo "$INTLBISON" >&6; }
21658
{ $as_echo "$as_me:$LINENO: result: no" >&5
21659
$as_echo "no" >&6; }
21663
test -n "$INTLBISON" && break
21666
if test -z "$INTLBISON"; then
21669
{ $as_echo "$as_me:$LINENO: checking version of bison" >&5
21670
$as_echo_n "checking version of bison... " >&6; }
21671
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21672
case $ac_prog_version in
21673
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21674
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21675
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21676
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21678
{ $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
21679
$as_echo "$ac_prog_version" >&6; }
21681
if test $ac_verc_fail = yes; then
21686
{ $as_echo "$as_me:$LINENO: checking for long long int" >&5
21687
$as_echo_n "checking for long long int... " >&6; }
21688
if test "${ac_cv_type_long_long_int+set}" = set; then
21689
$as_echo_n "(cached) " >&6
21691
cat >conftest.$ac_ext <<_ACEOF
21695
cat confdefs.h >>conftest.$ac_ext
21696
cat >>conftest.$ac_ext <<_ACEOF
21697
/* end confdefs.h. */
21698
/* Test preprocessor. */
21699
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21700
error in preprocessor;
21702
#if ! (18446744073709551615ULL <= -1ull)
21703
error in preprocessor;
21705
/* Test literals. */
21706
long long int ll = 9223372036854775807ll;
21707
long long int nll = -9223372036854775807LL;
21708
unsigned long long int ull = 18446744073709551615ULL;
21709
/* Test constant expressions. */
21710
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21712
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21718
/* Test availability of runtime routines for shift and division. */
21719
long long int llmax = 9223372036854775807ll;
21720
unsigned long long int ullmax = 18446744073709551615ull;
21721
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21722
| (llmax / ll) | (llmax % ll)
21723
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21724
| (ullmax / ull) | (ullmax % ull));
21730
rm -f conftest.$ac_objext conftest$ac_exeext
21731
if { (ac_try="$ac_link"
21732
case "(($ac_try" in
21733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734
*) ac_try_echo=$ac_try;;
21736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737
$as_echo "$ac_try_echo") >&5
21738
(eval "$ac_link") 2>conftest.er1
21740
grep -v '^ *+' conftest.er1 >conftest.err
21742
cat conftest.err >&5
21743
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744
(exit $ac_status); } && {
21745
test -z "$ac_c_werror_flag" ||
21746
test ! -s conftest.err
21747
} && test -s conftest$ac_exeext && {
21748
test "$cross_compiling" = yes ||
21749
$as_test_x conftest$ac_exeext
21751
if test "$cross_compiling" = yes; then
21752
ac_cv_type_long_long_int=yes
21754
cat >conftest.$ac_ext <<_ACEOF
21757
cat confdefs.h >>conftest.$ac_ext
21758
cat >>conftest.$ac_ext <<_ACEOF
21759
/* end confdefs.h. */
21760
#include <limits.h>
21763
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
21764
# define LLONG_MAX (HALF - 1 + HALF)
21769
long long int n = 1;
21773
long long int m = n << i;
21776
if (LLONG_MAX / 2 < m)
21784
rm -f conftest$ac_exeext
21785
if { (ac_try="$ac_link"
21786
case "(($ac_try" in
21787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788
*) ac_try_echo=$ac_try;;
21790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21791
$as_echo "$ac_try_echo") >&5
21792
(eval "$ac_link") 2>&5
21794
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796
{ (case "(($ac_try" in
21797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798
*) ac_try_echo=$ac_try;;
21800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801
$as_echo "$ac_try_echo") >&5
21802
(eval "$ac_try") 2>&5
21804
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805
(exit $ac_status); }; }; then
21806
ac_cv_type_long_long_int=yes
21808
$as_echo "$as_me: program exited with status $ac_status" >&5
21809
$as_echo "$as_me: failed program was:" >&5
21810
sed 's/^/| /' conftest.$ac_ext >&5
21812
( exit $ac_status )
21813
ac_cv_type_long_long_int=no
21815
rm -rf conftest.dSYM
21816
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821
$as_echo "$as_me: failed program was:" >&5
21822
sed 's/^/| /' conftest.$ac_ext >&5
21824
ac_cv_type_long_long_int=no
21827
rm -rf conftest.dSYM
21828
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21829
conftest$ac_exeext conftest.$ac_ext
21831
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21832
$as_echo "$ac_cv_type_long_long_int" >&6; }
21833
if test $ac_cv_type_long_long_int = yes; then
21835
cat >>confdefs.h <<\_ACEOF
21836
#define HAVE_LONG_LONG_INT 1
21842
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
21843
$as_echo_n "checking for wchar_t... " >&6; }
21844
if test "${gt_cv_c_wchar_t+set}" = set; then
21845
$as_echo_n "(cached) " >&6
21847
cat >conftest.$ac_ext <<_ACEOF
21850
cat confdefs.h >>conftest.$ac_ext
21851
cat >>conftest.$ac_ext <<_ACEOF
21852
/* end confdefs.h. */
21853
#include <stddef.h>
21854
wchar_t foo = (wchar_t)'\0';
21863
rm -f conftest.$ac_objext
21864
if { (ac_try="$ac_compile"
21865
case "(($ac_try" in
21866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867
*) ac_try_echo=$ac_try;;
21869
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870
$as_echo "$ac_try_echo") >&5
21871
(eval "$ac_compile") 2>conftest.er1
21873
grep -v '^ *+' conftest.er1 >conftest.err
21875
cat conftest.err >&5
21876
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877
(exit $ac_status); } && {
21878
test -z "$ac_c_werror_flag" ||
21879
test ! -s conftest.err
21880
} && test -s conftest.$ac_objext; then
21881
gt_cv_c_wchar_t=yes
21883
$as_echo "$as_me: failed program was:" >&5
21884
sed 's/^/| /' conftest.$ac_ext >&5
21889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21892
$as_echo "$gt_cv_c_wchar_t" >&6; }
21893
if test $gt_cv_c_wchar_t = yes; then
21895
cat >>confdefs.h <<\_ACEOF
21896
#define HAVE_WCHAR_T 1
21902
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
21903
$as_echo_n "checking for wint_t... " >&6; }
21904
if test "${gt_cv_c_wint_t+set}" = set; then
21905
$as_echo_n "(cached) " >&6
21907
cat >conftest.$ac_ext <<_ACEOF
21910
cat confdefs.h >>conftest.$ac_ext
21911
cat >>conftest.$ac_ext <<_ACEOF
21912
/* end confdefs.h. */
21914
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21916
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21917
before <wchar.h>. */
21918
#include <stddef.h>
21922
wint_t foo = (wchar_t)'\0';
21931
rm -f conftest.$ac_objext
21932
if { (ac_try="$ac_compile"
21933
case "(($ac_try" in
21934
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935
*) ac_try_echo=$ac_try;;
21937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21938
$as_echo "$ac_try_echo") >&5
21939
(eval "$ac_compile") 2>conftest.er1
21941
grep -v '^ *+' conftest.er1 >conftest.err
21943
cat conftest.err >&5
21944
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945
(exit $ac_status); } && {
21946
test -z "$ac_c_werror_flag" ||
21947
test ! -s conftest.err
21948
} && test -s conftest.$ac_objext; then
21951
$as_echo "$as_me: failed program was:" >&5
21952
sed 's/^/| /' conftest.$ac_ext >&5
21957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21960
$as_echo "$gt_cv_c_wint_t" >&6; }
21961
if test $gt_cv_c_wint_t = yes; then
21963
cat >>confdefs.h <<\_ACEOF
21964
#define HAVE_WINT_T 1
21972
{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
21973
$as_echo_n "checking for intmax_t... " >&6; }
21974
if test "${gt_cv_c_intmax_t+set}" = set; then
21975
$as_echo_n "(cached) " >&6
21977
cat >conftest.$ac_ext <<_ACEOF
21980
cat confdefs.h >>conftest.$ac_ext
21981
cat >>conftest.$ac_ext <<_ACEOF
21982
/* end confdefs.h. */
21984
#include <stddef.h>
21985
#include <stdlib.h>
21986
#if HAVE_STDINT_H_WITH_UINTMAX
21987
#include <stdint.h>
21989
#if HAVE_INTTYPES_H_WITH_UINTMAX
21990
#include <inttypes.h>
22002
rm -f conftest.$ac_objext
22003
if { (ac_try="$ac_compile"
22004
case "(($ac_try" in
22005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006
*) ac_try_echo=$ac_try;;
22008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22009
$as_echo "$ac_try_echo") >&5
22010
(eval "$ac_compile") 2>conftest.er1
22012
grep -v '^ *+' conftest.er1 >conftest.err
22014
cat conftest.err >&5
22015
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016
(exit $ac_status); } && {
22017
test -z "$ac_c_werror_flag" ||
22018
test ! -s conftest.err
22019
} && test -s conftest.$ac_objext; then
22020
gt_cv_c_intmax_t=yes
22022
$as_echo "$as_me: failed program was:" >&5
22023
sed 's/^/| /' conftest.$ac_ext >&5
22025
gt_cv_c_intmax_t=no
22028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
22031
$as_echo "$gt_cv_c_intmax_t" >&6; }
22032
if test $gt_cv_c_intmax_t = yes; then
22034
cat >>confdefs.h <<\_ACEOF
22035
#define HAVE_INTMAX_T 1
22042
{ $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
22043
$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
22044
if test "${gt_cv_func_printf_posix+set}" = set; then
22045
$as_echo_n "(cached) " >&6
22048
if test "$cross_compiling" = yes; then
22050
cat >conftest.$ac_ext <<_ACEOF
22053
cat confdefs.h >>conftest.$ac_ext
22054
cat >>conftest.$ac_ext <<_ACEOF
22055
/* end confdefs.h. */
22057
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
22062
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22063
$EGREP "notposix" >/dev/null 2>&1; then
22064
gt_cv_func_printf_posix="guessing no"
22066
gt_cv_func_printf_posix="guessing yes"
22072
cat >conftest.$ac_ext <<_ACEOF
22075
cat confdefs.h >>conftest.$ac_ext
22076
cat >>conftest.$ac_ext <<_ACEOF
22077
/* end confdefs.h. */
22080
#include <string.h>
22081
/* The string "%2$d %1$d", with dollar characters protected from the shell's
22082
dollar expansion (possibly an autoconf bug). */
22083
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22084
static char buf[100];
22087
sprintf (buf, format, 33, 55);
22088
return (strcmp (buf, "55 33") != 0);
22091
rm -f conftest$ac_exeext
22092
if { (ac_try="$ac_link"
22093
case "(($ac_try" in
22094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095
*) ac_try_echo=$ac_try;;
22097
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22098
$as_echo "$ac_try_echo") >&5
22099
(eval "$ac_link") 2>&5
22101
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22103
{ (case "(($ac_try" in
22104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105
*) ac_try_echo=$ac_try;;
22107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22108
$as_echo "$ac_try_echo") >&5
22109
(eval "$ac_try") 2>&5
22111
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112
(exit $ac_status); }; }; then
22113
gt_cv_func_printf_posix=yes
22115
$as_echo "$as_me: program exited with status $ac_status" >&5
22116
$as_echo "$as_me: failed program was:" >&5
22117
sed 's/^/| /' conftest.$ac_ext >&5
22119
( exit $ac_status )
22120
gt_cv_func_printf_posix=no
22122
rm -rf conftest.dSYM
22123
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22129
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
22130
$as_echo "$gt_cv_func_printf_posix" >&6; }
22131
case $gt_cv_func_printf_posix in
22134
cat >>confdefs.h <<\_ACEOF
22135
#define HAVE_POSIX_PRINTF 1
22142
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22143
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
22144
if test "${ac_cv_gnu_library_2_1+set}" = set; then
22145
$as_echo_n "(cached) " >&6
22147
cat >conftest.$ac_ext <<_ACEOF
22150
cat confdefs.h >>conftest.$ac_ext
22151
cat >>conftest.$ac_ext <<_ACEOF
22152
/* end confdefs.h. */
22154
#include <features.h>
22155
#ifdef __GNU_LIBRARY__
22156
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22162
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22163
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
22164
ac_cv_gnu_library_2_1=yes
22166
ac_cv_gnu_library_2_1=no
22173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22174
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
22176
GLIBC21="$ac_cv_gnu_library_2_1"
22181
for ac_header in stdint.h
22183
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22184
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22185
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22186
$as_echo_n "checking for $ac_header... " >&6; }
22187
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22188
$as_echo_n "(cached) " >&6
22190
ac_res=`eval 'as_val=${'$as_ac_Header'}
22191
$as_echo "$as_val"'`
22192
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22193
$as_echo "$ac_res" >&6; }
22195
# Is the header compilable?
22196
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22197
$as_echo_n "checking $ac_header usability... " >&6; }
22198
cat >conftest.$ac_ext <<_ACEOF
22201
cat confdefs.h >>conftest.$ac_ext
22202
cat >>conftest.$ac_ext <<_ACEOF
22203
/* end confdefs.h. */
22204
$ac_includes_default
22205
#include <$ac_header>
22207
rm -f conftest.$ac_objext
22208
if { (ac_try="$ac_compile"
22209
case "(($ac_try" in
22210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211
*) ac_try_echo=$ac_try;;
22213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22214
$as_echo "$ac_try_echo") >&5
22215
(eval "$ac_compile") 2>conftest.er1
22217
grep -v '^ *+' conftest.er1 >conftest.err
22219
cat conftest.err >&5
22220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221
(exit $ac_status); } && {
22222
test -z "$ac_c_werror_flag" ||
22223
test ! -s conftest.err
22224
} && test -s conftest.$ac_objext; then
22225
ac_header_compiler=yes
22227
$as_echo "$as_me: failed program was:" >&5
22228
sed 's/^/| /' conftest.$ac_ext >&5
22230
ac_header_compiler=no
22233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22235
$as_echo "$ac_header_compiler" >&6; }
22237
# Is the header present?
22238
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22239
$as_echo_n "checking $ac_header presence... " >&6; }
22240
cat >conftest.$ac_ext <<_ACEOF
22243
cat confdefs.h >>conftest.$ac_ext
22244
cat >>conftest.$ac_ext <<_ACEOF
22245
/* end confdefs.h. */
22246
#include <$ac_header>
22248
if { (ac_try="$ac_cpp conftest.$ac_ext"
22249
case "(($ac_try" in
22250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251
*) ac_try_echo=$ac_try;;
22253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22254
$as_echo "$ac_try_echo") >&5
22255
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22257
grep -v '^ *+' conftest.er1 >conftest.err
22259
cat conftest.err >&5
22260
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261
(exit $ac_status); } >/dev/null && {
22262
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22263
test ! -s conftest.err
22265
ac_header_preproc=yes
22267
$as_echo "$as_me: failed program was:" >&5
22268
sed 's/^/| /' conftest.$ac_ext >&5
22270
ac_header_preproc=no
22273
rm -f conftest.err conftest.$ac_ext
22274
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22275
$as_echo "$ac_header_preproc" >&6; }
22277
# So? What about this header?
22278
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22280
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22281
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22282
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22283
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22284
ac_header_preproc=yes
22287
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22288
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22289
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22290
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22291
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22292
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22293
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22294
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22295
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22296
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22297
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22298
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22302
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22303
$as_echo_n "checking for $ac_header... " >&6; }
22304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22305
$as_echo_n "(cached) " >&6
22307
eval "$as_ac_Header=\$ac_header_preproc"
22309
ac_res=`eval 'as_val=${'$as_ac_Header'}
22310
$as_echo "$as_val"'`
22311
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22312
$as_echo "$ac_res" >&6; }
22315
as_val=`eval 'as_val=${'$as_ac_Header'}
22316
$as_echo "$as_val"'`
22317
if test "x$as_val" = x""yes; then
22318
cat >>confdefs.h <<_ACEOF
22319
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22326
{ $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
22327
$as_echo_n "checking for SIZE_MAX... " >&6; }
22328
if test "${gl_cv_size_max+set}" = set; then
22329
$as_echo_n "(cached) " >&6
22333
cat >conftest.$ac_ext <<_ACEOF
22336
cat confdefs.h >>conftest.$ac_ext
22337
cat >>conftest.$ac_ext <<_ACEOF
22338
/* end confdefs.h. */
22340
#include <limits.h>
22342
#include <stdint.h>
22349
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22350
$EGREP "Found it" >/dev/null 2>&1; then
22355
if test -z "$gl_cv_size_max"; then
22356
if test "$cross_compiling" = yes; then
22357
# Depending upon the size, compute the lo and hi bounds.
22358
cat >conftest.$ac_ext <<_ACEOF
22361
cat confdefs.h >>conftest.$ac_ext
22362
cat >>conftest.$ac_ext <<_ACEOF
22363
/* end confdefs.h. */
22364
#include <stddef.h>
22365
#include <limits.h>
22369
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
22376
rm -f conftest.$ac_objext
22377
if { (ac_try="$ac_compile"
22378
case "(($ac_try" in
22379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380
*) ac_try_echo=$ac_try;;
22382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22383
$as_echo "$ac_try_echo") >&5
22384
(eval "$ac_compile") 2>conftest.er1
22386
grep -v '^ *+' conftest.er1 >conftest.err
22388
cat conftest.err >&5
22389
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390
(exit $ac_status); } && {
22391
test -z "$ac_c_werror_flag" ||
22392
test ! -s conftest.err
22393
} && test -s conftest.$ac_objext; then
22396
cat >conftest.$ac_ext <<_ACEOF
22399
cat confdefs.h >>conftest.$ac_ext
22400
cat >>conftest.$ac_ext <<_ACEOF
22401
/* end confdefs.h. */
22402
#include <stddef.h>
22403
#include <limits.h>
22407
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
22414
rm -f conftest.$ac_objext
22415
if { (ac_try="$ac_compile"
22416
case "(($ac_try" in
22417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418
*) ac_try_echo=$ac_try;;
22420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421
$as_echo "$ac_try_echo") >&5
22422
(eval "$ac_compile") 2>conftest.er1
22424
grep -v '^ *+' conftest.er1 >conftest.err
22426
cat conftest.err >&5
22427
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428
(exit $ac_status); } && {
22429
test -z "$ac_c_werror_flag" ||
22430
test ! -s conftest.err
22431
} && test -s conftest.$ac_objext; then
22432
ac_hi=$ac_mid; break
22434
$as_echo "$as_me: failed program was:" >&5
22435
sed 's/^/| /' conftest.$ac_ext >&5
22437
ac_lo=`expr $ac_mid + 1`
22438
if test $ac_lo -le $ac_mid; then
22442
ac_mid=`expr 2 '*' $ac_mid + 1`
22445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22448
$as_echo "$as_me: failed program was:" >&5
22449
sed 's/^/| /' conftest.$ac_ext >&5
22451
cat >conftest.$ac_ext <<_ACEOF
22454
cat confdefs.h >>conftest.$ac_ext
22455
cat >>conftest.$ac_ext <<_ACEOF
22456
/* end confdefs.h. */
22457
#include <stddef.h>
22458
#include <limits.h>
22462
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
22469
rm -f conftest.$ac_objext
22470
if { (ac_try="$ac_compile"
22471
case "(($ac_try" in
22472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473
*) ac_try_echo=$ac_try;;
22475
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476
$as_echo "$ac_try_echo") >&5
22477
(eval "$ac_compile") 2>conftest.er1
22479
grep -v '^ *+' conftest.er1 >conftest.err
22481
cat conftest.err >&5
22482
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483
(exit $ac_status); } && {
22484
test -z "$ac_c_werror_flag" ||
22485
test ! -s conftest.err
22486
} && test -s conftest.$ac_objext; then
22489
cat >conftest.$ac_ext <<_ACEOF
22492
cat confdefs.h >>conftest.$ac_ext
22493
cat >>conftest.$ac_ext <<_ACEOF
22494
/* end confdefs.h. */
22495
#include <stddef.h>
22496
#include <limits.h>
22500
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
22507
rm -f conftest.$ac_objext
22508
if { (ac_try="$ac_compile"
22509
case "(($ac_try" in
22510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511
*) ac_try_echo=$ac_try;;
22513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22514
$as_echo "$ac_try_echo") >&5
22515
(eval "$ac_compile") 2>conftest.er1
22517
grep -v '^ *+' conftest.er1 >conftest.err
22519
cat conftest.err >&5
22520
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521
(exit $ac_status); } && {
22522
test -z "$ac_c_werror_flag" ||
22523
test ! -s conftest.err
22524
} && test -s conftest.$ac_objext; then
22525
ac_lo=$ac_mid; break
22527
$as_echo "$as_me: failed program was:" >&5
22528
sed 's/^/| /' conftest.$ac_ext >&5
22530
ac_hi=`expr '(' $ac_mid ')' - 1`
22531
if test $ac_mid -le $ac_hi; then
22535
ac_mid=`expr 2 '*' $ac_mid`
22538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541
$as_echo "$as_me: failed program was:" >&5
22542
sed 's/^/| /' conftest.$ac_ext >&5
22547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551
# Binary search between lo and hi bounds.
22552
while test "x$ac_lo" != "x$ac_hi"; do
22553
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22554
cat >conftest.$ac_ext <<_ACEOF
22557
cat confdefs.h >>conftest.$ac_ext
22558
cat >>conftest.$ac_ext <<_ACEOF
22559
/* end confdefs.h. */
22560
#include <stddef.h>
22561
#include <limits.h>
22565
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
22572
rm -f conftest.$ac_objext
22573
if { (ac_try="$ac_compile"
22574
case "(($ac_try" in
22575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576
*) ac_try_echo=$ac_try;;
22578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22579
$as_echo "$ac_try_echo") >&5
22580
(eval "$ac_compile") 2>conftest.er1
22582
grep -v '^ *+' conftest.er1 >conftest.err
22584
cat conftest.err >&5
22585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586
(exit $ac_status); } && {
22587
test -z "$ac_c_werror_flag" ||
22588
test ! -s conftest.err
22589
} && test -s conftest.$ac_objext; then
22592
$as_echo "$as_me: failed program was:" >&5
22593
sed 's/^/| /' conftest.$ac_ext >&5
22595
ac_lo=`expr '(' $ac_mid ')' + 1`
22598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601
?*) size_t_bits_minus_1=$ac_lo;;
22602
'') size_t_bits_minus_1= ;;
22605
cat >conftest.$ac_ext <<_ACEOF
22608
cat confdefs.h >>conftest.$ac_ext
22609
cat >>conftest.$ac_ext <<_ACEOF
22610
/* end confdefs.h. */
22611
#include <stddef.h>
22612
#include <limits.h>
22613
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
22614
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
22616
#include <stdlib.h>
22621
FILE *f = fopen ("conftest.val", "w");
22624
if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
22626
long int i = longval ();
22627
if (i != (sizeof (size_t) * CHAR_BIT - 1))
22629
fprintf (f, "%ld", i);
22633
unsigned long int i = ulongval ();
22634
if (i != (sizeof (size_t) * CHAR_BIT - 1))
22636
fprintf (f, "%lu", i);
22638
/* Do not output a trailing newline, as this causes \r\n confusion
22639
on some platforms. */
22640
return ferror (f) || fclose (f) != 0;
22646
rm -f conftest$ac_exeext
22647
if { (ac_try="$ac_link"
22648
case "(($ac_try" in
22649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650
*) ac_try_echo=$ac_try;;
22652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653
$as_echo "$ac_try_echo") >&5
22654
(eval "$ac_link") 2>&5
22656
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22658
{ (case "(($ac_try" in
22659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660
*) ac_try_echo=$ac_try;;
22662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22663
$as_echo "$ac_try_echo") >&5
22664
(eval "$ac_try") 2>&5
22666
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667
(exit $ac_status); }; }; then
22668
size_t_bits_minus_1=`cat conftest.val`
22670
$as_echo "$as_me: program exited with status $ac_status" >&5
22671
$as_echo "$as_me: failed program was:" >&5
22672
sed 's/^/| /' conftest.$ac_ext >&5
22674
( exit $ac_status )
22675
size_t_bits_minus_1=
22677
rm -rf conftest.dSYM
22678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22681
if test "$cross_compiling" = yes; then
22682
# Depending upon the size, compute the lo and hi bounds.
22683
cat >conftest.$ac_ext <<_ACEOF
22686
cat confdefs.h >>conftest.$ac_ext
22687
cat >>conftest.$ac_ext <<_ACEOF
22688
/* end confdefs.h. */
22689
#include <stddef.h>
22693
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
22700
rm -f conftest.$ac_objext
22701
if { (ac_try="$ac_compile"
22702
case "(($ac_try" in
22703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704
*) ac_try_echo=$ac_try;;
22706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22707
$as_echo "$ac_try_echo") >&5
22708
(eval "$ac_compile") 2>conftest.er1
22710
grep -v '^ *+' conftest.er1 >conftest.err
22712
cat conftest.err >&5
22713
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714
(exit $ac_status); } && {
22715
test -z "$ac_c_werror_flag" ||
22716
test ! -s conftest.err
22717
} && test -s conftest.$ac_objext; then
22720
cat >conftest.$ac_ext <<_ACEOF
22723
cat confdefs.h >>conftest.$ac_ext
22724
cat >>conftest.$ac_ext <<_ACEOF
22725
/* end confdefs.h. */
22726
#include <stddef.h>
22730
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22737
rm -f conftest.$ac_objext
22738
if { (ac_try="$ac_compile"
22739
case "(($ac_try" in
22740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741
*) ac_try_echo=$ac_try;;
22743
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22744
$as_echo "$ac_try_echo") >&5
22745
(eval "$ac_compile") 2>conftest.er1
22747
grep -v '^ *+' conftest.er1 >conftest.err
22749
cat conftest.err >&5
22750
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751
(exit $ac_status); } && {
22752
test -z "$ac_c_werror_flag" ||
22753
test ! -s conftest.err
22754
} && test -s conftest.$ac_objext; then
22755
ac_hi=$ac_mid; break
22757
$as_echo "$as_me: failed program was:" >&5
22758
sed 's/^/| /' conftest.$ac_ext >&5
22760
ac_lo=`expr $ac_mid + 1`
22761
if test $ac_lo -le $ac_mid; then
22765
ac_mid=`expr 2 '*' $ac_mid + 1`
22768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771
$as_echo "$as_me: failed program was:" >&5
22772
sed 's/^/| /' conftest.$ac_ext >&5
22774
cat >conftest.$ac_ext <<_ACEOF
22777
cat confdefs.h >>conftest.$ac_ext
22778
cat >>conftest.$ac_ext <<_ACEOF
22779
/* end confdefs.h. */
22780
#include <stddef.h>
22784
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
22791
rm -f conftest.$ac_objext
22792
if { (ac_try="$ac_compile"
22793
case "(($ac_try" in
22794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795
*) ac_try_echo=$ac_try;;
22797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798
$as_echo "$ac_try_echo") >&5
22799
(eval "$ac_compile") 2>conftest.er1
22801
grep -v '^ *+' conftest.er1 >conftest.err
22803
cat conftest.err >&5
22804
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805
(exit $ac_status); } && {
22806
test -z "$ac_c_werror_flag" ||
22807
test ! -s conftest.err
22808
} && test -s conftest.$ac_objext; then
22811
cat >conftest.$ac_ext <<_ACEOF
22814
cat confdefs.h >>conftest.$ac_ext
22815
cat >>conftest.$ac_ext <<_ACEOF
22816
/* end confdefs.h. */
22817
#include <stddef.h>
22821
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22828
rm -f conftest.$ac_objext
22829
if { (ac_try="$ac_compile"
22830
case "(($ac_try" in
22831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832
*) ac_try_echo=$ac_try;;
22834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835
$as_echo "$ac_try_echo") >&5
22836
(eval "$ac_compile") 2>conftest.er1
22838
grep -v '^ *+' conftest.er1 >conftest.err
22840
cat conftest.err >&5
22841
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842
(exit $ac_status); } && {
22843
test -z "$ac_c_werror_flag" ||
22844
test ! -s conftest.err
22845
} && test -s conftest.$ac_objext; then
22846
ac_lo=$ac_mid; break
22848
$as_echo "$as_me: failed program was:" >&5
22849
sed 's/^/| /' conftest.$ac_ext >&5
22851
ac_hi=`expr '(' $ac_mid ')' - 1`
22852
if test $ac_mid -le $ac_hi; then
22856
ac_mid=`expr 2 '*' $ac_mid`
22859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862
$as_echo "$as_me: failed program was:" >&5
22863
sed 's/^/| /' conftest.$ac_ext >&5
22868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872
# Binary search between lo and hi bounds.
22873
while test "x$ac_lo" != "x$ac_hi"; do
22874
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22875
cat >conftest.$ac_ext <<_ACEOF
22878
cat confdefs.h >>conftest.$ac_ext
22879
cat >>conftest.$ac_ext <<_ACEOF
22880
/* end confdefs.h. */
22881
#include <stddef.h>
22885
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22892
rm -f conftest.$ac_objext
22893
if { (ac_try="$ac_compile"
22894
case "(($ac_try" in
22895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896
*) ac_try_echo=$ac_try;;
22898
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22899
$as_echo "$ac_try_echo") >&5
22900
(eval "$ac_compile") 2>conftest.er1
22902
grep -v '^ *+' conftest.er1 >conftest.err
22904
cat conftest.err >&5
22905
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906
(exit $ac_status); } && {
22907
test -z "$ac_c_werror_flag" ||
22908
test ! -s conftest.err
22909
} && test -s conftest.$ac_objext; then
22912
$as_echo "$as_me: failed program was:" >&5
22913
sed 's/^/| /' conftest.$ac_ext >&5
22915
ac_lo=`expr '(' $ac_mid ')' + 1`
22918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921
?*) fits_in_uint=$ac_lo;;
22922
'') fits_in_uint= ;;
22925
cat >conftest.$ac_ext <<_ACEOF
22928
cat confdefs.h >>conftest.$ac_ext
22929
cat >>conftest.$ac_ext <<_ACEOF
22930
/* end confdefs.h. */
22931
#include <stddef.h>
22932
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22933
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22935
#include <stdlib.h>
22940
FILE *f = fopen ("conftest.val", "w");
22943
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22945
long int i = longval ();
22946
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22948
fprintf (f, "%ld", i);
22952
unsigned long int i = ulongval ();
22953
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22955
fprintf (f, "%lu", i);
22957
/* Do not output a trailing newline, as this causes \r\n confusion
22958
on some platforms. */
22959
return ferror (f) || fclose (f) != 0;
22965
rm -f conftest$ac_exeext
22966
if { (ac_try="$ac_link"
22967
case "(($ac_try" in
22968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969
*) ac_try_echo=$ac_try;;
22971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22972
$as_echo "$ac_try_echo") >&5
22973
(eval "$ac_link") 2>&5
22975
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22977
{ (case "(($ac_try" in
22978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979
*) ac_try_echo=$ac_try;;
22981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22982
$as_echo "$ac_try_echo") >&5
22983
(eval "$ac_try") 2>&5
22985
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986
(exit $ac_status); }; }; then
22987
fits_in_uint=`cat conftest.val`
22989
$as_echo "$as_me: program exited with status $ac_status" >&5
22990
$as_echo "$as_me: failed program was:" >&5
22991
sed 's/^/| /' conftest.$ac_ext >&5
22993
( exit $ac_status )
22996
rm -rf conftest.dSYM
22997
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23000
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23001
if test $fits_in_uint = 1; then
23002
cat >conftest.$ac_ext <<_ACEOF
23005
cat confdefs.h >>conftest.$ac_ext
23006
cat >>conftest.$ac_ext <<_ACEOF
23007
/* end confdefs.h. */
23008
#include <stddef.h>
23010
extern unsigned long foo;
23020
rm -f conftest.$ac_objext
23021
if { (ac_try="$ac_compile"
23022
case "(($ac_try" in
23023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024
*) ac_try_echo=$ac_try;;
23026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027
$as_echo "$ac_try_echo") >&5
23028
(eval "$ac_compile") 2>conftest.er1
23030
grep -v '^ *+' conftest.er1 >conftest.err
23032
cat conftest.err >&5
23033
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034
(exit $ac_status); } && {
23035
test -z "$ac_c_werror_flag" ||
23036
test ! -s conftest.err
23037
} && test -s conftest.$ac_objext; then
23040
$as_echo "$as_me: failed program was:" >&5
23041
sed 's/^/| /' conftest.$ac_ext >&5
23046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048
if test $fits_in_uint = 1; then
23049
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23051
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23054
gl_cv_size_max='((size_t)~(size_t)0)'
23060
{ $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
23061
$as_echo "$gl_cv_size_max" >&6; }
23062
if test "$gl_cv_size_max" != yes; then
23064
cat >>confdefs.h <<_ACEOF
23065
#define SIZE_MAX $gl_cv_size_max
23074
for ac_header in stdint.h
23076
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23077
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23078
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23079
$as_echo_n "checking for $ac_header... " >&6; }
23080
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23081
$as_echo_n "(cached) " >&6
23083
ac_res=`eval 'as_val=${'$as_ac_Header'}
23084
$as_echo "$as_val"'`
23085
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23086
$as_echo "$ac_res" >&6; }
23088
# Is the header compilable?
23089
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23090
$as_echo_n "checking $ac_header usability... " >&6; }
23091
cat >conftest.$ac_ext <<_ACEOF
23094
cat confdefs.h >>conftest.$ac_ext
23095
cat >>conftest.$ac_ext <<_ACEOF
23096
/* end confdefs.h. */
23097
$ac_includes_default
23098
#include <$ac_header>
23100
rm -f conftest.$ac_objext
23101
if { (ac_try="$ac_compile"
23102
case "(($ac_try" in
23103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104
*) ac_try_echo=$ac_try;;
23106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23107
$as_echo "$ac_try_echo") >&5
23108
(eval "$ac_compile") 2>conftest.er1
23110
grep -v '^ *+' conftest.er1 >conftest.err
23112
cat conftest.err >&5
23113
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114
(exit $ac_status); } && {
23115
test -z "$ac_c_werror_flag" ||
23116
test ! -s conftest.err
23117
} && test -s conftest.$ac_objext; then
23118
ac_header_compiler=yes
23120
$as_echo "$as_me: failed program was:" >&5
23121
sed 's/^/| /' conftest.$ac_ext >&5
23123
ac_header_compiler=no
23126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23128
$as_echo "$ac_header_compiler" >&6; }
23130
# Is the header present?
23131
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23132
$as_echo_n "checking $ac_header presence... " >&6; }
23133
cat >conftest.$ac_ext <<_ACEOF
23136
cat confdefs.h >>conftest.$ac_ext
23137
cat >>conftest.$ac_ext <<_ACEOF
23138
/* end confdefs.h. */
23139
#include <$ac_header>
23141
if { (ac_try="$ac_cpp conftest.$ac_ext"
23142
case "(($ac_try" in
23143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144
*) ac_try_echo=$ac_try;;
23146
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23147
$as_echo "$ac_try_echo") >&5
23148
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23150
grep -v '^ *+' conftest.er1 >conftest.err
23152
cat conftest.err >&5
23153
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154
(exit $ac_status); } >/dev/null && {
23155
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23156
test ! -s conftest.err
23158
ac_header_preproc=yes
23160
$as_echo "$as_me: failed program was:" >&5
23161
sed 's/^/| /' conftest.$ac_ext >&5
23163
ac_header_preproc=no
23166
rm -f conftest.err conftest.$ac_ext
23167
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23168
$as_echo "$ac_header_preproc" >&6; }
23170
# So? What about this header?
23171
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23173
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23174
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23175
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23176
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23177
ac_header_preproc=yes
23180
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23181
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23182
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23183
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23184
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23185
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23186
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23187
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23188
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23189
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23190
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23191
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23195
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23196
$as_echo_n "checking for $ac_header... " >&6; }
23197
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198
$as_echo_n "(cached) " >&6
23200
eval "$as_ac_Header=\$ac_header_preproc"
23202
ac_res=`eval 'as_val=${'$as_ac_Header'}
23203
$as_echo "$as_val"'`
23204
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23205
$as_echo "$ac_res" >&6; }
23208
as_val=`eval 'as_val=${'$as_ac_Header'}
23209
$as_echo "$as_val"'`
23210
if test "x$as_val" = x""yes; then
23211
cat >>confdefs.h <<_ACEOF
23212
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23221
{ $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23222
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23223
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23224
$as_echo_n "(cached) " >&6
23226
gt_save_LIBS="$LIBS"
23227
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23228
cat >conftest.$ac_ext <<_ACEOF
23231
cat confdefs.h >>conftest.$ac_ext
23232
cat >>conftest.$ac_ext <<_ACEOF
23233
/* end confdefs.h. */
23234
#include <CoreFoundation/CFPreferences.h>
23238
CFPreferencesCopyAppValue(NULL, NULL)
23243
rm -f conftest.$ac_objext conftest$ac_exeext
23244
if { (ac_try="$ac_link"
23245
case "(($ac_try" in
23246
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247
*) ac_try_echo=$ac_try;;
23249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23250
$as_echo "$ac_try_echo") >&5
23251
(eval "$ac_link") 2>conftest.er1
23253
grep -v '^ *+' conftest.er1 >conftest.err
23255
cat conftest.err >&5
23256
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257
(exit $ac_status); } && {
23258
test -z "$ac_c_werror_flag" ||
23259
test ! -s conftest.err
23260
} && test -s conftest$ac_exeext && {
23261
test "$cross_compiling" = yes ||
23262
$as_test_x conftest$ac_exeext
23264
gt_cv_func_CFPreferencesCopyAppValue=yes
23266
$as_echo "$as_me: failed program was:" >&5
23267
sed 's/^/| /' conftest.$ac_ext >&5
23269
gt_cv_func_CFPreferencesCopyAppValue=no
23272
rm -rf conftest.dSYM
23273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23274
conftest$ac_exeext conftest.$ac_ext
23275
LIBS="$gt_save_LIBS"
23277
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23278
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23279
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23281
cat >>confdefs.h <<\_ACEOF
23282
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23286
{ $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23287
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23288
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23289
$as_echo_n "(cached) " >&6
23291
gt_save_LIBS="$LIBS"
23292
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23293
cat >conftest.$ac_ext <<_ACEOF
23296
cat confdefs.h >>conftest.$ac_ext
23297
cat >>conftest.$ac_ext <<_ACEOF
23298
/* end confdefs.h. */
23299
#include <CoreFoundation/CFLocale.h>
23303
CFLocaleCopyCurrent();
23308
rm -f conftest.$ac_objext conftest$ac_exeext
23309
if { (ac_try="$ac_link"
23310
case "(($ac_try" in
23311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312
*) ac_try_echo=$ac_try;;
23314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23315
$as_echo "$ac_try_echo") >&5
23316
(eval "$ac_link") 2>conftest.er1
23318
grep -v '^ *+' conftest.er1 >conftest.err
23320
cat conftest.err >&5
23321
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322
(exit $ac_status); } && {
23323
test -z "$ac_c_werror_flag" ||
23324
test ! -s conftest.err
23325
} && test -s conftest$ac_exeext && {
23326
test "$cross_compiling" = yes ||
23327
$as_test_x conftest$ac_exeext
23329
gt_cv_func_CFLocaleCopyCurrent=yes
23331
$as_echo "$as_me: failed program was:" >&5
23332
sed 's/^/| /' conftest.$ac_ext >&5
23334
gt_cv_func_CFLocaleCopyCurrent=no
23337
rm -rf conftest.dSYM
23338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23339
conftest$ac_exeext conftest.$ac_ext
23340
LIBS="$gt_save_LIBS"
23342
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23343
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23344
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23346
cat >>confdefs.h <<\_ACEOF
23347
#define HAVE_CFLOCALECOPYCURRENT 1
23352
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23353
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23362
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23363
$as_echo_n "checking for ptrdiff_t... " >&6; }
23364
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23365
$as_echo_n "(cached) " >&6
23367
ac_cv_type_ptrdiff_t=no
23368
cat >conftest.$ac_ext <<_ACEOF
23371
cat confdefs.h >>conftest.$ac_ext
23372
cat >>conftest.$ac_ext <<_ACEOF
23373
/* end confdefs.h. */
23374
$ac_includes_default
23378
if (sizeof (ptrdiff_t))
23384
rm -f conftest.$ac_objext
23385
if { (ac_try="$ac_compile"
23386
case "(($ac_try" in
23387
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388
*) ac_try_echo=$ac_try;;
23390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391
$as_echo "$ac_try_echo") >&5
23392
(eval "$ac_compile") 2>conftest.er1
23394
grep -v '^ *+' conftest.er1 >conftest.err
23396
cat conftest.err >&5
23397
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398
(exit $ac_status); } && {
23399
test -z "$ac_c_werror_flag" ||
23400
test ! -s conftest.err
23401
} && test -s conftest.$ac_objext; then
23402
cat >conftest.$ac_ext <<_ACEOF
23405
cat confdefs.h >>conftest.$ac_ext
23406
cat >>conftest.$ac_ext <<_ACEOF
23407
/* end confdefs.h. */
23408
$ac_includes_default
23412
if (sizeof ((ptrdiff_t)))
23418
rm -f conftest.$ac_objext
23419
if { (ac_try="$ac_compile"
23420
case "(($ac_try" in
23421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422
*) ac_try_echo=$ac_try;;
23424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425
$as_echo "$ac_try_echo") >&5
23426
(eval "$ac_compile") 2>conftest.er1
23428
grep -v '^ *+' conftest.er1 >conftest.err
23430
cat conftest.err >&5
23431
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432
(exit $ac_status); } && {
23433
test -z "$ac_c_werror_flag" ||
23434
test ! -s conftest.err
23435
} && test -s conftest.$ac_objext; then
23438
$as_echo "$as_me: failed program was:" >&5
23439
sed 's/^/| /' conftest.$ac_ext >&5
23441
ac_cv_type_ptrdiff_t=yes
23444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446
$as_echo "$as_me: failed program was:" >&5
23447
sed 's/^/| /' conftest.$ac_ext >&5
23452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23455
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
23456
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
23460
cat >>confdefs.h <<\_ACEOF
23461
#define ptrdiff_t long
23470
for ac_header in stddef.h stdlib.h string.h
23472
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23474
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23475
$as_echo_n "checking for $ac_header... " >&6; }
23476
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23477
$as_echo_n "(cached) " >&6
23479
ac_res=`eval 'as_val=${'$as_ac_Header'}
23480
$as_echo "$as_val"'`
23481
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23482
$as_echo "$ac_res" >&6; }
23484
# Is the header compilable?
23485
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23486
$as_echo_n "checking $ac_header usability... " >&6; }
23487
cat >conftest.$ac_ext <<_ACEOF
23490
cat confdefs.h >>conftest.$ac_ext
23491
cat >>conftest.$ac_ext <<_ACEOF
23492
/* end confdefs.h. */
23493
$ac_includes_default
23494
#include <$ac_header>
23496
rm -f conftest.$ac_objext
23497
if { (ac_try="$ac_compile"
23498
case "(($ac_try" in
23499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500
*) ac_try_echo=$ac_try;;
23502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503
$as_echo "$ac_try_echo") >&5
23504
(eval "$ac_compile") 2>conftest.er1
23506
grep -v '^ *+' conftest.er1 >conftest.err
23508
cat conftest.err >&5
23509
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510
(exit $ac_status); } && {
23511
test -z "$ac_c_werror_flag" ||
23512
test ! -s conftest.err
23513
} && test -s conftest.$ac_objext; then
23514
ac_header_compiler=yes
23516
$as_echo "$as_me: failed program was:" >&5
23517
sed 's/^/| /' conftest.$ac_ext >&5
23519
ac_header_compiler=no
23522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23524
$as_echo "$ac_header_compiler" >&6; }
23526
# Is the header present?
23527
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23528
$as_echo_n "checking $ac_header presence... " >&6; }
23529
cat >conftest.$ac_ext <<_ACEOF
23532
cat confdefs.h >>conftest.$ac_ext
23533
cat >>conftest.$ac_ext <<_ACEOF
23534
/* end confdefs.h. */
23535
#include <$ac_header>
23537
if { (ac_try="$ac_cpp conftest.$ac_ext"
23538
case "(($ac_try" in
23539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540
*) ac_try_echo=$ac_try;;
23542
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543
$as_echo "$ac_try_echo") >&5
23544
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23546
grep -v '^ *+' conftest.er1 >conftest.err
23548
cat conftest.err >&5
23549
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550
(exit $ac_status); } >/dev/null && {
23551
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23552
test ! -s conftest.err
23554
ac_header_preproc=yes
23556
$as_echo "$as_me: failed program was:" >&5
23557
sed 's/^/| /' conftest.$ac_ext >&5
23559
ac_header_preproc=no
23562
rm -f conftest.err conftest.$ac_ext
23563
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23564
$as_echo "$ac_header_preproc" >&6; }
23566
# So? What about this header?
23567
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23569
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23570
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23571
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23572
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23573
ac_header_preproc=yes
23576
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23577
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23578
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23579
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23580
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23581
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23582
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23583
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23584
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23585
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23586
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23587
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23591
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23592
$as_echo_n "checking for $ac_header... " >&6; }
23593
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23594
$as_echo_n "(cached) " >&6
23596
eval "$as_ac_Header=\$ac_header_preproc"
23598
ac_res=`eval 'as_val=${'$as_ac_Header'}
23599
$as_echo "$as_val"'`
23600
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23601
$as_echo "$ac_res" >&6; }
23604
as_val=`eval 'as_val=${'$as_ac_Header'}
23605
$as_echo "$as_val"'`
23606
if test "x$as_val" = x""yes; then
23607
cat >>confdefs.h <<_ACEOF
23608
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23622
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
23624
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23625
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23626
$as_echo_n "checking for $ac_func... " >&6; }
23627
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23628
$as_echo_n "(cached) " >&6
23630
cat >conftest.$ac_ext <<_ACEOF
23633
cat confdefs.h >>conftest.$ac_ext
23634
cat >>conftest.$ac_ext <<_ACEOF
23635
/* end confdefs.h. */
23636
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23637
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23638
#define $ac_func innocuous_$ac_func
23640
/* System header to define __stub macros and hopefully few prototypes,
23641
which can conflict with char $ac_func (); below.
23642
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23643
<limits.h> exists even on freestanding compilers. */
23646
# include <limits.h>
23648
# include <assert.h>
23653
/* Override any GCC internal prototype to avoid an error.
23654
Use char because int might match the return type of a GCC
23655
builtin and then its argument prototype would still apply. */
23660
/* The GNU C library defines this for functions which it implements
23661
to always fail with ENOSYS. Some functions are actually named
23662
something starting with __ and the normal name is an alias. */
23663
#if defined __stub_$ac_func || defined __stub___$ac_func
23670
return $ac_func ();
23675
rm -f conftest.$ac_objext conftest$ac_exeext
23676
if { (ac_try="$ac_link"
23677
case "(($ac_try" in
23678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679
*) ac_try_echo=$ac_try;;
23681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23682
$as_echo "$ac_try_echo") >&5
23683
(eval "$ac_link") 2>conftest.er1
23685
grep -v '^ *+' conftest.er1 >conftest.err
23687
cat conftest.err >&5
23688
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689
(exit $ac_status); } && {
23690
test -z "$ac_c_werror_flag" ||
23691
test ! -s conftest.err
23692
} && test -s conftest$ac_exeext && {
23693
test "$cross_compiling" = yes ||
23694
$as_test_x conftest$ac_exeext
23696
eval "$as_ac_var=yes"
23698
$as_echo "$as_me: failed program was:" >&5
23699
sed 's/^/| /' conftest.$ac_ext >&5
23701
eval "$as_ac_var=no"
23704
rm -rf conftest.dSYM
23705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706
conftest$ac_exeext conftest.$ac_ext
23708
ac_res=`eval 'as_val=${'$as_ac_var'}
23709
$as_echo "$as_val"'`
23710
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23711
$as_echo "$ac_res" >&6; }
23712
as_val=`eval 'as_val=${'$as_ac_var'}
23713
$as_echo "$as_val"'`
23714
if test "x$as_val" = x""yes; then
23715
cat >>confdefs.h <<_ACEOF
23716
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23724
{ $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
23725
$as_echo_n "checking whether _snprintf is declared... " >&6; }
23726
if test "${ac_cv_have_decl__snprintf+set}" = set; then
23727
$as_echo_n "(cached) " >&6
23729
cat >conftest.$ac_ext <<_ACEOF
23732
cat confdefs.h >>conftest.$ac_ext
23733
cat >>conftest.$ac_ext <<_ACEOF
23734
/* end confdefs.h. */
23741
char *p = (char *) _snprintf;
23748
rm -f conftest.$ac_objext
23749
if { (ac_try="$ac_compile"
23750
case "(($ac_try" in
23751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752
*) ac_try_echo=$ac_try;;
23754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755
$as_echo "$ac_try_echo") >&5
23756
(eval "$ac_compile") 2>conftest.er1
23758
grep -v '^ *+' conftest.er1 >conftest.err
23760
cat conftest.err >&5
23761
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762
(exit $ac_status); } && {
23763
test -z "$ac_c_werror_flag" ||
23764
test ! -s conftest.err
23765
} && test -s conftest.$ac_objext; then
23766
ac_cv_have_decl__snprintf=yes
23768
$as_echo "$as_me: failed program was:" >&5
23769
sed 's/^/| /' conftest.$ac_ext >&5
23771
ac_cv_have_decl__snprintf=no
23774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
23777
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
23778
if test $ac_cv_have_decl__snprintf = yes; then
23784
cat >>confdefs.h <<_ACEOF
23785
#define HAVE_DECL__SNPRINTF $gt_value
23790
{ $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
23791
$as_echo_n "checking whether _snwprintf is declared... " >&6; }
23792
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
23793
$as_echo_n "(cached) " >&6
23795
cat >conftest.$ac_ext <<_ACEOF
23798
cat confdefs.h >>conftest.$ac_ext
23799
cat >>conftest.$ac_ext <<_ACEOF
23800
/* end confdefs.h. */
23807
char *p = (char *) _snwprintf;
23814
rm -f conftest.$ac_objext
23815
if { (ac_try="$ac_compile"
23816
case "(($ac_try" in
23817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818
*) ac_try_echo=$ac_try;;
23820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23821
$as_echo "$ac_try_echo") >&5
23822
(eval "$ac_compile") 2>conftest.er1
23824
grep -v '^ *+' conftest.er1 >conftest.err
23826
cat conftest.err >&5
23827
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828
(exit $ac_status); } && {
23829
test -z "$ac_c_werror_flag" ||
23830
test ! -s conftest.err
23831
} && test -s conftest.$ac_objext; then
23832
ac_cv_have_decl__snwprintf=yes
23834
$as_echo "$as_me: failed program was:" >&5
23835
sed 's/^/| /' conftest.$ac_ext >&5
23837
ac_cv_have_decl__snwprintf=no
23840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
23843
$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
23844
if test $ac_cv_have_decl__snwprintf = yes; then
23850
cat >>confdefs.h <<_ACEOF
23851
#define HAVE_DECL__SNWPRINTF $gt_value
23857
{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23858
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23859
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23860
$as_echo_n "(cached) " >&6
23862
cat >conftest.$ac_ext <<_ACEOF
23865
cat confdefs.h >>conftest.$ac_ext
23866
cat >>conftest.$ac_ext <<_ACEOF
23867
/* end confdefs.h. */
23873
#ifndef getc_unlocked
23874
char *p = (char *) getc_unlocked;
23881
rm -f conftest.$ac_objext
23882
if { (ac_try="$ac_compile"
23883
case "(($ac_try" in
23884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885
*) ac_try_echo=$ac_try;;
23887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23888
$as_echo "$ac_try_echo") >&5
23889
(eval "$ac_compile") 2>conftest.er1
23891
grep -v '^ *+' conftest.er1 >conftest.err
23893
cat conftest.err >&5
23894
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895
(exit $ac_status); } && {
23896
test -z "$ac_c_werror_flag" ||
23897
test ! -s conftest.err
23898
} && test -s conftest.$ac_objext; then
23899
ac_cv_have_decl_getc_unlocked=yes
23901
$as_echo "$as_me: failed program was:" >&5
23902
sed 's/^/| /' conftest.$ac_ext >&5
23904
ac_cv_have_decl_getc_unlocked=no
23907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23910
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23911
if test $ac_cv_have_decl_getc_unlocked = yes; then
23917
cat >>confdefs.h <<_ACEOF
23918
#define HAVE_DECL_GETC_UNLOCKED $gt_value
23923
case $gt_cv_func_printf_posix in
23924
*yes) HAVE_POSIX_PRINTF=1 ;;
23925
*) HAVE_POSIX_PRINTF=0 ;;
23928
if test "$ac_cv_func_asprintf" = yes; then
23934
if test "$ac_cv_func_snprintf" = yes; then
23940
if test "$ac_cv_func_wprintf" = yes; then
23948
{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23949
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23950
if test "${am_cv_langinfo_codeset+set}" = set; then
23951
$as_echo_n "(cached) " >&6
23953
cat >conftest.$ac_ext <<_ACEOF
23956
cat confdefs.h >>conftest.$ac_ext
23957
cat >>conftest.$ac_ext <<_ACEOF
23958
/* end confdefs.h. */
23959
#include <langinfo.h>
23963
char* cs = nl_langinfo(CODESET); return !cs;
23968
rm -f conftest.$ac_objext conftest$ac_exeext
23969
if { (ac_try="$ac_link"
23970
case "(($ac_try" in
23971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972
*) ac_try_echo=$ac_try;;
23974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975
$as_echo "$ac_try_echo") >&5
23976
(eval "$ac_link") 2>conftest.er1
23978
grep -v '^ *+' conftest.er1 >conftest.err
23980
cat conftest.err >&5
23981
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982
(exit $ac_status); } && {
23983
test -z "$ac_c_werror_flag" ||
23984
test ! -s conftest.err
23985
} && test -s conftest$ac_exeext && {
23986
test "$cross_compiling" = yes ||
23987
$as_test_x conftest$ac_exeext
23989
am_cv_langinfo_codeset=yes
23991
$as_echo "$as_me: failed program was:" >&5
23992
sed 's/^/| /' conftest.$ac_ext >&5
23994
am_cv_langinfo_codeset=no
23997
rm -rf conftest.dSYM
23998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999
conftest$ac_exeext conftest.$ac_ext
24002
{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
24003
$as_echo "$am_cv_langinfo_codeset" >&6; }
24004
if test $am_cv_langinfo_codeset = yes; then
24006
cat >>confdefs.h <<\_ACEOF
24007
#define HAVE_LANGINFO_CODESET 1
24013
{ $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
24014
$as_echo_n "checking for LC_MESSAGES... " >&6; }
24015
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
24016
$as_echo_n "(cached) " >&6
24018
cat >conftest.$ac_ext <<_ACEOF
24021
cat confdefs.h >>conftest.$ac_ext
24022
cat >>conftest.$ac_ext <<_ACEOF
24023
/* end confdefs.h. */
24024
#include <locale.h>
24033
rm -f conftest.$ac_objext conftest$ac_exeext
24034
if { (ac_try="$ac_link"
24035
case "(($ac_try" in
24036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037
*) ac_try_echo=$ac_try;;
24039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040
$as_echo "$ac_try_echo") >&5
24041
(eval "$ac_link") 2>conftest.er1
24043
grep -v '^ *+' conftest.er1 >conftest.err
24045
cat conftest.err >&5
24046
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047
(exit $ac_status); } && {
24048
test -z "$ac_c_werror_flag" ||
24049
test ! -s conftest.err
24050
} && test -s conftest$ac_exeext && {
24051
test "$cross_compiling" = yes ||
24052
$as_test_x conftest$ac_exeext
24054
gt_cv_val_LC_MESSAGES=yes
24056
$as_echo "$as_me: failed program was:" >&5
24057
sed 's/^/| /' conftest.$ac_ext >&5
24059
gt_cv_val_LC_MESSAGES=no
24062
rm -rf conftest.dSYM
24063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24064
conftest$ac_exeext conftest.$ac_ext
24066
{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
24067
$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
24068
if test $gt_cv_val_LC_MESSAGES = yes; then
24070
cat >>confdefs.h <<\_ACEOF
24071
#define HAVE_LC_MESSAGES 1
24077
if test "$enable_shared" = yes; then
24079
mingw* | cygwin*) is_woe32dll=yes ;;
24080
*) is_woe32dll=no ;;
24085
WOE32DLL=$is_woe32dll
24089
mingw* | cygwin*) is_woe32=yes ;;
24094
if test $WOE32 = yes; then
24095
if test -n "$ac_tool_prefix"; then
24096
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
24097
set dummy ${ac_tool_prefix}windres; ac_word=$2
24098
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24099
$as_echo_n "checking for $ac_word... " >&6; }
24100
if test "${ac_cv_prog_WINDRES+set}" = set; then
24101
$as_echo_n "(cached) " >&6
24103
if test -n "$WINDRES"; then
24104
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
24106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24107
for as_dir in $PATH
24110
test -z "$as_dir" && as_dir=.
24111
for ac_exec_ext in '' $ac_executable_extensions; do
24112
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24113
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
24114
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24123
WINDRES=$ac_cv_prog_WINDRES
24124
if test -n "$WINDRES"; then
24125
{ $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
24126
$as_echo "$WINDRES" >&6; }
24128
{ $as_echo "$as_me:$LINENO: result: no" >&5
24129
$as_echo "no" >&6; }
24134
if test -z "$ac_cv_prog_WINDRES"; then
24135
ac_ct_WINDRES=$WINDRES
24136
# Extract the first word of "windres", so it can be a program name with args.
24137
set dummy windres; ac_word=$2
24138
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24139
$as_echo_n "checking for $ac_word... " >&6; }
24140
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
24141
$as_echo_n "(cached) " >&6
24143
if test -n "$ac_ct_WINDRES"; then
24144
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
24146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24147
for as_dir in $PATH
24150
test -z "$as_dir" && as_dir=.
24151
for ac_exec_ext in '' $ac_executable_extensions; do
24152
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24153
ac_cv_prog_ac_ct_WINDRES="windres"
24154
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24163
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
24164
if test -n "$ac_ct_WINDRES"; then
24165
{ $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
24166
$as_echo "$ac_ct_WINDRES" >&6; }
24168
{ $as_echo "$as_me:$LINENO: result: no" >&5
24169
$as_echo "no" >&6; }
24172
if test "x$ac_ct_WINDRES" = x; then
24175
case $cross_compiling:$ac_tool_warned in
24177
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24179
ac_tool_warned=yes ;;
24181
WINDRES=$ac_ct_WINDRES
24184
WINDRES="$ac_cv_prog_WINDRES"
24190
hpux*) LTLIBC="" ;;
24220
{ $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24221
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24222
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24223
$as_echo_n "(cached) " >&6
24225
gt_save_LIBS="$LIBS"
24226
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24227
cat >conftest.$ac_ext <<_ACEOF
24230
cat confdefs.h >>conftest.$ac_ext
24231
cat >>conftest.$ac_ext <<_ACEOF
24232
/* end confdefs.h. */
24233
#include <CoreFoundation/CFPreferences.h>
24237
CFPreferencesCopyAppValue(NULL, NULL)
24242
rm -f conftest.$ac_objext conftest$ac_exeext
24243
if { (ac_try="$ac_link"
24244
case "(($ac_try" in
24245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246
*) ac_try_echo=$ac_try;;
24248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249
$as_echo "$ac_try_echo") >&5
24250
(eval "$ac_link") 2>conftest.er1
24252
grep -v '^ *+' conftest.er1 >conftest.err
24254
cat conftest.err >&5
24255
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256
(exit $ac_status); } && {
24257
test -z "$ac_c_werror_flag" ||
24258
test ! -s conftest.err
24259
} && test -s conftest$ac_exeext && {
24260
test "$cross_compiling" = yes ||
24261
$as_test_x conftest$ac_exeext
24263
gt_cv_func_CFPreferencesCopyAppValue=yes
24265
$as_echo "$as_me: failed program was:" >&5
24266
sed 's/^/| /' conftest.$ac_ext >&5
24268
gt_cv_func_CFPreferencesCopyAppValue=no
24271
rm -rf conftest.dSYM
24272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24273
conftest$ac_exeext conftest.$ac_ext
24274
LIBS="$gt_save_LIBS"
24276
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24277
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24278
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24280
cat >>confdefs.h <<\_ACEOF
24281
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24285
{ $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24286
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24287
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24288
$as_echo_n "(cached) " >&6
24290
gt_save_LIBS="$LIBS"
24291
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24292
cat >conftest.$ac_ext <<_ACEOF
24295
cat confdefs.h >>conftest.$ac_ext
24296
cat >>conftest.$ac_ext <<_ACEOF
24297
/* end confdefs.h. */
24298
#include <CoreFoundation/CFLocale.h>
24302
CFLocaleCopyCurrent();
24307
rm -f conftest.$ac_objext conftest$ac_exeext
24308
if { (ac_try="$ac_link"
24309
case "(($ac_try" in
24310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311
*) ac_try_echo=$ac_try;;
24313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24314
$as_echo "$ac_try_echo") >&5
24315
(eval "$ac_link") 2>conftest.er1
24317
grep -v '^ *+' conftest.er1 >conftest.err
24319
cat conftest.err >&5
24320
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321
(exit $ac_status); } && {
24322
test -z "$ac_c_werror_flag" ||
24323
test ! -s conftest.err
24324
} && test -s conftest$ac_exeext && {
24325
test "$cross_compiling" = yes ||
24326
$as_test_x conftest$ac_exeext
24328
gt_cv_func_CFLocaleCopyCurrent=yes
24330
$as_echo "$as_me: failed program was:" >&5
24331
sed 's/^/| /' conftest.$ac_ext >&5
24333
gt_cv_func_CFLocaleCopyCurrent=no
24336
rm -rf conftest.dSYM
24337
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24338
conftest$ac_exeext conftest.$ac_ext
24339
LIBS="$gt_save_LIBS"
24341
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24342
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24343
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24345
cat >>confdefs.h <<\_ACEOF
24346
#define HAVE_CFLOCALECOPYCURRENT 1
24351
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24352
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24360
BUILD_INCLUDED_LIBINTL=no
24361
USE_INCLUDED_LIBINTL=no
24367
case " $gt_needs " in
24368
*" need-formatstring-macros "*) gt_api_version=3 ;;
24369
*" need-ngettext "*) gt_api_version=2 ;;
24370
*) gt_api_version=1 ;;
24372
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
24373
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
24375
if test "$USE_NLS" = "yes"; then
24376
gt_use_preinstalled_gnugettext=no
24378
{ $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
24379
$as_echo_n "checking whether included gettext is requested... " >&6; }
24381
# Check whether --with-included-gettext was given.
24382
if test "${with_included_gettext+set}" = set; then
24383
withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
24385
nls_cv_force_use_gnu_gettext=no
24388
{ $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
24389
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
24391
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
24392
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
24395
if test $gt_api_version -ge 3; then
24396
gt_revision_test_code='
24397
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24398
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
24400
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
24403
gt_revision_test_code=
24405
if test $gt_api_version -ge 2; then
24406
gt_expression_test_code=' + * ngettext ("", "", 0)'
24408
gt_expression_test_code=
24411
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
24412
$as_echo_n "checking for GNU gettext in libc... " >&6; }
24413
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
24414
$as_echo_n "(cached) " >&6
24416
cat >conftest.$ac_ext <<_ACEOF
24419
cat confdefs.h >>conftest.$ac_ext
24420
cat >>conftest.$ac_ext <<_ACEOF
24421
/* end confdefs.h. */
24422
#include <libintl.h>
24423
$gt_revision_test_code
24424
extern int _nl_msg_cat_cntr;
24425
extern int *_nl_domain_bindings;
24429
bindtextdomain ("", "");
24430
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
24435
rm -f conftest.$ac_objext conftest$ac_exeext
24436
if { (ac_try="$ac_link"
24437
case "(($ac_try" in
24438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24439
*) ac_try_echo=$ac_try;;
24441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24442
$as_echo "$ac_try_echo") >&5
24443
(eval "$ac_link") 2>conftest.er1
24445
grep -v '^ *+' conftest.er1 >conftest.err
24447
cat conftest.err >&5
24448
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449
(exit $ac_status); } && {
24450
test -z "$ac_c_werror_flag" ||
24451
test ! -s conftest.err
24452
} && test -s conftest$ac_exeext && {
24453
test "$cross_compiling" = yes ||
24454
$as_test_x conftest$ac_exeext
24456
eval "$gt_func_gnugettext_libc=yes"
24458
$as_echo "$as_me: failed program was:" >&5
24459
sed 's/^/| /' conftest.$ac_ext >&5
24461
eval "$gt_func_gnugettext_libc=no"
24464
rm -rf conftest.dSYM
24465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466
conftest$ac_exeext conftest.$ac_ext
24468
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
24469
$as_echo "$as_val"'`
24470
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24471
$as_echo "$ac_res" >&6; }
24473
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
24481
acl_save_prefix="$prefix"
24482
prefix="$acl_final_prefix"
24483
acl_save_exec_prefix="$exec_prefix"
24484
exec_prefix="$acl_final_exec_prefix"
24486
eval additional_includedir=\"$includedir\"
24487
eval additional_libdir=\"$libdir\"
24489
exec_prefix="$acl_save_exec_prefix"
24490
prefix="$acl_save_prefix"
24493
# Check whether --with-libintl-prefix was given.
24494
if test "${with_libintl_prefix+set}" = set; then
24495
withval=$with_libintl_prefix;
24496
if test "X$withval" = "Xno"; then
24499
if test "X$withval" = "X"; then
24501
acl_save_prefix="$prefix"
24502
prefix="$acl_final_prefix"
24503
acl_save_exec_prefix="$exec_prefix"
24504
exec_prefix="$acl_final_exec_prefix"
24506
eval additional_includedir=\"$includedir\"
24507
eval additional_libdir=\"$libdir\"
24509
exec_prefix="$acl_save_exec_prefix"
24510
prefix="$acl_save_prefix"
24513
additional_includedir="$withval/include"
24514
additional_libdir="$withval/$acl_libdirstem"
24526
names_already_handled=
24527
names_next_round='intl '
24528
while test -n "$names_next_round"; do
24529
names_this_round="$names_next_round"
24531
for name in $names_this_round; do
24533
for n in $names_already_handled; do
24534
if test "$n" = "$name"; then
24535
already_handled=yes
24539
if test -z "$already_handled"; then
24540
names_already_handled="$names_already_handled $name"
24541
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24542
eval value=\"\$HAVE_LIB$uppername\"
24543
if test -n "$value"; then
24544
if test "$value" = yes; then
24545
eval value=\"\$LIB$uppername\"
24546
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24547
eval value=\"\$LTLIB$uppername\"
24548
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24557
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
24558
if test -n "$acl_shlibext"; then
24559
shrext=".$acl_shlibext" # typically: shrext=.so
24563
if test $use_additional = yes; then
24564
dir="$additional_libdir"
24565
if test -n "$acl_shlibext"; then
24566
if test -f "$dir/$libname$shrext"; then
24568
found_so="$dir/$libname$shrext"
24570
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24571
ver=`(cd "$dir" && \
24572
for f in "$libname$shrext".*; do echo "$f"; done \
24573
| sed -e "s,^$libname$shrext\\\\.,," \
24574
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24575
| sed 1q ) 2>/dev/null`
24576
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24578
found_so="$dir/$libname$shrext.$ver"
24581
eval library_names=\"$acl_library_names_spec\"
24582
for f in $library_names; do
24583
if test -f "$dir/$f"; then
24592
if test "X$found_dir" = "X"; then
24593
if test -f "$dir/$libname.$acl_libext"; then
24595
found_a="$dir/$libname.$acl_libext"
24598
if test "X$found_dir" != "X"; then
24599
if test -f "$dir/$libname.la"; then
24600
found_la="$dir/$libname.la"
24604
if test "X$found_dir" = "X"; then
24605
for x in $LDFLAGS $LTLIBINTL; do
24607
acl_save_prefix="$prefix"
24608
prefix="$acl_final_prefix"
24609
acl_save_exec_prefix="$exec_prefix"
24610
exec_prefix="$acl_final_exec_prefix"
24612
exec_prefix="$acl_save_exec_prefix"
24613
prefix="$acl_save_prefix"
24617
dir=`echo "X$x" | sed -e 's/^X-L//'`
24618
if test -n "$acl_shlibext"; then
24619
if test -f "$dir/$libname$shrext"; then
24621
found_so="$dir/$libname$shrext"
24623
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24624
ver=`(cd "$dir" && \
24625
for f in "$libname$shrext".*; do echo "$f"; done \
24626
| sed -e "s,^$libname$shrext\\\\.,," \
24627
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24628
| sed 1q ) 2>/dev/null`
24629
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24631
found_so="$dir/$libname$shrext.$ver"
24634
eval library_names=\"$acl_library_names_spec\"
24635
for f in $library_names; do
24636
if test -f "$dir/$f"; then
24645
if test "X$found_dir" = "X"; then
24646
if test -f "$dir/$libname.$acl_libext"; then
24648
found_a="$dir/$libname.$acl_libext"
24651
if test "X$found_dir" != "X"; then
24652
if test -f "$dir/$libname.la"; then
24653
found_la="$dir/$libname.la"
24658
if test "X$found_dir" != "X"; then
24663
if test "X$found_dir" != "X"; then
24664
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24665
if test "X$found_so" != "X"; then
24666
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24667
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24670
for x in $ltrpathdirs; do
24671
if test "X$x" = "X$found_dir"; then
24676
if test -z "$haveit"; then
24677
ltrpathdirs="$ltrpathdirs $found_dir"
24679
if test "$acl_hardcode_direct" = yes; then
24680
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24682
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24683
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24685
for x in $rpathdirs; do
24686
if test "X$x" = "X$found_dir"; then
24691
if test -z "$haveit"; then
24692
rpathdirs="$rpathdirs $found_dir"
24696
for x in $LDFLAGS $LIBINTL; do
24698
acl_save_prefix="$prefix"
24699
prefix="$acl_final_prefix"
24700
acl_save_exec_prefix="$exec_prefix"
24701
exec_prefix="$acl_final_exec_prefix"
24703
exec_prefix="$acl_save_exec_prefix"
24704
prefix="$acl_save_prefix"
24706
if test "X$x" = "X-L$found_dir"; then
24711
if test -z "$haveit"; then
24712
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24714
if test "$acl_hardcode_minus_L" != no; then
24715
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24717
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24723
if test "X$found_a" != "X"; then
24724
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24726
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24729
additional_includedir=
24730
case "$found_dir" in
24731
*/$acl_libdirstem | */$acl_libdirstem/)
24732
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24733
LIBINTL_PREFIX="$basedir"
24734
additional_includedir="$basedir/include"
24737
if test "X$additional_includedir" != "X"; then
24738
if test "X$additional_includedir" != "X/usr/include"; then
24740
if test "X$additional_includedir" = "X/usr/local/include"; then
24741
if test -n "$GCC"; then
24743
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24747
if test -z "$haveit"; then
24748
for x in $CPPFLAGS $INCINTL; do
24750
acl_save_prefix="$prefix"
24751
prefix="$acl_final_prefix"
24752
acl_save_exec_prefix="$exec_prefix"
24753
exec_prefix="$acl_final_exec_prefix"
24755
exec_prefix="$acl_save_exec_prefix"
24756
prefix="$acl_save_prefix"
24758
if test "X$x" = "X-I$additional_includedir"; then
24763
if test -z "$haveit"; then
24764
if test -d "$additional_includedir"; then
24765
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24771
if test -n "$found_la"; then
24772
save_libdir="$libdir"
24773
case "$found_la" in
24774
*/* | *\\*) . "$found_la" ;;
24775
*) . "./$found_la" ;;
24777
libdir="$save_libdir"
24778
for dep in $dependency_libs; do
24781
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24782
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24784
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24785
if test -n "$GCC"; then
24787
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24791
if test -z "$haveit"; then
24793
for x in $LDFLAGS $LIBINTL; do
24795
acl_save_prefix="$prefix"
24796
prefix="$acl_final_prefix"
24797
acl_save_exec_prefix="$exec_prefix"
24798
exec_prefix="$acl_final_exec_prefix"
24800
exec_prefix="$acl_save_exec_prefix"
24801
prefix="$acl_save_prefix"
24803
if test "X$x" = "X-L$additional_libdir"; then
24808
if test -z "$haveit"; then
24809
if test -d "$additional_libdir"; then
24810
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24814
for x in $LDFLAGS $LTLIBINTL; do
24816
acl_save_prefix="$prefix"
24817
prefix="$acl_final_prefix"
24818
acl_save_exec_prefix="$exec_prefix"
24819
exec_prefix="$acl_final_exec_prefix"
24821
exec_prefix="$acl_save_exec_prefix"
24822
prefix="$acl_save_prefix"
24824
if test "X$x" = "X-L$additional_libdir"; then
24829
if test -z "$haveit"; then
24830
if test -d "$additional_libdir"; then
24831
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24838
dir=`echo "X$dep" | sed -e 's/^X-R//'`
24839
if test "$enable_rpath" != no; then
24841
for x in $rpathdirs; do
24842
if test "X$x" = "X$dir"; then
24847
if test -z "$haveit"; then
24848
rpathdirs="$rpathdirs $dir"
24851
for x in $ltrpathdirs; do
24852
if test "X$x" = "X$dir"; then
24857
if test -z "$haveit"; then
24858
ltrpathdirs="$ltrpathdirs $dir"
24863
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24866
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24869
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24870
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24876
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24877
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24883
if test "X$rpathdirs" != "X"; then
24884
if test -n "$acl_hardcode_libdir_separator"; then
24886
for found_dir in $rpathdirs; do
24887
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24889
acl_save_libdir="$libdir"
24891
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24892
libdir="$acl_save_libdir"
24893
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24895
for found_dir in $rpathdirs; do
24896
acl_save_libdir="$libdir"
24897
libdir="$found_dir"
24898
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24899
libdir="$acl_save_libdir"
24900
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24904
if test "X$ltrpathdirs" != "X"; then
24905
for found_dir in $ltrpathdirs; do
24906
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24910
{ $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24911
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
24912
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
24913
$as_echo_n "(cached) " >&6
24915
gt_save_CPPFLAGS="$CPPFLAGS"
24916
CPPFLAGS="$CPPFLAGS $INCINTL"
24917
gt_save_LIBS="$LIBS"
24918
LIBS="$LIBS $LIBINTL"
24919
cat >conftest.$ac_ext <<_ACEOF
24922
cat confdefs.h >>conftest.$ac_ext
24923
cat >>conftest.$ac_ext <<_ACEOF
24924
/* end confdefs.h. */
24925
#include <libintl.h>
24926
$gt_revision_test_code
24927
extern int _nl_msg_cat_cntr;
24932
const char *_nl_expand_alias (const char *);
24936
bindtextdomain ("", "");
24937
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24942
rm -f conftest.$ac_objext conftest$ac_exeext
24943
if { (ac_try="$ac_link"
24944
case "(($ac_try" in
24945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946
*) ac_try_echo=$ac_try;;
24948
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24949
$as_echo "$ac_try_echo") >&5
24950
(eval "$ac_link") 2>conftest.er1
24952
grep -v '^ *+' conftest.er1 >conftest.err
24954
cat conftest.err >&5
24955
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956
(exit $ac_status); } && {
24957
test -z "$ac_c_werror_flag" ||
24958
test ! -s conftest.err
24959
} && test -s conftest$ac_exeext && {
24960
test "$cross_compiling" = yes ||
24961
$as_test_x conftest$ac_exeext
24963
eval "$gt_func_gnugettext_libintl=yes"
24965
$as_echo "$as_me: failed program was:" >&5
24966
sed 's/^/| /' conftest.$ac_ext >&5
24968
eval "$gt_func_gnugettext_libintl=no"
24971
rm -rf conftest.dSYM
24972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24973
conftest$ac_exeext conftest.$ac_ext
24974
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24975
LIBS="$LIBS $LIBICONV"
24976
cat >conftest.$ac_ext <<_ACEOF
24979
cat confdefs.h >>conftest.$ac_ext
24980
cat >>conftest.$ac_ext <<_ACEOF
24981
/* end confdefs.h. */
24982
#include <libintl.h>
24983
$gt_revision_test_code
24984
extern int _nl_msg_cat_cntr;
24989
const char *_nl_expand_alias (const char *);
24993
bindtextdomain ("", "");
24994
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24999
rm -f conftest.$ac_objext conftest$ac_exeext
25000
if { (ac_try="$ac_link"
25001
case "(($ac_try" in
25002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003
*) ac_try_echo=$ac_try;;
25005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006
$as_echo "$ac_try_echo") >&5
25007
(eval "$ac_link") 2>conftest.er1
25009
grep -v '^ *+' conftest.er1 >conftest.err
25011
cat conftest.err >&5
25012
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013
(exit $ac_status); } && {
25014
test -z "$ac_c_werror_flag" ||
25015
test ! -s conftest.err
25016
} && test -s conftest$ac_exeext && {
25017
test "$cross_compiling" = yes ||
25018
$as_test_x conftest$ac_exeext
25020
LIBINTL="$LIBINTL $LIBICONV"
25021
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25022
eval "$gt_func_gnugettext_libintl=yes"
25025
$as_echo "$as_me: failed program was:" >&5
25026
sed 's/^/| /' conftest.$ac_ext >&5
25031
rm -rf conftest.dSYM
25032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25033
conftest$ac_exeext conftest.$ac_ext
25035
CPPFLAGS="$gt_save_CPPFLAGS"
25036
LIBS="$gt_save_LIBS"
25038
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
25039
$as_echo "$as_val"'`
25040
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25041
$as_echo "$ac_res" >&6; }
25044
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
25045
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
25046
&& test "$PACKAGE" != gettext-runtime \
25047
&& test "$PACKAGE" != gettext-tools; }; then
25048
gt_use_preinstalled_gnugettext=yes
25056
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
25057
nls_cv_use_gnu_gettext=yes
25061
if test "$nls_cv_use_gnu_gettext" = "yes"; then
25062
BUILD_INCLUDED_LIBINTL=yes
25063
USE_INCLUDED_LIBINTL=yes
25064
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
25065
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
25066
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
25070
if test "$gt_use_preinstalled_gnugettext" = "yes" \
25071
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
25076
if test -n "$INTL_MACOSX_LIBS"; then
25077
if test "$gt_use_preinstalled_gnugettext" = "yes" \
25078
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
25079
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25080
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25084
if test "$gt_use_preinstalled_gnugettext" = "yes" \
25085
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
25087
cat >>confdefs.h <<\_ACEOF
25088
#define ENABLE_NLS 1
25096
{ $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
25097
$as_echo_n "checking whether to use NLS... " >&6; }
25098
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
25099
$as_echo "$USE_NLS" >&6; }
25100
if test "$USE_NLS" = "yes"; then
25101
{ $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
25102
$as_echo_n "checking where the gettext function comes from... " >&6; }
25103
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25104
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
25105
gt_source="external libintl"
25110
gt_source="included intl directory"
25112
{ $as_echo "$as_me:$LINENO: result: $gt_source" >&5
25113
$as_echo "$gt_source" >&6; }
25116
if test "$USE_NLS" = "yes"; then
25118
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25119
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
25120
{ $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
25121
$as_echo_n "checking how to link with libintl... " >&6; }
25122
{ $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
25123
$as_echo "$LIBINTL" >&6; }
25125
for element in $INCINTL; do
25127
for x in $CPPFLAGS; do
25129
acl_save_prefix="$prefix"
25130
prefix="$acl_final_prefix"
25131
acl_save_exec_prefix="$exec_prefix"
25132
exec_prefix="$acl_final_exec_prefix"
25134
exec_prefix="$acl_save_exec_prefix"
25135
prefix="$acl_save_prefix"
25137
if test "X$x" = "X$element"; then
25142
if test -z "$haveit"; then
25143
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25150
cat >>confdefs.h <<\_ACEOF
25151
#define HAVE_GETTEXT 1
25155
cat >>confdefs.h <<\_ACEOF
25156
#define HAVE_DCGETTEXT 1
25165
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
25166
BUILD_INCLUDED_LIBINTL=yes
25173
nls_cv_header_intl=
25174
nls_cv_header_libgt=
25186
if test "$USE_INCLUDED_LIBINTL" = yes; then
25187
INTLOBJS="\$(GETTOBJS)"
25191
INTL_LIBTOOL_SUFFIX_PREFIX=
25195
INTLLIBS="$LIBINTL"
17822
25204
case $TERM in
33120
# Extract the first word of "lua", so it can be a program name with args.
33121
set dummy lua; ac_word=$2
33122
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33123
$as_echo_n "checking for $ac_word... " >&6; }
33124
if test "${ac_cv_path_LUA+set}" = set; then
33125
$as_echo_n "(cached) " >&6
33129
ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
33132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133
for as_dir in $PATH
33136
test -z "$as_dir" && as_dir=.
33137
for ac_exec_ext in '' $ac_executable_extensions; do
33138
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33139
ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
33140
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33147
test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
33151
LUA=$ac_cv_path_LUA
33152
if test -n "$LUA"; then
33153
{ $as_echo "$as_me:$LINENO: result: $LUA" >&5
33154
$as_echo "$LUA" >&6; }
33156
{ $as_echo "$as_me:$LINENO: result: no" >&5
33157
$as_echo "no" >&6; }
33162
# Check whether --enable-lua was given.
33163
if test "${enable_lua+set}" = set; then
33164
enableval=$enable_lua;
33171
if test "$LUA" = "no" -o "$enable_lua" = "no"; then
33174
{ $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
33175
$as_echo_n "checking for lua >= 5.0... " >&6; }
33176
read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
33177
$($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
33179
if test 0$LUA_MAJOR -lt 5; then
33180
{ $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
33181
$as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
33183
{ $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
33184
$as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
33185
lua_vdot=$LUA_MAJOR.$LUA_MINOR
33186
lua_vndot=$LUA_MAJOR$LUA_MINOR
33187
lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
33189
for ac_header in lua$lua_vndot/lua.h
33191
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33193
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33194
$as_echo_n "checking for $ac_header... " >&6; }
33195
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33196
$as_echo_n "(cached) " >&6
33198
ac_res=`eval 'as_val=${'$as_ac_Header'}
33199
$as_echo "$as_val"'`
33200
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33201
$as_echo "$ac_res" >&6; }
33203
# Is the header compilable?
33204
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33205
$as_echo_n "checking $ac_header usability... " >&6; }
33206
cat >conftest.$ac_ext <<_ACEOF
33209
cat confdefs.h >>conftest.$ac_ext
33210
cat >>conftest.$ac_ext <<_ACEOF
33211
/* end confdefs.h. */
33212
$ac_includes_default
33213
#include <$ac_header>
33215
rm -f conftest.$ac_objext
33216
if { (ac_try="$ac_compile"
33217
case "(($ac_try" in
33218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219
*) ac_try_echo=$ac_try;;
33221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33222
$as_echo "$ac_try_echo") >&5
33223
(eval "$ac_compile") 2>conftest.er1
33225
grep -v '^ *+' conftest.er1 >conftest.err
33227
cat conftest.err >&5
33228
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229
(exit $ac_status); } && {
33230
test -z "$ac_c_werror_flag" ||
33231
test ! -s conftest.err
33232
} && test -s conftest.$ac_objext; then
33233
ac_header_compiler=yes
33235
$as_echo "$as_me: failed program was:" >&5
33236
sed 's/^/| /' conftest.$ac_ext >&5
33238
ac_header_compiler=no
33241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33243
$as_echo "$ac_header_compiler" >&6; }
33245
# Is the header present?
33246
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33247
$as_echo_n "checking $ac_header presence... " >&6; }
33248
cat >conftest.$ac_ext <<_ACEOF
33251
cat confdefs.h >>conftest.$ac_ext
33252
cat >>conftest.$ac_ext <<_ACEOF
33253
/* end confdefs.h. */
33254
#include <$ac_header>
33256
if { (ac_try="$ac_cpp conftest.$ac_ext"
33257
case "(($ac_try" in
33258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259
*) ac_try_echo=$ac_try;;
33261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33262
$as_echo "$ac_try_echo") >&5
33263
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33265
grep -v '^ *+' conftest.er1 >conftest.err
33267
cat conftest.err >&5
33268
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269
(exit $ac_status); } >/dev/null && {
33270
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33271
test ! -s conftest.err
33273
ac_header_preproc=yes
33275
$as_echo "$as_me: failed program was:" >&5
33276
sed 's/^/| /' conftest.$ac_ext >&5
33278
ac_header_preproc=no
33281
rm -f conftest.err conftest.$ac_ext
33282
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33283
$as_echo "$ac_header_preproc" >&6; }
33285
# So? What about this header?
33286
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33288
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33289
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33290
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33291
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33292
ac_header_preproc=yes
33295
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33296
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33297
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33298
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33299
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33300
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33301
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33302
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33303
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33304
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33305
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33306
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33310
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33311
$as_echo_n "checking for $ac_header... " >&6; }
33312
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33313
$as_echo_n "(cached) " >&6
33315
eval "$as_ac_Header=\$ac_header_preproc"
33317
ac_res=`eval 'as_val=${'$as_ac_Header'}
33318
$as_echo "$as_val"'`
33319
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33320
$as_echo "$ac_res" >&6; }
33323
as_val=`eval 'as_val=${'$as_ac_Header'}
33324
$as_echo "$as_val"'`
33325
if test "x$as_val" = x""yes; then
33326
cat >>confdefs.h <<_ACEOF
33327
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33330
for ac_header in lua$lua_vndot/lualib.h
33332
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33333
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33334
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33335
$as_echo_n "checking for $ac_header... " >&6; }
33336
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33337
$as_echo_n "(cached) " >&6
33339
ac_res=`eval 'as_val=${'$as_ac_Header'}
33340
$as_echo "$as_val"'`
33341
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33342
$as_echo "$ac_res" >&6; }
33344
# Is the header compilable?
33345
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33346
$as_echo_n "checking $ac_header usability... " >&6; }
33347
cat >conftest.$ac_ext <<_ACEOF
33350
cat confdefs.h >>conftest.$ac_ext
33351
cat >>conftest.$ac_ext <<_ACEOF
33352
/* end confdefs.h. */
33353
$ac_includes_default
33354
#include <$ac_header>
33356
rm -f conftest.$ac_objext
33357
if { (ac_try="$ac_compile"
33358
case "(($ac_try" in
33359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360
*) ac_try_echo=$ac_try;;
33362
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33363
$as_echo "$ac_try_echo") >&5
33364
(eval "$ac_compile") 2>conftest.er1
33366
grep -v '^ *+' conftest.er1 >conftest.err
33368
cat conftest.err >&5
33369
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370
(exit $ac_status); } && {
33371
test -z "$ac_c_werror_flag" ||
33372
test ! -s conftest.err
33373
} && test -s conftest.$ac_objext; then
33374
ac_header_compiler=yes
33376
$as_echo "$as_me: failed program was:" >&5
33377
sed 's/^/| /' conftest.$ac_ext >&5
33379
ac_header_compiler=no
33382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33383
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33384
$as_echo "$ac_header_compiler" >&6; }
33386
# Is the header present?
33387
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33388
$as_echo_n "checking $ac_header presence... " >&6; }
33389
cat >conftest.$ac_ext <<_ACEOF
33392
cat confdefs.h >>conftest.$ac_ext
33393
cat >>conftest.$ac_ext <<_ACEOF
33394
/* end confdefs.h. */
33395
#include <$ac_header>
33397
if { (ac_try="$ac_cpp conftest.$ac_ext"
33398
case "(($ac_try" in
33399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400
*) ac_try_echo=$ac_try;;
33402
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33403
$as_echo "$ac_try_echo") >&5
33404
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33406
grep -v '^ *+' conftest.er1 >conftest.err
33408
cat conftest.err >&5
33409
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410
(exit $ac_status); } >/dev/null && {
33411
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33412
test ! -s conftest.err
33414
ac_header_preproc=yes
33416
$as_echo "$as_me: failed program was:" >&5
33417
sed 's/^/| /' conftest.$ac_ext >&5
33419
ac_header_preproc=no
33422
rm -f conftest.err conftest.$ac_ext
33423
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33424
$as_echo "$ac_header_preproc" >&6; }
33426
# So? What about this header?
33427
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33429
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33430
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33431
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33432
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33433
ac_header_preproc=yes
33436
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33437
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33438
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33439
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33440
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33441
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33442
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33443
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33444
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33445
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33446
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33447
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33451
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33452
$as_echo_n "checking for $ac_header... " >&6; }
33453
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33454
$as_echo_n "(cached) " >&6
33456
eval "$as_ac_Header=\$ac_header_preproc"
33458
ac_res=`eval 'as_val=${'$as_ac_Header'}
33459
$as_echo "$as_val"'`
33460
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33461
$as_echo "$ac_res" >&6; }
33464
as_val=`eval 'as_val=${'$as_ac_Header'}
33465
$as_echo "$as_val"'`
33466
if test "x$as_val" = x""yes; then
33467
cat >>confdefs.h <<_ACEOF
33468
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33470
as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
33471
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33472
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
33473
$as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
33474
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33475
$as_echo_n "(cached) " >&6
33477
ac_res=`eval 'as_val=${'$as_ac_Header'}
33478
$as_echo "$as_val"'`
33479
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33480
$as_echo "$ac_res" >&6; }
33482
# Is the header compilable?
33483
{ $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
33484
$as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
33485
cat >conftest.$ac_ext <<_ACEOF
33488
cat confdefs.h >>conftest.$ac_ext
33489
cat >>conftest.$ac_ext <<_ACEOF
33490
/* end confdefs.h. */
33491
$ac_includes_default
33492
#include <lua$lua_vndot/lauxlib.h>
33494
rm -f conftest.$ac_objext
33495
if { (ac_try="$ac_compile"
33496
case "(($ac_try" in
33497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498
*) ac_try_echo=$ac_try;;
33500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33501
$as_echo "$ac_try_echo") >&5
33502
(eval "$ac_compile") 2>conftest.er1
33504
grep -v '^ *+' conftest.er1 >conftest.err
33506
cat conftest.err >&5
33507
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508
(exit $ac_status); } && {
33509
test -z "$ac_c_werror_flag" ||
33510
test ! -s conftest.err
33511
} && test -s conftest.$ac_objext; then
33512
ac_header_compiler=yes
33514
$as_echo "$as_me: failed program was:" >&5
33515
sed 's/^/| /' conftest.$ac_ext >&5
33517
ac_header_compiler=no
33520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33521
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33522
$as_echo "$ac_header_compiler" >&6; }
33524
# Is the header present?
33525
{ $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
33526
$as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
33527
cat >conftest.$ac_ext <<_ACEOF
33530
cat confdefs.h >>conftest.$ac_ext
33531
cat >>conftest.$ac_ext <<_ACEOF
33532
/* end confdefs.h. */
33533
#include <lua$lua_vndot/lauxlib.h>
33535
if { (ac_try="$ac_cpp conftest.$ac_ext"
33536
case "(($ac_try" in
33537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538
*) ac_try_echo=$ac_try;;
33540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33541
$as_echo "$ac_try_echo") >&5
33542
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33544
grep -v '^ *+' conftest.er1 >conftest.err
33546
cat conftest.err >&5
33547
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548
(exit $ac_status); } >/dev/null && {
33549
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33550
test ! -s conftest.err
33552
ac_header_preproc=yes
33554
$as_echo "$as_me: failed program was:" >&5
33555
sed 's/^/| /' conftest.$ac_ext >&5
33557
ac_header_preproc=no
33560
rm -f conftest.err conftest.$ac_ext
33561
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33562
$as_echo "$ac_header_preproc" >&6; }
33564
# So? What about this header?
33565
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33567
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33568
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33569
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
33570
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
33571
ac_header_preproc=yes
33574
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
33575
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
33576
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&5
33577
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&2;}
33578
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
33579
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
33580
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
33581
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33582
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
33583
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
33584
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
33585
$as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
33589
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
33590
$as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
33591
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33592
$as_echo_n "(cached) " >&6
33594
eval "$as_ac_Header=\$ac_header_preproc"
33596
ac_res=`eval 'as_val=${'$as_ac_Header'}
33597
$as_echo "$as_val"'`
33598
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33599
$as_echo "$ac_res" >&6; }
33602
as_val=`eval 'as_val=${'$as_ac_Header'}
33603
$as_echo "$as_val"'`
33604
if test "x$as_val" = x""yes; then
33605
lua_headerdir=lua$lua_vndot
33615
for ac_header in lua$lua_vdot/lua.h
33617
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33618
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33619
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33620
$as_echo_n "checking for $ac_header... " >&6; }
33621
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33622
$as_echo_n "(cached) " >&6
33624
ac_res=`eval 'as_val=${'$as_ac_Header'}
33625
$as_echo "$as_val"'`
33626
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33627
$as_echo "$ac_res" >&6; }
33629
# Is the header compilable?
33630
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33631
$as_echo_n "checking $ac_header usability... " >&6; }
33632
cat >conftest.$ac_ext <<_ACEOF
33635
cat confdefs.h >>conftest.$ac_ext
33636
cat >>conftest.$ac_ext <<_ACEOF
33637
/* end confdefs.h. */
33638
$ac_includes_default
33639
#include <$ac_header>
33641
rm -f conftest.$ac_objext
33642
if { (ac_try="$ac_compile"
33643
case "(($ac_try" in
33644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645
*) ac_try_echo=$ac_try;;
33647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33648
$as_echo "$ac_try_echo") >&5
33649
(eval "$ac_compile") 2>conftest.er1
33651
grep -v '^ *+' conftest.er1 >conftest.err
33653
cat conftest.err >&5
33654
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655
(exit $ac_status); } && {
33656
test -z "$ac_c_werror_flag" ||
33657
test ! -s conftest.err
33658
} && test -s conftest.$ac_objext; then
33659
ac_header_compiler=yes
33661
$as_echo "$as_me: failed program was:" >&5
33662
sed 's/^/| /' conftest.$ac_ext >&5
33664
ac_header_compiler=no
33667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33669
$as_echo "$ac_header_compiler" >&6; }
33671
# Is the header present?
33672
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33673
$as_echo_n "checking $ac_header presence... " >&6; }
33674
cat >conftest.$ac_ext <<_ACEOF
33677
cat confdefs.h >>conftest.$ac_ext
33678
cat >>conftest.$ac_ext <<_ACEOF
33679
/* end confdefs.h. */
33680
#include <$ac_header>
33682
if { (ac_try="$ac_cpp conftest.$ac_ext"
33683
case "(($ac_try" in
33684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685
*) ac_try_echo=$ac_try;;
33687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33688
$as_echo "$ac_try_echo") >&5
33689
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33691
grep -v '^ *+' conftest.er1 >conftest.err
33693
cat conftest.err >&5
33694
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695
(exit $ac_status); } >/dev/null && {
33696
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33697
test ! -s conftest.err
33699
ac_header_preproc=yes
33701
$as_echo "$as_me: failed program was:" >&5
33702
sed 's/^/| /' conftest.$ac_ext >&5
33704
ac_header_preproc=no
33707
rm -f conftest.err conftest.$ac_ext
33708
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33709
$as_echo "$ac_header_preproc" >&6; }
33711
# So? What about this header?
33712
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33714
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33715
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33716
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33717
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33718
ac_header_preproc=yes
33721
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33722
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33723
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33724
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33725
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33726
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33727
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33728
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33729
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33730
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33731
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33732
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33736
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33737
$as_echo_n "checking for $ac_header... " >&6; }
33738
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33739
$as_echo_n "(cached) " >&6
33741
eval "$as_ac_Header=\$ac_header_preproc"
33743
ac_res=`eval 'as_val=${'$as_ac_Header'}
33744
$as_echo "$as_val"'`
33745
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33746
$as_echo "$ac_res" >&6; }
33749
as_val=`eval 'as_val=${'$as_ac_Header'}
33750
$as_echo "$as_val"'`
33751
if test "x$as_val" = x""yes; then
33752
cat >>confdefs.h <<_ACEOF
33753
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33756
for ac_header in lua$lua_vdot/lualib.h
33758
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33759
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33760
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33761
$as_echo_n "checking for $ac_header... " >&6; }
33762
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33763
$as_echo_n "(cached) " >&6
33765
ac_res=`eval 'as_val=${'$as_ac_Header'}
33766
$as_echo "$as_val"'`
33767
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33768
$as_echo "$ac_res" >&6; }
33770
# Is the header compilable?
33771
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33772
$as_echo_n "checking $ac_header usability... " >&6; }
33773
cat >conftest.$ac_ext <<_ACEOF
33776
cat confdefs.h >>conftest.$ac_ext
33777
cat >>conftest.$ac_ext <<_ACEOF
33778
/* end confdefs.h. */
33779
$ac_includes_default
33780
#include <$ac_header>
33782
rm -f conftest.$ac_objext
33783
if { (ac_try="$ac_compile"
33784
case "(($ac_try" in
33785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786
*) ac_try_echo=$ac_try;;
33788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33789
$as_echo "$ac_try_echo") >&5
33790
(eval "$ac_compile") 2>conftest.er1
33792
grep -v '^ *+' conftest.er1 >conftest.err
33794
cat conftest.err >&5
33795
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796
(exit $ac_status); } && {
33797
test -z "$ac_c_werror_flag" ||
33798
test ! -s conftest.err
33799
} && test -s conftest.$ac_objext; then
33800
ac_header_compiler=yes
33802
$as_echo "$as_me: failed program was:" >&5
33803
sed 's/^/| /' conftest.$ac_ext >&5
33805
ac_header_compiler=no
33808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33809
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33810
$as_echo "$ac_header_compiler" >&6; }
33812
# Is the header present?
33813
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33814
$as_echo_n "checking $ac_header presence... " >&6; }
33815
cat >conftest.$ac_ext <<_ACEOF
33818
cat confdefs.h >>conftest.$ac_ext
33819
cat >>conftest.$ac_ext <<_ACEOF
33820
/* end confdefs.h. */
33821
#include <$ac_header>
33823
if { (ac_try="$ac_cpp conftest.$ac_ext"
33824
case "(($ac_try" in
33825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826
*) ac_try_echo=$ac_try;;
33828
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33829
$as_echo "$ac_try_echo") >&5
33830
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33832
grep -v '^ *+' conftest.er1 >conftest.err
33834
cat conftest.err >&5
33835
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836
(exit $ac_status); } >/dev/null && {
33837
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33838
test ! -s conftest.err
33840
ac_header_preproc=yes
33842
$as_echo "$as_me: failed program was:" >&5
33843
sed 's/^/| /' conftest.$ac_ext >&5
33845
ac_header_preproc=no
33848
rm -f conftest.err conftest.$ac_ext
33849
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33850
$as_echo "$ac_header_preproc" >&6; }
33852
# So? What about this header?
33853
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33855
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33856
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33857
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33858
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33859
ac_header_preproc=yes
33862
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33863
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33864
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33865
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33866
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33867
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33868
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33869
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33870
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33871
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33872
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33873
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33877
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33878
$as_echo_n "checking for $ac_header... " >&6; }
33879
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33880
$as_echo_n "(cached) " >&6
33882
eval "$as_ac_Header=\$ac_header_preproc"
33884
ac_res=`eval 'as_val=${'$as_ac_Header'}
33885
$as_echo "$as_val"'`
33886
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33887
$as_echo "$ac_res" >&6; }
33890
as_val=`eval 'as_val=${'$as_ac_Header'}
33891
$as_echo "$as_val"'`
33892
if test "x$as_val" = x""yes; then
33893
cat >>confdefs.h <<_ACEOF
33894
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33896
as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
33897
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33898
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
33899
$as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
33900
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33901
$as_echo_n "(cached) " >&6
33903
ac_res=`eval 'as_val=${'$as_ac_Header'}
33904
$as_echo "$as_val"'`
33905
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33906
$as_echo "$ac_res" >&6; }
33908
# Is the header compilable?
33909
{ $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
33910
$as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
33911
cat >conftest.$ac_ext <<_ACEOF
33914
cat confdefs.h >>conftest.$ac_ext
33915
cat >>conftest.$ac_ext <<_ACEOF
33916
/* end confdefs.h. */
33917
$ac_includes_default
33918
#include <lua$lua_vdot/lauxlib.h>
33920
rm -f conftest.$ac_objext
33921
if { (ac_try="$ac_compile"
33922
case "(($ac_try" in
33923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33924
*) ac_try_echo=$ac_try;;
33926
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33927
$as_echo "$ac_try_echo") >&5
33928
(eval "$ac_compile") 2>conftest.er1
33930
grep -v '^ *+' conftest.er1 >conftest.err
33932
cat conftest.err >&5
33933
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934
(exit $ac_status); } && {
33935
test -z "$ac_c_werror_flag" ||
33936
test ! -s conftest.err
33937
} && test -s conftest.$ac_objext; then
33938
ac_header_compiler=yes
33940
$as_echo "$as_me: failed program was:" >&5
33941
sed 's/^/| /' conftest.$ac_ext >&5
33943
ac_header_compiler=no
33946
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33947
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33948
$as_echo "$ac_header_compiler" >&6; }
33950
# Is the header present?
33951
{ $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
33952
$as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
33953
cat >conftest.$ac_ext <<_ACEOF
33956
cat confdefs.h >>conftest.$ac_ext
33957
cat >>conftest.$ac_ext <<_ACEOF
33958
/* end confdefs.h. */
33959
#include <lua$lua_vdot/lauxlib.h>
33961
if { (ac_try="$ac_cpp conftest.$ac_ext"
33962
case "(($ac_try" in
33963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33964
*) ac_try_echo=$ac_try;;
33966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33967
$as_echo "$ac_try_echo") >&5
33968
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33970
grep -v '^ *+' conftest.er1 >conftest.err
33972
cat conftest.err >&5
33973
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974
(exit $ac_status); } >/dev/null && {
33975
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33976
test ! -s conftest.err
33978
ac_header_preproc=yes
33980
$as_echo "$as_me: failed program was:" >&5
33981
sed 's/^/| /' conftest.$ac_ext >&5
33983
ac_header_preproc=no
33986
rm -f conftest.err conftest.$ac_ext
33987
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33988
$as_echo "$ac_header_preproc" >&6; }
33990
# So? What about this header?
33991
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33993
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33994
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33995
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
33996
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
33997
ac_header_preproc=yes
34000
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
34001
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
34002
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&5
34003
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&2;}
34004
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
34005
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
34006
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
34007
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34008
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
34009
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
34010
{ $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
34011
$as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
34015
{ $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
34016
$as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
34017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34018
$as_echo_n "(cached) " >&6
34020
eval "$as_ac_Header=\$ac_header_preproc"
34022
ac_res=`eval 'as_val=${'$as_ac_Header'}
34023
$as_echo "$as_val"'`
34024
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34025
$as_echo "$ac_res" >&6; }
34028
as_val=`eval 'as_val=${'$as_ac_Header'}
34029
$as_echo "$as_val"'`
34030
if test "x$as_val" = x""yes; then
34031
lua_headerdir=lua$lua_vdot
34041
for ac_header in lua.h
34043
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34044
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34045
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34046
$as_echo_n "checking for $ac_header... " >&6; }
34047
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34048
$as_echo_n "(cached) " >&6
34050
ac_res=`eval 'as_val=${'$as_ac_Header'}
34051
$as_echo "$as_val"'`
34052
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34053
$as_echo "$ac_res" >&6; }
34055
# Is the header compilable?
34056
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34057
$as_echo_n "checking $ac_header usability... " >&6; }
34058
cat >conftest.$ac_ext <<_ACEOF
34061
cat confdefs.h >>conftest.$ac_ext
34062
cat >>conftest.$ac_ext <<_ACEOF
34063
/* end confdefs.h. */
34064
$ac_includes_default
34065
#include <$ac_header>
34067
rm -f conftest.$ac_objext
34068
if { (ac_try="$ac_compile"
34069
case "(($ac_try" in
34070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071
*) ac_try_echo=$ac_try;;
34073
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34074
$as_echo "$ac_try_echo") >&5
34075
(eval "$ac_compile") 2>conftest.er1
34077
grep -v '^ *+' conftest.er1 >conftest.err
34079
cat conftest.err >&5
34080
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081
(exit $ac_status); } && {
34082
test -z "$ac_c_werror_flag" ||
34083
test ! -s conftest.err
34084
} && test -s conftest.$ac_objext; then
34085
ac_header_compiler=yes
34087
$as_echo "$as_me: failed program was:" >&5
34088
sed 's/^/| /' conftest.$ac_ext >&5
34090
ac_header_compiler=no
34093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34094
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34095
$as_echo "$ac_header_compiler" >&6; }
34097
# Is the header present?
34098
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34099
$as_echo_n "checking $ac_header presence... " >&6; }
34100
cat >conftest.$ac_ext <<_ACEOF
34103
cat confdefs.h >>conftest.$ac_ext
34104
cat >>conftest.$ac_ext <<_ACEOF
34105
/* end confdefs.h. */
34106
#include <$ac_header>
34108
if { (ac_try="$ac_cpp conftest.$ac_ext"
34109
case "(($ac_try" in
34110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34111
*) ac_try_echo=$ac_try;;
34113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34114
$as_echo "$ac_try_echo") >&5
34115
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34117
grep -v '^ *+' conftest.er1 >conftest.err
34119
cat conftest.err >&5
34120
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121
(exit $ac_status); } >/dev/null && {
34122
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34123
test ! -s conftest.err
34125
ac_header_preproc=yes
34127
$as_echo "$as_me: failed program was:" >&5
34128
sed 's/^/| /' conftest.$ac_ext >&5
34130
ac_header_preproc=no
34133
rm -f conftest.err conftest.$ac_ext
34134
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34135
$as_echo "$ac_header_preproc" >&6; }
34137
# So? What about this header?
34138
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34140
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34141
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34142
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34144
ac_header_preproc=yes
34147
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34148
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34149
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34150
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34151
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34152
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34153
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34154
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34155
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34156
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34157
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34158
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34162
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34163
$as_echo_n "checking for $ac_header... " >&6; }
34164
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34165
$as_echo_n "(cached) " >&6
34167
eval "$as_ac_Header=\$ac_header_preproc"
34169
ac_res=`eval 'as_val=${'$as_ac_Header'}
34170
$as_echo "$as_val"'`
34171
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34172
$as_echo "$ac_res" >&6; }
34175
as_val=`eval 'as_val=${'$as_ac_Header'}
34176
$as_echo "$as_val"'`
34177
if test "x$as_val" = x""yes; then
34178
cat >>confdefs.h <<_ACEOF
34179
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34182
for ac_header in lualib.h
34184
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34185
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34186
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34187
$as_echo_n "checking for $ac_header... " >&6; }
34188
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34189
$as_echo_n "(cached) " >&6
34191
ac_res=`eval 'as_val=${'$as_ac_Header'}
34192
$as_echo "$as_val"'`
34193
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34194
$as_echo "$ac_res" >&6; }
34196
# Is the header compilable?
34197
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34198
$as_echo_n "checking $ac_header usability... " >&6; }
34199
cat >conftest.$ac_ext <<_ACEOF
34202
cat confdefs.h >>conftest.$ac_ext
34203
cat >>conftest.$ac_ext <<_ACEOF
34204
/* end confdefs.h. */
34205
$ac_includes_default
34206
#include <$ac_header>
34208
rm -f conftest.$ac_objext
34209
if { (ac_try="$ac_compile"
34210
case "(($ac_try" in
34211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212
*) ac_try_echo=$ac_try;;
34214
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34215
$as_echo "$ac_try_echo") >&5
34216
(eval "$ac_compile") 2>conftest.er1
34218
grep -v '^ *+' conftest.er1 >conftest.err
34220
cat conftest.err >&5
34221
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222
(exit $ac_status); } && {
34223
test -z "$ac_c_werror_flag" ||
34224
test ! -s conftest.err
34225
} && test -s conftest.$ac_objext; then
34226
ac_header_compiler=yes
34228
$as_echo "$as_me: failed program was:" >&5
34229
sed 's/^/| /' conftest.$ac_ext >&5
34231
ac_header_compiler=no
34234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34235
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34236
$as_echo "$ac_header_compiler" >&6; }
34238
# Is the header present?
34239
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34240
$as_echo_n "checking $ac_header presence... " >&6; }
34241
cat >conftest.$ac_ext <<_ACEOF
34244
cat confdefs.h >>conftest.$ac_ext
34245
cat >>conftest.$ac_ext <<_ACEOF
34246
/* end confdefs.h. */
34247
#include <$ac_header>
34249
if { (ac_try="$ac_cpp conftest.$ac_ext"
34250
case "(($ac_try" in
34251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252
*) ac_try_echo=$ac_try;;
34254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34255
$as_echo "$ac_try_echo") >&5
34256
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34258
grep -v '^ *+' conftest.er1 >conftest.err
34260
cat conftest.err >&5
34261
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262
(exit $ac_status); } >/dev/null && {
34263
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34264
test ! -s conftest.err
34266
ac_header_preproc=yes
34268
$as_echo "$as_me: failed program was:" >&5
34269
sed 's/^/| /' conftest.$ac_ext >&5
34271
ac_header_preproc=no
34274
rm -f conftest.err conftest.$ac_ext
34275
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34276
$as_echo "$ac_header_preproc" >&6; }
34278
# So? What about this header?
34279
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34281
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34282
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34283
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34284
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34285
ac_header_preproc=yes
34288
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34289
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34290
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34291
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34292
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34293
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34294
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34295
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34296
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34297
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34298
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34299
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34303
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34304
$as_echo_n "checking for $ac_header... " >&6; }
34305
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34306
$as_echo_n "(cached) " >&6
34308
eval "$as_ac_Header=\$ac_header_preproc"
34310
ac_res=`eval 'as_val=${'$as_ac_Header'}
34311
$as_echo "$as_val"'`
34312
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34313
$as_echo "$ac_res" >&6; }
34316
as_val=`eval 'as_val=${'$as_ac_Header'}
34317
$as_echo "$as_val"'`
34318
if test "x$as_val" = x""yes; then
34319
cat >>confdefs.h <<_ACEOF
34320
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34322
if test "${ac_cv_header_lauxlib_h+set}" = set; then
34323
{ $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
34324
$as_echo_n "checking for lauxlib.h... " >&6; }
34325
if test "${ac_cv_header_lauxlib_h+set}" = set; then
34326
$as_echo_n "(cached) " >&6
34328
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
34329
$as_echo "$ac_cv_header_lauxlib_h" >&6; }
34331
# Is the header compilable?
34332
{ $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
34333
$as_echo_n "checking lauxlib.h usability... " >&6; }
34334
cat >conftest.$ac_ext <<_ACEOF
34337
cat confdefs.h >>conftest.$ac_ext
34338
cat >>conftest.$ac_ext <<_ACEOF
34339
/* end confdefs.h. */
34340
$ac_includes_default
34341
#include <lauxlib.h>
34343
rm -f conftest.$ac_objext
34344
if { (ac_try="$ac_compile"
34345
case "(($ac_try" in
34346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347
*) ac_try_echo=$ac_try;;
34349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34350
$as_echo "$ac_try_echo") >&5
34351
(eval "$ac_compile") 2>conftest.er1
34353
grep -v '^ *+' conftest.er1 >conftest.err
34355
cat conftest.err >&5
34356
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357
(exit $ac_status); } && {
34358
test -z "$ac_c_werror_flag" ||
34359
test ! -s conftest.err
34360
} && test -s conftest.$ac_objext; then
34361
ac_header_compiler=yes
34363
$as_echo "$as_me: failed program was:" >&5
34364
sed 's/^/| /' conftest.$ac_ext >&5
34366
ac_header_compiler=no
34369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34370
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34371
$as_echo "$ac_header_compiler" >&6; }
34373
# Is the header present?
34374
{ $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
34375
$as_echo_n "checking lauxlib.h presence... " >&6; }
34376
cat >conftest.$ac_ext <<_ACEOF
34379
cat confdefs.h >>conftest.$ac_ext
34380
cat >>conftest.$ac_ext <<_ACEOF
34381
/* end confdefs.h. */
34382
#include <lauxlib.h>
34384
if { (ac_try="$ac_cpp conftest.$ac_ext"
34385
case "(($ac_try" in
34386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387
*) ac_try_echo=$ac_try;;
34389
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34390
$as_echo "$ac_try_echo") >&5
34391
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34393
grep -v '^ *+' conftest.er1 >conftest.err
34395
cat conftest.err >&5
34396
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397
(exit $ac_status); } >/dev/null && {
34398
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34399
test ! -s conftest.err
34401
ac_header_preproc=yes
34403
$as_echo "$as_me: failed program was:" >&5
34404
sed 's/^/| /' conftest.$ac_ext >&5
34406
ac_header_preproc=no
34409
rm -f conftest.err conftest.$ac_ext
34410
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34411
$as_echo "$ac_header_preproc" >&6; }
34413
# So? What about this header?
34414
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34416
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34417
$as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34418
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
34419
$as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
34420
ac_header_preproc=yes
34423
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
34424
$as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
34425
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: check for missing prerequisite headers?" >&5
34426
$as_echo "$as_me: WARNING: lauxlib.h: check for missing prerequisite headers?" >&2;}
34427
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
34428
$as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
34429
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
34430
$as_echo "$as_me: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34431
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
34432
$as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
34433
{ $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
34434
$as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
34438
{ $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
34439
$as_echo_n "checking for lauxlib.h... " >&6; }
34440
if test "${ac_cv_header_lauxlib_h+set}" = set; then
34441
$as_echo_n "(cached) " >&6
34443
ac_cv_header_lauxlib_h=$ac_header_preproc
34445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
34446
$as_echo "$ac_cv_header_lauxlib_h" >&6; }
34449
if test "x$ac_cv_header_lauxlib_h" = x""yes; then
34473
if test "$lua_headerdir" = "no"; then
34479
if test "$COMP_LUA" != "lua"; then
34481
{ $as_echo "$as_me:$LINENO: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
34482
$as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
34484
# OK, headers found, let's check the libraries (LIBS is not used)
34487
LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
34488
{ $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
34489
$as_echo_n "checking for library containing lua_call... " >&6; }
34490
if test "${ac_cv_search_lua_call+set}" = set; then
34491
$as_echo_n "(cached) " >&6
34493
ac_func_search_save_LIBS=$LIBS
34494
cat >conftest.$ac_ext <<_ACEOF
34497
cat confdefs.h >>conftest.$ac_ext
34498
cat >>conftest.$ac_ext <<_ACEOF
34499
/* end confdefs.h. */
34501
/* Override any GCC internal prototype to avoid an error.
34502
Use char because int might match the return type of a GCC
34503
builtin and then its argument prototype would still apply. */
34511
return lua_call ();
34516
for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
34517
if test -z "$ac_lib"; then
34518
ac_res="none required"
34521
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34523
rm -f conftest.$ac_objext conftest$ac_exeext
34524
if { (ac_try="$ac_link"
34525
case "(($ac_try" in
34526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527
*) ac_try_echo=$ac_try;;
34529
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34530
$as_echo "$ac_try_echo") >&5
34531
(eval "$ac_link") 2>conftest.er1
34533
grep -v '^ *+' conftest.er1 >conftest.err
34535
cat conftest.err >&5
34536
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537
(exit $ac_status); } && {
34538
test -z "$ac_c_werror_flag" ||
34539
test ! -s conftest.err
34540
} && test -s conftest$ac_exeext && {
34541
test "$cross_compiling" = yes ||
34542
$as_test_x conftest$ac_exeext
34544
ac_cv_search_lua_call=$ac_res
34546
$as_echo "$as_me: failed program was:" >&5
34547
sed 's/^/| /' conftest.$ac_ext >&5
34552
rm -rf conftest.dSYM
34553
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34555
if test "${ac_cv_search_lua_call+set}" = set; then
34559
if test "${ac_cv_search_lua_call+set}" = set; then
34562
ac_cv_search_lua_call=no
34564
rm conftest.$ac_ext
34565
LIBS=$ac_func_search_save_LIBS
34567
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
34568
$as_echo "$ac_cv_search_lua_call" >&6; }
34569
ac_res=$ac_cv_search_lua_call
34570
if test "$ac_res" != no; then
34571
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34572
{ $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
34573
$as_echo_n "checking for library containing luaL_register... " >&6; }
34574
if test "${ac_cv_search_luaL_register+set}" = set; then
34575
$as_echo_n "(cached) " >&6
34577
ac_func_search_save_LIBS=$LIBS
34578
cat >conftest.$ac_ext <<_ACEOF
34581
cat confdefs.h >>conftest.$ac_ext
34582
cat >>conftest.$ac_ext <<_ACEOF
34583
/* end confdefs.h. */
34585
/* Override any GCC internal prototype to avoid an error.
34586
Use char because int might match the return type of a GCC
34587
builtin and then its argument prototype would still apply. */
34591
char luaL_register ();
34595
return luaL_register ();
34600
for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
34601
if test -z "$ac_lib"; then
34602
ac_res="none required"
34605
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34607
rm -f conftest.$ac_objext conftest$ac_exeext
34608
if { (ac_try="$ac_link"
34609
case "(($ac_try" in
34610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34611
*) ac_try_echo=$ac_try;;
34613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34614
$as_echo "$ac_try_echo") >&5
34615
(eval "$ac_link") 2>conftest.er1
34617
grep -v '^ *+' conftest.er1 >conftest.err
34619
cat conftest.err >&5
34620
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621
(exit $ac_status); } && {
34622
test -z "$ac_c_werror_flag" ||
34623
test ! -s conftest.err
34624
} && test -s conftest$ac_exeext && {
34625
test "$cross_compiling" = yes ||
34626
$as_test_x conftest$ac_exeext
34628
ac_cv_search_luaL_register=$ac_res
34630
$as_echo "$as_me: failed program was:" >&5
34631
sed 's/^/| /' conftest.$ac_ext >&5
34636
rm -rf conftest.dSYM
34637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34639
if test "${ac_cv_search_luaL_register+set}" = set; then
34643
if test "${ac_cv_search_luaL_register+set}" = set; then
34646
ac_cv_search_luaL_register=no
34648
rm conftest.$ac_ext
34649
LIBS=$ac_func_search_save_LIBS
34651
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
34652
$as_echo "$ac_cv_search_luaL_register" >&6; }
34653
ac_res=$ac_cv_search_luaL_register
34654
if test "$ac_res" != no; then
34655
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34656
lua_havelib=LUA$lua_vndot
34658
{ $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
34659
$as_echo_n "checking for library containing luaL_module... " >&6; }
34660
if test "${ac_cv_search_luaL_module+set}" = set; then
34661
$as_echo_n "(cached) " >&6
34663
ac_func_search_save_LIBS=$LIBS
34664
cat >conftest.$ac_ext <<_ACEOF
34667
cat confdefs.h >>conftest.$ac_ext
34668
cat >>conftest.$ac_ext <<_ACEOF
34669
/* end confdefs.h. */
34671
/* Override any GCC internal prototype to avoid an error.
34672
Use char because int might match the return type of a GCC
34673
builtin and then its argument prototype would still apply. */
34677
char luaL_module ();
34681
return luaL_module ();
34686
for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
34687
if test -z "$ac_lib"; then
34688
ac_res="none required"
34691
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34693
rm -f conftest.$ac_objext conftest$ac_exeext
34694
if { (ac_try="$ac_link"
34695
case "(($ac_try" in
34696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34697
*) ac_try_echo=$ac_try;;
34699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34700
$as_echo "$ac_try_echo") >&5
34701
(eval "$ac_link") 2>conftest.er1
34703
grep -v '^ *+' conftest.er1 >conftest.err
34705
cat conftest.err >&5
34706
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707
(exit $ac_status); } && {
34708
test -z "$ac_c_werror_flag" ||
34709
test ! -s conftest.err
34710
} && test -s conftest$ac_exeext && {
34711
test "$cross_compiling" = yes ||
34712
$as_test_x conftest$ac_exeext
34714
ac_cv_search_luaL_module=$ac_res
34716
$as_echo "$as_me: failed program was:" >&5
34717
sed 's/^/| /' conftest.$ac_ext >&5
34722
rm -rf conftest.dSYM
34723
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34725
if test "${ac_cv_search_luaL_module+set}" = set; then
34729
if test "${ac_cv_search_luaL_module+set}" = set; then
34732
ac_cv_search_luaL_module=no
34734
rm conftest.$ac_ext
34735
LIBS=$ac_func_search_save_LIBS
34737
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
34738
$as_echo "$ac_cv_search_luaL_module" >&6; }
34739
ac_res=$ac_cv_search_luaL_module
34740
if test "$ac_res" != no; then
34741
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34742
lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
34743
test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
34745
{ $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
34746
$as_echo_n "checking for library containing luaL_openlib... " >&6; }
34747
if test "${ac_cv_search_luaL_openlib+set}" = set; then
34748
$as_echo_n "(cached) " >&6
34750
ac_func_search_save_LIBS=$LIBS
34751
cat >conftest.$ac_ext <<_ACEOF
34754
cat confdefs.h >>conftest.$ac_ext
34755
cat >>conftest.$ac_ext <<_ACEOF
34756
/* end confdefs.h. */
34758
/* Override any GCC internal prototype to avoid an error.
34759
Use char because int might match the return type of a GCC
34760
builtin and then its argument prototype would still apply. */
34764
char luaL_openlib ();
34768
return luaL_openlib ();
34773
for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
34774
if test -z "$ac_lib"; then
34775
ac_res="none required"
34778
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34780
rm -f conftest.$ac_objext conftest$ac_exeext
34781
if { (ac_try="$ac_link"
34782
case "(($ac_try" in
34783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784
*) ac_try_echo=$ac_try;;
34786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34787
$as_echo "$ac_try_echo") >&5
34788
(eval "$ac_link") 2>conftest.er1
34790
grep -v '^ *+' conftest.er1 >conftest.err
34792
cat conftest.err >&5
34793
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794
(exit $ac_status); } && {
34795
test -z "$ac_c_werror_flag" ||
34796
test ! -s conftest.err
34797
} && test -s conftest$ac_exeext && {
34798
test "$cross_compiling" = yes ||
34799
$as_test_x conftest$ac_exeext
34801
ac_cv_search_luaL_openlib=$ac_res
34803
$as_echo "$as_me: failed program was:" >&5
34804
sed 's/^/| /' conftest.$ac_ext >&5
34809
rm -rf conftest.dSYM
34810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34812
if test "${ac_cv_search_luaL_openlib+set}" = set; then
34816
if test "${ac_cv_search_luaL_openlib+set}" = set; then
34819
ac_cv_search_luaL_openlib=no
34821
rm conftest.$ac_ext
34822
LIBS=$ac_func_search_save_LIBS
34824
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
34825
$as_echo "$ac_cv_search_luaL_openlib" >&6; }
34826
ac_res=$ac_cv_search_luaL_openlib
34827
if test "$ac_res" != no; then
34828
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34829
lua_havelib=$lua_vndot
34845
# Options to pass when configuring Lua module
34846
if test "$lua_havelib" != "no"; then
34847
# OK, headers and libs found. Try to set lua flags
34848
# and modules installation dirs with pkg-config
34849
if test "$PKGCONFIG" != "no"; then
34850
if test "$lua_vndot" = "50"; then
34851
lua_pkg_prefix=lualib
34855
# try with dot, without dot and finally without version
34856
for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
34857
lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
34859
if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
34860
# OK, found CFLAGS. Get Lua LFLAGS and modules install dir
34861
LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
34862
LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
34863
LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
34864
LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
34870
LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
34871
# if lua 5.0 can't find compat-5.1, force installation of
34872
# compat-5.1.lua together with RRDtool.
34873
if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
34874
lua_need_compat51=1
34875
LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
34878
# if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
34879
if test "$LUA_CFLAGS" = ""; then
34880
{ $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
34881
$as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
34882
LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
34883
LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
34884
LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
34887
# Check whether --enable-lua-site-install was given.
34888
if test "${enable_lua_site_install+set}" = set; then
34889
enableval=$enable_lua_site_install;
34891
LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
34895
LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
34905
{ $as_echo "$as_me:$LINENO: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
34906
$as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
34911
if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
34912
LUA_NEED_OUR_COMPAT51_TRUE=
34913
LUA_NEED_OUR_COMPAT51_FALSE='#'
34915
LUA_NEED_OUR_COMPAT51_TRUE='#'
34916
LUA_NEED_OUR_COMPAT51_FALSE=
34919
if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
34920
LUA_SITE_CINSTALL_TRUE=
34921
LUA_SITE_CINSTALL_FALSE='#'
34923
LUA_SITE_CINSTALL_TRUE='#'
34924
LUA_SITE_CINSTALL_FALSE=
34927
if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
34928
LUA_SITE_LINSTALL_TRUE=
34929
LUA_SITE_LINSTALL_FALSE='#'
34931
LUA_SITE_LINSTALL_TRUE='#'
34932
LUA_SITE_LINSTALL_FALSE=
34935
if test "$lua_vndot" = "50"; then
34943
if test "$enable_lua" = "yes"; then
34945
BUILD_LUA_FALSE='#'
24759
34952
enable_tcl_site=no