2325
2981
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2327
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328
echo "${ECHO_T}$ac_cv_objext" >&6
2983
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2984
echo "${ECHO_T}$ac_cv_objext" >&6; }
2329
2985
OBJEXT=$ac_cv_objext
2330
2986
ac_objext=$OBJEXT
2331
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2332
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2333
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2334
echo $ECHO_N "(cached) $ECHO_C" >&6
2336
cat >conftest.$ac_ext <<_ACEOF
2337
#line $LINENO "configure"
2340
cat confdefs.h >>conftest.$ac_ext
2341
cat >>conftest.$ac_ext <<_ACEOF
2342
/* end confdefs.h. */
2355
rm -f conftest.$ac_objext
2356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357
(eval $ac_compile) 2>&5
2359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360
(exit $ac_status); } &&
2361
{ ac_try='test -s conftest.$ac_objext'
2362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
(exit $ac_status); }; }; then
2369
echo "$as_me: failed program was:" >&5
2370
sed 's/^/| /' conftest.$ac_ext >&5
2374
rm -f conftest.$ac_objext conftest.$ac_ext
2375
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2379
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2380
GCC=`test $ac_compiler_gnu = yes && echo yes`
2381
ac_test_CFLAGS=${CFLAGS+set}
2382
ac_save_CFLAGS=$CFLAGS
2384
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2385
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2386
if test "${ac_cv_prog_cc_g+set}" = set; then
2387
echo $ECHO_N "(cached) $ECHO_C" >&6
2389
cat >conftest.$ac_ext <<_ACEOF
2390
#line $LINENO "configure"
2393
cat confdefs.h >>conftest.$ac_ext
2394
cat >>conftest.$ac_ext <<_ACEOF
2395
/* end confdefs.h. */
2405
rm -f conftest.$ac_objext
2406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407
(eval $ac_compile) 2>&5
2409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410
(exit $ac_status); } &&
2411
{ ac_try='test -s conftest.$ac_objext'
2412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
(exit $ac_status); }; }; then
2419
echo "$as_me: failed program was:" >&5
2420
sed 's/^/| /' conftest.$ac_ext >&5
2424
rm -f conftest.$ac_objext conftest.$ac_ext
2426
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2427
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2428
if test "$ac_test_CFLAGS" = set; then
2429
CFLAGS=$ac_save_CFLAGS
2430
elif test $ac_cv_prog_cc_g = yes; then
2431
if test "$GCC" = yes; then
2437
if test "$GCC" = yes; then
2443
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2444
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2445
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2446
echo $ECHO_N "(cached) $ECHO_C" >&6
2448
ac_cv_prog_cc_stdc=no
2450
cat >conftest.$ac_ext <<_ACEOF
2451
#line $LINENO "configure"
2454
cat confdefs.h >>conftest.$ac_ext
2455
cat >>conftest.$ac_ext <<_ACEOF
2456
/* end confdefs.h. */
2459
#include <sys/types.h>
2460
#include <sys/stat.h>
2461
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2462
struct buf { int x; };
2463
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2464
static char *e (p, i)
2470
static char *f (char * (*g) (char **, int), char **p, ...)
2475
s = g (p, va_arg (v,int));
2479
int test (int i, double x);
2480
struct s1 {int (*f) (int a);};
2481
struct s2 {int (*f) (double a);};
2482
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2488
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493
# Don't try gcc -ansi; that turns off useful extensions and
2494
# breaks some systems' header files.
2495
# AIX -qlanglvl=ansi
2496
# Ultrix and OSF/1 -std1
2497
# HP-UX 10.20 and later -Ae
2498
# HP-UX older versions -Aa -D_HPUX_SOURCE
2499
# SVR4 -Xc -D__EXTENSIONS__
2500
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2502
CC="$ac_save_CC $ac_arg"
2503
rm -f conftest.$ac_objext
2504
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505
(eval $ac_compile) 2>&5
2507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
(exit $ac_status); } &&
2509
{ ac_try='test -s conftest.$ac_objext'
2510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
(exit $ac_status); }; }; then
2515
ac_cv_prog_cc_stdc=$ac_arg
2518
echo "$as_me: failed program was:" >&5
2519
sed 's/^/| /' conftest.$ac_ext >&5
2522
rm -f conftest.$ac_objext
2524
rm -f conftest.$ac_ext conftest.$ac_objext
2529
case "x$ac_cv_prog_cc_stdc" in
2531
echo "$as_me:$LINENO: result: none needed" >&5
2532
echo "${ECHO_T}none needed" >&6 ;;
2534
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536
CC="$CC $ac_cv_prog_cc_stdc" ;;
2539
# Some people use a C++ compiler to compile C. Since we use `exit',
2540
# in C++ we need to declare it. In case someone uses the same compiler
2541
# for both compiling C and C++ we need to have the C++ compiler decide
2542
# the declaration of exit, since it's the most demanding environment.
2543
cat >conftest.$ac_ext <<_ACEOF
2548
rm -f conftest.$ac_objext
2549
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550
(eval $ac_compile) 2>&5
2552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553
(exit $ac_status); } &&
2554
{ ac_try='test -s conftest.$ac_objext'
2555
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559
(exit $ac_status); }; }; then
2560
for ac_declaration in \
2562
'#include <stdlib.h>' \
2563
'extern "C" void std::exit (int) throw (); using std::exit;' \
2564
'extern "C" void std::exit (int); using std::exit;' \
2565
'extern "C" void exit (int) throw ();' \
2566
'extern "C" void exit (int);' \
2569
cat >conftest.$ac_ext <<_ACEOF
2570
#line $LINENO "configure"
2573
cat confdefs.h >>conftest.$ac_ext
2574
cat >>conftest.$ac_ext <<_ACEOF
2575
/* end confdefs.h. */
2586
rm -f conftest.$ac_objext
2587
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588
(eval $ac_compile) 2>&5
2590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
(exit $ac_status); } &&
2592
{ ac_try='test -s conftest.$ac_objext'
2593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597
(exit $ac_status); }; }; then
2600
echo "$as_me: failed program was:" >&5
2601
sed 's/^/| /' conftest.$ac_ext >&5
2605
rm -f conftest.$ac_objext conftest.$ac_ext
2606
cat >conftest.$ac_ext <<_ACEOF
2607
#line $LINENO "configure"
2610
cat confdefs.h >>conftest.$ac_ext
2611
cat >>conftest.$ac_ext <<_ACEOF
2612
/* end confdefs.h. */
2622
rm -f conftest.$ac_objext
2623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624
(eval $ac_compile) 2>&5
2626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
(exit $ac_status); } &&
2628
{ ac_try='test -s conftest.$ac_objext'
2629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
(exit $ac_status); }; }; then
2636
echo "$as_me: failed program was:" >&5
2637
sed 's/^/| /' conftest.$ac_ext >&5
2640
rm -f conftest.$ac_objext conftest.$ac_ext
2643
if test -n "$ac_declaration"; then
2644
echo '#ifdef __cplusplus' >>confdefs.h
2645
echo $ac_declaration >>confdefs.h
2646
echo '#endif' >>confdefs.h
2650
echo "$as_me: failed program was:" >&5
2651
sed 's/^/| /' conftest.$ac_ext >&5
2654
rm -f conftest.$ac_objext conftest.$ac_ext
2656
ac_cpp='$CPP $CPPFLAGS'
2657
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
rm -f .deps 2>/dev/null
2661
mkdir .deps 2>/dev/null
2662
if test -d .deps; then
2665
# MS-DOS does not allow filenames that begin with a dot.
2668
rmdir .deps 2>/dev/null
2671
ac_config_commands="$ac_config_commands depfiles"
2674
am_make=${MAKE-make}
2675
cat > confinc << 'END'
2679
# If we don't find an include directive, just comment out the code.
2680
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2685
# First try GNU make style include.
2686
echo "include confinc" > confmf
2687
# We grep out `Entering directory' and `Leaving directory'
2688
# messages which can occur if `w' ends up in MAKEFLAGS.
2689
# In particular we don't look at `^make:' because GNU make might
2690
# be invoked under some other name (usually "gmake"), in which
2691
# case it prints its new name instead of `make'.
2692
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697
# Now try BSD make style include.
2698
if test "$am__include" = "#"; then
2699
echo '.include "confinc"' > confmf
2700
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701
am__include=.include
2708
echo "$as_me:$LINENO: result: $_am_result" >&5
2709
echo "${ECHO_T}$_am_result" >&6
2710
rm -f confinc confmf
2712
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2713
if test "${enable_dependency_tracking+set}" = set; then
2714
enableval="$enable_dependency_tracking"
2717
if test "x$enable_dependency_tracking" != xno; then
2718
am_depcomp="$ac_aux_dir/depcomp"
2723
if test "x$enable_dependency_tracking" != xno; then
2734
depcc="$CC" am_compiler_list=
2736
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739
echo $ECHO_N "(cached) $ECHO_C" >&6
2741
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742
# We make a subdir and do the tests there. Otherwise we can end up
2743
# making bogus files that we don't know about and never remove. For
2744
# instance it was reported that on HP-UX the gcc test will end up
2745
# making a dummy file named `D' -- because `-MD' means `put the output
2748
# Copy depcomp to subdir because otherwise we won't find it if we're
2749
# using a relative directory.
2750
cp "$am_depcomp" conftest.dir
2753
am_cv_CC_dependencies_compiler_type=none
2754
if test "$am_compiler_list" = ""; then
2755
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2757
for depmode in $am_compiler_list; do
2758
# We need to recreate these files for each test, as the compiler may
2759
# overwrite some of them when testing with obscure command lines.
2760
# This happens at least with the AIX C compiler.
2761
echo '#include "conftest.h"' > conftest.c
2762
echo 'int i;' > conftest.h
2763
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2767
# after this tag, mechanisms are not by side-effect, so they'll
2768
# only be used when explicitly requested
2769
if test "x$enable_dependency_tracking" = xyes; then
2777
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2778
# mode. It turns out that the SunPro C++ compiler does not properly
2779
# handle `-M -o', and we need to detect this.
2780
if depmode=$depmode \
2781
source=conftest.c object=conftest.o \
2782
depfile=conftest.Po tmpdepfile=conftest.TPo \
2783
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2784
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2785
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786
am_cv_CC_dependencies_compiler_type=$depmode
2794
am_cv_CC_dependencies_compiler_type=none
2798
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2799
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2800
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805
test "x$enable_dependency_tracking" != xno \
2806
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2808
am__fastdepCC_FALSE='#'
2810
am__fastdepCC_TRUE='#'
2811
am__fastdepCC_FALSE=
2815
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2817
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2818
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2987
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2988
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2989
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2990
echo $ECHO_N "(cached) $ECHO_C" >&6
2992
cat >conftest.$ac_ext <<_ACEOF
2995
cat confdefs.h >>conftest.$ac_ext
2996
cat >>conftest.$ac_ext <<_ACEOF
2997
/* end confdefs.h. */
3010
rm -f conftest.$ac_objext
3011
if { (ac_try="$ac_compile"
3013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014
*) ac_try_echo=$ac_try;;
3016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017
(eval "$ac_compile") 2>conftest.er1
3019
grep -v '^ *+' conftest.er1 >conftest.err
3021
cat conftest.err >&5
3022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023
(exit $ac_status); } && {
3024
test -z "$ac_c_werror_flag" ||
3025
test ! -s conftest.err
3026
} && test -s conftest.$ac_objext; then
3029
echo "$as_me: failed program was:" >&5
3030
sed 's/^/| /' conftest.$ac_ext >&5
3035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041
GCC=`test $ac_compiler_gnu = yes && echo yes`
3042
ac_test_CFLAGS=${CFLAGS+set}
3043
ac_save_CFLAGS=$CFLAGS
3044
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046
if test "${ac_cv_prog_cc_g+set}" = set; then
3047
echo $ECHO_N "(cached) $ECHO_C" >&6
3049
ac_save_c_werror_flag=$ac_c_werror_flag
3050
ac_c_werror_flag=yes
3053
cat >conftest.$ac_ext <<_ACEOF
3056
cat confdefs.h >>conftest.$ac_ext
3057
cat >>conftest.$ac_ext <<_ACEOF
3058
/* end confdefs.h. */
3068
rm -f conftest.$ac_objext
3069
if { (ac_try="$ac_compile"
3071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072
*) ac_try_echo=$ac_try;;
3074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075
(eval "$ac_compile") 2>conftest.er1
3077
grep -v '^ *+' conftest.er1 >conftest.err
3079
cat conftest.err >&5
3080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081
(exit $ac_status); } && {
3082
test -z "$ac_c_werror_flag" ||
3083
test ! -s conftest.err
3084
} && test -s conftest.$ac_objext; then
3087
echo "$as_me: failed program was:" >&5
3088
sed 's/^/| /' conftest.$ac_ext >&5
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113
(eval "$ac_compile") 2>conftest.er1
3115
grep -v '^ *+' conftest.er1 >conftest.err
3117
cat conftest.err >&5
3118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119
(exit $ac_status); } && {
3120
test -z "$ac_c_werror_flag" ||
3121
test ! -s conftest.err
3122
} && test -s conftest.$ac_objext; then
3125
echo "$as_me: failed program was:" >&5
3126
sed 's/^/| /' conftest.$ac_ext >&5
3128
ac_c_werror_flag=$ac_save_c_werror_flag
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152
(eval "$ac_compile") 2>conftest.er1
3154
grep -v '^ *+' conftest.er1 >conftest.err
3156
cat conftest.err >&5
3157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158
(exit $ac_status); } && {
3159
test -z "$ac_c_werror_flag" ||
3160
test ! -s conftest.err
3161
} && test -s conftest.$ac_objext; then
3164
echo "$as_me: failed program was:" >&5
3165
sed 's/^/| /' conftest.$ac_ext >&5
3170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177
ac_c_werror_flag=$ac_save_c_werror_flag
3179
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3180
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3181
if test "$ac_test_CFLAGS" = set; then
3182
CFLAGS=$ac_save_CFLAGS
3183
elif test $ac_cv_prog_cc_g = yes; then
3184
if test "$GCC" = yes; then
3190
if test "$GCC" = yes; then
3196
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3197
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3198
if test "${ac_cv_prog_cc_c89+set}" = set; then
3199
echo $ECHO_N "(cached) $ECHO_C" >&6
3201
ac_cv_prog_cc_c89=no
3203
cat >conftest.$ac_ext <<_ACEOF
3206
cat confdefs.h >>conftest.$ac_ext
3207
cat >>conftest.$ac_ext <<_ACEOF
3208
/* end confdefs.h. */
3211
#include <sys/types.h>
3212
#include <sys/stat.h>
3213
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3214
struct buf { int x; };
3215
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3216
static char *e (p, i)
3222
static char *f (char * (*g) (char **, int), char **p, ...)
3227
s = g (p, va_arg (v,int));
3232
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3233
function prototypes and stuff, but not '\xHH' hex character constants.
3234
These don't provoke an error unfortunately, instead are silently treated
3235
as 'x'. The following induces an error, until -std is added to get
3236
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3237
array size at least. It's necessary to write '\x00'==0 to get something
3238
that's true only with -std. */
3239
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3241
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3242
inside strings and character constants. */
3244
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3246
int test (int i, double x);
3247
struct s1 {int (*f) (int a);};
3248
struct s2 {int (*f) (double a);};
3249
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3255
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3260
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3261
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3263
CC="$ac_save_CC $ac_arg"
3264
rm -f conftest.$ac_objext
3265
if { (ac_try="$ac_compile"
3267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
*) ac_try_echo=$ac_try;;
3270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271
(eval "$ac_compile") 2>conftest.er1
3273
grep -v '^ *+' conftest.er1 >conftest.err
3275
cat conftest.err >&5
3276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277
(exit $ac_status); } && {
3278
test -z "$ac_c_werror_flag" ||
3279
test ! -s conftest.err
3280
} && test -s conftest.$ac_objext; then
3281
ac_cv_prog_cc_c89=$ac_arg
3283
echo "$as_me: failed program was:" >&5
3284
sed 's/^/| /' conftest.$ac_ext >&5
3289
rm -f core conftest.err conftest.$ac_objext
3290
test "x$ac_cv_prog_cc_c89" != "xno" && break
3292
rm -f conftest.$ac_ext
3297
case "x$ac_cv_prog_cc_c89" in
3299
{ echo "$as_me:$LINENO: result: none needed" >&5
3300
echo "${ECHO_T}none needed" >&6; } ;;
3302
{ echo "$as_me:$LINENO: result: unsupported" >&5
3303
echo "${ECHO_T}unsupported" >&6; } ;;
3305
CC="$CC $ac_cv_prog_cc_c89"
3306
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3307
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3312
ac_cpp='$CPP $CPPFLAGS'
3313
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
depcc="$CC" am_compiler_list=
3319
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3320
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3321
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3322
echo $ECHO_N "(cached) $ECHO_C" >&6
3324
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3325
# We make a subdir and do the tests there. Otherwise we can end up
3326
# making bogus files that we don't know about and never remove. For
3327
# instance it was reported that on HP-UX the gcc test will end up
3328
# making a dummy file named `D' -- because `-MD' means `put the output
3331
# Copy depcomp to subdir because otherwise we won't find it if we're
3332
# using a relative directory.
3333
cp "$am_depcomp" conftest.dir
3335
# We will build objects and dependencies in a subdirectory because
3336
# it helps to detect inapplicable dependency modes. For instance
3337
# both Tru64's cc and ICC support -MD to output dependencies as a
3338
# side effect of compilation, but ICC will put the dependencies in
3339
# the current directory while Tru64 will put them in the object
3343
am_cv_CC_dependencies_compiler_type=none
3344
if test "$am_compiler_list" = ""; then
3345
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3347
for depmode in $am_compiler_list; do
3348
# Setup a source with many dependencies, because some compilers
3349
# like to wrap large dependency lists on column 80 (with \), and
3350
# we should not choose a depcomp mode which is confused by this.
3352
# We need to recreate these files for each test, as the compiler may
3353
# overwrite some of them when testing with obscure command lines.
3354
# This happens at least with the AIX C compiler.
3356
for i in 1 2 3 4 5 6; do
3357
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3358
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3359
# Solaris 8's {/usr,}/bin/sh.
3360
touch sub/conftst$i.h
3362
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3366
# after this tag, mechanisms are not by side-effect, so they'll
3367
# only be used when explicitly requested
3368
if test "x$enable_dependency_tracking" = xyes; then
3376
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3377
# mode. It turns out that the SunPro C++ compiler does not properly
3378
# handle `-M -o', and we need to detect this.
3379
if depmode=$depmode \
3380
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3381
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3382
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3383
>/dev/null 2>conftest.err &&
3384
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3385
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3386
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3387
# icc doesn't choke on unknown options, it will just issue warnings
3388
# or remarks (even with -Werror). So we grep stderr for any message
3389
# that says an option was ignored or not supported.
3390
# When given -MP, icc 7.0 and 7.1 complain thusly:
3391
# icc: Command line warning: ignoring option '-M'; no argument required
3392
# The diagnosis changed in icc 8.0:
3393
# icc: Command line remark: option '-MP' not supported
3394
if (grep 'ignoring option' conftest.err ||
3395
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3396
am_cv_CC_dependencies_compiler_type=$depmode
3405
am_cv_CC_dependencies_compiler_type=none
3409
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3410
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3411
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3416
test "x$enable_dependency_tracking" != xno \
3417
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3419
am__fastdepCC_FALSE='#'
3421
am__fastdepCC_TRUE='#'
3422
am__fastdepCC_FALSE=
3428
case "$am__api_version" in
3430
{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
3431
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
3432
{ (exit 1); exit 1; }; }
3439
{ echo "$as_me:$LINENO: checking for intltool >= " >&5
3440
echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
3442
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3443
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
3444
INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
3446
{ echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
3447
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
3448
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
3449
{ { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
3450
echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
3451
{ (exit 1); exit 1; }; }
3454
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3455
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3456
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3457
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3458
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
3459
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3460
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3461
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3462
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3463
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3464
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3465
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
3466
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3467
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3468
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3469
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3470
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3471
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3492
# Use the tools built into the package, not the ones that are installed.
3493
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
3495
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
3497
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
3500
# Extract the first word of "perl", so it can be a program name with args.
3501
set dummy perl; ac_word=$2
3502
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3504
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
3505
echo $ECHO_N "(cached) $ECHO_C" >&6
3507
case $INTLTOOL_PERL in
3509
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
3512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516
test -z "$as_dir" && as_dir=.
3517
for ac_exec_ext in '' $ac_executable_extensions; do
3518
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
3520
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
3531
if test -n "$INTLTOOL_PERL"; then
3532
{ echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
3533
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
3535
{ echo "$as_me:$LINENO: result: no" >&5
3536
echo "${ECHO_T}no" >&6; }
3540
if test -z "$INTLTOOL_PERL"; then
3541
{ { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
3542
echo "$as_me: error: perl not found; required for intltool" >&2;}
3543
{ (exit 1); exit 1; }; }
3545
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
3546
{ { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
3547
echo "$as_me: error: perl 5.x required for intltool" >&2;}
3548
{ (exit 1); exit 1; }; }
3550
if test "x" != "xno-xml"; then
3551
{ echo "$as_me:$LINENO: checking for XML::Parser" >&5
3552
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
3553
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
3554
{ echo "$as_me:$LINENO: result: ok" >&5
3555
echo "${ECHO_T}ok" >&6; }
3557
{ { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
3558
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
3559
{ (exit 1); exit 1; }; }
3563
# Extract the first word of "iconv", so it can be a program name with args.
3564
set dummy iconv; ac_word=$2
3565
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3567
if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
3568
echo $ECHO_N "(cached) $ECHO_C" >&6
3570
case $INTLTOOL_ICONV in
3572
ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
3575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579
test -z "$as_dir" && as_dir=.
3580
for ac_exec_ext in '' $ac_executable_extensions; do
3581
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582
ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
3583
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590
test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
3594
INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
3595
if test -n "$INTLTOOL_ICONV"; then
3596
{ echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
3597
echo "${ECHO_T}$INTLTOOL_ICONV" >&6; }
3599
{ echo "$as_me:$LINENO: result: no" >&5
3600
echo "${ECHO_T}no" >&6; }
3604
# Extract the first word of "msgfmt", so it can be a program name with args.
3605
set dummy msgfmt; ac_word=$2
3606
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608
if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
3609
echo $ECHO_N "(cached) $ECHO_C" >&6
3611
case $INTLTOOL_MSGFMT in
3613
ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
3616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620
test -z "$as_dir" && as_dir=.
3621
for ac_exec_ext in '' $ac_executable_extensions; do
3622
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623
ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
3624
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631
test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
3635
INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
3636
if test -n "$INTLTOOL_MSGFMT"; then
3637
{ echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
3638
echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; }
3640
{ echo "$as_me:$LINENO: result: no" >&5
3641
echo "${ECHO_T}no" >&6; }
3645
# Extract the first word of "msgmerge", so it can be a program name with args.
3646
set dummy msgmerge; ac_word=$2
3647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3649
if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
3650
echo $ECHO_N "(cached) $ECHO_C" >&6
3652
case $INTLTOOL_MSGMERGE in
3654
ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
3657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661
test -z "$as_dir" && as_dir=.
3662
for ac_exec_ext in '' $ac_executable_extensions; do
3663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664
ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
3665
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672
test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
3676
INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
3677
if test -n "$INTLTOOL_MSGMERGE"; then
3678
{ echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
3679
echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; }
3681
{ echo "$as_me:$LINENO: result: no" >&5
3682
echo "${ECHO_T}no" >&6; }
3686
# Extract the first word of "xgettext", so it can be a program name with args.
3687
set dummy xgettext; ac_word=$2
3688
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3690
if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
3691
echo $ECHO_N "(cached) $ECHO_C" >&6
3693
case $INTLTOOL_XGETTEXT in
3695
ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
3698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702
test -z "$as_dir" && as_dir=.
3703
for ac_exec_ext in '' $ac_executable_extensions; do
3704
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705
ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
3706
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713
test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
3717
INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
3718
if test -n "$INTLTOOL_XGETTEXT"; then
3719
{ echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
3720
echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; }
3722
{ echo "$as_me:$LINENO: result: no" >&5
3723
echo "${ECHO_T}no" >&6; }
3728
# Substitute ALL_LINGUAS so we can use it in po/Makefile
3731
# Set DATADIRNAME correctly if it is not set yet
3732
# (copied from glib-gettext.m4)
3733
if test -z "$DATADIRNAME"; then
3734
cat >conftest.$ac_ext <<_ACEOF
3737
cat confdefs.h >>conftest.$ac_ext
3738
cat >>conftest.$ac_ext <<_ACEOF
3739
/* end confdefs.h. */
3744
extern int _nl_msg_cat_cntr;
3745
return _nl_msg_cat_cntr
3750
rm -f conftest.$ac_objext conftest$ac_exeext
3751
if { (ac_try="$ac_link"
3753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754
*) ac_try_echo=$ac_try;;
3756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757
(eval "$ac_link") 2>conftest.er1
3759
grep -v '^ *+' conftest.er1 >conftest.err
3761
cat conftest.err >&5
3762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763
(exit $ac_status); } && {
3764
test -z "$ac_c_werror_flag" ||
3765
test ! -s conftest.err
3766
} && test -s conftest$ac_exeext &&
3767
$as_test_x conftest$ac_exeext; then
3770
echo "$as_me: failed program was:" >&5
3771
sed 's/^/| /' conftest.$ac_ext >&5
3775
{ echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
3776
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
3777
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
3778
echo $ECHO_N "(cached) $ECHO_C" >&6
3780
cat >conftest.$ac_ext <<_ACEOF
3783
cat confdefs.h >>conftest.$ac_ext
3784
cat >>conftest.$ac_ext <<_ACEOF
3785
/* end confdefs.h. */
3786
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
3787
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3788
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
3790
/* System header to define __stub macros and hopefully few prototypes,
3791
which can conflict with char bind_textdomain_codeset (); below.
3792
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793
<limits.h> exists even on freestanding compilers. */
3796
# include <limits.h>
3798
# include <assert.h>
3801
#undef bind_textdomain_codeset
3803
/* Override any GCC internal prototype to avoid an error.
3804
Use char because int might match the return type of a GCC
3805
builtin and then its argument prototype would still apply. */
3809
char bind_textdomain_codeset ();
3810
/* The GNU C library defines this for functions which it implements
3811
to always fail with ENOSYS. Some functions are actually named
3812
something starting with __ and the normal name is an alias. */
3813
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
3820
return bind_textdomain_codeset ();
3825
rm -f conftest.$ac_objext conftest$ac_exeext
3826
if { (ac_try="$ac_link"
3828
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829
*) ac_try_echo=$ac_try;;
3831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832
(eval "$ac_link") 2>conftest.er1
3834
grep -v '^ *+' conftest.er1 >conftest.err
3836
cat conftest.err >&5
3837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
(exit $ac_status); } && {
3839
test -z "$ac_c_werror_flag" ||
3840
test ! -s conftest.err
3841
} && test -s conftest$ac_exeext &&
3842
$as_test_x conftest$ac_exeext; then
3843
ac_cv_func_bind_textdomain_codeset=yes
3845
echo "$as_me: failed program was:" >&5
3846
sed 's/^/| /' conftest.$ac_ext >&5
3848
ac_cv_func_bind_textdomain_codeset=no
3851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3852
conftest$ac_exeext conftest.$ac_ext
3854
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
3855
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
3856
if test $ac_cv_func_bind_textdomain_codeset = yes; then
3869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3870
conftest$ac_exeext conftest.$ac_ext
3877
ac_config_commands="$ac_config_commands intltool"
3884
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3885
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3886
if test "${ac_cv_search_strerror+set}" = set; then
3887
echo $ECHO_N "(cached) $ECHO_C" >&6
3889
ac_func_search_save_LIBS=$LIBS
3890
cat >conftest.$ac_ext <<_ACEOF
3893
cat confdefs.h >>conftest.$ac_ext
3894
cat >>conftest.$ac_ext <<_ACEOF
3895
/* end confdefs.h. */
3897
/* Override any GCC internal prototype to avoid an error.
3898
Use char because int might match the return type of a GCC
3899
builtin and then its argument prototype would still apply. */
3912
for ac_lib in '' cposix; do
3913
if test -z "$ac_lib"; then
3914
ac_res="none required"
3917
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3919
rm -f conftest.$ac_objext conftest$ac_exeext
3920
if { (ac_try="$ac_link"
3922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923
*) ac_try_echo=$ac_try;;
3925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926
(eval "$ac_link") 2>conftest.er1
3928
grep -v '^ *+' conftest.er1 >conftest.err
3930
cat conftest.err >&5
3931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932
(exit $ac_status); } && {
3933
test -z "$ac_c_werror_flag" ||
3934
test ! -s conftest.err
3935
} && test -s conftest$ac_exeext &&
3936
$as_test_x conftest$ac_exeext; then
3937
ac_cv_search_strerror=$ac_res
3939
echo "$as_me: failed program was:" >&5
3940
sed 's/^/| /' conftest.$ac_ext >&5
3945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3947
if test "${ac_cv_search_strerror+set}" = set; then
3951
if test "${ac_cv_search_strerror+set}" = set; then
3954
ac_cv_search_strerror=no
3957
LIBS=$ac_func_search_save_LIBS
3959
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3960
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3961
ac_res=$ac_cv_search_strerror
3962
if test "$ac_res" != no; then
3963
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3968
ac_cpp='$CPP $CPPFLAGS'
3969
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
if test -n "$ac_tool_prefix"; then
3973
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3974
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3977
if test "${ac_cv_prog_CC+set}" = set; then
3978
echo $ECHO_N "(cached) $ECHO_C" >&6
3980
if test -n "$CC"; then
3981
ac_cv_prog_CC="$CC" # Let the user override the test.
3983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987
test -z "$as_dir" && as_dir=.
3988
for ac_exec_ext in '' $ac_executable_extensions; do
3989
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3991
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001
if test -n "$CC"; then
4002
{ echo "$as_me:$LINENO: result: $CC" >&5
4003
echo "${ECHO_T}$CC" >&6; }
4005
{ echo "$as_me:$LINENO: result: no" >&5
4006
echo "${ECHO_T}no" >&6; }
4011
if test -z "$ac_cv_prog_CC"; then
4013
# Extract the first word of "gcc", so it can be a program name with args.
4014
set dummy gcc; ac_word=$2
4015
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4018
echo $ECHO_N "(cached) $ECHO_C" >&6
4020
if test -n "$ac_ct_CC"; then
4021
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027
test -z "$as_dir" && as_dir=.
4028
for ac_exec_ext in '' $ac_executable_extensions; do
4029
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030
ac_cv_prog_ac_ct_CC="gcc"
4031
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4041
if test -n "$ac_ct_CC"; then
4042
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4043
echo "${ECHO_T}$ac_ct_CC" >&6; }
4045
{ echo "$as_me:$LINENO: result: no" >&5
4046
echo "${ECHO_T}no" >&6; }
4049
if test "x$ac_ct_CC" = x; then
4052
case $cross_compiling:$ac_tool_warned in
4054
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4055
whose name does not start with the host triplet. If you think this
4056
configuration is useful to you, please write to autoconf@gnu.org." >&5
4057
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4058
whose name does not start with the host triplet. If you think this
4059
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4060
ac_tool_warned=yes ;;
4068
if test -z "$CC"; then
4069
if test -n "$ac_tool_prefix"; then
4070
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4071
set dummy ${ac_tool_prefix}cc; ac_word=$2
4072
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4074
if test "${ac_cv_prog_CC+set}" = set; then
4075
echo $ECHO_N "(cached) $ECHO_C" >&6
4077
if test -n "$CC"; then
4078
ac_cv_prog_CC="$CC" # Let the user override the test.
4080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084
test -z "$as_dir" && as_dir=.
4085
for ac_exec_ext in '' $ac_executable_extensions; do
4086
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087
ac_cv_prog_CC="${ac_tool_prefix}cc"
4088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098
if test -n "$CC"; then
4099
{ echo "$as_me:$LINENO: result: $CC" >&5
4100
echo "${ECHO_T}$CC" >&6; }
4102
{ echo "$as_me:$LINENO: result: no" >&5
4103
echo "${ECHO_T}no" >&6; }
4109
if test -z "$CC"; then
4110
# Extract the first word of "cc", so it can be a program name with args.
4111
set dummy cc; ac_word=$2
4112
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4113
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4114
if test "${ac_cv_prog_CC+set}" = set; then
4115
echo $ECHO_N "(cached) $ECHO_C" >&6
4117
if test -n "$CC"; then
4118
ac_cv_prog_CC="$CC" # Let the user override the test.
4121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125
test -z "$as_dir" && as_dir=.
4126
for ac_exec_ext in '' $ac_executable_extensions; do
4127
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4129
ac_prog_rejected=yes
4133
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140
if test $ac_prog_rejected = yes; then
4141
# We found a bogon in the path, so make sure we never use it.
4142
set dummy $ac_cv_prog_CC
4144
if test $# != 0; then
4145
# We chose a different compiler from the bogus one.
4146
# However, it has the same basename, so the bogon will be chosen
4147
# first if we set CC to just the basename; use the full file name.
4149
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4155
if test -n "$CC"; then
4156
{ echo "$as_me:$LINENO: result: $CC" >&5
4157
echo "${ECHO_T}$CC" >&6; }
4159
{ echo "$as_me:$LINENO: result: no" >&5
4160
echo "${ECHO_T}no" >&6; }
4165
if test -z "$CC"; then
4166
if test -n "$ac_tool_prefix"; then
4167
for ac_prog in cl.exe
4169
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4170
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4171
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173
if test "${ac_cv_prog_CC+set}" = set; then
4174
echo $ECHO_N "(cached) $ECHO_C" >&6
4176
if test -n "$CC"; then
4177
ac_cv_prog_CC="$CC" # Let the user override the test.
4179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183
test -z "$as_dir" && as_dir=.
4184
for ac_exec_ext in '' $ac_executable_extensions; do
4185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4187
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197
if test -n "$CC"; then
4198
{ echo "$as_me:$LINENO: result: $CC" >&5
4199
echo "${ECHO_T}$CC" >&6; }
4201
{ echo "$as_me:$LINENO: result: no" >&5
4202
echo "${ECHO_T}no" >&6; }
4206
test -n "$CC" && break
4209
if test -z "$CC"; then
4211
for ac_prog in cl.exe
4213
# Extract the first word of "$ac_prog", so it can be a program name with args.
4214
set dummy $ac_prog; ac_word=$2
4215
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4218
echo $ECHO_N "(cached) $ECHO_C" >&6
4220
if test -n "$ac_ct_CC"; then
4221
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227
test -z "$as_dir" && as_dir=.
4228
for ac_exec_ext in '' $ac_executable_extensions; do
4229
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230
ac_cv_prog_ac_ct_CC="$ac_prog"
4231
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241
if test -n "$ac_ct_CC"; then
4242
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243
echo "${ECHO_T}$ac_ct_CC" >&6; }
4245
{ echo "$as_me:$LINENO: result: no" >&5
4246
echo "${ECHO_T}no" >&6; }
4250
test -n "$ac_ct_CC" && break
4253
if test "x$ac_ct_CC" = x; then
4256
case $cross_compiling:$ac_tool_warned in
4258
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4259
whose name does not start with the host triplet. If you think this
4260
configuration is useful to you, please write to autoconf@gnu.org." >&5
4261
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4262
whose name does not start with the host triplet. If you think this
4263
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4264
ac_tool_warned=yes ;;
4273
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4274
See \`config.log' for more details." >&5
4275
echo "$as_me: error: no acceptable C compiler found in \$PATH
4276
See \`config.log' for more details." >&2;}
4277
{ (exit 1); exit 1; }; }
4279
# Provide some information about the compiler.
4280
echo "$as_me:$LINENO: checking for C compiler version" >&5
4281
ac_compiler=`set X $ac_compile; echo $2`
4282
{ (ac_try="$ac_compiler --version >&5"
4284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285
*) ac_try_echo=$ac_try;;
4287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288
(eval "$ac_compiler --version >&5") 2>&5
4290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291
(exit $ac_status); }
4292
{ (ac_try="$ac_compiler -v >&5"
4294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295
*) ac_try_echo=$ac_try;;
4297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298
(eval "$ac_compiler -v >&5") 2>&5
4300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
(exit $ac_status); }
4302
{ (ac_try="$ac_compiler -V >&5"
4304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305
*) ac_try_echo=$ac_try;;
4307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308
(eval "$ac_compiler -V >&5") 2>&5
4310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311
(exit $ac_status); }
4313
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4314
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4315
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4316
echo $ECHO_N "(cached) $ECHO_C" >&6
4318
cat >conftest.$ac_ext <<_ACEOF
4321
cat confdefs.h >>conftest.$ac_ext
4322
cat >>conftest.$ac_ext <<_ACEOF
4323
/* end confdefs.h. */
4336
rm -f conftest.$ac_objext
4337
if { (ac_try="$ac_compile"
4339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340
*) ac_try_echo=$ac_try;;
4342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343
(eval "$ac_compile") 2>conftest.er1
4345
grep -v '^ *+' conftest.er1 >conftest.err
4347
cat conftest.err >&5
4348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349
(exit $ac_status); } && {
4350
test -z "$ac_c_werror_flag" ||
4351
test ! -s conftest.err
4352
} && test -s conftest.$ac_objext; then
4355
echo "$as_me: failed program was:" >&5
4356
sed 's/^/| /' conftest.$ac_ext >&5
4361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4365
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4366
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4367
GCC=`test $ac_compiler_gnu = yes && echo yes`
4368
ac_test_CFLAGS=${CFLAGS+set}
4369
ac_save_CFLAGS=$CFLAGS
4370
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4371
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4372
if test "${ac_cv_prog_cc_g+set}" = set; then
4373
echo $ECHO_N "(cached) $ECHO_C" >&6
4375
ac_save_c_werror_flag=$ac_c_werror_flag
4376
ac_c_werror_flag=yes
4379
cat >conftest.$ac_ext <<_ACEOF
4382
cat confdefs.h >>conftest.$ac_ext
4383
cat >>conftest.$ac_ext <<_ACEOF
4384
/* end confdefs.h. */
4394
rm -f conftest.$ac_objext
4395
if { (ac_try="$ac_compile"
4397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398
*) ac_try_echo=$ac_try;;
4400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401
(eval "$ac_compile") 2>conftest.er1
4403
grep -v '^ *+' conftest.er1 >conftest.err
4405
cat conftest.err >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); } && {
4408
test -z "$ac_c_werror_flag" ||
4409
test ! -s conftest.err
4410
} && test -s conftest.$ac_objext; then
4413
echo "$as_me: failed program was:" >&5
4414
sed 's/^/| /' conftest.$ac_ext >&5
4417
cat >conftest.$ac_ext <<_ACEOF
4420
cat confdefs.h >>conftest.$ac_ext
4421
cat >>conftest.$ac_ext <<_ACEOF
4422
/* end confdefs.h. */
4432
rm -f conftest.$ac_objext
4433
if { (ac_try="$ac_compile"
4435
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436
*) ac_try_echo=$ac_try;;
4438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439
(eval "$ac_compile") 2>conftest.er1
4441
grep -v '^ *+' conftest.er1 >conftest.err
4443
cat conftest.err >&5
4444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445
(exit $ac_status); } && {
4446
test -z "$ac_c_werror_flag" ||
4447
test ! -s conftest.err
4448
} && test -s conftest.$ac_objext; then
4451
echo "$as_me: failed program was:" >&5
4452
sed 's/^/| /' conftest.$ac_ext >&5
4454
ac_c_werror_flag=$ac_save_c_werror_flag
4456
cat >conftest.$ac_ext <<_ACEOF
4459
cat confdefs.h >>conftest.$ac_ext
4460
cat >>conftest.$ac_ext <<_ACEOF
4461
/* end confdefs.h. */
4471
rm -f conftest.$ac_objext
4472
if { (ac_try="$ac_compile"
4474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475
*) ac_try_echo=$ac_try;;
4477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478
(eval "$ac_compile") 2>conftest.er1
4480
grep -v '^ *+' conftest.er1 >conftest.err
4482
cat conftest.err >&5
4483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484
(exit $ac_status); } && {
4485
test -z "$ac_c_werror_flag" ||
4486
test ! -s conftest.err
4487
} && test -s conftest.$ac_objext; then
4490
echo "$as_me: failed program was:" >&5
4491
sed 's/^/| /' conftest.$ac_ext >&5
4496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503
ac_c_werror_flag=$ac_save_c_werror_flag
4505
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4506
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4507
if test "$ac_test_CFLAGS" = set; then
4508
CFLAGS=$ac_save_CFLAGS
4509
elif test $ac_cv_prog_cc_g = yes; then
4510
if test "$GCC" = yes; then
4516
if test "$GCC" = yes; then
4522
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4523
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4524
if test "${ac_cv_prog_cc_c89+set}" = set; then
4525
echo $ECHO_N "(cached) $ECHO_C" >&6
4527
ac_cv_prog_cc_c89=no
4529
cat >conftest.$ac_ext <<_ACEOF
4532
cat confdefs.h >>conftest.$ac_ext
4533
cat >>conftest.$ac_ext <<_ACEOF
4534
/* end confdefs.h. */
4537
#include <sys/types.h>
4538
#include <sys/stat.h>
4539
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4540
struct buf { int x; };
4541
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4542
static char *e (p, i)
4548
static char *f (char * (*g) (char **, int), char **p, ...)
4553
s = g (p, va_arg (v,int));
4558
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4559
function prototypes and stuff, but not '\xHH' hex character constants.
4560
These don't provoke an error unfortunately, instead are silently treated
4561
as 'x'. The following induces an error, until -std is added to get
4562
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4563
array size at least. It's necessary to write '\x00'==0 to get something
4564
that's true only with -std. */
4565
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4567
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4568
inside strings and character constants. */
4570
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4572
int test (int i, double x);
4573
struct s1 {int (*f) (int a);};
4574
struct s2 {int (*f) (double a);};
4575
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4581
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4586
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4587
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4589
CC="$ac_save_CC $ac_arg"
4590
rm -f conftest.$ac_objext
4591
if { (ac_try="$ac_compile"
4593
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594
*) ac_try_echo=$ac_try;;
4596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597
(eval "$ac_compile") 2>conftest.er1
4599
grep -v '^ *+' conftest.er1 >conftest.err
4601
cat conftest.err >&5
4602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603
(exit $ac_status); } && {
4604
test -z "$ac_c_werror_flag" ||
4605
test ! -s conftest.err
4606
} && test -s conftest.$ac_objext; then
4607
ac_cv_prog_cc_c89=$ac_arg
4609
echo "$as_me: failed program was:" >&5
4610
sed 's/^/| /' conftest.$ac_ext >&5
4615
rm -f core conftest.err conftest.$ac_objext
4616
test "x$ac_cv_prog_cc_c89" != "xno" && break
4618
rm -f conftest.$ac_ext
4623
case "x$ac_cv_prog_cc_c89" in
4625
{ echo "$as_me:$LINENO: result: none needed" >&5
4626
echo "${ECHO_T}none needed" >&6; } ;;
4628
{ echo "$as_me:$LINENO: result: unsupported" >&5
4629
echo "${ECHO_T}unsupported" >&6; } ;;
4631
CC="$CC $ac_cv_prog_cc_c89"
4632
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4633
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4638
ac_cpp='$CPP $CPPFLAGS'
4639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643
depcc="$CC" am_compiler_list=
4645
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4646
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4647
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4648
echo $ECHO_N "(cached) $ECHO_C" >&6
4650
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4651
# We make a subdir and do the tests there. Otherwise we can end up
4652
# making bogus files that we don't know about and never remove. For
4653
# instance it was reported that on HP-UX the gcc test will end up
4654
# making a dummy file named `D' -- because `-MD' means `put the output
4657
# Copy depcomp to subdir because otherwise we won't find it if we're
4658
# using a relative directory.
4659
cp "$am_depcomp" conftest.dir
4661
# We will build objects and dependencies in a subdirectory because
4662
# it helps to detect inapplicable dependency modes. For instance
4663
# both Tru64's cc and ICC support -MD to output dependencies as a
4664
# side effect of compilation, but ICC will put the dependencies in
4665
# the current directory while Tru64 will put them in the object
4669
am_cv_CC_dependencies_compiler_type=none
4670
if test "$am_compiler_list" = ""; then
4671
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4673
for depmode in $am_compiler_list; do
4674
# Setup a source with many dependencies, because some compilers
4675
# like to wrap large dependency lists on column 80 (with \), and
4676
# we should not choose a depcomp mode which is confused by this.
4678
# We need to recreate these files for each test, as the compiler may
4679
# overwrite some of them when testing with obscure command lines.
4680
# This happens at least with the AIX C compiler.
4682
for i in 1 2 3 4 5 6; do
4683
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4685
# Solaris 8's {/usr,}/bin/sh.
4686
touch sub/conftst$i.h
4688
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4692
# after this tag, mechanisms are not by side-effect, so they'll
4693
# only be used when explicitly requested
4694
if test "x$enable_dependency_tracking" = xyes; then
4702
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4703
# mode. It turns out that the SunPro C++ compiler does not properly
4704
# handle `-M -o', and we need to detect this.
4705
if depmode=$depmode \
4706
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4707
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4708
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4709
>/dev/null 2>conftest.err &&
4710
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4712
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713
# icc doesn't choke on unknown options, it will just issue warnings
4714
# or remarks (even with -Werror). So we grep stderr for any message
4715
# that says an option was ignored or not supported.
4716
# When given -MP, icc 7.0 and 7.1 complain thusly:
4717
# icc: Command line warning: ignoring option '-M'; no argument required
4718
# The diagnosis changed in icc 8.0:
4719
# icc: Command line remark: option '-MP' not supported
4720
if (grep 'ignoring option' conftest.err ||
4721
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722
am_cv_CC_dependencies_compiler_type=$depmode
4731
am_cv_CC_dependencies_compiler_type=none
4735
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4736
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4737
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4742
test "x$enable_dependency_tracking" != xno \
4743
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4745
am__fastdepCC_FALSE='#'
4747
am__fastdepCC_TRUE='#'
4748
am__fastdepCC_FALSE=
4753
ac_cpp='$CPP $CPPFLAGS'
4754
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757
if test -n "$ac_tool_prefix"; then
4758
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4759
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4760
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762
if test "${ac_cv_prog_CC+set}" = set; then
4763
echo $ECHO_N "(cached) $ECHO_C" >&6
4765
if test -n "$CC"; then
4766
ac_cv_prog_CC="$CC" # Let the user override the test.
4768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772
test -z "$as_dir" && as_dir=.
4773
for ac_exec_ext in '' $ac_executable_extensions; do
4774
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4776
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786
if test -n "$CC"; then
4787
{ echo "$as_me:$LINENO: result: $CC" >&5
4788
echo "${ECHO_T}$CC" >&6; }
4790
{ echo "$as_me:$LINENO: result: no" >&5
4791
echo "${ECHO_T}no" >&6; }
4796
if test -z "$ac_cv_prog_CC"; then
4798
# Extract the first word of "gcc", so it can be a program name with args.
4799
set dummy gcc; ac_word=$2
4800
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4802
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4803
echo $ECHO_N "(cached) $ECHO_C" >&6
4805
if test -n "$ac_ct_CC"; then
4806
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812
test -z "$as_dir" && as_dir=.
4813
for ac_exec_ext in '' $ac_executable_extensions; do
4814
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815
ac_cv_prog_ac_ct_CC="gcc"
4816
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4826
if test -n "$ac_ct_CC"; then
4827
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4828
echo "${ECHO_T}$ac_ct_CC" >&6; }
4830
{ echo "$as_me:$LINENO: result: no" >&5
4831
echo "${ECHO_T}no" >&6; }
4834
if test "x$ac_ct_CC" = x; then
4837
case $cross_compiling:$ac_tool_warned in
4839
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4840
whose name does not start with the host triplet. If you think this
4841
configuration is useful to you, please write to autoconf@gnu.org." >&5
4842
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4843
whose name does not start with the host triplet. If you think this
4844
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4845
ac_tool_warned=yes ;;
4853
if test -z "$CC"; then
4854
if test -n "$ac_tool_prefix"; then
4855
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4856
set dummy ${ac_tool_prefix}cc; ac_word=$2
4857
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859
if test "${ac_cv_prog_CC+set}" = set; then
4860
echo $ECHO_N "(cached) $ECHO_C" >&6
4862
if test -n "$CC"; then
4863
ac_cv_prog_CC="$CC" # Let the user override the test.
4865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869
test -z "$as_dir" && as_dir=.
4870
for ac_exec_ext in '' $ac_executable_extensions; do
4871
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872
ac_cv_prog_CC="${ac_tool_prefix}cc"
4873
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883
if test -n "$CC"; then
4884
{ echo "$as_me:$LINENO: result: $CC" >&5
4885
echo "${ECHO_T}$CC" >&6; }
4887
{ echo "$as_me:$LINENO: result: no" >&5
4888
echo "${ECHO_T}no" >&6; }
4894
if test -z "$CC"; then
4895
# Extract the first word of "cc", so it can be a program name with args.
4896
set dummy cc; ac_word=$2
4897
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4898
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899
if test "${ac_cv_prog_CC+set}" = set; then
4900
echo $ECHO_N "(cached) $ECHO_C" >&6
4902
if test -n "$CC"; then
4903
ac_cv_prog_CC="$CC" # Let the user override the test.
4906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910
test -z "$as_dir" && as_dir=.
4911
for ac_exec_ext in '' $ac_executable_extensions; do
4912
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4914
ac_prog_rejected=yes
4918
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925
if test $ac_prog_rejected = yes; then
4926
# We found a bogon in the path, so make sure we never use it.
4927
set dummy $ac_cv_prog_CC
4929
if test $# != 0; then
4930
# We chose a different compiler from the bogus one.
4931
# However, it has the same basename, so the bogon will be chosen
4932
# first if we set CC to just the basename; use the full file name.
4934
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4940
if test -n "$CC"; then
4941
{ echo "$as_me:$LINENO: result: $CC" >&5
4942
echo "${ECHO_T}$CC" >&6; }
4944
{ echo "$as_me:$LINENO: result: no" >&5
4945
echo "${ECHO_T}no" >&6; }
4950
if test -z "$CC"; then
4951
if test -n "$ac_tool_prefix"; then
4952
for ac_prog in cl.exe
4954
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4958
if test "${ac_cv_prog_CC+set}" = set; then
4959
echo $ECHO_N "(cached) $ECHO_C" >&6
4961
if test -n "$CC"; then
4962
ac_cv_prog_CC="$CC" # Let the user override the test.
4964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968
test -z "$as_dir" && as_dir=.
4969
for ac_exec_ext in '' $ac_executable_extensions; do
4970
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4972
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982
if test -n "$CC"; then
4983
{ echo "$as_me:$LINENO: result: $CC" >&5
4984
echo "${ECHO_T}$CC" >&6; }
4986
{ echo "$as_me:$LINENO: result: no" >&5
4987
echo "${ECHO_T}no" >&6; }
4991
test -n "$CC" && break
4994
if test -z "$CC"; then
4996
for ac_prog in cl.exe
4998
# Extract the first word of "$ac_prog", so it can be a program name with args.
4999
set dummy $ac_prog; ac_word=$2
5000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5003
echo $ECHO_N "(cached) $ECHO_C" >&6
5005
if test -n "$ac_ct_CC"; then
5006
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012
test -z "$as_dir" && as_dir=.
5013
for ac_exec_ext in '' $ac_executable_extensions; do
5014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015
ac_cv_prog_ac_ct_CC="$ac_prog"
5016
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5026
if test -n "$ac_ct_CC"; then
5027
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5028
echo "${ECHO_T}$ac_ct_CC" >&6; }
5030
{ echo "$as_me:$LINENO: result: no" >&5
5031
echo "${ECHO_T}no" >&6; }
5035
test -n "$ac_ct_CC" && break
5038
if test "x$ac_ct_CC" = x; then
5041
case $cross_compiling:$ac_tool_warned in
5043
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5044
whose name does not start with the host triplet. If you think this
5045
configuration is useful to you, please write to autoconf@gnu.org." >&5
5046
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5047
whose name does not start with the host triplet. If you think this
5048
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5049
ac_tool_warned=yes ;;
5058
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5059
See \`config.log' for more details." >&5
5060
echo "$as_me: error: no acceptable C compiler found in \$PATH
5061
See \`config.log' for more details." >&2;}
5062
{ (exit 1); exit 1; }; }
5064
# Provide some information about the compiler.
5065
echo "$as_me:$LINENO: checking for C compiler version" >&5
5066
ac_compiler=`set X $ac_compile; echo $2`
5067
{ (ac_try="$ac_compiler --version >&5"
5069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070
*) ac_try_echo=$ac_try;;
5072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073
(eval "$ac_compiler --version >&5") 2>&5
5075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076
(exit $ac_status); }
5077
{ (ac_try="$ac_compiler -v >&5"
5079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080
*) ac_try_echo=$ac_try;;
5082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083
(eval "$ac_compiler -v >&5") 2>&5
5085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086
(exit $ac_status); }
5087
{ (ac_try="$ac_compiler -V >&5"
5089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090
*) ac_try_echo=$ac_try;;
5092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093
(eval "$ac_compiler -V >&5") 2>&5
5095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); }
5098
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5099
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5100
if test "${ac_cv_c_compiler_gnu+set}" = set; then
5101
echo $ECHO_N "(cached) $ECHO_C" >&6
5103
cat >conftest.$ac_ext <<_ACEOF
5106
cat confdefs.h >>conftest.$ac_ext
5107
cat >>conftest.$ac_ext <<_ACEOF
5108
/* end confdefs.h. */
5121
rm -f conftest.$ac_objext
5122
if { (ac_try="$ac_compile"
5124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125
*) ac_try_echo=$ac_try;;
5127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128
(eval "$ac_compile") 2>conftest.er1
5130
grep -v '^ *+' conftest.er1 >conftest.err
5132
cat conftest.err >&5
5133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
(exit $ac_status); } && {
5135
test -z "$ac_c_werror_flag" ||
5136
test ! -s conftest.err
5137
} && test -s conftest.$ac_objext; then
5140
echo "$as_me: failed program was:" >&5
5141
sed 's/^/| /' conftest.$ac_ext >&5
5146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5150
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5151
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5152
GCC=`test $ac_compiler_gnu = yes && echo yes`
5153
ac_test_CFLAGS=${CFLAGS+set}
5154
ac_save_CFLAGS=$CFLAGS
5155
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5156
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5157
if test "${ac_cv_prog_cc_g+set}" = set; then
5158
echo $ECHO_N "(cached) $ECHO_C" >&6
5160
ac_save_c_werror_flag=$ac_c_werror_flag
5161
ac_c_werror_flag=yes
5164
cat >conftest.$ac_ext <<_ACEOF
5167
cat confdefs.h >>conftest.$ac_ext
5168
cat >>conftest.$ac_ext <<_ACEOF
5169
/* end confdefs.h. */
5179
rm -f conftest.$ac_objext
5180
if { (ac_try="$ac_compile"
5182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183
*) ac_try_echo=$ac_try;;
5185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186
(eval "$ac_compile") 2>conftest.er1
5188
grep -v '^ *+' conftest.er1 >conftest.err
5190
cat conftest.err >&5
5191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192
(exit $ac_status); } && {
5193
test -z "$ac_c_werror_flag" ||
5194
test ! -s conftest.err
5195
} && test -s conftest.$ac_objext; then
5198
echo "$as_me: failed program was:" >&5
5199
sed 's/^/| /' conftest.$ac_ext >&5
5202
cat >conftest.$ac_ext <<_ACEOF
5205
cat confdefs.h >>conftest.$ac_ext
5206
cat >>conftest.$ac_ext <<_ACEOF
5207
/* end confdefs.h. */
5217
rm -f conftest.$ac_objext
5218
if { (ac_try="$ac_compile"
5220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221
*) ac_try_echo=$ac_try;;
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224
(eval "$ac_compile") 2>conftest.er1
5226
grep -v '^ *+' conftest.er1 >conftest.err
5228
cat conftest.err >&5
5229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230
(exit $ac_status); } && {
5231
test -z "$ac_c_werror_flag" ||
5232
test ! -s conftest.err
5233
} && test -s conftest.$ac_objext; then
5236
echo "$as_me: failed program was:" >&5
5237
sed 's/^/| /' conftest.$ac_ext >&5
5239
ac_c_werror_flag=$ac_save_c_werror_flag
5241
cat >conftest.$ac_ext <<_ACEOF
5244
cat confdefs.h >>conftest.$ac_ext
5245
cat >>conftest.$ac_ext <<_ACEOF
5246
/* end confdefs.h. */
5256
rm -f conftest.$ac_objext
5257
if { (ac_try="$ac_compile"
5259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260
*) ac_try_echo=$ac_try;;
5262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263
(eval "$ac_compile") 2>conftest.er1
5265
grep -v '^ *+' conftest.er1 >conftest.err
5267
cat conftest.err >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); } && {
5270
test -z "$ac_c_werror_flag" ||
5271
test ! -s conftest.err
5272
} && test -s conftest.$ac_objext; then
5275
echo "$as_me: failed program was:" >&5
5276
sed 's/^/| /' conftest.$ac_ext >&5
5281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288
ac_c_werror_flag=$ac_save_c_werror_flag
5290
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5291
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5292
if test "$ac_test_CFLAGS" = set; then
5293
CFLAGS=$ac_save_CFLAGS
5294
elif test $ac_cv_prog_cc_g = yes; then
5295
if test "$GCC" = yes; then
5301
if test "$GCC" = yes; then
5307
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5308
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5309
if test "${ac_cv_prog_cc_c89+set}" = set; then
5310
echo $ECHO_N "(cached) $ECHO_C" >&6
5312
ac_cv_prog_cc_c89=no
5314
cat >conftest.$ac_ext <<_ACEOF
5317
cat confdefs.h >>conftest.$ac_ext
5318
cat >>conftest.$ac_ext <<_ACEOF
5319
/* end confdefs.h. */
5322
#include <sys/types.h>
5323
#include <sys/stat.h>
5324
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5325
struct buf { int x; };
5326
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5327
static char *e (p, i)
5333
static char *f (char * (*g) (char **, int), char **p, ...)
5338
s = g (p, va_arg (v,int));
5343
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5344
function prototypes and stuff, but not '\xHH' hex character constants.
5345
These don't provoke an error unfortunately, instead are silently treated
5346
as 'x'. The following induces an error, until -std is added to get
5347
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5348
array size at least. It's necessary to write '\x00'==0 to get something
5349
that's true only with -std. */
5350
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5352
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5353
inside strings and character constants. */
5355
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5357
int test (int i, double x);
5358
struct s1 {int (*f) (int a);};
5359
struct s2 {int (*f) (double a);};
5360
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5366
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5371
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5372
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5374
CC="$ac_save_CC $ac_arg"
5375
rm -f conftest.$ac_objext
5376
if { (ac_try="$ac_compile"
5378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379
*) ac_try_echo=$ac_try;;
5381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382
(eval "$ac_compile") 2>conftest.er1
5384
grep -v '^ *+' conftest.er1 >conftest.err
5386
cat conftest.err >&5
5387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388
(exit $ac_status); } && {
5389
test -z "$ac_c_werror_flag" ||
5390
test ! -s conftest.err
5391
} && test -s conftest.$ac_objext; then
5392
ac_cv_prog_cc_c89=$ac_arg
5394
echo "$as_me: failed program was:" >&5
5395
sed 's/^/| /' conftest.$ac_ext >&5
5400
rm -f core conftest.err conftest.$ac_objext
5401
test "x$ac_cv_prog_cc_c89" != "xno" && break
5403
rm -f conftest.$ac_ext
5408
case "x$ac_cv_prog_cc_c89" in
5410
{ echo "$as_me:$LINENO: result: none needed" >&5
5411
echo "${ECHO_T}none needed" >&6; } ;;
5413
{ echo "$as_me:$LINENO: result: unsupported" >&5
5414
echo "${ECHO_T}unsupported" >&6; } ;;
5416
CC="$CC $ac_cv_prog_cc_c89"
5417
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5418
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5423
ac_cpp='$CPP $CPPFLAGS'
5424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428
depcc="$CC" am_compiler_list=
5430
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5431
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5432
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5433
echo $ECHO_N "(cached) $ECHO_C" >&6
5435
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5436
# We make a subdir and do the tests there. Otherwise we can end up
5437
# making bogus files that we don't know about and never remove. For
5438
# instance it was reported that on HP-UX the gcc test will end up
5439
# making a dummy file named `D' -- because `-MD' means `put the output
5442
# Copy depcomp to subdir because otherwise we won't find it if we're
5443
# using a relative directory.
5444
cp "$am_depcomp" conftest.dir
5446
# We will build objects and dependencies in a subdirectory because
5447
# it helps to detect inapplicable dependency modes. For instance
5448
# both Tru64's cc and ICC support -MD to output dependencies as a
5449
# side effect of compilation, but ICC will put the dependencies in
5450
# the current directory while Tru64 will put them in the object
5454
am_cv_CC_dependencies_compiler_type=none
5455
if test "$am_compiler_list" = ""; then
5456
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5458
for depmode in $am_compiler_list; do
5459
# Setup a source with many dependencies, because some compilers
5460
# like to wrap large dependency lists on column 80 (with \), and
5461
# we should not choose a depcomp mode which is confused by this.
5463
# We need to recreate these files for each test, as the compiler may
5464
# overwrite some of them when testing with obscure command lines.
5465
# This happens at least with the AIX C compiler.
5467
for i in 1 2 3 4 5 6; do
5468
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5469
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5470
# Solaris 8's {/usr,}/bin/sh.
5471
touch sub/conftst$i.h
5473
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5477
# after this tag, mechanisms are not by side-effect, so they'll
5478
# only be used when explicitly requested
5479
if test "x$enable_dependency_tracking" = xyes; then
5487
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5488
# mode. It turns out that the SunPro C++ compiler does not properly
5489
# handle `-M -o', and we need to detect this.
5490
if depmode=$depmode \
5491
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5492
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5493
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5494
>/dev/null 2>conftest.err &&
5495
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5496
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5497
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5498
# icc doesn't choke on unknown options, it will just issue warnings
5499
# or remarks (even with -Werror). So we grep stderr for any message
5500
# that says an option was ignored or not supported.
5501
# When given -MP, icc 7.0 and 7.1 complain thusly:
5502
# icc: Command line warning: ignoring option '-M'; no argument required
5503
# The diagnosis changed in icc 8.0:
5504
# icc: Command line remark: option '-MP' not supported
5505
if (grep 'ignoring option' conftest.err ||
5506
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5507
am_cv_CC_dependencies_compiler_type=$depmode
5516
am_cv_CC_dependencies_compiler_type=none
5520
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5521
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5522
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5527
test "x$enable_dependency_tracking" != xno \
5528
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5530
am__fastdepCC_FALSE='#'
5532
am__fastdepCC_TRUE='#'
5533
am__fastdepCC_FALSE=
5538
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5541
ac_cpp='$CPP $CPPFLAGS'
5542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5546
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5547
# On Suns, sometimes $CPP names a directory.
5548
if test -n "$CPP" && test -d "$CPP"; then
5551
if test -z "$CPP"; then
5552
if test "${ac_cv_prog_CPP+set}" = set; then
5553
echo $ECHO_N "(cached) $ECHO_C" >&6
5555
# Double quotes because CPP needs to be expanded
5556
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5559
for ac_c_preproc_warn_flag in '' yes
5561
# Use a header file that comes with gcc, so configuring glibc
5562
# with a fresh cross-compiler works.
5563
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5564
# <limits.h> exists even on freestanding compilers.
5565
# On the NeXT, cc -E runs the code through the compiler's parser,
5566
# not just through cpp. "Syntax error" is here to catch this case.
5567
cat >conftest.$ac_ext <<_ACEOF
5570
cat confdefs.h >>conftest.$ac_ext
5571
cat >>conftest.$ac_ext <<_ACEOF
5572
/* end confdefs.h. */
5574
# include <limits.h>
5576
# include <assert.h>
5580
if { (ac_try="$ac_cpp conftest.$ac_ext"
5582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583
*) ac_try_echo=$ac_try;;
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5588
grep -v '^ *+' conftest.er1 >conftest.err
5590
cat conftest.err >&5
5591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592
(exit $ac_status); } >/dev/null && {
5593
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5594
test ! -s conftest.err
5598
echo "$as_me: failed program was:" >&5
5599
sed 's/^/| /' conftest.$ac_ext >&5
5601
# Broken: fails on valid input.
5605
rm -f conftest.err conftest.$ac_ext
5607
# OK, works on sane cases. Now check whether nonexistent headers
5608
# can be detected and how.
5609
cat >conftest.$ac_ext <<_ACEOF
5612
cat confdefs.h >>conftest.$ac_ext
5613
cat >>conftest.$ac_ext <<_ACEOF
5614
/* end confdefs.h. */
5615
#include <ac_nonexistent.h>
5617
if { (ac_try="$ac_cpp conftest.$ac_ext"
5619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620
*) ac_try_echo=$ac_try;;
5622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5625
grep -v '^ *+' conftest.er1 >conftest.err
5627
cat conftest.err >&5
5628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629
(exit $ac_status); } >/dev/null && {
5630
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5631
test ! -s conftest.err
5633
# Broken: success on invalid input.
5636
echo "$as_me: failed program was:" >&5
5637
sed 's/^/| /' conftest.$ac_ext >&5
5639
# Passes both tests.
5644
rm -f conftest.err conftest.$ac_ext
5647
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5648
rm -f conftest.err conftest.$ac_ext
5649
if $ac_preproc_ok; then
5661
{ echo "$as_me:$LINENO: result: $CPP" >&5
5662
echo "${ECHO_T}$CPP" >&6; }
5664
for ac_c_preproc_warn_flag in '' yes
5666
# Use a header file that comes with gcc, so configuring glibc
5667
# with a fresh cross-compiler works.
5668
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669
# <limits.h> exists even on freestanding compilers.
5670
# On the NeXT, cc -E runs the code through the compiler's parser,
5671
# not just through cpp. "Syntax error" is here to catch this case.
5672
cat >conftest.$ac_ext <<_ACEOF
5675
cat confdefs.h >>conftest.$ac_ext
5676
cat >>conftest.$ac_ext <<_ACEOF
5677
/* end confdefs.h. */
5679
# include <limits.h>
5681
# include <assert.h>
5685
if { (ac_try="$ac_cpp conftest.$ac_ext"
5687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688
*) ac_try_echo=$ac_try;;
5690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5693
grep -v '^ *+' conftest.er1 >conftest.err
5695
cat conftest.err >&5
5696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697
(exit $ac_status); } >/dev/null && {
5698
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5699
test ! -s conftest.err
5703
echo "$as_me: failed program was:" >&5
5704
sed 's/^/| /' conftest.$ac_ext >&5
5706
# Broken: fails on valid input.
5710
rm -f conftest.err conftest.$ac_ext
5712
# OK, works on sane cases. Now check whether nonexistent headers
5713
# can be detected and how.
5714
cat >conftest.$ac_ext <<_ACEOF
5717
cat confdefs.h >>conftest.$ac_ext
5718
cat >>conftest.$ac_ext <<_ACEOF
5719
/* end confdefs.h. */
5720
#include <ac_nonexistent.h>
5722
if { (ac_try="$ac_cpp conftest.$ac_ext"
5724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725
*) ac_try_echo=$ac_try;;
5727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730
grep -v '^ *+' conftest.er1 >conftest.err
5732
cat conftest.err >&5
5733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
(exit $ac_status); } >/dev/null && {
5735
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5736
test ! -s conftest.err
5738
# Broken: success on invalid input.
5741
echo "$as_me: failed program was:" >&5
5742
sed 's/^/| /' conftest.$ac_ext >&5
5744
# Passes both tests.
5749
rm -f conftest.err conftest.$ac_ext
5752
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753
rm -f conftest.err conftest.$ac_ext
5754
if $ac_preproc_ok; then
5757
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5758
See \`config.log' for more details." >&5
5759
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5760
See \`config.log' for more details." >&2;}
5761
{ (exit 1); exit 1; }; }
5765
ac_cpp='$CPP $CPPFLAGS'
5766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5772
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5773
if test "${ac_cv_path_GREP+set}" = set; then
5774
echo $ECHO_N "(cached) $ECHO_C" >&6
5776
# Extract the first word of "grep ggrep" to use in msg output
5777
if test -z "$GREP"; then
5778
set dummy grep ggrep; ac_prog_name=$2
5779
if test "${ac_cv_path_GREP+set}" = set; then
5780
echo $ECHO_N "(cached) $ECHO_C" >&6
5782
ac_path_GREP_found=false
5783
# Loop through the user's path and test for each of PROGNAME-LIST
5784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5788
test -z "$as_dir" && as_dir=.
5789
for ac_prog in grep ggrep; do
5790
for ac_exec_ext in '' $ac_executable_extensions; do
5791
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5792
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5793
# Check for GNU ac_path_GREP and select it if it is found.
5794
# Check for GNU $ac_path_GREP
5795
case `"$ac_path_GREP" --version 2>&1` in
5797
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5800
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5803
cat "conftest.in" "conftest.in" >"conftest.tmp"
5804
mv "conftest.tmp" "conftest.in"
5805
cp "conftest.in" "conftest.nl"
5806
echo 'GREP' >> "conftest.nl"
5807
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5808
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5809
ac_count=`expr $ac_count + 1`
5810
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5811
# Best one so far, save it but keep looking for a better one
5812
ac_cv_path_GREP="$ac_path_GREP"
5813
ac_path_GREP_max=$ac_count
5815
# 10*(2^10) chars as input seems more than enough
5816
test $ac_count -gt 10 && break
5818
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822
$ac_path_GREP_found && break 3
5832
GREP="$ac_cv_path_GREP"
5833
if test -z "$GREP"; then
5834
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5835
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5836
{ (exit 1); exit 1; }; }
5840
ac_cv_path_GREP=$GREP
5845
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5846
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5847
GREP="$ac_cv_path_GREP"
5850
{ echo "$as_me:$LINENO: checking for egrep" >&5
5851
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5852
if test "${ac_cv_path_EGREP+set}" = set; then
5853
echo $ECHO_N "(cached) $ECHO_C" >&6
5855
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5856
then ac_cv_path_EGREP="$GREP -E"
5858
# Extract the first word of "egrep" to use in msg output
5859
if test -z "$EGREP"; then
5860
set dummy egrep; ac_prog_name=$2
5861
if test "${ac_cv_path_EGREP+set}" = set; then
5862
echo $ECHO_N "(cached) $ECHO_C" >&6
5864
ac_path_EGREP_found=false
5865
# Loop through the user's path and test for each of PROGNAME-LIST
5866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5870
test -z "$as_dir" && as_dir=.
5871
for ac_prog in egrep; do
5872
for ac_exec_ext in '' $ac_executable_extensions; do
5873
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5874
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5875
# Check for GNU ac_path_EGREP and select it if it is found.
5876
# Check for GNU $ac_path_EGREP
5877
case `"$ac_path_EGREP" --version 2>&1` in
5879
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5882
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5885
cat "conftest.in" "conftest.in" >"conftest.tmp"
5886
mv "conftest.tmp" "conftest.in"
5887
cp "conftest.in" "conftest.nl"
5888
echo 'EGREP' >> "conftest.nl"
5889
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891
ac_count=`expr $ac_count + 1`
5892
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5893
# Best one so far, save it but keep looking for a better one
5894
ac_cv_path_EGREP="$ac_path_EGREP"
5895
ac_path_EGREP_max=$ac_count
5897
# 10*(2^10) chars as input seems more than enough
5898
test $ac_count -gt 10 && break
5900
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904
$ac_path_EGREP_found && break 3
5914
EGREP="$ac_cv_path_EGREP"
5915
if test -z "$EGREP"; then
5916
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5917
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5918
{ (exit 1); exit 1; }; }
5922
ac_cv_path_EGREP=$EGREP
5928
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5929
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5930
EGREP="$ac_cv_path_EGREP"
5933
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5934
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5935
if test "${ac_cv_header_stdc+set}" = set; then
5936
echo $ECHO_N "(cached) $ECHO_C" >&6
5938
cat >conftest.$ac_ext <<_ACEOF
5941
cat confdefs.h >>conftest.$ac_ext
5942
cat >>conftest.$ac_ext <<_ACEOF
5943
/* end confdefs.h. */
5957
rm -f conftest.$ac_objext
5958
if { (ac_try="$ac_compile"
5960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961
*) ac_try_echo=$ac_try;;
5963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964
(eval "$ac_compile") 2>conftest.er1
5966
grep -v '^ *+' conftest.er1 >conftest.err
5968
cat conftest.err >&5
5969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970
(exit $ac_status); } && {
5971
test -z "$ac_c_werror_flag" ||
5972
test ! -s conftest.err
5973
} && test -s conftest.$ac_objext; then
5974
ac_cv_header_stdc=yes
5976
echo "$as_me: failed program was:" >&5
5977
sed 's/^/| /' conftest.$ac_ext >&5
5979
ac_cv_header_stdc=no
5982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984
if test $ac_cv_header_stdc = yes; then
5985
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5986
cat >conftest.$ac_ext <<_ACEOF
5989
cat confdefs.h >>conftest.$ac_ext
5990
cat >>conftest.$ac_ext <<_ACEOF
5991
/* end confdefs.h. */
5995
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996
$EGREP "memchr" >/dev/null 2>&1; then
5999
ac_cv_header_stdc=no
6005
if test $ac_cv_header_stdc = yes; then
6006
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6007
cat >conftest.$ac_ext <<_ACEOF
6010
cat confdefs.h >>conftest.$ac_ext
6011
cat >>conftest.$ac_ext <<_ACEOF
6012
/* end confdefs.h. */
6016
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017
$EGREP "free" >/dev/null 2>&1; then
6020
ac_cv_header_stdc=no
6026
if test $ac_cv_header_stdc = yes; then
6027
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6028
if test "$cross_compiling" = yes; then
6031
cat >conftest.$ac_ext <<_ACEOF
6034
cat confdefs.h >>conftest.$ac_ext
6035
cat >>conftest.$ac_ext <<_ACEOF
6036
/* end confdefs.h. */
6039
#if ((' ' & 0x0FF) == 0x020)
6040
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6041
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043
# define ISLOWER(c) \
6044
(('a' <= (c) && (c) <= 'i') \
6045
|| ('j' <= (c) && (c) <= 'r') \
6046
|| ('s' <= (c) && (c) <= 'z'))
6047
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6050
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6055
for (i = 0; i < 256; i++)
6056
if (XOR (islower (i), ISLOWER (i))
6057
|| toupper (i) != TOUPPER (i))
6062
rm -f conftest$ac_exeext
6063
if { (ac_try="$ac_link"
6065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066
*) ac_try_echo=$ac_try;;
6068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069
(eval "$ac_link") 2>&5
6071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6073
{ (case "(($ac_try" in
6074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075
*) ac_try_echo=$ac_try;;
6077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078
(eval "$ac_try") 2>&5
6080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081
(exit $ac_status); }; }; then
6084
echo "$as_me: program exited with status $ac_status" >&5
6085
echo "$as_me: failed program was:" >&5
6086
sed 's/^/| /' conftest.$ac_ext >&5
6089
ac_cv_header_stdc=no
6091
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6097
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6098
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6099
if test $ac_cv_header_stdc = yes; then
6101
cat >>confdefs.h <<\_ACEOF
6102
#define STDC_HEADERS 1
6107
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6108
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6109
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6110
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2819
6111
echo $ECHO_N "(cached) $ECHO_C" >&6
2821
6113
cat >conftest.make <<\_ACEOF
2823
@echo 'ac_maketemp="$(MAKE)"'
6116
@echo '@@@%%%=$(MAKE)=@@@%%%'
2825
6118
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2826
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2827
if test -n "$ac_maketemp"; then
2828
eval ac_cv_prog_make_${ac_make}_set=yes
2830
eval ac_cv_prog_make_${ac_make}_set=no
6119
case `${MAKE-make} -f conftest.make 2>/dev/null` in
6121
eval ac_cv_prog_make_${ac_make}_set=yes;;
6123
eval ac_cv_prog_make_${ac_make}_set=no;;
2832
6125
rm -f conftest.make
2834
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2835
echo "$as_me:$LINENO: result: yes" >&5
2836
echo "${ECHO_T}yes" >&6
6127
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6128
{ echo "$as_me:$LINENO: result: yes" >&5
6129
echo "${ECHO_T}yes" >&6; }
2839
echo "$as_me:$LINENO: result: no" >&5
2840
echo "${ECHO_T}no" >&6
6132
{ echo "$as_me:$LINENO: result: no" >&5
6133
echo "${ECHO_T}no" >&6; }
2841
6134
SET_MAKE="MAKE=${MAKE-make}"
2844
6137
if test -n "$ac_tool_prefix"; then
2845
6138
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2846
6139
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2847
echo "$as_me:$LINENO: checking for $ac_word" >&5
2848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2849
6142
if test "${ac_cv_prog_RANLIB+set}" = set; then
2850
6143
echo $ECHO_N "(cached) $ECHO_C" >&6
4358
# Checks for libraries.
4360
# find individual libraries for static linking from --with-static-libs param
4361
# first prepend a _ so we can test even if variable is empty
4362
ac_cv_link_static=_${ac_cv_link_static}
7631
#########################################################
7632
#########################################################
7634
#SCROLLKEEPER##############################################
7635
#########################################################
7636
SCROLLKEEPER_BUILD_REQUIRED=0.3.5
7639
# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
7640
set dummy scrollkeeper-config; ac_word=$2
7641
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643
if test "${ac_cv_path_SK_CONFIG+set}" = set; then
7644
echo $ECHO_N "(cached) $ECHO_C" >&6
7648
ac_cv_path_SK_CONFIG="$SK_CONFIG" # Let the user override the test with a path.
7651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655
test -z "$as_dir" && as_dir=.
7656
for ac_exec_ext in '' $ac_executable_extensions; do
7657
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658
ac_cv_path_SK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7659
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666
test -z "$ac_cv_path_SK_CONFIG" && ac_cv_path_SK_CONFIG="no"
7670
SK_CONFIG=$ac_cv_path_SK_CONFIG
7671
if test -n "$SK_CONFIG"; then
7672
{ echo "$as_me:$LINENO: result: $SK_CONFIG" >&5
7673
echo "${ECHO_T}$SK_CONFIG" >&6; }
7675
{ echo "$as_me:$LINENO: result: no" >&5
7676
echo "${ECHO_T}no" >&6; }
7680
if test x$SK_CONFIG = xno; then
7681
{ { echo "$as_me:$LINENO: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&5
7682
echo "$as_me: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&2;}
7683
{ (exit 1); exit 1; }; }
7686
# here follows a hack to get the docs installed in a separate, recursive install-doc target
7688
#########################################################
7689
#########################################################
7690
# Extract the first word of "docbook2x-man", so it can be a program name with args.
7691
set dummy docbook2x-man; ac_word=$2
7692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694
if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then
7695
echo $ECHO_N "(cached) $ECHO_C" >&6
7697
case $DOCBOOK2X_MAN in
7699
ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
7702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706
test -z "$as_dir" && as_dir=.
7707
for ac_exec_ext in '' $ac_executable_extensions; do
7708
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709
ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
7710
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717
test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no"
7721
DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
7722
if test -n "$DOCBOOK2X_MAN"; then
7723
{ echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5
7724
echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; }
7726
{ echo "$as_me:$LINENO: result: no" >&5
7727
echo "${ECHO_T}no" >&6; }
7731
if test x$DOCBOOK2X_MAN = xno; then
7732
{ echo "$as_me:$LINENO: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&5
7733
echo "$as_me: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&6;}
7734
unset ac_cv_path_DOCBOOK2X_MAN
7735
# Extract the first word of "db2x_docbook2man", so it can be a program name with args.
7736
set dummy db2x_docbook2man; ac_word=$2
7737
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739
if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then
7740
echo $ECHO_N "(cached) $ECHO_C" >&6
7742
case $DOCBOOK2X_MAN in
7744
ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
7747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751
test -z "$as_dir" && as_dir=.
7752
for ac_exec_ext in '' $ac_executable_extensions; do
7753
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754
ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
7755
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762
test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no"
7766
DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
7767
if test -n "$DOCBOOK2X_MAN"; then
7768
{ echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5
7769
echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; }
7771
{ echo "$as_me:$LINENO: result: no" >&5
7772
echo "${ECHO_T}no" >&6; }
7777
if test x$DOCBOOK2X_MAN = xno; then
7778
{ echo "$as_me:$LINENO: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&5
7779
echo "$as_me: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&6;}
7782
# Extract the first word of "xml2po", so it can be a program name with args.
7783
set dummy xml2po; ac_word=$2
7784
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786
if test "${ac_cv_path_XML2PO+set}" = set; then
7787
echo $ECHO_N "(cached) $ECHO_C" >&6
7791
ac_cv_path_XML2PO="$XML2PO" # Let the user override the test with a path.
7794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798
test -z "$as_dir" && as_dir=.
7799
for ac_exec_ext in '' $ac_executable_extensions; do
7800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801
ac_cv_path_XML2PO="$as_dir/$ac_word$ac_exec_ext"
7802
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809
test -z "$ac_cv_path_XML2PO" && ac_cv_path_XML2PO="no"
7813
XML2PO=$ac_cv_path_XML2PO
7814
if test -n "$XML2PO"; then
7815
{ echo "$as_me:$LINENO: result: $XML2PO" >&5
7816
echo "${ECHO_T}$XML2PO" >&6; }
7818
{ echo "$as_me:$LINENO: result: no" >&5
7819
echo "${ECHO_T}no" >&6; }
7823
if test x$XML2PO = xno; then
7824
{ echo "$as_me:$LINENO: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&5
7825
echo "$as_me: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&6;}
7827
#MANPAGES###############################################
7828
#########################################################
7830
#########################################################
7831
#########################################################
7833
#########################################################
7834
########################################################
7835
#i18n####################################################
7836
#########################################################
7837
GETTEXT_PACKAGE=xvidcap
7840
cat >>confdefs.h <<_ACEOF
7841
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7845
ALL_LINGUAS="de en it es"
7846
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7856
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7857
inttypes.h stdint.h unistd.h
7859
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7861
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7862
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7863
echo $ECHO_N "(cached) $ECHO_C" >&6
7865
cat >conftest.$ac_ext <<_ACEOF
7868
cat confdefs.h >>conftest.$ac_ext
7869
cat >>conftest.$ac_ext <<_ACEOF
7870
/* end confdefs.h. */
7871
$ac_includes_default
7873
#include <$ac_header>
7875
rm -f conftest.$ac_objext
7876
if { (ac_try="$ac_compile"
7878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879
*) ac_try_echo=$ac_try;;
7881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882
(eval "$ac_compile") 2>conftest.er1
7884
grep -v '^ *+' conftest.er1 >conftest.err
7886
cat conftest.err >&5
7887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888
(exit $ac_status); } && {
7889
test -z "$ac_c_werror_flag" ||
7890
test ! -s conftest.err
7891
} && test -s conftest.$ac_objext; then
7892
eval "$as_ac_Header=yes"
7894
echo "$as_me: failed program was:" >&5
7895
sed 's/^/| /' conftest.$ac_ext >&5
7897
eval "$as_ac_Header=no"
7900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902
ac_res=`eval echo '${'$as_ac_Header'}'`
7903
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7904
echo "${ECHO_T}$ac_res" >&6; }
7905
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906
cat >>confdefs.h <<_ACEOF
7907
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7915
# Make sure we can run config.sub.
7916
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7917
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7918
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7919
{ (exit 1); exit 1; }; }
7921
{ echo "$as_me:$LINENO: checking build system type" >&5
7922
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7923
if test "${ac_cv_build+set}" = set; then
7924
echo $ECHO_N "(cached) $ECHO_C" >&6
7926
ac_build_alias=$build_alias
7927
test "x$ac_build_alias" = x &&
7928
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7929
test "x$ac_build_alias" = x &&
7930
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7931
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7932
{ (exit 1); exit 1; }; }
7933
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7934
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7935
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7936
{ (exit 1); exit 1; }; }
7939
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7940
echo "${ECHO_T}$ac_cv_build" >&6; }
7941
case $ac_cv_build in
7943
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7944
echo "$as_me: error: invalid value of canonical build" >&2;}
7945
{ (exit 1); exit 1; }; };;
7948
ac_save_IFS=$IFS; IFS='-'
7954
# Remember, the first character of IFS is used to create $*,
7955
# except with old shells:
7958
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7961
{ echo "$as_me:$LINENO: checking host system type" >&5
7962
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7963
if test "${ac_cv_host+set}" = set; then
7964
echo $ECHO_N "(cached) $ECHO_C" >&6
7966
if test "x$host_alias" = x; then
7967
ac_cv_host=$ac_cv_build
7969
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7970
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7971
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7972
{ (exit 1); exit 1; }; }
7976
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7977
echo "${ECHO_T}$ac_cv_host" >&6; }
7980
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7981
echo "$as_me: error: invalid value of canonical host" >&2;}
7982
{ (exit 1); exit 1; }; };;
7985
ac_save_IFS=$IFS; IFS='-'
7991
# Remember, the first character of IFS is used to create $*,
7992
# except with old shells:
7995
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8000
for ac_header in locale.h
8002
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8003
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8005
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8006
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8007
echo $ECHO_N "(cached) $ECHO_C" >&6
8009
ac_res=`eval echo '${'$as_ac_Header'}'`
8010
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8011
echo "${ECHO_T}$ac_res" >&6; }
8013
# Is the header compilable?
8014
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8015
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8016
cat >conftest.$ac_ext <<_ACEOF
8019
cat confdefs.h >>conftest.$ac_ext
8020
cat >>conftest.$ac_ext <<_ACEOF
8021
/* end confdefs.h. */
8022
$ac_includes_default
8023
#include <$ac_header>
8025
rm -f conftest.$ac_objext
8026
if { (ac_try="$ac_compile"
8028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029
*) ac_try_echo=$ac_try;;
8031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032
(eval "$ac_compile") 2>conftest.er1
8034
grep -v '^ *+' conftest.er1 >conftest.err
8036
cat conftest.err >&5
8037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038
(exit $ac_status); } && {
8039
test -z "$ac_c_werror_flag" ||
8040
test ! -s conftest.err
8041
} && test -s conftest.$ac_objext; then
8042
ac_header_compiler=yes
8044
echo "$as_me: failed program was:" >&5
8045
sed 's/^/| /' conftest.$ac_ext >&5
8047
ac_header_compiler=no
8050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8052
echo "${ECHO_T}$ac_header_compiler" >&6; }
8054
# Is the header present?
8055
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8056
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8057
cat >conftest.$ac_ext <<_ACEOF
8060
cat confdefs.h >>conftest.$ac_ext
8061
cat >>conftest.$ac_ext <<_ACEOF
8062
/* end confdefs.h. */
8063
#include <$ac_header>
8065
if { (ac_try="$ac_cpp conftest.$ac_ext"
8067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068
*) ac_try_echo=$ac_try;;
8070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8073
grep -v '^ *+' conftest.er1 >conftest.err
8075
cat conftest.err >&5
8076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077
(exit $ac_status); } >/dev/null && {
8078
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8079
test ! -s conftest.err
8081
ac_header_preproc=yes
8083
echo "$as_me: failed program was:" >&5
8084
sed 's/^/| /' conftest.$ac_ext >&5
8086
ac_header_preproc=no
8089
rm -f conftest.err conftest.$ac_ext
8090
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8091
echo "${ECHO_T}$ac_header_preproc" >&6; }
8093
# So? What about this header?
8094
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8096
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8097
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8098
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8099
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8100
ac_header_preproc=yes
8103
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8104
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8105
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8106
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8107
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8108
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8109
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8110
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8111
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8112
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8113
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8114
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8118
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8119
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8120
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8121
echo $ECHO_N "(cached) $ECHO_C" >&6
8123
eval "$as_ac_Header=\$ac_header_preproc"
8125
ac_res=`eval echo '${'$as_ac_Header'}'`
8126
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8127
echo "${ECHO_T}$ac_res" >&6; }
8130
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8131
cat >>confdefs.h <<_ACEOF
8132
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139
if test $ac_cv_header_locale_h = yes; then
8140
{ echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8141
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8142
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8143
echo $ECHO_N "(cached) $ECHO_C" >&6
8145
cat >conftest.$ac_ext <<_ACEOF
8148
cat confdefs.h >>conftest.$ac_ext
8149
cat >>conftest.$ac_ext <<_ACEOF
8150
/* end confdefs.h. */
8160
rm -f conftest.$ac_objext conftest$ac_exeext
8161
if { (ac_try="$ac_link"
8163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164
*) ac_try_echo=$ac_try;;
8166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167
(eval "$ac_link") 2>conftest.er1
8169
grep -v '^ *+' conftest.er1 >conftest.err
8171
cat conftest.err >&5
8172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
(exit $ac_status); } && {
8174
test -z "$ac_c_werror_flag" ||
8175
test ! -s conftest.err
8176
} && test -s conftest$ac_exeext &&
8177
$as_test_x conftest$ac_exeext; then
8178
am_cv_val_LC_MESSAGES=yes
8180
echo "$as_me: failed program was:" >&5
8181
sed 's/^/| /' conftest.$ac_ext >&5
8183
am_cv_val_LC_MESSAGES=no
8186
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8187
conftest$ac_exeext conftest.$ac_ext
8189
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8190
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8191
if test $am_cv_val_LC_MESSAGES = yes; then
8193
cat >>confdefs.h <<\_ACEOF
8194
#define HAVE_LC_MESSAGES 1
8202
gt_cv_have_gettext=no
8208
if test "${ac_cv_header_libintl_h+set}" = set; then
8209
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
8210
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8211
if test "${ac_cv_header_libintl_h+set}" = set; then
8212
echo $ECHO_N "(cached) $ECHO_C" >&6
8214
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8215
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8217
# Is the header compilable?
8218
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
8219
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8220
cat >conftest.$ac_ext <<_ACEOF
8223
cat confdefs.h >>conftest.$ac_ext
8224
cat >>conftest.$ac_ext <<_ACEOF
8225
/* end confdefs.h. */
8226
$ac_includes_default
8227
#include <libintl.h>
8229
rm -f conftest.$ac_objext
8230
if { (ac_try="$ac_compile"
8232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233
*) ac_try_echo=$ac_try;;
8235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236
(eval "$ac_compile") 2>conftest.er1
8238
grep -v '^ *+' conftest.er1 >conftest.err
8240
cat conftest.err >&5
8241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242
(exit $ac_status); } && {
8243
test -z "$ac_c_werror_flag" ||
8244
test ! -s conftest.err
8245
} && test -s conftest.$ac_objext; then
8246
ac_header_compiler=yes
8248
echo "$as_me: failed program was:" >&5
8249
sed 's/^/| /' conftest.$ac_ext >&5
8251
ac_header_compiler=no
8254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8256
echo "${ECHO_T}$ac_header_compiler" >&6; }
8258
# Is the header present?
8259
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
8260
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8261
cat >conftest.$ac_ext <<_ACEOF
8264
cat confdefs.h >>conftest.$ac_ext
8265
cat >>conftest.$ac_ext <<_ACEOF
8266
/* end confdefs.h. */
8267
#include <libintl.h>
8269
if { (ac_try="$ac_cpp conftest.$ac_ext"
8271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272
*) ac_try_echo=$ac_try;;
8274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8277
grep -v '^ *+' conftest.er1 >conftest.err
8279
cat conftest.err >&5
8280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281
(exit $ac_status); } >/dev/null && {
8282
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8283
test ! -s conftest.err
8285
ac_header_preproc=yes
8287
echo "$as_me: failed program was:" >&5
8288
sed 's/^/| /' conftest.$ac_ext >&5
8290
ac_header_preproc=no
8293
rm -f conftest.err conftest.$ac_ext
8294
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8295
echo "${ECHO_T}$ac_header_preproc" >&6; }
8297
# So? What about this header?
8298
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8300
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8301
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8302
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8303
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8304
ac_header_preproc=yes
8307
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8308
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8309
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8310
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8311
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8312
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8313
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8314
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8315
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8316
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8317
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8318
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8322
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
8323
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8324
if test "${ac_cv_header_libintl_h+set}" = set; then
8325
echo $ECHO_N "(cached) $ECHO_C" >&6
8327
ac_cv_header_libintl_h=$ac_header_preproc
8329
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8330
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8333
if test $ac_cv_header_libintl_h = yes; then
8334
gt_cv_func_dgettext_libintl="no"
8335
libintl_extra_libs=""
8338
# First check in libc
8340
{ echo "$as_me:$LINENO: checking for ngettext in libc" >&5
8341
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
8342
if test "${gt_cv_func_ngettext_libc+set}" = set; then
8343
echo $ECHO_N "(cached) $ECHO_C" >&6
8345
cat >conftest.$ac_ext <<_ACEOF
8348
cat confdefs.h >>conftest.$ac_ext
8349
cat >>conftest.$ac_ext <<_ACEOF
8350
/* end confdefs.h. */
8352
#include <libintl.h>
8357
return !ngettext ("","", 1)
8362
rm -f conftest.$ac_objext conftest$ac_exeext
8363
if { (ac_try="$ac_link"
8365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366
*) ac_try_echo=$ac_try;;
8368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369
(eval "$ac_link") 2>conftest.er1
8371
grep -v '^ *+' conftest.er1 >conftest.err
8373
cat conftest.err >&5
8374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375
(exit $ac_status); } && {
8376
test -z "$ac_c_werror_flag" ||
8377
test ! -s conftest.err
8378
} && test -s conftest$ac_exeext &&
8379
$as_test_x conftest$ac_exeext; then
8380
gt_cv_func_ngettext_libc=yes
8382
echo "$as_me: failed program was:" >&5
8383
sed 's/^/| /' conftest.$ac_ext >&5
8385
gt_cv_func_ngettext_libc=no
8388
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8389
conftest$ac_exeext conftest.$ac_ext
8392
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
8393
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
8395
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8396
{ echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8397
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
8398
if test "${gt_cv_func_dgettext_libc+set}" = set; then
8399
echo $ECHO_N "(cached) $ECHO_C" >&6
8401
cat >conftest.$ac_ext <<_ACEOF
8404
cat confdefs.h >>conftest.$ac_ext
8405
cat >>conftest.$ac_ext <<_ACEOF
8406
/* end confdefs.h. */
8408
#include <libintl.h>
8413
return !dgettext ("","")
8418
rm -f conftest.$ac_objext conftest$ac_exeext
8419
if { (ac_try="$ac_link"
8421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422
*) ac_try_echo=$ac_try;;
8424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425
(eval "$ac_link") 2>conftest.er1
8427
grep -v '^ *+' conftest.er1 >conftest.err
8429
cat conftest.err >&5
8430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431
(exit $ac_status); } && {
8432
test -z "$ac_c_werror_flag" ||
8433
test ! -s conftest.err
8434
} && test -s conftest$ac_exeext &&
8435
$as_test_x conftest$ac_exeext; then
8436
gt_cv_func_dgettext_libc=yes
8438
echo "$as_me: failed program was:" >&5
8439
sed 's/^/| /' conftest.$ac_ext >&5
8441
gt_cv_func_dgettext_libc=no
8444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8445
conftest$ac_exeext conftest.$ac_ext
8448
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8449
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
8452
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8454
for ac_func in bind_textdomain_codeset
8456
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8457
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8458
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8459
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8460
echo $ECHO_N "(cached) $ECHO_C" >&6
8462
cat >conftest.$ac_ext <<_ACEOF
8465
cat confdefs.h >>conftest.$ac_ext
8466
cat >>conftest.$ac_ext <<_ACEOF
8467
/* end confdefs.h. */
8468
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8469
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8470
#define $ac_func innocuous_$ac_func
8472
/* System header to define __stub macros and hopefully few prototypes,
8473
which can conflict with char $ac_func (); below.
8474
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8475
<limits.h> exists even on freestanding compilers. */
8478
# include <limits.h>
8480
# include <assert.h>
8485
/* Override any GCC internal prototype to avoid an error.
8486
Use char because int might match the return type of a GCC
8487
builtin and then its argument prototype would still apply. */
8492
/* The GNU C library defines this for functions which it implements
8493
to always fail with ENOSYS. Some functions are actually named
8494
something starting with __ and the normal name is an alias. */
8495
#if defined __stub_$ac_func || defined __stub___$ac_func
8507
rm -f conftest.$ac_objext conftest$ac_exeext
8508
if { (ac_try="$ac_link"
8510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511
*) ac_try_echo=$ac_try;;
8513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514
(eval "$ac_link") 2>conftest.er1
8516
grep -v '^ *+' conftest.er1 >conftest.err
8518
cat conftest.err >&5
8519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520
(exit $ac_status); } && {
8521
test -z "$ac_c_werror_flag" ||
8522
test ! -s conftest.err
8523
} && test -s conftest$ac_exeext &&
8524
$as_test_x conftest$ac_exeext; then
8525
eval "$as_ac_var=yes"
8527
echo "$as_me: failed program was:" >&5
8528
sed 's/^/| /' conftest.$ac_ext >&5
8530
eval "$as_ac_var=no"
8533
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8534
conftest$ac_exeext conftest.$ac_ext
8536
ac_res=`eval echo '${'$as_ac_var'}'`
8537
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8538
echo "${ECHO_T}$ac_res" >&6; }
8539
if test `eval echo '${'$as_ac_var'}'` = yes; then
8540
cat >>confdefs.h <<_ACEOF
8541
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8550
# If we don't have everything we want, check in libintl
8552
if test "$gt_cv_func_dgettext_libc" != "yes" \
8553
|| test "$gt_cv_func_ngettext_libc" != "yes" \
8554
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8556
{ echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8557
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
8558
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8559
echo $ECHO_N "(cached) $ECHO_C" >&6
8561
ac_check_lib_save_LIBS=$LIBS
8563
cat >conftest.$ac_ext <<_ACEOF
8566
cat confdefs.h >>conftest.$ac_ext
8567
cat >>conftest.$ac_ext <<_ACEOF
8568
/* end confdefs.h. */
8570
/* Override any GCC internal prototype to avoid an error.
8571
Use char because int might match the return type of a GCC
8572
builtin and then its argument prototype would still apply. */
8576
char bindtextdomain ();
8580
return bindtextdomain ();
8585
rm -f conftest.$ac_objext conftest$ac_exeext
8586
if { (ac_try="$ac_link"
8588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589
*) ac_try_echo=$ac_try;;
8591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592
(eval "$ac_link") 2>conftest.er1
8594
grep -v '^ *+' conftest.er1 >conftest.err
8596
cat conftest.err >&5
8597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
(exit $ac_status); } && {
8599
test -z "$ac_c_werror_flag" ||
8600
test ! -s conftest.err
8601
} && test -s conftest$ac_exeext &&
8602
$as_test_x conftest$ac_exeext; then
8603
ac_cv_lib_intl_bindtextdomain=yes
8605
echo "$as_me: failed program was:" >&5
8606
sed 's/^/| /' conftest.$ac_ext >&5
8608
ac_cv_lib_intl_bindtextdomain=no
8611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612
conftest$ac_exeext conftest.$ac_ext
8613
LIBS=$ac_check_lib_save_LIBS
8615
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8616
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
8617
if test $ac_cv_lib_intl_bindtextdomain = yes; then
8618
{ echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
8619
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
8620
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
8621
echo $ECHO_N "(cached) $ECHO_C" >&6
8623
ac_check_lib_save_LIBS=$LIBS
8625
cat >conftest.$ac_ext <<_ACEOF
8628
cat confdefs.h >>conftest.$ac_ext
8629
cat >>conftest.$ac_ext <<_ACEOF
8630
/* end confdefs.h. */
8632
/* Override any GCC internal prototype to avoid an error.
8633
Use char because int might match the return type of a GCC
8634
builtin and then its argument prototype would still apply. */
8647
rm -f conftest.$ac_objext conftest$ac_exeext
8648
if { (ac_try="$ac_link"
8650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651
*) ac_try_echo=$ac_try;;
8653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654
(eval "$ac_link") 2>conftest.er1
8656
grep -v '^ *+' conftest.er1 >conftest.err
8658
cat conftest.err >&5
8659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660
(exit $ac_status); } && {
8661
test -z "$ac_c_werror_flag" ||
8662
test ! -s conftest.err
8663
} && test -s conftest$ac_exeext &&
8664
$as_test_x conftest$ac_exeext; then
8665
ac_cv_lib_intl_ngettext=yes
8667
echo "$as_me: failed program was:" >&5
8668
sed 's/^/| /' conftest.$ac_ext >&5
8670
ac_cv_lib_intl_ngettext=no
8673
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674
conftest$ac_exeext conftest.$ac_ext
8675
LIBS=$ac_check_lib_save_LIBS
8677
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
8678
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
8679
if test $ac_cv_lib_intl_ngettext = yes; then
8680
{ echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8681
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
8682
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8683
echo $ECHO_N "(cached) $ECHO_C" >&6
8685
ac_check_lib_save_LIBS=$LIBS
8687
cat >conftest.$ac_ext <<_ACEOF
8690
cat confdefs.h >>conftest.$ac_ext
8691
cat >>conftest.$ac_ext <<_ACEOF
8692
/* end confdefs.h. */
8694
/* Override any GCC internal prototype to avoid an error.
8695
Use char because int might match the return type of a GCC
8696
builtin and then its argument prototype would still apply. */
8709
rm -f conftest.$ac_objext conftest$ac_exeext
8710
if { (ac_try="$ac_link"
8712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713
*) ac_try_echo=$ac_try;;
8715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716
(eval "$ac_link") 2>conftest.er1
8718
grep -v '^ *+' conftest.er1 >conftest.err
8720
cat conftest.err >&5
8721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722
(exit $ac_status); } && {
8723
test -z "$ac_c_werror_flag" ||
8724
test ! -s conftest.err
8725
} && test -s conftest$ac_exeext &&
8726
$as_test_x conftest$ac_exeext; then
8727
ac_cv_lib_intl_dgettext=yes
8729
echo "$as_me: failed program was:" >&5
8730
sed 's/^/| /' conftest.$ac_ext >&5
8732
ac_cv_lib_intl_dgettext=no
8735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8736
conftest$ac_exeext conftest.$ac_ext
8737
LIBS=$ac_check_lib_save_LIBS
8739
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8740
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
8741
if test $ac_cv_lib_intl_dgettext = yes; then
8742
gt_cv_func_dgettext_libintl=yes
8750
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8751
{ echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
8752
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
8753
{ echo "$as_me:$LINENO: result: " >&5
8754
echo "${ECHO_T}" >&6; }
8755
{ echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
8756
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
8757
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
8758
echo $ECHO_N "(cached) $ECHO_C" >&6
8760
ac_check_lib_save_LIBS=$LIBS
8761
LIBS="-lintl -liconv $LIBS"
8762
cat >conftest.$ac_ext <<_ACEOF
8765
cat confdefs.h >>conftest.$ac_ext
8766
cat >>conftest.$ac_ext <<_ACEOF
8767
/* end confdefs.h. */
8769
/* Override any GCC internal prototype to avoid an error.
8770
Use char because int might match the return type of a GCC
8771
builtin and then its argument prototype would still apply. */
8784
rm -f conftest.$ac_objext conftest$ac_exeext
8785
if { (ac_try="$ac_link"
8787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788
*) ac_try_echo=$ac_try;;
8790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791
(eval "$ac_link") 2>conftest.er1
8793
grep -v '^ *+' conftest.er1 >conftest.err
8795
cat conftest.err >&5
8796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
(exit $ac_status); } && {
8798
test -z "$ac_c_werror_flag" ||
8799
test ! -s conftest.err
8800
} && test -s conftest$ac_exeext &&
8801
$as_test_x conftest$ac_exeext; then
8802
ac_cv_lib_intl_ngettext=yes
8804
echo "$as_me: failed program was:" >&5
8805
sed 's/^/| /' conftest.$ac_ext >&5
8807
ac_cv_lib_intl_ngettext=no
8810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8811
conftest$ac_exeext conftest.$ac_ext
8812
LIBS=$ac_check_lib_save_LIBS
8814
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
8815
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
8816
if test $ac_cv_lib_intl_ngettext = yes; then
8817
{ echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
8818
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
8819
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
8820
echo $ECHO_N "(cached) $ECHO_C" >&6
8822
ac_check_lib_save_LIBS=$LIBS
8823
LIBS="-lintl -liconv $LIBS"
8824
cat >conftest.$ac_ext <<_ACEOF
8827
cat confdefs.h >>conftest.$ac_ext
8828
cat >>conftest.$ac_ext <<_ACEOF
8829
/* end confdefs.h. */
8831
/* Override any GCC internal prototype to avoid an error.
8832
Use char because int might match the return type of a GCC
8833
builtin and then its argument prototype would still apply. */
8841
return dcgettext ();
8846
rm -f conftest.$ac_objext conftest$ac_exeext
8847
if { (ac_try="$ac_link"
8849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850
*) ac_try_echo=$ac_try;;
8852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853
(eval "$ac_link") 2>conftest.er1
8855
grep -v '^ *+' conftest.er1 >conftest.err
8857
cat conftest.err >&5
8858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859
(exit $ac_status); } && {
8860
test -z "$ac_c_werror_flag" ||
8861
test ! -s conftest.err
8862
} && test -s conftest$ac_exeext &&
8863
$as_test_x conftest$ac_exeext; then
8864
ac_cv_lib_intl_dcgettext=yes
8866
echo "$as_me: failed program was:" >&5
8867
sed 's/^/| /' conftest.$ac_ext >&5
8869
ac_cv_lib_intl_dcgettext=no
8872
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873
conftest$ac_exeext conftest.$ac_ext
8874
LIBS=$ac_check_lib_save_LIBS
8876
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
8877
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
8878
if test $ac_cv_lib_intl_dcgettext = yes; then
8879
gt_cv_func_dgettext_libintl=yes
8880
libintl_extra_libs=-liconv
8892
# If we found libintl, then check in it for bind_textdomain_codeset();
8893
# we'll prefer libc if neither have bind_textdomain_codeset(),
8894
# and both have dgettext and ngettext
8896
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8897
glib_save_LIBS="$LIBS"
8898
LIBS="$LIBS -lintl $libintl_extra_libs"
8899
unset ac_cv_func_bind_textdomain_codeset
8901
for ac_func in bind_textdomain_codeset
8903
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8904
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8905
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8906
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8907
echo $ECHO_N "(cached) $ECHO_C" >&6
8909
cat >conftest.$ac_ext <<_ACEOF
8912
cat confdefs.h >>conftest.$ac_ext
8913
cat >>conftest.$ac_ext <<_ACEOF
8914
/* end confdefs.h. */
8915
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8916
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8917
#define $ac_func innocuous_$ac_func
8919
/* System header to define __stub macros and hopefully few prototypes,
8920
which can conflict with char $ac_func (); below.
8921
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8922
<limits.h> exists even on freestanding compilers. */
8925
# include <limits.h>
8927
# include <assert.h>
8932
/* Override any GCC internal prototype to avoid an error.
8933
Use char because int might match the return type of a GCC
8934
builtin and then its argument prototype would still apply. */
8939
/* The GNU C library defines this for functions which it implements
8940
to always fail with ENOSYS. Some functions are actually named
8941
something starting with __ and the normal name is an alias. */
8942
#if defined __stub_$ac_func || defined __stub___$ac_func
8954
rm -f conftest.$ac_objext conftest$ac_exeext
8955
if { (ac_try="$ac_link"
8957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958
*) ac_try_echo=$ac_try;;
8960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961
(eval "$ac_link") 2>conftest.er1
8963
grep -v '^ *+' conftest.er1 >conftest.err
8965
cat conftest.err >&5
8966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967
(exit $ac_status); } && {
8968
test -z "$ac_c_werror_flag" ||
8969
test ! -s conftest.err
8970
} && test -s conftest$ac_exeext &&
8971
$as_test_x conftest$ac_exeext; then
8972
eval "$as_ac_var=yes"
8974
echo "$as_me: failed program was:" >&5
8975
sed 's/^/| /' conftest.$ac_ext >&5
8977
eval "$as_ac_var=no"
8980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981
conftest$ac_exeext conftest.$ac_ext
8983
ac_res=`eval echo '${'$as_ac_var'}'`
8984
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8985
echo "${ECHO_T}$ac_res" >&6; }
8986
if test `eval echo '${'$as_ac_var'}'` = yes; then
8987
cat >>confdefs.h <<_ACEOF
8988
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8994
LIBS="$glib_save_LIBS"
8996
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8997
gt_cv_func_dgettext_libc=no
8999
if test "$gt_cv_func_dgettext_libc" = "yes" \
9000
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
9001
gt_cv_func_dgettext_libintl=no
9007
if test "$gt_cv_func_dgettext_libc" = "yes" \
9008
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
9009
gt_cv_have_gettext=yes
9012
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9013
INTLLIBS="-lintl $libintl_extra_libs"
9016
if test "$gt_cv_have_gettext" = "yes"; then
9018
cat >>confdefs.h <<\_ACEOF
9019
#define HAVE_GETTEXT 1
9022
# Extract the first word of "msgfmt", so it can be a program name with args.
9023
set dummy msgfmt; ac_word=$2
9024
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9026
if test "${ac_cv_path_MSGFMT+set}" = set; then
9027
echo $ECHO_N "(cached) $ECHO_C" >&6
9031
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9034
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9035
for ac_dir in $PATH; do
9036
test -z "$ac_dir" && ac_dir=.
9037
if test -f $ac_dir/$ac_word; then
9038
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9039
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9045
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9049
MSGFMT="$ac_cv_path_MSGFMT"
9050
if test "$MSGFMT" != "no"; then
9051
{ echo "$as_me:$LINENO: result: $MSGFMT" >&5
9052
echo "${ECHO_T}$MSGFMT" >&6; }
9054
{ echo "$as_me:$LINENO: result: no" >&5
9055
echo "${ECHO_T}no" >&6; }
9057
if test "$MSGFMT" != "no"; then
9058
glib_save_LIBS="$LIBS"
9059
LIBS="$LIBS $INTLLIBS"
9061
for ac_func in dcgettext
9063
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9064
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9065
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9066
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9067
echo $ECHO_N "(cached) $ECHO_C" >&6
9069
cat >conftest.$ac_ext <<_ACEOF
9072
cat confdefs.h >>conftest.$ac_ext
9073
cat >>conftest.$ac_ext <<_ACEOF
9074
/* end confdefs.h. */
9075
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9076
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9077
#define $ac_func innocuous_$ac_func
9079
/* System header to define __stub macros and hopefully few prototypes,
9080
which can conflict with char $ac_func (); below.
9081
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9082
<limits.h> exists even on freestanding compilers. */
9085
# include <limits.h>
9087
# include <assert.h>
9092
/* Override any GCC internal prototype to avoid an error.
9093
Use char because int might match the return type of a GCC
9094
builtin and then its argument prototype would still apply. */
9099
/* The GNU C library defines this for functions which it implements
9100
to always fail with ENOSYS. Some functions are actually named
9101
something starting with __ and the normal name is an alias. */
9102
#if defined __stub_$ac_func || defined __stub___$ac_func
9114
rm -f conftest.$ac_objext conftest$ac_exeext
9115
if { (ac_try="$ac_link"
9117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118
*) ac_try_echo=$ac_try;;
9120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121
(eval "$ac_link") 2>conftest.er1
9123
grep -v '^ *+' conftest.er1 >conftest.err
9125
cat conftest.err >&5
9126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127
(exit $ac_status); } && {
9128
test -z "$ac_c_werror_flag" ||
9129
test ! -s conftest.err
9130
} && test -s conftest$ac_exeext &&
9131
$as_test_x conftest$ac_exeext; then
9132
eval "$as_ac_var=yes"
9134
echo "$as_me: failed program was:" >&5
9135
sed 's/^/| /' conftest.$ac_ext >&5
9137
eval "$as_ac_var=no"
9140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141
conftest$ac_exeext conftest.$ac_ext
9143
ac_res=`eval echo '${'$as_ac_var'}'`
9144
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9145
echo "${ECHO_T}$ac_res" >&6; }
9146
if test `eval echo '${'$as_ac_var'}'` = yes; then
9147
cat >>confdefs.h <<_ACEOF
9148
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9155
{ echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
9156
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
9157
cat >conftest.foo <<_ACEOF
9161
"Content-Type: text/plain; charset=UTF-8\n"
9162
"Project-Id-Version: test 1.0\n"
9163
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9164
"Last-Translator: test <foo@bar.xx>\n"
9165
"Language-Team: C <LL@li.org>\n"
9166
"MIME-Version: 1.0\n"
9167
"Content-Transfer-Encoding: 8bit\n"
9170
if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
9171
(msgfmt -c -o /dev/null conftest.foo) 2>&5
9173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174
(exit $ac_status); }; then
9175
MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
9176
echo "${ECHO_T}yes" >&6; }
9177
else { echo "$as_me:$LINENO: result: no" >&5
9178
echo "${ECHO_T}no" >&6; }
9179
echo "$as_me: failed input was:" >&5
9180
sed 's/^/| /' conftest.foo >&5
9183
# Extract the first word of "gmsgfmt", so it can be a program name with args.
9184
set dummy gmsgfmt; ac_word=$2
9185
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9187
if test "${ac_cv_path_GMSGFMT+set}" = set; then
9188
echo $ECHO_N "(cached) $ECHO_C" >&6
9192
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199
test -z "$as_dir" && as_dir=.
9200
for ac_exec_ext in '' $ac_executable_extensions; do
9201
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9202
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9203
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9210
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9214
GMSGFMT=$ac_cv_path_GMSGFMT
9215
if test -n "$GMSGFMT"; then
9216
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9217
echo "${ECHO_T}$GMSGFMT" >&6; }
9219
{ echo "$as_me:$LINENO: result: no" >&5
9220
echo "${ECHO_T}no" >&6; }
9224
# Extract the first word of "xgettext", so it can be a program name with args.
9225
set dummy xgettext; ac_word=$2
9226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9228
if test "${ac_cv_path_XGETTEXT+set}" = set; then
9229
echo $ECHO_N "(cached) $ECHO_C" >&6
9233
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9236
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9237
for ac_dir in $PATH; do
9238
test -z "$ac_dir" && ac_dir=.
9239
if test -f $ac_dir/$ac_word; then
9240
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9241
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9247
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9251
XGETTEXT="$ac_cv_path_XGETTEXT"
9252
if test "$XGETTEXT" != ":"; then
9253
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9254
echo "${ECHO_T}$XGETTEXT" >&6; }
9256
{ echo "$as_me:$LINENO: result: no" >&5
9257
echo "${ECHO_T}no" >&6; }
9260
cat >conftest.$ac_ext <<_ACEOF
9263
cat confdefs.h >>conftest.$ac_ext
9264
cat >>conftest.$ac_ext <<_ACEOF
9265
/* end confdefs.h. */
9270
extern int _nl_msg_cat_cntr;
9271
return _nl_msg_cat_cntr
9276
rm -f conftest.$ac_objext conftest$ac_exeext
9277
if { (ac_try="$ac_link"
9279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280
*) ac_try_echo=$ac_try;;
9282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283
(eval "$ac_link") 2>conftest.er1
9285
grep -v '^ *+' conftest.er1 >conftest.err
9287
cat conftest.err >&5
9288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289
(exit $ac_status); } && {
9290
test -z "$ac_c_werror_flag" ||
9291
test ! -s conftest.err
9292
} && test -s conftest$ac_exeext &&
9293
$as_test_x conftest$ac_exeext; then
9297
echo "$as_me: failed program was:" >&5
9298
sed 's/^/| /' conftest.$ac_ext >&5
9302
{ echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
9303
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
9304
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
9305
echo $ECHO_N "(cached) $ECHO_C" >&6
9307
cat >conftest.$ac_ext <<_ACEOF
9310
cat confdefs.h >>conftest.$ac_ext
9311
cat >>conftest.$ac_ext <<_ACEOF
9312
/* end confdefs.h. */
9313
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
9314
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9315
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
9317
/* System header to define __stub macros and hopefully few prototypes,
9318
which can conflict with char bind_textdomain_codeset (); below.
9319
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9320
<limits.h> exists even on freestanding compilers. */
9323
# include <limits.h>
9325
# include <assert.h>
9328
#undef bind_textdomain_codeset
9330
/* Override any GCC internal prototype to avoid an error.
9331
Use char because int might match the return type of a GCC
9332
builtin and then its argument prototype would still apply. */
9336
char bind_textdomain_codeset ();
9337
/* The GNU C library defines this for functions which it implements
9338
to always fail with ENOSYS. Some functions are actually named
9339
something starting with __ and the normal name is an alias. */
9340
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
9347
return bind_textdomain_codeset ();
9352
rm -f conftest.$ac_objext conftest$ac_exeext
9353
if { (ac_try="$ac_link"
9355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356
*) ac_try_echo=$ac_try;;
9358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359
(eval "$ac_link") 2>conftest.er1
9361
grep -v '^ *+' conftest.er1 >conftest.err
9363
cat conftest.err >&5
9364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365
(exit $ac_status); } && {
9366
test -z "$ac_c_werror_flag" ||
9367
test ! -s conftest.err
9368
} && test -s conftest$ac_exeext &&
9369
$as_test_x conftest$ac_exeext; then
9370
ac_cv_func_bind_textdomain_codeset=yes
9372
echo "$as_me: failed program was:" >&5
9373
sed 's/^/| /' conftest.$ac_ext >&5
9375
ac_cv_func_bind_textdomain_codeset=no
9378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379
conftest$ac_exeext conftest.$ac_ext
9381
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
9382
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
9383
if test $ac_cv_func_bind_textdomain_codeset = yes; then
9399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9400
conftest$ac_exeext conftest.$ac_ext
9401
LIBS="$glib_save_LIBS"
9404
gt_cv_have_gettext=no
9412
if test "$gt_cv_have_gettext" = "yes" ; then
9414
cat >>confdefs.h <<\_ACEOF
9415
#define ENABLE_NLS 1
9420
if test "$XGETTEXT" != ":"; then
9421
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9424
{ echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9425
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9430
# We need to process the po/ directory.
9433
ac_config_commands="$ac_config_commands default-1"
9436
for lang in $ALL_LINGUAS; do
9437
GMOFILES="$GMOFILES $lang.gmo"
9438
POFILES="$POFILES $lang.po"
9453
if test "$gt_cv_have_gettext" = "yes"; then
9454
if test "x$ALL_LINGUAS" = "x"; then
9457
{ echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9458
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9460
for presentlang in $ALL_LINGUAS; do
9462
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9463
desiredlanguages="$LINGUAS"
9465
desiredlanguages="$ALL_LINGUAS"
9467
for desiredlang in $desiredlanguages; do
9468
# Use the presentlang catalog if desiredlang is
9469
# a. equal to presentlang, or
9470
# b. a variant of presentlang (because in this case,
9471
# presentlang can be used as a fallback for messages
9472
# which are not translated in the desiredlang catalog).
9473
case "$desiredlang" in
9474
"$presentlang"*) useit=yes;;
9477
if test $useit = yes; then
9478
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9481
LINGUAS=$NEW_LINGUAS
9482
{ echo "$as_me:$LINENO: result: $LINGUAS" >&5
9483
echo "${ECHO_T}$LINGUAS" >&6; }
9486
if test -n "$LINGUAS"; then
9487
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9492
if test -n "$ac_aux_dir"; then
9493
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9495
if test -z "$MKINSTALLDIRS"; then
9496
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9500
test -d po || mkdir po
9501
if test "x$srcdir" != "x."; then
9502
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9503
posrcprefix="$srcdir/"
9505
posrcprefix="../$srcdir/"
9511
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9512
< $srcdir/po/POTFILES.in > po/POTFILES
9514
#########################################################
9515
#########################################################
9518
#PACKAGE CHECKS#############################################
9519
#########################################################
9522
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9523
if test -n "$ac_tool_prefix"; then
9524
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9525
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9526
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9528
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9529
echo $ECHO_N "(cached) $ECHO_C" >&6
9533
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540
test -z "$as_dir" && as_dir=.
9541
for ac_exec_ext in '' $ac_executable_extensions; do
9542
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9544
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9554
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9555
if test -n "$PKG_CONFIG"; then
9556
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9557
echo "${ECHO_T}$PKG_CONFIG" >&6; }
9559
{ echo "$as_me:$LINENO: result: no" >&5
9560
echo "${ECHO_T}no" >&6; }
9565
if test -z "$ac_cv_path_PKG_CONFIG"; then
9566
ac_pt_PKG_CONFIG=$PKG_CONFIG
9567
# Extract the first word of "pkg-config", so it can be a program name with args.
9568
set dummy pkg-config; ac_word=$2
9569
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9571
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9572
echo $ECHO_N "(cached) $ECHO_C" >&6
9574
case $ac_pt_PKG_CONFIG in
9576
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9579
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583
test -z "$as_dir" && as_dir=.
9584
for ac_exec_ext in '' $ac_executable_extensions; do
9585
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9587
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9598
if test -n "$ac_pt_PKG_CONFIG"; then
9599
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9600
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
9602
{ echo "$as_me:$LINENO: result: no" >&5
9603
echo "${ECHO_T}no" >&6; }
9606
if test "x$ac_pt_PKG_CONFIG" = x; then
9609
case $cross_compiling:$ac_tool_warned in
9611
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9612
whose name does not start with the host triplet. If you think this
9613
configuration is useful to you, please write to autoconf@gnu.org." >&5
9614
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9615
whose name does not start with the host triplet. If you think this
9616
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9617
ac_tool_warned=yes ;;
9619
PKG_CONFIG=$ac_pt_PKG_CONFIG
9622
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9626
if test -n "$PKG_CONFIG"; then
9627
_pkg_min_version=0.9.0
9628
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9629
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
9630
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9631
{ echo "$as_me:$LINENO: result: yes" >&5
9632
echo "${ECHO_T}yes" >&6; }
9634
{ echo "$as_me:$LINENO: result: no" >&5
9635
echo "${ECHO_T}no" >&6; }
9642
{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
9643
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
9645
if test -n "$PKG_CONFIG"; then
9646
if test -n "$PACKAGE_CFLAGS"; then
9647
pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
9649
if test -n "$PKG_CONFIG" && \
9650
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5
9651
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5
9653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654
(exit $ac_status); }; then
9655
pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null`
9663
if test -n "$PKG_CONFIG"; then
9664
if test -n "$PACKAGE_LIBS"; then
9665
pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
9667
if test -n "$PKG_CONFIG" && \
9668
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5
9669
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5
9671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
(exit $ac_status); }; then
9673
pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null`
9684
if test $pkg_failed = yes; then
9686
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9687
_pkg_short_errors_supported=yes
9689
_pkg_short_errors_supported=no
9691
if test $_pkg_short_errors_supported = yes; then
9692
PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"`
9694
PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"`
9696
# Put the nasty error message in config.log where it belongs
9697
echo "$PACKAGE_PKG_ERRORS" >&5
9699
{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met:
9703
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9704
installed software in a non-standard prefix.
9706
Alternatively, you may set the environment variables PACKAGE_CFLAGS
9707
and PACKAGE_LIBS to avoid the need to call pkg-config.
9708
See the pkg-config man page for more details.
9710
echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met:
9714
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9715
installed software in a non-standard prefix.
9717
Alternatively, you may set the environment variables PACKAGE_CFLAGS
9718
and PACKAGE_LIBS to avoid the need to call pkg-config.
9719
See the pkg-config man page for more details.
9721
{ (exit 1); exit 1; }; }
9722
elif test $pkg_failed = untried; then
9723
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9724
is in your PATH or set the PKG_CONFIG environment variable to the full
9727
Alternatively, you may set the environment variables PACKAGE_CFLAGS
9728
and PACKAGE_LIBS to avoid the need to call pkg-config.
9729
See the pkg-config man page for more details.
9731
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
9732
See \`config.log' for more details." >&5
9733
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9734
is in your PATH or set the PKG_CONFIG environment variable to the full
9737
Alternatively, you may set the environment variables PACKAGE_CFLAGS
9738
and PACKAGE_LIBS to avoid the need to call pkg-config.
9739
See the pkg-config man page for more details.
9741
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
9742
See \`config.log' for more details." >&2;}
9743
{ (exit 1); exit 1; }; }
9745
PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
9746
PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
9747
{ echo "$as_me:$LINENO: result: yes" >&5
9748
echo "${ECHO_T}yes" >&6; }
9751
if test -n "$PKG_CONFIG" && \
9752
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
9753
($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
9755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
(exit $ac_status); }; then
9757
ac_my_dbus_usable=yes
9759
ac_my_dbus_usable=no
9761
if ( test x${ac_my_dbus_usable} = "xyes" ) ; then
9762
if test -n "$PKG_CONFIG"; then
9763
if test -n "$dbus_CFLAGS"; then
9764
pkg_cv_dbus_CFLAGS="$dbus_CFLAGS"
9766
if test -n "$PKG_CONFIG" && \
9767
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
9768
($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
9770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771
(exit $ac_status); }; then
9772
pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 dbus-glib-1" 2>/dev/null`
9780
PACKAGE_CFLAGS="${PACKAGE_CFLAGS} ${pkg_cv_dbus_CFLAGS}"
9781
if test -n "$PKG_CONFIG"; then
9782
if test -n "$dbus_LIBS"; then
9783
pkg_cv_dbus_LIBS="$dbus_LIBS"
9785
if test -n "$PKG_CONFIG" && \
9786
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
9787
($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
9789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
(exit $ac_status); }; then
9791
pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1 dbus-glib-1" 2>/dev/null`
9799
PACKAGE_LIBS="${PACKAGE_LIBS} ${pkg_cv_dbus_LIBS}"
9805
#########################################################
9806
#########################################################
9810
#########################################################
9811
#########################################################
9812
# fist remove symlinks in ffmpeg dir
9813
# these symlinks are needed for static linking, but make dynamic
9814
# linking fail if you first configured with static and then with
9816
#########################################################
9817
rm ffmpeg/adler32.h >/dev/null 2>&1 || echo "" > /dev/null
9818
rm ffmpeg/avcodec.h >/dev/null 2>&1 || echo "" > /dev/null
9819
rm ffmpeg/avutil.h >/dev/null 2>&1 || echo "" > /dev/null
9820
rm ffmpeg/common.h >/dev/null 2>&1 || echo "" > /dev/null
9821
rm ffmpeg/dsputil.h >/dev/null 2>&1 || echo "" > /dev/null
9822
rm ffmpeg/integer.h >/dev/null 2>&1 || echo "" > /dev/null
9823
rm ffmpeg/intfloat_readwrite.h >/dev/null 2>&1 || echo "" > /dev/null
9824
rm ffmpeg/log.h >/dev/null 2>&1 || echo "" > /dev/null
9825
rm ffmpeg/mathematics.h >/dev/null 2>&1 || echo "" > /dev/null
9826
rm ffmpeg/md5.h >/dev/null 2>&1 || echo "" > /dev/null
9827
rm ffmpeg/rational.h >/dev/null 2>&1 || echo "" > /dev/null
9828
rm ffmpeg/avformat.h >/dev/null 2>&1 || echo "" > /dev/null
9829
rm ffmpeg/avio.h >/dev/null 2>&1 || echo "" > /dev/null
9830
rm ffmpeg/rtp.h >/dev/null 2>&1 || echo "" > /dev/null
9831
rm ffmpeg/rtsp.h >/dev/null 2>&1 || echo "" > /dev/null
9832
rm ffmpeg/rtspcodes.h >/dev/null 2>&1 || echo "" > /dev/null
9833
rm ffmpeg/rtp_h264.h >/dev/null 2>&1 || echo "" > /dev/null
9834
rm ffmpeg/rtp_internal.h >/dev/null 2>&1 || echo "" > /dev/null
9835
rm ffmpeg/fifo.h >/dev/null 2>&1 || echo "" > /dev/null
9836
rm ffmpeg/swscale.h >/dev/null 2>&1 || echo "" > /dev/null
9837
rm ffmpeg/rgb2rgb.h >/dev/null 2>&1 || echo "" > /dev/null
9838
#########################################################
9839
#########################################################
9842
#########################################################
9843
#########################################################
9845
# AC_CHECK_LIB_STATIC(LIBRARY, FUNCTION,
9846
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
9847
# [OTHER-LIBRARIES])
9848
#########################################################
9850
# set defaults for ld parameters to trigger static/dynamic linking
9851
# they should be adapted prior to calling this function
9853
ac_my_static_ld="-Wl,-Bstatic"
9854
ac_my_dynamic_ld="-Wl,-Bdynamic"
9856
# Use a cache variable name containing both the library and function name,
9857
# because the test really is for library $1 defining function $2, not
9858
# just for library $1. Separate tests with the same $1 and different $2s
9859
# may have different results.
9861
# Note that using directly AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2])
9862
# is asking for troubles, since AC_CHECK_LIB($lib, fun) would give
9863
# ac_cv_lib_$lib_fun, which is definitely not what was meant. Hence
9864
# the AS_LITERAL_IF indirection.
9866
# FIXME: This macro is extremely suspicious. It DEFINEs unconditionally,
9867
# whatever the FUNCTION, in addition to not being a *S macro. Note
9868
# that the cache does depend upon the function we are looking for.
9870
# It is on purpose we used `ac_check_lib_save_LIBS' and not just
9871
# `ac_save_LIBS': there are many macros which don't want to see `LIBS'
9872
# changed but still want to use AC_CHECK_LIB, so they save `LIBS'.
9873
# And ``ac_save_LIBS' is too tempting a name, so let's leave them some
9876
# AC_CHECK_LIB_STATIC
9877
#########################################################
9878
#########################################################
9881
#########################################################
9882
#########################################################
9883
# find operating system
9884
# can't do that with other Makefile defines because I need OS specific
9885
# ld params for testing
9886
#########################################################
9889
if test x`(uname -s)` = xSunOS; then
9899
if test x`(uname -s)` = xLinux; then
9909
if test x`(uname -s)` = xHP-UX; then
9917
if ( test x${HPUX_TRUE} = x ) ; then
9918
ac_my_static_ld="-a archive"
9919
ac_my_dynamic_ld="-a default"
9921
ac_my_static_ld="-Wl,-Bstatic"
9922
ac_my_dynamic_ld="-Wl,-Bdynamic"
9926
if test x`(uname -s)` = xFreeBSD; then
9934
#########################################################
9935
#########################################################
9938
#########################################################
9939
#########################################################
9941
#########################################################
9943
# Check whether --with-forced-embedded-ffmpeg was given.
9944
if test "${with_forced_embedded_ffmpeg+set}" = set; then
9945
withval=$with_forced_embedded_ffmpeg; ac_cv_with_embedded_ffmpeg=$withval
9947
ac_cv_with_embedded_ffmpeg=yes
4364
9951
# set static_avcodec = yes if avcodec is in
4365
static_avcodec=`echo $ac_cv_link_static | ${AWK} '/avcodec/{print "yes"}'`
9952
static_avcodec=${ac_cv_with_embedded_ffmpeg}
4367
# if avcodec is static, avformat is, too.
9954
# if avcodec is static, avformat and avutil are, too.
4368
9955
test x$static_avcodec = xyes && static_avformat=yes
4370
# remove avcodec from list of static libs
4371
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/avcodec//g'`
4373
# continue with other libs
4374
static_jpeg=`echo $ac_cv_link_static | ${AWK} '/jpeg/{print "yes"}'`
4375
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/jpeg//g'`
4376
static_png=`echo $ac_cv_link_static | ${AWK} '/png/{print "yes"}'`
4377
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/png//g'`
4378
static_z=`echo $ac_cv_link_static | ${AWK} '/z/{print "yes"}'`
4382
# try these libs statically first, if user choses so
4383
# if $static_z = yes, try static lib. if not or static link fails, try dynamic
4387
if test x$static_z = xyes; then
4389
echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
4390
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
4391
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
4392
echo $ECHO_N "(cached) $ECHO_C" >&6
4395
echo -n "(static?) ... "
4396
ac_check_lib_save_LIBS=$LIBS
4397
LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic $LIBS"
4398
cat >conftest.$ac_ext <<_ACEOF
4399
#line $LINENO "configure"
4402
cat confdefs.h >>conftest.$ac_ext
4403
cat >>conftest.$ac_ext <<_ACEOF
4404
/* end confdefs.h. */
4406
/* Override any gcc2 internal prototype to avoid an error. */
4410
/* We use char because int might match the return type of a gcc2
4411
builtin and then its argument prototype would still apply. */
4412
char zlibVersion ();
4421
rm -f conftest.$ac_objext conftest$ac_exeext
4422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423
(eval $ac_link) 2>&5
4425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
(exit $ac_status); } &&
4427
{ ac_try='test -s conftest$ac_exeext'
4428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
(exit $ac_status); }; }; then
4433
ac_cv_lib_z_zlibVersion=yes
4435
echo "$as_me: failed program was:" >&5
4436
sed 's/^/| /' conftest.$ac_ext >&5
4438
ac_cv_lib_z_zlibVersion=no
4440
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441
LIBS=$ac_check_lib_save_LIBS
4444
echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
4445
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
4447
ac_cv_lib_z_zlibVersion=no
4450
if test $ac_cv_lib_z_zlibVersion = yes; then
4451
cat >>confdefs.h <<_ACEOF
4455
LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic $LIBS"
4458
unset ac_cv_lib_z_zlibVersion ; static_z=no ;
4459
echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
4460
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
4461
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
4462
echo $ECHO_N "(cached) $ECHO_C" >&6
4464
ac_check_lib_save_LIBS=$LIBS
4466
cat >conftest.$ac_ext <<_ACEOF
4467
#line $LINENO "configure"
4470
cat confdefs.h >>conftest.$ac_ext
4471
cat >>conftest.$ac_ext <<_ACEOF
4472
/* end confdefs.h. */
4474
/* Override any gcc2 internal prototype to avoid an error. */
4478
/* We use char because int might match the return type of a gcc2
4479
builtin and then its argument prototype would still apply. */
4480
char zlibVersion ();
4489
rm -f conftest.$ac_objext conftest$ac_exeext
4490
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491
(eval $ac_link) 2>&5
4493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
(exit $ac_status); } &&
4495
{ ac_try='test -s conftest$ac_exeext'
4496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500
(exit $ac_status); }; }; then
4501
ac_cv_lib_z_zlibVersion=yes
4503
echo "$as_me: failed program was:" >&5
4504
sed 's/^/| /' conftest.$ac_ext >&5
4506
ac_cv_lib_z_zlibVersion=no
4508
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509
LIBS=$ac_check_lib_save_LIBS
4511
echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
4512
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
4513
if test $ac_cv_lib_z_zlibVersion = yes; then
4514
cat >>confdefs.h <<_ACEOF
9956
test x$static_avcodec = xyes && static_avutil=yes
9958
# Check whether --enable-libmp3lame was given.
9959
if test "${enable_libmp3lame+set}" = set; then
9960
enableval=$enable_libmp3lame; ac_cv_enable_libmp3lame=$enableval
9962
ac_cv_enable_libmp3lame=yes
9965
# Check whether --enable-libtheora was given.
9966
if test "${enable_libtheora+set}" = set; then
9967
enableval=$enable_libtheora; ac_cv_enable_libtheora=$enableval
9969
ac_cv_enable_libtheora=no
9972
#########################################################
9973
#########################################################
9976
#########################################################
9977
#########################################################
9978
# Checks for libraries.
9979
#########################################################
9981
#########################################################
9983
#########################################################
9985
if test "x${ac_cv_have_x}" = "x" ; then
9986
echo "xvidcap needs X11 runtime and build environment"
9990
# first check for Xmu without tweaking, then in X11 paths
9992
{ echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5
9993
echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; }
9994
if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then
9995
echo $ECHO_N "(cached) $ECHO_C" >&6
9997
ac_check_lib_save_LIBS=$LIBS
9999
cat >conftest.$ac_ext <<_ACEOF
10002
cat confdefs.h >>conftest.$ac_ext
10003
cat >>conftest.$ac_ext <<_ACEOF
10004
/* end confdefs.h. */
10006
/* Override any GCC internal prototype to avoid an error.
10007
Use char because int might match the return type of a GCC
10008
builtin and then its argument prototype would still apply. */
10012
char XmuClientWindow ();
10016
return XmuClientWindow ();
10021
rm -f conftest.$ac_objext conftest$ac_exeext
10022
if { (ac_try="$ac_link"
10023
case "(($ac_try" in
10024
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025
*) ac_try_echo=$ac_try;;
10027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028
(eval "$ac_link") 2>conftest.er1
10030
grep -v '^ *+' conftest.er1 >conftest.err
10032
cat conftest.err >&5
10033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
(exit $ac_status); } && {
10035
test -z "$ac_c_werror_flag" ||
10036
test ! -s conftest.err
10037
} && test -s conftest$ac_exeext &&
10038
$as_test_x conftest$ac_exeext; then
10039
ac_cv_lib_Xmu_XmuClientWindow=yes
10041
echo "$as_me: failed program was:" >&5
10042
sed 's/^/| /' conftest.$ac_ext >&5
10044
ac_cv_lib_Xmu_XmuClientWindow=no
10047
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048
conftest$ac_exeext conftest.$ac_ext
10049
LIBS=$ac_check_lib_save_LIBS
10051
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
10052
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; }
10053
if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then
10054
cat >>confdefs.h <<_ACEOF
10055
#define HAVE_LIBXMU 1
10061
unset ac_cv_lib_Xmu_XmuClientWindow; echo "Couldn't find libXmu in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5
10062
echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; }
10063
if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then
10064
echo $ECHO_N "(cached) $ECHO_C" >&6
10066
ac_check_lib_save_LIBS=$LIBS
10067
LIBS="-lXmu -L${ac_x_libraries} $LIBS"
10068
cat >conftest.$ac_ext <<_ACEOF
10071
cat confdefs.h >>conftest.$ac_ext
10072
cat >>conftest.$ac_ext <<_ACEOF
10073
/* end confdefs.h. */
10075
/* Override any GCC internal prototype to avoid an error.
10076
Use char because int might match the return type of a GCC
10077
builtin and then its argument prototype would still apply. */
10081
char XmuClientWindow ();
10085
return XmuClientWindow ();
10090
rm -f conftest.$ac_objext conftest$ac_exeext
10091
if { (ac_try="$ac_link"
10092
case "(($ac_try" in
10093
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094
*) ac_try_echo=$ac_try;;
10096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097
(eval "$ac_link") 2>conftest.er1
10099
grep -v '^ *+' conftest.er1 >conftest.err
10101
cat conftest.err >&5
10102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103
(exit $ac_status); } && {
10104
test -z "$ac_c_werror_flag" ||
10105
test ! -s conftest.err
10106
} && test -s conftest$ac_exeext &&
10107
$as_test_x conftest$ac_exeext; then
10108
ac_cv_lib_Xmu_XmuClientWindow=yes
10110
echo "$as_me: failed program was:" >&5
10111
sed 's/^/| /' conftest.$ac_ext >&5
10113
ac_cv_lib_Xmu_XmuClientWindow=no
10116
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117
conftest$ac_exeext conftest.$ac_ext
10118
LIBS=$ac_check_lib_save_LIBS
10120
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
10121
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; }
10122
if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then
10123
LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXmu"
10125
echo "libXmu required for drawing the frame around the area to capture" && exit 1
10131
# first check for Xfixes without tweaking, then in X11 paths
10133
{ echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5
10134
echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; }
10135
if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then
10136
echo $ECHO_N "(cached) $ECHO_C" >&6
10138
ac_check_lib_save_LIBS=$LIBS
10139
LIBS="-lXfixes $LIBS"
10140
cat >conftest.$ac_ext <<_ACEOF
10143
cat confdefs.h >>conftest.$ac_ext
10144
cat >>conftest.$ac_ext <<_ACEOF
10145
/* end confdefs.h. */
10147
/* Override any GCC internal prototype to avoid an error.
10148
Use char because int might match the return type of a GCC
10149
builtin and then its argument prototype would still apply. */
10153
char XFixesGetCursorImage ();
10157
return XFixesGetCursorImage ();
10162
rm -f conftest.$ac_objext conftest$ac_exeext
10163
if { (ac_try="$ac_link"
10164
case "(($ac_try" in
10165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166
*) ac_try_echo=$ac_try;;
10168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169
(eval "$ac_link") 2>conftest.er1
10171
grep -v '^ *+' conftest.er1 >conftest.err
10173
cat conftest.err >&5
10174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175
(exit $ac_status); } && {
10176
test -z "$ac_c_werror_flag" ||
10177
test ! -s conftest.err
10178
} && test -s conftest$ac_exeext &&
10179
$as_test_x conftest$ac_exeext; then
10180
ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
10182
echo "$as_me: failed program was:" >&5
10183
sed 's/^/| /' conftest.$ac_ext >&5
10185
ac_cv_lib_Xfixes_XFixesGetCursorImage=no
10188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189
conftest$ac_exeext conftest.$ac_ext
10190
LIBS=$ac_check_lib_save_LIBS
10192
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
10193
echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
10194
if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then
10195
cat >>confdefs.h <<_ACEOF
10196
#define HAVE_LIBXFIXES 1
10199
LIBS="-lXfixes $LIBS"
10202
unset ac_cv_lib_Xfixes_XFixesGetCursorImage; echo "Couldn't find libXfixes in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5
10203
echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; }
10204
if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then
10205
echo $ECHO_N "(cached) $ECHO_C" >&6
10207
ac_check_lib_save_LIBS=$LIBS
10208
LIBS="-lXfixes -L${ac_x_libraries} $LIBS"
10209
cat >conftest.$ac_ext <<_ACEOF
10212
cat confdefs.h >>conftest.$ac_ext
10213
cat >>conftest.$ac_ext <<_ACEOF
10214
/* end confdefs.h. */
10216
/* Override any GCC internal prototype to avoid an error.
10217
Use char because int might match the return type of a GCC
10218
builtin and then its argument prototype would still apply. */
10222
char XFixesGetCursorImage ();
10226
return XFixesGetCursorImage ();
10231
rm -f conftest.$ac_objext conftest$ac_exeext
10232
if { (ac_try="$ac_link"
10233
case "(($ac_try" in
10234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235
*) ac_try_echo=$ac_try;;
10237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238
(eval "$ac_link") 2>conftest.er1
10240
grep -v '^ *+' conftest.er1 >conftest.err
10242
cat conftest.err >&5
10243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244
(exit $ac_status); } && {
10245
test -z "$ac_c_werror_flag" ||
10246
test ! -s conftest.err
10247
} && test -s conftest$ac_exeext &&
10248
$as_test_x conftest$ac_exeext; then
10249
ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
10251
echo "$as_me: failed program was:" >&5
10252
sed 's/^/| /' conftest.$ac_ext >&5
10254
ac_cv_lib_Xfixes_XFixesGetCursorImage=no
10257
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258
conftest$ac_exeext conftest.$ac_ext
10259
LIBS=$ac_check_lib_save_LIBS
10261
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
10262
echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
10263
if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then
10264
LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXfixes"
10266
echo "libXfixes not available, cannot capture real mouse pointer"
10272
# first check for Xdamage without tweaking, then in X11 paths
10274
{ echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5
10275
echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; }
10276
if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then
10277
echo $ECHO_N "(cached) $ECHO_C" >&6
10279
ac_check_lib_save_LIBS=$LIBS
10280
LIBS="-lXdamage $LIBS"
10281
cat >conftest.$ac_ext <<_ACEOF
10284
cat confdefs.h >>conftest.$ac_ext
10285
cat >>conftest.$ac_ext <<_ACEOF
10286
/* end confdefs.h. */
10288
/* Override any GCC internal prototype to avoid an error.
10289
Use char because int might match the return type of a GCC
10290
builtin and then its argument prototype would still apply. */
10294
char XDamageSubtract ();
10298
return XDamageSubtract ();
10303
rm -f conftest.$ac_objext conftest$ac_exeext
10304
if { (ac_try="$ac_link"
10305
case "(($ac_try" in
10306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307
*) ac_try_echo=$ac_try;;
10309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310
(eval "$ac_link") 2>conftest.er1
10312
grep -v '^ *+' conftest.er1 >conftest.err
10314
cat conftest.err >&5
10315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316
(exit $ac_status); } && {
10317
test -z "$ac_c_werror_flag" ||
10318
test ! -s conftest.err
10319
} && test -s conftest$ac_exeext &&
10320
$as_test_x conftest$ac_exeext; then
10321
ac_cv_lib_Xdamage_XDamageSubtract=yes
10323
echo "$as_me: failed program was:" >&5
10324
sed 's/^/| /' conftest.$ac_ext >&5
10326
ac_cv_lib_Xdamage_XDamageSubtract=no
10329
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330
conftest$ac_exeext conftest.$ac_ext
10331
LIBS=$ac_check_lib_save_LIBS
10333
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5
10334
echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; }
10335
if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then
10336
cat >>confdefs.h <<_ACEOF
10337
#define HAVE_LIBXDAMAGE 1
10340
LIBS="-lXdamage $LIBS"
10343
unset ac_cv_lib_Xdamage_XDamageSubtract; echo "Couldn't find libXdamage in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5
10344
echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; }
10345
if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then
10346
echo $ECHO_N "(cached) $ECHO_C" >&6
10348
ac_check_lib_save_LIBS=$LIBS
10349
LIBS="-lXdamage -L${ac_x_libraries} $LIBS"
10350
cat >conftest.$ac_ext <<_ACEOF
10353
cat confdefs.h >>conftest.$ac_ext
10354
cat >>conftest.$ac_ext <<_ACEOF
10355
/* end confdefs.h. */
10357
/* Override any GCC internal prototype to avoid an error.
10358
Use char because int might match the return type of a GCC
10359
builtin and then its argument prototype would still apply. */
10363
char XDamageSubtract ();
10367
return XDamageSubtract ();
10372
rm -f conftest.$ac_objext conftest$ac_exeext
10373
if { (ac_try="$ac_link"
10374
case "(($ac_try" in
10375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376
*) ac_try_echo=$ac_try;;
10378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379
(eval "$ac_link") 2>conftest.er1
10381
grep -v '^ *+' conftest.er1 >conftest.err
10383
cat conftest.err >&5
10384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385
(exit $ac_status); } && {
10386
test -z "$ac_c_werror_flag" ||
10387
test ! -s conftest.err
10388
} && test -s conftest$ac_exeext &&
10389
$as_test_x conftest$ac_exeext; then
10390
ac_cv_lib_Xdamage_XDamageSubtract=yes
10392
echo "$as_me: failed program was:" >&5
10393
sed 's/^/| /' conftest.$ac_ext >&5
10395
ac_cv_lib_Xdamage_XDamageSubtract=no
10398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399
conftest$ac_exeext conftest.$ac_ext
10400
LIBS=$ac_check_lib_save_LIBS
10402
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5
10403
echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; }
10404
if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then
10405
LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXdamage"
10407
echo "libXdamage not available, cannot use delta screenshots"
10413
## libice test is present, but we need to bail out if not there
10415
if test "x${ac_cv_lib_ICE_IceConnectionNumber+set}" = "x"; then
10416
echo "Your X11 environment is missing libice."
10421
#########################################################
10423
#########################################################
10424
# libm is required by ffmpeg
10425
#########################################################
10427
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
10428
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
10429
if test "${ac_cv_lib_m_pow+set}" = set; then
10430
echo $ECHO_N "(cached) $ECHO_C" >&6
10432
ac_check_lib_save_LIBS=$LIBS
10434
cat >conftest.$ac_ext <<_ACEOF
10437
cat confdefs.h >>conftest.$ac_ext
10438
cat >>conftest.$ac_ext <<_ACEOF
10439
/* end confdefs.h. */
10441
/* Override any GCC internal prototype to avoid an error.
10442
Use char because int might match the return type of a GCC
10443
builtin and then its argument prototype would still apply. */
10456
rm -f conftest.$ac_objext conftest$ac_exeext
10457
if { (ac_try="$ac_link"
10458
case "(($ac_try" in
10459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460
*) ac_try_echo=$ac_try;;
10462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463
(eval "$ac_link") 2>conftest.er1
10465
grep -v '^ *+' conftest.er1 >conftest.err
10467
cat conftest.err >&5
10468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469
(exit $ac_status); } && {
10470
test -z "$ac_c_werror_flag" ||
10471
test ! -s conftest.err
10472
} && test -s conftest$ac_exeext &&
10473
$as_test_x conftest$ac_exeext; then
10474
ac_cv_lib_m_pow=yes
10476
echo "$as_me: failed program was:" >&5
10477
sed 's/^/| /' conftest.$ac_ext >&5
10482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10483
conftest$ac_exeext conftest.$ac_ext
10484
LIBS=$ac_check_lib_save_LIBS
10486
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10487
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
10488
if test $ac_cv_lib_m_pow = yes; then
10489
cat >>confdefs.h <<_ACEOF
10490
#define HAVE_LIBM 1
10496
echo "libm required by ffmpeg"; static_avcodec=no; static_avformat=no; static_avutil=no
10499
#########################################################
10501
################################################################
10502
# check for libmp3lame et. al.
10503
################################################################
10505
if test "${ac_cv_enable_libmp3lame}" = "yes"; then
10507
{ echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10508
echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
10509
if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10510
echo $ECHO_N "(cached) $ECHO_C" >&6
10512
ac_check_lib_save_LIBS=$LIBS
10513
LIBS="-lmp3lame $LIBS"
10514
cat >conftest.$ac_ext <<_ACEOF
10517
cat confdefs.h >>conftest.$ac_ext
10518
cat >>conftest.$ac_ext <<_ACEOF
10519
/* end confdefs.h. */
10521
/* Override any GCC internal prototype to avoid an error.
10522
Use char because int might match the return type of a GCC
10523
builtin and then its argument prototype would still apply. */
10531
return lame_init ();
10536
rm -f conftest.$ac_objext conftest$ac_exeext
10537
if { (ac_try="$ac_link"
10538
case "(($ac_try" in
10539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540
*) ac_try_echo=$ac_try;;
10542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543
(eval "$ac_link") 2>conftest.er1
10545
grep -v '^ *+' conftest.er1 >conftest.err
10547
cat conftest.err >&5
10548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549
(exit $ac_status); } && {
10550
test -z "$ac_c_werror_flag" ||
10551
test ! -s conftest.err
10552
} && test -s conftest$ac_exeext &&
10553
$as_test_x conftest$ac_exeext; then
10554
ac_cv_lib_mp3lame_lame_init=yes
10556
echo "$as_me: failed program was:" >&5
10557
sed 's/^/| /' conftest.$ac_ext >&5
10559
ac_cv_lib_mp3lame_lame_init=no
10562
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563
conftest$ac_exeext conftest.$ac_ext
10564
LIBS=$ac_check_lib_save_LIBS
10566
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10567
echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
10568
if test $ac_cv_lib_mp3lame_lame_init = yes; then
10569
cat >>confdefs.h <<_ACEOF
10570
#define HAVE_LIBMP3LAME 1
10573
LIBS="-lmp3lame $LIBS"
10576
echo "To use mp3 audio codecs you need liblame/liblame-dev"
10582
if test x$ac_cv_lib_mp3lame_lame_init = xyes; then
10583
HAVE_LIBMP3LAME_TRUE=
10584
HAVE_LIBMP3LAME_FALSE='#'
10586
HAVE_LIBMP3LAME_TRUE='#'
10587
HAVE_LIBMP3LAME_FALSE=
10592
if test "${ac_cv_enable_libtheora}" = "yes"; then
10594
{ echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
10595
echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
10596
if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
10597
echo $ECHO_N "(cached) $ECHO_C" >&6
10599
ac_check_lib_save_LIBS=$LIBS
10601
cat >conftest.$ac_ext <<_ACEOF
10604
cat confdefs.h >>conftest.$ac_ext
10605
cat >>conftest.$ac_ext <<_ACEOF
10606
/* end confdefs.h. */
10608
/* Override any GCC internal prototype to avoid an error.
10609
Use char because int might match the return type of a GCC
10610
builtin and then its argument prototype would still apply. */
10614
char ogg_sync_init ();
10618
return ogg_sync_init ();
10623
rm -f conftest.$ac_objext conftest$ac_exeext
10624
if { (ac_try="$ac_link"
10625
case "(($ac_try" in
10626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627
*) ac_try_echo=$ac_try;;
10629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630
(eval "$ac_link") 2>conftest.er1
10632
grep -v '^ *+' conftest.er1 >conftest.err
10634
cat conftest.err >&5
10635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636
(exit $ac_status); } && {
10637
test -z "$ac_c_werror_flag" ||
10638
test ! -s conftest.err
10639
} && test -s conftest$ac_exeext &&
10640
$as_test_x conftest$ac_exeext; then
10641
ac_cv_lib_ogg_ogg_sync_init=yes
10643
echo "$as_me: failed program was:" >&5
10644
sed 's/^/| /' conftest.$ac_ext >&5
10646
ac_cv_lib_ogg_ogg_sync_init=no
10649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10650
conftest$ac_exeext conftest.$ac_ext
10651
LIBS=$ac_check_lib_save_LIBS
10653
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
10654
echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
10655
if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
10656
cat >>confdefs.h <<_ACEOF
10657
#define HAVE_LIBOGG 1
10663
echo "To use the theora video codec you also need libogg/libogg-dev"
10666
if test "x${ac_cv_lib_ogg_ogg_sync_init}" = "xno" ; then
10667
echo "Please install the required libraries or deselect theora support."
10671
{ echo "$as_me:$LINENO: checking for theora_encode_init in -ltheora" >&5
10672
echo $ECHO_N "checking for theora_encode_init in -ltheora... $ECHO_C" >&6; }
10673
if test "${ac_cv_lib_theora_theora_encode_init+set}" = set; then
10674
echo $ECHO_N "(cached) $ECHO_C" >&6
10676
ac_check_lib_save_LIBS=$LIBS
10677
LIBS="-ltheora -logg $LIBS"
10678
cat >conftest.$ac_ext <<_ACEOF
10681
cat confdefs.h >>conftest.$ac_ext
10682
cat >>conftest.$ac_ext <<_ACEOF
10683
/* end confdefs.h. */
10685
/* Override any GCC internal prototype to avoid an error.
10686
Use char because int might match the return type of a GCC
10687
builtin and then its argument prototype would still apply. */
10691
char theora_encode_init ();
10695
return theora_encode_init ();
10700
rm -f conftest.$ac_objext conftest$ac_exeext
10701
if { (ac_try="$ac_link"
10702
case "(($ac_try" in
10703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704
*) ac_try_echo=$ac_try;;
10706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707
(eval "$ac_link") 2>conftest.er1
10709
grep -v '^ *+' conftest.er1 >conftest.err
10711
cat conftest.err >&5
10712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713
(exit $ac_status); } && {
10714
test -z "$ac_c_werror_flag" ||
10715
test ! -s conftest.err
10716
} && test -s conftest$ac_exeext &&
10717
$as_test_x conftest$ac_exeext; then
10718
ac_cv_lib_theora_theora_encode_init=yes
10720
echo "$as_me: failed program was:" >&5
10721
sed 's/^/| /' conftest.$ac_ext >&5
10723
ac_cv_lib_theora_theora_encode_init=no
10726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10727
conftest$ac_exeext conftest.$ac_ext
10728
LIBS=$ac_check_lib_save_LIBS
10730
{ echo "$as_me:$LINENO: result: $ac_cv_lib_theora_theora_encode_init" >&5
10731
echo "${ECHO_T}$ac_cv_lib_theora_theora_encode_init" >&6; }
10732
if test $ac_cv_lib_theora_theora_encode_init = yes; then
10733
cat >>confdefs.h <<_ACEOF
10734
#define HAVE_LIBTHEORA 1
10737
LIBS="-ltheora $LIBS"
10740
echo "To use the theora video codec you need libtheora/libtheora-dev"
10746
if test x$ac_cv_lib_theora_theora_encode_init = xyes; then
10747
HAVE_LIBTHEORA_TRUE=
10748
HAVE_LIBTHEORA_FALSE='#'
10750
HAVE_LIBTHEORA_TRUE='#'
10751
HAVE_LIBTHEORA_FALSE=
10755
################################################################
10756
# check for threading libraries
10757
################################################################
10760
{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
10761
echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
10762
if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
10763
echo $ECHO_N "(cached) $ECHO_C" >&6
10765
ac_check_lib_save_LIBS=$LIBS
10766
LIBS="-lpthread $LIBS"
10767
cat >conftest.$ac_ext <<_ACEOF
10770
cat confdefs.h >>conftest.$ac_ext
10771
cat >>conftest.$ac_ext <<_ACEOF
10772
/* end confdefs.h. */
10774
/* Override any GCC internal prototype to avoid an error.
10775
Use char because int might match the return type of a GCC
10776
builtin and then its argument prototype would still apply. */
10780
char pthread_mutex_init ();
10784
return pthread_mutex_init ();
10789
rm -f conftest.$ac_objext conftest$ac_exeext
10790
if { (ac_try="$ac_link"
10791
case "(($ac_try" in
10792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793
*) ac_try_echo=$ac_try;;
10795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796
(eval "$ac_link") 2>conftest.er1
10798
grep -v '^ *+' conftest.er1 >conftest.err
10800
cat conftest.err >&5
10801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802
(exit $ac_status); } && {
10803
test -z "$ac_c_werror_flag" ||
10804
test ! -s conftest.err
10805
} && test -s conftest$ac_exeext &&
10806
$as_test_x conftest$ac_exeext; then
10807
ac_cv_lib_pthread_pthread_mutex_init=yes
10809
echo "$as_me: failed program was:" >&5
10810
sed 's/^/| /' conftest.$ac_ext >&5
10812
ac_cv_lib_pthread_pthread_mutex_init=no
10815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10816
conftest$ac_exeext conftest.$ac_ext
10817
LIBS=$ac_check_lib_save_LIBS
10819
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10820
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10821
if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
10822
cat >>confdefs.h <<_ACEOF
10823
#define HAVE_LIBPTHREAD 1
10826
LIBS="-lpthread $LIBS"
4524
10830
# set config.h define
4527
if test x$ac_cv_lib_z_zlibVersion = xyes; then
4536
# continue with other libs
4539
if test x$static_png = xyes; then
4541
echo "$as_me:$LINENO: checking for png_set_filter in -lpng" >&5
4542
echo $ECHO_N "checking for png_set_filter in -lpng... $ECHO_C" >&6
4543
if test "${ac_cv_lib_png_png_set_filter+set}" = set; then
4544
echo $ECHO_N "(cached) $ECHO_C" >&6
4547
echo -n "(static?) ... "
4548
ac_check_lib_save_LIBS=$LIBS
4549
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic -lm $LIBS"
4550
cat >conftest.$ac_ext <<_ACEOF
4551
#line $LINENO "configure"
4554
cat confdefs.h >>conftest.$ac_ext
4555
cat >>conftest.$ac_ext <<_ACEOF
4556
/* end confdefs.h. */
4558
/* Override any gcc2 internal prototype to avoid an error. */
4562
/* We use char because int might match the return type of a gcc2
4563
builtin and then its argument prototype would still apply. */
4564
char png_set_filter ();
4573
rm -f conftest.$ac_objext conftest$ac_exeext
4574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575
(eval $ac_link) 2>&5
4577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578
(exit $ac_status); } &&
4579
{ ac_try='test -s conftest$ac_exeext'
4580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
(exit $ac_status); }; }; then
4585
ac_cv_lib_png_png_set_filter=yes
4587
echo "$as_me: failed program was:" >&5
4588
sed 's/^/| /' conftest.$ac_ext >&5
4590
ac_cv_lib_png_png_set_filter=no
4592
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593
LIBS=$ac_check_lib_save_LIBS
4596
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_filter" >&5
4597
echo "${ECHO_T}$ac_cv_lib_png_png_set_filter" >&6
4599
ac_cv_lib_png_png_set_filter=no
4602
if test $ac_cv_lib_png_png_set_filter = yes; then
4603
cat >>confdefs.h <<_ACEOF
4604
#define HAVE_LIBPNG 1
4607
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
4610
unset ac_cv_lib_png_png_set_filter ; static_png=no ;
4611
echo "$as_me:$LINENO: checking for png_set_filter in -lpng" >&5
4612
echo $ECHO_N "checking for png_set_filter in -lpng... $ECHO_C" >&6
4613
if test "${ac_cv_lib_png_png_set_filter+set}" = set; then
4614
echo $ECHO_N "(cached) $ECHO_C" >&6
4616
ac_check_lib_save_LIBS=$LIBS
4617
LIBS="-lpng -lm $LIBS"
4618
cat >conftest.$ac_ext <<_ACEOF
4619
#line $LINENO "configure"
4622
cat confdefs.h >>conftest.$ac_ext
4623
cat >>conftest.$ac_ext <<_ACEOF
4624
/* end confdefs.h. */
4626
/* Override any gcc2 internal prototype to avoid an error. */
4630
/* We use char because int might match the return type of a gcc2
4631
builtin and then its argument prototype would still apply. */
4632
char png_set_filter ();
4641
rm -f conftest.$ac_objext conftest$ac_exeext
4642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643
(eval $ac_link) 2>&5
4645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
(exit $ac_status); } &&
4647
{ ac_try='test -s conftest$ac_exeext'
4648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652
(exit $ac_status); }; }; then
4653
ac_cv_lib_png_png_set_filter=yes
4655
echo "$as_me: failed program was:" >&5
4656
sed 's/^/| /' conftest.$ac_ext >&5
4658
ac_cv_lib_png_png_set_filter=no
4660
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4661
LIBS=$ac_check_lib_save_LIBS
4663
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_filter" >&5
4664
echo "${ECHO_T}$ac_cv_lib_png_png_set_filter" >&6
4665
if test $ac_cv_lib_png_png_set_filter = yes; then
4666
cat >>confdefs.h <<_ACEOF
4667
#define HAVE_LIBPNG 1
4678
if test x$ac_cv_lib_png_png_set_filter = xyes; then
4680
HAVE_LIBPNG_FALSE='#'
4682
HAVE_LIBPNG_TRUE='#'
4689
if test x$static_jpeg = xyes; then
4691
echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
4692
echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
4693
if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
4694
echo $ECHO_N "(cached) $ECHO_C" >&6
4697
echo -n "(static?) ... "
4698
ac_check_lib_save_LIBS=$LIBS
4699
LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic $LIBS"
4700
cat >conftest.$ac_ext <<_ACEOF
4701
#line $LINENO "configure"
4704
cat confdefs.h >>conftest.$ac_ext
4705
cat >>conftest.$ac_ext <<_ACEOF
4706
/* end confdefs.h. */
4708
/* Override any gcc2 internal prototype to avoid an error. */
4712
/* We use char because int might match the return type of a gcc2
4713
builtin and then its argument prototype would still apply. */
4714
char jpeg_CreateCompress ();
4718
jpeg_CreateCompress ();
4723
rm -f conftest.$ac_objext conftest$ac_exeext
4724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725
(eval $ac_link) 2>&5
4727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728
(exit $ac_status); } &&
4729
{ ac_try='test -s conftest$ac_exeext'
4730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
(exit $ac_status); }; }; then
4735
ac_cv_lib_jpeg_jpeg_CreateCompress=yes
4737
echo "$as_me: failed program was:" >&5
4738
sed 's/^/| /' conftest.$ac_ext >&5
4740
ac_cv_lib_jpeg_jpeg_CreateCompress=no
4742
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4743
LIBS=$ac_check_lib_save_LIBS
4746
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
4747
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
4749
ac_cv_lib_jpeg_jpeg_CreateCompress=no
4752
if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
4753
cat >>confdefs.h <<_ACEOF
4754
#define HAVE_LIBJPEG 1
4757
LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic $LIBS"
4760
unset ac_cv_lib_jpeg_jpeg_CreateCompress ; static_jpeg=no ;
4761
echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
4762
echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
4763
if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
4764
echo $ECHO_N "(cached) $ECHO_C" >&6
4766
ac_check_lib_save_LIBS=$LIBS
4768
cat >conftest.$ac_ext <<_ACEOF
4769
#line $LINENO "configure"
4772
cat confdefs.h >>conftest.$ac_ext
4773
cat >>conftest.$ac_ext <<_ACEOF
4774
/* end confdefs.h. */
4776
/* Override any gcc2 internal prototype to avoid an error. */
4780
/* We use char because int might match the return type of a gcc2
4781
builtin and then its argument prototype would still apply. */
4782
char jpeg_CreateCompress ();
4786
jpeg_CreateCompress ();
4791
rm -f conftest.$ac_objext conftest$ac_exeext
4792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793
(eval $ac_link) 2>&5
4795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796
(exit $ac_status); } &&
4797
{ ac_try='test -s conftest$ac_exeext'
4798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802
(exit $ac_status); }; }; then
4803
ac_cv_lib_jpeg_jpeg_CreateCompress=yes
4805
echo "$as_me: failed program was:" >&5
4806
sed 's/^/| /' conftest.$ac_ext >&5
4808
ac_cv_lib_jpeg_jpeg_CreateCompress=no
4810
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4811
LIBS=$ac_check_lib_save_LIBS
4813
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
4814
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
4815
if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
4816
cat >>confdefs.h <<_ACEOF
4817
#define HAVE_LIBJPEG 1
4823
echo "To use jpeg you need libjpeg version 6+"
4830
if test x$ac_cv_lib_jpeg_jpeg_CreateCompress = xyes; then
4832
HAVE_LIBJPEG_FALSE='#'
4834
HAVE_LIBJPEG_TRUE='#'
4839
# png and z seem to need libm for proper static linking ...
4840
test \( \( x$static_z = xyes \) -o \( x$static_png = xyes \) \) && LIBS="${LIBS} -lm"
10833
if test x$ac_cv_lib_pthread_pthread_mutex_init = xyes; then
10835
HAVE_PTHREAD_FALSE='#'
10837
HAVE_PTHREAD_TRUE='#'
10838
HAVE_PTHREAD_FALSE=
10841
if ( `test x${ac_cv_lib_pthread_pthread_mutex_init} = xno` ) ; then
10842
# haven't found libpthread
10843
if ( `test x${FREEBSD_TRUE} = "x"` ) ; then
10844
# On FreeBSD try -lc_r ... thanks to Oyvind Hallsteinsen
10845
if ( test -x /sbin/sysctl ) ; then
10846
ac_my_freebsd_release=`/sbin/sysctl -n kern.osreldate`
10848
ac_my_freebsd_release=`/usr/sbin/sysctl -n kern.osreldate`
10850
if ( expr ${ac_my_freebsd_release} \< 500016 ) ; then
10851
LIBS="${LIBS} -pthread"
10853
LIBS="${LIBS} -lc_r"
10856
# if we don't have threads, we can't record
10857
echo "xvidcap requires libpthread for recording. This machine doesn't have the libraries and/or header files installed."
10862
#########################################################
4844
10863
# avcodec/avformat
4845
10864
# test static linking first, if requested ... if not, or not found, reset cache
4846
if ( ! (test x$ac_cv_with_embedded_ffmpeg = xyes ) ) ; then
4847
ac_my_static_avcodec_save=$static_avcodec
4850
if test x$static_avcodec = xyes; then
4852
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
4853
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
4854
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
4855
echo $ECHO_N "(cached) $ECHO_C" >&6
4858
echo -n "(static?) ... "
4859
ac_check_lib_save_LIBS=$LIBS
4860
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
4861
cat >conftest.$ac_ext <<_ACEOF
4862
#line $LINENO "configure"
4865
cat confdefs.h >>conftest.$ac_ext
4866
cat >>conftest.$ac_ext <<_ACEOF
4867
/* end confdefs.h. */
4869
/* Override any gcc2 internal prototype to avoid an error. */
4873
/* We use char because int might match the return type of a gcc2
4874
builtin and then its argument prototype would still apply. */
4875
char img_convert ();
4884
rm -f conftest.$ac_objext conftest$ac_exeext
4885
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886
(eval $ac_link) 2>&5
4888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
(exit $ac_status); } &&
4890
{ ac_try='test -s conftest$ac_exeext'
4891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
(exit $ac_status); }; }; then
4896
ac_cv_lib_avcodec_img_convert=yes
4898
echo "$as_me: failed program was:" >&5
4899
sed 's/^/| /' conftest.$ac_ext >&5
4901
ac_cv_lib_avcodec_img_convert=no
4903
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4904
LIBS=$ac_check_lib_save_LIBS
4907
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
4908
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
4910
ac_cv_lib_avcodec_img_convert=no
4913
if test $ac_cv_lib_avcodec_img_convert = yes; then
4914
cat >>confdefs.h <<_ACEOF
4915
#define HAVE_LIBAVCODEC 1
4918
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
4921
unset ac_cv_lib_avcodec_img_convert
4924
static_avcodec=$ac_my_static_avcodec_save
10865
#########################################################
10868
test x$ac_cv_lib_mp3lame_lame_init = xyes && ac_my_ffmpeg_cfg_lib_switch="--enable-libmp3lame"
10869
test x$ac_cv_lib_theora_theora_encode_init = xyes && ac_my_ffmpeg_cfg_lib_switch="${ac_my_ffmpeg_cfg_lib_switch} --enable-libogg --enable-libtheora"
4927
10871
# if cache empty (not tested or failed) and want static avcodec (then it failed) ...
4928
if ( `test \( \( x${ac_cv_lib_avcodec_img_convert+set} = x \) -a \( x$static_avcodec = xyes \) \)` ) ; then
10872
if ( `test \( \( x${ac_cv_lib_avutil_av_rescale+set} = x \) -a \( x$static_avutil = xyes \) \)` ) ; then
4929
10873
# build embedded ffmpeg
4930
echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && ( cd ./ffmpeg/ && ./configure --disable-ffserver --disable-ffplay && ln -s libavcodec/avcodec.h && ln -s libavformat/avformat.h && ln -s libavformat/avio.h && ln -s libavformat/rt*.h ./ && ${MAKE-make} )
10874
echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && \
10875
( cd ./ffmpeg/ && \
10876
./configure --cc=${CC} --enable-gpl ${ac_my_ffmpeg_cfg_lib_switch} --enable-pthreads --enable-swscaler --disable-ffserver --disable-ffplay && \
10877
ln -s libavcodec/avcodec.h ./ && \
10878
ln -s libavcodec/dsputil.h ./ && \
10879
ln -s libavformat/avformat.h ./ && \
10880
ln -s libavformat/avio.h ./ && \
10881
ln -s libavformat/rt*.h ./ && \
10882
ln -s libavutil/common.h ./ && \
10883
ln -s libavutil/avutil.h ./ && \
10884
ln -s libavutil/mathematics.h ./ && \
10885
ln -s libavutil/integer.h ./ && \
10886
ln -s libavutil/intfloat_readwrite.h ./ && \
10887
ln -s libavutil/rational.h ./ && \
10888
ln -s libavutil/fifo.h ./ && \
10889
ln -s libswscale/swscale.h ./ && \
10890
ln -s libswscale/rgb2rgb.h ./ && \
4931
10892
# try to link it statically, or reset cache, set static_avcodec=no
4932
10893
top_srcdir=`pwd`
4933
ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat"
4934
ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I$top_srcdir/ffmpeg/libavcodec -I$top_srcdir/ffmpeg/libavformat"
4937
if test x$static_avcodec = xyes; then
4939
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
4940
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
4941
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
10894
ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat -L$top_srcdir/ffmpeg/libavutil -L$top_srcdir/ffmpeg/libswscale"
10895
ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I $top_srcdir -I$top_srcdir/ffmpeg/libavcodec -I$top_srcdir/ffmpeg/libavformat -I$top_srcdir/ffmpeg/libavutil -I$top_srcdir/ffmpeg/libswscale"
10899
if test x$static_avutil = xyes; then
10901
{ echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5
10902
echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; }
10903
if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then
4942
10904
echo $ECHO_N "(cached) $ECHO_C" >&6
4945
10907
echo -n "(static?) ... "
4946
10908
ac_check_lib_save_LIBS=$LIBS
4947
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
10909
LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic $LIBS"
4948
10910
cat >conftest.$ac_ext <<_ACEOF
4949
#line $LINENO "configure"
4950
10911
/* confdefs.h. */
4952
10913
cat confdefs.h >>conftest.$ac_ext
4953
10914
cat >>conftest.$ac_ext <<_ACEOF
4954
10915
/* end confdefs.h. */
4956
/* Override any gcc2 internal prototype to avoid an error. */
10917
/* Override any GCC internal prototype to avoid an error.
10918
Use char because int might match the return type of a GCC
10919
builtin and then its argument prototype would still apply. */
4957
10920
#ifdef __cplusplus
4960
/* We use char because int might match the return type of a gcc2
4961
builtin and then its argument prototype would still apply. */
4962
char img_convert ();
10923
char av_rescale ();
10927
return av_rescale ();
4971
10932
rm -f conftest.$ac_objext conftest$ac_exeext
4972
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973
(eval $ac_link) 2>&5
4975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
(exit $ac_status); } &&
4977
{ ac_try='test -s conftest$ac_exeext'
4978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
(exit $ac_status); }; }; then
4983
ac_cv_lib_avcodec_img_convert=yes
10933
if { (ac_try="$ac_link"
10934
case "(($ac_try" in
10935
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936
*) ac_try_echo=$ac_try;;
10938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939
(eval "$ac_link") 2>conftest.er1
10941
grep -v '^ *+' conftest.er1 >conftest.err
10943
cat conftest.err >&5
10944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945
(exit $ac_status); } && {
10946
test -z "$ac_c_werror_flag" ||
10947
test ! -s conftest.err
10948
} && test -s conftest$ac_exeext &&
10949
$as_test_x conftest$ac_exeext; then
10950
ac_cv_lib_avutil_av_rescale=yes
4985
10952
echo "$as_me: failed program was:" >&5
4986
10953
sed 's/^/| /' conftest.$ac_ext >&5
4988
ac_cv_lib_avcodec_img_convert=no
10955
ac_cv_lib_avutil_av_rescale=no
4990
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10959
conftest$ac_exeext conftest.$ac_ext
4991
10960
LIBS=$ac_check_lib_save_LIBS
4994
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
4995
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
10963
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5
10964
echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; }
4997
ac_cv_lib_avcodec_img_convert=no
10966
ac_cv_lib_avutil_av_rescale=no
5000
if test $ac_cv_lib_avcodec_img_convert = yes; then
10969
if test $ac_cv_lib_avutil_av_rescale = yes; then
5001
10970
cat >>confdefs.h <<_ACEOF
5002
#define HAVE_LIBAVCODEC 1
10971
#define HAVE_LIBAVUTIL 1
5005
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
10974
LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic $LIBS"
5008
unset ac_cv_lib_avcodec_img_convert ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save
10977
unset ac_cv_lib_avutil_av_rescale ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save
5013
10984
# if still not found try to link dynamically
5014
if test x${ac_cv_lib_avcodec_img_convert+set} = x ; then
5016
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
5017
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
5018
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
5019
echo $ECHO_N "(cached) $ECHO_C" >&6
5021
ac_check_lib_save_LIBS=$LIBS
5022
LIBS="-lavcodec $LIBS"
5023
cat >conftest.$ac_ext <<_ACEOF
5024
#line $LINENO "configure"
5027
cat confdefs.h >>conftest.$ac_ext
5028
cat >>conftest.$ac_ext <<_ACEOF
5029
/* end confdefs.h. */
5031
/* Override any gcc2 internal prototype to avoid an error. */
5035
/* We use char because int might match the return type of a gcc2
5036
builtin and then its argument prototype would still apply. */
5037
char img_convert ();
5046
rm -f conftest.$ac_objext conftest$ac_exeext
5047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048
(eval $ac_link) 2>&5
5050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051
(exit $ac_status); } &&
5052
{ ac_try='test -s conftest$ac_exeext'
5053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
(exit $ac_status); }; }; then
5058
ac_cv_lib_avcodec_img_convert=yes
5060
echo "$as_me: failed program was:" >&5
5061
sed 's/^/| /' conftest.$ac_ext >&5
5063
ac_cv_lib_avcodec_img_convert=no
5065
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5066
LIBS=$ac_check_lib_save_LIBS
5068
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
5069
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
5070
if test $ac_cv_lib_avcodec_img_convert = yes; then
10985
if test x${ac_cv_lib_avutil_av_rescale+set} = x ; then
10987
{ echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5
10988
echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; }
10989
if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then
10990
echo $ECHO_N "(cached) $ECHO_C" >&6
10992
ac_check_lib_save_LIBS=$LIBS
10993
LIBS="-lavutil $LIBS"
10994
cat >conftest.$ac_ext <<_ACEOF
10997
cat confdefs.h >>conftest.$ac_ext
10998
cat >>conftest.$ac_ext <<_ACEOF
10999
/* end confdefs.h. */
11001
/* Override any GCC internal prototype to avoid an error.
11002
Use char because int might match the return type of a GCC
11003
builtin and then its argument prototype would still apply. */
11007
char av_rescale ();
11011
return av_rescale ();
11016
rm -f conftest.$ac_objext conftest$ac_exeext
11017
if { (ac_try="$ac_link"
11018
case "(($ac_try" in
11019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020
*) ac_try_echo=$ac_try;;
11022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023
(eval "$ac_link") 2>conftest.er1
11025
grep -v '^ *+' conftest.er1 >conftest.err
11027
cat conftest.err >&5
11028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029
(exit $ac_status); } && {
11030
test -z "$ac_c_werror_flag" ||
11031
test ! -s conftest.err
11032
} && test -s conftest$ac_exeext &&
11033
$as_test_x conftest$ac_exeext; then
11034
ac_cv_lib_avutil_av_rescale=yes
11036
echo "$as_me: failed program was:" >&5
11037
sed 's/^/| /' conftest.$ac_ext >&5
11039
ac_cv_lib_avutil_av_rescale=no
11042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11043
conftest$ac_exeext conftest.$ac_ext
11044
LIBS=$ac_check_lib_save_LIBS
11046
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5
11047
echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; }
11048
if test $ac_cv_lib_avutil_av_rescale = yes; then
11049
cat >>confdefs.h <<_ACEOF
11050
#define HAVE_LIBAVUTIL 1
11053
LIBS="-lavutil $LIBS"
11059
# if avutil is linked statically, swscale should, too
11060
static_swscale=$static_avutil
11061
ac_my_swscale_libs=""
11062
test x`(uname -s)` = xSunOS && ac_my_swscale_libs="-lnsl -lsocket"
11066
if test x$static_swscale = xyes; then
11068
{ echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
11069
echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
11070
if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
11071
echo $ECHO_N "(cached) $ECHO_C" >&6
11074
echo -n "(static?) ... "
11075
ac_check_lib_save_LIBS=$LIBS
11076
LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $ac_my_swscale_libs $LIBS"
11077
cat >conftest.$ac_ext <<_ACEOF
11080
cat confdefs.h >>conftest.$ac_ext
11081
cat >>conftest.$ac_ext <<_ACEOF
11082
/* end confdefs.h. */
11084
/* Override any GCC internal prototype to avoid an error.
11085
Use char because int might match the return type of a GCC
11086
builtin and then its argument prototype would still apply. */
11094
return sws_scale ();
11099
rm -f conftest.$ac_objext conftest$ac_exeext
11100
if { (ac_try="$ac_link"
11101
case "(($ac_try" in
11102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103
*) ac_try_echo=$ac_try;;
11105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106
(eval "$ac_link") 2>conftest.er1
11108
grep -v '^ *+' conftest.er1 >conftest.err
11110
cat conftest.err >&5
11111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112
(exit $ac_status); } && {
11113
test -z "$ac_c_werror_flag" ||
11114
test ! -s conftest.err
11115
} && test -s conftest$ac_exeext &&
11116
$as_test_x conftest$ac_exeext; then
11117
ac_cv_lib_swscale_sws_scale=yes
11119
echo "$as_me: failed program was:" >&5
11120
sed 's/^/| /' conftest.$ac_ext >&5
11122
ac_cv_lib_swscale_sws_scale=no
11125
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126
conftest$ac_exeext conftest.$ac_ext
11127
LIBS=$ac_check_lib_save_LIBS
11130
{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
11131
echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
11133
ac_cv_lib_swscale_sws_scale=no
11136
if test $ac_cv_lib_swscale_sws_scale = yes; then
11137
cat >>confdefs.h <<_ACEOF
11138
#define HAVE_LIBSWSCALE 1
11141
LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $LIBS"
11144
unset ac_cv_lib_swscale_sws_scale ; static_swscale=no ;
11145
{ echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
11146
echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
11147
if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
11148
echo $ECHO_N "(cached) $ECHO_C" >&6
11150
ac_check_lib_save_LIBS=$LIBS
11151
LIBS="-lswscale $ac_my_swscale_libs $LIBS"
11152
cat >conftest.$ac_ext <<_ACEOF
11155
cat confdefs.h >>conftest.$ac_ext
11156
cat >>conftest.$ac_ext <<_ACEOF
11157
/* end confdefs.h. */
11159
/* Override any GCC internal prototype to avoid an error.
11160
Use char because int might match the return type of a GCC
11161
builtin and then its argument prototype would still apply. */
11169
return sws_scale ();
11174
rm -f conftest.$ac_objext conftest$ac_exeext
11175
if { (ac_try="$ac_link"
11176
case "(($ac_try" in
11177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178
*) ac_try_echo=$ac_try;;
11180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181
(eval "$ac_link") 2>conftest.er1
11183
grep -v '^ *+' conftest.er1 >conftest.err
11185
cat conftest.err >&5
11186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187
(exit $ac_status); } && {
11188
test -z "$ac_c_werror_flag" ||
11189
test ! -s conftest.err
11190
} && test -s conftest$ac_exeext &&
11191
$as_test_x conftest$ac_exeext; then
11192
ac_cv_lib_swscale_sws_scale=yes
11194
echo "$as_me: failed program was:" >&5
11195
sed 's/^/| /' conftest.$ac_ext >&5
11197
ac_cv_lib_swscale_sws_scale=no
11200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11201
conftest$ac_exeext conftest.$ac_ext
11202
LIBS=$ac_check_lib_save_LIBS
11204
{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
11205
echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
11206
if test $ac_cv_lib_swscale_sws_scale = yes; then
11207
cat >>confdefs.h <<_ACEOF
11208
#define HAVE_LIBSWSCALE 1
11211
LIBS="-lswscale $LIBS"
11220
# if avutil is linked statically, avcodec should, too
11221
static_avcodec=$static_avutil
11222
ac_my_avcodec_libs=""
11223
test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket"
11227
if test x$static_avcodec = xyes; then
11229
{ echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5
11230
echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; }
11231
if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then
11232
echo $ECHO_N "(cached) $ECHO_C" >&6
11235
echo -n "(static?) ... "
11236
ac_check_lib_save_LIBS=$LIBS
11237
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $ac_my_avcodec_libs $LIBS"
11238
cat >conftest.$ac_ext <<_ACEOF
11241
cat confdefs.h >>conftest.$ac_ext
11242
cat >>conftest.$ac_ext <<_ACEOF
11243
/* end confdefs.h. */
11245
/* Override any GCC internal prototype to avoid an error.
11246
Use char because int might match the return type of a GCC
11247
builtin and then its argument prototype would still apply. */
11251
char avcodec_encode_video ();
11255
return avcodec_encode_video ();
11260
rm -f conftest.$ac_objext conftest$ac_exeext
11261
if { (ac_try="$ac_link"
11262
case "(($ac_try" in
11263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264
*) ac_try_echo=$ac_try;;
11266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267
(eval "$ac_link") 2>conftest.er1
11269
grep -v '^ *+' conftest.er1 >conftest.err
11271
cat conftest.err >&5
11272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273
(exit $ac_status); } && {
11274
test -z "$ac_c_werror_flag" ||
11275
test ! -s conftest.err
11276
} && test -s conftest$ac_exeext &&
11277
$as_test_x conftest$ac_exeext; then
11278
ac_cv_lib_avcodec_avcodec_encode_video=yes
11280
echo "$as_me: failed program was:" >&5
11281
sed 's/^/| /' conftest.$ac_ext >&5
11283
ac_cv_lib_avcodec_avcodec_encode_video=no
11286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287
conftest$ac_exeext conftest.$ac_ext
11288
LIBS=$ac_check_lib_save_LIBS
11291
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5
11292
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; }
11294
ac_cv_lib_avcodec_avcodec_encode_video=no
11297
if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then
11298
cat >>confdefs.h <<_ACEOF
11299
#define HAVE_LIBAVCODEC 1
11302
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
11305
unset ac_cv_lib_avcodec_avcodec_encode_video ; static_avcodec=no ;
11306
{ echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5
11307
echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; }
11308
if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then
11309
echo $ECHO_N "(cached) $ECHO_C" >&6
11311
ac_check_lib_save_LIBS=$LIBS
11312
LIBS="-lavcodec $ac_my_avcodec_libs $LIBS"
11313
cat >conftest.$ac_ext <<_ACEOF
11316
cat confdefs.h >>conftest.$ac_ext
11317
cat >>conftest.$ac_ext <<_ACEOF
11318
/* end confdefs.h. */
11320
/* Override any GCC internal prototype to avoid an error.
11321
Use char because int might match the return type of a GCC
11322
builtin and then its argument prototype would still apply. */
11326
char avcodec_encode_video ();
11330
return avcodec_encode_video ();
11335
rm -f conftest.$ac_objext conftest$ac_exeext
11336
if { (ac_try="$ac_link"
11337
case "(($ac_try" in
11338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339
*) ac_try_echo=$ac_try;;
11341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342
(eval "$ac_link") 2>conftest.er1
11344
grep -v '^ *+' conftest.er1 >conftest.err
11346
cat conftest.err >&5
11347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348
(exit $ac_status); } && {
11349
test -z "$ac_c_werror_flag" ||
11350
test ! -s conftest.err
11351
} && test -s conftest$ac_exeext &&
11352
$as_test_x conftest$ac_exeext; then
11353
ac_cv_lib_avcodec_avcodec_encode_video=yes
11355
echo "$as_me: failed program was:" >&5
11356
sed 's/^/| /' conftest.$ac_ext >&5
11358
ac_cv_lib_avcodec_avcodec_encode_video=no
11361
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362
conftest$ac_exeext conftest.$ac_ext
11363
LIBS=$ac_check_lib_save_LIBS
11365
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5
11366
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; }
11367
if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then
5071
11368
cat >>confdefs.h <<_ACEOF
5072
11369
#define HAVE_LIBAVCODEC 1
7837
14313
# Have a temporary directory for convenience. Make it in the build tree
7838
# simply because there is no reason to put it here, and in addition,
14314
# simply because there is no reason against having it here, and in addition,
7839
14315
# creating and moving files from /tmp can sometimes cause problems.
7840
# Create a temporary directory, and hook for its removal unless debugging.
14316
# Hook for its removal unless debugging.
14317
# Note that there is a small window in which the directory will not be cleaned:
14318
# after its creation but before its name has been assigned to `$tmp'.
7843
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14322
trap 'exit_status=$?
14323
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7844
14325
trap '{ (exit 1); exit 1; }' 1 2 13 15
7847
14327
# Create a (secure) tmp directory for tmp files.
7850
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14330
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7851
14331
test -n "$tmp" && test -d "$tmp"
7854
tmp=./confstat$$-$RANDOM
7855
(umask 077 && mkdir $tmp)
14334
tmp=./conf$$-$RANDOM
14335
(umask 077 && mkdir "$tmp")
7858
14338
echo "$me: cannot create a temporary directory in ." >&2
7859
14339
{ (exit 1); exit 1; }
7864
cat >>$CONFIG_STATUS <<_ACEOF
7867
# CONFIG_FILES section.
14343
# Set up the sed scripts for CONFIG_FILES section.
7870
14346
# No need to generate the scripts if there are no CONFIG_FILES.
7871
14347
# This happens for instance when ./config.status config.h
7872
if test -n "\$CONFIG_FILES"; then
7873
# Protect against being on the right side of a sed subst in config.status.
7874
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7875
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7876
s,@SHELL@,$SHELL,;t t
7877
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7878
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7879
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7880
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7881
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7882
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7883
s,@exec_prefix@,$exec_prefix,;t t
7884
s,@prefix@,$prefix,;t t
7885
s,@program_transform_name@,$program_transform_name,;t t
7886
s,@bindir@,$bindir,;t t
7887
s,@sbindir@,$sbindir,;t t
7888
s,@libexecdir@,$libexecdir,;t t
7889
s,@datadir@,$datadir,;t t
7890
s,@sysconfdir@,$sysconfdir,;t t
7891
s,@sharedstatedir@,$sharedstatedir,;t t
7892
s,@localstatedir@,$localstatedir,;t t
7893
s,@libdir@,$libdir,;t t
7894
s,@includedir@,$includedir,;t t
7895
s,@oldincludedir@,$oldincludedir,;t t
7896
s,@infodir@,$infodir,;t t
7897
s,@mandir@,$mandir,;t t
7898
s,@build_alias@,$build_alias,;t t
7899
s,@host_alias@,$host_alias,;t t
7900
s,@target_alias@,$target_alias,;t t
7902
s,@ECHO_C@,$ECHO_C,;t t
7903
s,@ECHO_N@,$ECHO_N,;t t
7904
s,@ECHO_T@,$ECHO_T,;t t
7906
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7907
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7908
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7909
s,@CYGPATH_W@,$CYGPATH_W,;t t
7910
s,@PACKAGE@,$PACKAGE,;t t
7911
s,@VERSION@,$VERSION,;t t
7912
s,@ACLOCAL@,$ACLOCAL,;t t
7913
s,@AUTOCONF@,$AUTOCONF,;t t
7914
s,@AUTOMAKE@,$AUTOMAKE,;t t
7915
s,@AUTOHEADER@,$AUTOHEADER,;t t
7916
s,@MAKEINFO@,$MAKEINFO,;t t
7917
s,@AMTAR@,$AMTAR,;t t
7918
s,@install_sh@,$install_sh,;t t
7919
s,@STRIP@,$STRIP,;t t
7920
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7921
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7923
s,@SET_MAKE@,$SET_MAKE,;t t
7924
s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
7925
s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
7926
s,@LINUX_TRUE@,$LINUX_TRUE,;t t
7927
s,@LINUX_FALSE@,$LINUX_FALSE,;t t
7928
s,@HPUX_TRUE@,$HPUX_TRUE,;t t
7929
s,@HPUX_FALSE@,$HPUX_FALSE,;t t
7931
s,@CFLAGS@,$CFLAGS,;t t
7932
s,@LDFLAGS@,$LDFLAGS,;t t
7933
s,@CPPFLAGS@,$CPPFLAGS,;t t
7934
s,@ac_ct_CC@,$ac_ct_CC,;t t
7935
s,@EXEEXT@,$EXEEXT,;t t
7936
s,@OBJEXT@,$OBJEXT,;t t
7937
s,@DEPDIR@,$DEPDIR,;t t
7938
s,@am__include@,$am__include,;t t
7939
s,@am__quote@,$am__quote,;t t
7940
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7941
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7942
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7943
s,@CCDEPMODE@,$CCDEPMODE,;t t
7944
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7945
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7946
s,@RANLIB@,$RANLIB,;t t
7947
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7949
s,@X_CFLAGS@,$X_CFLAGS,;t t
7950
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7951
s,@X_LIBS@,$X_LIBS,;t t
7952
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7953
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
7954
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
7955
s,@HAVE_LIBPNG_TRUE@,$HAVE_LIBPNG_TRUE,;t t
7956
s,@HAVE_LIBPNG_FALSE@,$HAVE_LIBPNG_FALSE,;t t
7957
s,@HAVE_LIBJPEG_TRUE@,$HAVE_LIBJPEG_TRUE,;t t
7958
s,@HAVE_LIBJPEG_FALSE@,$HAVE_LIBJPEG_FALSE,;t t
7959
s,@HAVE_LIBAVCODEC_TRUE@,$HAVE_LIBAVCODEC_TRUE,;t t
7960
s,@HAVE_LIBAVCODEC_FALSE@,$HAVE_LIBAVCODEC_FALSE,;t t
7961
s,@HAVE_LIBAVFORMAT_TRUE@,$HAVE_LIBAVFORMAT_TRUE,;t t
7962
s,@HAVE_LIBAVFORMAT_FALSE@,$HAVE_LIBAVFORMAT_FALSE,;t t
7963
s,@STATIC_Z_TRUE@,$STATIC_Z_TRUE,;t t
7964
s,@STATIC_Z_FALSE@,$STATIC_Z_FALSE,;t t
7965
s,@STATIC_PNG_TRUE@,$STATIC_PNG_TRUE,;t t
7966
s,@STATIC_PNG_FALSE@,$STATIC_PNG_FALSE,;t t
7967
s,@STATIC_JPEG_TRUE@,$STATIC_JPEG_TRUE,;t t
7968
s,@STATIC_JPEG_FALSE@,$STATIC_JPEG_FALSE,;t t
7969
s,@STATIC_AVFORMAT_TRUE@,$STATIC_AVFORMAT_TRUE,;t t
7970
s,@STATIC_AVFORMAT_FALSE@,$STATIC_AVFORMAT_FALSE,;t t
7971
s,@STATIC_AVCODEC_TRUE@,$STATIC_AVCODEC_TRUE,;t t
7972
s,@STATIC_AVCODEC_FALSE@,$STATIC_AVCODEC_FALSE,;t t
7973
s,@EGREP@,$EGREP,;t t
7974
s,@LIBOBJS@,$LIBOBJS,;t t
7975
s,@HAVE_SYS_SOUNDCARD_H_TRUE@,$HAVE_SYS_SOUNDCARD_H_TRUE,;t t
7976
s,@HAVE_SYS_SOUNDCARD_H_FALSE@,$HAVE_SYS_SOUNDCARD_H_FALSE,;t t
7977
s,@HAVE_GETOPT_LONG_TRUE@,$HAVE_GETOPT_LONG_TRUE,;t t
7978
s,@HAVE_GETOPT_LONG_FALSE@,$HAVE_GETOPT_LONG_FALSE,;t t
7979
s,@HAVE_MALLOC_TRUE@,$HAVE_MALLOC_TRUE,;t t
7980
s,@HAVE_MALLOC_FALSE@,$HAVE_MALLOC_FALSE,;t t
7981
s,@HAVE_REALLOC_TRUE@,$HAVE_REALLOC_TRUE,;t t
7982
s,@HAVE_REALLOC_FALSE@,$HAVE_REALLOC_FALSE,;t t
7983
s,@WITHGT_TRUE@,$WITHGT_TRUE,;t t
7984
s,@WITHGT_FALSE@,$WITHGT_FALSE,;t t
7985
s,@WITHGTK2_TRUE@,$WITHGTK2_TRUE,;t t
7986
s,@WITHGTK2_FALSE@,$WITHGTK2_FALSE,;t t
7987
s,@HAVE_FFMPEG_AUDIO_TRUE@,$HAVE_FFMPEG_AUDIO_TRUE,;t t
7988
s,@HAVE_FFMPEG_AUDIO_FALSE@,$HAVE_FFMPEG_AUDIO_FALSE,;t t
7989
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7994
cat >>$CONFIG_STATUS <<\_ACEOF
7995
# Split the substitutions into bite-sized pieces for seds with
7996
# small command number limits, like on Digital OSF/1 and HP-UX.
7998
ac_sed_frag=1 # Number of current file.
7999
ac_beg=1 # First line for current file.
8000
ac_end=$ac_max_sed_lines # Line after last line for current file.
8003
while $ac_more_lines; do
8004
if test $ac_beg -gt 1; then
8005
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8007
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8009
if test ! -s $tmp/subs.frag; then
8012
# The purpose of the label and of the branching condition is to
8013
# speed up the sed processing (if there are no `@' at all, there
8014
# is no need to browse any of the substitutions).
8015
# These are the two extra sed commands mentioned above.
8017
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8018
if test -z "$ac_sed_cmds"; then
8019
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8021
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8023
ac_sed_frag=`expr $ac_sed_frag + 1`
8025
ac_end=`expr $ac_end + $ac_max_sed_lines`
8028
if test -z "$ac_sed_cmds"; then
14348
if test -n "$CONFIG_FILES"; then
14355
for ac_last_try in false false false false false :; do
14356
cat >conf$$subs.sed <<_ACEOF
14357
SHELL!$SHELL$ac_delim
14358
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14359
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14360
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14361
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14362
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14363
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14364
exec_prefix!$exec_prefix$ac_delim
14365
prefix!$prefix$ac_delim
14366
program_transform_name!$program_transform_name$ac_delim
14367
bindir!$bindir$ac_delim
14368
sbindir!$sbindir$ac_delim
14369
libexecdir!$libexecdir$ac_delim
14370
datarootdir!$datarootdir$ac_delim
14371
datadir!$datadir$ac_delim
14372
sysconfdir!$sysconfdir$ac_delim
14373
sharedstatedir!$sharedstatedir$ac_delim
14374
localstatedir!$localstatedir$ac_delim
14375
includedir!$includedir$ac_delim
14376
oldincludedir!$oldincludedir$ac_delim
14377
docdir!$docdir$ac_delim
14378
infodir!$infodir$ac_delim
14379
htmldir!$htmldir$ac_delim
14380
dvidir!$dvidir$ac_delim
14381
pdfdir!$pdfdir$ac_delim
14382
psdir!$psdir$ac_delim
14383
libdir!$libdir$ac_delim
14384
localedir!$localedir$ac_delim
14385
mandir!$mandir$ac_delim
14386
DEFS!$DEFS$ac_delim
14387
ECHO_C!$ECHO_C$ac_delim
14388
ECHO_N!$ECHO_N$ac_delim
14389
ECHO_T!$ECHO_T$ac_delim
14390
LIBS!$LIBS$ac_delim
14391
build_alias!$build_alias$ac_delim
14392
host_alias!$host_alias$ac_delim
14393
target_alias!$target_alias$ac_delim
14394
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14395
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14396
INSTALL_DATA!$INSTALL_DATA$ac_delim
14397
CYGPATH_W!$CYGPATH_W$ac_delim
14398
PACKAGE!$PACKAGE$ac_delim
14399
VERSION!$VERSION$ac_delim
14400
ACLOCAL!$ACLOCAL$ac_delim
14401
AUTOCONF!$AUTOCONF$ac_delim
14402
AUTOMAKE!$AUTOMAKE$ac_delim
14403
AUTOHEADER!$AUTOHEADER$ac_delim
14404
MAKEINFO!$MAKEINFO$ac_delim
14405
install_sh!$install_sh$ac_delim
14406
STRIP!$STRIP$ac_delim
14407
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14408
mkdir_p!$mkdir_p$ac_delim
14410
SET_MAKE!$SET_MAKE$ac_delim
14411
am__leading_dot!$am__leading_dot$ac_delim
14412
AMTAR!$AMTAR$ac_delim
14413
am__tar!$am__tar$ac_delim
14414
am__untar!$am__untar$ac_delim
14415
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14416
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14417
MAINT!$MAINT$ac_delim
14418
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
14419
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
14420
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
14421
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
14422
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
14423
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
14424
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
14425
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
14426
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
14427
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
14428
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
14429
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
14430
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
14431
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
14432
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
14433
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
14434
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
14435
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
14436
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
14437
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
14438
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
14439
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
14440
INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim
14441
INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim
14442
INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim
14443
INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim
14444
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
14446
CFLAGS!$CFLAGS$ac_delim
14447
LDFLAGS!$LDFLAGS$ac_delim
14448
CPPFLAGS!$CPPFLAGS$ac_delim
14449
ac_ct_CC!$ac_ct_CC$ac_delim
14450
EXEEXT!$EXEEXT$ac_delim
14451
OBJEXT!$OBJEXT$ac_delim
14452
DEPDIR!$DEPDIR$ac_delim
14453
am__include!$am__include$ac_delim
14456
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14458
elif $ac_last_try; then
14459
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14460
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14461
{ (exit 1); exit 1; }; }
14463
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14467
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14468
if test -n "$ac_eof"; then
14469
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14470
ac_eof=`expr $ac_eof + 1`
14473
cat >>$CONFIG_STATUS <<_ACEOF
14474
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14475
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14478
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14479
s/^/s,@/; s/!/@,|#_!!_#|/
14482
s/'"$ac_delim"'$/,g/; t
14484
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14485
' >>$CONFIG_STATUS <conf$$subs.sed
14486
rm -f conf$$subs.sed
14487
cat >>$CONFIG_STATUS <<_ACEOF
14493
for ac_last_try in false false false false false :; do
14494
cat >conf$$subs.sed <<_ACEOF
14495
am__quote!$am__quote$ac_delim
14496
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14497
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14498
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14499
CCDEPMODE!$CCDEPMODE$ac_delim
14500
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14501
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14502
DATADIRNAME!$DATADIRNAME$ac_delim
14504
GREP!$GREP$ac_delim
14505
EGREP!$EGREP$ac_delim
14506
RANLIB!$RANLIB$ac_delim
14508
XMKMF!$XMKMF$ac_delim
14509
X_CFLAGS!$X_CFLAGS$ac_delim
14510
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14511
X_LIBS!$X_LIBS$ac_delim
14512
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14513
SCROLLKEEPER_BUILD_REQUIRED!$SCROLLKEEPER_BUILD_REQUIRED$ac_delim
14514
SK_CONFIG!$SK_CONFIG$ac_delim
14516
DOCBOOK2X_MAN!$DOCBOOK2X_MAN$ac_delim
14517
XML2PO!$XML2PO$ac_delim
14518
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
14519
build!$build$ac_delim
14520
build_cpu!$build_cpu$ac_delim
14521
build_vendor!$build_vendor$ac_delim
14522
build_os!$build_os$ac_delim
14523
host!$host$ac_delim
14524
host_cpu!$host_cpu$ac_delim
14525
host_vendor!$host_vendor$ac_delim
14526
host_os!$host_os$ac_delim
14527
USE_NLS!$USE_NLS$ac_delim
14528
MSGFMT!$MSGFMT$ac_delim
14529
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
14530
GMSGFMT!$GMSGFMT$ac_delim
14531
XGETTEXT!$XGETTEXT$ac_delim
14532
CATALOGS!$CATALOGS$ac_delim
14533
CATOBJEXT!$CATOBJEXT$ac_delim
14534
GMOFILES!$GMOFILES$ac_delim
14535
INSTOBJEXT!$INSTOBJEXT$ac_delim
14536
INTLLIBS!$INTLLIBS$ac_delim
14537
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
14538
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
14539
POFILES!$POFILES$ac_delim
14540
POSUB!$POSUB$ac_delim
14541
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
14542
PKG_CONFIG!$PKG_CONFIG$ac_delim
14543
PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
14544
PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
14545
SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim
14546
SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
14547
LINUX_TRUE!$LINUX_TRUE$ac_delim
14548
LINUX_FALSE!$LINUX_FALSE$ac_delim
14549
HPUX_TRUE!$HPUX_TRUE$ac_delim
14550
HPUX_FALSE!$HPUX_FALSE$ac_delim
14551
FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim
14552
FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim
14553
HAVE_LIBMP3LAME_TRUE!$HAVE_LIBMP3LAME_TRUE$ac_delim
14554
HAVE_LIBMP3LAME_FALSE!$HAVE_LIBMP3LAME_FALSE$ac_delim
14555
HAVE_LIBTHEORA_TRUE!$HAVE_LIBTHEORA_TRUE$ac_delim
14556
HAVE_LIBTHEORA_FALSE!$HAVE_LIBTHEORA_FALSE$ac_delim
14557
HAVE_PTHREAD_TRUE!$HAVE_PTHREAD_TRUE$ac_delim
14558
HAVE_PTHREAD_FALSE!$HAVE_PTHREAD_FALSE$ac_delim
14559
STATIC_AVFORMAT_TRUE!$STATIC_AVFORMAT_TRUE$ac_delim
14560
STATIC_AVFORMAT_FALSE!$STATIC_AVFORMAT_FALSE$ac_delim
14561
STATIC_AVCODEC_TRUE!$STATIC_AVCODEC_TRUE$ac_delim
14562
STATIC_AVCODEC_FALSE!$STATIC_AVCODEC_FALSE$ac_delim
14563
STATIC_AVUTIL_TRUE!$STATIC_AVUTIL_TRUE$ac_delim
14564
STATIC_AVUTIL_FALSE!$STATIC_AVUTIL_FALSE$ac_delim
14565
LIBOBJS!$LIBOBJS$ac_delim
14566
HAVE_GETOPT_LONG_TRUE!$HAVE_GETOPT_LONG_TRUE$ac_delim
14567
HAVE_GETOPT_LONG_FALSE!$HAVE_GETOPT_LONG_FALSE$ac_delim
14568
HAVE_MALLOC_TRUE!$HAVE_MALLOC_TRUE$ac_delim
14569
HAVE_MALLOC_FALSE!$HAVE_MALLOC_FALSE$ac_delim
14570
HAVE_REALLOC_TRUE!$HAVE_REALLOC_TRUE$ac_delim
14571
HAVE_REALLOC_FALSE!$HAVE_REALLOC_FALSE$ac_delim
14572
HAVE_FFMPEG_AUDIO_TRUE!$HAVE_FFMPEG_AUDIO_TRUE$ac_delim
14573
HAVE_FFMPEG_AUDIO_FALSE!$HAVE_FFMPEG_AUDIO_FALSE$ac_delim
14574
LTLIBOBJS!$LTLIBOBJS$ac_delim
14577
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
14579
elif $ac_last_try; then
14580
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14581
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14582
{ (exit 1); exit 1; }; }
14584
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14588
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14589
if test -n "$ac_eof"; then
14590
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14591
ac_eof=`expr $ac_eof + 1`
14594
cat >>$CONFIG_STATUS <<_ACEOF
14595
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14596
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14599
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14600
s/^/s,@/; s/!/@,|#_!!_#|/
14603
s/'"$ac_delim"'$/,g/; t
14605
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14606
' >>$CONFIG_STATUS <conf$$subs.sed
14607
rm -f conf$$subs.sed
14608
cat >>$CONFIG_STATUS <<_ACEOF
14615
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14616
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14617
# trailing colons and then remove the whole line if VPATH becomes empty
14618
# (actually we leave an empty line to preserve line numbers).
14619
if test "x$srcdir" = x.; then
14620
ac_vpsub='/^[ ]*VPATH[ ]*=/{
14621
s/:*\$(srcdir):*/:/
14622
s/:*\${srcdir}:*/:/
14624
s/^\([^=]*=[ ]*\):*/\1/
14630
cat >>$CONFIG_STATUS <<\_ACEOF
8031
14631
fi # test -n "$CONFIG_FILES"
8034
cat >>$CONFIG_STATUS <<\_ACEOF
8035
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8036
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8038
- | *:- | *:-:* ) # input from stdin
8040
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8041
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8042
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8043
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8044
* ) ac_file_in=$ac_file.in ;;
8047
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8048
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14634
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14637
:[FHLC]) ac_mode=$ac_tag; continue;;
14639
case $ac_mode$ac_tag in
14641
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14642
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14643
{ (exit 1); exit 1; }; };;
14644
:[FH]-) ac_tag=-:-;;
14645
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14662
-) ac_f="$tmp/stdin";;
14663
*) # Look for the file first in the build tree, then in the source tree
14664
# (if the path is not absolute). The absolute path cannot be DOS-style,
14665
# because $ac_f cannot contain `:'.
14669
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14671
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14672
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14673
{ (exit 1); exit 1; }; };;
14675
ac_file_inputs="$ac_file_inputs $ac_f"
14678
# Let's still pretend it is `configure' which instantiates (i.e., don't
14679
# use $as_me), people would be surprised to read:
14680
# /* config.h. Generated by config.status. */
14681
configure_input="Generated from "`IFS=:
14682
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14683
if test x"$ac_file" != x-; then
14684
configure_input="$ac_file. $configure_input"
14685
{ echo "$as_me:$LINENO: creating $ac_file" >&5
14686
echo "$as_me: creating $ac_file" >&6;}
14690
*:-:* | *:-) cat >"$tmp/stdin";;
14695
ac_dir=`$as_dirname -- "$ac_file" ||
8049
14696
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8050
X"$ac_file" : 'X\(//\)[^/]' \| \
8051
X"$ac_file" : 'X\(//\)$' \| \
8052
X"$ac_file" : 'X\(/\)' \| \
8053
. : '\(.\)' 2>/dev/null ||
14697
X"$ac_file" : 'X\(//\)[^/]' \| \
14698
X"$ac_file" : 'X\(//\)$' \| \
14699
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8054
14700
echo X"$ac_file" |
8055
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8056
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8057
/^X\(\/\/\)$/{ s//\1/; q; }
8058
/^X\(\/\).*/{ s//\1/; q; }
8060
{ if $as_mkdir_p; then
14701
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14705
/^X\(\/\/\)[^/].*/{
14720
-*) as_dir=./$as_dir;;
14722
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8065
while test ! -d "$as_dir"; do
8066
as_dirs="$as_dir $as_dirs"
8067
as_dir=`(dirname "$as_dir") 2>/dev/null ||
14726
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14727
*) as_qdir=$as_dir;;
14729
as_dirs="'$as_qdir' $as_dirs"
14730
as_dir=`$as_dirname -- "$as_dir" ||
8068
14731
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8069
X"$as_dir" : 'X\(//\)[^/]' \| \
8070
X"$as_dir" : 'X\(//\)$' \| \
8071
X"$as_dir" : 'X\(/\)' \| \
8072
. : '\(.\)' 2>/dev/null ||
14732
X"$as_dir" : 'X\(//\)[^/]' \| \
14733
X"$as_dir" : 'X\(//\)$' \| \
14734
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8073
14735
echo X"$as_dir" |
8074
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8075
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8076
/^X\(\/\/\)$/{ s//\1/; q; }
8077
/^X\(\/\).*/{ s//\1/; q; }
14736
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14740
/^X\(\/\/\)[^/].*/{
14753
test -d "$as_dir" && break
8080
test ! -n "$as_dirs" || mkdir $as_dirs
8081
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8082
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14755
test -z "$as_dirs" || eval "mkdir $as_dirs"
14756
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14757
echo "$as_me: error: cannot create directory $as_dir" >&2;}
8083
14758
{ (exit 1); exit 1; }; }; }
8087
if test "$ac_dir" != .; then
14762
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8088
14764
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8089
# A "../" for each directory in $ac_dir_suffix.
8090
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8092
ac_dir_suffix= ac_top_builddir=
14765
# A ".." for each directory in $ac_dir_suffix.
14766
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14767
case $ac_top_builddir_sub in
14768
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14769
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14772
ac_abs_top_builddir=$ac_pwd
14773
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14774
# for backward compatibility:
14775
ac_top_builddir=$ac_top_build_prefix
8095
14777
case $srcdir in
8096
.) # No --srcdir option. We are building in place.
14778
.) # We are building in place.
8098
if test -z "$ac_top_builddir"; then
8101
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8103
[\\/]* | ?:[\\/]* ) # Absolute path.
14780
ac_top_srcdir=$ac_top_builddir_sub
14781
ac_abs_top_srcdir=$ac_pwd ;;
14782
[\\/]* | ?:[\\/]* ) # Absolute name.
8104
14783
ac_srcdir=$srcdir$ac_dir_suffix;
8105
ac_top_srcdir=$srcdir ;;
8107
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8108
ac_top_srcdir=$ac_top_builddir$srcdir ;;
14784
ac_top_srcdir=$srcdir
14785
ac_abs_top_srcdir=$srcdir ;;
14786
*) # Relative name.
14787
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14788
ac_top_srcdir=$ac_top_build_prefix$srcdir
14789
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8110
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8112
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8113
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8114
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8115
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14791
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8118
14800
case $INSTALL in
8119
14801
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8120
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14802
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8123
if test x"$ac_file" != x-; then
8124
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8125
echo "$as_me: creating $ac_file" >&6;}
8128
# Let's still pretend it is `configure' which instantiates (i.e., don't
8129
# use $as_me), people would be surprised to read:
8130
# /* config.h. Generated by config.status. */
8131
if test x"$ac_file" = x-; then
8134
configure_input="$ac_file. "
8136
configure_input=$configure_input"Generated from `echo $ac_file_in |
8137
sed 's,.*/,,'` by configure."
8139
# First look for the input files in the build tree, otherwise in the
8141
ac_file_inputs=`IFS=:
8142
for f in $ac_file_in; do
8144
-) echo $tmp/stdin ;;
8146
# Absolute (can't be DOS-style, as IFS=:)
8147
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8148
echo "$as_me: error: cannot find input file: $f" >&2;}
8149
{ (exit 1); exit 1; }; }
8152
if test -f "$f"; then
8155
elif test -f "$srcdir/$f"; then
8160
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8161
echo "$as_me: error: cannot find input file: $f" >&2;}
8162
{ (exit 1); exit 1; }; }
8165
done` || { (exit 1); exit 1; }
14806
cat >>$CONFIG_STATUS <<\_ACEOF
14807
# If the template does not know about datarootdir, expand it.
14808
# FIXME: This hack should be removed a few years after 2.60.
14809
ac_datarootdir_hack=; ac_datarootdir_seen=
14811
case `sed -n '/datarootdir/ {
14820
' $ac_file_inputs` in
14821
*datarootdir*) ac_datarootdir_seen=yes;;
14822
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14823
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14824
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14826
cat >>$CONFIG_STATUS <<_ACEOF
14827
ac_datarootdir_hack='
14828
s&@datadir@&$datadir&g
14829
s&@docdir@&$docdir&g
14830
s&@infodir@&$infodir&g
14831
s&@localedir@&$localedir&g
14832
s&@mandir@&$mandir&g
14833
s&\\\${datarootdir}&$datarootdir&g' ;;
14837
# Neutralize VPATH when `$srcdir' = `.'.
14838
# Shell code in configure.ac might set extrasub.
14839
# FIXME: do we really want to maintain this feature?
8167
14840
cat >>$CONFIG_STATUS <<_ACEOF
8168
14841
sed "$ac_vpsub